From Gustav at cactus.dk Wed Feb 1 02:58:16 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Feb 2006 09:58:16 +0100 Subject: [AccessD] =?iso-8859-1?q?InterSystems_Cach=E9_database_engine?= Message-ID: Hi all It's now out in version 5.1 with new goodies for the dot Net people: http://www.intersystems.com/cache/technology/cache51/whatsnew.html /gustav >>> Gustav Brock 14-10-2003 15:04 >>> Hi all Just had a talk with the local representative about developer's cost. Minimum is one license at EUR 240.00. Maintenance and support is optional at 22% pr. year of license fee or ~EUR 53.00 bringing a total for the first year of about EUR 293.00 which equals about USD 340.00. This may, of course, vary on the west side of the pond. If you sign an agreement as a software house you'll get a substantial discount on these prices including the licenses you may sell to your clients. To me this sounds so fair that only open source engines like Firebird, SAP DB (MaxDB) and MySQL can compete - and they'll only bring a fraction of the features of Cach?. I have no time to play around with the free test license at the moment but I hope I will in the near future. /gustav > Hi Anonymous > Here a simple end user license fee is EUR 240. > However, they offer alternative pricing schemes, like > Power Units (don't ask) > Value based > These are intended for OEM and embedded use of the engine. > Further, due to the diverted use of the engine, pricing should be > negotiable. This you will, of course, have to discuss with your local > contact. > How or if this covers a developer license for commercial use, I don't > know yet. > /gustav >> Anyone know the pricing? The site requires you to fill out a survey to >> get pricing ... If the price isn't on the site, for anything, it's >> ususally way too expensive. >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: Thursday, October 09, 2003 11:58 AM >> To: Access Developers discussion and problem solving >> Cc: accessdb2web at egroups.com >> Subject: Re: [AccessD] InterSystems Cach? database engine >> Hi group >> Well, today I went to this hands-on seminar, and I'm impressed. >> The core of the engine is an object oriented data store. You create as >> easy as in Access - in a very nice designer using a basic like language >> - classes for storing data. When compiled, these classes are at once >> compiled too - and represented - as tables via ODBC and JDBC, classes >> via C++, Java, ActiveX (COM), .net and XML, and you can access the data >> simultaneous via all interfaces. These layers are all highly efficient >> they claim is the main reason for the high speed of the engine next to >> the speed of the engine itself. >> Further, you can create CSP pages similar to ASP and JSP pages with a >> direct connection to the engine. An add-in for Dreamweaver is offered >> with wizards for creating web pages. These pages are interesting as they >> offer live update of presented data via either a server call or a hidden >> frame meaning that requery or repaint of the displayed page is avoided - >> this is in my opinion mandatory for anything serious application-like >> running in a browser. >> The best perspective of this, in my eyes, is that you can start using >> the engine and your proven tools whatever they might be (Access) while >> moving to or adding other interfaces like another language, a browser >> interface, XML or web services (SOAP). Rome was not built in one day, >> remember. >> The engine scales to shadowed servers, clusters and TB size with no more >> efforts than within reach of a developer (we are impatient and really >> have no time for this, you know), and it runs on close to anything >> including WinNT/200x/XP, Redhat/Suse Linux, Solaris, OpenVMS, Tru64, >> HP-UX, AIX, and Win ME/98 - even Win95 - and MacOX with the next release >> - requiring modest hardware only. >> /gustav >>>> Just noticed this option for a free developer license: >>>> http://www.intersystems.com/downloads/index.html >>>> Anyone having experience with this engine as a backend for Access or >>>> otherwise? >>>> The free license doesn't allow you to sell your apps. It is, however, >>>> not time limited. From darrend at nimble.com.au Wed Feb 1 04:57:11 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 1 Feb 2006 21:57:11 +1100 Subject: [AccessD] A2003: List of Tables in an SQL dB Message-ID: <20060201105728.XCXB17345.omta04ps.mx.bigpond.com@DENZILLAP> Hello all Given the IP address of a server and the Name of the SQL dB Is it possible to retrieve the whole list of tables in the that SQL dB? Many thanks in advance DD From Jdemarco at hudsonhealthplan.org Wed Feb 1 07:37:58 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 1 Feb 2006 08:37:58 -0500 Subject: [AccessD] Same form, different actions Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C44C1@TTNEXCHCL2.hshhp.com> Excellent point John and one that I cannot agree with more. I don't know how many times I've mentioned to other developers that all they have to do is use whatever class we may be discussing and not worry about the behind the scenes stuff. The reference I make the most is about a class I found on the web that let me read/write registry values. I did not care how it got or set values. I just needed to figure out what methods to use to access those values. Much better than the APIs it wrapped (and that's really the point of many class modules - to take complex processes and simplify them). Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Tuesday, January 31, 2006 9:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Same form, different actions Everyone, I want to point out that the entire point of classes (objects) is that you can just use them, you don't have to understand them. I know that some people want to learn how it works as well, but in the end, just start using it, THEN worry about digging in and seeing how it is programmed. Everything you use in Access as an object, and we don't have a clue how it works inside. Combos, text boxes, forms etc, all are objects that have methods and properties. You just use them, but don't know, nor care how it all happens inside the object. These classes I put out there, the SysVars classes, the openargs classes, the date picker class etc. all are things that you can just use yourself, even if you NEVER figure out how it works inside. And I might add , I am a consultant. If you have a project that needs this level of expertise, you can hire me to do it. 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: Monday, January 30, 2006 1:24 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Same form, different actions Man, I wish I got this just half as much as you do! This is going to take me some time to digest, but I think it is exactly what I need. Thanks for the help! John W. Clark >>> jwcolby at colbyconsulting.com 1/30/2006 12:29:53 PM >>> John, When you say "go there" what do you mean. If you open a form modal, then when you close the form you are right back in the calling form. If you are not opening it modal, you should STILL "go there" when you close the form unless the user has clicked on or opened some other form in the meantime. IOW, if the switchboard opens the form, then when the form closes, the switchboard should still be there. If you want the form to do something and then OPEN another form, then pass in the form name in the OpenArgs something like: strOpenArgs="FrmToOpen=frmThatIWantOpened;" Now somewhere in the form that you are opening with these openargs (perhaps in the close event?) do: Docmd.open acForm, lclsOpenArgs.OpenArg("FrmToOpen") You do have to make sure that the instance of lclsOpenArgs hasn't been destroyed already. I am not sure at what instance in the closing process that occurs so that part is up to you to figure out. So..... The demo has two levels of complexity. The first (and most complex) is that as you pass in openargs, it is possible to have the OpenArgs class set properties of the form that is using this instance of the OpenArgs class. That is handled automatically by clsOpenArgs. Pass in OpenArgs with names that match form properties and Voila, (assuming the properties are not read-only) the properties are set. That was demonstrated by the code in the buttons on the demo form opening the SAME state form in two different modes, plus setting the caption property of the state form. The second level of complexity is just using an OpenArg somehow, using code in the form to retrieve an OpenArg and use it. That was demonstrated by setting the label caption in code in the OnOpen event. In either case, the first thing to get comfortable with is having a form instantiate and initialize a class. In the code behind form of the frmState, we dimensioned a class variable in the header, then SET and initialized that variable in OnOpen. Private lclsOpenArgs As clsOpenArgs Private Sub Form_Open(Cancel As Integer) Set lclsOpenArgs = New clsOpenArgs lclsOpenArgs.mInit Me, True So the form now has a lclsOpenArgs instance that has parsed the OpenArgs string passed in and is waiting for your command. The next thing to become comfortable with is that you can now use the Openargs: lblDemoArg.Caption = lclsOpenArgs.OpenArg("LblText") In the OnOpen of the frmState, we initialized the class, and then used the class to pull out an openarg called "LblText" and used the value returned by the class to set the caption of a label - lblDemoArg.Caption. Go back to the button code that OPENED frmState and notice that the string with all the openargs contained an openarg with this "lblText" name (at the very end): strOpenArgs = "DataEntry=True;AllowEdits=True;AllowDeletions=False;Caption=My State Data Entry Form;LblText=My Data Entry Label;" ALL of the OpenArgs at the front of the string are for setting form properties. Their location in the string is irrelevant, it just happens that is where I placed them. IF you told frmStates to interpret the openargs as properties BY PASSING IN True as the second argument of the init: Private Sub Form_Open(Cancel As Integer) Set lclsOpenArgs = New clsOpenArgs lclsOpenArgs.mInit Me, True <<< Message-ID: <012701c62738$80db5ef0$657aa8c0@ColbyM6805> There are a LOT of classes that I "borrow" and never bother to figure out how they work. I found zip/unzip stuff that is waaaaaaay over my head, or at the very least I have no interest in figuring out. I don't care how compression works, I just need to use it. The same with the registry stuff you mention. I just use it. Many of my classes are not that difficult to figure out what they are doing. So if you folks want to know how it does the magic, by all means dig in. But please don't let the fact that you don't understand it prevent you from using it. Sysvars are a HUGE help in controlling your application, learn the concept and just start using them. Openargs can be a very valuable tool. Grab the class(es) and start using them. If you like what I have done why start from scratch? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, February 01, 2006 8:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Same form, different actions Excellent point John and one that I cannot agree with more. I don't know how many times I've mentioned to other developers that all they have to do is use whatever class we may be discussing and not worry about the behind the scenes stuff. The reference I make the most is about a class I found on the web that let me read/write registry values. I did not care how it got or set values. I just needed to figure out what methods to use to access those values. Much better than the APIs it wrapped (and that's really the point of many class modules - to take complex processes and simplify them). Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Tuesday, January 31, 2006 9:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Same form, different actions Everyone, I want to point out that the entire point of classes (objects) is that you can just use them, you don't have to understand them. I know that some people want to learn how it works as well, but in the end, just start using it, THEN worry about digging in and seeing how it is programmed. Everything you use in Access as an object, and we don't have a clue how it works inside. Combos, text boxes, forms etc, all are objects that have methods and properties. You just use them, but don't know, nor care how it all happens inside the object. These classes I put out there, the SysVars classes, the openargs classes, the date picker class etc. all are things that you can just use yourself, even if you NEVER figure out how it works inside. And I might add , I am a consultant. If you have a project that needs this level of expertise, you can hire me to do it. 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: Monday, January 30, 2006 1:24 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Same form, different actions Man, I wish I got this just half as much as you do! This is going to take me some time to digest, but I think it is exactly what I need. Thanks for the help! John W. Clark >>> jwcolby at colbyconsulting.com 1/30/2006 12:29:53 PM >>> John, When you say "go there" what do you mean. If you open a form modal, then when you close the form you are right back in the calling form. If you are not opening it modal, you should STILL "go there" when you close the form unless the user has clicked on or opened some other form in the meantime. IOW, if the switchboard opens the form, then when the form closes, the switchboard should still be there. If you want the form to do something and then OPEN another form, then pass in the form name in the OpenArgs something like: strOpenArgs="FrmToOpen=frmThatIWantOpened;" Now somewhere in the form that you are opening with these openargs (perhaps in the close event?) do: Docmd.open acForm, lclsOpenArgs.OpenArg("FrmToOpen") You do have to make sure that the instance of lclsOpenArgs hasn't been destroyed already. I am not sure at what instance in the closing process that occurs so that part is up to you to figure out. So..... The demo has two levels of complexity. The first (and most complex) is that as you pass in openargs, it is possible to have the OpenArgs class set properties of the form that is using this instance of the OpenArgs class. That is handled automatically by clsOpenArgs. Pass in OpenArgs with names that match form properties and Voila, (assuming the properties are not read-only) the properties are set. That was demonstrated by the code in the buttons on the demo form opening the SAME state form in two different modes, plus setting the caption property of the state form. The second level of complexity is just using an OpenArg somehow, using code in the form to retrieve an OpenArg and use it. That was demonstrated by setting the label caption in code in the OnOpen event. In either case, the first thing to get comfortable with is having a form instantiate and initialize a class. In the code behind form of the frmState, we dimensioned a class variable in the header, then SET and initialized that variable in OnOpen. Private lclsOpenArgs As clsOpenArgs Private Sub Form_Open(Cancel As Integer) Set lclsOpenArgs = New clsOpenArgs lclsOpenArgs.mInit Me, True So the form now has a lclsOpenArgs instance that has parsed the OpenArgs string passed in and is waiting for your command. The next thing to become comfortable with is that you can now use the Openargs: lblDemoArg.Caption = lclsOpenArgs.OpenArg("LblText") In the OnOpen of the frmState, we initialized the class, and then used the class to pull out an openarg called "LblText" and used the value returned by the class to set the caption of a label - lblDemoArg.Caption. Go back to the button code that OPENED frmState and notice that the string with all the openargs contained an openarg with this "lblText" name (at the very end): strOpenArgs = "DataEntry=True;AllowEdits=True;AllowDeletions=False;Caption=My State Data Entry Form;LblText=My Data Entry Label;" ALL of the OpenArgs at the front of the string are for setting form properties. Their location in the string is irrelevant, it just happens that is where I placed them. IF you told frmStates to interpret the openargs as properties BY PASSING IN True as the second argument of the init: Private Sub Form_Open(Cancel As Integer) Set lclsOpenArgs = New clsOpenArgs lclsOpenArgs.mInit Me, True <<< A potential distributor in France writes to me and asks: "I shall like asking you a question: Is it possible 'to migrate' E-Z MRP under Linux? There is an equivalent of Office Pro which is ' OpenSuite ' And in this Suite, there is a given compatible Access database. I think that it would be a good idea to supply one package (Free open distribution of Linux and OpenSuite +EZ?MRP) with a very competitive price." Does anyone know anything about porting an Access app to OpenSuite? MTIA, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From stuart at lexacorp.com.pg Wed Feb 1 08:20:32 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 02 Feb 2006 00:20:32 +1000 Subject: [AccessD] A2003: List of Tables in an SQL dB In-Reply-To: <20060201105728.XCXB17345.omta04ps.mx.bigpond.com@DENZILLAP> Message-ID: <43E15050.2844.10427F9C@stuart.lexacorp.com.pg> On 1 Feb 2006 at 21:57, Darren DICK wrote: > Hello all > Given the IP address of a server and the Name of the SQL dB > Is it possible to retrieve the whole list of tables in the that SQL dB? > Make sure that the SQL Server is configured to use TCP/IP (in Enterprise Manager, right click on the server, select Properties - General, Click on Network Configuration and ensure TCP/IP is enabled) Then try this (watch for linewrap!): Function ListTables() Dim strConection As String Dim con As New ADODB.Connection Dim cmd As New ADODB.Command Dim RS As ADODB.Recordset strConnection = "Driver={SQL Server};Server=10.10.10.10;Database=databasename;Uid=loginname;Pwd=password;" con.Open strConnection Set cmd.ActiveConnection = con cmd.CommandType = adCmdText cmd.CommandText = "SELECT name, type FROM sysobjects WHERE type = 'U'" Set RS = cmd.Execute While Not RS.EOF Debug.Print RS(0) RS.MoveNext Wend End Function -- Stuart From stuart at lexacorp.com.pg Wed Feb 1 08:26:36 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 02 Feb 2006 00:26:36 +1000 Subject: [AccessD] A2003: List of Tables in an SQL dB In-Reply-To: <43E15050.2844.10427F9C@stuart.lexacorp.com.pg> References: <20060201105728.XCXB17345.omta04ps.mx.bigpond.com@DENZILLAP> Message-ID: <43E151BC.24280.10480A6E@stuart.lexacorp.com.pg> On 2 Feb 2006 at 0:20, Stuart McLachlan wrote: > strConnection = "Driver={SQL > Server};Server=10.10.10.10;Database=databasename;Uid=loginname;Pwd=password;" If it doesn't work, you may need one extra parameter: Network=DBMSSOCN; -- Stuart From garykjos at gmail.com Wed Feb 1 08:32:16 2006 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 1 Feb 2006 08:32:16 -0600 Subject: [AccessD] OT: Linux, Open Suite and Access In-Reply-To: <43E0C354.4030001@san.rr.com> References: <43E0C354.4030001@san.rr.com> Message-ID: http://www.openoffice.org/product/base.html http://www.openoffice.org/FAQs/ms-access/ms-access.html Don't know about PORTING but that second link discusses accessing the Access databases via an ODBC data source Good luck! On 2/1/06, Rocky Smolin - Beach Access Software wrote: > A potential distributor in France writes to me and asks: > > "I shall like asking you a question: Is it possible 'to migrate' E-Z MRP > under Linux? There is an equivalent of Office Pro which is ' OpenSuite ' > And in this Suite, there is a given compatible Access database. I think > that it would be a good idea to supply one package (Free open > distribution of Linux and OpenSuite +EZ?MRP) with a very competitive price." > > Does anyone know anything about porting an Access app to OpenSuite? > > MTIA, > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From jwcolby at ColbyConsulting.com Wed Feb 1 09:51:22 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 1 Feb 2006 10:51:22 -0500 Subject: [AccessD] Manipulating Excel Cells Message-ID: <013701c62747$5a4aca50$657aa8c0@ColbyM6805> I'm baaaack. ;-) Here's the deal. I am working with a spreadsheet that has columns of systems and rows of documents. Therefore each cell represents a system-document. BTW, this was a "source" for me to build a pair of tables - tblSystem and tblDocument. I then added a field to tblDocument called SpreadsheetRow and a field to tblSystem called SpreadsheetColumn. We are tracking the receipt of these documents. The client now wants to see, back in his original spreadsheet, the "status" of a given system document using colors to express the status - white = not assigned, red = not received, yellow = partial receipt, green = received. So... I have to go "poke colors" out into the spreadsheet. I have discovered the "area" property which has a color attribute. What I need now is a translation from the column LETTERS to a column number since for some bizarre reason the columns have letter names but cells are referenced by column numbers. "Brain damaged children" as Bill Cosby would say. Does anyone have code for manipulating cells by cell(intRowNumbers, strColNames)? John W. Colby www.ColbyConsulting.com From Gustav at cactus.dk Wed Feb 1 10:19:10 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Feb 2006 17:19:10 +0100 Subject: [AccessD] Manipulating Excel Cells Message-ID: Hi John No, that is not so ... why should it be that complicated? To reference the value of a cell of a worksheet: .Worksheet.Cells(intRow, intColumn).Value = lngValue and so on for all the other properties of a cell. /gustav >>> jwcolby at ColbyConsulting.com 01-02-2006 16:51:22 >>> I'm baaaack. ;-) Here's the deal. I am working with a spreadsheet that has columns of systems and rows of documents. Therefore each cell represents a system-document. BTW, this was a "source" for me to build a pair of tables - tblSystem and tblDocument. I then added a field to tblDocument called SpreadsheetRow and a field to tblSystem called SpreadsheetColumn. We are tracking the receipt of these documents. The client now wants to see, back in his original spreadsheet, the "status" of a given system document using colors to express the status - white = not assigned, red = not received, yellow = partial receipt, green = received. So... I have to go "poke colors" out into the spreadsheet. I have discovered the "area" property which has a color attribute. What I need now is a translation from the column LETTERS to a column number since for some bizarre reason the columns have letter names but cells are referenced by column numbers. "Brain damaged children" as Bill Cosby would say. Does anyone have code for manipulating cells by cell(intRowNumbers, strColNames)? John W. Colby www.ColbyConsulting.com From bchacc at san.rr.com Wed Feb 1 10:20:56 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 01 Feb 2006 08:20:56 -0800 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: <013701c62747$5a4aca50$657aa8c0@ColbyM6805> References: <013701c62747$5a4aca50$657aa8c0@ColbyM6805> Message-ID: <43E0DFE8.1000006@san.rr.com> Can you use the old trick of recording a macro and looking at the code? Rocky John Colby wrote: > I'm baaaack. ;-) > > Here's the deal. I am working with a spreadsheet that has columns of > systems and rows of documents. Therefore each cell represents a > system-document. BTW, this was a "source" for me to build a pair of tables > - tblSystem and tblDocument. I then added a field to tblDocument called > SpreadsheetRow and a field to tblSystem called SpreadsheetColumn. > > > We are tracking the receipt of these documents. The client now wants to > see, back in his original spreadsheet, the "status" of a given system > document using colors to express the status - white = not assigned, red = > not received, yellow = partial receipt, green = received. > > So... I have to go "poke colors" out into the spreadsheet. I have > discovered the "area" property which has a color attribute. What I need now > is a translation from the column LETTERS to a column number since for some > bizarre reason the columns have letter names but cells are referenced by > column numbers. "Brain damaged children" as Bill Cosby would say. > > Does anyone have code for manipulating cells by cell(intRowNumbers, > strColNames)? > > John W. Colby > www.ColbyConsulting.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Jim.Hale at FleetPride.com Wed Feb 1 10:35:55 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 1 Feb 2006 10:35:55 -0600 Subject: [AccessD] Manipulating Excel Cells Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9D6@corp-es01.fleetpride.com> Is this what you are looking for? 'flip sign on vendor rebates '--------------------------- .Sheets("misc").Select For i = 6 To 11 .Cells(25, i) = -(.Cells(25, i)) Next i Or something like this? Jim Hale Function loadData_Excel(Dept As Integer, Co As Integer, ModelName As String, XcelWS As String, PlGroup As String, qryStr As String) Dim qdfTemp As QueryDef, dbs As Database, rs As Recordset Dim intRow As Integer, intBmonth As Integer, strWorksheet As String 'load data from recordset into spreadsheet Set dbs = CurrentDb Set qdfTemp = dbs.QueryDefs(qryStr) qdfTemp.Parameters("Deptnum") = Dept qdfTemp.Parameters("Co") = Co qdfTemp.Parameters("Model") = ModelName qdfTemp.Parameters("Worksheet") = XcelWS qdfTemp.Parameters("PlGroup") = PlGroup Set rs = qdfTemp.OpenRecordset() If Not (rs.BOF And rs.EOF) Then strWorksheet = rs("fldWorksheet") appexcel.Sheets(strWorksheet).Select Do While Not rs.EOF intBmonth = rs("Bmonth") + rs("fldColumnoffset") intRow = rs("fldRowno") appexcel.Cells(intRow, intBmonth) = rs("amt") rs.MoveNext Loop End If The_End: If Not (qdfTemp Is Nothing) Then qdfTemp.Close: Set qdfTemp = Nothing If Not (rs Is Nothing) Then rs.Close: Set rs = Nothing If Not (dbs Is Nothing) Then dbs.Close: Set dbs = Nothing End Function -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 01, 2006 9:51 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Manipulating Excel Cells I'm baaaack. ;-) Here's the deal. I am working with a spreadsheet that has columns of systems and rows of documents. Therefore each cell represents a system-document. BTW, this was a "source" for me to build a pair of tables - tblSystem and tblDocument. I then added a field to tblDocument called SpreadsheetRow and a field to tblSystem called SpreadsheetColumn. We are tracking the receipt of these documents. The client now wants to see, back in his original spreadsheet, the "status" of a given system document using colors to express the status - white = not assigned, red = not received, yellow = partial receipt, green = received. So... I have to go "poke colors" out into the spreadsheet. I have discovered the "area" property which has a color attribute. What I need now is a translation from the column LETTERS to a column number since for some bizarre reason the columns have letter names but cells are referenced by column numbers. "Brain damaged children" as Bill Cosby would say. Does anyone have code for manipulating cells by cell(intRowNumbers, strColNames)? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From accessd at shaw.ca Wed Feb 1 10:54:07 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 01 Feb 2006 08:54:07 -0800 Subject: [AccessD] =?iso-8859-1?q?InterSystems_Cach=E9_database_engine?= In-Reply-To: Message-ID: <000e01c62750$1de87b80$017ba8c0@xpserver> Gustav; thanks for that. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: February 1, 2006 12:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InterSystems Cach? database engine Hi all It's now out in version 5.1 with new goodies for the dot Net people: http://www.intersystems.com/cache/technology/cache51/whatsnew.html /gustav >>> Gustav Brock 14-10-2003 15:04 >>> Hi all Just had a talk with the local representative about developer's cost. Minimum is one license at EUR 240.00. Maintenance and support is optional at 22% pr. year of license fee or ~EUR 53.00 bringing a total for the first year of about EUR 293.00 which equals about USD 340.00. This may, of course, vary on the west side of the pond. If you sign an agreement as a software house you'll get a substantial discount on these prices including the licenses you may sell to your clients. To me this sounds so fair that only open source engines like Firebird, SAP DB (MaxDB) and MySQL can compete - and they'll only bring a fraction of the features of Cach?. I have no time to play around with the free test license at the moment but I hope I will in the near future. /gustav > Hi Anonymous > Here a simple end user license fee is EUR 240. > However, they offer alternative pricing schemes, like > Power Units (don't ask) > Value based > These are intended for OEM and embedded use of the engine. > Further, due to the diverted use of the engine, pricing should be > negotiable. This you will, of course, have to discuss with your local > contact. > How or if this covers a developer license for commercial use, I don't > know yet. > /gustav >> Anyone know the pricing? The site requires you to fill out a survey to >> get pricing ... If the price isn't on the site, for anything, it's >> ususally way too expensive. >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: Thursday, October 09, 2003 11:58 AM >> To: Access Developers discussion and problem solving >> Cc: accessdb2web at egroups.com >> Subject: Re: [AccessD] InterSystems Cach? database engine >> Hi group >> Well, today I went to this hands-on seminar, and I'm impressed. >> The core of the engine is an object oriented data store. You create as >> easy as in Access - in a very nice designer using a basic like language >> - classes for storing data. When compiled, these classes are at once >> compiled too - and represented - as tables via ODBC and JDBC, classes >> via C++, Java, ActiveX (COM), .net and XML, and you can access the data >> simultaneous via all interfaces. These layers are all highly efficient >> they claim is the main reason for the high speed of the engine next to >> the speed of the engine itself. >> Further, you can create CSP pages similar to ASP and JSP pages with a >> direct connection to the engine. An add-in for Dreamweaver is offered >> with wizards for creating web pages. These pages are interesting as they >> offer live update of presented data via either a server call or a hidden >> frame meaning that requery or repaint of the displayed page is avoided - >> this is in my opinion mandatory for anything serious application-like >> running in a browser. >> The best perspective of this, in my eyes, is that you can start using >> the engine and your proven tools whatever they might be (Access) while >> moving to or adding other interfaces like another language, a browser >> interface, XML or web services (SOAP). Rome was not built in one day, >> remember. >> The engine scales to shadowed servers, clusters and TB size with no more >> efforts than within reach of a developer (we are impatient and really >> have no time for this, you know), and it runs on close to anything >> including WinNT/200x/XP, Redhat/Suse Linux, Solaris, OpenVMS, Tru64, >> HP-UX, AIX, and Win ME/98 - even Win95 - and MacOX with the next release >> - requiring modest hardware only. >> /gustav >>>> Just noticed this option for a free developer license: >>>> http://www.intersystems.com/downloads/index.html >>>> Anyone having experience with this engine as a backend for Access or >>>> otherwise? >>>> The free license doesn't allow you to sell your apps. It is, however, >>>> not time limited. -- 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 1 10:57:15 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 01 Feb 2006 08:57:15 -0800 Subject: [AccessD] OT: Linux, Open Suite and Access In-Reply-To: <43E0C354.4030001@san.rr.com> Message-ID: <000f01c62750$8e055960$017ba8c0@xpserver> Hi Rocky: No, but my son-in-law does and I will pass it on to him. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: February 1, 2006 6:19 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Linux, Open Suite and Access A potential distributor in France writes to me and asks: "I shall like asking you a question: Is it possible 'to migrate' E-Z MRP under Linux? There is an equivalent of Office Pro which is ' OpenSuite ' And in this Suite, there is a given compatible Access database. I think that it would be a good idea to supply one package (Free open distribution of Linux and OpenSuite +EZ-MRP) with a very competitive price." Does anyone know anything about porting an Access app to OpenSuite? MTIA, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Robin at rolledgold.net Wed Feb 1 10:55:56 2006 From: Robin at rolledgold.net (Robin ) Date: Wed, 1 Feb 2006 16:55:56 -0000 Subject: [AccessD] Manipulating Excel Cells Message-ID: <560E2B80EC8F624B93A87B943B7A9CD542F945@rgiserv.rg.local> John, Is this any help http://www.devx.com/tips/Tip/14153 Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: 01 February 2006 15:51 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Manipulating Excel Cells I'm baaaack. ;-) Here's the deal. I am working with a spreadsheet that has columns of systems and rows of documents. Therefore each cell represents a system-document. BTW, this was a "source" for me to build a pair of tables - tblSystem and tblDocument. I then added a field to tblDocument called SpreadsheetRow and a field to tblSystem called SpreadsheetColumn. We are tracking the receipt of these documents. The client now wants to see, back in his original spreadsheet, the "status" of a given system document using colors to express the status - white = not assigned, red = not received, yellow = partial receipt, green = received. So... I have to go "poke colors" out into the spreadsheet. I have discovered the "area" property which has a color attribute. What I need now is a translation from the column LETTERS to a column number since for some bizarre reason the columns have letter names but cells are referenced by column numbers. "Brain damaged children" as Bill Cosby would say. Does anyone have code for manipulating cells by cell(intRowNumbers, strColNames)? 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 Gustav at cactus.dk Wed Feb 1 11:01:46 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Feb 2006 18:01:46 +0100 Subject: [AccessD] Manipulating Excel Cells Message-ID: Hi John Example for background colour: Worksheets(1).Cells(11,21).Interior.ColorIndex = 15 Can be 0 for none or 1 to 56 for some basic colours. /gustav >>> Gustav at cactus.dk 01-02-2006 17:19:10 >>> Hi John No, that is not so ... why should it be that complicated? To reference the value of a cell of a worksheet: .Worksheet.Cells(intRow, intColumn).Value = lngValue and so on for all the other properties of a cell. /gustav >>> jwcolby at ColbyConsulting.com 01-02-2006 16:51:22 >>> Does anyone have code for manipulating cells by cell(intRowNumbers, strColNames)? From Jim.Hale at FleetPride.com Wed Feb 1 11:03:00 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 1 Feb 2006 11:03:00 -0600 Subject: [AccessD] Manipulating Excel Cells Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9D7@corp-es01.fleetpride.com> When you think about it a cell location in Excel can be definitively described by knowing the workbook, worksheet, column and row in which it resides. When I need to place values in spreadsheet templates (other than bulk copy recordset pastes). I use a table that stores the 4 elements. I then use the value of the row and column that I have stored with the cell method to place the data in Excel. This works for templates that do not change. If the templates change maintenance with this method becomes prohibitive. In those cases the more sophisticated method is to store data (such as an acct number and column offset) in columns A & B of the spreadsheet. I then read col A & B of the spreadsheet and create a temp table with the acct number from column A, the column number from column B and the row number (which I can determine). This table is then joined with the data by account number creating a recordset with the data to be pasted and the row and column number in which to paste it. I then iterate through the recordset something like this: 'Load Data into Excel If Not (rstData.BOF And rstData.EOF) Then Do While Not rstData.EOF intBmonth = rstData(strMo) + rstData(strColOffset) intRow = rstData(strRowNo) wksUpl.Cells(intRow, intBmonth) = rstData(strAmt) rstData.MoveNext Loop HTH Jim Hale *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From jwcolby at ColbyConsulting.com Wed Feb 1 11:02:30 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 1 Feb 2006 12:02:30 -0500 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9D6@corp-es01.fleetpride.com> Message-ID: <014701c62751$4a3f1440$657aa8c0@ColbyM6805> Gustav, Jim, Nope, what I was looking for was .Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex In this case at least, strRange can be in the form "B23", referencing column B, row 23. I have a query that pulls the system column (a letter), the Document Row (a number) and the document status color index (a number) With my existing Excel class to open the spreadsheet, make a copy, and hand me back a worksheet, the entire code snippet runs in ~50 seconds, coloring 11783 cells - 91 systems with 159 documents. The code looks like: Function TestExcelColors() On Error GoTo Err_TestExcelColors Dim db As DAO.Database Dim rst As DAO.Recordset Dim strRange As String Dim lclsTimer As clsTimer Set lclsTimer = New clsTimer lclsTimer.StartTimer ' 'Get the recordset used to populate the colors in the spreadsheet ' Set db = CurrentDb Set rst = db.OpenRecordset("qDoc2ContractorBase") ExcelInit With cExc ' 'Get the spreadsheet and copy it to a new location ' .mXLWBOpen "X:\BuildingCommissioning\RFD\UpdateTopMatrixReported.xls", "X:\BuildingCommissioning\RFD\UpdateTopMatrix.xls", True rst.MoveFirst While Not rst.EOF ' 'Turn the column/row info into a string ' strRange = rst!SYS_SpreadsheetColumn & rst!DOC_SpreadsheetRow ' 'set the colorindex for that cell ' .cWS.Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex rst.MoveNext Wend End With Debug.Print "Time to Color Spreadsheet: " & lclsTimer.EndTimer Exit_TestExcelColors: Exit Function Err_TestExcelColors: MsgBox Err.Description, , "Error in Function basExcelInit.TestExcelColors" Resume Exit_TestExcelColors Resume 0 '.FOR TROUBLESHOOTING 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 Hale, Jim Sent: Wednesday, February 01, 2006 11:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells Is this what you are looking for? 'flip sign on vendor rebates '--------------------------- .Sheets("misc").Select For i = 6 To 11 .Cells(25, i) = -(.Cells(25, i)) Next i Or something like this? Jim Hale Function loadData_Excel(Dept As Integer, Co As Integer, ModelName As String, XcelWS As String, PlGroup As String, qryStr As String) Dim qdfTemp As QueryDef, dbs As Database, rs As Recordset Dim intRow As Integer, intBmonth As Integer, strWorksheet As String 'load data from recordset into spreadsheet Set dbs = CurrentDb Set qdfTemp = dbs.QueryDefs(qryStr) qdfTemp.Parameters("Deptnum") = Dept qdfTemp.Parameters("Co") = Co qdfTemp.Parameters("Model") = ModelName qdfTemp.Parameters("Worksheet") = XcelWS qdfTemp.Parameters("PlGroup") = PlGroup Set rs = qdfTemp.OpenRecordset() If Not (rs.BOF And rs.EOF) Then strWorksheet = rs("fldWorksheet") appexcel.Sheets(strWorksheet).Select Do While Not rs.EOF intBmonth = rs("Bmonth") + rs("fldColumnoffset") intRow = rs("fldRowno") appexcel.Cells(intRow, intBmonth) = rs("amt") rs.MoveNext Loop End If The_End: If Not (qdfTemp Is Nothing) Then qdfTemp.Close: Set qdfTemp = Nothing If Not (rs Is Nothing) Then rs.Close: Set rs = Nothing If Not (dbs Is Nothing) Then dbs.Close: Set dbs = Nothing End Function -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 01, 2006 9:51 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Manipulating Excel Cells I'm baaaack. ;-) Here's the deal. I am working with a spreadsheet that has columns of systems and rows of documents. Therefore each cell represents a system-document. BTW, this was a "source" for me to build a pair of tables - tblSystem and tblDocument. I then added a field to tblDocument called SpreadsheetRow and a field to tblSystem called SpreadsheetColumn. We are tracking the receipt of these documents. The client now wants to see, back in his original spreadsheet, the "status" of a given system document using colors to express the status - white = not assigned, red = not received, yellow = partial receipt, green = received. So... I have to go "poke colors" out into the spreadsheet. I have discovered the "area" property which has a color attribute. What I need now is a translation from the column LETTERS to a column number since for some bizarre reason the columns have letter names but cells are referenced by column numbers. "Brain damaged children" as Bill Cosby would say. Does anyone have code for manipulating cells by cell(intRowNumbers, strColNames)? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at outbaktech.com Wed Feb 1 11:06:43 2006 From: Jeff at outbaktech.com (Jeff Barrows) Date: Wed, 1 Feb 2006 11:06:43 -0600 Subject: [AccessD] Manipulating Excel Cells Message-ID: John, I have done something similar to this not too long ago. I will look for the specific code samples and send them to you as soon as possible (might not be able to send them till tomorrow). Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Rocky Smolin - Beach Access Software Sent: Wed 2/1/2006 10:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Manipulating Excel Cells Can you use the old trick of recording a macro and looking at the code? Rocky John Colby wrote: > I'm baaaack. ;-) > > Here's the deal. I am working with a spreadsheet that has columns of > systems and rows of documents. Therefore each cell represents a > system-document. BTW, this was a "source" for me to build a pair of tables > - tblSystem and tblDocument. I then added a field to tblDocument called > SpreadsheetRow and a field to tblSystem called SpreadsheetColumn. > > > We are tracking the receipt of these documents. The client now wants to > see, back in his original spreadsheet, the "status" of a given system > document using colors to express the status - white = not assigned, red = > not received, yellow = partial receipt, green = received. > > So... I have to go "poke colors" out into the spreadsheet. I have > discovered the "area" property which has a color attribute. What I need now > is a translation from the column LETTERS to a column number since for some > bizarre reason the columns have letter names but cells are referenced by > column numbers. "Brain damaged children" as Bill Cosby would say. > > Does anyone have code for manipulating cells by cell(intRowNumbers, > strColNames)? > > John W. Colby > www.ColbyConsulting.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Wed Feb 1 11:07:34 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 01 Feb 2006 11:07:34 -0600 Subject: [AccessD] IBM DB2 Express-C free to use In-Reply-To: References: Message-ID: <6.2.3.4.2.20060201110642.032c6388@pop3.highstream.net> 1.0 thru 8 :-) IBM makes a very good database. It has just been out of the reach of small developers. At 10:20 AM 2/1/2006, you wrote: >Date: Tue, 31 Jan 2006 19:55:50 +0100 >From: "Gustav Brock" >Subject: Re: [AccessD] IBM DB2 Express-C free to use >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Robert > >Any comments on it? Or was that prior to version 8.2? > >/gustav From rl_stewart at highstream.net Wed Feb 1 11:08:09 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 01 Feb 2006 11:08:09 -0600 Subject: [AccessD] IBM DB2 Express-C free to use In-Reply-To: References: Message-ID: <6.2.3.4.2.20060201110747.03339f50@pop3.highstream.net> I am in the process of downloading it now. At 10:20 AM 2/1/2006, you wrote: >Date: Tue, 31 Jan 2006 19:58:10 +0100 >From: "Gustav Brock" >Subject: Re: [AccessD] IBM DB2 Express-C free to use >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Robert > >I succeeded in the fourth attempt. >Be patient - it looks like the news are traveling across the world ... > >/gustav From bchacc at san.rr.com Wed Feb 1 11:17:34 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 01 Feb 2006 09:17:34 -0800 Subject: [AccessD] OT: Linux, Open Suite and Access In-Reply-To: <000f01c62750$8e055960$017ba8c0@xpserver> References: <000f01c62750$8e055960$017ba8c0@xpserver> Message-ID: <43E0ED2E.7040104@san.rr.com> Thanks, Jim. Rocky Jim Lawrence wrote: > Hi Rocky: > > No, but my son-in-law does and I will pass it on to him. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: February 1, 2006 6:19 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT: Linux, Open Suite and Access > > A potential distributor in France writes to me and asks: > > "I shall like asking you a question: Is it possible 'to migrate' E-Z MRP > under Linux? There is an equivalent of Office Pro which is ' OpenSuite ' > And in this Suite, there is a given compatible Access database. I think > that it would be a good idea to supply one package (Free open > distribution of Linux and OpenSuite +EZ-MRP) with a very competitive price." > > Does anyone know anything about porting an Access app to OpenSuite? > > MTIA, > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From rl_stewart at highstream.net Wed Feb 1 11:14:46 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 01 Feb 2006 11:14:46 -0600 Subject: [AccessD] InterSystems Cach? database engine In-Reply-To: References: Message-ID: <6.2.3.4.2.20060201111335.03320500@pop3.highstream.net> I filled everything out about a year ago. And you intuition is correct...very expensive. At least in my opinion. At 10:20 AM 2/1/2006, you wrote: > >> Anyone know the pricing? The site requires you to fill out a survey to > >> get pricing ... If the price isn't on the site, for anything, it's > >> ususally way too expensive. From Gustav at cactus.dk Wed Feb 1 11:26:06 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Feb 2006 18:26:06 +0100 Subject: [AccessD] Manipulating Excel Cells Message-ID: Hi John That can be done. So your problem is solved? /gustav >>> jwcolby at ColbyConsulting.com 01-02-2006 18:02:30 >>> Gustav, Jim, Nope, what I was looking for was .Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex In this case at least, strRange can be in the form "B23", referencing column B, row 23. From Jim.Hale at FleetPride.com Wed Feb 1 11:33:28 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 1 Feb 2006 11:33:28 -0600 Subject: [AccessD] Manipulating Excel Cells Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9D9@corp-es01.fleetpride.com> John, You do not have to reference columns by letters in a range object. Stmts like .Range(.Cells(2, intCopycol), .Cells(47, intCopycol)) work and can be used in loops. Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 01, 2006 11:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells Gustav, Jim, Nope, what I was looking for was .Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex In this case at least, strRange can be in the form "B23", referencing column B, row 23. I have a query that pulls the system column (a letter), the Document Row (a number) and the document status color index (a number) With my existing Excel class to open the spreadsheet, make a copy, and hand me back a worksheet, the entire code snippet runs in ~50 seconds, coloring 11783 cells - 91 systems with 159 documents. The code looks like: Function TestExcelColors() On Error GoTo Err_TestExcelColors Dim db As DAO.Database Dim rst As DAO.Recordset Dim strRange As String Dim lclsTimer As clsTimer Set lclsTimer = New clsTimer lclsTimer.StartTimer ' 'Get the recordset used to populate the colors in the spreadsheet ' Set db = CurrentDb Set rst = db.OpenRecordset("qDoc2ContractorBase") ExcelInit With cExc ' 'Get the spreadsheet and copy it to a new location ' .mXLWBOpen "X:\BuildingCommissioning\RFD\UpdateTopMatrixReported.xls", "X:\BuildingCommissioning\RFD\UpdateTopMatrix.xls", True rst.MoveFirst While Not rst.EOF ' 'Turn the column/row info into a string ' strRange = rst!SYS_SpreadsheetColumn & rst!DOC_SpreadsheetRow ' 'set the colorindex for that cell ' .cWS.Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex rst.MoveNext Wend End With Debug.Print "Time to Color Spreadsheet: " & lclsTimer.EndTimer Exit_TestExcelColors: Exit Function Err_TestExcelColors: MsgBox Err.Description, , "Error in Function basExcelInit.TestExcelColors" Resume Exit_TestExcelColors Resume 0 '.FOR TROUBLESHOOTING End Function John W. Colby www.ColbyConsulting.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Gustav at cactus.dk Wed Feb 1 11:34:53 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Feb 2006 18:34:53 +0100 Subject: [AccessD] IBM DB2 Express-C free to use Message-ID: Hi Robert Oh, so you are a true DB2 veteran! I played around a little with version 7 but had no real purpose for it, and anything DB2 sounded quite expensive, so ... But with this edition the picture has changed. /gustav >>> rl_stewart at highstream.net 01-02-2006 18:07:34 >>> 1.0 thru 8 :-) IBM makes a very good database. It has just been out of the reach of small developers. At 10:20 AM 2/1/2006, you wrote: >Date: Tue, 31 Jan 2006 19:55:50 +0100 >From: "Gustav Brock" >Subject: Re: [AccessD] IBM DB2 Express-C free to use >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Robert > >Any comments on it? Or was that prior to version 8.2? > >/gustav From martyconnelly at shaw.ca Wed Feb 1 12:33:14 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 01 Feb 2006 10:33:14 -0800 Subject: [AccessD] IBM DB2 Express-C free to use References: Message-ID: <43E0FEEA.9070905@shaw.ca> DB2 has been around since 1982. Actually there were two of them SQL/DS ran on the VSE and VM operating systems. It came to market in the early 1980s. A little later, IBM also introduced DB2, another SQL-based DBMS, this one for the MVS operating system. The two products have coexisted since then; however, SQL/DS was rebranded as "DB2 for VM and VSE" in the late 1990s. I have been a plebe Cobol programmer using DB2 in the late 90's, never allowed near the actual live or test databases. The DBA's all seemed to have British knighthood's like the GCMG; some people say the various levels of the Cross of Michael and St. George actually stands for CMG -call me god, KCMG kindly call me god: GCMG god calls me god. Gustav Brock wrote: >Hi Robert > >Oh, so you are a true DB2 veteran! > >I played around a little with version 7 but had no real purpose for it, and anything DB2 sounded quite expensive, so ... >But with this edition the picture has changed. > >/gustav > > > >>>>rl_stewart at highstream.net 01-02-2006 18:07:34 >>> >>>> >>>> >1.0 thru 8 :-) > >IBM makes a very good database. It has just been out of the reach of >small developers. > >At 10:20 AM 2/1/2006, you wrote: > > >>Date: Tue, 31 Jan 2006 19:55:50 +0100 >>From: "Gustav Brock" >>Subject: Re: [AccessD] IBM DB2 Express-C free to use >>To: >>Message-ID: >>Content-Type: text/plain; charset=US-ASCII >> >>Hi Robert >> >>Any comments on it? Or was that prior to version 8.2? >> >>/gustav >> >> > > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at ColbyConsulting.com Wed Feb 1 12:35:49 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 1 Feb 2006 13:35:49 -0500 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: Message-ID: <017d01c6275e$535ef920$657aa8c0@ColbyM6805> >So your problem is solved? Uhhhh yep. 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: Wednesday, February 01, 2006 12:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Manipulating Excel Cells Hi John That can be done. So your problem is solved? /gustav >>> jwcolby at ColbyConsulting.com 01-02-2006 18:02:30 >>> Gustav, Jim, Nope, what I was looking for was .Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex In this case at least, strRange can be in the form "B23", referencing column B, row 23. -- 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 1 12:41:13 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 1 Feb 2006 13:41:13 -0500 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9D9@corp-es01.fleetpride.com> Message-ID: <017e01c6275f$149085f0$657aa8c0@ColbyM6805> Jim, When you look in a spreadsheet you do not "SEE" column numbers, you see letters. I have columns e through CM or something like that. For some odd reason Z is not used, az,bz etc. No se por que. So what I was looking for (and found) was a syntax for using column letters instead of the silly cell(31,29). What column is 29? What "number" is column BA? Why do we "see" a column letter but address the cell with 31,22? And of course I know the answer to the last, so that they can be manipulated with counters in code, but in this case I have a column LETTER, not a column NUMBER. worksheet.Range(strRange) is the answer. I can use a string "B3" using that syntax. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Wednesday, February 01, 2006 12:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells John, You do not have to reference columns by letters in a range object. Stmts like .Range(.Cells(2, intCopycol), .Cells(47, intCopycol)) work and can be used in loops. Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 01, 2006 11:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells Gustav, Jim, Nope, what I was looking for was .Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex In this case at least, strRange can be in the form "B23", referencing column B, row 23. I have a query that pulls the system column (a letter), the Document Row (a number) and the document status color index (a number) With my existing Excel class to open the spreadsheet, make a copy, and hand me back a worksheet, the entire code snippet runs in ~50 seconds, coloring 11783 cells - 91 systems with 159 documents. The code looks like: Function TestExcelColors() On Error GoTo Err_TestExcelColors Dim db As DAO.Database Dim rst As DAO.Recordset Dim strRange As String Dim lclsTimer As clsTimer Set lclsTimer = New clsTimer lclsTimer.StartTimer ' 'Get the recordset used to populate the colors in the spreadsheet ' Set db = CurrentDb Set rst = db.OpenRecordset("qDoc2ContractorBase") ExcelInit With cExc ' 'Get the spreadsheet and copy it to a new location ' .mXLWBOpen "X:\BuildingCommissioning\RFD\UpdateTopMatrixReported.xls", "X:\BuildingCommissioning\RFD\UpdateTopMatrix.xls", True rst.MoveFirst While Not rst.EOF ' 'Turn the column/row info into a string ' strRange = rst!SYS_SpreadsheetColumn & rst!DOC_SpreadsheetRow ' 'set the colorindex for that cell ' .cWS.Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex rst.MoveNext Wend End With Debug.Print "Time to Color Spreadsheet: " & lclsTimer.EndTimer Exit_TestExcelColors: Exit Function Err_TestExcelColors: MsgBox Err.Description, , "Error in Function basExcelInit.TestExcelColors" Resume Exit_TestExcelColors Resume 0 '.FOR TROUBLESHOOTING End Function John W. Colby www.ColbyConsulting.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- 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 1 13:03:20 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Feb 2006 20:03:20 +0100 Subject: [AccessD] IBM DB2 Express-C free to use Message-ID: Thanks Marty! Seems like one better start out with a modest DCMG (Don't Call Me God). /gustav >>> martyconnelly at shaw.ca 01-02-2006 19:33:14 >>> DB2 has been around since 1982. Actually there were two of them SQL/DS ran on the VSE and VM operating systems. It came to market in the early 1980s. A little later, IBM also introduced DB2, another SQL-based DBMS, this one for the MVS operating system. The two products have coexisted since then; however, SQL/DS was rebranded as "DB2 for VM and VSE" in the late 1990s. I have been a plebe Cobol programmer using DB2 in the late 90's, never allowed near the actual live or test databases. The DBA's all seemed to have British knighthood's like the GCMG; some people say the various levels of the Cross of Michael and St. George actually stands for CMG -call me god, KCMG kindly call me god: GCMG god calls me god. Gustav Brock wrote: >Hi Robert > >Oh, so you are a true DB2 veteran! > >I played around a little with version 7 but had no real purpose for it, and anything DB2 sounded quite expensive, so ... >But with this edition the picture has changed. From cfoust at infostatsystems.com Wed Feb 1 13:14:30 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 1 Feb 2006 11:14:30 -0800 Subject: [AccessD] Manipulating Excel Cells Message-ID: LOL! You must never have worked with MultiPlan, John. It took me forever to get used to column letters in Excel ... Especially when the macro language still used the numeric row and column designators! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 01, 2006 10:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells Jim, When you look in a spreadsheet you do not "SEE" column numbers, you see letters. I have columns e through CM or something like that. For some odd reason Z is not used, az,bz etc. No se por que. So what I was looking for (and found) was a syntax for using column letters instead of the silly cell(31,29). What column is 29? What "number" is column BA? Why do we "see" a column letter but address the cell with 31,22? And of course I know the answer to the last, so that they can be manipulated with counters in code, but in this case I have a column LETTER, not a column NUMBER. worksheet.Range(strRange) is the answer. I can use a string "B3" using that syntax. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Wednesday, February 01, 2006 12:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells John, You do not have to reference columns by letters in a range object. Stmts like .Range(.Cells(2, intCopycol), .Cells(47, intCopycol)) work and can be used in loops. Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 01, 2006 11:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells Gustav, Jim, Nope, what I was looking for was .Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex In this case at least, strRange can be in the form "B23", referencing column B, row 23. I have a query that pulls the system column (a letter), the Document Row (a number) and the document status color index (a number) With my existing Excel class to open the spreadsheet, make a copy, and hand me back a worksheet, the entire code snippet runs in ~50 seconds, coloring 11783 cells - 91 systems with 159 documents. The code looks like: Function TestExcelColors() On Error GoTo Err_TestExcelColors Dim db As DAO.Database Dim rst As DAO.Recordset Dim strRange As String Dim lclsTimer As clsTimer Set lclsTimer = New clsTimer lclsTimer.StartTimer ' 'Get the recordset used to populate the colors in the spreadsheet ' Set db = CurrentDb Set rst = db.OpenRecordset("qDoc2ContractorBase") ExcelInit With cExc ' 'Get the spreadsheet and copy it to a new location ' .mXLWBOpen "X:\BuildingCommissioning\RFD\UpdateTopMatrixReported.xls", "X:\BuildingCommissioning\RFD\UpdateTopMatrix.xls", True rst.MoveFirst While Not rst.EOF ' 'Turn the column/row info into a string ' strRange = rst!SYS_SpreadsheetColumn & rst!DOC_SpreadsheetRow ' 'set the colorindex for that cell ' .cWS.Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex rst.MoveNext Wend End With Debug.Print "Time to Color Spreadsheet: " & lclsTimer.EndTimer Exit_TestExcelColors: Exit Function Err_TestExcelColors: MsgBox Err.Description, , "Error in Function basExcelInit.TestExcelColors" Resume Exit_TestExcelColors Resume 0 '.FOR TROUBLESHOOTING End Function John W. Colby www.ColbyConsulting.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Wed Feb 1 14:19:51 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 1 Feb 2006 14:19:51 -0600 Subject: [AccessD] Manipulating Excel Cells Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9E0@corp-es01.fleetpride.com> Glad you got it working. BTW if you want to "see" numbers go and check R1C1 reference style. The spreadsheet column headings will become numbers. Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 01, 2006 12:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells Jim, When you look in a spreadsheet you do not "SEE" column numbers, you see letters. I have columns e through CM or something like that. For some odd reason Z is not used, az,bz etc. No se por que. So what I was looking for (and found) was a syntax for using column letters instead of the silly cell(31,29). What column is 29? What "number" is column BA? Why do we "see" a column letter but address the cell with 31,22? And of course I know the answer to the last, so that they can be manipulated with counters in code, but in this case I have a column LETTER, not a column NUMBER. worksheet.Range(strRange) is the answer. I can use a string "B3" using that syntax. John W. Colby www.ColbyConsulting.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From rl_stewart at highstream.net Wed Feb 1 16:04:42 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 01 Feb 2006 16:04:42 -0600 Subject: [AccessD] IBM DB2 Express-C free to use In-Reply-To: References: Message-ID: <6.2.3.4.2.20060201160339.03302730@pop3.highstream.net> I agree. That is why I downloaded it. I would not mind doing a small db with it to compare with SQL Express and see who wins the speed tests. :-) Robert At 12:00 PM 2/1/2006, you wrote: >Date: Wed, 01 Feb 2006 18:34:53 +0100 >From: "Gustav Brock" >Subject: Re: [AccessD] IBM DB2 Express-C free to use >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Robert > >Oh, so you are a true DB2 veteran! > >I played around a little with version 7 but had no real purpose for >it, and anything DB2 sounded quite expensive, so ... >But with this edition the picture has changed. > >/gustav From stuart at lexacorp.com.pg Wed Feb 1 16:49:07 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 02 Feb 2006 08:49:07 +1000 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: <017e01c6275f$149085f0$657aa8c0@ColbyM6805> References: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9D9@corp-es01.fleetpride.com> Message-ID: <43E1C783.11551.12141D6C@stuart.lexacorp.com.pg> On 1 Feb 2006 at 13:41, John Colby wrote: > > So what I was looking for (and found) was a syntax for using column letters > instead of the silly cell(31,29). What column is 29? What "number" is > column BA? In case you need it in future: Function ColNumToName(ColNum As Long) As String If ColNum < 27 Then ColNumToName = Chr$(ColNum + 64) Else ColNumToName = _ Chr$(Int((ColNum - 1) \ 26) + 64) _ + Chr$((ColNum - 1) Mod 26 + 65) End If End Function Function ColNameToNum(ColName As String) As Long If Len(ColName) = 1 Then ColNameToNum = Asc(UCase$(ColName)) - 64 Else ColNameToNum = 26 * (Asc(UCase$(Left$(ColName, 1))) _ - 64) + Asc(UCase$(Right$(ColName, 1))) - 64 End If End Function -- Stuart From jwcolby at ColbyConsulting.com Wed Feb 1 16:59:47 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 1 Feb 2006 17:59:47 -0500 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: <43E1C783.11551.12141D6C@stuart.lexacorp.com.pg> Message-ID: <019701c62783$33a5c9e0$657aa8c0@ColbyM6805> Yeeehaaaw! I found what appears to be an equivalent function out on the web but it was a full page of code. 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: Wednesday, February 01, 2006 5:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Manipulating Excel Cells On 1 Feb 2006 at 13:41, John Colby wrote: > > So what I was looking for (and found) was a syntax for using column > letters instead of the silly cell(31,29). What column is 29? What > "number" is column BA? In case you need it in future: Function ColNumToName(ColNum As Long) As String If ColNum < 27 Then ColNumToName = Chr$(ColNum + 64) Else ColNumToName = _ Chr$(Int((ColNum - 1) \ 26) + 64) _ + Chr$((ColNum - 1) Mod 26 + 65) End If End Function Function ColNameToNum(ColName As String) As Long If Len(ColName) = 1 Then ColNameToNum = Asc(UCase$(ColName)) - 64 Else ColNameToNum = 26 * (Asc(UCase$(Left$(ColName, 1))) _ - 64) + Asc(UCase$(Right$(ColName, 1))) - 64 End If End Function -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Wed Feb 1 18:11:13 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 1 Feb 2006 16:11:13 -0800 Subject: [AccessD] Automation error with Outlook 2003 In-Reply-To: <019701c62783$33a5c9e0$657aa8c0@ColbyM6805> Message-ID: <000001c6278d$2d8ec0c0$0200a8c0@murphyf3vdfepi> Folks, I have an app developed in Access 2002 that sends html formated e-mail using outlook automation. The app works fine on my computer; WindowsXP, and AccessXP Developer. The app runs fine on another computer we have with the same operating system and OfficeXP. Tested it on a computer with WindowsXP and Office 2003 and now I am getting an "error -2147024770(Automation Error. The specified module could not be found.)". My code uses late binding since I can not be sure what version of Outlook folks will have on their computers. The Code is as follows. ------------------------------------------------------ Dim oOut As Object Dim mItem As Object On Error GoTo WriteMessage_Error 'create new e-mailitem and display without sending Set oOut = CreateObject("Outlook.Application") Set mItem = oOut.CreateItem(0) --------------------------------------------- The error occurs on the line with CreateObject. I have done some searching on the web for this but can not find any specific causes. Any help greatfully appreciated. Doug From KIsmert at texassystems.com Wed Feb 1 19:21:39 2006 From: KIsmert at texassystems.com (Ken Ismert) Date: Wed, 1 Feb 2006 19:21:39 -0600 Subject: [AccessD] OT: Linux, Open Suite and Access Message-ID: Rocky, >> Does anyone know anything about porting an Access app to OpenSuite? Actually, I've been looking at OpenOffice, and its data component, Base. The Base application window looks something like the Access window (table, query, form and report designers). But the forms and reports aren't native objects, in the Access sense. These are handled as XML forms, and are hosted by Writer, Open Office's Word equivalent. There is broad scripting support: OpenOffice Basic, JavaScript and Python are supported. OpenOffice Basic looks a lot like VBA: http://api.openoffice.org/DevelopersGuide/DevelopersGuide.html Base uses HSQLDB ( http://hsqldb.org/ ) as its native backend. Let's just say it is very different from Jet. It seems to enjoy a good reputation, though. My initial reaction to Base: it is still very new, and not likely to support a sophisticated application like EZ-MRP without a lot of bleeding-edge development. You can easily link to Jet backend tables, but you would have to rebuild the front-end from scratch (all queries, forms, reports, underlying code, etc...) Base looks promising, and I've been impressed with the Writer program, and how well it interoperates with Word document files. Base is worthy of looking at and experimenting with, but I feel it would be far from an easy task to migrate a full-blown Access app to Base at its current stage of development. -Ken PS: Check out Koffice, another open source alternative to OpenOffice: http://www.koffice.org/ It has its own data component, Kexi: http://www.koffice.org/kexi/ My guess is that Kexi is not nearly as far along as Base is, but I will be checking it out, too, in the near future. From jwcolby at ColbyConsulting.com Wed Feb 1 20:23:58 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 1 Feb 2006 21:23:58 -0500 Subject: [AccessD] Automation error with Outlook 2003 In-Reply-To: <000001c6278d$2d8ec0c0$0200a8c0@murphyf3vdfepi> Message-ID: <019801c6279f$b9862f20$657aa8c0@ColbyM6805> It sounds like outlook is not installed on that computer, or is corrupted. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Wednesday, February 01, 2006 7:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automation error with Outlook 2003 Folks, I have an app developed in Access 2002 that sends html formated e-mail using outlook automation. The app works fine on my computer; WindowsXP, and AccessXP Developer. The app runs fine on another computer we have with the same operating system and OfficeXP. Tested it on a computer with WindowsXP and Office 2003 and now I am getting an "error -2147024770(Automation Error. The specified module could not be found.)". My code uses late binding since I can not be sure what version of Outlook folks will have on their computers. The Code is as follows. ------------------------------------------------------ Dim oOut As Object Dim mItem As Object On Error GoTo WriteMessage_Error 'create new e-mailitem and display without sending Set oOut = CreateObject("Outlook.Application") Set mItem = oOut.CreateItem(0) --------------------------------------------- The error occurs on the line with CreateObject. I have done some searching on the web for this but can not find any specific causes. Any help greatfully appreciated. Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Wed Feb 1 20:38:43 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 1 Feb 2006 21:38:43 -0500 Subject: [AccessD] OT: Linux, Open Suite and Access In-Reply-To: <43E0ED2E.7040104@san.rr.com> References: <000f01c62750$8e055960$017ba8c0@xpserver> <43E0ED2E.7040104@san.rr.com> Message-ID: On 01/02/06, Rocky Smolin - Beach Access Software wrote: > Thanks, Jim. If you want to read a bit about it, and how to create a simple 1 table app with the built in wizards in Base, there is an article in this month's Tux Magazine (free on-line Linux Magazine) available from: http://download3.ssc.com/tux/TUX_Issue10_Feb2006.pdf -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From carbonnb at gmail.com Wed Feb 1 20:41:24 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 1 Feb 2006 21:41:24 -0500 Subject: [AccessD] OT: Linux, Open Suite and Access In-Reply-To: References: Message-ID: On 01/02/06, Ken Ismert wrote: > PS: Check out Koffice, another open source alternative to OpenOffice: > > http://www.koffice.org/ > > It has its own data component, Kexi: > > http://www.koffice.org/kexi/ > > My guess is that Kexi is not nearly as far along as Base is, but I will > be checking it out, too, in the near future. the problem with KOffice is that it is only native to Linux, and the KDE Destop specifically. Yes you can run it on Windows with KDE Cygwin, but it's not a native windows app. Whereas OOo is. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From dw-murphy at cox.net Wed Feb 1 21:36:32 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 1 Feb 2006 19:36:32 -0800 Subject: [AccessD] Automation error with Outlook 2003 In-Reply-To: <019801c6279f$b9862f20$657aa8c0@ColbyM6805> Message-ID: <000701c627a9$dc40fa40$0200a8c0@murphyf3vdfepi> Hi John, That was the general thrust of most of the stuff I found on the web. I finally found a thread on one of the information lists that had the same error, code, etc and the guy said that he had a resoponse from MS $ per call help to modify the code as follows. Set oOut = CreateObject("Outlook.Application", "localhost") I tried this and it worked to the point where I found the real problem with Outlook. The problem was that Outlook was set to use Word as it e-mail editor and we have a Dimo printer installed on the lap top that puts hooks into all the Office programs. The Dimo macros were trying to fire when Outlook created the e-mail in Word. What a convoluted web MS allows us to create. Thank goodnes for the web and search engines. MS had nothing on any of this. I change the e-mail editor for Outlook to HTML and used the above code and all is well. Maybe this will save some one else the couple of hours I screwed with this. Thanks for your input. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 01, 2006 6:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation error with Outlook 2003 It sounds like outlook is not installed on that computer, or is corrupted. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Wednesday, February 01, 2006 7:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automation error with Outlook 2003 Folks, I have an app developed in Access 2002 that sends html formated e-mail using outlook automation. The app works fine on my computer; WindowsXP, and AccessXP Developer. The app runs fine on another computer we have with the same operating system and OfficeXP. Tested it on a computer with WindowsXP and Office 2003 and now I am getting an "error -2147024770(Automation Error. The specified module could not be found.)". My code uses late binding since I can not be sure what version of Outlook folks will have on their computers. The Code is as follows. ------------------------------------------------------ Dim oOut As Object Dim mItem As Object On Error GoTo WriteMessage_Error 'create new e-mailitem and display without sending Set oOut = CreateObject("Outlook.Application") Set mItem = oOut.CreateItem(0) --------------------------------------------- The error occurs on the line with CreateObject. I have done some searching on the web for this but can not find any specific causes. Any help greatfully appreciated. 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 bchacc at san.rr.com Wed Feb 1 21:47:33 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 01 Feb 2006 19:47:33 -0800 Subject: [AccessD] OT: Linux, Open Suite and Access In-Reply-To: References: Message-ID: <43E180D5.5010603@san.rr.com> Ken: "you would have to rebuild the front-end from scratch (all queries,forms, reports, underlying code, etc...) " That's what I was afraid of/needed to know. Thanks. Rocky Ken Ismert wrote: > Rocky, > > >>> Does anyone know anything about porting an Access app to OpenSuite? >>> > > Actually, I've been looking at OpenOffice, and its data component, Base. > > > The Base application window looks something like the Access window > (table, query, form and report designers). But the forms and reports > aren't native objects, in the Access sense. These are handled as XML > forms, and are hosted by Writer, Open Office's Word equivalent. > > There is broad scripting support: OpenOffice Basic, JavaScript and > Python are supported. OpenOffice Basic looks a lot like VBA: > > http://api.openoffice.org/DevelopersGuide/DevelopersGuide.html > > Base uses HSQLDB ( http://hsqldb.org/ ) as its native backend. Let's > just say it is very different from Jet. It seems to enjoy a good > reputation, though. > > My initial reaction to Base: it is still very new, and not likely to > support a sophisticated application like EZ-MRP without a lot of > bleeding-edge development. You can easily link to Jet backend tables, > but you would have to rebuild the front-end from scratch (all queries, > forms, reports, underlying code, etc...) > > Base looks promising, and I've been impressed with the Writer program, > and how well it interoperates with Word document files. Base is worthy > of looking at and experimenting with, but I feel it would be far from an > easy task to migrate a full-blown Access app to Base at its current > stage of development. > > -Ken > > PS: Check out Koffice, another open source alternative to OpenOffice: > > http://www.koffice.org/ > > It has its own data component, Kexi: > > http://www.koffice.org/kexi/ > > My guess is that Kexi is not nearly as far along as Base is, but I will > be checking it out, too, in the near future. > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jwcolby at ColbyConsulting.com Wed Feb 1 22:19:35 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 1 Feb 2006 23:19:35 -0500 Subject: [AccessD] Automation error with Outlook 2003 In-Reply-To: <000701c627a9$dc40fa40$0200a8c0@murphyf3vdfepi> Message-ID: <019f01c627af$e023cb00$657aa8c0@ColbyM6805> LOL. And why is a printer hooking office apps? Good catch! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Wednesday, February 01, 2006 10:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation error with Outlook 2003 Hi John, That was the general thrust of most of the stuff I found on the web. I finally found a thread on one of the information lists that had the same error, code, etc and the guy said that he had a resoponse from MS $ per call help to modify the code as follows. Set oOut = CreateObject("Outlook.Application", "localhost") I tried this and it worked to the point where I found the real problem with Outlook. The problem was that Outlook was set to use Word as it e-mail editor and we have a Dimo printer installed on the lap top that puts hooks into all the Office programs. The Dimo macros were trying to fire when Outlook created the e-mail in Word. What a convoluted web MS allows us to create. Thank goodnes for the web and search engines. MS had nothing on any of this. I change the e-mail editor for Outlook to HTML and used the above code and all is well. Maybe this will save some one else the couple of hours I screwed with this. Thanks for your input. Doug From john at winhaven.net Wed Feb 1 23:45:20 2006 From: john at winhaven.net (John Bartow) Date: Wed, 1 Feb 2006 23:45:20 -0600 Subject: [AccessD] Automation error with Outlook 2003 In-Reply-To: <019f01c627af$e023cb00$657aa8c0@ColbyM6805> Message-ID: <00fc01c627bb$dadecd00$7801a8c0@ScuzzPaq> Definitely a good catch! FYI: Dymo installs hooks into Outlook, Word and some other apps. This is a choice when installing and I think it defaults to yes for those two and no to the rest. Anyway it's a pretty neat little app if you do a lot of single labels for mailing or whatever. For instance in Outlook you click a contact and then the Dymo icon and you've got label printing. I also downloaded the QuickBooks add-in which works for QB vendor & customers the same as the Outlook add-in. In Word it will search for the addresses in a document and print them after confirmation. Or I think you can just select the address to save time. I will tell though. I do not use the Word add-in. It has caused me grief in the past. And if you don't print a lot of labels its better to not install any of them because it isn't that much extra work to open the Dymo software and copy and paste to it. I use my own Dymo modules for Access. They work superbly of course ;o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby LOL. And why is a printer hooking office apps? Good catch! John W. Colby www.ColbyConsulting.com From max at sherman.org.uk Thu Feb 2 02:10:36 2006 From: max at sherman.org.uk (Max Sherman) Date: Thu, 2 Feb 2006 08:10:36 -0000 Subject: [AccessD] OT:RAID and Access Projects In-Reply-To: <00fc01c627bb$dadecd00$7801a8c0@ScuzzPaq> Message-ID: <001101c627d0$291412a0$72f26051@server> Dear All, OT:RAID and Access Projects I have tons of projects, past and present, on my pc set up with 2xHD configured as Raid 1. This is causing me problems and I wish to remove it and revert back to 2 x HD. If I do this, will I loose all my data, programs and installations or will it just stop being a Raid and leave my systems and installations intact? I do not want to buy another HD just to have a temporary store and I definitely do not want to loose all my MS Access projects and associated setups. I would appreciate any advice on this please. Regards Max From Gustav at cactus.dk Thu Feb 2 03:08:56 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Feb 2006 10:08:56 +0100 Subject: [AccessD] Manipulating Excel Cells Message-ID: Hi John and Stuart But where would you need that? And if, one line of code will do: lngCol = 53 strCol = Left(wks.Columns(lngCol).Address(False, False), 1 + Sgn(lngCol \ 27)) strCol = "BA" lngCol = wks.Columns(strCol).Column /gustav >>> stuart at lexacorp.com.pg 01-02-2006 23:49:07 >>> On 1 Feb 2006 at 13:41, John Colby wrote: > > So what I was looking for (and found) was a syntax for using column letters > instead of the silly cell(31,29). What column is 29? What "number" is > column BA? In case you need it in future: Function ColNumToName(ColNum As Long) As String If ColNum < 27 Then ColNumToName = Chr$(ColNum + 64) Else ColNumToName = _ Chr$(Int((ColNum - 1) \ 26) + 64) _ + Chr$((ColNum - 1) Mod 26 + 65) End If End Function Function ColNameToNum(ColName As String) As Long If Len(ColName) = 1 Then ColNameToNum = Asc(UCase$(ColName)) - 64 Else ColNameToNum = 26 * (Asc(UCase$(Left$(ColName, 1))) _ - 64) + Asc(UCase$(Right$(ColName, 1))) - 64 End If End Function -- Stuart From stuart at lexacorp.com.pg Thu Feb 2 03:22:54 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 02 Feb 2006 19:22:54 +1000 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: Message-ID: <43E25C0E.31645.14585DAC@stuart.lexacorp.com.pg> On 2 Feb 2006 at 10:08, Gustav Brock wrote: > Hi John and Stuart > > But where would you need that? And if, one line of code will do: > > lngCol = 53 > strCol = Left(wks.Columns(lngCol).Address(False, False), 1 + Sgn(lngCol \ > 27)) > > strCol = "BA" > lngCol = wks.Columns(strCol).Column > Not really one line. You need to create "wks" -- Stuart From Erwin.Craps at ithelps.be Thu Feb 2 03:37:50 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 2 Feb 2006 10:37:50 +0100 Subject: [AccessD] OT:RAID and Access Projects Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B6322@stekelbes.ithelps.local> If software raid (windows) you will keep the data when splitting. If hardware raid, don't know for sure, I supose it depends on the card you are using. Check the card supplier support website. There is also a Technical mailing list on the database advisors. Better to scunscrbe to that list and do your post overhere... It is really of-of topic... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Sherman Sent: Thursday, February 02, 2006 9:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:RAID and Access Projects Dear All, OT:RAID and Access Projects I have tons of projects, past and present, on my pc set up with 2xHD configured as Raid 1. This is causing me problems and I wish to remove it and revert back to 2 x HD. If I do this, will I loose all my data, programs and installations or will it just stop being a Raid and leave my systems and installations intact? I do not want to buy another HD just to have a temporary store and I definitely do not want to loose all my MS Access projects and associated setups. I would appreciate any advice on this please. Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Robin at rolledgold.net Thu Feb 2 03:39:49 2006 From: Robin at rolledgold.net (Robin ) Date: Thu, 2 Feb 2006 09:39:49 -0000 Subject: [AccessD] OT:RAID and Access Projects Message-ID: <560E2B80EC8F624B93A87B943B7A9CD542F95B@rgiserv.rg.local> Max, Raid 1 - whether software or hardware should be able to unmirror the two discs then reconfigure the second as required, of course you'll lose the redundancy. Make sure you have a good backup !! - also I suggest you unmirror and boot from the first disk and check all is well before reconfiguring the second... Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Sherman Sent: 02 February 2006 08:11 To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:RAID and Access Projects Dear All, OT:RAID and Access Projects I have tons of projects, past and present, on my pc set up with 2xHD configured as Raid 1. This is causing me problems and I wish to remove it and revert back to 2 x HD. If I do this, will I loose all my data, programs and installations or will it just stop being a Raid and leave my systems and installations intact? I do not want to buy another HD just to have a temporary store and I definitely do not want to loose all my MS Access projects and associated setups. I would appreciate any advice on this please. Regards Max -- 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 2 03:46:50 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Feb 2006 10:46:50 +0100 Subject: [AccessD] OT:RAID and Access Projects Message-ID: Hi Max Sounds like you don't even have a backup! Buy an external USB harddrive and backup or copy all your stuff to this. As RAID1 is mirroring, the idea is that one drive could be lost without losing any data. Thus, you should be able to reconfigure your drive setup to not use RAID and only use one drive. When done and all is fine, reconfigure the other drive as to your liking. /gustav >>> max at sherman.org.uk 02-02-2006 09:10:36 >>> Dear All, OT:RAID and Access Projects I have tons of projects, past and present, on my pc set up with 2xHD configured as Raid 1. This is causing me problems and I wish to remove it and revert back to 2 x HD. If I do this, will I loose all my data, programs and installations or will it just stop being a Raid and leave my systems and installations intact? I do not want to buy another HD just to have a temporary store and I definitely do not want to loose all my MS Access projects and associated setups. I would appreciate any advice on this please. Regards Max From Gustav at cactus.dk Thu Feb 2 04:12:22 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Feb 2006 11:12:22 +0100 Subject: [AccessD] Manipulating Excel Cells Message-ID: Hi Stuart Well well, I hope everyone can see I used _two_ lines, still the essential code is one line. Also, I imagined that if you need this kind of code, you will be working in a worksheet, thus wks (or whatever you have chosen to call your worksheet object) will have been created previously. However, should that not be the case, and you cannot or will not manage the line of code for creating the worksheet object, you can follow this route: Worksheets(n).Columns( .. .. or even ActiveWorkbook.Worksheets(n).Columns( You will need to replace n with the index/name of the worksheet (1, 2, 3 etc. or "Sheet1" etc.) or - gosh - insert another line of code: n = 1 or n = "Sheet1" /gustav >>> stuart at lexacorp.com.pg 02-02-2006 10:22:54 >>> On 2 Feb 2006 at 10:08, Gustav Brock wrote: > Hi John and Stuart > > But where would you need that? And if, one line of code will do: > > lngCol = 53 > strCol = Left(wks.Columns(lngCol).Address(False, False), 1 + Sgn(lngCol \ > 27)) > > strCol = "BA" > lngCol = wks.Columns(strCol).Column > Not really one line. You need to create "wks" -- Stuart From accessd at shaw.ca Thu Feb 2 07:23:31 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 02 Feb 2006 05:23:31 -0800 Subject: [AccessD] OT:RAID and Access Projects In-Reply-To: <001101c627d0$291412a0$72f26051@server> Message-ID: <001301c627fb$dc850ee0$017ba8c0@xpserver> Hi Max: It depends on how your raid is configured. If it is raid 1, using hardware like 'Promise' technology then in theory the second drive is just a copy of the first. If you have used something like 'stripping' then the data is really spread evenly over the 2 drives. In both cases, I would 'Ghost' (if you have access to that Symantec's app) or image the drive(s) using any CD creator program (Nero, Roxy etc.) to a large external or connected drive (externals really cheap now... $150 CAD for 200GB USB drive) or attach the large new drive ($99.00 CAD) off your computer. (Most mother-boards support up to 3 drives per connector and all within the last 5 years have at least 2 and up to 6 connectors.) Then, either, depending on your configuration, if hardware Raid; set the jumper on the Motherboard or on the boot-up BIOS (that may be all there is to it if a Mirrored setup). After that just re-mage the saved image back to boot hard-drive or depending on how you have imaged/ghosted the old drive content to the new large drive, you may be able use the new drive as your start-up drive. Note; if you are re-building you original drive have a tested boot floppy or CD with the appropriate recovery tools. It sound wordy but it is a fairly straight forward process and it does depend on your current configuration. Further concerns would probably be better brought up on the DBA technology list or hardware supplier. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Sherman Sent: February 2, 2006 12:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:RAID and Access Projects Dear All, OT:RAID and Access Projects I have tons of projects, past and present, on my pc set up with 2xHD configured as Raid 1. This is causing me problems and I wish to remove it and revert back to 2 x HD. If I do this, will I loose all my data, programs and installations or will it just stop being a Raid and leave my systems and installations intact? I do not want to buy another HD just to have a temporary store and I definitely do not want to loose all my MS Access projects and associated setups. I would appreciate any advice on this please. Regards Max -- 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 2 08:36:03 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 03 Feb 2006 00:36:03 +1000 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: Message-ID: <43E2A573.28874.15770DE3@stuart.lexacorp.com.pg> On 2 Feb 2006 at 11:12, Gustav Brock wrote: > Hi Stuart > > Well well, I hope everyone can see I used _two_ lines, still the essential > code is one line. If you *really* want one line, you can just this: strCol = iif(lngCol >26,Chr$(Int((lngCol- 1) \ 26) + 64),"") _ + Chr$((lngCol - 1) Mod 26 + 65) lngCol = iif(len(strCol)>1,26 * (Asc(UCase$(Left$(strCol, 1)))- 64),0) _ + Asc(UCase$(Right$(strCol, 1))) - 64 -- Stuart From Mike.W.Gowey at doc.state.or.us Thu Feb 2 09:21:32 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 2 Feb 2006 08:21:32 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780108EC@srciml1.ds.doc.state.or.us> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit From Gustav at cactus.dk Thu Feb 2 10:40:39 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Feb 2006 17:40:39 +0100 Subject: [AccessD] Post Card Printing Message-ID: Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit From jwcolby at ColbyConsulting.com Thu Feb 2 11:00:56 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Thu, 2 Feb 2006 12:00:56 -0500 Subject: [AccessD] How many rows populated in range Message-ID: <01e801c6281a$3c90ef70$657aa8c0@ColbyM6805> Does anyone know how to determine how many rows of a range are actually populated with data? I have a range with Doc DocDescr Otherstuff etc 1A Some Desce Etc Etc 1Ai Other Descr Etc Etc The range is potentially up to a hundred and some rows. Doc and DocDescr will always have data in it, but the other columns might not. Is there any property of the range that says what the last occupied row is? Are there iterators for ranges, i.e. "for each row in Range" kind of thing? John W. Colby www.ColbyConsulting.com From Mike.W.Gowey at doc.state.or.us Thu Feb 2 11:03:33 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 2 Feb 2006 10:03:33 -0700 Subject: [AccessD] Function Error Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBA9@srciml1.ds.doc.state.or.us> When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, January 27, 2006 11:40 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Function Error Hi Mike I suspect this to be the bad guy: Mid([inmates].[sid],(Len([inmates].[sid])-1),1) AS BinRowNum Try to replace it for a test with: '0' AS BinRowNum and run: SELECT SID FROM qryInmatesBinNumberUpdate WHERE BinRowNum = '0' I guess that could be replaced with: Val(Right([inmates].[sid],1)) AS BinRowNum and then it will be numeric, thus you could try: SELECT SID FROM qryInmatesBinNumberUpdate WHERE BinRowNum = 0 /gustav >>> Mike.W.Gowey at doc.state.or.us 27-01-2006 18:56:21 >>> This is the SQL of qryInmatesBinNumberUpdate: SELECT Mid([inmates].[sid],(Len([inmates].[sid])-1),1) AS BinRowNum, Inmates.SID, Inmates.Namef, Inmates.Namel, Inmates.Namem, Inmates.DOB, Inmates.Cell, Inmates.Race, Inmates.Custody, Inmates.Age, Inmates.HasBlues FROM Inmates WHERE (((Inmates.Cell) Not Like "DS*" And (Inmates.Cell) Not Like "IM*" And (Inmates.Cell) Not Like "IN*" And (Inmates.Cell) Not Like "M-*" And (Inmates.Cell) Not Like "S-*" And (Inmates.Cell)<>"") AND ((Exists (SELECT SID FROM FTLaun WHERE FTLaun.SID = Inmates.SID))=False) AND ((Exists (SELECT SID FROM BinNumSIDAssign WHERE BinNumSIDAssign.SID = Inmates.SID))=False)) ORDER BY Mid([inmates].[sid],(Len([inmates].[sid])-1),1), Inmates.SID; -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, January 27, 2006 10:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Function Error Hi Mike So what is the SQL of qryInmatesBinNumberUpdate? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Thu Feb 2 11:10:09 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 2 Feb 2006 10:10:09 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBAA@srciml1.ds.doc.state.or.us> Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- 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 2 11:09:53 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Feb 2006 18:09:53 +0100 Subject: [AccessD] Function Error Message-ID: Hi Mike No, I mean for each card. Otherwise you have no way to both sort and identify them. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:03:33 >>> When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? From Jdemarco at hudsonhealthplan.org Thu Feb 2 11:15:09 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 2 Feb 2006 12:15:09 -0500 Subject: [AccessD] How many rows populated in range Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C44EB@TTNEXCHCL2.hshhp.com> There's a COUNTBLANK function that might help you. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Thursday, February 02, 2006 12:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How many rows populated in range Does anyone know how to determine how many rows of a range are actually populated with data? I have a range with Doc DocDescr Otherstuff etc 1A Some Desce Etc Etc 1Ai Other Descr Etc Etc The range is potentially up to a hundred and some rows. Doc and DocDescr will always have data in it, but the other columns might not. Is there any property of the range that says what the last occupied row is? Are there iterators for ranges, i.e. "for each row in Range" kind of thing? 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 electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Lambert.Heenan at AIG.com Thu Feb 2 11:24:35 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 2 Feb 2006 12:24:35 -0500 Subject: [AccessD] How many rows populated in range Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1C786C5F@xlivmbx21.aig.com> This is a situation where you can use the Select method of a Range object. E.g. Assuming xlSheet is an initialized Excel.Worksheet object, and "A1" is within your block of data... With xlSheet .Range("A1").Select strRange = .Range("A1").CurrentRegion.Address End With ... After that strRange will have the address of the whole range, like "$A$1:$D$144", from which you can derive your row count. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Thursday, February 02, 2006 12:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How many rows populated in range Does anyone know how to determine how many rows of a range are actually populated with data? I have a range with Doc DocDescr Otherstuff etc 1A Some Desce Etc Etc 1Ai Other Descr Etc Etc The range is potentially up to a hundred and some rows. Doc and DocDescr will always have data in it, but the other columns might not. Is there any property of the range that says what the last occupied row is? Are there iterators for ranges, i.e. "for each row in Range" kind of thing? 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 Jim.Hale at FleetPride.com Thu Feb 2 11:31:00 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 2 Feb 2006 11:31:00 -0600 Subject: [AccessD] How many rows populated in range Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9F0@corp-es01.fleetpride.com> y = appXcel.WorksheetFunction.CountA(wksUpl.Range("A:A")) counts the of cells that are not empty in the specified range. This works great assuming the indicated column does not have empty cells interspersed. Btw way why not use dynamic ranges? Ie the range names in Excel automatically change depending on their size. See http://www.ozgrid.com/Excel/DynamicRanges.htm Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 02, 2006 11:01 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How many rows populated in range Does anyone know how to determine how many rows of a range are actually populated with data? I have a range with Doc DocDescr Otherstuff etc 1A Some Desce Etc Etc 1Ai Other Descr Etc Etc The range is potentially up to a hundred and some rows. Doc and DocDescr will always have data in it, but the other columns might not. Is there any property of the range that says what the last occupied row is? Are there iterators for ranges, i.e. "for each row in Range" kind of thing? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Gustav at cactus.dk Thu Feb 2 11:30:38 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Feb 2006 18:30:38 +0100 Subject: [AccessD] How many rows populated in range Message-ID: Hi John To find the last filled cell (row) in a column, this is a simple method: lngRow = Worksheets(1).Columns("K").Find("*",,,,,0).Row A range can be part of or derived from another range, thus a column can be a range as well. You can iterate a range as you like (row by column or vice versa) and evaluate IsEmpty(rng.Value) for each cell (a cell can be a range as well). Ranges call for great fun! /gustav >>> jwcolby at ColbyConsulting.com 02-02-2006 18:00:56 >>> Does anyone know how to determine how many rows of a range are actually populated with data? I have a range with Doc DocDescr Otherstuff etc 1A Some Desce Etc Etc 1Ai Other Descr Etc Etc The range is potentially up to a hundred and some rows. Doc and DocDescr will always have data in it, but the other columns might not. Is there any property of the range that says what the last occupied row is? Are there iterators for ranges, i.e. "for each row in Range" kind of thing? John W. Colby www.ColbyConsulting.com From Mike.W.Gowey at doc.state.or.us Thu Feb 2 11:32:48 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 2 Feb 2006 10:32:48 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBAC@srciml1.ds.doc.state.or.us> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Feb 2 11:26:08 2006 From: KIsmert at texassystems.com (Ken Ismert) Date: Thu, 2 Feb 2006 11:26:08 -0600 Subject: [AccessD] OT: Linux, Open Suite and Access Message-ID: Bryan, >>the problem with KOffice is that it is only native to Linux... Oops... But for a hypothetical Free OS/Free Office Suite/EZ-MRP bundle, that would be OK. I looked at the Koffice web site, and found out these things about Kexi: * Native MySQL/PostgreSQL support * No ODBC support * Uses SQLite as its native engine * Native Forms, in the Access sense * Conversion of Access Data to native format (early beta, though) * No Reports yet. That last bit is a kicker. No reports = not yet ready for primetime. -Ken From tony.x.yeatman at jpmorgan.com Thu Feb 2 12:02:31 2006 From: tony.x.yeatman at jpmorgan.com (tony.x.yeatman at jpmorgan.com) Date: Thu, 2 Feb 2006 18:02:31 +0000 Subject: [AccessD] SQL String - Executed against Oracle by ADO Message-ID: I am issuing the following SQL string against an Oracle 9i database, and it is erroring because of the Null. strSQL is equal to: INSERT INTO TBLLOADDATA (LOADFILEID, A01, A02, A03, A04, A05, A06, A07, A08, A09, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29, A30) VALUES ('83','CCC','N','8642378','2663099','8642378','2663099','AAAAAA','BBBBB','26630990','SP','317','20060201',Null,'0','0','1.212200000','20060203','VVV', 'B','YYY','150000.000000000','ZZZ','181830.000000000','1.212200000','.000000000','1.212200000','.000000000','.000000000','20060201','0 ') If in Immediate window I issue strSQL = "INSERT.... " etc (effectively resetting the variable) it runs just fine I do have a function that is returning the Null as a string (I have also tried as a variant) Does anyone know how I could do the same through code ? Thank you for any help you can give. Tony This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates From lmrazek at lcm-res.com Thu Feb 2 12:32:41 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Thu, 2 Feb 2006 12:32:41 -0600 Subject: [AccessD] Hide Page Header on Report Footer In-Reply-To: <6.2.3.4.2.20060131124112.030dacd8@pop3.highstream.net> Message-ID: <050901c62827$0da23e50$036fa8c0@hplaptop> Hi: I'm trying to hide the Page Header section of a report on the Report Footer section. I thought I had a solution, but it won't work when the Report Footer > 1 page long. Basically, I added this to the the OnFormat property of the Page Header: If page=pages then Me.Section(3).Visible = False End If Any hints would be much appreciated. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 From JHewson at karta.com Thu Feb 2 12:44:21 2006 From: JHewson at karta.com (Jim Hewson) Date: Thu, 2 Feb 2006 12:44:21 -0600 Subject: [AccessD] Post Card Printing Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C03BAF861@karta-exc-int.Karta.com> Mike, Maybe I'm being too simplistic, but... Gustav's solution will work. But, in your original note, you stated "when you flip the card stock over the first record in at the bottom of the page instead of top." It seems to me that could rotate the card stock 180 degrees and get the results you want. Will that not work? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Thursday, February 02, 2006 11:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 2 12:49:58 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 2 Feb 2006 19:49:58 +0100 Subject: [AccessD] SQL String - Executed against Oracle by ADO Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B633D@stekelbes.ithelps.local> Maybe try "" -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens tony.x.yeatman at jpmorgan.com Verzonden: donderdag 2 februari 2006 19:03 Aan: Access Developers discussion and problem solving Onderwerp: [AccessD] SQL String - Executed against Oracle by ADO I am issuing the following SQL string against an Oracle 9i database, and it is erroring because of the Null. strSQL is equal to: INSERT INTO TBLLOADDATA (LOADFILEID, A01, A02, A03, A04, A05, A06, A07, A08, A09, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29, A30) VALUES ('83','CCC','N','8642378','2663099','8642378','2663099','AAAAAA','BBBBB' ,'26630990','SP','317','20060201',Null,'0','0','1.212200000','20060203', 'VVV', 'B','YYY','150000.000000000','ZZZ','181830.000000000','1.212200000','.00 0000000','1.212200000','.000000000','.000000000','20060201','0 ') If in Immediate window I issue strSQL = "INSERT.... " etc (effectively resetting the variable) it runs just fine I do have a function that is returning the Null as a string (I have also tried as a variant) Does anyone know how I could do the same through code ? Thank you for any help you can give. Tony This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Thu Feb 2 13:03:07 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 2 Feb 2006 12:03:07 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBAD@srciml1.ds.doc.state.or.us> I think it will work, I was just lost on how to make the first part of his solution work. The temp table creation and the sequential idea stuff. -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Thursday, February 02, 2006 11:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Mike, Maybe I'm being too simplistic, but... Gustav's solution will work. But, in your original note, you stated "when you flip the card stock over the first record in at the bottom of the page instead of top." It seems to me that could rotate the card stock 180 degrees and get the results you want. Will that not work? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Thursday, February 02, 2006 11:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max at sherman.org.uk Thu Feb 2 13:16:08 2006 From: max at sherman.org.uk (Max Sherman) Date: Thu, 2 Feb 2006 19:16:08 -0000 Subject: [AccessD] OT:RAID and Access Projects In-Reply-To: <001301c627fb$dc850ee0$017ba8c0@xpserver> Message-ID: <001301c6282d$20755e80$72f26051@server> Many thank to all those who responded. Looks like my weekend is going to be spoken for. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 02 February 2006 13:24 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:RAID and Access Projects Hi Max: It depends on how your raid is configured. If it is raid 1, using hardware like 'Promise' technology then in theory the second drive is just a copy of the first. If you have used something like 'stripping' then the data is really spread evenly over the 2 drives. In both cases, I would 'Ghost' (if you have access to that Symantec's app) or image the drive(s) using any CD creator program (Nero, Roxy etc.) to a large external or connected drive (externals really cheap now... $150 CAD for 200GB USB drive) or attach the large new drive ($99.00 CAD) off your computer. (Most mother-boards support up to 3 drives per connector and all within the last 5 years have at least 2 and up to 6 connectors.) Then, either, depending on your configuration, if hardware Raid; set the jumper on the Motherboard or on the boot-up BIOS (that may be all there is to it if a Mirrored setup). After that just re-mage the saved image back to boot hard-drive or depending on how you have imaged/ghosted the old drive content to the new large drive, you may be able use the new drive as your start-up drive. Note; if you are re-building you original drive have a tested boot floppy or CD with the appropriate recovery tools. It sound wordy but it is a fairly straight forward process and it does depend on your current configuration. Further concerns would probably be better brought up on the DBA technology list or hardware supplier. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Sherman Sent: February 2, 2006 12:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:RAID and Access Projects Dear All, OT:RAID and Access Projects I have tons of projects, past and present, on my pc set up with 2xHD configured as Raid 1. This is causing me problems and I wish to remove it and revert back to 2 x HD. If I do this, will I loose all my data, programs and installations or will it just stop being a Raid and leave my systems and installations intact? I do not want to buy another HD just to have a temporary store and I definitely do not want to loose all my MS Access projects and associated setups. I would appreciate any advice on this please. Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From billmorrill at comcast.net Thu Feb 2 13:22:53 2006 From: billmorrill at comcast.net (Bill Morrill) Date: Thu, 2 Feb 2006 12:22:53 -0700 Subject: [AccessD] Hide Page Header on Report Footer In-Reply-To: <050901c62827$0da23e50$036fa8c0@hplaptop> References: <6.2.3.4.2.20060131124112.030dacd8@pop3.highstream.net> <050901c62827$0da23e50$036fa8c0@hplaptop> Message-ID: How about in the Properties for the report under Page Header property using pull down make it Not with Rpt Ftr. Bill M On 2/2/06, Lawrence Mrazek wrote: > > Hi: > > I'm trying to hide the Page Header section of a report on the Report > Footer > section. I thought I had a solution, but it won't work when the Report > Footer > 1 page long. > > Basically, I added this to the the OnFormat property of the Page Header: > If page=pages then > Me.Section(3).Visible = False > End If > > Any hints would be much appreciated. > > Larry Mrazek > LCM Research, Inc. > www.lcm-res.com > lmrazek at lcm-res.com > ph. 314-432-5886 > fx. 314-432-3304 > > > > -- > 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 2 13:38:01 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 02 Feb 2006 11:38:01 -0800 Subject: [AccessD] Post Card Printing In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF48607780108EC@srciml1.ds.doc.state.or.us> Message-ID: <000c01c62830$2df1a430$017ba8c0@xpserver> HI Mike: I had a similar printing problem with printing ID cards. The picture, ID and name were printed on the front and the disclaimer, name and place for signature were printed on the back. The pictures and name/signature had to line as there could be up to 60 printed at one time. Simply print the first side, then prompt the user to place the half completed cards flipped over in the card bin. Then the back would print. The trick was the same recordset/report was being used but on the second pass, the report was re-set to the first record, all the 'front' information was being turn-off/hidden and the 'back' information was being turned-on/unhidden. (All the code was in the single Access report.) It worked great. I could send you the report and its imbedded code but it used an odd 4 colour film printer/driver and you may have difficulty getting it to display. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: February 2, 2006 7:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Post Card Printing I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- 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 2 14:02:58 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 02 Feb 2006 12:02:58 -0800 Subject: [AccessD] SQL String - Executed against Oracle by ADO In-Reply-To: Message-ID: <000d01c62833$aa480e90$017ba8c0@xpserver> Hi Tony: You could either set the initial values by adding an empty value to it: varOne = null varOne = varOne + "" ... now it is an empty or '' or if the shown value is 'null' could not the 'VALUES' be placed in a string and the 'Replace' function be used to replace the value with either a zero or empty? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of tony.x.yeatman at jpmorgan.com Sent: February 2, 2006 10:03 AM To: Access Developers discussion and problem solving Subject: [AccessD] SQL String - Executed against Oracle by ADO I am issuing the following SQL string against an Oracle 9i database, and it is erroring because of the Null. strSQL is equal to: INSERT INTO TBLLOADDATA (LOADFILEID, A01, A02, A03, A04, A05, A06, A07, A08, A09, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29, A30) VALUES ('83','CCC','N','8642378','2663099','8642378','2663099','AAAAAA','BBBBB','26 630990','SP','317','20060201',Null,'0','0','1.212200000','20060203','VVV', 'B','YYY','150000.000000000','ZZZ','181830.000000000','1.212200000','.000000 000','1.212200000','.000000000','.000000000','20060201','0 ') If in Immediate window I issue strSQL = "INSERT.... " etc (effectively resetting the variable) it runs just fine I do have a function that is returning the Null as a string (I have also tried as a variant) Does anyone know how I could do the same through code ? Thank you for any help you can give. Tony This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Thu Feb 2 14:13:42 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 2 Feb 2006 13:13:42 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBAE@srciml1.ds.doc.state.or.us> Thanks Jim, but I don't think that would work for me, I'm printing 4 post cards to a page and trying to line them up with each other once you flip the pages over. -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Thursday, February 02, 2006 12:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Post Card Printing HI Mike: I had a similar printing problem with printing ID cards. The picture, ID and name were printed on the front and the disclaimer, name and place for signature were printed on the back. The pictures and name/signature had to line as there could be up to 60 printed at one time. Simply print the first side, then prompt the user to place the half completed cards flipped over in the card bin. Then the back would print. The trick was the same recordset/report was being used but on the second pass, the report was re-set to the first record, all the 'front' information was being turn-off/hidden and the 'back' information was being turned-on/unhidden. (All the code was in the single Access report.) It worked great. I could send you the report and its imbedded code but it used an odd 4 colour film printer/driver and you may have difficulty getting it to display. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: February 2, 2006 7:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Post Card Printing I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Feb 2 14:29:13 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 2 Feb 2006 15:29:13 -0500 Subject: [AccessD] Hide Page Header on Report Footer In-Reply-To: <050901c62827$0da23e50$036fa8c0@hplaptop> Message-ID: Larry, So your report footer doesn't always start on the last page...hum Ok here's what you do: 1. Place a hidden text box on the report and reference the .pages property. If you're already doing that some place else, then don't do this step. 2. In the report footer OnFormat event, save the current page number to a variable or a table. 3. In the Page Header OnFormat If >= Me.page then Me.Section(3).Visible = False End If Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lawrence Mrazek Sent: Thursday, February 02, 2006 1:33 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Hide Page Header on Report Footer Hi: I'm trying to hide the Page Header section of a report on the Report Footer section. I thought I had a solution, but it won't work when the Report Footer > 1 page long. Basically, I added this to the the OnFormat property of the Page Header: If page=pages then Me.Section(3).Visible = False End If Any hints would be much appreciated. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 2 14:37:42 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 12:37:42 -0800 Subject: [AccessD] Report Preview Question Message-ID: <007b01c62838$84d46730$6701a8c0@HPLaptop> I have reports that I have code to maximize on opening. Does anyone know the code to set the preview size automatically to 100% Thanks Joe Hecht jmhecht at earthlink.net From Patricia.O'Connor at otda.state.ny.us Thu Feb 2 14:50:17 2006 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Thu, 2 Feb 2006 15:50:17 -0500 Subject: [AccessD] OT - software for file management - new employment position Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8016B23CA@EXCNYSM0A1AI.nysemail.nyenet> This is pretty important - we just began reviewing resumes and getting ready to start interviewing applicants. Below is link to AD We are hiring a person to work on doing file management and organization. Develop several server folders in which some will have high security and limited usage. Others would be open to 3 units with differing security limits depending on categorization. What types of software would be good and how do we rank knowledge amongst applicants. Also what other expertise should we look hard for? http://412.careersite.com/candidate/processcandviewjob?docid=A0040-17C5& source=search Thanks Patti ************************************************** * Patricia O'Connor * Associate Computer Programmer Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (w) mailto:aa1160 at otda.state.ny.us ************************************************** -------------------------------------------------------- This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. From Lambert.Heenan at AIG.com Thu Feb 2 14:50:46 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 2 Feb 2006 14:50:46 -0600 Subject: [AccessD] Report Preview Question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1C786D6A@xlivmbx21.aig.com> This will do it... After opening the report in preview mode... DoCmd.SelectObject acReport, "Some Report Name" DoCmd.RunCommand acCmdZoom100 Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 02, 2006 3:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Report Preview Question I have reports that I have code to maximize on opening. Does anyone know the code to set the preview size automatically to 100% Thanks Joe Hecht jmhecht at earthlink.net -- 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 2 14:56:21 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 02 Feb 2006 12:56:21 -0800 Subject: [AccessD] Report Preview Question In-Reply-To: <007b01c62838$84d46730$6701a8c0@HPLaptop> Message-ID: <000e01c6283b$1f25f2c0$017ba8c0@xpserver> Hi Joe: In the reports' built in method. Private Sub Report_Open(Cancel As Integer) DoCmd.Maximize End Sub HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: February 2, 2006 12:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Report Preview Question I have reports that I have code to maximize on opening. Does anyone know the code to set the preview size automatically to 100% Thanks Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Thu Feb 2 15:10:58 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 2 Feb 2006 16:10:58 -0500 Subject: [AccessD] OT: Linux, Open Suite and Access In-Reply-To: References: Message-ID: On 02/02/06, Ken Ismert wrote: > > Bryan, > > >>the problem with KOffice is that it is only native to Linux... > > Oops... But for a hypothetical Free OS/Free Office Suite/EZ-MRP bundle, > that would be OK. You know, I really need to read the whole thread carefully. The question WAS about it being on Linux. Doh!! What I like about OOo is that once its written on one platform, it *should* work on all the platforms that support OOo. > I looked at the Koffice web site, and found out these things about Kexi: > > * Native MySQL/PostgreSQL support Nice. > * No ODBC support Not a biggie for me. > * Uses SQLite as its native engine Cool. > * Native Forms, in the Access sense Cool. > * Conversion of Access Data to native format (early beta, though) I'd be interested in seeing how this works on some fairly hefty apps I've got. > * No Reports yet. > > That last bit is a kicker. No reports = not yet ready for primetime. Doh!! The knock out punch. Althoug, depending on the complexity I wonder if pushing the data to a KWord document might work out fine in the short run. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From stuart at lexacorp.com.pg Thu Feb 2 15:43:19 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 03 Feb 2006 07:43:19 +1000 Subject: [AccessD] Post Card Printing In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF48607780579BBAE@srciml1.ds.doc.state.or.us> Message-ID: <43E30997.27368.16FE3C67@stuart.lexacorp.com.pg> On 2 Feb 2006 at 13:13, Gowey Mike W wrote: > Thanks Jim, but I don't think that would work for me, I'm printing 4 > post cards to a page and trying to line them up with each other once you > flip the pages over. > The problem with the proposed solutions is that they tend to be printer specific. Different printers have different paper paths and stack the output in different ways. You have to determine a solution to suit your specific printer and report layout. The principle is to include a sequential number in the query that the report is based on (search the archives for various solutions to this) and sort the report for the back on a numeric function applied to the sequential number. The specific function will depend on the output stack order and the layout of the records on the page. -- Stuart From jmhecht at earthlink.net Thu Feb 2 15:45:41 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 13:45:41 -0800 Subject: [AccessD] Report Preview Question In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1C786D6A@xlivmbx21.aig.com> Message-ID: <000001c62842$03ef8820$6701a8c0@HPLaptop> Lambert I tried your code on the open, activate and page header events. I got an error saying you can not use select object while it is printing. Any Ideas? Thanks -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, February 02, 2006 12:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Report Preview Question This will do it... After opening the report in preview mode... DoCmd.SelectObject acReport, "Some Report Name" DoCmd.RunCommand acCmdZoom100 Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 02, 2006 3:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Report Preview Question I have reports that I have code to maximize on opening. Does anyone know the code to set the preview size automatically to 100% Thanks Joe Hecht jmhecht 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 martyconnelly at shaw.ca Thu Feb 2 15:59:53 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 02 Feb 2006 13:59:53 -0800 Subject: [AccessD] OT: Linux, Open Suite and Access References: Message-ID: <43E280D9.6040606@shaw.ca> You might get away with using Mono or Grasshopper to run an Net IDE app on Linux Visual Studio .NET IDE for Linux http://www.codeproject.com/showcase/Mainsoft_grasshopper.asp Grasshopper Sample for running Northwind SQL http://dev.mainsoft.com/Default.aspx?tabid=45 Mono Project http://www.mono-project.com/Main_Page An Access MDE might require the Samba filesystem on Linux. This is all a little esoteric right now. Bryan Carbonnell wrote: >On 02/02/06, Ken Ismert wrote: > > >>Bryan, >> >> >> >>>>the problem with KOffice is that it is only native to Linux... >>>> >>>> >>Oops... But for a hypothetical Free OS/Free Office Suite/EZ-MRP bundle, >>that would be OK. >> >> > >You know, I really need to read the whole thread carefully. The >question WAS about it being on Linux. Doh!! > >What I like about OOo is that once its written on one platform, it >*should* work on all the platforms that support OOo. > > > >>I looked at the Koffice web site, and found out these things about Kexi: >> >>* Native MySQL/PostgreSQL support >> >> > >Nice. > > > >>* No ODBC support >> >> > >Not a biggie for me. > > > >>* Uses SQLite as its native engine >> >> > >Cool. > > > >>* Native Forms, in the Access sense >> >> > >Cool. > > > >>* Conversion of Access Data to native format (early beta, though) >> >> > >I'd be interested in seeing how this works on some fairly hefty apps I've got. > > > >>* No Reports yet. >> >>That last bit is a kicker. No reports = not yet ready for primetime. >> >> > >Doh!! The knock out punch. Althoug, depending on the complexity I >wonder if pushing the data to a KWord document might work out fine in >the short run. > >-- >Bryan Carbonnell - carbonnb at gmail.com >Life's journey is not to arrive at the grave safely in a well >preserved body, but rather to skid in sideways, totally worn out, >shouting "What a great ride!" > > -- Marty Connelly Victoria, B.C. Canada From Lambert.Heenan at AIG.com Thu Feb 2 16:02:58 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 2 Feb 2006 17:02:58 -0500 Subject: [AccessD] Report Preview Question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1C786DC0@xlivmbx21.aig.com> Sorry, I was none too clear. You make the call after the report is previewed, from the code routine that opened the report, not from within the report's module. So... DoCmd.OpenReport "SomeReport", acViewPreview DoCmd.SelectObject acReport, "SomeReport" DoCmd.RunCommand acCmdZoom100 Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 02, 2006 4:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Report Preview Question Lambert I tried your code on the open, activate and page header events. I got an error saying you can not use select object while it is printing. Any Ideas? Thanks -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, February 02, 2006 12:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Report Preview Question This will do it... After opening the report in preview mode... DoCmd.SelectObject acReport, "Some Report Name" DoCmd.RunCommand acCmdZoom100 Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 02, 2006 3:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Report Preview Question I have reports that I have code to maximize on opening. Does anyone know the code to set the preview size automatically to 100% Thanks Joe Hecht jmhecht 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 lmrazek at lcm-res.com Thu Feb 2 16:31:29 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Thu, 2 Feb 2006 16:31:29 -0600 Subject: [AccessD] Hide Page Header on Report Footer In-Reply-To: Message-ID: <056a01c62848$69e3c910$036fa8c0@hplaptop> Yes, thanks! I knew I was missing something simple! Thank you! Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Thursday, February 02, 2006 1:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide Page Header on Report Footer How about in the Properties for the report under Page Header property using pull down make it Not with Rpt Ftr. Bill M On 2/2/06, Lawrence Mrazek wrote: > > Hi: > > I'm trying to hide the Page Header section of a report on the Report > Footer section. I thought I had a solution, but it won't work when the > Report Footer > 1 page long. > > Basically, I added this to the the OnFormat property of the Page Header: > If page=pages then > Me.Section(3).Visible = False > End If > > Any hints would be much appreciated. > > Larry Mrazek > LCM Research, Inc. > www.lcm-res.com > lmrazek at lcm-res.com > ph. 314-432-5886 > fx. 314-432-3304 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 2 17:26:03 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 15:26:03 -0800 Subject: [AccessD] Report Preview Question In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1C786DC0@xlivmbx21.aig.com> Message-ID: <000701c62850$091d07b0$6701a8c0@HPLaptop> Are you saying on the click event of the button that opens the report? Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, February 02, 2006 2:03 PM To: 'Access Developers discussion and problem solving' Cc: 'Joe Hecht' Subject: Re: [AccessD] Report Preview Question Sorry, I was none too clear. You make the call after the report is previewed, from the code routine that opened the report, not from within the report's module. So... DoCmd.OpenReport "SomeReport", acViewPreview DoCmd.SelectObject acReport, "SomeReport" DoCmd.RunCommand acCmdZoom100 Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 02, 2006 4:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Report Preview Question Lambert I tried your code on the open, activate and page header events. I got an error saying you can not use select object while it is printing. Any Ideas? Thanks -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, February 02, 2006 12:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Report Preview Question This will do it... After opening the report in preview mode... DoCmd.SelectObject acReport, "Some Report Name" DoCmd.RunCommand acCmdZoom100 Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 02, 2006 3:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Report Preview Question I have reports that I have code to maximize on opening. Does anyone know the code to set the preview size automatically to 100% Thanks Joe Hecht jmhecht 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 bill_Patten at earthlink.net Thu Feb 2 19:54:30 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Thu, 2 Feb 2006 17:54:30 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard Message-ID: <00fc01c62864$c68bf720$6501a8c0@BPCS> Using the Office XP Developer packaging wizard, I tell it to run shrtcut.bat after completing the install. This creates a line in the setup.lst file that looks like this. [RunCommands] Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat This works fine in Win98 the short cut runs as expected. In Windows XP how ever it doesn't Changing to this Command1=0,1,$(AppPath),$(AppPath)\License.txt Works in both Win 98 and Win XP, note pad opens the file. Double clicking on the batch file works in both. It appears that batch files won't work from the install program, any ideas.??? I've searched the web but have found very little about the [RunCommands] item nor where to look for it. Thanks Bill From jmhecht at earthlink.net Thu Feb 2 20:04:05 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 18:04:05 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard In-Reply-To: <00fc01c62864$c68bf720$6501a8c0@BPCS> Message-ID: <000001c62866$1ea91310$6701a8c0@HPLaptop> Bill, What is & where did you get the packaging wizard? Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 5:55 PM To: accessd at databaseadvisors.com Subject: [AccessD] OFFXPDEV Packaging Wizard Using the Office XP Developer packaging wizard, I tell it to run shrtcut.bat after completing the install. This creates a line in the setup.lst file that looks like this. [RunCommands] Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat This works fine in Win98 the short cut runs as expected. In Windows XP how ever it doesn't Changing to this Command1=0,1,$(AppPath),$(AppPath)\License.txt Works in both Win 98 and Win XP, note pad opens the file. Double clicking on the batch file works in both. It appears that batch files won't work from the install program, any ideas.??? I've searched the web but have found very little about the [RunCommands] item nor where to look for it. Thanks Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_Patten at earthlink.net Thu Feb 2 20:11:15 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Thu, 2 Feb 2006 18:11:15 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard References: <000001c62866$1ea91310$6701a8c0@HPLaptop> Message-ID: <010001c62867$1d4dd360$6501a8c0@BPCS> Hi Joe, It came with the Office XP Developer Kit. ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 02, 2006 6:04 PM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Bill, What is & where did you get the packaging wizard? Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 5:55 PM To: accessd at databaseadvisors.com Subject: [AccessD] OFFXPDEV Packaging Wizard Using the Office XP Developer packaging wizard, I tell it to run shrtcut.bat after completing the install. This creates a line in the setup.lst file that looks like this. [RunCommands] Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat This works fine in Win98 the short cut runs as expected. In Windows XP how ever it doesn't Changing to this Command1=0,1,$(AppPath),$(AppPath)\License.txt Works in both Win 98 and Win XP, note pad opens the file. Double clicking on the batch file works in both. It appears that batch files won't work from the install program, any ideas.??? I've searched the web but have found very little about the [RunCommands] item nor where to look for it. Thanks Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 2 20:27:49 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 18:27:49 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard In-Reply-To: <010001c62867$1d4dd360$6501a8c0@BPCS> Message-ID: <000401c62869$6dd41310$6701a8c0@HPLaptop> Did not know they were making a developer kit any more. Thought it was VSTO Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 6:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Hi Joe, It came with the Office XP Developer Kit. ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 02, 2006 6:04 PM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Bill, What is & where did you get the packaging wizard? dabaseadvisors.com From bill_Patten at earthlink.net Thu Feb 2 20:36:34 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Thu, 2 Feb 2006 18:36:34 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard References: <000401c62869$6dd41310$6701a8c0@HPLaptop> Message-ID: <010801c6286a$a6b87a30$6501a8c0@BPCS> I think that is for Access 2003, I have that too, but I don't believe that 2003 runtime will run in Windows 98, so I think I'm stuck with 2002. ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 02, 2006 6:27 PM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Did not know they were making a developer kit any more. Thought it was VSTO Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 6:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Hi Joe, It came with the Office XP Developer Kit. ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 02, 2006 6:04 PM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Bill, What is & where did you get the packaging wizard? dabaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 2 20:46:17 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 18:46:17 -0800 Subject: [AccessD] Brain Melt Link New table in BE to FE Message-ID: <000e01c6286c$02063ca0$6701a8c0@HPLaptop> I realized I missed a making a table for my project. I built in my BE. How do I make the FE see it? Look around for my can of brain unmelter. TIA Joe Hecht jmhecht at earthlink.net From jmhecht at earthlink.net Thu Feb 2 20:49:36 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 18:49:36 -0800 Subject: [AccessD] Link Table Question Never Mind Message-ID: <001301c6286c$792191e0$6701a8c0@HPLaptop> Found brain unmelter File /Get External Data/ Link. Doh... Joe Hecht jmhecht at earthlink.net From bill_Patten at earthlink.net Thu Feb 2 20:54:50 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Thu, 2 Feb 2006 18:54:50 -0800 Subject: [AccessD] Link Table Question Never Mind References: <001301c6286c$792191e0$6701a8c0@HPLaptop> Message-ID: <010f01c6286d$34102f20$6501a8c0@BPCS> Some days are like that, course with me they stretch into months.... ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 02, 2006 6:49 PM Subject: [AccessD] Link Table Question Never Mind Found brain unmelter File /Get External Data/ Link. Doh... Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 2 22:34:31 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 20:34:31 -0800 Subject: [AccessD] sql help please Message-ID: <000001c6287b$212689a0$6701a8c0@HPLaptop> I am having 1 issue with the statement below. I have confirmed 20_stb_Loc_Wather_Road does indeed have data in it so we are not looking at null messing me up. ( I think) When I run the query no data from the table 20_stb_Loc_Wather_Road is populating the query. I tried splitting the query into a second query with everything except the 20_stb_Loc_Wather_Road on one side and the 20_stb_Loc_Wather_Road fields as the second query source and I still had the same problem. I will check in morning. Bed time for me now. SELECT [10_tbl_PersonelMasterData].MyEmpNumb, [20_tblAIMaster].ACCIDENT, [20_tblAIMaster].MyAccidnetRecordNumber, [20_tblAIMaster].CLAIM AS ClaimNumber, [20_tblAIMaster].COMPANY, [20_tblAIMaster].AccidentDATE, [20_stblAccDayInfo].AccidentTime, [20_stblAccDayInfo].AccidentDayofWeek, [20_tblAIMaster].DRIV_NUM, [20_tblAIMaster].REP_DATE, [20_tblAIMaster].STATUS, [50_ltblTerminal].TRMNL_DESC, [10_stblEmpCompInfo].START_DATE, [20_tblAIMaster].OPEN_CLAIM, [last_NAME] & ", " & [First_Name] & " " & [Middle_Name] AS FName, [10_tbl_PersonelMasterData].DOB, [20_stb_Loc_Wather_Road].RoadCondition, [20_stb_Loc_Wather_Road].ROAD_TYPE, [20_stb_Loc_Wather_Road].WEATHER, [20_stb_Loc_Wather_Road].Loc_type, [20_stb_Loc_Wather_Road].Acc_type, [20_stb_Loc_Wather_Road].CHARGABIL FROM (50_ltblTerminal RIGHT JOIN (10_tbl_PersonelMasterData INNER JOIN 10_stblEmpCompInfo ON [10_tbl_PersonelMasterData].MyEmpNumb = [10_stblEmpCompInfo].MyEmpNumb) ON [50_ltblTerminal].TRMNL_CODE = [10_stblEmpCompInfo].TERMINAL) INNER JOIN (20_stb_Loc_Wather_Road RIGHT JOIN ((20_tblAIMaster INNER JOIN 20_stblAccDayInfo ON [20_tblAIMaster].MyAccidnetRecordNumber = [20_stblAccDayInfo].MyAccidnetRecordNumber) INNER JOIN 20_stblAIPaidExpences ON [20_tblAIMaster].MyAccidnetRecordNumber = [20_stblAIPaidExpences].MyAccidnetRecordNumber) ON [20_stb_Loc_Wather_Road].MyAccidnetRecordNumber = [20_tblAIMaster].MyAccidnetRecordNumber) ON ([10_tbl_PersonelMasterData].DRIV_NUM = [20_tblAIMaster].DRIV_NUM) AND ([10_tbl_PersonelMasterData].DRIV_NUM = [20_tblAIMaster].DRIV_NUM); TIA Joe Hecht jmhecht at earthlink.net From reuben at gfconsultants.com Thu Feb 2 22:43:53 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 2 Feb 2006 23:43:53 -0500 Subject: [AccessD] A2K - Duplex Printing In-Reply-To: <000101c626f2$5b26ac00$7400a8c0@HPLaptop> Message-ID: The printer is duplex and duplexing is turned on. Do I need my report to be designed as a single page, set to a custom paper size, and then load the printer with said custom paper size? Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht > Sent: Wednesday, February 01, 2006 12:43 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Duplex Printing > > > Is your printer duplex? > > Joe Hecht > jmhecht at earthlink.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Reuben Cummings > Sent: Tuesday, January 31, 2006 9:06 AM > To: AccessD > Subject: [AccessD] A2K - Duplex Printing > > I need to print a report on both sides of the paper. > > One record will be one page - both sides. Each new record > will have it's > own piece of paper. > > So 10 records will be 10 papers printed on both sides (20 > pages total). > > Any suggestions? > > Thanks. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jmhecht at earthlink.net Thu Feb 2 22:55:44 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 20:55:44 -0800 Subject: [AccessD] A2K - Duplex Printing In-Reply-To: Message-ID: <000001c6287e$17763150$6701a8c0@HPLaptop> I am not sure about that. I just know if your printer is not duplex, there is nothing easy to do. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Thursday, February 02, 2006 8:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Duplex Printing The printer is duplex and duplexing is turned on. Do I need my report to be designed as a single page, set to a custom paper size, and then load the printer with said custom paper size? Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht > Sent: Wednesday, February 01, 2006 12:43 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Duplex Printing > > > Is your printer duplex? > > Joe Hecht > jmhecht at earthlink.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Reuben Cummings > Sent: Tuesday, January 31, 2006 9:06 AM > To: AccessD > Subject: [AccessD] A2K - Duplex Printing > > I need to print a report on both sides of the paper. > > One record will be one page - both sides. Each new record > will have it's > own piece of paper. > > So 10 records will be 10 papers printed on both sides (20 > pages total). > > Any suggestions? > > Thanks. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Feb 3 04:49:08 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Feb 2006 11:49:08 +0100 Subject: [AccessD] Report Preview Question Message-ID: Hi Joe If you prefer the report handles this "by itself", we dealt with the topic back in 2002: > OK, never say never, here's how you can achieve this. > > As several have noted, no event of the report is fired after the report > has been formatted and displayed. Thus you'll have to make your own > event. > This can be done with a hidden timer form which is opened by the report, > adjusts the zoom level and closes automatically. > > First create a simple no-nonsense form. > Named it frmReportZoom. > Set its TimerInterval to 1. > > Add this code to the Timer event: > > > > Private Sub Form_Timer() > > Static lngZoomFactor As Long > Static strReportName As String > Static booResized As Boolean > > Dim lngReport As Long > > If lngZoomFactor = 0 Then > strReportName = Nz(Me.OpenArgs, vbNullString) > If Len(strReportName) > 0 Then > ' Extract zoom constant and report name. > lngZoomFactor = Val(strReportName) > strReportName = Mid(strReportName, Len(CStr(lngZoomFactor)) + 1) > End If > If Len(strReportName) = 0 Then > ' Nothing to do. > booResized = True > Else > ' Validate zoom constant. > Select Case lngZoomFactor > Case _ > acCmdZoom10, _ > acCmdZoom25, _ > acCmdZoom50, _ > acCmdZoom75, _ > acCmdZoom100, _ > acCmdZoom150, _ > acCmdZoom200, _ > acCmdFitToWindow > ' Zoom factor/method accepted. > Case Else > ' Zoom constant cannot be used. > ' Nothing to do. > booResized = True > End Select > End If > End If > > If booResized = False Then > On Error Resume Next > lngReport = Reports.Count > If lngReport = 0 Then > ' No reports are open. > ' The report may have been printed without a preview. > booResized = True > ElseIf Reports(lngReport - 1).Name = strReportName Then > ' The report is open. Resize it. > DoCmd.SelectObject acReport, strReportName > DoCmd.RunCommand lngZoomFactor > If Err = 0 Then > ' The report has be "rezoomed". > booResized = True > Else > ' Try to resize the report at next timer event. > End If > End If > On Error GoTo 0 > End If > > If booResized = True Then > ' Report has been resized or is gone. > DoCmd.Close acForm, Me.Name > End If > > End Sub > > > > Armed with this, add this code in your report's Page event: > > > > Private Sub Report_Page() > > ' Specify requested zoom level (percent). > ' Useful values are from 10 to 200 percent. > ' Specify zero if report shall fit to window. > Const clngZoomLevel As Long = 0 > ' Name of timer form which will resize this report. > Const cstrFormName As String = "frmReportZoom" > > Dim lngZoomLevel As Long > Dim strOpenArgs As String > > ' Adjust zoom level at first page view only. > If Me.Page = 1 Then > ' Wrap zoom level into a valid constant. > Select Case clngZoomLevel > Case Is <= 0 > lngZoomLevel = acCmdFitToWindow > Case Is <= 10 > lngZoomLevel = acCmdZoom10 > Case Is <= 25 > lngZoomLevel = acCmdZoom25 > Case Is <= 50 > lngZoomLevel = acCmdZoom50 > Case Is <= 75 > lngZoomLevel = acCmdZoom75 > Case Is <= 100 > lngZoomLevel = acCmdZoom100 > Case Is <= 150 > lngZoomLevel = acCmdZoom150 > Case Is <= 200 > lngZoomLevel = acCmdZoom200 > Case Else > lngZoomLevel = acCmdZoom200 > End Select > ' Concatenate zoom constant and report name to > ' one string variable to be passed to the form. > strOpenArgs = CStr(lngZoomLevel) & Me.Name > ' Open the form hidden. > DoCmd.OpenForm cstrFormName, acNormal, , , , acHidden, strOpenArgs > Else > ' In preview mode, cstrFormName has closed itself now. > ' In print mode, cstrFormName will be closed at page 2. > DoCmd.Close acForm, cstrFormName, acSaveNo > End If > > End Sub > > > > Open the report and it will "rezoom" instantly. /gustav >>> jmhecht at earthlink.net 02-02-2006 21:37:42 >>> I have reports that I have code to maximize on opening. Does anyone know the code to set the preview size automatically to 100% Joe Hecht jmhecht at earthlink.net From Gustav at cactus.dk Fri Feb 3 05:46:50 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Feb 2006 12:46:50 +0100 Subject: [AccessD] Post Card Printing Message-ID: Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit From dwaters at usinternet.com Fri Feb 3 08:09:36 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 3 Feb 2006 08:09:36 -0600 Subject: [AccessD] A2K - Duplex Printing In-Reply-To: <5629146.1138942044648.JavaMail.root@sniper13> Message-ID: <000401c628cb$7720d3b0$0200a8c0@danwaters> Reuben, Will this printer print both sides on a document from another application? Try making a 2 page document in Word and send it to the printer. If that still gets you two pages then Access is not the issue. Duplex printing does not requires custom paper sizes. Dan -------------------------------------------------------------------------- The printer is duplex and duplexing is turned on. Do I need my report to be designed as a single page, set to a custom paper size, and then load the printer with said custom paper size? Reuben Cummings GFC, LLC 812.523.1017 From reuben at gfconsultants.com Fri Feb 3 08:33:19 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 3 Feb 2006 09:33:19 -0500 Subject: [AccessD] A2K - Duplex Printing In-Reply-To: <000401c628cb$7720d3b0$0200a8c0@danwaters> Message-ID: After I had driven about 1.5 hours back toward home I thought about that, Dan. I sure wish I would have tried it. I can have them do it. So, assuming the printer is working, how is the best way to setup an Access Report for this? One long report or the same report with a page break in it? Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters > Sent: Friday, February 03, 2006 9:10 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Duplex Printing > > > Reuben, > > Will this printer print both sides on a document from another application? > Try making a 2 page document in Word and send it to the printer. If that > still gets you two pages then Access is not the issue. > > Duplex printing does not requires custom paper sizes. > > Dan > > > -------------------------------------------------------------------------- > > The printer is duplex and duplexing is turned on. > > Do I need my report to be designed as a single page, set to a custom paper > size, and then load the printer with said custom paper size? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > 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 3 08:51:25 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 03 Feb 2006 09:51:25 -0500 Subject: [AccessD] Missing records Message-ID: We got a call from a department that has a small Access 2K db. "Something" has happened, and they are missing about a quarter of their records. This was being investigated by a technician and I was just asked the following question: If a PC is "hard-booted" can an Access DB lose records w/out showing signs of corruption (i.e. the db still runs)?" I really don't know the answer to this question. I have had nearly no experience w/db corruption, since starting with Access 5 years ago. I used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs hanging around actually...and corruption was a huge problem w/them. Anyone got any tips on this? Thanks! John W Clark From Mike.W.Gowey at doc.state.or.us Fri Feb 3 08:56:57 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Fri, 3 Feb 2006 07:56:57 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBB7@srciml1.ds.doc.state.or.us> Thanks Gustav I got it working like a charm. -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Feb 3 09:06:00 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Feb 2006 16:06:00 +0100 Subject: [AccessD] Post Card Printing Message-ID: Hi Mike How nice! /gustav >>> Mike.W.Gowey at doc.state.or.us 03-02-2006 15:56:57 >>> Thanks Gustav I got it working like a charm. From garykjos at gmail.com Fri Feb 3 09:11:53 2006 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 3 Feb 2006 09:11:53 -0600 Subject: [AccessD] Missing records In-Reply-To: References: Message-ID: We had something similar happen here a while back. I was able to import the missing records from a backup into the compacted and repaired current copy - the first thing I did when they said things were not working right was compact and repair - so that they didn't lose other updates and adds since the backup had been done two nights before. I created a third database and linked the main transaction tables from both versions and did an outer join to see what was in the old that was not in the new and then created a temporary table of those missing records which I then reviewed to be sure they should be readded and then finally did an append to put them into the current table. Fortunately this database is pretty much denormalized so most everything is in a single table and only that table was missing anything. We blamed network issues but really didn't have a "for sure that is what happened" explanation. It hadn't happened before or since. GK On 2/3/06, John Clark wrote: > We got a call from a department that has a small Access 2K db. > "Something" has happened, and they are missing about a quarter of their > records. This was being investigated by a technician and I was just > asked the following question: > > If a PC is "hard-booted" can an Access DB lose records w/out showing > signs of corruption (i.e. the db still runs)?" > > I really don't know the answer to this question. I have had nearly no > experience w/db corruption, since starting with Access 5 years ago. I > used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs > hanging around actually...and corruption was a huge problem w/them. > > Anyone got any tips on this? > > Thanks! > > John W Clark > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From Jdemarco at hudsonhealthplan.org Fri Feb 3 09:15:40 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 3 Feb 2006 10:15:40 -0500 Subject: [AccessD] Missing records Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C44FB@TTNEXCHCL2.hshhp.com> We had missing recordsin an app here a while back. We never really figured out what happened but one possibility we found was the user(s) may have pressed Ctrl + A to select all data in a record (displayed on a form). Well Ctrl + A really selects all records in a form's recordset (A97 at least). If they pressed Delete and ingnored the warning goodbye data. We've since disabled that key combination. Good luck, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark Sent: Friday, February 03, 2006 9:51 AM To: accessd at databaseadvisors.com Subject: [AccessD] Missing records We got a call from a department that has a small Access 2K db. "Something" has happened, and they are missing about a quarter of their records. This was being investigated by a technician and I was just asked the following question: If a PC is "hard-booted" can an Access DB lose records w/out showing signs of corruption (i.e. the db still runs)?" I really don't know the answer to this question. I have had nearly no experience w/db corruption, since starting with Access 5 years ago. I used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs hanging around actually...and corruption was a huge problem w/them. Anyone got any tips on this? Thanks! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From jwcolby at ColbyConsulting.com Fri Feb 3 09:33:46 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 10:33:46 -0500 Subject: [AccessD] Missing records In-Reply-To: Message-ID: <023001c628d7$3994f1a0$657aa8c0@ColbyM6805> John, The first thing to do is examine the relationships for the tables missing records. If "cascade delete" is turned on (a NO-NO in my humble opinion) then deleting a single record (such as a customer) will (after a warning of course) delete ALL child/grandchild/...greatgreatgreat records. Let's say that a client has invoices and invoice line items. Yep, all gone. Repair service calls / line items? Yep, all gone. Payments? Yep, all gone. Cascade delete of a single (for example) customer record WILL delete all child records, however far down they go. Potentially dozens or even thousands of records, all gone because the user was "just deleting a single customer record". I pretty much design my databases to never turn on Cascade delete, and then build delete queries tied to buttons which only supervisors can see/click. 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 03, 2006 9:51 AM To: accessd at databaseadvisors.com Subject: [AccessD] Missing records We got a call from a department that has a small Access 2K db. "Something" has happened, and they are missing about a quarter of their records. This was being investigated by a technician and I was just asked the following question: If a PC is "hard-booted" can an Access DB lose records w/out showing signs of corruption (i.e. the db still runs)?" I really don't know the answer to this question. I have had nearly no experience w/db corruption, since starting with Access 5 years ago. I used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs hanging around actually...and corruption was a huge problem w/them. Anyone got any tips on this? Thanks! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Fri Feb 3 09:47:40 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 3 Feb 2006 10:47:40 -0500 Subject: [AccessD] Missing records In-Reply-To: <023001c628d7$3994f1a0$657aa8c0@ColbyM6805> Message-ID: I think John nailed it. Check all relations to this table. Just yesterday I had to restore about 14,000 expense records because she had deleted an employee rather than "terminating" (which means enter the date the employee was terminated) that employee. Cascade Delete is very powerful, which makes it very scary. I now have two things to change in my app - a relation property and to not allow deletes of employees. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby > Sent: Friday, February 03, 2006 10:34 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing records > > > John, > > The first thing to do is examine the relationships for the tables missing > records. If "cascade delete" is turned on (a NO-NO in my humble opinion) > then deleting a single record (such as a customer) will (after a > warning of > course) delete ALL child/grandchild/...greatgreatgreat records. > > Let's say that a client has invoices and invoice line items. > Yep, all gone. > Repair service calls / line items? Yep, all gone. Payments? Yep, all > gone. > > Cascade delete of a single (for example) customer record WILL delete all > child records, however far down they go. Potentially dozens or even > thousands of records, all gone because the user was "just > deleting a single > customer record". > > I pretty much design my databases to never turn on Cascade > delete, and then > build delete queries tied to buttons which only supervisors can see/click. > > 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 03, 2006 9:51 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Missing records > > We got a call from a department that has a small Access 2K db. > "Something" has happened, and they are missing about a quarter of their > records. This was being investigated by a technician and I was just asked > the following question: > > If a PC is "hard-booted" can an Access DB lose records w/out showing signs > of corruption (i.e. the db still runs)?" > > I really don't know the answer to this question. I have had nearly no > experience w/db corruption, since starting with Access 5 years ago. I used > to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs > hanging around > actually...and corruption was a huge problem w/them. > > Anyone got any tips on this? > > Thanks! > > John W Clark > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Fri Feb 3 09:56:51 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 3 Feb 2006 07:56:51 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard Message-ID: If the bat file runs when you double click it in explorer then you may need to reference the command executable in the run command. It's been years since I used the packaging wizard and crotchets like that are one of the key reasons I don't. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 5:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] OFFXPDEV Packaging Wizard Using the Office XP Developer packaging wizard, I tell it to run shrtcut.bat after completing the install. This creates a line in the setup.lst file that looks like this. [RunCommands] Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat This works fine in Win98 the short cut runs as expected. In Windows XP how ever it doesn't Changing to this Command1=0,1,$(AppPath),$(AppPath)\License.txt Works in both Win 98 and Win XP, note pad opens the file. Double clicking on the batch file works in both. It appears that batch files won't work from the install program, any ideas.??? I've searched the web but have found very little about the [RunCommands] item nor where to look for it. Thanks Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Feb 3 10:00:35 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Feb 2006 17:00:35 +0100 Subject: [AccessD] Missing records Message-ID: Hi John Oh no, why are you beating this horse again? Cascade delete is a very powerful and useful feature. However - just like fire - implement it only when you know what you are doing. Your example with invoices is bad. You never delete an invoice, and if you do (it might be a draft only) you will wish to delete all its invoice lines too. If you don't, you will have orphaned invoice lines, or you will have to bother the user with deleting line by line until the draft is empty and can be deleted. You may program your own routines to be fired at a click of the supervisor's button, but doing so is somewhat similar to building unbound forms in Access. As I wrote last time: You know all about this - normalization, relations and so on - so why be so scared? /gustav >>> jwcolby at ColbyConsulting.com 03-02-2006 16:33:46 >>> John, The first thing to do is examine the relationships for the tables missing records. If "cascade delete" is turned on (a NO-NO in my humble opinion) then deleting a single record (such as a customer) will (after a warning of course) delete ALL child/grandchild/...greatgreatgreat records. Let's say that a client has invoices and invoice line items. Yep, all gone. Repair service calls / line items? Yep, all gone. Payments? Yep, all gone. Cascade delete of a single (for example) customer record WILL delete all child records, however far down they go. Potentially dozens or even thousands of records, all gone because the user was "just deleting a single customer record". I pretty much design my databases to never turn on Cascade delete, and then build delete queries tied to buttons which only supervisors can see/click. John W. Colby www.ColbyConsulting.com From Gustav at cactus.dk Fri Feb 3 10:08:27 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Feb 2006 17:08:27 +0100 Subject: [AccessD] Missing records Message-ID: Hi Reuben Well, you didn't do your homework ... But as you note, it is very easy to correct: Enforce Referential Integrity and turn OFF Cascade Delete between Employee and Employee Journals (or whatever the details are). This way you don't need to do anything else. If a journal exists, the Employee of that can not be deleted no matter what the user do - not even if he/she has table level access. Very powerful. /gustav >>> reuben at gfconsultants.com 03-02-2006 16:47:40 >>> I think John nailed it. Check all relations to this table. Just yesterday I had to restore about 14,000 expense records because she had deleted an employee rather than "terminating" (which means enter the date the employee was terminated) that employee. Cascade Delete is very powerful, which makes it very scary. I now have two things to change in my app - a relation property and to not allow deletes of employees. Reuben Cummings GFC, LLC 812.523.1017 From bheid at appdevgrp.com Fri Feb 3 10:16:02 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 3 Feb 2006 11:16:02 -0500 Subject: [AccessD] A2K - Duplex Printing In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3B6E6@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34EE7@ADGSERVER> Have not done this to set the values, but I have read the values. Try something like this before creating the MDE or before sending out an MDB (air code and no error checking): Dim rpt As Report 'const acPRDPSimplex as long=1 'const acPRDPHorizontal as long=2 'const acPRDPVertical as long=3 ;open report in design view and hidden DoCmd.OpenReport "NameOfYourReport", acViewDesign, , , acHidden Set rpt = Reports("NameOfYourReport") 'valid values for duplex are acPRDPSimplex, acPRDPVertical,acPRDPHorizontal 'normal is acPRDPSimplex. In our app, reports that are landscape and print 'duplex use the acPRDPHorizontal constant. rpt.Printer.Duplex= acPRDPHorizontal DoCmd.Close acReport, .Name, acSaveYes set rpt=nothing Note that lots of times, I print duplex while testing and the duplex setting sticks. SO try that first. Let us know if this works for you. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, February 03, 2006 9:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Duplex Printing After I had driven about 1.5 hours back toward home I thought about that, Dan. I sure wish I would have tried it. I can have them do it. So, assuming the printer is working, how is the best way to setup an Access Report for this? One long report or the same report with a page break in it? Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters > Sent: Friday, February 03, 2006 9:10 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Duplex Printing > > > Reuben, > > Will this printer print both sides on a document from another application? > Try making a 2 page document in Word and send it to the printer. If that > still gets you two pages then Access is not the issue. > > Duplex printing does not requires custom paper sizes. > > Dan > > > -------------------------------------------------------------------------- > > The printer is duplex and duplexing is turned on. > > Do I need my report to be designed as a single page, set to a custom paper > size, and then load the printer with said custom paper size? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 3 10:19:31 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 3 Feb 2006 08:19:31 -0800 Subject: [AccessD] Missing records Message-ID: I have to agree with you, Gustav. Cascading deletes are definitely not for DIY users but properly implemented, they save a lot of code! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 03, 2006 8:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing records Hi John Oh no, why are you beating this horse again? Cascade delete is a very powerful and useful feature. However - just like fire - implement it only when you know what you are doing. Your example with invoices is bad. You never delete an invoice, and if you do (it might be a draft only) you will wish to delete all its invoice lines too. If you don't, you will have orphaned invoice lines, or you will have to bother the user with deleting line by line until the draft is empty and can be deleted. You may program your own routines to be fired at a click of the supervisor's button, but doing so is somewhat similar to building unbound forms in Access. As I wrote last time: You know all about this - normalization, relations and so on - so why be so scared? /gustav >>> jwcolby at ColbyConsulting.com 03-02-2006 16:33:46 >>> John, The first thing to do is examine the relationships for the tables missing records. If "cascade delete" is turned on (a NO-NO in my humble opinion) then deleting a single record (such as a customer) will (after a warning of course) delete ALL child/grandchild/...greatgreatgreat records. Let's say that a client has invoices and invoice line items. Yep, all gone. Repair service calls / line items? Yep, all gone. Payments? Yep, all gone. Cascade delete of a single (for example) customer record WILL delete all child records, however far down they go. Potentially dozens or even thousands of records, all gone because the user was "just deleting a single customer record". I pretty much design my databases to never turn on Cascade delete, and then build delete queries tied to buttons which only supervisors can see/click. 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 John.Clark at niagaracounty.com Fri Feb 3 10:17:58 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 03 Feb 2006 11:17:58 -0500 Subject: [AccessD] Missing records Message-ID: Ha...backups...haha. It turns out that this program is backed up, or so they are telling me, once a month...yeah, I know. Apparently the data hasn't been altered since September...lost? me too...and the furthest backkup is exactly the same size, w/exactly the same number of records. I found out the program is called from my server, and we get a nightly backup from this server, but I don't manage the backups, so I'm not sure how far back I can go on this. I think I am going to get a little more involved on this one. I'm going to call the user myself...I'm beginning to wonder if they really are missing anything. It wouldn't be the first time something was over-reported initially, and the problem's scope actually changes to something totally different. I just thought of something...if the record count remains the same, but records were altered, will the file size change? I seem to remember, in another thread, that each record is x amount of bytes, no matter what you put in them...i.e. their structure actually takes the space. If this is correct, there could be changes. Monthly backups...indeed! ;<( >>> garykjos at gmail.com 2/3/2006 10:11 AM >>> We had something similar happen here a while back. I was able to import the missing records from a backup into the compacted and repaired current copy - the first thing I did when they said things were not working right was compact and repair - so that they didn't lose other updates and adds since the backup had been done two nights before. I created a third database and linked the main transaction tables from both versions and did an outer join to see what was in the old that was not in the new and then created a temporary table of those missing records which I then reviewed to be sure they should be readded and then finally did an append to put them into the current table. Fortunately this database is pretty much denormalized so most everything is in a single table and only that table was missing anything. We blamed network issues but really didn't have a "for sure that is what happened" explanation. It hadn't happened before or since. GK On 2/3/06, John Clark wrote: > We got a call from a department that has a small Access 2K db. > "Something" has happened, and they are missing about a quarter of their > records. This was being investigated by a technician and I was just > asked the following question: > > If a PC is "hard-booted" can an Access DB lose records w/out showing > signs of corruption (i.e. the db still runs)?" > > I really don't know the answer to this question. I have had nearly no > experience w/db corruption, since starting with Access 5 years ago. I > used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs > hanging around actually...and corruption was a huge problem w/them. > > Anyone got any tips on this? > > Thanks! > > John W Clark > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Fri Feb 3 10:27:00 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 03 Feb 2006 11:27:00 -0500 Subject: [AccessD] Same form, different actions Message-ID: Thank you for this John. I always feel bad, if I don't understand code...it is a respect thing with me. You, and many others on this list, have helped me in so many ways, so many times, and it feels like I am "stealing" when I don't take the time to learn, at least somewhat, what you have done in your code. I suspect that many of you "higher-level" members...the ones that help more than get helped...are doing this because you have some "mentor gene." And, learning the code is my way to show respect...and I don't want to keep asking the same questions. I appreciate this and it WILL definitely help me. My employer is WAY too cheap to allow me to pay for help...most of the time. They would watch me splash around in the water for way too long, before throwing me any lifesaver ;) By the way, I would also like to take this time to thank Darren Dick to helped me our recently. I didn't even realize how much he had helped at first. Thank you Darren. John W. Clark >>> jwcolby at colbyconsulting.com 1/31/2006 9:08 AM >>> Everyone, I want to point out that the entire point of classes (objects) is that you can just use them, you don't have to understand them. I know that some people want to learn how it works as well, but in the end, just start using it, THEN worry about digging in and seeing how it is programmed. Everything you use in Access as an object, and we don't have a clue how it works inside. Combos, text boxes, forms etc, all are objects that have methods and properties. You just use them, but don't know, nor care how it all happens inside the object. These classes I put out there, the SysVars classes, the openargs classes, the date picker class etc. all are things that you can just use yourself, even if you NEVER figure out how it works inside. And I might add , I am a consultant. If you have a project that needs this level of expertise, you can hire me to do it. John W. Colby www.ColbyConsulting.com From reuben at gfconsultants.com Fri Feb 3 11:14:44 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 3 Feb 2006 12:14:44 -0500 Subject: [AccessD] Missing records In-Reply-To: Message-ID: Honestly, I'm not sold on Cascade Delete being off. It makes it much easier to work if it's on when record does require deletion (like your invoice example). I really prefer to control it at the form by not allowing deletes there. If they can't delete it at the form level then Cascade Deletes never becomes an issue. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Friday, February 03, 2006 11:08 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Missing records > > > Hi Reuben > > Well, you didn't do your homework ... > > But as you note, it is very easy to correct: Enforce Referential > Integrity and turn OFF Cascade Delete between Employee and > Employee Journals (or whatever the details are). > This way you don't need to do anything else. If a journal exists, > the Employee of that can not be deleted no matter what the user > do - not even if he/she has table level access. Very powerful. > > /gustav > > >>> reuben at gfconsultants.com 03-02-2006 16:47:40 >>> > I think John nailed it. Check all relations to this table. > > Just yesterday I had to restore about 14,000 expense records > because she had > deleted an employee rather than "terminating" (which means enter the date > the employee was terminated) that employee. > > Cascade Delete is very powerful, which makes it very scary. > > I now have two things to change in my app - a relation property and to not > allow deletes of employees. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bill_Patten at earthlink.net Fri Feb 3 11:33:08 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Fri, 3 Feb 2006 09:33:08 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard References: Message-ID: <000501c628e7$e6712910$6501a8c0@BPCS> Thanks Charlotte, I presume you are suggesting something like Command1=0,1,$(AppPath),$(AppPath)\cmd.exe shrtCut.bat if so that didn't work either. Do you know if there is a way to use VSTO with Access XP Runtime? Bill ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 03, 2006 7:56 AM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard If the bat file runs when you double click it in explorer then you may need to reference the command executable in the run command. It's been years since I used the packaging wizard and crotchets like that are one of the key reasons I don't. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 5:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] OFFXPDEV Packaging Wizard Using the Office XP Developer packaging wizard, I tell it to run shrtcut.bat after completing the install. This creates a line in the setup.lst file that looks like this. [RunCommands] Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat This works fine in Win98 the short cut runs as expected. In Windows XP how ever it doesn't Changing to this Command1=0,1,$(AppPath),$(AppPath)\License.txt Works in both Win 98 and Win XP, note pad opens the file. Double clicking on the batch file works in both. It appears that batch files won't work from the install program, any ideas.??? I've searched the web but have found very little about the [RunCommands] item nor where to look for it. Thanks Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Fri Feb 3 11:37:01 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Fri, 03 Feb 2006 10:37:01 -0700 Subject: [AccessD] Missing records In-Reply-To: Message-ID: I disallow deletions from forms and restrict access to the database window. Forms have a delete button that marks a record deleted. I believe John uses a similar approach as I think I've heard it dicussed here before. There is also an undelete. If for example, if one of several contractors associated to a master estimate record is deleted and a user attempts to add the contrator again, that would violate an index restriction (Estimate PK and Contractor PK duplication), the user is notified that the contractor record on the subform exists as a deleted record, please undelete. If a parent record is deleted, I iterate the subform recordsetclone.eofs and advise of related records that will be marked deleted and prompt the user. The undelete 'cascades' in the same fashion, and the user has a warning about specific categories of related records. Each parent and each level of subform has its own delete button. Every form recordsource has a where condition 'Deleted = False" unless in undelete mode. That and daily daily backups plus many full copies at various times of the day on many laptops. So far this approach has proved almost infallible. Almost, because users have occasionally 'reused' a record by changing a record (perhaps 'natural key' information) from one to another rather than deleting. I now store a time stamp and UserID history for edits and adds and keep the last month's data so we can track who is responsible for the most common data errors in order that we can provide a bit of education and assistance (no Colby Mexico solution allowed here). Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Gustav Brock" > >Hi John > >Oh no, why are you beating this horse again? > >Cascade delete is a very powerful and useful feature. >However - just like fire - implement it only when you know what you are >doing. > >Your example with invoices is bad. You never delete an invoice, and if you >do (it might be a draft only) you will wish to delete all its invoice lines >too. If you don't, you will have orphaned invoice lines, or you will have >to bother the user with deleting line by line until the draft is empty and >can be deleted. > >You may program your own routines to be fired at a click of the >supervisor's button, but doing so is somewhat similar to building unbound >forms in Access. > >As I wrote last time: You know all about this - normalization, relations >and so on - so why be so scared? > >/gustav > > >>> jwcolby at ColbyConsulting.com 03-02-2006 16:33:46 >>> >John, > >The first thing to do is examine the relationships for the tables missing >records. If "cascade delete" is turned on (a NO-NO in my humble opinion) >then deleting a single record (such as a customer) will (after a warning of >course) delete ALL child/grandchild/...greatgreatgreat records. > >Let's say that a client has invoices and invoice line items. Yep, all >gone. >Repair service calls / line items? Yep, all gone. Payments? Yep, all >gone. > >Cascade delete of a single (for example) customer record WILL delete all >child records, however far down they go. Potentially dozens or even >thousands of records, all gone because the user was "just deleting a single >customer record". > >I pretty much design my databases to never turn on Cascade delete, and then >build delete queries tied to buttons which only supervisors can see/click. > >John W. Colby >www.ColbyConsulting.com From cfoust at infostatsystems.com Fri Feb 3 11:51:34 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 3 Feb 2006 09:51:34 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard Message-ID: Then I don't know what to suggest. I do know that trying to use the packaging wizard to install consistently on different versions of Windows is enough to drive you to drink! I have never tried the VSTO packager, even though I have it on my machine, because in that version, I'm working with .Net rather than Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Friday, February 03, 2006 9:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Thanks Charlotte, I presume you are suggesting something like Command1=0,1,$(AppPath),$(AppPath)\cmd.exe shrtCut.bat if so that didn't work either. Do you know if there is a way to use VSTO with Access XP Runtime? Bill ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 03, 2006 7:56 AM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard If the bat file runs when you double click it in explorer then you may need to reference the command executable in the run command. It's been years since I used the packaging wizard and crotchets like that are one of the key reasons I don't. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 5:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] OFFXPDEV Packaging Wizard Using the Office XP Developer packaging wizard, I tell it to run shrtcut.bat after completing the install. This creates a line in the setup.lst file that looks like this. [RunCommands] Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat This works fine in Win98 the short cut runs as expected. In Windows XP how ever it doesn't Changing to this Command1=0,1,$(AppPath),$(AppPath)\License.txt Works in both Win 98 and Win XP, note pad opens the file. Double clicking on the batch file works in both. It appears that batch files won't work from the install program, any ideas.??? I've searched the web but have found very little about the [RunCommands] item nor where to look for it. Thanks Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at ColbyConsulting.com Fri Feb 3 12:20:52 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 13:20:52 -0500 Subject: [AccessD] Missing records In-Reply-To: Message-ID: <024201c628ee$919e3570$657aa8c0@ColbyM6805> >Cascading deletes are definitely not for DIY users but properly implemented, they save a lot of code! ROTFL, yes they do. OF course who are the intended target of Access if not DIY users? And if (large chunks of) records are disappearing, what ONE item can rip the guts out of your database? I am not talking one record here and there, I am talking about dozens, Hundreds, even THOUSANDS of records from dozens of tables. IMPROPERLY IMPLEMENTED cascade deletes can TRASH the database. All to "save a lot of code". Hmmmm..... I am not scared, I just know that users ignore prompts. Gustav, I have sat looking over my users shoulders as they hit a prompt and just click "yes". I ask them what they just did and they always say "I don't know". I am not talking to you Gustav, but you always get up in arms as if I were. I keep reminding people of this because too many developers just ROUTINELY set a relationship and then set cascade delete true. Then wonder why, when a user, knowingly or unknowingly, deletes a record and doesn't even read the "are you sure" prompt but just clicks yes, loses half his database. Many perfectly competent developers just create a relationship and set cascade delete as a natural part of the relationship. After all, you must make sure you don't have orphans, right? The bottom line is that if I set a cascade delete true, then a user can delete those child records without understanding that they are doing so. A power user can write a query to delete an client and all the child items are gone. And then don't understand how records disappear! The answer is simple, in the hands of the majority of users, cascade deletes spell disaster. If I do NOT set that cascade delete, then the power user writes his query and when he tries to delete the client, he is told no, he has to go delete the invoices and service records, and shipping records etc. He now KNOWS what the consequences of deleting an client are. He can still delete them, but he has to do so intentionally, child table by child table. Suddenly he understands that it is also shipping he is affecting, the service department, and so forth. So Gustav, and Charlotte, and anyone else out there that wants to use cascade deletes, have fun, and keep your backups handy. 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: Friday, February 03, 2006 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records I have to agree with you, Gustav. Cascading deletes are definitely not for DIY users but properly implemented, they save a lot of code! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 03, 2006 8:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing records Hi John Oh no, why are you beating this horse again? Cascade delete is a very powerful and useful feature. However - just like fire - implement it only when you know what you are doing. Your example with invoices is bad. You never delete an invoice, and if you do (it might be a draft only) you will wish to delete all its invoice lines too. If you don't, you will have orphaned invoice lines, or you will have to bother the user with deleting line by line until the draft is empty and can be deleted. You may program your own routines to be fired at a click of the supervisor's button, but doing so is somewhat similar to building unbound forms in Access. As I wrote last time: You know all about this - normalization, relations and so on - so why be so scared? /gustav >>> jwcolby at ColbyConsulting.com 03-02-2006 16:33:46 >>> John, The first thing to do is examine the relationships for the tables missing records. If "cascade delete" is turned on (a NO-NO in my humble opinion) then deleting a single record (such as a customer) will (after a warning of course) delete ALL child/grandchild/...greatgreatgreat records. Let's say that a client has invoices and invoice line items. Yep, all gone. Repair service calls / line items? Yep, all gone. Payments? Yep, all gone. Cascade delete of a single (for example) customer record WILL delete all child records, however far down they go. Potentially dozens or even thousands of records, all gone because the user was "just deleting a single customer record". I pretty much design my databases to never turn on Cascade delete, and then build delete queries tied to buttons which only supervisors can see/click. 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 jwcolby at ColbyConsulting.com Fri Feb 3 12:30:37 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 13:30:37 -0500 Subject: [AccessD] Missing records In-Reply-To: Message-ID: <024301c628ef$ee20ce60$657aa8c0@ColbyM6805> >Just yesterday I had to restore about 14,000 expense records because she had deleted an employee rather than "terminating" (which means enter the date the employee was terminated) that employee. Now imagine that this occurred a year ago? How do you find the backup? People aren't always aware that what they did was a mistake. It can be months before some vice president generates a report somewhere and says "hmmm... Something doesn't look right here". You were lucky and discovered the error immediately. Long ago I designed an active/trash system for my databases. A user clicks "delete", I intercept the error from Jet saying that there are child records and set the trash flag and clear the active flag. Requery the form, and since only active records are displayed, the "deleted" record disappears. I can't tell you how many times I have "undeleted" a record. Very satisfying actually. If the record actually is trash, a periodic process reports all the trash records and a supervisor can decide whether to actually delete the records. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, February 03, 2006 10:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records I think John nailed it. Check all relations to this table. Just yesterday I had to restore about 14,000 expense records because she had deleted an employee rather than "terminating" (which means enter the date the employee was terminated) that employee. Cascade Delete is very powerful, which makes it very scary. I now have two things to change in my app - a relation property and to not allow deletes of employees. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby > Sent: Friday, February 03, 2006 10:34 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing records > > > John, > > The first thing to do is examine the relationships for the tables > missing records. If "cascade delete" is turned on (a NO-NO in my > humble opinion) then deleting a single record (such as a customer) > will (after a warning of > course) delete ALL child/grandchild/...greatgreatgreat records. > > Let's say that a client has invoices and invoice line items. > Yep, all gone. > Repair service calls / line items? Yep, all gone. Payments? Yep, > all gone. > > Cascade delete of a single (for example) customer record WILL delete > all child records, however far down they go. Potentially dozens or > even thousands of records, all gone because the user was "just > deleting a single customer record". > > I pretty much design my databases to never turn on Cascade delete, and > then build delete queries tied to buttons which only supervisors can > see/click. > > 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 03, 2006 9:51 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Missing records > > We got a call from a department that has a small Access 2K db. > "Something" has happened, and they are missing about a quarter of > their records. This was being investigated by a technician and I was > just asked the following question: > > If a PC is "hard-booted" can an Access DB lose records w/out showing > signs of corruption (i.e. the db still runs)?" > > I really don't know the answer to this question. I have had nearly no > experience w/db corruption, since starting with Access 5 years ago. I > used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs > hanging around actually...and corruption was a huge problem w/them. > > Anyone got any tips on this? > > Thanks! > > John W Clark > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Fri Feb 3 12:46:19 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 3 Feb 2006 13:46:19 -0500 Subject: [AccessD] Missing records In-Reply-To: <024301c628ef$ee20ce60$657aa8c0@ColbyM6805> Message-ID: I'm fortunate in that most of my clients use my very own Zip and Send feature to send zipped copies of their databases to me on a fairly regular schedule. I had a reasonably recent copy of the db here and could find the missing records before going on site. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby > Sent: Friday, February 03, 2006 1:31 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing records > > > >Just yesterday I had to restore about 14,000 expense records because she > had deleted an employee rather than "terminating" (which means enter the > date the employee was terminated) that employee. > > Now imagine that this occurred a year ago? How do you find the backup? > People aren't always aware that what they did was a mistake. It can be > months before some vice president generates a report somewhere and says > "hmmm... Something doesn't look right here". You were lucky and > discovered > the error immediately. > > Long ago I designed an active/trash system for my databases. A > user clicks > "delete", I intercept the error from Jet saying that there are > child records > and set the trash flag and clear the active flag. Requery the form, and > since only active records are displayed, the "deleted" record > disappears. I > can't tell you how many times I have "undeleted" a record. > > Very satisfying actually. > > If the record actually is trash, a periodic process reports all the trash > records and a supervisor can decide whether to actually delete > the records. > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, February 03, 2006 10:48 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing records > > I think John nailed it. Check all relations to this table. > > Just yesterday I had to restore about 14,000 expense records > because she had > deleted an employee rather than "terminating" (which means enter the date > the employee was terminated) that employee. > > Cascade Delete is very powerful, which makes it very scary. > > I now have two things to change in my app - a relation property and to not > allow deletes of employees. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby > > Sent: Friday, February 03, 2006 10:34 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Missing records > > > > > > John, > > > > The first thing to do is examine the relationships for the tables > > missing records. If "cascade delete" is turned on (a NO-NO in my > > humble opinion) then deleting a single record (such as a customer) > > will (after a warning of > > course) delete ALL child/grandchild/...greatgreatgreat records. > > > > Let's say that a client has invoices and invoice line items. > > Yep, all gone. > > Repair service calls / line items? Yep, all gone. Payments? Yep, > > all gone. > > > > Cascade delete of a single (for example) customer record WILL delete > > all child records, however far down they go. Potentially dozens or > > even thousands of records, all gone because the user was "just > > deleting a single customer record". > > > > I pretty much design my databases to never turn on Cascade delete, and > > then build delete queries tied to buttons which only supervisors can > > see/click. > > > > 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 03, 2006 9:51 AM > > To: accessd at databaseadvisors.com > > Subject: [AccessD] Missing records > > > > We got a call from a department that has a small Access 2K db. > > "Something" has happened, and they are missing about a quarter of > > their records. This was being investigated by a technician and I was > > just asked the following question: > > > > If a PC is "hard-booted" can an Access DB lose records w/out showing > > signs of corruption (i.e. the db still runs)?" > > > > I really don't know the answer to this question. I have had nearly no > > experience w/db corruption, since starting with Access 5 years ago. I > > used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs > > hanging around actually...and corruption was a huge problem w/them. > > > > Anyone got any tips on this? > > > > Thanks! > > > > John W Clark > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at ColbyConsulting.com Fri Feb 3 12:54:47 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 13:54:47 -0500 Subject: [AccessD] Missing records In-Reply-To: Message-ID: <024a01c628f3$4e785230$657aa8c0@ColbyM6805> >I really prefer to control it at the form by not allowing deletes there. If they can't delete it at the form level then Cascade Deletes never becomes an issue. And so I design a new form and forget to.... I am a VP and remoting in from home and build a query and... I am the power user and manage to get to the database window and... Your job is to outsmart the idiots. God's job is to design better idiots. Who has been on the job longer? The database engine has these things for a reason. You can't delete my client record I don't care WHAT you do, without deleting all child records first, in all child tables. Again, I don't care if you use them, I just care that you UNDERSTAND the consequences of using them. Lord knows if you don't have time to build a delete query and a button that only supervisors can get to, you don't have time to design an Active / trash system. Whatever you do, do NOT believe that backups can always rescue your young *ss. If some particularly smart idiot has been unknowingly deleting things over the last year, you will NEVER get all the records out of all the backup tapes. Understand the consequences, then make an informed decision. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, February 03, 2006 12:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records Honestly, I'm not sold on Cascade Delete being off. It makes it much easier to work if it's on when record does require deletion (like your invoice example). I really prefer to control it at the form by not allowing deletes there. If they can't delete it at the form level then Cascade Deletes never becomes an issue. Reuben Cummings GFC, LLC 812.523.1017 From jwcolby at ColbyConsulting.com Fri Feb 3 12:57:03 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 13:57:03 -0500 Subject: [AccessD] Missing records In-Reply-To: Message-ID: <024b01c628f3$9fb7e1b0$657aa8c0@ColbyM6805> >Forms have a delete button that marks a record deleted. I believe John uses a similar approach as I think I've heard it dicussed here before. I actually trap the error that Jet generates when a parent record delete fails because child records exist and cascade delete is off. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J??rgen Welz Sent: Friday, February 03, 2006 12:37 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing records I disallow deletions from forms and restrict access to the database window. Forms have a delete button that marks a record deleted. I believe John uses a similar approach as I think I've heard it dicussed here before. There is also an undelete. If for example, if one of several contractors associated to a master estimate record is deleted and a user attempts to add the contrator again, that would violate an index restriction (Estimate PK and Contractor PK duplication), the user is notified that the contractor record on the subform exists as a deleted record, please undelete. If a parent record is deleted, I iterate the subform recordsetclone.eofs and advise of related records that will be marked deleted and prompt the user. The undelete 'cascades' in the same fashion, and the user has a warning about specific categories of related records. Each parent and each level of subform has its own delete button. Every form recordsource has a where condition 'Deleted = False" unless in undelete mode. That and daily daily backups plus many full copies at various times of the day on many laptops. So far this approach has proved almost infallible. Almost, because users have occasionally 'reused' a record by changing a record (perhaps 'natural key' information) from one to another rather than deleting. I now store a time stamp and UserID history for edits and adds and keep the last month's data so we can track who is responsible for the most common data errors in order that we can provide a bit of education and assistance (no Colby Mexico solution allowed here). Ciao J|rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Gustav Brock" > >Hi John > >Oh no, why are you beating this horse again? > >Cascade delete is a very powerful and useful feature. >However - just like fire - implement it only when you know what you are >doing. > >Your example with invoices is bad. You never delete an invoice, and if >you do (it might be a draft only) you will wish to delete all its >invoice lines too. If you don't, you will have orphaned invoice lines, >or you will have to bother the user with deleting line by line until >the draft is empty and can be deleted. > >You may program your own routines to be fired at a click of the >supervisor's button, but doing so is somewhat similar to building >unbound forms in Access. > >As I wrote last time: You know all about this - normalization, >relations and so on - so why be so scared? > >/gustav > > >>> jwcolby at ColbyConsulting.com 03-02-2006 16:33:46 >>> >John, > >The first thing to do is examine the relationships for the tables >missing records. If "cascade delete" is turned on (a NO-NO in my >humble opinion) then deleting a single record (such as a customer) will >(after a warning of >course) delete ALL child/grandchild/...greatgreatgreat records. > >Let's say that a client has invoices and invoice line items. Yep, all >gone. >Repair service calls / line items? Yep, all gone. Payments? Yep, all >gone. > >Cascade delete of a single (for example) customer record WILL delete >all child records, however far down they go. Potentially dozens or >even thousands of records, all gone because the user was "just deleting >a single customer record". > >I pretty much design my databases to never turn on Cascade delete, and >then build delete queries tied to buttons which only supervisors can see/click. > >John W. Colby >www.ColbyConsulting.com From Gustav at cactus.dk Fri Feb 3 13:01:47 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Feb 2006 20:01:47 +0100 Subject: [AccessD] Missing records Message-ID: Hi John I doubt that. Cascade delete is not marked as default. If you - as a developer - just put marks around here and there without knowing what the consequences could be, you are in trouble. The ultimate method to avoid all this worry is to use an append-only database backend. An interesting approach worth considering given the high availability and low cost of storage these days ... /gustav >>> jwcolby at ColbyConsulting.com 03-02-2006 19:20 >>> I keep reminding people of this because too many developers just ROUTINELY set a relationship and then set cascade delete true. Then wonder why, when a user, knowingly or unknowingly, deletes a record and doesn't even read the "are you sure" prompt but just clicks yes, loses half his database. Many perfectly competent developers just create a relationship and set cascade delete as a natural part of the relationship. After all, you must make sure you don't have orphans, right? From KIsmert at texassystems.com Fri Feb 3 13:26:41 2006 From: KIsmert at texassystems.com (Ken Ismert) Date: Fri, 3 Feb 2006 13:26:41 -0600 Subject: [AccessD] OT: Linux, Open Suite and Access Message-ID: Brian, >> (Ken) I ... found out these things about Kexi: >> * No Reports yet. >> (Brian) Doh!! The knock out punch ... I wonder if pushing the data >> to a KWord document might work ... Funny you should mention that. They are in fact thinking of basing the Kexi reporting component on Kword: http://www.kexi-project.org/wiki/wikiview/index.php?Reporting Also, I looked for Open-Source Reporting engines, and found these links: PHP-Based ========= Agata Report http://www.agata.org.br/us/index.php?file=home.php RLIB http://rlib.sicompos.com/ SpoolTemplate http://www.andrioli.com/en/sptpl.html Java-Based ========== DataVision http://datavision.sourceforge.net/ JasperReports http://jasperreports.sourceforge.net/ xReporter http://cocoondev.org/xreporter/index.html JFreeChart http://www.jfree.org/jfreechart/index.php JFreeReport -- Active? http://www.object-refinery.com/jfreereport/ -Ken From John.Clark at niagaracounty.com Fri Feb 3 13:25:57 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 03 Feb 2006 14:25:57 -0500 Subject: [AccessD] Missing records Message-ID: John, I just read this quote, out loud, to my office mates. It is early, but so far I think you've obtained "quote of the year." They want me to print this out, so that we never forget it...the words that is, the sentiment we can't escape! Do you want recognition, or should I list "anonymous?" We've got a local quote that won a couple of years ago, and still hangs in our department. One of our legislators uttered the words, "This is not a political matter. It is a serious matter." >>> jwcolby at colbyconsulting.com 2/3/2006 1:54:47 PM >>> "Your job is to outsmart the idiots. God's job is to design better idiots. Who has been on the job longer?" From wdhindman at bellsouth.net Fri Feb 3 13:58:45 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 3 Feb 2006 14:58:45 -0500 Subject: [AccessD] OFFXPDEV Packaging Wizard References: Message-ID: <001901c628fc$3dbddb00$1801a8c0@50NM721> ...there is apparently a difference in how '98 and XPSP2 handles .bat files ...'98 just runs them ...XPSP2 sees them as "system" files and "may" require admin priviledges unless your group policies are fudged. William ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 03, 2006 10:56 AM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard > If the bat file runs when you double click it in explorer then you may > need to reference the command executable in the run command. It's been > years since I used the packaging wizard and crotchets like that are one > of the key reasons I don't. > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten > Sent: Thursday, February 02, 2006 5:54 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OFFXPDEV Packaging Wizard > > > Using the Office XP Developer packaging wizard, I tell it to run > shrtcut.bat after completing the install. This creates a line in the > setup.lst file that looks like this. [RunCommands] > Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat > > This works fine in Win98 the short cut runs as expected. In Windows XP > how ever it doesn't Changing to this > Command1=0,1,$(AppPath),$(AppPath)\License.txt > Works in both Win 98 and Win XP, note pad opens the file. Double > clicking on the batch file works in both. It appears that batch files > won't work from the install program, any ideas.??? I've searched the web > but have found very little about the [RunCommands] item nor where to > look for it. > > > Thanks > > Bill > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Fri Feb 3 14:10:10 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 3 Feb 2006 14:10:10 -0600 Subject: [AccessD] A2K - Duplex Printing In-Reply-To: <29354903.1138977654525.JavaMail.root@sniper19> Message-ID: <000001c628fd$d63a26d0$0200a8c0@danwaters> Hi Reuben, Sorry about the long trip! I just tried out my printer for the first time with an Access report. When in the printing dialog box, I set the printer properties for duplex printing, and my Access report happily printed on both sides. I did not change anything in the report itself. The code listed in Heidi's response looks like it will make sure that a report is printed in duplex without the user having to set the printer's properties to duplex prior to actually printing. This is good because I need to actually check duplex in the printer properties window each time I restart my PC - the setting doesn't 'stick'. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, February 03, 2006 8:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Duplex Printing After I had driven about 1.5 hours back toward home I thought about that, Dan. I sure wish I would have tried it. I can have them do it. So, assuming the printer is working, how is the best way to setup an Access Report for this? One long report or the same report with a page break in it? Reuben Cummings GFC, LLC 812.523.1017 From reuben at gfconsultants.com Fri Feb 3 14:10:13 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 3 Feb 2006 15:10:13 -0500 Subject: [AccessD] Missing records In-Reply-To: <024a01c628f3$4e785230$657aa8c0@ColbyM6805> Message-ID: > >I really prefer to control it at the form by not allowing deletes there. > If they can't delete it at the form level then Cascade Deletes > never becomes > an issue. Not true. Cascade Delete could still be used. It would simply require a different method of initiating the deletion of the parent record. For example, I may not allow deletes on the form. However, I could allow the user to select that record for deletion in some other manner and delete it thru a function. I understand the potential consequences of both methods and don't really care who uses what method. I think everyone here is smart enough to determine which way is best for them in any particular app. I happened to overlook a property in one form and a ladt deleted 14,000 records. I recovered those records and have since corrected the form. Everyone makes mistakes. Fortunately, as humans we have an amazing ability to quickly learn from those mistakes. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby > Sent: Friday, February 03, 2006 1:55 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing records > > > >I really prefer to control it at the form by not allowing deletes there. > If they can't delete it at the form level then Cascade Deletes > never becomes > an issue. > > And so I design a new form and forget to.... I am a VP and > remoting in from > home and build a query and... I am the power user and manage to > get to the > database window and... > > Your job is to outsmart the idiots. God's job is to design better idiots. > Who has been on the job longer? > > The database engine has these things for a reason. You can't delete my > client record I don't care WHAT you do, without deleting all child records > first, in all child tables. > > Again, I don't care if you use them, I just care that you UNDERSTAND the > consequences of using them. Lord knows if you don't have time to build a > delete query and a button that only supervisors can get to, you don't have > time to design an Active / trash system. > > Whatever you do, do NOT believe that backups can always rescue your young > *ss. If some particularly smart idiot has been unknowingly > deleting things > over the last year, you will NEVER get all the records out of all > the backup > tapes. > > Understand the consequences, then make an informed decision. > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, February 03, 2006 12:15 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing records > > Honestly, I'm not sold on Cascade Delete being off. It makes it > much easier > to work if it's on when record does require deletion (like your invoice > example). > > I really prefer to control it at the form by not allowing deletes > there. If > they can't delete it at the form level then Cascade Deletes never > becomes an > issue. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > -- > 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 3 14:14:06 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 15:14:06 -0500 Subject: [AccessD] Missing records In-Reply-To: Message-ID: <024f01c628fe$63368740$657aa8c0@ColbyM6805> ROTFL I just paraphrased something I read somewhere. 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 03, 2006 2:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing records John, I just read this quote, out loud, to my office mates. It is early, but so far I think you've obtained "quote of the year." They want me to print this out, so that we never forget it...the words that is, the sentiment we can't escape! Do you want recognition, or should I list "anonymous?" We've got a local quote that won a couple of years ago, and still hangs in our department. One of our legislators uttered the words, "This is not a political matter. It is a serious matter." >>> jwcolby at colbyconsulting.com 2/3/2006 1:54:47 PM >>> "Your job is to outsmart the idiots. God's job is to design better idiots. Who has been on the job longer?" -- 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 3 14:30:20 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 03 Feb 2006 12:30:20 -0800 Subject: [AccessD] Missing records In-Reply-To: Message-ID: <002901c62900$a72386e0$017ba8c0@xpserver> Hi Rueben: It is so system dependant on the way records are handled. When it comes to POS and Accounting systems, records can simply not be removed as there would be no way to follow the course of transactions or perform a forensic audit. If Access had a cascading record de-activation as well as a delete that would save a lot of coding. My two cents worth. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: February 3, 2006 9:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records Honestly, I'm not sold on Cascade Delete being off. It makes it much easier to work if it's on when record does require deletion (like your invoice example). I really prefer to control it at the form by not allowing deletes there. If they can't delete it at the form level then Cascade Deletes never becomes an issue. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Friday, February 03, 2006 11:08 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Missing records > > > Hi Reuben > > Well, you didn't do your homework ... > > But as you note, it is very easy to correct: Enforce Referential > Integrity and turn OFF Cascade Delete between Employee and > Employee Journals (or whatever the details are). > This way you don't need to do anything else. If a journal exists, > the Employee of that can not be deleted no matter what the user > do - not even if he/she has table level access. Very powerful. > > /gustav > > >>> reuben at gfconsultants.com 03-02-2006 16:47:40 >>> > I think John nailed it. Check all relations to this table. > > Just yesterday I had to restore about 14,000 expense records > because she had > deleted an employee rather than "terminating" (which means enter the date > the employee was terminated) that employee. > > Cascade Delete is very powerful, which makes it very scary. > > I now have two things to change in my app - a relation property and to not > allow deletes of employees. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_Patten at earthlink.net Fri Feb 3 14:44:58 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Fri, 3 Feb 2006 12:44:58 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard References: <001901c628fc$3dbddb00$1801a8c0@50NM721> Message-ID: <004e01c62902$b2e20c70$6501a8c0@BPCS> Thanks for the reply, William, On the machine I am testing I do have admin privileges, so that's not it. In fact the batch file runs fine if you double click on it in XP. I was really just trying to copy the shortcut from the start menu/programs to the desktop, since it works in 98 I'll leave it and give them Win XP users the option on the opening menu of the app when it runs. It may turn out that we have few 98 users in which case I can switch to 2003 and it already has the option to put the short cut on the desk top. Bill ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Friday, February 03, 2006 11:58 AM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard ...there is apparently a difference in how '98 and XPSP2 handles .bat files ...'98 just runs them ...XPSP2 sees them as "system" files and "may" require admin priviledges unless your group policies are fudged. William ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 03, 2006 10:56 AM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard > If the bat file runs when you double click it in explorer then you may > need to reference the command executable in the run command. It's been > years since I used the packaging wizard and crotchets like that are one > of the key reasons I don't. > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten > Sent: Thursday, February 02, 2006 5:54 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OFFXPDEV Packaging Wizard > > > Using the Office XP Developer packaging wizard, I tell it to run > shrtcut.bat after completing the install. This creates a line in the > setup.lst file that looks like this. [RunCommands] > Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat > > This works fine in Win98 the short cut runs as expected. In Windows XP > how ever it doesn't Changing to this > Command1=0,1,$(AppPath),$(AppPath)\License.txt > Works in both Win 98 and Win XP, note pad opens the file. Double > clicking on the batch file works in both. It appears that batch files > won't work from the install program, any ideas.??? I've searched the web > but have found very little about the [RunCommands] item nor where to > look for it. > > > Thanks > > Bill > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_Patten at earthlink.net Fri Feb 3 14:45:41 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Fri, 3 Feb 2006 12:45:41 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard References: Message-ID: <005201c62902$ccd54480$6501a8c0@BPCS> Thanks for trying Charlotte, I guess there is no easy way. Bill ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 03, 2006 9:51 AM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Then I don't know what to suggest. I do know that trying to use the packaging wizard to install consistently on different versions of Windows is enough to drive you to drink! I have never tried the VSTO packager, even though I have it on my machine, because in that version, I'm working with .Net rather than Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Friday, February 03, 2006 9:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Thanks Charlotte, I presume you are suggesting something like Command1=0,1,$(AppPath),$(AppPath)\cmd.exe shrtCut.bat if so that didn't work either. Do you know if there is a way to use VSTO with Access XP Runtime? Bill ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 03, 2006 7:56 AM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard If the bat file runs when you double click it in explorer then you may need to reference the command executable in the run command. It's been years since I used the packaging wizard and crotchets like that are one of the key reasons I don't. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 5:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] OFFXPDEV Packaging Wizard Using the Office XP Developer packaging wizard, I tell it to run shrtcut.bat after completing the install. This creates a line in the setup.lst file that looks like this. [RunCommands] Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat This works fine in Win98 the short cut runs as expected. In Windows XP how ever it doesn't Changing to this Command1=0,1,$(AppPath),$(AppPath)\License.txt Works in both Win 98 and Win XP, note pad opens the file. Double clicking on the batch file works in both. It appears that batch files won't work from the install program, any ideas.??? I've searched the web but have found very little about the [RunCommands] item nor where to look for it. Thanks Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Fri Feb 3 15:22:31 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 3 Feb 2006 15:22:31 -0600 Subject: [AccessD] Missing records Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9F9@corp-es01.fleetpride.com> or be awarded the Darwin award posthumously....... Jim Hale -----Original Message----- From: Reuben Cummings [mailto:reuben at gfconsultants.com] Sent: Friday, February 03, 2006 2:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records > >I really prefer to control it at the form by not allowing deletes there. > If they can't delete it at the form level then Cascade Deletes > never becomes > an issue. Not true. Cascade Delete could still be used. It would simply require a different method of initiating the deletion of the parent record. For example, I may not allow deletes on the form. However, I could allow the user to select that record for deletion in some other manner and delete it thru a function. I understand the potential consequences of both methods and don't really care who uses what method. I think everyone here is smart enough to determine which way is best for them in any particular app. I happened to overlook a property in one form and a ladt deleted 14,000 records. I recovered those records and have since corrected the form. Everyone makes mistakes. Fortunately, as humans we have an amazing ability to quickly learn from those mistakes. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby > Sent: Friday, February 03, 2006 1:55 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing records > > > >I really prefer to control it at the form by not allowing deletes there. > If they can't delete it at the form level then Cascade Deletes > never becomes > an issue. > > And so I design a new form and forget to.... I am a VP and > remoting in from > home and build a query and... I am the power user and manage to > get to the > database window and... > > Your job is to outsmart the idiots. God's job is to design better idiots. > Who has been on the job longer? > > The database engine has these things for a reason. You can't delete my > client record I don't care WHAT you do, without deleting all child records > first, in all child tables. > > Again, I don't care if you use them, I just care that you UNDERSTAND the > consequences of using them. Lord knows if you don't have time to build a > delete query and a button that only supervisors can get to, you don't have > time to design an Active / trash system. > > Whatever you do, do NOT believe that backups can always rescue your young > *ss. If some particularly smart idiot has been unknowingly > deleting things > over the last year, you will NEVER get all the records out of all > the backup > tapes. > > Understand the consequences, then make an informed decision. > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, February 03, 2006 12:15 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing records > > Honestly, I'm not sold on Cascade Delete being off. It makes it > much easier > to work if it's on when record does require deletion (like your invoice > example). > > I really prefer to control it at the form by not allowing deletes > there. If > they can't delete it at the form level then Cascade Deletes never > becomes an > issue. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Jim.Hale at FleetPride.com Fri Feb 3 15:33:57 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 3 Feb 2006 15:33:57 -0600 Subject: [AccessD] Missing records Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9FA@corp-es01.fleetpride.com> but I thought you were god??!! Oh well, another belief system shot down the tubes..... Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 03, 2006 2:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing records ROTFL I just paraphrased something I read somewhere. 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 03, 2006 2:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing records John, I just read this quote, out loud, to my office mates. It is early, but so far I think you've obtained "quote of the year." They want me to print this out, so that we never forget it...the words that is, the sentiment we can't escape! Do you want recognition, or should I list "anonymous?" We've got a local quote that won a couple of years ago, and still hangs in our department. One of our legislators uttered the words, "This is not a political matter. It is a serious matter." >>> jwcolby at colbyconsulting.com 2/3/2006 1:54:47 PM >>> "Your job is to outsmart the idiots. God's job is to design better idiots. Who has been on the job longer?" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From jwelz at hotmail.com Fri Feb 3 16:05:13 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Fri, 03 Feb 2006 15:05:13 -0700 Subject: [AccessD] Missing records In-Reply-To: <024a01c628f3$4e785230$657aa8c0@ColbyM6805> Message-ID: One trick is not to forget to remove deletion capability. I have a series of routines that are run when an update is released to users. The update 'cannot' be distributed without running the update procedure that moves the update to the users' folders. One of the sub routines called prior to the file copy sub routine is: Public Sub RemoveDeletionCapabilitiesFromAllForms() On Error GoTo ErrorHandler Dim dbs As DAO.Database Dim ctr As Container Dim doc As Document Set dbs = CurrentDb Set ctr = dbs.Containers!Forms For Each doc In ctr.Documents DoCmd.OpenForm doc.Name, acDesign Forms(doc.Name).AllowDeletions = False DoCmd.Close acForm, doc.Name, acSaveYes DoEvents Next doc ExitRoutine: On Error Resume Next Set doc = Nothing Set ctr = Nothing Set dbs = Nothing Exit Sub ErrorHandler: With Err Select Case .Number Case Else MsgBox .Number & vbCrLf & .Description, vbInformation, "Error - RemoveDeletionCapabilitiesFromAllForms" End Select End With 'Resume 0 Resume ExitRoutine End Sub I could copy files manually and skip using the FE distribution procedure, but I have not done this once in the past 5 years because it is simpler and faster to run the code that handles updating the users. I don't allow deletes. PERIOD. Cascades on or off. Makes no difference. If I want to cascade "marked deleted', I have to do it in code. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "John Colby" > > >I really prefer to control it at the form by not allowing deletes there. >If they can't delete it at the form level then Cascade Deletes never >becomes >an issue. > >And so I design a new form and forget to.... I am a VP and remoting in from >home and build a query and... I am the power user and manage to get to the >database window and... > >Your job is to outsmart the idiots. God's job is to design better idiots. >Who has been on the job longer? > >The database engine has these things for a reason. You can't delete my >client record I don't care WHAT you do, without deleting all child records >first, in all child tables. > >Again, I don't care if you use them, I just care that you UNDERSTAND the >consequences of using them. Lord knows if you don't have time to build a >delete query and a button that only supervisors can get to, you don't have >time to design an Active / trash system. > >Whatever you do, do NOT believe that backups can always rescue your young >*ss. If some particularly smart idiot has been unknowingly deleting things >over the last year, you will NEVER get all the records out of all the >backup >tapes. > >Understand the consequences, then make an informed decision. > >John W. Colby >www.ColbyConsulting.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings >Sent: Friday, February 03, 2006 12:15 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Missing records > >Honestly, I'm not sold on Cascade Delete being off. It makes it much >easier >to work if it's on when record does require deletion (like your invoice >example). > >I really prefer to control it at the form by not allowing deletes there. >If >they can't delete it at the form level then Cascade Deletes never becomes >an >issue. > >Reuben Cummings >GFC, LLC >812.523.1017 From jwcolby at ColbyConsulting.com Fri Feb 3 16:08:09 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 17:08:09 -0500 Subject: [AccessD] Missing records In-Reply-To: <002901c62900$a72386e0$017ba8c0@xpserver> Message-ID: <025301c6290e$517e4af0$657aa8c0@ColbyM6805> That is a good point. How critical is the data? If it is accounting data for a vets office, then you better treat it differently than if it is a recipe database for your wife. The bottom line is that controlling deletes at the form level simply isn't very secure at all. As a professional I can get around that at will. I (some programmer) might very well be HIRED INTENTIONALLY to build a completely different application or FE that talks to your tables. The fact that you prevent these deletes in YOUR app doesn't mean I am preventing them in mine! Even a non professional can often "find" a way", usually accidentally. I have never seen anyone find a way around JET (or SQL Server) when cascade deletes were turned off, other than deleting the records from child table up, intentionally and with forethought and malice. I gave up on preventing hackers from doing their damage. I am very successful preventing accidental damage, and my success comes from using the tools that Jet (or the database engine) gives me, free of charge. My (the programmer's) convenience should not be the issue here. 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 Sent: Friday, February 03, 2006 3:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing records Hi Rueben: It is so system dependant on the way records are handled. When it comes to POS and Accounting systems, records can simply not be removed as there would be no way to follow the course of transactions or perform a forensic audit. If Access had a cascading record de-activation as well as a delete that would save a lot of coding. My two cents worth. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: February 3, 2006 9:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records Honestly, I'm not sold on Cascade Delete being off. It makes it much easier to work if it's on when record does require deletion (like your invoice example). I really prefer to control it at the form by not allowing deletes there. If they can't delete it at the form level then Cascade Deletes never becomes an issue. Reuben Cummings GFC, LLC 812.523.1017 From accessd at shaw.ca Fri Feb 3 17:25:32 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 03 Feb 2006 15:25:32 -0800 Subject: [AccessD] Missing records In-Reply-To: <025301c6290e$517e4af0$657aa8c0@ColbyM6805> Message-ID: <003f01c62919$20b45c10$017ba8c0@xpserver> John; Excellent points... programming is not supposed to be easy, on the Programmer but easy on the Client. I handle service agreement as if they were insurance policies. Just as mountain climbing may void your life insurance so may not doing backups void your service agreement or at least cost you more. It is pointless for the insurer to wreak their own policy but writing bad code which the client should not be expected to pay for... like leaving the cascading delete on and praying nothing happens. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: February 3, 2006 2:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing records That is a good point. How critical is the data? If it is accounting data for a vets office, then you better treat it differently than if it is a recipe database for your wife. The bottom line is that controlling deletes at the form level simply isn't very secure at all. As a professional I can get around that at will. I (some programmer) might very well be HIRED INTENTIONALLY to build a completely different application or FE that talks to your tables. The fact that you prevent these deletes in YOUR app doesn't mean I am preventing them in mine! Even a non professional can often "find" a way", usually accidentally. I have never seen anyone find a way around JET (or SQL Server) when cascade deletes were turned off, other than deleting the records from child table up, intentionally and with forethought and malice. I gave up on preventing hackers from doing their damage. I am very successful preventing accidental damage, and my success comes from using the tools that Jet (or the database engine) gives me, free of charge. My (the programmer's) convenience should not be the issue here. 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 Sent: Friday, February 03, 2006 3:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing records Hi Rueben: It is so system dependant on the way records are handled. When it comes to POS and Accounting systems, records can simply not be removed as there would be no way to follow the course of transactions or perform a forensic audit. If Access had a cascading record de-activation as well as a delete that would save a lot of coding. My two cents worth. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: February 3, 2006 9:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records Honestly, I'm not sold on Cascade Delete being off. It makes it much easier to work if it's on when record does require deletion (like your invoice example). I really prefer to control it at the form by not allowing deletes there. If they can't delete it at the form level then Cascade Deletes never becomes an issue. Reuben Cummings GFC, LLC 812.523.1017 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Fri Feb 3 20:57:10 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Fri, 3 Feb 2006 18:57:10 -0800 Subject: [AccessD] FW: sql help please Message-ID: <000001c62936$b1d077c0$6701a8c0@HPLaptop> No takers so I am asking again. Joe Hecht jmhecht at earthlink.net _____ From: Joe Hecht [mailto:jmhecht at earthlink.net] Sent: Thursday, February 02, 2006 8:35 PM To: 'Access Developers discussion and problem solving' Subject: sql help please I am having 1 issue with the statement below. I have confirmed 20_stb_Loc_Wather_Road does indeed have data in it so we are not looking at null messing me up. ( I think) When I run the query no data from the table 20_stb_Loc_Wather_Road is populating the query. I tried splitting the query into a second query with everything except the 20_stb_Loc_Wather_Road on one side and the 20_stb_Loc_Wather_Road fields as the second query source and I still had the same problem. I will check in morning. Bed time for me now. SELECT [10_tbl_PersonelMasterData].MyEmpNumb, [20_tblAIMaster].ACCIDENT, [20_tblAIMaster].MyAccidnetRecordNumber, [20_tblAIMaster].CLAIM AS ClaimNumber, [20_tblAIMaster].COMPANY, [20_tblAIMaster].AccidentDATE, [20_stblAccDayInfo].AccidentTime, [20_stblAccDayInfo].AccidentDayofWeek, [20_tblAIMaster].DRIV_NUM, [20_tblAIMaster].REP_DATE, [20_tblAIMaster].STATUS, [50_ltblTerminal].TRMNL_DESC, [10_stblEmpCompInfo].START_DATE, [20_tblAIMaster].OPEN_CLAIM, [last_NAME] & ", " & [First_Name] & " " & [Middle_Name] AS FName, [10_tbl_PersonelMasterData].DOB, [20_stb_Loc_Wather_Road].RoadCondition, [20_stb_Loc_Wather_Road].ROAD_TYPE, [20_stb_Loc_Wather_Road].WEATHER, [20_stb_Loc_Wather_Road].Loc_type, [20_stb_Loc_Wather_Road].Acc_type, [20_stb_Loc_Wather_Road].CHARGABIL FROM (50_ltblTerminal RIGHT JOIN (10_tbl_PersonelMasterData INNER JOIN 10_stblEmpCompInfo ON [10_tbl_PersonelMasterData].MyEmpNumb = [10_stblEmpCompInfo].MyEmpNumb) ON [50_ltblTerminal].TRMNL_CODE = [10_stblEmpCompInfo].TERMINAL) INNER JOIN (20_stb_Loc_Wather_Road RIGHT JOIN ((20_tblAIMaster INNER JOIN 20_stblAccDayInfo ON [20_tblAIMaster].MyAccidnetRecordNumber = [20_stblAccDayInfo].MyAccidnetRecordNumber) INNER JOIN 20_stblAIPaidExpences ON [20_tblAIMaster].MyAccidnetRecordNumber = [20_stblAIPaidExpences].MyAccidnetRecordNumber) ON [20_stb_Loc_Wather_Road].MyAccidnetRecordNumber = [20_tblAIMaster].MyAccidnetRecordNumber) ON ([10_tbl_PersonelMasterData].DRIV_NUM = [20_tblAIMaster].DRIV_NUM) AND ([10_tbl_PersonelMasterData].DRIV_NUM = [20_tblAIMaster].DRIV_NUM); TIA Joe Hecht jmhecht at earthlink.net From jwcolby at ColbyConsulting.com Fri Feb 3 22:23:11 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 23:23:11 -0500 Subject: [AccessD] Shelling to dos Message-ID: <000001c62942$b5e85380$647aa8c0@ColbyM6805> Does a shell to dos run in its own thread, i.e. will the shell command return instantly, leaving the Dos process running? I need to Xcopy a directory from here to there. Rather than doing that from inside of Access and tying up my program, I thought I would run a batch file that does an Xcopy with a ton of switches that copies subdirs, sets the archive bit etc. This only really helps if the shell returns once it gets the xcopy running, but Xcopy must continue to run after the shell command returns. John W. Colby www.ColbyConsulting.com From martyconnelly at shaw.ca Fri Feb 3 23:49:12 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 03 Feb 2006 21:49:12 -0800 Subject: [AccessD] Shelling to dos References: <000001c62942$b5e85380$647aa8c0@ColbyM6805> Message-ID: <43E44058.5070603@shaw.ca> The Shell process flails around on its own, If you need to know when the process ends http://vbnet.mvps.org/code/faq/getexitcprocess.htm get a return code if it sends one from ShellEx Shamil had a couple of posts on this about 2 or 3 months back If the Shell function successfully executes the named file, it returns the task ID of the started program. The task ID is a unique number that identifies the running program. If the Shell function can't start the named program, an error occurs. Note The Shell function runs other programs asynchronously. This means that a program started with Shell might not finish executing before the statements following the Shell function are executed. John Colby wrote: >Does a shell to dos run in its own thread, i.e. will the shell command >return instantly, leaving the Dos process running? > >I need to Xcopy a directory from here to there. Rather than doing that from >inside of Access and tying up my program, I thought I would run a batch file >that does an Xcopy with a ton of switches that copies subdirs, sets the >archive bit etc. This only really helps if the shell returns once it gets >the xcopy running, but Xcopy must continue to run after the shell command >returns. > >John W. Colby >www.ColbyConsulting.com > > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Sat Feb 4 00:14:31 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 03 Feb 2006 22:14:31 -0800 Subject: [AccessD] FW: sql help please In-Reply-To: <000001c62936$b1d077c0$6701a8c0@HPLaptop> References: <000001c62936$b1d077c0$6701a8c0@HPLaptop> Message-ID: <43E44647.4010507@san.rr.com> I would copy the SQL of this query into the SQL view of a new query, then switch to design view. A lot of times for me that shows up the error in my SQL statement. Rocky Joe Hecht wrote: > > > No takers so I am asking again. > > Joe Hecht > > jmhecht at earthlink.net > > _____ > > From: Joe Hecht [mailto:jmhecht at earthlink.net] > Sent: Thursday, February 02, 2006 8:35 PM > To: 'Access Developers discussion and problem solving' > Subject: sql help please > > > > I am having 1 issue with the statement below. > > > > I have confirmed 20_stb_Loc_Wather_Road does indeed have > data in it so we are not looking at null messing me up. ( I > think) > > > > When I run the query no data from the table > 20_stb_Loc_Wather_Road is populating the query. I tried > splitting the query into a second query with everything > except the 20_stb_Loc_Wather_Road on one side and the > 20_stb_Loc_Wather_Road fields as the second query source and > I still had the same problem. > > > > I will check in morning. Bed time for me now. > > > > > > > > SELECT [10_tbl_PersonelMasterData].MyEmpNumb, > [20_tblAIMaster].ACCIDENT, > [20_tblAIMaster].MyAccidnetRecordNumber, > [20_tblAIMaster].CLAIM AS ClaimNumber, > [20_tblAIMaster].COMPANY, [20_tblAIMaster].AccidentDATE, > [20_stblAccDayInfo].AccidentTime, > [20_stblAccDayInfo].AccidentDayofWeek, > [20_tblAIMaster].DRIV_NUM, [20_tblAIMaster].REP_DATE, > [20_tblAIMaster].STATUS, [50_ltblTerminal].TRMNL_DESC, > [10_stblEmpCompInfo].START_DATE, > [20_tblAIMaster].OPEN_CLAIM, [last_NAME] & ", " & > [First_Name] & " " & [Middle_Name] AS FName, > [10_tbl_PersonelMasterData].DOB, > [20_stb_Loc_Wather_Road].RoadCondition, > [20_stb_Loc_Wather_Road].ROAD_TYPE, > [20_stb_Loc_Wather_Road].WEATHER, > [20_stb_Loc_Wather_Road].Loc_type, > [20_stb_Loc_Wather_Road].Acc_type, > [20_stb_Loc_Wather_Road].CHARGABIL > > > > FROM (50_ltblTerminal RIGHT JOIN (10_tbl_PersonelMasterData > INNER JOIN 10_stblEmpCompInfo ON > [10_tbl_PersonelMasterData].MyEmpNumb = > [10_stblEmpCompInfo].MyEmpNumb) ON > [50_ltblTerminal].TRMNL_CODE = > [10_stblEmpCompInfo].TERMINAL) INNER JOIN > (20_stb_Loc_Wather_Road RIGHT JOIN ((20_tblAIMaster INNER > JOIN 20_stblAccDayInfo ON > [20_tblAIMaster].MyAccidnetRecordNumber = > [20_stblAccDayInfo].MyAccidnetRecordNumber) INNER JOIN > 20_stblAIPaidExpences ON > [20_tblAIMaster].MyAccidnetRecordNumber = > [20_stblAIPaidExpences].MyAccidnetRecordNumber) ON > [20_stb_Loc_Wather_Road].MyAccidnetRecordNumber = > [20_tblAIMaster].MyAccidnetRecordNumber) ON > ([10_tbl_PersonelMasterData].DRIV_NUM = > [20_tblAIMaster].DRIV_NUM) AND > ([10_tbl_PersonelMasterData].DRIV_NUM = > [20_tblAIMaster].DRIV_NUM); > > > > > > TIA > > > > Joe Hecht > > jmhecht at earthlink.net > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Gustav at cactus.dk Sat Feb 4 05:29:38 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 04 Feb 2006 12:29:38 +0100 Subject: [AccessD] Missing records Message-ID: Hi J?rgen Setting AllowDeletions to False is a nice tip as in many forms the user is not supposed to delete anything. /gustav >>> jwelz at hotmail.com 03-02-2006 23:05:13 >>> One trick is not to forget to remove deletion capability. .. From DorisH3 at aol.com Sat Feb 4 09:23:40 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Sat, 4 Feb 2006 10:23:40 EST Subject: [AccessD] Conversion Message-ID: <208.11fd4365.311620fc@aol.com> Does anyone know if an Access database using VB modules can be converted to Japanese or Chinese? If it can be what is the process? Doris From jwcolby at ColbyConsulting.com Sat Feb 4 10:08:03 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Sat, 4 Feb 2006 11:08:03 -0500 Subject: [AccessD] Shelling to dos In-Reply-To: <43E44058.5070603@shaw.ca> Message-ID: <000901c629a5$2df34c60$647aa8c0@ColbyM6805> That is perfect. I need it to just go do it's thing. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Saturday, February 04, 2006 12:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shelling to dos The Shell process flails around on its own, If you need to know when the process ends http://vbnet.mvps.org/code/faq/getexitcprocess.htm get a return code if it sends one from ShellEx Shamil had a couple of posts on this about 2 or 3 months back If the Shell function successfully executes the named file, it returns the task ID of the started program. The task ID is a unique number that identifies the running program. If the Shell function can't start the named program, an error occurs. Note The Shell function runs other programs asynchronously. This means that a program started with Shell might not finish executing before the statements following the Shell function are executed. John Colby wrote: >Does a shell to dos run in its own thread, i.e. will the shell command >return instantly, leaving the Dos process running? > >I need to Xcopy a directory from here to there. Rather than doing that from >inside of Access and tying up my program, I thought I would run a batch file >that does an Xcopy with a ton of switches that copies subdirs, sets the >archive bit etc. This only really helps if the shell returns once it gets >the xcopy running, but Xcopy must continue to run after the shell command >returns. > >John W. Colby >www.ColbyConsulting.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 harkinsss at bellsouth.net Sat Feb 4 10:11:10 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sat, 4 Feb 2006 11:11:10 -0500 Subject: [AccessD] FW: sql help please In-Reply-To: <43E44647.4010507@san.rr.com> Message-ID: <004301c629a5$9e933cf0$aeb3d6d1@SUSANONE> Also, break it down into individual queries -- and combine one at a time -- at least you'll know which statement is the problem -- might not give you the exact problem, but you'll be closer. If you're not getting an error, just an empty recordset, that in itself offer s a few clues -- I'd begin my search with the criteria expression and then move on to the joins. Susan H. I would copy the SQL of this query into the SQL view of a new query, then switch to design view. A lot of times for me that shows up the error in my SQL statement. From jwcolby at ColbyConsulting.com Sat Feb 4 10:16:50 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Sat, 4 Feb 2006 11:16:50 -0500 Subject: [AccessD] OT: Coding to Outlook Message-ID: <003301c629a6$6809f1f0$647aa8c0@ColbyM6805> Does anyone out there code in outlook directly? I use BlueSecurity.com http://members.bluesecurity.com/cwa/users/welcome.do To report my spam. Just a personal "feels good to do this" thing. It requires sending an email to BlueSecurity when I get enough in the spam box to make it worthwhile. It would be nice to have a button on my Outlook bar that opens an email to BlueSecurity, attaches the spam emails to the opened email, sends the email, then deletes the emails in the spam folder. It only takes me about 1 minute to do this manually but doing it daily gets old after awhile. Spam filtering is so good now that I probably have less than 1 in 50 things that hit the spam folder that should not be there. By keeping the spam folder cleaned out daily it makes it easier to ensure that any non-spam items get removed from the spam folder before I report the spam. I have tried writing the code myself but for some reason the code is telling me that there are no emails in the spam folder when I can see that there are. John W. Colby www.ColbyConsulting.com From accessd at shaw.ca Sat Feb 4 11:54:46 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 04 Feb 2006 09:54:46 -0800 Subject: [AccessD] Conversion In-Reply-To: <208.11fd4365.311620fc@aol.com> Message-ID: <004301c629b4$15fad510$017ba8c0@xpserver> Hi Doris: Rocky would be the man to help you out as he has gone through a similar process a year or so ago with one of his products. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DorisH3 at aol.com Sent: February 4, 2006 7:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Conversion Does anyone know if an Access database using VB modules can be converted to Japanese or Chinese? If it can be what is the process? Doris -- 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 4 11:58:57 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 04 Feb 2006 12:58:57 -0500 Subject: [AccessD] Missing records References: Message-ID: <43E4EB61.7000404@torchlake.com> Okay, what does DIY mean? T Charlotte Foust wrote: >I have to agree with you, Gustav. Cascading deletes are definitely not >for DIY users but properly implemented, they save a lot of code! > >Charlotte Foust > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Friday, February 03, 2006 8:01 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Missing records > > >Hi John > >Oh no, why are you beating this horse again? > >Cascade delete is a very powerful and useful feature. >However - just like fire - implement it only when you know what you are >doing. > >Your example with invoices is bad. You never delete an invoice, and if >you do (it might be a draft only) you will wish to delete all its >invoice lines too. If you don't, you will have orphaned invoice lines, >or you will have to bother the user with deleting line by line until the >draft is empty and can be deleted. > >You may program your own routines to be fired at a click of the >supervisor's button, but doing so is somewhat similar to building >unbound forms in Access. > >As I wrote last time: You know all about this - normalization, relations >and so on - so why be so scared? > >/gustav > > > >>>>jwcolby at ColbyConsulting.com 03-02-2006 16:33:46 >>> >>>> >>>> >John, > >The first thing to do is examine the relationships for the tables >missing records. If "cascade delete" is turned on (a NO-NO in my humble >opinion) then deleting a single record (such as a customer) will (after >a warning of >course) delete ALL child/grandchild/...greatgreatgreat records. > >Let's say that a client has invoices and invoice line items. Yep, all >gone. Repair service calls / line items? Yep, all gone. Payments? >Yep, all gone. > >Cascade delete of a single (for example) customer record WILL delete all >child records, however far down they go. Potentially dozens or even >thousands of records, all gone because the user was "just deleting a >single customer record". > >I pretty much design my databases to never turn on Cascade delete, and >then build delete queries tied to buttons which only supervisors can >see/click. > >John W. Colby >www.ColbyConsulting.com > > > From martyconnelly at shaw.ca Sat Feb 4 12:13:17 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 04 Feb 2006 10:13:17 -0800 Subject: [AccessD] Missing records References: <43E4EB61.7000404@torchlake.com> Message-ID: <43E4EEBD.2030305@shaw.ca> DIY (Do It Yourself ) especially with regard to car or home repair, they tend to congregate in hospital emergency rooms on saturday afternoons. Tina Norris Fields wrote: >Okay, what does DIY mean? >T > >Charlotte Foust wrote: > > > >>I have to agree with you, Gustav. Cascading deletes are definitely not >>for DIY users but properly implemented, they save a lot of code! >> >>Charlotte Foust >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >>Sent: Friday, February 03, 2006 8:01 AM >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] Missing records >> >> >>Hi John >> >>Oh no, why are you beating this horse again? >> >>Cascade delete is a very powerful and useful feature. >>However - just like fire - implement it only when you know what you are >>doing. >> >>Your example with invoices is bad. You never delete an invoice, and if >>you do (it might be a draft only) you will wish to delete all its >>invoice lines too. If you don't, you will have orphaned invoice lines, >>or you will have to bother the user with deleting line by line until the >>draft is empty and can be deleted. >> >>You may program your own routines to be fired at a click of the >>supervisor's button, but doing so is somewhat similar to building >>unbound forms in Access. >> >>As I wrote last time: You know all about this - normalization, relations >>and so on - so why be so scared? >> >>/gustav >> >> >> >> >> >>>>>jwcolby at ColbyConsulting.com 03-02-2006 16:33:46 >>> >>>>> >>>>> >>>>> >>>>> >>John, >> >>The first thing to do is examine the relationships for the tables >>missing records. If "cascade delete" is turned on (a NO-NO in my humble >>opinion) then deleting a single record (such as a customer) will (after >>a warning of >>course) delete ALL child/grandchild/...greatgreatgreat records. >> >>Let's say that a client has invoices and invoice line items. Yep, all >>gone. Repair service calls / line items? Yep, all gone. Payments? >>Yep, all gone. >> >>Cascade delete of a single (for example) customer record WILL delete all >>child records, however far down they go. Potentially dozens or even >>thousands of records, all gone because the user was "just deleting a >>single customer record". >> >>I pretty much design my databases to never turn on Cascade delete, and >>then build delete queries tied to buttons which only supervisors can >>see/click. >> >>John W. Colby >>www.ColbyConsulting.com >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From DorisH3 at aol.com Sat Feb 4 12:18:28 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Sat, 4 Feb 2006 13:18:28 EST Subject: [AccessD] Conversion Message-ID: <254.5d32358.311649f4@aol.com> In a message dated 2/4/2006 12:57:35 PM Eastern Standard Time, accessd at shaw.ca writes: Hi Doris: Rocky would be the man to help you out as he has gone through a similar process a year or so ago with one of his products. Jim How do I contact Rocky? From spikee at oatlandspark.org.uk Sat Feb 4 12:06:15 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Sat, 4 Feb 2006 18:06:15 -0000 Subject: [AccessD] Missing records In-Reply-To: <43E4EB61.7000404@torchlake.com> Message-ID: <200602041828.k14IScC11538@databaseadvisors.com> Tina DIY - Do It Yourself HTH Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: 04 February 2006 17:59 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records Okay, what does DIY mean? T Charlotte Foust wrote: >I have to agree with you, Gustav. Cascading deletes are definitely not >for DIY users but properly implemented, they save a lot of code! > >Charlotte Foust From garykjos at gmail.com Sat Feb 4 13:13:40 2006 From: garykjos at gmail.com (Gary Kjos) Date: Sat, 4 Feb 2006 13:13:40 -0600 Subject: [AccessD] Conversion In-Reply-To: <254.5d32358.311649f4@aol.com> References: <254.5d32358.311649f4@aol.com> Message-ID: He is a subscriber and frequent contributor to this list. According to his website, http://www.e-z-mrp.com/ His e-mail is bchacc at san.rr.com if you want to contact him directly. Gary On 2/4/06, DorisH3 at aol.com wrote: > In a message dated 2/4/2006 12:57:35 PM Eastern Standard Time, > accessd at shaw.ca writes: > Hi Doris: > > Rocky would be the man to help you out as he has gone through a similar > process a year or so ago with one of his products. > > Jim > How do I contact Rocky? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From tinanfields at torchlake.com Sat Feb 4 13:13:49 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 04 Feb 2006 14:13:49 -0500 Subject: [AccessD] Missing records References: <200602041828.k14IScC11538@databaseadvisors.com> Message-ID: <43E4FCED.5060705@torchlake.com> Thanks to Chris and Marty - Hilarious! T Chris Foote (Spike) wrote: > >Tina DIY - Do It Yourself > >HTH >Chris Foote > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris >Fields >Sent: 04 February 2006 17:59 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Missing records > >Okay, what does DIY mean? >T > >Charlotte Foust wrote: > > > >>I have to agree with you, Gustav. Cascading deletes are definitely not >>for DIY users but properly implemented, they save a lot of code! >> >>Charlotte Foust >> >> > > > > From accessd at shaw.ca Sat Feb 4 13:26:43 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 04 Feb 2006 11:26:43 -0800 Subject: [AccessD] Conversion In-Reply-To: <254.5d32358.311649f4@aol.com> Message-ID: <004701c629c0$ef300880$017ba8c0@xpserver> Hi Doris: Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com bchacc at san.rr.com HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DorisH3 at aol.com Sent: February 4, 2006 10:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Conversion In a message dated 2/4/2006 12:57:35 PM Eastern Standard Time, accessd at shaw.ca writes: Hi Doris: Rocky would be the man to help you out as he has gone through a similar process a year or so ago with one of his products. Jim How do I contact Rocky? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sat Feb 4 13:28:50 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 04 Feb 2006 11:28:50 -0800 Subject: [AccessD] Conversion In-Reply-To: <254.5d32358.311649f4@aol.com> References: <254.5d32358.311649f4@aol.com> Message-ID: <43E50072.9080301@san.rr.com> Hi! :-P Rocky DorisH3 at aol.com wrote: > In a message dated 2/4/2006 12:57:35 PM Eastern Standard Time, > accessd at shaw.ca writes: > Hi Doris: > > Rocky would be the man to help you out as he has gone through a similar > process a year or so ago with one of his products. > > Jim > How do I contact Rocky? > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jwcolby at ColbyConsulting.com Sat Feb 4 18:44:14 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Sat, 4 Feb 2006 19:44:14 -0500 Subject: [AccessD] OT: Coding to Outlook In-Reply-To: <003301c629a6$6809f1f0$647aa8c0@ColbyM6805> Message-ID: <002001c629ed$4a011250$647aa8c0@ColbyM6805> Well, I figured it out. The junk mail folder isn't under the inbox (on my machine anyway) and while it appeared to be returning a folder under the inbox in fact it wasn't valid or something. Once I changed my reference to get it from the right place it went without a hitch. For anyone interested BlueSecurity.com http://members.bluesecurity.com/cwa/users/welcome.do Is a company that works to put spammers in their place. I am a member and while I cannot say with any certainty that it helps, I am convinced that they are for real and recommend that anyone interested in helping to fight spam join. In order to make reporting my own spam easier, I created a macro inside of outlook to do the reporting. It is now "pushbutton". Pushbutton is good! In order to use this program, you need to create a macro in Outlook, create a toolbar with a button, and click the button. To create the code macro that will send the email: 1) From inside of outlook click Tools in the main menu 2) Click Macros / Visual Basic Editor. You will now be in the visual basic editor. 3) Click Insert / Module 4) Cut and paste the code below into the editor and save it. 4a) Set YOUR EMAIL ADDRESS with Blue Security in the very first line of the program in "MyUserName at reports.bluesecurity.com" 5) Click Save and close the editor To create a toolbar and a button to allow you to use the macro to send your spam to Blue Security: 6) Right click in the Outlook toolbar area at the top. 7) Click Customize / Toolbars / New. This will create a new toolbar. 8) Type in the name of your new toolbar - Blue Frog and click OK 9) You will now see a small blank toolbar. 10) In the "Customize" dialog click the "Commands" tab. 11) Click Macros. In the right hand pane of the dialog you should now see a macro named something like "project1.BlueFrogSecurityEmail" 12) Click-Hold-Drag and drop that macro onto your new toolbar 13) Close the "customize" dialog box 14) Drag the new toolbar up to the toolbars area of Outlook and dock it. To use the macro: All you need to do is make sure that your spam is in the Junk E-Mail folder in Outlook. If you use Spam Bayes or some other non-native junk mail processor it may have it's own folder that it places email in. If that is the case, you will need to drag and drop the junk mail from that folder into Outlook's "Junk E-Mail" folder. My macro only process email in that folder. If you have mail in the "Junk E-Mail" folder which is NOT JUNK, you need to get it out before you use the button because I delete all messages in the "Junk E-Mail" folder when I have finished sending the email. To send your junk email to Blue Security, set YOUR EMAIL ADDRESS with Blue Security in the very first line of the program. You have to be set up and have an account with Blue Security in order to have such an email address, ad if you are, you should know what your email address is with them. To actually send email, just click the button in your new toolbar. Any email in the "Junk E-Mail" folder in Outlook will be attached to an email and sent to Blue Security. All email in that folder will then be deleted. CHECK THE FOLDER FIRST to make sure that no letters from mom, your bank, etc are sitting in the junk mail folder. '*************************************************** 'THIS IS THE CODE: '*************************************************** Const cstrBlueSecurityEmailAddress As String = "MyUserName at reports.bluesecurity.com" Sub BlueFrogSecurityEmail() SendBlueSecurityEmail cstrBlueSecurityEmailAddress End Sub Function SendBlueSecurityEmail(strRecipient As String, Optional ProfileName) On Error GoTo Err_SendBlueSecurityEmail Dim myOlApp As Outlook.Application Dim myOLItem As Object Dim fldrJunk As Outlook.MAPIFolder Dim msg As Outlook.MailItem Set myOlApp = OpenOL(ProfileName) Set fldrJunk = myOlApp.GetNamespace("MAPI").GetDefaultFolder(olFolderJunk) If (fldrJunk.Items.Count > 0) Then Set myOLItem = myOlApp.CreateItem(olMailItem) With myOLItem .To = strRecipient For Each msg In fldrJunk.Items Debug.Print "SendBlueSecurityEmail - Processing message: " & msg .Attachments.Add msg Next msg End With myOLItem.Send ' 'Delete the items from the spam folder ' While fldrJunk.Items.Count > 0 fldrJunk.Items.Remove (1) Wend End If Exit_SendBlueSecurityEmail: Exit Function Err_SendBlueSecurityEmail: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function dclsOutlook.SendBlueSecurityEmail" Resume Exit_SendBlueSecurityEmail End Select Resume 0 '.FOR TROUBLESHOOTING End Function Private Function OpenOL(Optional ProfileName) As Outlook.Application On Error GoTo Err_OpenOL Dim objOL As Outlook.Application On Error Resume Next Set objOL = GetObject(, "Outlook.Application") If objOL Is Nothing Then Set objOL = CreateObject("Outlook.Application") objOL.Session.Logon ProfileName, , False, True End If Set OpenOL = objOL Set objOL = Nothing Exit_OpenOL: Exit Function Err_OpenOL: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function dclsOutlook.OpenOL" Resume Exit_OpenOL End Select Resume 0 '.FOR TROUBLESHOOTING 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 John Colby Sent: Saturday, February 04, 2006 11:17 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Coding to Outlook Does anyone out there code in outlook directly? I use BlueSecurity.com http://members.bluesecurity.com/cwa/users/welcome.do To report my spam. Just a personal "feels good to do this" thing. It requires sending an email to BlueSecurity when I get enough in the spam box to make it worthwhile. It would be nice to have a button on my Outlook bar that opens an email to BlueSecurity, attaches the spam emails to the opened email, sends the email, then deletes the emails in the spam folder. It only takes me about 1 minute to do this manually but doing it daily gets old after awhile. Spam filtering is so good now that I probably have less than 1 in 50 things that hit the spam folder that should not be there. By keeping the spam folder cleaned out daily it makes it easier to ensure that any non-spam items get removed from the spam folder before I report the spam. I have tried writing the code myself but for some reason the code is telling me that there are no emails in the spam folder when I can see that there are. 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 nick at frasiervan.com Sat Feb 4 18:57:10 2006 From: nick at frasiervan.com (Nick) Date: Sat, 4 Feb 2006 18:57:10 -0600 Subject: [AccessD] FW: sql help please In-Reply-To: <000001c62936$b1d077c0$6701a8c0@HPLaptop> Message-ID: <004601c629ef$187485d0$6600a8c0@NickLaptop> That's a big nasty query. Two items just looking at it. Is this field name correct? [20_tblAIMaster].MyAccidnetRecordNumber You have a join to 20_stblAIPaidExpences but are not viewing any fields, nor needing any field in this table for an implied relationship. Previous advice applies, build this query step by step and figure out at which stage of rebuilding it doesn't work. From: Joe Hecht [mailto:jmhecht at earthlink.net] Sent: Thursday, February 02, 2006 8:35 PM To: 'Access Developers discussion and problem solving' Subject: sql help please I am having 1 issue with the statement below. I have confirmed 20_stb_Loc_Wather_Road does indeed have data in it so we are not looking at null messing me up. ( I think) When I run the query no data from the table 20_stb_Loc_Wather_Road is populating the query. I tried splitting the query into a second query with everything except the 20_stb_Loc_Wather_Road on one side and the 20_stb_Loc_Wather_Road fields as the second query source and I still had the same problem. I will check in morning. Bed time for me now. SELECT [10_tbl_PersonelMasterData].MyEmpNumb, [20_tblAIMaster].ACCIDENT, [20_tblAIMaster].MyAccidnetRecordNumber, [20_tblAIMaster].CLAIM AS ClaimNumber, [20_tblAIMaster].COMPANY, [20_tblAIMaster].AccidentDATE, [20_stblAccDayInfo].AccidentTime, [20_stblAccDayInfo].AccidentDayofWeek, [20_tblAIMaster].DRIV_NUM, [20_tblAIMaster].REP_DATE, [20_tblAIMaster].STATUS, [50_ltblTerminal].TRMNL_DESC, [10_stblEmpCompInfo].START_DATE, [20_tblAIMaster].OPEN_CLAIM, [last_NAME] & ", " & [First_Name] & " " & [Middle_Name] AS FName, [10_tbl_PersonelMasterData].DOB, [20_stb_Loc_Wather_Road].RoadCondition, [20_stb_Loc_Wather_Road].ROAD_TYPE, [20_stb_Loc_Wather_Road].WEATHER, [20_stb_Loc_Wather_Road].Loc_type, [20_stb_Loc_Wather_Road].Acc_type, [20_stb_Loc_Wather_Road].CHARGABIL FROM (50_ltblTerminal RIGHT JOIN (10_tbl_PersonelMasterData INNER JOIN 10_stblEmpCompInfo ON [10_tbl_PersonelMasterData].MyEmpNumb = [10_stblEmpCompInfo].MyEmpNumb) ON [50_ltblTerminal].TRMNL_CODE = [10_stblEmpCompInfo].TERMINAL) INNER JOIN (20_stb_Loc_Wather_Road RIGHT JOIN ((20_tblAIMaster INNER JOIN 20_stblAccDayInfo ON [20_tblAIMaster].MyAccidnetRecordNumber = [20_stblAccDayInfo].MyAccidnetRecordNumber) INNER JOIN 20_stblAIPaidExpences ON [20_tblAIMaster].MyAccidnetRecordNumber = [20_stblAIPaidExpences].MyAccidnetRecordNumber) ON [20_stb_Loc_Wather_Road].MyAccidnetRecordNumber = [20_tblAIMaster].MyAccidnetRecordNumber) ON ([10_tbl_PersonelMasterData].DRIV_NUM = [20_tblAIMaster].DRIV_NUM) AND ([10_tbl_PersonelMasterData].DRIV_NUM = [20_tblAIMaster].DRIV_NUM); TIA Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accma at sympatico.ca Sat Feb 4 19:21:00 2006 From: accma at sympatico.ca (Annie Courchesne, cma) Date: Sat, 4 Feb 2006 20:21:00 -0500 Subject: [AccessD] Error loading DLL Message-ID: Hi everyone, I have a database running under A2K runtime on three computers. I use a code to send email using Outlook. On two computers, it works great. On the third, it does not work. After testing, I see that the error shown is "Error Loading DLL". Anyone had any problem like this? I think it may be a problem with Outlook on this computer. Should I reinstall it? Can I just replace a problem DLL? Thanks! Annie Courchesne, CMA From dw-murphy at cox.net Sat Feb 4 19:26:06 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Sat, 4 Feb 2006 17:26:06 -0800 Subject: [AccessD] Error loading DLL In-Reply-To: Message-ID: <000501c629f3$22efa400$0200a8c0@murphyf3vdfepi> What is the error number? How are you using access to send e-mail; SendObject? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie Courchesne, cma Sent: Saturday, February 04, 2006 5:21 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error loading DLL Hi everyone, I have a database running under A2K runtime on three computers. I use a code to send email using Outlook. On two computers, it works great. On the third, it does not work. After testing, I see that the error shown is "Error Loading DLL". Anyone had any problem like this? I think it may be a problem with Outlook on this computer. Should I reinstall it? Can I just replace a problem DLL? Thanks! Annie Courchesne, CMA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accma at sympatico.ca Sat Feb 4 19:36:54 2006 From: accma at sympatico.ca (Annie Courchesne, cma) Date: Sat, 4 Feb 2006 20:36:54 -0500 Subject: [AccessD] Error loading DLL In-Reply-To: <000501c629f3$22efa400$0200a8c0@murphyf3vdfepi> Message-ID: Hi, The error code number is 48. I use the following code to send a email : ---- Dim OutlookApp As Outlook.Application, OutlookFile As Outlook.Attachment Dim OutlookMsg As Outlook.MailItem, OutlookRecip As Outlook.Recipient Public Sub OpenMsgOutlook(EMail As String, PathFile As String) On Error GoTo err_OpenMsgOutlook Set OutlookApp = CreateObject("Outlook.Application") Set OutlookMsg = OutlookApp.CreateItem(olMailItem) With OutlookMsg Set OutlookRecip = .Recipients.add(EMail) Set OutlookFile = .Attachments.add(PathFile) OutlookRecip.Type = olTo .Display End With Exit Sub err_OpenMsgOutlook: Resume Next End Sub ---- Depending on what needs to be sent I use this code or another one (the only difference is the .display that is being changed to .send). It always worked great in the past and I don't know why I'm having problem with this one computer!!! Thanks! Annie Courchesne, CMA -----Message d'origine----- De?: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] De la part de Doug Murphy Envoy??: 4 f?vrier 2006 20:26 ??: 'Access Developers discussion and problem solving' Objet?: Re: [AccessD] Error loading DLL What is the error number? How are you using access to send e-mail; SendObject? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie Courchesne, cma Sent: Saturday, February 04, 2006 5:21 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error loading DLL Hi everyone, I have a database running under A2K runtime on three computers. I use a code to send email using Outlook. On two computers, it works great. On the third, it does not work. After testing, I see that the error shown is "Error Loading DLL". Anyone had any problem like this? I think it may be a problem with Outlook on this computer. Should I reinstall it? Can I just replace a problem DLL? Thanks! Annie Courchesne, CMA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Sat Feb 4 20:57:20 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 4 Feb 2006 20:57:20 -0600 Subject: [AccessD] Lotus Notes Email Message-ID: <000001c629ff$e26643f0$0200a8c0@danwaters> Has anyone used access to send email via Lotus Notes? I've never used Lotus Notes for email or anything else, but a potential customer does, and I'd like to tell him that I can connect to his email system. Thanks! Dan From DorisH3 at aol.com Sat Feb 4 21:05:30 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Sat, 4 Feb 2006 22:05:30 EST Subject: [AccessD] Conversion Message-ID: <1a8.47c4af68.3116c57a@aol.com> Thanks for the info...Doris From DorisH3 at aol.com Sat Feb 4 21:08:38 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Sat, 4 Feb 2006 22:08:38 EST Subject: [AccessD] Conversion Message-ID: <1fb.198cc663.3116c636@aol.com> Hi Rocky, I understand you have been through a conversion to another language other than English...can an Access database using VB modules be converted to Japanese or Chinese? If it can be what is the process? I appreciate any light that you can throw my way...I have a client who is dealing with clients in Japan and China and they want to be able to use the same Access database. Doris From bchacc at san.rr.com Sat Feb 4 22:30:50 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 04 Feb 2006 20:30:50 -0800 Subject: [AccessD] Conversion In-Reply-To: <1fb.198cc663.3116c636@aol.com> References: <1fb.198cc663.3116c636@aol.com> Message-ID: <43E57F7A.60109@san.rr.com> Doris: When I converted E-Z-MRP (www.e-z-mrp.com) to Access from a DOS platform, I anticipated having foreign language versions and so I put all of the text - command button captions, labels, error messages into tables. The first column of the table (after the autonumber key, of course) is the form name; the second field is the control name; third field is the English. To make another language then, I just add a field to the record. In the case of Chinese, I had to add two fields - one for traditional the other for simplified Chinese. I then sent the tables (one table for controls, one for messages) to my Chinese distributor who simply entered the translation in the appropriate column. I recently added a column for French and a dealer in France has just made the translations. In a Preferences form of the application front end, the user can specify the language they want to see. The preference is stored int he front end so that one user can be looking at the app in one language, another user can see the same data but in a different language. Of course, any back end data they enter, such a part description, appears only in the language they entered it in originally. At form or report load time I call one of several translate routines which go to the tables, find the control in questions and replace the caption or whatever with the field from the record is specified by the user's language preference. To do Asian languages I had only to load the Eastern Asian Language support in Windows and, walla!, up it came in Chinese. (Of course I have no earthly idea what it says, I have to trust the translator.) The translate routine did need to accommodate Unicode, because I guess that's what Chinese characters are stored in. I think it's a double word for each character. But you don't have to use the table approach if you want to have just a hard coded front end in a different language. Turns out to be quite easy, but then you have two or more versions to support. With the table approach, you have only one version. That's just the Cliff notes version. Let me know what further questions this generates. Best, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com DorisH3 at aol.com wrote: > > Hi Rocky, > > I understand you have been through a conversion to another language other > than English...can an Access database using VB modules be converted to Japanese > or Chinese? If it can be what is the process? > > I appreciate any light that you can throw my way...I have a client who is > dealing with clients in Japan and China and they want to be able to use the same > Access database. > > Doris > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From stuart at lexacorp.com.pg Sun Feb 5 01:16:48 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 05 Feb 2006 17:16:48 +1000 Subject: [AccessD] Lotus Notes Email In-Reply-To: <000001c629ff$e26643f0$0200a8c0@danwaters> Message-ID: <43E63300.21293.4C2A469@stuart.lexacorp.com.pg> On 4 Feb 2006 at 20:57, Dan Waters wrote: > Has anyone used access to send email via Lotus Notes? I've never used Lotus > Notes for email or anything else, but a potential customer does, and I'd > like to tell him that I can connect to his email system. > Lotus is MAPI complaint so Docmd.SendObject works. -- Stuart From BarbaraRyan at cox.net Sun Feb 5 07:02:58 2006 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Sun, 5 Feb 2006 08:02:58 -0500 Subject: [AccessD] Lotus Notes Email References: <000001c629ff$e26643f0$0200a8c0@danwaters> Message-ID: <002601c62a54$7cf22020$0d00a8c0@desktop> Dan...Yes --- here's some sample code http://www.fabalou.com/VBandVBA/lotusnotesmail.asp Barb Ryan ----- Original Message ----- From: "Dan Waters" To: "AccessD" Sent: Saturday, February 04, 2006 9:57 PM Subject: [AccessD] Lotus Notes Email > Has anyone used access to send email via Lotus Notes? I've never used Lotus > Notes for email or anything else, but a potential customer does, and I'd > like to tell him that I can connect to his email system. > > Thanks! > > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Sun Feb 5 09:38:02 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sun, 5 Feb 2006 10:38:02 -0500 Subject: [AccessD] Conversion In-Reply-To: <43E57F7A.60109@san.rr.com> Message-ID: <001c01c62a6a$2702c230$a5b3d6d1@SUSANONE> How do you tell the forms, controls, etc. which language to use? Are there many routines, or just one? Susan H. Doris: At form or report load time I call one of several translate routines which go to the tables, find the control in questions and replace the caption or whatever with the field from the record is specified by the user's language preference. To do Asian languages I had only to load the Eastern Asian Language support in Windows and, walla!, up it came in Chinese. (Of course I have no earthly idea what it says, I have to trust the translator.) The translate routine did need to accommodate Unicode, because I guess that's what Chinese characters are stored in. I think it's a double word for each character. From bill_Patten at earthlink.net Sun Feb 5 10:10:31 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Sun, 5 Feb 2006 08:10:31 -0800 Subject: [AccessD] Error loading DLL References: Message-ID: <000901c62a6e$b0908bf0$6501a8c0@BPCS> Annie, Since no one has responded that knows, including me by the way, I did Google search and found several questions like your and most were not answered. One guy did say he reinstalled Outlook and that fixed the problem, for what ever that is worth. HTH Bill ----- Original Message ----- From: "Annie Courchesne, cma" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 04, 2006 5:21 PM Subject: [AccessD] Error loading DLL Hi everyone, I have a database running under A2K runtime on three computers. I use a code to send email using Outlook. On two computers, it works great. On the third, it does not work. After testing, I see that the error shown is "Error Loading DLL". Anyone had any problem like this? I think it may be a problem with Outlook on this computer. Should I reinstall it? Can I just replace a problem DLL? Thanks! Annie Courchesne, CMA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Sun Feb 5 10:21:03 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Sun, 5 Feb 2006 08:21:03 -0800 Subject: [AccessD] Conversion In-Reply-To: <43E57F7A.60109@san.rr.com> Message-ID: <001601c62a70$295f6820$6701a8c0@HPLaptop> Rocky & Others, How do you think of stuff like this? I never would have come up with a solution like this. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Saturday, February 04, 2006 8:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Conversion Doris: When I converted E-Z-MRP (www.e-z-mrp.com) to Access from a DOS platform, I anticipated having foreign language versions and so I put all of the text - command button captions, labels, error messages into tables. The first column of the table (after the autonumber key, of course) is the form name; the second field is the control name; third field is the English. To make another language then, I just add a field to the record. In the case of Chinese, I had to add two fields - one for traditional the other for simplified Chinese. I then sent the tables (one table for controls, one for messages) to my Chinese distributor who simply entered the translation in the appropriate column. I recently added a column for French and a dealer in France has just made the translations. In a Preferences form of the application front end, the user can specify the language they want to see. The preference is stored int he front end so that one user can be looking at the app in one language, another user can see the same data but in a different language. Of course, any back end data they enter, such a part description, appears only in the language they entered it in originally. At form or report load time I call one of several translate routines which go to the tables, find the control in questions and replace the caption or whatever with the field from the record is specified by the user's language preference. To do Asian languages I had only to load the Eastern Asian Language support in Windows and, walla!, up it came in Chinese. (Of course I have no earthly idea what it says, I have to trust the translator.) The translate routine did need to accommodate Unicode, because I guess that's what Chinese characters are stored in. I think it's a double word for each character. But you don't have to use the table approach if you want to have just a hard coded front end in a different language. Turns out to be quite easy, but then you have two or more versions to support. With the table approach, you have only one version. That's just the Cliff notes version. Let me know what further questions this generates. Best, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com DorisH3 at aol.com wrote: > > Hi Rocky, > > I understand you have been through a conversion to another language other > than English...can an Access database using VB modules be converted to Japanese > or Chinese? If it can be what is the process? > > I appreciate any light that you can throw my way...I have a client who is > dealing with clients in Japan and China and they want to be able to use the same > Access database. > > Doris > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sun Feb 5 11:15:56 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 05 Feb 2006 09:15:56 -0800 Subject: [AccessD] Conversion In-Reply-To: <001c01c62a6a$2702c230$a5b3d6d1@SUSANONE> References: <001c01c62a6a$2702c230$a5b3d6d1@SUSANONE> Message-ID: <43E632CC.2070400@san.rr.com> The field names in the language tables have the language name embedded in them: fldLanguageChineseComplex, fldLanguageChineseSimple, fldLanguageFrench. When the user selects their language preference from the preferences form in the utilities menu, I save the field name in the Preferences table. They also have the option to check a Unicode box. Figuring out how to handle Unicode was the trickiest part of it for me. I have 8 translate routines because the translate thing developed over some time solving different little problems. It could probably be reduced to a couple but since it's working well I didn't have the motivation to go back and polish it up. There are some special differences for sub-forms and sub-reports. The basic form or report translate routine gets the form or report name passed to it. The code cycles through all of the control on the form or report checking to see if that control name is in the table. If so, it gets the appropriate translation and changes the control - mostly the caption property. The translate routine for the message boxes runs the same way, only I pass the name of the message to the translation routine. Rocky Susan Harkins wrote: > How do you tell the forms, controls, etc. which language to use? Are there > many routines, or just one? > > Susan H. > > Doris: > > At form or report load time I call one of several translate routines which > go to the tables, find the control in questions and replace the caption or > whatever with the field from the record is specified by the user's language > preference. To do Asian languages I had only to load the Eastern Asian > Language support in Windows and, walla!, up it came in Chinese. (Of course I > have no earthly idea what it says, I have to trust the translator.) The > translate routine did need to accommodate Unicode, because I guess that's > what Chinese characters are stored in. I think it's a double word for each > character. > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Sun Feb 5 11:16:42 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 05 Feb 2006 09:16:42 -0800 Subject: [AccessD] Conversion In-Reply-To: <001601c62a70$295f6820$6701a8c0@HPLaptop> References: <001601c62a70$295f6820$6701a8c0@HPLaptop> Message-ID: <43E632FA.6030005@san.rr.com> Beat's me. :-P Rocky Joe Hecht wrote: > Rocky & Others, > > How do you think of stuff like this? I never would have come > up with a solution like this. > > > > Joe Hecht > jmhecht at earthlink.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin - Beach Access Software > Sent: Saturday, February 04, 2006 8:31 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Conversion > > Doris: > > When I converted E-Z-MRP (www.e-z-mrp.com) to Access from a > DOS > platform, I anticipated having foreign language versions and > so I put > all of the text - command button captions, labels, error > messages into > tables. The first column of the table (after the autonumber > key, of > course) is the form name; the second field is the control > name; third > field is the English. To make another language then, I just > add a field > to the record. In the case of Chinese, I had to add two > fields - one > for traditional the other for simplified Chinese. I then > sent the > tables (one table for controls, one for messages) to my > Chinese > distributor who simply entered the translation in the > appropriate > column. I recently added a column for French and a dealer > in France has > just made the translations. > > In a Preferences form of the application front end, the user > can specify > the language they want to see. The preference is stored int > he front > end so that one user can be looking at the app in one > language, another > user can see the same data but in a different language. Of > course, any > back end data they enter, such a part description, appears > only in the > language they entered it in originally. > > At form or report load time I call one of several translate > routines > which go to the tables, find the control in questions and > replace the > caption or whatever with the field from the record is > specified by the > user's language preference. To do Asian languages I had > only to load > the Eastern Asian Language support in Windows and, walla!, > up it came in > Chinese. (Of course I have no earthly idea what it says, I > have to trust > the translator.) The translate routine did need to > accommodate Unicode, > because I guess that's what Chinese characters are stored > in. I think > it's a double word for each character. > > But you don't have to use the table approach if you want to > have just a > hard coded front end in a different language. Turns out to > be quite > easy, but then you have two or more versions to support. > With the table > approach, you have only one version. > > That's just the Cliff notes version. Let me know what > further questions > this generates. > > Best, > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > > > > > DorisH3 at aol.com wrote: > >> >> Hi Rocky, >> >> I understand you have been through a conversion to another >> > language other > >> than English...can an Access database using VB modules be >> > converted to Japanese > >> or Chinese? If it can be what is the process? >> >> I appreciate any light that you can throw my way...I have >> > a client who is > >> dealing with clients in Japan and China and they want to >> > be able to use the same > >> Access database. >> >> Doris >> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dwaters at usinternet.com Sun Feb 5 11:28:27 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 5 Feb 2006 11:28:27 -0600 Subject: [AccessD] Lotus Notes Email - Thanks! In-Reply-To: <21385411.1139144876949.JavaMail.root@sniper22> Message-ID: <000401c62a79$9530ca90$0200a8c0@danwaters> Barb & Stuart! Thanks for this help. This is one of those 'could make the difference' items! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Sunday, February 05, 2006 7:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lotus Notes Email Dan...Yes --- here's some sample code http://www.fabalou.com/VBandVBA/lotusnotesmail.asp Barb Ryan ----- Original Message ----- From: "Dan Waters" To: "AccessD" Sent: Saturday, February 04, 2006 9:57 PM Subject: [AccessD] Lotus Notes Email > Has anyone used access to send email via Lotus Notes? I've never used Lotus > Notes for email or anything else, but a potential customer does, and I'd > like to tell him that I can connect to his email system. > > Thanks! > > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Sun Feb 5 11:31:46 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sun, 5 Feb 2006 12:31:46 -0500 Subject: [AccessD] Conversion In-Reply-To: <43E632CC.2070400@san.rr.com> Message-ID: <005401c62a7a$0a486090$a5b3d6d1@SUSANONE> Is this time consuming? Do you see a hit in performance? Does this routine get called just once and then everything's saved someplace or does it run every time the form/report is viewed? Susan H. The basic form or report translate routine gets the form or report name passed to it. The code cycles through all of the control on the form or report checking to see if that control name is in the table. If so, it gets the appropriate translation and changes the control - mostly the caption property. The translate routine for the message boxes runs the same way, only I pass the name of the message to the translation routine. From bchacc at san.rr.com Sun Feb 5 11:46:45 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 05 Feb 2006 09:46:45 -0800 Subject: [AccessD] Conversion In-Reply-To: <005401c62a7a$0a486090$a5b3d6d1@SUSANONE> References: <005401c62a7a$0a486090$a5b3d6d1@SUSANONE> Message-ID: <43E63A05.3070005@san.rr.com> No performance hit because it's all front end stuff. I open the translate tables (using DAO) when the app opens and keep them open. The translate routines use .FindFirst. The Controls table has 2261 records and the messages table has 384, so it goes real fast. There is a small but perceptible delay translating a form with a lot of controls but its very acceptable - way under a second. OF course I'm using a fast pretty machine - 2GHz but that's not unusual these days. It seems to go just as fast on my P3 machine which, I think, is 800MHz, but can't remember. Rocky Rocky Susan Harkins wrote: > Is this time consuming? Do you see a hit in performance? Does this routine > get called just once and then everything's saved someplace or does it run > every time the form/report is viewed? > > Susan H. > > > The basic form or report translate routine gets the form or report name > passed to it. The code cycles through all of the control on the form or > report checking to see if that control name is in the table. If so, it gets > the appropriate translation and changes the control - mostly the caption > property. The translate routine for the message boxes runs the same way, > only I pass the name of the message to the translation routine. > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From erbachs at gmail.com Sun Feb 5 11:47:22 2006 From: erbachs at gmail.com (Steve Erbach) Date: Sun, 5 Feb 2006 11:47:22 -0600 Subject: [AccessD] sql help please In-Reply-To: <000001c6287b$212689a0$6701a8c0@HPLaptop> References: <000001c6287b$212689a0$6701a8c0@HPLaptop> Message-ID: <39cb22f30602050947j51832aa2o86f5f04eb4e121b3@mail.gmail.com> Joe, First I gave aliases to each table to make it easier to follow: SELECT M.MyEmpNumb, A.ACCIDENT, A.MyAccidnetRecordNumber, A.CLAIM AS ClaimNumber, A.COMPANY, A.AccidentDATE, D.AccidentTime, D.AccidentDayofWeek, A.DRIV_NUM, A.REP_DATE, A.STATUS, T.TRMNL_DESC, C.START_DATE, A.OPEN_CLAIM, [last_NAME] & ", " & [First_Name] & " " & [Middle_Name] AS FName, M.DOB, W.RoadCondition, W.ROAD_TYPE, W.WEATHER, W.Loc_type, W.Acc_type, W.CHARGABIL FROM (50_ltblTerminal AS T RIGHT JOIN (10_tbl_PersonelMasterData AS M INNER JOIN 10_stblEmpCompInfo AS C ON M.MyEmpNumb = C.MyEmpNumb) ON T.TRMNL_CODE = C.TERMINAL) INNER JOIN (20_stb_Loc_Wather_Road AS W RIGHT JOIN ((20_tblAIMaster AS A INNER JOIN 20_stblAccDayInfo AS D ON A.MyAccidnetRecordNumber = D.MyAccidnetRecordNumber) INNER JOIN 20_stblAIPaidExpences AS X ON A.MyAccidnetRecordNumber = X.MyAccidnetRecordNumber) ON W.MyAccidnetRecordNumber = A.MyAccidnetRecordNumber) ON (M.DRIV_NUM = A.DRIV_NUM) AND (M.DRIV_NUM = A.DRIV_NUM); Second, I noticed that the MyAccidnetRecordNumber field contained in 4 different tables is misspelled. Do you get Access query prompts when you run this query asking you to enter a value for MyAccidnetRecordNumber? If that's the case, then it looks to me like the misspelling is the problem. Third, I noticed that the clause (M.DRIV_NUM = A.DRIV_NUM) is shown twice at the end. I went to the trouble of creating your 7 tables with enough fields to make the query work. I noticed that by removing the clause "AND (M.DRIV_NUM = A.DRIV_NUM)" from the end the query was still valid. Might that be your problem? The table joins look straightforward enough. You're associating employees with accident reports. Each accident report has an employee code. Accident reports must have data in both the 20_stblAIPaidExpences and 20_stblAccDayInfo tables, but data from the 20_stb_Loc_Wather_Road is optional. I see that there are no fields SELECTed from the 20_stblAIPaidExpences table. Might that be a problem? That is, no data in that table causing no other data to be displayed? Hope this helps. Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security On 2/2/06, Joe Hecht wrote: > I am having 1 issue with the statement below. > > > > I have confirmed 20_stb_Loc_Wather_Road does indeed have > data in it so we are not looking at null messing me up. ( I > think) > > > > When I run the query no data from the table > 20_stb_Loc_Wather_Road is populating the query. I tried > splitting the query into a second query with everything > except the 20_stb_Loc_Wather_Road on one side and the > 20_stb_Loc_Wather_Road fields as the second query source and > I still had the same problem. > > > > I will check in morning. Bed time for me now. > > > > > > > > SELECT [10_tbl_PersonelMasterData].MyEmpNumb, > [20_tblAIMaster].ACCIDENT, > [20_tblAIMaster].MyAccidnetRecordNumber, > [20_tblAIMaster].CLAIM AS ClaimNumber, > [20_tblAIMaster].COMPANY, [20_tblAIMaster].AccidentDATE, > [20_stblAccDayInfo].AccidentTime, > [20_stblAccDayInfo].AccidentDayofWeek, > [20_tblAIMaster].DRIV_NUM, [20_tblAIMaster].REP_DATE, > [20_tblAIMaster].STATUS, [50_ltblTerminal].TRMNL_DESC, > [10_stblEmpCompInfo].START_DATE, > [20_tblAIMaster].OPEN_CLAIM, [last_NAME] & ", " & > [First_Name] & " " & [Middle_Name] AS FName, > [10_tbl_PersonelMasterData].DOB, > [20_stb_Loc_Wather_Road].RoadCondition, > [20_stb_Loc_Wather_Road].ROAD_TYPE, > [20_stb_Loc_Wather_Road].WEATHER, > [20_stb_Loc_Wather_Road].Loc_type, > [20_stb_Loc_Wather_Road].Acc_type, > [20_stb_Loc_Wather_Road].CHARGABIL > > FROM (50_ltblTerminal RIGHT JOIN (10_tbl_PersonelMasterData > INNER JOIN 10_stblEmpCompInfo ON > [10_tbl_PersonelMasterData].MyEmpNumb = > [10_stblEmpCompInfo].MyEmpNumb) ON > [50_ltblTerminal].TRMNL_CODE = > [10_stblEmpCompInfo].TERMINAL) INNER JOIN > (20_stb_Loc_Wather_Road RIGHT JOIN ((20_tblAIMaster INNER > JOIN 20_stblAccDayInfo ON > [20_tblAIMaster].MyAccidnetRecordNumber = > [20_stblAccDayInfo].MyAccidnetRecordNumber) INNER JOIN > 20_stblAIPaidExpences ON > [20_tblAIMaster].MyAccidnetRecordNumber = > [20_stblAIPaidExpences].MyAccidnetRecordNumber) ON > [20_stb_Loc_Wather_Road].MyAccidnetRecordNumber = > [20_tblAIMaster].MyAccidnetRecordNumber) ON > ([10_tbl_PersonelMasterData].DRIV_NUM = > [20_tblAIMaster].DRIV_NUM) AND > ([10_tbl_PersonelMasterData].DRIV_NUM = > [20_tblAIMaster].DRIV_NUM); > > > > > > TIA > > > > Joe Hecht > From martyconnelly at shaw.ca Sun Feb 5 17:38:15 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 05 Feb 2006 15:38:15 -0800 Subject: [AccessD] Error loading DLL References: Message-ID: <43E68C67.1080001@shaw.ca> INFO: Using Early Binding and Late Binding in Automation http://support.microsoft.com/?id=245115 If you have delclared OutlookApplication object as Outlook.Application, then it is still early binding as it requires a reference to object library. The difference is the way it is created at runtime. So you maybe getting a conflict in the references especially if more than one version of outlook on machine. So try this for late binding, you can use the other method if you need to debug or use intelisense Dim OutlookApp As Object Dim OutlookFile As Object Dim OutlookMsg As Object Dim OutlookRecip As Object If it objects ;) to Object try Variant. Annie Courchesne, cma wrote: >Hi, > >The error code number is 48. > >I use the following code to send a email : > >---- >Dim OutlookApp As Outlook.Application, OutlookFile As Outlook.Attachment >Dim OutlookMsg As Outlook.MailItem, OutlookRecip As Outlook.Recipient > >Public Sub OpenMsgOutlook(EMail As String, PathFile As String) > >On Error GoTo err_OpenMsgOutlook >Set OutlookApp = CreateObject("Outlook.Application") >Set OutlookMsg = OutlookApp.CreateItem(olMailItem) >With OutlookMsg > Set OutlookRecip = .Recipients.add(EMail) > Set OutlookFile = .Attachments.add(PathFile) > OutlookRecip.Type = olTo > .Display >End With >Exit Sub > >err_OpenMsgOutlook: > Resume Next > >End Sub >---- > >Depending on what needs to be sent I use this code or another one (the only >difference is the .display that is being changed to .send). > >It always worked great in the past and I don't know why I'm having problem >with this one computer!!! > >Thanks! > > >Annie Courchesne, CMA > > >-----Message d'origine----- >De : accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] De la part de Doug Murphy >Envoy? : 4 f?vrier 2006 20:26 >? : 'Access Developers discussion and problem solving' >Objet : Re: [AccessD] Error loading DLL > >What is the error number? How are you using access to send e-mail; >SendObject? > >Doug > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie Courchesne, >cma >Sent: Saturday, February 04, 2006 5:21 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Error loading DLL > > >Hi everyone, > > > >I have a database running under A2K runtime on three computers. I use a >code to send email using Outlook. On two computers, it works great. On the >third, it does not work. After testing, I see that the error shown is >"Error Loading DLL". > > > >Anyone had any problem like this? I think it may be a problem with Outlook >on this computer. Should I reinstall it? Can I just replace a problem DLL? > > > >Thanks! > > > > > >Annie Courchesne, CMA > > > > > -- Marty Connelly Victoria, B.C. Canada From harkinsss at bellsouth.net Sun Feb 5 17:57:14 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sun, 5 Feb 2006 18:57:14 -0500 Subject: [AccessD] Conversion In-Reply-To: <43E63A05.3070005@san.rr.com> Message-ID: <000e01c62aaf$e3f167d0$c0b3d6d1@SUSANONE> There is a small but perceptible delay translating a form with a lot of controls but its very acceptable - way under a second. OF course I'm using a fast pretty machine - 2GHz but that's not unusual these days. It seems to go just as fast on my P3 machine which, I think, is 800MHz, but can't remember. ======And I suppose in a really huge application, you could always load and hide, then unhide forms as needed to avoid any hits -- but that'd have to be a pretty busy form I guess. ;) Rocky, we should write about this sometime. :) Susan H. From bchacc at san.rr.com Sun Feb 5 18:20:00 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 05 Feb 2006 16:20:00 -0800 Subject: [AccessD] Conversion In-Reply-To: <000e01c62aaf$e3f167d0$c0b3d6d1@SUSANONE> References: <000e01c62aaf$e3f167d0$c0b3d6d1@SUSANONE> Message-ID: <43E69630.1040703@san.rr.com> Serious? For what publication? Rocky Susan Harkins wrote: > There is a small but perceptible delay translating a form with a lot of > controls but its very acceptable - way under a second. OF course I'm using > a fast pretty machine - 2GHz but that's not unusual these days. It seems to > go just as fast on my P3 machine which, I think, is 800MHz, but can't > remember. > > ======And I suppose in a really huge application, you could always load and > hide, then unhide forms as needed to avoid any hits -- but that'd have to be > a pretty busy form I guess. ;) > > Rocky, we should write about this sometime. :) > > Susan H. > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From KP at sdsonline.net Sun Feb 5 18:36:21 2006 From: KP at sdsonline.net (Kath Pelletti) Date: Mon, 6 Feb 2006 11:36:21 +1100 Subject: [AccessD] Missing records References: Message-ID: <00c801c62ab5$5a961430$6501a8c0@user> John - this happened to one of my clients recently. I doubt this will be your solution, but they had a database where they *could* run queries through the query window. (not a system I had written). Anyway, records were disappearing all the of the time - turned out it was as simple as a new staff member not knowing that after running a query you DON'T delete the recs returned in the dynaset. Ah, well - you get what you pay for , eh? :) Kath ----- Original Message ----- From: John Clark To: accessd at databaseadvisors.com Sent: Saturday, February 04, 2006 1:51 AM Subject: [AccessD] Missing records We got a call from a department that has a small Access 2K db. "Something" has happened, and they are missing about a quarter of their records. This was being investigated by a technician and I was just asked the following question: If a PC is "hard-booted" can an Access DB lose records w/out showing signs of corruption (i.e. the db still runs)?" I really don't know the answer to this question. I have had nearly no experience w/db corruption, since starting with Access 5 years ago. I used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs hanging around actually...and corruption was a huge problem w/them. Anyone got any tips on this? Thanks! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Sun Feb 5 18:49:36 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sun, 5 Feb 2006 19:49:36 -0500 Subject: [AccessD] Missing records In-Reply-To: <00c801c62ab5$5a961430$6501a8c0@user> Message-ID: <001d01c62ab7$34a33210$c0b3d6d1@SUSANONE> Anyway, records were disappearing all the of the time - turned out it was as simple as a new staff member not knowing that after running a query you DON'T delete the recs returned in the dynaset. ========I am ashamed to admit that I actually did this one -- I wasn't trying to update anything, I was simply creating a quick "list" -- and when I deleted a few of the records that weren't appropriate -- ZAP! I knew instantly how stupid I'd been... And I have no excuse. I was copying to Word and I just plain lost track of where I was and what I was doing. :( Susan H. From KP at sdsonline.net Sun Feb 5 19:18:39 2006 From: KP at sdsonline.net (Kath Pelletti) Date: Mon, 6 Feb 2006 12:18:39 +1100 Subject: [AccessD] Missing records References: <001d01c62ab7$34a33210$c0b3d6d1@SUSANONE> Message-ID: <000f01c62abb$43a67070$6501a8c0@user> .....you needed more coffee that day........or maybe a residual braindrain effect from working with your Microsoft beta software!! :) Kath ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Monday, February 06, 2006 11:49 AM Subject: Re: [AccessD] Missing records Anyway, records were disappearing all the of the time - turned out it was as simple as a new staff member not knowing that after running a query you DON'T delete the recs returned in the dynaset. ========I am ashamed to admit that I actually did this one -- I wasn't trying to update anything, I was simply creating a quick "list" -- and when I deleted a few of the records that weren't appropriate -- ZAP! I knew instantly how stupid I'd been... And I have no excuse. I was copying to Word and I just plain lost track of where I was and what I was doing. :( Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Sun Feb 5 19:21:25 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sun, 5 Feb 2006 20:21:25 -0500 Subject: [AccessD] Missing records In-Reply-To: <000f01c62abb$43a67070$6501a8c0@user> Message-ID: <004401c62abb$a66a67c0$c0b3d6d1@SUSANONE> or maybe a residual braindrain effect from working with your Microsoft beta software!! =======THAT was definitely it! ;) Susan H. From accessd at shaw.ca Sun Feb 5 19:55:25 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 05 Feb 2006 17:55:25 -0800 Subject: [AccessD] OT: Print to Document file In-Reply-To: <43E68C67.1080001@shaw.ca> Message-ID: <005501c62ac0$66213ea0$017ba8c0@xpserver> OT: Hi All: Has anyone used or can recommend a print to Word document file Printer add on? TIA Jim From stuart at lexacorp.com.pg Sun Feb 5 20:16:02 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 06 Feb 2006 12:16:02 +1000 Subject: [AccessD] OT: Print to Document file In-Reply-To: <005501c62ac0$66213ea0$017ba8c0@xpserver> References: <43E68C67.1080001@shaw.ca> Message-ID: <43E73E02.26627.8D5A562@stuart.lexacorp.com.pg> On 5 Feb 2006 at 17:55, Jim Lawrence wrote: > OT: > > Hi All: > > Has anyone used or can recommend a print to Word document file Printer add > on? > For queries and reports? I just "Export" them to RTF. Word installs itself as the default handler for RTF files. You can use the "Tools-Office Link-Publish It with Microsoft Word" or the "File-Export" menu items. In code you can use: DoCmd.OutputTo acOutputReport, "rptMyReport", acFormatRTF, "MyReport.rtf" -- Stuart From DorisH3 at aol.com Sun Feb 5 20:57:04 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Sun, 5 Feb 2006 21:57:04 EST Subject: [AccessD] Conversion Message-ID: <278.4559085.31181500@aol.com> In a message dated 2/5/2006 6:59:20 PM Eastern Standard Time, harkinsss at bellsouth.net writes: Rocky, we should write about this sometime. :) Susan I agree along with a small sample database....Doris From jmhecht at earthlink.net Sun Feb 5 21:54:29 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Sun, 5 Feb 2006 19:54:29 -0800 Subject: [AccessD] sql help please In-Reply-To: <39cb22f30602050947j51832aa2o86f5f04eb4e121b3@mail.gmail.com> Message-ID: <001901c62ad1$086a8d50$6701a8c0@HPLaptop> Steve, Thank you for all the time you put into this. You know a sql statement is too big if the creator does not fully understand it all. For brevity I removed the sql statement but please see my comments in line. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Sunday, February 05, 2006 9:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] sql help please I noticed that the MyAccidnetRecordNumber field contained in 4 different tables is misspelled. Do you get Access query prompts when you run this query asking you to enter a value for MyAccidnetRecordNumber? If that's the case, then it looks to me like the misspelling is the problem. [Joe Hecht] Are you saying that I spelled them differently in each table? Big Dumb for me. I am not getting any prompts for the query. I noticed that the clause (M.DRIV_NUM = A.DRIV_NUM) is shown twice at the end. [Joe Hecht] How did I do that? I work almost exclusively in design mode. Are you able to see what is causing that? I sure did not type that. The table joins look straightforward enough. [Joe Hecht] Some of the join issues you wrote look wrong to me. (The joins, not your comments.) I see that there are no fields SELECTed from the 20_stblAIPaidExpences Table [Joe Hecht] I had not gotten around to dropping them in. Hope this helps. [Joe Hecht] It does. Thank you. I am going to try your query or rebuild this beast up from multiple queries. Thanks again, Joe From bchacc at san.rr.com Sun Feb 5 21:59:47 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 05 Feb 2006 19:59:47 -0800 Subject: [AccessD] OT: Print to Document file In-Reply-To: <43E73E02.26627.8D5A562@stuart.lexacorp.com.pg> References: <43E68C67.1080001@shaw.ca> <43E73E02.26627.8D5A562@stuart.lexacorp.com.pg> Message-ID: <43E6C9B3.9010708@san.rr.com> RTF didn't work for me because I lost too much formatting. I used a program that installs a printer called Print To Picture that prints each page to a jpg which can be dropped into a Word doc. A bit awkward, but OK for one-shots like the user manual I had to write where I wanted to reprint Access reports. For PDF format Primo PDF installs as a printer and outputs an Access report to a PDF file. HTH Rocky Stuart McLachlan wrote: > On 5 Feb 2006 at 17:55, Jim Lawrence wrote: > > >> OT: >> >> Hi All: >> >> Has anyone used or can recommend a print to Word document file Printer add >> on? >> >> > > For queries and reports? > > I just "Export" them to RTF. Word installs itself as the default handler > for RTF files. > > You can use the "Tools-Office Link-Publish It with Microsoft Word" or the > "File-Export" menu items. In code you can use: > DoCmd.OutputTo acOutputReport, "rptMyReport", acFormatRTF, "MyReport.rtf" > > > > > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jmhecht at earthlink.net Sun Feb 5 22:13:05 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Sun, 5 Feb 2006 20:13:05 -0800 Subject: [AccessD] sql help please (Related question to thread.) Message-ID: <001f01c62ad3$a1bc0e00$6701a8c0@HPLaptop> Is it possible a table con look fine but somehow be corrupt and be killing the query? I am rebuilding my beast but the one same table keeps killing it? Joe Hecht jmhecht at earthlink.net From jimdettman at earthlink.net Mon Feb 6 05:37:16 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 6 Feb 2006 06:37:16 -0500 Subject: [AccessD] Lotus Notes Email In-Reply-To: <000001c629ff$e26643f0$0200a8c0@danwaters> Message-ID: Dan, If you need more, I've got some code that I use to directly work with the Notes object model. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Saturday, February 04, 2006 9:57 PM To: AccessD Subject: [AccessD] Lotus Notes Email Has anyone used access to send email via Lotus Notes? I've never used Lotus Notes for email or anything else, but a potential customer does, and I'd like to tell him that I can connect to his email system. Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From erbachs at gmail.com Mon Feb 6 06:31:41 2006 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 6 Feb 2006 06:31:41 -0600 Subject: [AccessD] sql help please In-Reply-To: <001901c62ad1$086a8d50$6701a8c0@HPLaptop> References: <39cb22f30602050947j51832aa2o86f5f04eb4e121b3@mail.gmail.com> <001901c62ad1$086a8d50$6701a8c0@HPLaptop> Message-ID: <39cb22f30602060431i2f33302dgdcf72b5e52fa453d@mail.gmail.com> Joe, ? Thank you for all the time you put into this. ? It was fun, actually. I did it so that I could SEE the relationships. But you're welcome! ? Are you saying that I spelled them differently in each table? Big Dumb for me. I am not getting any prompts for the query. ? I didn't explain myself properly. Some of the fields in your query have the word Accident spelled correctly: AccidentDATE, AccidentTime, and AccidentDayofWeek. It was just the key fields (I presume) in those four tables that ALL had the name MyAccidnetRecordNumber. The key field names were not different in each of the tables; they were all consistently misspelled. That's what I meant. One more thing about the joins: when I'd finished creating the mock tables to enable me to look at the query in design mode, I noticed that there was no direct JOIN statement linking 10_tbl_PersonelMasterData (M) to 20_tblAIMaster (A), just those two clauses at the end of your query. So I thought that I'd remove all the links and then re-link them "manually" in the Design window. I highlighted the connecting line between M and A and right-clicked on it to get the context menu, I then clicked on Delete...but the connecting line was still there. I checked the SQL code and found that the final AND (M.DRIV_NUM = A.DRIV_NUM) had been removed leaving just the ON (M.DRIV_NUM = A.DRIV_NUM) clause. I then deleted the second connecting line and then all the rest, and re-linked them to match the original design. Here's the New and Improved FROM clause: FROM (((((10_tbl_PersonelMasterData AS M INNER JOIN 10_stblEmpCompInfo AS C ON M.MyEmpNumb = C.MyEmpNumb) LEFT JOIN 50_ltblTerminal AS T ON C.TERMINAL = T.TRMNL_CODE) INNER JOIN 20_tblAIMaster AS A ON M.DRIV_NUM = A.DRIV_NUM) INNER JOIN 20_stblAccDayInfo AS D ON A.MyAccidnetRecordNumber = D.MyAccidnetRecordNumber) INNER JOIN 20_stblAIPaidExpences AS X ON A.MyAccidnetRecordNumber = X.MyAccidnetRecordNumber) LEFT JOIN 20_stb_Loc_Wather_Road AS W ON A.MyAccidnetRecordNumber = W.MyAccidnetRecordNumber; I wonder if that reference to M.DRIV_NUM = A.DRIV_NUM might have been the remains of a WHERE clause that just happened NOT to cause a syntax error in the query. Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security On 2/5/06, Joe Hecht wrote: > Steve, > > Thank you for all the time you put into this. You know a sql > statement is too big if the creator does not fully > understand it all. > > For brevity I removed the sql statement but please see my > comments in line. > > Joe Hecht > jmhecht at earthlink.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Steve Erbach > Sent: Sunday, February 05, 2006 9:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] sql help please > > > > I noticed that the MyAccidnetRecordNumber field contained in > 4 different tables is misspelled. Do you get Access query > prompts when you run this query asking you to enter a value > for MyAccidnetRecordNumber? If that's the case, then it > looks to me like the misspelling is the problem. > > [Joe Hecht] Are you saying that I spelled them differently > in each table? Big Dumb for me. I am not getting any prompts > for the query. > > > I noticed that the clause (M.DRIV_NUM = A.DRIV_NUM) is shown > twice at the end. > > [Joe Hecht] How did I do that? I work almost exclusively in > design mode. Are you able to see what is causing that? I > sure did not type that. > > The table joins look straightforward enough. > > [Joe Hecht] Some of the join issues you wrote look wrong to > me. (The joins, not your comments.) > > > I see that there are no fields SELECTed from the > 20_stblAIPaidExpences > Table > > > [Joe Hecht] I had not gotten around to dropping them in. > > Hope this helps. > [Joe Hecht] > It does. Thank you. I am going to try your query or rebuild > this beast up from multiple queries. > > Thanks again, > > Joe > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- From erbachs at gmail.com Mon Feb 6 06:35:23 2006 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 6 Feb 2006 06:35:23 -0600 Subject: [AccessD] sql help please (Related question to thread.) In-Reply-To: <001f01c62ad3$a1bc0e00$6701a8c0@HPLaptop> References: <001f01c62ad3$a1bc0e00$6701a8c0@HPLaptop> Message-ID: <39cb22f30602060435p6a2513c3t9f3c1194c7b6da4b@mail.gmail.com> Joe, Why don't you try exporting the data from the suspect table to, say, an Excel file or a CSV file, rename the existing table, and then import the data back into Access. Check the table structure that results and re-create your key field and adjust the field properties. Then try the query again. Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security Blog: http://TheTownCrank.blogspot.com On 2/5/06, Joe Hecht wrote: > Is it possible a table con look fine but somehow be corrupt > and be killing the query? > > > > I am rebuilding my beast but the one same table keeps > killing it? > > > > > > Joe Hecht > > jmhecht at earthlink.net > > > > -- > 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 6 06:53:44 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 06 Feb 2006 04:53:44 -0800 Subject: [AccessD] Conversion In-Reply-To: <278.4559085.31181500@aol.com> References: <278.4559085.31181500@aol.com> Message-ID: <43E746D8.80509@san.rr.com> Doris: Did you get what you needed from all that rambling? Rocky DorisH3 at aol.com wrote: > > In a message dated 2/5/2006 6:59:20 PM Eastern Standard Time, > harkinsss at bellsouth.net writes: > > Rocky, we should write about this sometime. :) > > > Susan > > I agree along with a small sample database....Doris > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jeffrey.demulling at usbank.com Mon Feb 6 08:39:27 2006 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Mon, 6 Feb 2006 08:39:27 -0600 Subject: [AccessD] Lotus Notes Email - Thanks! In-Reply-To: <000401c62a79$9530ca90$0200a8c0@danwaters> Message-ID: Dan, Here is some more code samples that may be of use for you. Make sure you set the references for Lotus Domino Objects and Lotus Notes Automation Classes. '--------------------------------------------------------------------------------------- ' Module : mdlSendLotusNotesMail ' DateTime : 2004-Mar-23 11:48 ' Author : Jeffrey F. Demulling ' Purpose : Used to send email via Lotus Notes. ' Notes : Orginal Code can be found at: http://www.fabalou.com/VBandVBA/lotusnotesmail.asp ' '--------------------------------------------------------------------------------------- Option Compare Database 'Public Sub SendNotesMail(Subject as string, attachment as string, 'recipient as string, bodytext as string,saveit as Boolean) 'This public sub will send a mail and attachment if neccessary to the 'recipient including the body text. 'Requires that notes client is installed on the system. Public Sub SendCTConnectionViaNotes(Subject As String, myrecipient As String, mySaveFlag As Boolean, mySendFromFlag As Integer) '--------------------------------------------------------------------------------------- ' Procedure : SendCTConnectionViaNotes ' DateTime : 2005-Apr-08 13:43 13:43 ' Author : Jeffrey F. Demulling ' Purpose : '--------------------------------------------------------------------------------------- ' 'Set up the objects required for Automation into lotus notes Dim maildb As NotesDatabase Dim MailDbName As String 'THe current users notes mail database name Dim MailDoc As NotesDocument Dim AttachME As Object 'The attachment richtextfile object Dim session As New NotesSession Dim MailDbDir As NotesDbDirectory Dim EmbedObj As Object 'The embedded object (Attachment) Dim strBodyText As String Dim db As DAO.Database Dim rst As DAO.Recordset Dim cmdtext As String Dim mysendfile As Variant Dim myServer As String Dim myFile As String Dim mymessage As String On Error GoTo SendCTConnectionViaNotes_Error 'Open the mail database in notes Select Case mySendFromFlag Case 2 myServer = GetPropertyValue("MarketingSharedEmailServer", setconnection) myFile = GetPropertyValue("MarketingSharedEmailFile", setconnection) session.Initialize Set maildb = session.GetDatabase(myServer, myFile) Case Else session.Initialize Set MailDbDir = session.GetDbDirectory("") Set maildb = MailDbDir.OpenMailDatabase() End Select If maildb.ISOPEN = True Then 'Already open for mail Else maildb.OPENMAIL End If 'Set up the new mail document Set MailDoc = maildb.CreateDocument MailDoc.ReplaceItemValue "Form", "Memo" MailDoc.ReplaceItemValue "Subject", Subject MailDoc.ReplaceItemValue "SendTo", myrecipient Select Case mySendFromFlag Case 2 'CT Shared MailDoc.ReplaceItemValue "Principal", GetPropertyValue("MarketingSharedEmailPrincipal", setconnection) 'MarketingSharedEmailPrincipal MailDoc.ReplaceItemValue "$INetPrincipal", GetPropertyValue("MarketingSharedEmail$INetPrincipal", setconnection) 'MarketingSharedEmail$INetPrincipal MailDoc.ReplaceItemValue "DisplayFrom", GetPropertyValue("MarketingSharedEmailDisplayFrom", setconnection) 'MarketingSharedEmailDisplayFrom MailDoc.ReplaceItemValue "DisplayFrom Preview", GetPropertyValue("MarketingSharedEmailDisplayFromPreview", setconnection) 'MarketingSharedEmailDisplayFromPreview Case Else 'Users 'Do Nothing End Select strBodyText = "Thank you for requesting that we send you the Corporate Trust Connection electronically. We are" strBodyText = strBodyText & " certain you will enjoy this edition. If you have any comments or future article" strBodyText = strBodyText & " suggestions, please respond to:" & vbCrLf & vbCrLf strBodyText = strBodyText & "marketing.corporatetrust at usbank.com" & vbCrLf & vbCrLf strBodyText = strBodyText & "NOTE: If you wish to remove your email address from this mailing, please reply to:" & cbCrLf strBodyText = strBodyText & " marketing.corporatetrust at usbank.com, including your name, organization and email address." strBodyText = strBodyText & " Please write REMOVE in the subject line." & vbCrLf & vbCrLf Set Body = MailDoc.CreateRichTextItem("Body") Body.AppendText strBodyText 'Place Attachments cmdtext = "SELECT" cmdtext = cmdtext & " TempFileList.FileName" cmdtext = cmdtext & " FROM" cmdtext = cmdtext & " TempFileList" cmdtext = cmdtext & " ORDER BY" cmdtext = cmdtext & " TempFileList.FileName;" Set db = CurrentDb Set rst = db.OpenRecordset(cmdtext) If Not rst.BOF And Not rst.EOF Then rst.MoveFirst Do Until rst.EOF mysendfile = rst.Fields("FileName") Set EmbedObj = Body.EmbedObject(EMBED_ATTACHMENT, "", mysendfile) rst.MoveNext Loop End If 'Send the document Select Case mySaveFlag Case True MailDoc.SaveMessageOnSend = True MailDoc.ReplaceItemValue "PostedDate", Now() MailDoc.Send (False) Case False MailDoc.SaveMessageOnSend = False MailDoc.Send (False) End Select 'Clean Up Set maildb = Nothing Set MailDoc = Nothing Set AttachME = Nothing Set session = Nothing Set MailDbDir = Nothing Set EmbedObj = Nothing On Error GoTo 0 Exit Sub SendCTConnectionViaNotes_Error: Select Case Err.Number Case -2147217504 mymessage = "Emails have not been sent for one of the following reasons:" & Chr(13) & Chr(10) mymessage = mymessage & "1: User canceled sending of email by canceling Lotus Notes password promt" & Chr(13) & Chr(10) mymessage = mymessage & "2: User is not an authorized user of the 'Marketing - Corporate Trust Shared' email box" MsgBox mymessage, vbCritical, "Action Cancelled" End Case Else MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure SendCTConnectionViaNotes of Module mdlSendCTConnectionViaNotes" End Select End Sub Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "'Access Developers discussion and accessd-bounces at d problem solving'" atabaseadvisors.c om cc Subject 02/05/2006 11:28 Re: [AccessD] Lotus Notes Email - AM Thanks! Please respond to "Access Developers discussion and problem solving" Barb & Stuart! Thanks for this help. This is one of those 'could make the difference' items! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Sunday, February 05, 2006 7:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lotus Notes Email Dan...Yes --- here's some sample code http://www.fabalou.com/VBandVBA/lotusnotesmail.asp Barb Ryan ----- Original Message ----- From: "Dan Waters" To: "AccessD" Sent: Saturday, February 04, 2006 9:57 PM Subject: [AccessD] Lotus Notes Email > Has anyone used access to send email via Lotus Notes? I've never used Lotus > Notes for email or anything else, but a potential customer does, and I'd > like to tell him that I can connect to his email system. > > Thanks! > > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== From tinanfields at torchlake.com Mon Feb 6 09:23:05 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 06 Feb 2006 10:23:05 -0500 Subject: [AccessD] Adding "All" to Combo List Message-ID: <43E769D9.4060504@torchlake.com> Hi, I know I saw something about how to do this discussed on this list. How do I add the "All" indication at the top of a combobox list? Thanks. Tina From Erwin.Craps at ithelps.be Mon Feb 6 09:50:06 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 6 Feb 2006 16:50:06 +0100 Subject: [AccessD] Adding "All" to Combo List Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B634E@stekelbes.ithelps.local> Via VBA code, but I supose you mean using a SQL UNION query like this SELECT -9999 AS Product_LID, "All" AS ProductDescription FROM PROD_Main UNION SELECT Product_LID, ProductDescription FROM PROD_Main; Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Monday, February 06, 2006 4:23 PM To: accessd at databaseadvisors.com Subject: [AccessD] Adding "All" to Combo List Hi, I know I saw something about how to do this discussed on this list. How do I add the "All" indication at the top of a combobox list? Thanks. Tina -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Mon Feb 6 09:59:13 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 6 Feb 2006 10:59:13 -0500 Subject: [AccessD] Adding "All" to Combo List In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3B9A8@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F05@ADGSERVER> One way is something like this : SELECT ID, Descr FROM Project UNION SELECT 0 as t1,'(All)' as t2 FROM Project " & _ "ORDER BY Descr ASC;" The UNION statement is the key here. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Monday, February 06, 2006 10:23 AM To: accessd at databaseadvisors.com Subject: [AccessD] Adding "All" to Combo List Hi, I know I saw something about how to do this discussed on this list. How do I add the "All" indication at the top of a combobox list? Thanks. Tina From DorisH3 at aol.com Mon Feb 6 10:01:12 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Mon, 6 Feb 2006 11:01:12 EST Subject: [AccessD] Conversion Message-ID: <190.50b2cca4.3118ccc8@aol.com> Yes, I understand that it can be done, how specifically I'm not sure...I guess I will need to experiment...Doris From bchacc at san.rr.com Mon Feb 6 10:13:34 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 06 Feb 2006 08:13:34 -0800 Subject: [AccessD] Conversion In-Reply-To: <190.50b2cca4.3118ccc8@aol.com> References: <190.50b2cca4.3118ccc8@aol.com> Message-ID: <43E775AE.7040106@san.rr.com> Let me know if I can help. Rocky DorisH3 at aol.com wrote: > Yes, I understand that it can be done, how specifically I'm not sure...I > guess I will need to experiment...Doris > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Jim.Hale at FleetPride.com Mon Feb 6 11:16:01 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 6 Feb 2006 11:16:01 -0600 Subject: [AccessD] Conversion Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9FE@corp-es01.fleetpride.com> Do you run into control/text box/label sizing issues to hold the translations? ie. since the number of characters to be displayed vary, one size fits all doesn't always work for controls? If so how did you deal with them? Jim Hale -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Monday, February 06, 2006 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Conversion Let me know if I can help. Rocky DorisH3 at aol.com wrote: > Yes, I understand that it can be done, how specifically I'm not sure...I > guess I will need to experiment...Doris > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Mike.W.Gowey at doc.state.or.us Mon Feb 6 12:01:06 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Mon, 6 Feb 2006 11:01:06 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF486077808115B0D@srciml1.ds.doc.state.or.us> Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- 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 6 12:51:45 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 6 Feb 2006 12:51:45 -0600 Subject: [AccessD] Long to String and vice versa Message-ID: <17724746D360394AA3BFE5B8D40A9C1BD6AA@main2.marlow.com> Just something I put together on Friday, for one of my projects. I don't know if anyone on the list will find it useful. In this particular project, I'm sending data through winsock controls, and I need to make sure the data gets put through. There are several levels to it. In Access, text fields are prefaced by a byte that represents the length of the text in the field. So if the text is 'HELLO', that's 5 characters, so the field will have 6 bytes, the first byte being Chr(5) the rest being Chr(72) chr(69) Chr(76) Chr(76) Chr(79). In my 'Data Protocol' class, I link a collection of strings by prefacing the string with it's length. If I wanted to be limited to 255 characters per string, I could just use: Dim i Dim strCombined For i=1 to DataStrings.Count strCombined=strCombined & Chr(len(DataStrings(i))) & DataStrings(i) Next i Now I have a string that I can seperate no matter what characters are used in the strings within the DataStrings collection. However, what if some of those strings are longer then 255 characters? Then a 2 byte preface would work. That gets you to 64k characters. The four functions I am posting at the end of this will convert an Integer or a Long into a string, and back again. So if you are using a Long, and you send it 6, you'll get Chr(6), Chr(0),Chr(0),Chr(0) as the string that is returned. I was using a process that relied on math, to get 2 digits, and wanted something a little faster. These functions scream, because they are simply copying memory back and forth, doing 'forced' conversions. (1234 converted to a string is "1234", which is NOT the binary represenation of the number 1234. Converting 123 to a string would be "123", 3 characters long, therefore not a very good 'length pointer'. Converted to Chr(123) Chr(0) Chr(0) Chr(0), that is four characters, and thus you know exactly how much of your string to 'read' to get the length of the actual string. Anyhow, I hope someone finds a use for this, I thought it was too neat to not pass along: Option Explicit Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long) Function LongToString(intLong As Long) As String Dim byteArray(0 To 3) As Byte CopyMemory byteArray(0), ByVal VarPtr(intLong), 4 LongToString = StrConv(byteArray, vbUnicode) End Function Function StringToLong(strString As String) As Long Dim byteArray(0 To 3) As Byte Dim intTemp As Long CopyMemory byteArray(0), ByVal strString, 4 CopyMemory ByVal VarPtr(intTemp), byteArray(0), 4 StringToLong = intTemp End Function Function IntegerToString(intInteger As Integer) As String Dim byteArray(0 To 1) As Byte CopyMemory byteArray(0), ByVal VarPtr(intInteger), 2 IntegerToString = StrConv(byteArray, vbUnicode) End Function Function StringToInteger(strString As String) As Integer Dim byteArray(0 To 1) As Byte Dim intTemp As Integer CopyMemory byteArray(0), ByVal strString, 2 CopyMemory ByVal VarPtr(intTemp), byteArray(0), 2 StringToInteger = intTemp End Function From jwelz at hotmail.com Mon Feb 6 13:41:26 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Mon, 06 Feb 2006 12:41:26 -0700 Subject: [AccessD] Basic Query Design In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF486077808115B0D@srciml1.ds.doc.state.or.us> Message-ID: I'm drawing a blank today so I thought I'd throw out a question. I provide search forms allowing users to filter data on multiple criteria and they work fine but, I can't help but think there is something I am missing. For example, I have an Employee table and a table of Courses taken by Employees that serves as a junction between the Employee table and a table of Course. Among other things, my search form provides a multiselect listbox with a hidden 1st column (CourseID) and a visible 2nd column (CourseName) where a user may select one or more (or no) course. As a user selects or unselects a course, a list box of search hits is populated with a hidden 1st column (EmployeeID) and a concatenated 2nd column (FirstName & ' ' & LastName). The purpose of the search is to provide a user a list of employees who have a particular combination of certifications. A typical scenario is that we would like to find an employee who has taken Suncor/Syncrude Orientation, has First Aid and Boom Forklift certifications. The code generates a series of subqueries and dynamically sets the hit list rowsource SQL, but I can't help but think there must be an easier way. Here is the SQL for the example (without restrictions on Employee category, union/non-union, employiing division, regional office, and skipping IsActive and restrictions on Deleted courses and Employees...........) SELECT tblEmployee.EmployeeID, FirstName & ' ' & LastName FROM tblEmployee WHERE tblEmployee.EmployeeID In (Select tblEmployee.EmployeeID FROM tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.EmployeeID = tblEmployeeCourse.EmployeeID Where tblEmployee.EmployeeID In (Select tblEmployee.EmployeeID FROM tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.EmployeeID = tblEmployeeCourse.EmployeeID Where tblEmployee.EmployeeID In (Select tblEmployee.EmployeeID FROM tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.EmployeeID = tblEmployeeCourse.EmployeeID Where CourseID = 14) And CourseID = 1) And CourseID = 12) ORDER BY FirstName & ' ' & LastName There is nothing wrong with the way it currently works but I can't help but think that there is a better way to do this, especially should we port to a SQL Server BE. Surely there is a better way to pass 'AND' (Exclusive) parameters along the lines of an 'OR' (Inclusive ie, IN(list) style) parameter. Anyone? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com From stuart at lexacorp.com.pg Mon Feb 6 16:13:48 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 07 Feb 2006 08:13:48 +1000 Subject: [AccessD] Basic Query Design In-Reply-To: References: <05EBB8A3BEB95B4F8216BE4EF486077808115B0D@srciml1.ds.doc.state.or.us> Message-ID: <43E856BC.18973.D1E3C40@stuart.lexacorp.com.pg> On 6 Feb 2006 at 12:41, J??rgen Welz wrote: > There is nothing wrong with the way it currently works but I can't help but > think that there is a better way to do this, especially should we port to a > SQL Server BE. Surely there is a better way to pass 'AND' (Exclusive) > parameters along the lines of an 'OR' (Inclusive ie, IN(list) style) > parameter. Anyone? > > How about something like (aircode - may not run as is) Select tblEmployee.EmployeeID, FirstName & ' ' & LastName from tblEmployee inner join (select distinct EmployeeID, Count(EmployeeID) from tblEmployeeCourse where CourseID In (1,4,7) and Count(EmployeeID) = 3 Group By EmployeeID) on tblEmploye.EmployeeID = tblEmployeeCourse.EmployeeID That should return only the employees who have all three courses. You can also get the employees who have done two of the three courses etc if you can't find anyone with all three :-) -- Stuart From jwelz at hotmail.com Mon Feb 6 16:59:40 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Mon, 06 Feb 2006 15:59:40 -0700 Subject: [AccessD] Basic Query Design In-Reply-To: <43E856BC.18973.D1E3C40@stuart.lexacorp.com.pg> Message-ID: Stuart: That certainly generates a shorter SQL string for the example raised, and of course, even more so as the number of course selections increases. The concept of using a count in an aggregate query certainly returns the desired results without nesting a series of subqueries the way I was doing things. Following your lead, with 4 items picked from the list: SELECT tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName FROM tblEmployeeCourse INNER JOIN tblEmployee ON tblEmployeeCourse.EmployeeID = tblEmployee.EmployeeID WHERE CourseID In (1,2,4,5) GROUP BY tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName HAVING Count(tblEmployee.EmployeeID) = 4 ORDER BY FirstName & ' ' & LastName This should run much faster, though speed hasn't been a problem with the 1700 Employee records and 30 Course records (about 2500 junction table records). Thanks for pointing out the approach. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Stuart McLachlan" > >On 6 Feb 2006 at 12:41, J??rgen Welz wrote: > > > There is nothing wrong with the way it currently works but I can't help >but > > think that there is a better way to do this, especially should we port >to a > > SQL Server BE. Surely there is a better way to pass 'AND' (Exclusive) > > parameters along the lines of an 'OR' (Inclusive ie, IN(list) style) > > parameter. Anyone? > > > > > >How about something like (aircode - may not run as is) > >Select tblEmployee.EmployeeID, FirstName & ' ' & LastName from >tblEmployee inner join >(select distinct EmployeeID, Count(EmployeeID) > from tblEmployeeCourse > where CourseID In (1,4,7) and Count(EmployeeID) = 3 >Group By EmployeeID) >on tblEmploye.EmployeeID = tblEmployeeCourse.EmployeeID > >That should return only the employees who have all three courses. >You can also get the employees who have done two of the three courses etc >if you can't find anyone with all three :-) > > > > > > >-- >Stuart From accessd at shaw.ca Mon Feb 6 19:54:12 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 06 Feb 2006 17:54:12 -0800 Subject: [AccessD] DBA web site update In-Reply-To: Message-ID: <009201c62b89$64ab2710$017ba8c0@xpserver> Hi All: A new article, 'Array Performance', as well as some minor changes has been added to the DBA web site (www.ddatabaseadvisors.com). Jim From erbachs at gmail.com Mon Feb 6 20:06:43 2006 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 6 Feb 2006 20:06:43 -0600 Subject: [AccessD] Basic Query Design In-Reply-To: References: <05EBB8A3BEB95B4F8216BE4EF486077808115B0D@srciml1.ds.doc.state.or.us> Message-ID: <39cb22f30602061806p54f48b87p9d996ddec7e417d4@mail.gmail.com> J?rgen, I've been working on this off-and-on today. Your query reminded me that a database I used to work with, Paradox, contained set operations for this very thing: Which employees have taken every one of the following list of courses? I thought at first that the ALL keyword might do the trick in SQL, but no such luck. It doesn't look like there's a straightforward set-oriented way to perform this query in SQL. It would have to be something like what Stuart showed you. Only thing I wonder about with that query is if an employee took one of the courses more than once but skipped one of the ones you're looking for. The COUNT would be the same, but your criteria would not be met. Steve Erbach Neenah, WI On 2/6/06, J?rgen Welz wrote: > I'm drawing a blank today so I thought I'd throw out a question. > > I provide search forms allowing users to filter data on multiple criteria > and they work fine but, I can't help but think there is something I am > missing. For example, I have an Employee table and a table of Courses taken > by Employees that serves as a junction between the Employee table and a > table of Course. > > Among other things, my search form provides a multiselect listbox with a > hidden 1st column (CourseID) and a visible 2nd column (CourseName) where a > user may select one or more (or no) course. As a user selects or unselects > a course, a list box of search hits is populated with a hidden 1st column > (EmployeeID) and a concatenated 2nd column (FirstName & ' ' & LastName). > The purpose of the search is to provide a user a list of employees who have > a particular combination of certifications. A typical scenario is that we > would like to find an employee who has taken Suncor/Syncrude Orientation, > has First Aid and Boom Forklift certifications. From martyconnelly at shaw.ca Mon Feb 6 19:55:26 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 06 Feb 2006 17:55:26 -0800 Subject: [AccessD] Conversion References: <190.50b2cca4.3118ccc8@aol.com> Message-ID: <43E7FE0E.8060709@shaw.ca> Have a look around this portal for general Internationalizing info http:// www.microsoft.com/global There are a lot of little things that will drive you daffy, make sure you understand that VBA and VB6 internal routines sometimes only work with ANSI strings and not full Unicode strings. Also certain things in the IDE will only work with ANSI strings. I just had to rename some filenames into Arabic from fields in an Access Unicode Table I thought I just had to do Name "c:\oldname.txt as "c:\" & RS!ArabicField & ".txt" But this only works on ANSI strings and is restricted to my WinXP Canadian codepage. the VBA "Name" function "helps" you by translating your original Unicode to Ansi Any illegal Ansi characters appear as "?" or something weird. So I can only use the 256 characters for ISO-8859-1 which covers some western european languages rather than the 64K characters for Unicode. Even google missed this sort of thing in some of their first versions of xml output from their desktop search engine. To get it to rename an English file to a Unicode Filename using suitable VBA Unicode functions Sub RenameFileToUnicode(strTheOriginalFile As String, strChineseUnicode As String) Dim filesys As Object Set filesys = CreateObject("Scripting.FileSystemObject") 'add a file extension like jpeg or txt filesys.GetFile(strTheOriginalFile).Name = strChineseUnicode & ".txt" Set filesys = Nothing End Sub Also make sure, if you are doing multi-language translations, it can only be done with US MS Office and it's downloadable MUI Language Packs. It is nearly impossible with Localized version of Office like a French Office version. see Options for Using Office 2003 Editions in Multiple Languages http://www.microsoft.com/office/editions/prodinfo/language/choosing.mspx Smart Access article- How to create a multi-language application in Access http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmart04/html/sa04g1.asp Set up Office 2000 and your computer to work in another language http://office.microsoft.com/en-ca/assistance/HA010549991033.aspx Michael Kaplan's blog He also has an out of print book that is useful on VB6 Internationalization. Technical Lead from Globalization, Infrastructure, Fonts, and Tools at Microsoft. http://209.34.241.67/michkap/archive/category/8717.aspx DorisH3 at aol.com wrote: >Yes, I understand that it can be done, how specifically I'm not sure...I >guess I will need to experiment...Doris > > -- Marty Connelly Victoria, B.C. Canada From kathryn at bassett.net Mon Feb 6 20:49:52 2006 From: kathryn at bassett.net (Kathryn Bassett) Date: Mon, 6 Feb 2006 18:49:52 -0800 Subject: [AccessD] DBA web site update In-Reply-To: <009201c62b89$64ab2710$017ba8c0@xpserver> Message-ID: <20060206184958.23A69447@dm16.mta.everyone.net> And of course everyone needs to notice that Jim type in to many d's in www.databaseadvisors.com Kathryn > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence > Sent: 06 Feb 2006 5:54 pm > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] DBA web site update > > Hi All: > > A new article, 'Array Performance', as well as some minor > changes has been added to the DBA web site > (www.ddatabaseadvisors.com). > > Jim > > -- > 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 6 21:45:20 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Mon, 6 Feb 2006 22:45:20 -0500 Subject: [AccessD] PDF printer driver and SDK Message-ID: <002001c62b98$ebc3aa10$647aa8c0@ColbyM6805> Folks, I just discovered this: http://www.neevia.com/ Cheap at $19 for the cheapest printer driver (per machine I think) and $30 for the SDK to write VB code to drive it. I printed my first Access document 15 minutes after discovering the web site, through free downloads of the driver and SDK. Of course the free driver places "printed by Docuprinter SDK" in every page of the printed doc, which I assume goes away when you buy the $30 license which I will be doing tonight I think. The Access report looks identical, down to the fonts, colors etc. Looks VERY good to me. The SDK has dozens of methods (it is a library that you reference in Access) that can do stuff that I don't even understand, as well as stuff that sounds logical to do. Not being a PDF expert of course I don't know what most of the stuff is but it's there if you need it. Take a look if you are doing this kind of thing, particularly if you are doing a "server" kind of program, as I am. John W. Colby www.ColbyConsulting.com From accessd at shaw.ca Mon Feb 6 21:49:09 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 06 Feb 2006 19:49:09 -0800 Subject: [AccessD] DBA web site update In-Reply-To: <20060206184958.23A69447@dm16.mta.everyone.net> Message-ID: <009d01c62b99$73b1a350$017ba8c0@xpserver> Thanks for catching Kathryn. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kathryn Bassett Sent: February 6, 2006 6:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] DBA web site update And of course everyone needs to notice that Jim type in to many d's in www.databaseadvisors.com Kathryn > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence > Sent: 06 Feb 2006 5:54 pm > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] DBA web site update > > Hi All: > > A new article, 'Array Performance', as well as some minor > changes has been added to the DBA web site > (www.ddatabaseadvisors.com). > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Mon Feb 6 21:49:31 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Mon, 06 Feb 2006 20:49:31 -0700 Subject: [AccessD] Basic Query Design In-Reply-To: <39cb22f30602061806p54f48b87p9d996ddec7e417d4@mail.gmail.com> Message-ID: Hey Steve: The actual query is a bit more complex than posted as it takes into account certification expiry dates and may mix in numerous additional Inclusive and Exclusionary conditions, several driven by multi select list boxes (1 through 8 regional offices, 1 or more of several categories of employee...). The question I posed was to address one aspect of a search that I provide for every major form. I won't have a problem with dupliicate courses in my 'count'. If I mapped bit flags to categories I'd have no trouble dynamically setting query by join SQL and denormalizing everything to the Employee table with a few external lookups. But I digress. Getting back to how one would integrate this with a SQL Server BE; the SQL string rowsource for a hit list may join anywhere from 0 to 8 additional tables in any combination, an In(list) may require a list of values subquery or nested subqueries and require in/exclusive conditions on the main table or any of the related tables. How does anyone to something like this without resorting to dynamic SQL? Do you have 60 stored parameter stored procedures that you substitute in as the rowsource as required? Stuart's posted solution provides a reasonable approach to cleaning up the string generation code I have been using to find matches for meeting 'every one' in a list on a single field. I have yet to run some performance tests but expect to do so over the next couple of days. Anyone else have an idea of another way of doing this before I run some testing? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Steve Erbach > >J?rgen, > >I've been working on this off-and-on today. Your query reminded me >that a database I used to work with, Paradox, contained set operations >for this very thing: Which employees have taken every one of the >following list of courses? > >I thought at first that the ALL keyword might do the trick in SQL, but >no such luck. It doesn't look like there's a straightforward >set-oriented way to perform this query in SQL. It would have to be >something like what Stuart showed you. Only thing I wonder about with >that query is if an employee took one of the courses more than once >but skipped one of the ones you're looking for. The COUNT would be >the same, but your criteria would not be met. > >Steve Erbach >Neenah, WI > >On 2/6/06, J?rgen Welz wrote: > > I'm drawing a blank today so I thought I'd throw out a question. > > > > I provide search forms allowing users to filter data on multiple >criteria > > and they work fine but, I can't help but think there is something I am > > missing. For example, I have an Employee table and a table of Courses >taken > > by Employees that serves as a junction between the Employee table and a > > table of Course. > > > > Among other things, my search form provides a multiselect listbox with a > > hidden 1st column (CourseID) and a visible 2nd column (CourseName) where >a > > user may select one or more (or no) course. As a user selects or >unselects > > a course, a list box of search hits is populated with a hidden 1st >column > > (EmployeeID) and a concatenated 2nd column (FirstName & ' ' & LastName). > > The purpose of the search is to provide a user a list of employees who >have > > a particular combination of certifications. A typical scenario is that >we > > would like to find an employee who has taken Suncor/Syncrude >Orientation, > > has First Aid and Boom Forklift certifications. From jmhecht at earthlink.net Mon Feb 6 21:52:06 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Mon, 6 Feb 2006 19:52:06 -0800 Subject: [AccessD] PDF printer driver and SDK In-Reply-To: <002001c62b98$ebc3aa10$647aa8c0@ColbyM6805> Message-ID: <000001c62b99$dda693b0$6601a8c0@HPLaptop> Glad to see someone is making progress tonight. I just deleted the wrong form and have lots of work to redo. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Monday, February 06, 2006 7:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] PDF printer driver and SDK Folks, I just discovered this: http://www.neevia.com/ Cheap at $19 for the cheapest printer driver (per machine I think) and $30 for the SDK to write VB code to drive it. I printed my first Access document 15 minutes after discovering the web site, through free downloads of the driver and SDK. Of course the free driver places "printed by Docuprinter SDK" in every page of the printed doc, which I assume goes away when you buy the $30 license which I will be doing tonight I think. The Access report looks identical, down to the fonts, colors etc. Looks VERY good to me. The SDK has dozens of methods (it is a library that you reference in Access) that can do stuff that I don't even understand, as well as stuff that sounds logical to do. Not being a PDF expert of course I don't know what most of the stuff is but it's there if you need it. Take a look if you are doing this kind of thing, particularly if you are doing a "server" kind of program, as I am. 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 bchacc at san.rr.com Mon Feb 6 22:36:39 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 06 Feb 2006 20:36:39 -0800 Subject: [AccessD] PDF printer driver and SDK In-Reply-To: <002001c62b98$ebc3aa10$647aa8c0@ColbyM6805> References: <002001c62b98$ebc3aa10$647aa8c0@ColbyM6805> Message-ID: <43E823D7.6020200@san.rr.com> Did you try PrimoPDF. Free. Installs as a printer. Makes a PDF file from an Access report. But I don't know if it does what you need. Rocky John Colby wrote: > Folks, > > I just discovered this: > > http://www.neevia.com/ > > Cheap at $19 for the cheapest printer driver (per machine I think) and $30 > for the SDK to write VB code to drive it. I printed my first Access > document 15 minutes after discovering the web site, through free downloads > of the driver and SDK. Of course the free driver places "printed by > Docuprinter SDK" in every page of the printed doc, which I assume goes away > when you buy the $30 license which I will be doing tonight I think. > > The Access report looks identical, down to the fonts, colors etc. > > Looks VERY good to me. The SDK has dozens of methods (it is a library that > you reference in Access) that can do stuff that I don't even understand, as > well as stuff that sounds logical to do. Not being a PDF expert of course I > don't know what most of the stuff is but it's there if you need it. > > Take a look if you are doing this kind of thing, particularly if you are > doing a "server" kind of program, as I am. > > John W. Colby > www.ColbyConsulting.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From wdhindman at bellsouth.net Tue Feb 7 04:57:27 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 7 Feb 2006 05:57:27 -0500 Subject: [AccessD] PDF printer driver and SDK References: <002001c62b98$ebc3aa10$647aa8c0@ColbyM6805> Message-ID: <001501c62bd5$48ddc640$1801a8c0@50NM721> ...what functionality does it provide that isn't available in Leban's free code? http://www.lebans.com/reporttopdf.htm William ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 06, 2006 10:45 PM Subject: [AccessD] PDF printer driver and SDK > Folks, > > I just discovered this: > > http://www.neevia.com/ > > Cheap at $19 for the cheapest printer driver (per machine I think) and $30 > for the SDK to write VB code to drive it. I printed my first Access > document 15 minutes after discovering the web site, through free downloads > of the driver and SDK. Of course the free driver places "printed by > Docuprinter SDK" in every page of the printed doc, which I assume goes > away > when you buy the $30 license which I will be doing tonight I think. > > The Access report looks identical, down to the fonts, colors etc. > > Looks VERY good to me. The SDK has dozens of methods (it is a library > that > you reference in Access) that can do stuff that I don't even understand, > as > well as stuff that sounds logical to do. Not being a PDF expert of course > I > don't know what most of the stuff is but it's there if you need it. > > Take a look if you are doing this kind of thing, particularly if you are > doing a "server" kind of program, as I am. > > 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 Gustav at cactus.dk Tue Feb 7 07:01:45 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Feb 2006 14:01:45 +0100 Subject: [AccessD] DBA web site update Message-ID: Thanks Jim! /gustav >>> accessd at shaw.ca 07-02-2006 02:54:12 >>> Hi All: A new article, 'Array Performance', as well as some minor changes has been added to the DBA web site (www.ddatabaseadvisors.com). Jim From jwelz at hotmail.com Tue Feb 7 07:46:04 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 07 Feb 2006 06:46:04 -0700 Subject: [AccessD] DBA web site update In-Reply-To: <009201c62b89$64ab2710$017ba8c0@xpserver> Message-ID: I've been able to implement the concepts discussed at the link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnovba00/html/LightningStrings.asp for sorting two dimensional string arrays as this approach only requires the use of available libraries. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Jim Lawrence > >Hi All: > >A new article, 'Array Performance', as well as some minor changes has been >added to the DBA web site (www.ddatabaseadvisors.com). > >Jim From erbachs at gmail.com Tue Feb 7 09:03:32 2006 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 7 Feb 2006 09:03:32 -0600 Subject: [AccessD] Basic Query Design In-Reply-To: References: <39cb22f30602061806p54f48b87p9d996ddec7e417d4@mail.gmail.com> Message-ID: <39cb22f30602070703u7ac1207an60403a41819064ee@mail.gmail.com> J?rgen, ? How does anyone do something like this without resorting to dynamic SQL? Do you have 60 stored parameter stored procedures that you substitute in as the rowsource as required? ? A fair question. My hope was to find a set-oriented approach like the old Paradox queries I mentioned. There the concept of a SET of records meeting several conditions (in your case, several different courses) is built into the query by example system. To tell you the truth, I used Paradox first to create a query that would do what you asked for using data I have that has similar relationships. The query took up very little space and modifying it dynamically would be a piece of cake. I had hoped that Paradox's ability to generate a SQL version of the query would help me answer your question. Alas! Paradox had no way to translate its native SET operations into SQL code. There is no comparable capability. Thus Stuart's solution looks to be the most compact and elegant one. I've read some of your posts about bit flags so your digression was not unexpected nor unwelcome. Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security On 2/6/06, J?rgen Welz wrote: > Hey Steve: > > The actual query is a bit more complex than posted as it takes into account > certification expiry dates and may mix in numerous additional Inclusive and > Exclusionary conditions, several driven by multi select list boxes (1 > through 8 regional offices, 1 or more of several categories of employee...). > The question I posed was to address one aspect of a search that I provide > for every major form. I won't have a problem with dupliicate courses in my > 'count'. If I mapped bit flags to categories I'd have no trouble > dynamically setting query by join SQL and denormalizing everything to the > Employee table with a few external lookups. But I digress. > > Getting back to how one would integrate this with a SQL Server BE; the SQL > string rowsource for a hit list may join anywhere from 0 to 8 additional > tables in any combination, an In(list) may require a list of values subquery > or nested subqueries and require in/exclusive conditions on the main table > or any of the related tables. How does anyone to something like this > without resorting to dynamic SQL? Do you have 60 stored parameter stored > procedures that you substitute in as the rowsource as required? > > Stuart's posted solution provides a reasonable approach to cleaning up the > string generation code I have been using to find matches for meeting 'every > one' in a list on a single field. I have yet to run some performance tests > but expect to do so over the next couple of days. > > Anyone else have an idea of another way of doing this before I run some > testing? > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com From Gustav at cactus.dk Tue Feb 7 09:20:09 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Feb 2006 16:20:09 +0100 Subject: [AccessD] DBA web site update Message-ID: Hi J?rgen Interesting. However, the task I was working with and the small test we made only read an wrote integers. But I will certainly give CopyMemory a closer look. /gustav >>> jwelz at hotmail.com 07-02-2006 14:46:04 >>> I've been able to implement the concepts discussed at the link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnovba00/html/LightningStrings.asp for sorting two dimensional string arrays as this approach only requires the use of available libraries. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Jim Lawrence > >Hi All: > >A new article, 'Array Performance', as well as some minor changes has been >added to the DBA web site (www.ddatabaseadvisors.com). > >Jim From jwcolby at ColbyConsulting.com Tue Feb 7 10:04:46 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 7 Feb 2006 11:04:46 -0500 Subject: [AccessD] PDF printer driver and SDK In-Reply-To: <001501c62bd5$48ddc640$1801a8c0@50NM721> Message-ID: <005b01c62c00$37e08140$647aa8c0@ColbyM6805> >...what functionality does it provide that isn't available in Leban's free code? #1 and MOST important, placement in Google's search engine. You have to find it before you can evaluate it. After that... #2 a 57 page users manual #3 The following functionality (if you need it - taken from their table of content): Properties 12 DocumentOutputFolder 12 DocumentOutputName 12 DocumentOutputFormat 12 DocumentResolution 12 PDF Specific Properties 13 DocumentTitle 13 DocumentAuthor 13 DocumentSubject 13 DocumentKeywords 13 OptimizePDFfor 14 PDFLinearized 14 PDFCompatibilityLevel 15 PDFAutoRotatePage 15 PDFEmbedAllFonts 15 PDFProcessColorModel 15 PDFCompressPages 16 PDFSubsetFonts 16 PDFFontsMaxSubset 16 ConvertCMYKImagesToRGB 16 CompressColorImages 16 CompressGrayImages 17 CompressMonoImages 17 ColorCompressMethod 17 GrayCompressMethod 17 MonoCompressMethod 18 ColorImageResolution 18 GrayImageResolution 18 MonoImageResolution 18 DownsampleColorImages 18 DownsampleGrayImages 19 DownsampleMonoImages 19 ColorImageDownsampleType 19 GrayImageDownsampleType 19 MonoImageDownsampleType 20 MaxInlineImageSize 20 PDF Encryption Properties 21 PDFEncryption 21 PDFEncryptionType 21 PDFUserPassword 21 PDFOwnerPassword 21 PDFNoCopyPermission 22 PDFNoPrintPermission 22 PDFNoChangePermission 22 PDFNoAddPermission 22 PDFContentAccess 23 PDFAllowExtraction 23 PDFChangesAllowed 23 PDFPrintingPermissions 24 PDF Viewer specific properties 25 HideToolBar 25 HideMenuBar 25 HideMainWindow 25 PDFOpenView 25 PDFOpenAtPage 25 PDFOpenMagnification 26 PDFPageLayout 26 Watermark and Stationery Properties 27 StampFontName 27 StampFontColor 27 StampFontSize 27 StampMessage 27 PlaceStampOnPages 27 StampX 28 StampY 28 StationeryFile 28 PlaceStationeryOnPages 28 Image specific properties 29 ImageType 29 JPEGImageQuality 30 MultipageTiff 30 TiffFillOrder 30 TextAplhaBits 30 GraphicsAplhaBits 31 UseCIEColor 31 Interpolate 31 UseWTS 31 FileMask 32 User Interface specific properties 33 HideSaveAsWindow 33 HideWatermarkButton 33 HideConfigureButton 33 HideEmailCheckBox 33 HideViewCheckBox 33 DefaultAction 34 ViewDocumentAfterConversion 34 EmailDocumentAfterConversion 34 Methods 35 NewGUID 35 GetDefaultPrinter 35 SetDefaultPrinter 35 ApplySettings 35 Create 35 TrueTypeFontDownloadOption 36 FileDelete 36 FileInUse 36 FileExists 36 FileCopy 36 docuPrinter Word macro 37 Properties 37 CHBookmarks 37 CInternetLink 37 CCrosRef 37 CCrosDoc 37 LinkFootEnd 38 CWordTextBox 38 CDocInfo 38 LinkType 38 LinkHighlight 38 LinkColor 39 LinkStyle 39 CBookNameDest 39 BookmarkDepth 39 BookmarkMagn 39 CFormFields 40 RenameFormFields 40 HideTextInputBorder 40 HideCheckBoxBorder 40 HideDropDownBorder 40 CComNotes 40 Methods 41 ConvertActiveDocument 41 docuPrinter PowerPoint macro 46 Properties 46 CTransition 46 CHBookmarks 46 CInternetLink 46 CDocInfo 46 LinkType 47 LinkHighlight 48 LinkColor 48 LinkStyle 48 BookmarkDepth 48 BookmarkMagn 48 BlackAndWhitePrinting 49 Methods 49 ConvertActiveDocument 49 Examples 50 Example 1 Create a PDF file from Visual Basic 50 Example 2 Convert a MS Word document into PDF from Visual Basic 51 Example 3 Convert a MS Word document into PDF from Visual Basic (using the docuPrinter MS Word Macro) 52 Example 4 Convert a MS Excel document into PDF from Visual Basic 53 Example 5 Convert a MS PowerPoint document into PDF from Visual Basic 54 Example 6 Convert a PowerPoint document into PDF from Visual Basic (using the docuPrinter PowerPoint Macro) 55 Example 7 Convert a MS Access report into PDF from Visual Basic 56 Example 8 Convert an URL / HTML into PDF from Visual Basic 57 In short, a fully documented SDK that allows you to do a ton of stuff from VBA. So... What does Leban's free code do? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 07, 2006 5:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] PDF printer driver and SDK ...what functionality does it provide that isn't available in Leban's free code? http://www.lebans.com/reporttopdf.htm William From Gustav at cactus.dk Tue Feb 7 10:46:49 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Feb 2006 17:46:49 +0100 Subject: [AccessD] PDF printer driver and SDK Message-ID: Hi William and John They are very different. The neevia thingy prints to an installed neevia printer object, which can output in many other format than PDF (could be very useful), while Leban's dlls generate PDF files directly from the report or from a snapshot file. This neevia example: Example 7 Convert a MS Access report into PDF from Visual Basic 56 does nothing more than open Access, change the default printer to the special printer, choose PDF format, print the report, set back the default printer. No matter how small the license is, it can cause issues at clients regarding approval and administration. Thus, we mostly use the free PDF printer from: http://freepdfxp.de/fpxp.htm Note the Administration Manual and the (small) resource kit. It uses the Apple Postscript driver and Ghostscript to produce high-quality output. For more specialized purposes, Leban's dlls are worth a look. /gustav >>> wdhindman at bellsouth.net 07-02-2006 11:57:27 >>> ...what functionality does it provide that isn't available in Leban's free code? http://www.lebans.com/reporttopdf.htm William ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 06, 2006 10:45 PM Subject: [AccessD] PDF printer driver and SDK > Folks, > > I just discovered this: > > http://www.neevia.com/ > > Cheap at $19 for the cheapest printer driver (per machine I think) and $30 > for the SDK to write VB code to drive it. I printed my first Access > document 15 minutes after discovering the web site, through free downloads > of the driver and SDK. Of course the free driver places "printed by > Docuprinter SDK" in every page of the printed doc, which I assume goes > away > when you buy the $30 license which I will be doing tonight I think. From jeffrey.demulling at usbank.com Tue Feb 7 10:57:17 2006 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Tue, 7 Feb 2006 10:57:17 -0600 Subject: [AccessD] PDF printer driver and SDK In-Reply-To: Message-ID: Gustav, Is there an English version of the website? I would like to look into this but do not read German. A Spanish site would be fine also. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 email: jeffrey.demulling at usbank.com accessd-bounces at databaseadvisors.com wrote on 02/07/2006 10:46:49 AM: > Hi William and John > > They are very different. > > The neevia thingy prints to an installed neevia printer object, > which can output in many other format than PDF (could be very > useful), while Leban's dlls generate PDF files directly from the > report or from a snapshot file. > > This neevia example: > Example 7 Convert a MS Access report into PDF from Visual Basic 56 > does nothing more than open Access, change the default printer to > the special printer, choose PDF format, print the report, set back > the default printer. > > No matter how small the license is, it can cause issues at clients > regarding approval and administration. Thus, we mostly use the free > PDF printer from: > > http://freepdfxp.de/fpxp.htm > > Note the Administration Manual and the (small) resource kit. > It uses the Apple Postscript driver and Ghostscript to produce high- > quality output. > > For more specialized purposes, Leban's dlls are worth a look. > /gustav > > > >>> wdhindman at bellsouth.net 07-02-2006 11:57:27 >>> > ...what functionality does it provide that isn't available in Leban's free > code? > http://www.lebans.com/reporttopdf.htm > > William > > ----- Original Message ----- > From: "John Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, February 06, 2006 10:45 PM > Subject: [AccessD] PDF printer driver and SDK > > > > Folks, > > > > I just discovered this: > > > > http://www.neevia.com/ > > > > Cheap at $19 for the cheapest printer driver (per machine I think) and $30 > > for the SDK to write VB code to drive it. I printed my first Access > > document 15 minutes after discovering the web site, through free downloads > > of the driver and SDK. Of course the free driver places "printed by > > Docuprinter SDK" in every page of the printed doc, which I assume goes > > away > > when you buy the $30 license which I will be doing tonight I think. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== From BarbaraRyan at cox.net Tue Feb 7 11:08:09 2006 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Tue, 7 Feb 2006 12:08:09 -0500 Subject: [AccessD] Faxing from Access 2002 using Windows XP Fax Message-ID: <00f501c62c09$120ff000$0d00a8c0@desktop> I am currently faxing a report snapshot file (.snp), using the Sendobject command in an Access 2002 application. For this to happen, Microsoft Outlook is must be active (as well as ClickYes, third-party software that automatically responds to the security dialog box that pops up from Outlook). My client is now asking if Outlook is really necessary for this process (they do not want ANY mail client installed on this computer). Also, they do not want to purchase any third party Fax software. Does anyone know of a way to fax a snapshot file from Access without using Outlook or any third party Fax software? Thanks, Barb Ryan From bheid at appdevgrp.com Tue Feb 7 11:15:24 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 7 Feb 2006 12:15:24 -0500 Subject: [AccessD] [SPAM SUSPECT] Re: PDF printer driver and SDK In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3BB31@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F19@ADGSERVER> I got Google to do it at: http://tinyurl.com/7tk87 http://translate.google.com/translate?hl=en&sl=de&u=http://freepdfxp.de/fpxp .htm&prev=/search%3Fq%3Dhttp://freepdfxp.de/fpxp.htm%26num%3D50%26hl%3Den%26 lr%3D%26safe%3Doff%26sa%3DG Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jeffrey.demulling at usbank.com Sent: Tuesday, February 07, 2006 11:57 AM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] PDF printer driver and SDK Importance: Low Gustav, Is there an English version of the website? I would like to look into this but do not read German. A Spanish site would be fine also. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 email: jeffrey.demulling at usbank.com accessd-bounces at databaseadvisors.com wrote on 02/07/2006 10:46:49 AM: > Hi William and John > > They are very different. > > The neevia thingy prints to an installed neevia printer object, > which can output in many other format than PDF (could be very > useful), while Leban's dlls generate PDF files directly from the > report or from a snapshot file. > > This neevia example: > Example 7 Convert a MS Access report into PDF from Visual Basic 56 > does nothing more than open Access, change the default printer to > the special printer, choose PDF format, print the report, set back > the default printer. > > No matter how small the license is, it can cause issues at clients > regarding approval and administration. Thus, we mostly use the free > PDF printer from: > > http://freepdfxp.de/fpxp.htm > > Note the Administration Manual and the (small) resource kit. > It uses the Apple Postscript driver and Ghostscript to produce high- > quality output. > > For more specialized purposes, Leban's dlls are worth a look. > /gustav > > > >>> wdhindman at bellsouth.net 07-02-2006 11:57:27 >>> > ...what functionality does it provide that isn't available in Leban's free > code? > http://www.lebans.com/reporttopdf.htm > > William > > ----- Original Message ----- > From: "John Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, February 06, 2006 10:45 PM > Subject: [AccessD] PDF printer driver and SDK > > > > Folks, > > > > I just discovered this: > > > > http://www.neevia.com/ > > > > Cheap at $19 for the cheapest printer driver (per machine I think) and $30 > > for the SDK to write VB code to drive it. I printed my first Access > > document 15 minutes after discovering the web site, through free downloads > > of the driver and SDK. Of course the free driver places "printed by > > Docuprinter SDK" in every page of the printed doc, which I assume goes > > away > > when you buy the $30 license which I will be doing tonight I think. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ---------------------------------------------------------------------------- -- Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================ == -- 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 7 11:18:29 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 07 Feb 2006 09:18:29 -0800 Subject: [AccessD] Access and Camcorder drivers In-Reply-To: <00f501c62c09$120ff000$0d00a8c0@desktop> Message-ID: <00c101c62c0a$839430a0$017ba8c0@xpserver> Hi All: Has anyone had experience or information with using a camcorder with Access? TIA Jim From Gustav at cactus.dk Tue Feb 7 11:21:18 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Feb 2006 18:21:18 +0100 Subject: [AccessD] Binding to an ado recordset Message-ID: This link has changed: http://support.microsoft.com/default.aspx?scid=kb;en-us;281998 /gustav >>> shamil at users.mns.ru 20-12-2005 18:39:36 >>> John, Here is MS KB article: How to bind Microsoft Access forms to ADO recordsets - http://support.microsoft.com/kb/281998 Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Monday, December 19, 2005 11:45 PM Subject: [AccessD] Binding to an ado recordset > Is this possible in Access 2002? 2003 and above? Where did this kick in? > > John W. Colby > www.ColbyConsulting.com From jwelz at hotmail.com Tue Feb 7 11:25:39 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 07 Feb 2006 10:25:39 -0700 Subject: [AccessD] DBA web site update In-Reply-To: Message-ID: Hi Gustav: My purposes were to be able to work with disconnected data in the days of DAO using getrows and callbacks for populating lists and combos. A single one row table of timestamps was read to determine wheter the data needed to be refreshed. Users are able to choose which column on which to sort and a sort direction just like the Windows Explorer window in detail view. In the days before we moved to Terminal Server, this saved tremendously on LAN traffic and was much faster than requerying with a different sort order. . Everything you can return by way of getrows converts well to string and nothing can be swapped faster on a 32 bit OS than a long. Much database data requiring this kind of sorting begins as string format so I settled on strings as a lowest common denominator for array work. As yet I still lack the clout to install any DLLs or third party software on our systems so the memory copy routines proved to be the best solution I could provide that addressed all situations. I haven't played much with real disconnected recordsets to determine whether they offer any advantages over working with arrays. I once clocked the difference between setting the sorted property true vs sorting my data before running the .additem in VB6 and found that sorting the data yourself with memory copy was faster. Of course, not all data originates from recordsets. In my case, I do a fair bit of work with the file system and never go through the intermediate step of placing the data into a table or recordset. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Gustav Brock" > >Hi J?rgen > >Interesting. However, the task I was working with and the small test we >made only read an wrote integers. >But I will certainly give CopyMemory a closer look. > >/gustav > > >>> jwelz at hotmail.com 07-02-2006 14:46:04 >>> >I've been able to implement the concepts discussed at the link: > >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnovba00/html/LightningStrings.asp > > >for sorting two dimensional string arrays as this approach only >requires the >use of available libraries. > >Ciao >J?rgen Welz >Edmonton, Alberta >jwelz at hotmail.com From wdhindman at bellsouth.net Tue Feb 7 11:28:46 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 7 Feb 2006 12:28:46 -0500 Subject: [AccessD] PDF printer driver and SDK References: Message-ID: <001201c62c0b$f36df590$1801a8c0@50NM721> Gustav/JC ...I tried using Ghostscript a few years back when I was experimenting with pdf conversion and it had some serious flaws at the time that made me remove it from my system ...I never tried it again ...before Lebans put out his dlls and code, I used a few different freeware pdf printers with varying quality in the conversion ...since converting to Lebans dlls I've not had any problems and the conversion quality has been excellent as long as you follow his rules ...and his dlls require no money, no registry entrys, no referencing, and have no versioning or licensing issues which endears them to me for client distribution and maintenance. ...as for what it will do compared to JC's list I don't know since a straight conversion is all I've ever required ...since I own Accrobat, I've always used it to make any pdf edits I need ...the dll functions do handle compression level and passwording but beyond that I've not had a need ...and since I no longer use VB (VB.NET is driving me nuts though) that functionality is also beyond my needs or expertise. ...each of us has his own way of doing things ...lately I've even started using some unbound forms because they let me address some multi-user issues that I just couldn't solve with bound ones ...much as it pains me to say so :) William ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, February 07, 2006 11:46 AM Subject: Re: [AccessD] PDF printer driver and SDK > Hi William and John > > They are very different. > > The neevia thingy prints to an installed neevia printer object, which can > output in many other format than PDF (could be very useful), while Leban's > dlls generate PDF files directly from the report or from a snapshot file. > > This neevia example: > Example 7 Convert a MS Access report into PDF from Visual Basic 56 > does nothing more than open Access, change the default printer to the > special printer, choose PDF format, print the report, set back the default > printer. > > No matter how small the license is, it can cause issues at clients > regarding approval and administration. Thus, we mostly use the free PDF > printer from: > > http://freepdfxp.de/fpxp.htm > > Note the Administration Manual and the (small) resource kit. > It uses the Apple Postscript driver and Ghostscript to produce > high-quality output. > > For more specialized purposes, Leban's dlls are worth a look. > /gustav > > >>>> wdhindman at bellsouth.net 07-02-2006 11:57:27 >>> > ...what functionality does it provide that isn't available in Leban's free > code? > http://www.lebans.com/reporttopdf.htm > > William > > ----- Original Message ----- > From: "John Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, February 06, 2006 10:45 PM > Subject: [AccessD] PDF printer driver and SDK > > >> Folks, >> >> I just discovered this: >> >> http://www.neevia.com/ >> >> Cheap at $19 for the cheapest printer driver (per machine I think) and >> $30 >> for the SDK to write VB code to drive it. I printed my first Access >> document 15 minutes after discovering the web site, through free >> downloads >> of the driver and SDK. Of course the free driver places "printed by >> Docuprinter SDK" in every page of the printed doc, which I assume goes >> away >> when you buy the $30 license which I will be doing tonight I think. > > > -- > 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 7 11:33:10 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 07 Feb 2006 09:33:10 -0800 Subject: [AccessD] DBA web site update In-Reply-To: Message-ID: <00c801c62c0c$90b21f20$017ba8c0@xpserver> Hi J?rgen: That article is a fine demonstration how technique and method can dramatically enhance performance. Would you be able to send a code sample so that it would be able to be added into the DBA article on Array performance? The speed will not be able to surpass C++ but it might be able to close the speed gap between C# and VB.Net.(?) If methods like Quick or Lightning sort were implemented with this technique would there be yet again any sort speed increase? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J??rgen Welz Sent: February 7, 2006 5:46 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] DBA web site update I've been able to implement the concepts discussed at the link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnovba00/ht ml/LightningStrings.asp for sorting two dimensional string arrays as this approach only requires the use of available libraries. Ciao J|rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Jim Lawrence > >Hi All: > >A new article, 'Array Performance', as well as some minor changes has been >added to the DBA web site (www.ddatabaseadvisors.com). > >Jim From Gustav at cactus.dk Tue Feb 7 11:12:46 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Feb 2006 18:12:46 +0100 Subject: [AccessD] PDF printer driver and SDK Message-ID: Hi Jeffrey The manual (e) is in English. The driver itself it multi-language. /gustav >>> jeffrey.demulling at usbank.com 07-02-2006 17:57:17 >>> Gustav, Is there an English version of the website? I would like to look into this but do not read German. A Spanish site would be fine also. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 email: jeffrey.demulling at usbank.com accessd-bounces at databaseadvisors.com wrote on 02/07/2006 10:46:49 AM: > Hi William and John > > They are very different. > > The neevia thingy prints to an installed neevia printer object, > which can output in many other format than PDF (could be very > useful), while Leban's dlls generate PDF files directly from the > report or from a snapshot file. > > This neevia example: > Example 7 Convert a MS Access report into PDF from Visual Basic 56 > does nothing more than open Access, change the default printer to > the special printer, choose PDF format, print the report, set back > the default printer. > > No matter how small the license is, it can cause issues at clients > regarding approval and administration. Thus, we mostly use the free > PDF printer from: > > http://freepdfxp.de/fpxp.htm > > Note the Administration Manual and the (small) resource kit. > It uses the Apple Postscript driver and Ghostscript to produce high- > quality output. > > For more specialized purposes, Leban's dlls are worth a look. > /gustav > > > >>> wdhindman at bellsouth.net 07-02-2006 11:57:27 >>> > ...what functionality does it provide that isn't available in Leban's free > code? > http://www.lebans.com/reporttopdf.htm > > William > > ----- Original Message ----- > From: "John Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, February 06, 2006 10:45 PM > Subject: [AccessD] PDF printer driver and SDK > > > > Folks, > > > > I just discovered this: > > > > http://www.neevia.com/ > > > > Cheap at $19 for the cheapest printer driver (per machine I think) and $30 > > for the SDK to write VB code to drive it. I printed my first Access > > document 15 minutes after discovering the web site, through free downloads > > of the driver and SDK. Of course the free driver places "printed by > > Docuprinter SDK" in every page of the printed doc, which I assume goes > > away > > when you buy the $30 license which I will be doing tonight I think. From accessd at shaw.ca Tue Feb 7 12:04:44 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 07 Feb 2006 10:04:44 -0800 Subject: [AccessD] Binding to an ado recordset In-Reply-To: Message-ID: <00c901c62c10$f9817e70$017ba8c0@xpserver> Gustav: Isn't that ADP Access DB? ... Microsoft Access is using for the SQL Server database currently open in an Access project (ADP) file... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: February 7, 2006 9:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Binding to an ado recordset This link has changed: http://support.microsoft.com/default.aspx?scid=kb;en-us;281998 /gustav >>> shamil at users.mns.ru 20-12-2005 18:39:36 >>> John, Here is MS KB article: How to bind Microsoft Access forms to ADO recordsets - http://support.microsoft.com/kb/281998 Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Monday, December 19, 2005 11:45 PM Subject: [AccessD] Binding to an ado recordset > Is this possible in Access 2002? 2003 and above? Where did this kick in? > > 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 itsame2000 at sbcglobal.net Tue Feb 7 13:55:59 2006 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Tue, 7 Feb 2006 11:55:59 -0800 (PST) Subject: [AccessD] VBA and DOS Question Message-ID: <20060207195559.5201.qmail@web81510.mail.mud.yahoo.com> I hope somebody can shed some light on this. Sometimes, I'll create and launch batch files on the fly. I worked around the problem of Access running over the batch files before they completed by creating a completion.txt file which my Access database polled for so it knew that the process finished. That was a less than desirable solution. I found a small piece of code that makes an API call to figure out when DOS is complete before Access procedes. It works great. I'm just curious as to why the subroutine is private. I don't want to replicate this in each module I use this API call. Does anybody know why this should be private? Here is the site I code I found. Thanks, Jeremy Toves http://visualbasic.about.com/od/learnvb6/l/bldykvb6dosa.htm?terms=vb+script+close+window Private Declare Function OpenProcess _ Lib "kernel32" ( _ ByVal dwDesiredAccess As Long, _ ByVal bInheritHandle As Long, _ ByVal dwProcessId As Long) _ As Long Private Declare Function WaitForSingleObject _ Lib "kernel32" ( _ ByVal hHandle As Long, _ ByVal dwMilliseconds As Long) _ As Long Private Declare Function CloseHandle _ Lib "kernel32" ( _ ByVal hObject As Long) _ As Long Private Const SYNCHRONIZE = &H100000 Private Const INFINITE = &HFFFF Sub Main() ShellAndWait ("C:\WINDOWS\system32\ping.EXE www.google.com") End Sub Private Sub ShellAndWait(CommandLine As String) Dim ShellId As Long Dim ShellHandle As Long ShellId = Shell(CommandLine, vbNormalFocus) ShellHandle = OpenProcess(SYNCHRONIZE, 0, ShellId) If ShellHandle <> 0 Then WaitForSingleObject ShellHandle, INFINITE CloseHandle ShellHandle End If End Sub From jwelz at hotmail.com Tue Feb 7 14:12:58 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 07 Feb 2006 13:12:58 -0700 Subject: [AccessD] DBA web site update In-Reply-To: <00c801c62c0c$90b21f20$017ba8c0@xpserver> Message-ID: I'll have to generalize my routine a bit. It is essentially a class module without being a class module(properties & method and a call that sets and initializes properties such as sort column and direction (so as not to have to pass them in with recursive calls used by a quick sort algorithm) and it may erase upon exit with the final return from recursion, depending on the purpose. The more generic VB6 version I used also runs in Access but I have that at home on a USB drive. Perhaps setting it up as a class module that will accept recordsets and arrays will be the better solution. I'll have a closer look this evening as I'm taking some safety supervisor training today. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Jim Lawrence > >Hi J?rgen: > >That article is a fine demonstration how technique and method can >dramatically enhance performance. Would you be able to send a code sample >so >that it would be able to be added into the DBA article on Array >performance? >The speed will not be able to surpass C++ but it might be able to close the >speed gap between C# and VB.Net.(?) > >If methods like Quick or Lightning sort were implemented with this >technique >would there be yet again any sort speed increase? > >Jim > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J??rgen Welz >Sent: February 7, 2006 5:46 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] DBA web site update > >I've been able to implement the concepts discussed at the link: > >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnovba00/ht >ml/LightningStrings.asp > >for sorting two dimensional string arrays as this approach only requires >the > >use of available libraries. > >Ciao >J|rgen Welz >Edmonton, Alberta >jwelz at hotmail.com > > > > > > >From: Jim Lawrence > > > >Hi All: > > > >A new article, 'Array Performance', as well as some minor changes has >been > >added to the DBA web site (www.ddatabaseadvisors.com). > > > >Jim > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Tue Feb 7 14:14:57 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 7 Feb 2006 15:14:57 -0500 Subject: [AccessD] [SPAM SUSPECT] VBA and DOS Question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3BB8D@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F2B@ADGSERVER> There should be no reason that you can't make it public. Usually, the way that I program is to make a needed function public, and any helper functions that the function needs (that are not needed elsewhere) private. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Tuesday, February 07, 2006 2:56 PM To: AccessD Subject: [SPAM SUSPECT] [AccessD] VBA and DOS Question Importance: Low I hope somebody can shed some light on this. Sometimes, I'll create and launch batch files on the fly. I worked around the problem of Access running over the batch files before they completed by creating a completion.txt file which my Access database polled for so it knew that the process finished. That was a less than desirable solution. I found a small piece of code that makes an API call to figure out when DOS is complete before Access procedes. It works great. I'm just curious as to why the subroutine is private. I don't want to replicate this in each module I use this API call. Does anybody know why this should be private? Here is the site I code I found. Thanks, Jeremy Toves http://visualbasic.about.com/od/learnvb6/l/bldykvb6dosa.htm?terms=vb+script+ close+window Private Declare Function OpenProcess _ Lib "kernel32" ( _ ByVal dwDesiredAccess As Long, _ ByVal bInheritHandle As Long, _ ByVal dwProcessId As Long) _ As Long Private Declare Function WaitForSingleObject _ Lib "kernel32" ( _ ByVal hHandle As Long, _ ByVal dwMilliseconds As Long) _ As Long Private Declare Function CloseHandle _ Lib "kernel32" ( _ ByVal hObject As Long) _ As Long Private Const SYNCHRONIZE = &H100000 Private Const INFINITE = &HFFFF Sub Main() ShellAndWait ("C:\WINDOWS\system32\ping.EXE www.google.com") End Sub Private Sub ShellAndWait(CommandLine As String) Dim ShellId As Long Dim ShellHandle As Long ShellId = Shell(CommandLine, vbNormalFocus) ShellHandle = OpenProcess(SYNCHRONIZE, 0, ShellId) If ShellHandle <> 0 Then WaitForSingleObject ShellHandle, INFINITE CloseHandle ShellHandle End If End Sub From accessd at shaw.ca Tue Feb 7 14:17:13 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 07 Feb 2006 12:17:13 -0800 Subject: [AccessD] VBA and DOS Question In-Reply-To: <20060207195559.5201.qmail@web81510.mail.mud.yahoo.com> Message-ID: <00d401c62c23$7c133970$017ba8c0@xpserver> Hi Jeremy: These routines are generally called from a local (in the same module) function or subroutine that is public. Assuming that all this code is in an Access Module by just changing one line this routine can be accessed from any Form or Report. 'Public Sub ShellAndWait(CommandLine As String) ' HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: February 7, 2006 11:56 AM To: AccessD Subject: [AccessD] VBA and DOS Question I hope somebody can shed some light on this. Sometimes, I'll create and launch batch files on the fly. I worked around the problem of Access running over the batch files before they completed by creating a completion.txt file which my Access database polled for so it knew that the process finished. That was a less than desirable solution. I found a small piece of code that makes an API call to figure out when DOS is complete before Access procedes. It works great. I'm just curious as to why the subroutine is private. I don't want to replicate this in each module I use this API call. Does anybody know why this should be private? Here is the site I code I found. Thanks, Jeremy Toves http://visualbasic.about.com/od/learnvb6/l/bldykvb6dosa.htm?terms=vb+script+ close+window Private Declare Function OpenProcess _ Lib "kernel32" ( _ ByVal dwDesiredAccess As Long, _ ByVal bInheritHandle As Long, _ ByVal dwProcessId As Long) _ As Long Private Declare Function WaitForSingleObject _ Lib "kernel32" ( _ ByVal hHandle As Long, _ ByVal dwMilliseconds As Long) _ As Long Private Declare Function CloseHandle _ Lib "kernel32" ( _ ByVal hObject As Long) _ As Long Private Const SYNCHRONIZE = &H100000 Private Const INFINITE = &HFFFF Sub Main() ShellAndWait ("C:\WINDOWS\system32\ping.EXE www.google.com") End Sub Private Sub ShellAndWait(CommandLine As String) Dim ShellId As Long Dim ShellHandle As Long ShellId = Shell(CommandLine, vbNormalFocus) ShellHandle = OpenProcess(SYNCHRONIZE, 0, ShellId) If ShellHandle <> 0 Then WaitForSingleObject ShellHandle, INFINITE CloseHandle ShellHandle End If End Sub -- 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 7 14:19:24 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 07 Feb 2006 12:19:24 -0800 Subject: [AccessD] DBA web site update In-Reply-To: Message-ID: <00db01c62c23$c9946160$017ba8c0@xpserver> Hi J?rgen: Any help would be greatly appreciated. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J??rgen Welz Sent: February 7, 2006 12:13 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] DBA web site update I'll have to generalize my routine a bit. It is essentially a class module without being a class module(properties & method and a call that sets and initializes properties such as sort column and direction (so as not to have to pass them in with recursive calls used by a quick sort algorithm) and it may erase upon exit with the final return from recursion, depending on the purpose. The more generic VB6 version I used also runs in Access but I have that at home on a USB drive. Perhaps setting it up as a class module that will accept recordsets and arrays will be the better solution. I'll have a closer look this evening as I'm taking some safety supervisor training today. Ciao J|rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Jim Lawrence > >Hi J|rgen: > >That article is a fine demonstration how technique and method can >dramatically enhance performance. Would you be able to send a code sample >so >that it would be able to be added into the DBA article on Array >performance? >The speed will not be able to surpass C++ but it might be able to close the >speed gap between C# and VB.Net.(?) > >If methods like Quick or Lightning sort were implemented with this >technique >would there be yet again any sort speed increase? > >Jim > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JCSent: February 7, 2006 5:46 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] DBA web site update > >I've been able to implement the concepts discussed at the link: > >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnovba00/h t >ml/LightningStrings.asp > >for sorting two dimensional string arrays as this approach only requires >the > >use of available libraries. > >Ciao >J|rgen Welz >Edmonton, Alberta >jwelz at hotmail.com > > > > > > >From: Jim Lawrence > > > >Hi All: > > > >A new article, 'Array Performance', as well as some minor changes has >been > >added to the DBA web site (www.ddatabaseadvisors.com). > > > >Jim > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From itsame2000 at sbcglobal.net Tue Feb 7 14:20:22 2006 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Tue, 7 Feb 2006 12:20:22 -0800 (PST) Subject: [AccessD] VBA and DOS Question In-Reply-To: <00d401c62c23$7c133970$017ba8c0@xpserver> Message-ID: <20060207202022.29345.qmail@web81508.mail.mud.yahoo.com> Thanks for all those who replied. It seems like there is no reason I can't make it public. Jeremy Jim Lawrence wrote: Hi Jeremy: These routines are generally called from a local (in the same module) function or subroutine that is public. Assuming that all this code is in an Access Module by just changing one line this routine can be accessed from any Form or Report. 'Public Sub ShellAndWait(CommandLine As String) ' HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: February 7, 2006 11:56 AM To: AccessD Subject: [AccessD] VBA and DOS Question I hope somebody can shed some light on this. Sometimes, I'll create and launch batch files on the fly. I worked around the problem of Access running over the batch files before they completed by creating a completion.txt file which my Access database polled for so it knew that the process finished. That was a less than desirable solution. I found a small piece of code that makes an API call to figure out when DOS is complete before Access procedes. It works great. I'm just curious as to why the subroutine is private. I don't want to replicate this in each module I use this API call. Does anybody know why this should be private? Here is the site I code I found. Thanks, Jeremy Toves http://visualbasic.about.com/od/learnvb6/l/bldykvb6dosa.htm?terms=vb+script+ close+window Private Declare Function OpenProcess _ Lib "kernel32" ( _ ByVal dwDesiredAccess As Long, _ ByVal bInheritHandle As Long, _ ByVal dwProcessId As Long) _ As Long Private Declare Function WaitForSingleObject _ Lib "kernel32" ( _ ByVal hHandle As Long, _ ByVal dwMilliseconds As Long) _ As Long Private Declare Function CloseHandle _ Lib "kernel32" ( _ ByVal hObject As Long) _ As Long Private Const SYNCHRONIZE = &H100000 Private Const INFINITE = &HFFFF Sub Main() ShellAndWait ("C:\WINDOWS\system32\ping.EXE www.google.com") End Sub Private Sub ShellAndWait(CommandLine As String) Dim ShellId As Long Dim ShellHandle As Long ShellId = Shell(CommandLine, vbNormalFocus) ShellHandle = OpenProcess(SYNCHRONIZE, 0, ShellId) If ShellHandle <> 0 Then WaitForSingleObject ShellHandle, INFINITE CloseHandle ShellHandle End If End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Tue Feb 7 14:22:16 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 07 Feb 2006 13:22:16 -0700 Subject: [AccessD] VBA and DOS Question In-Reply-To: <20060207195559.5201.qmail@web81510.mail.mud.yahoo.com> Message-ID: Jeremy: No need for the procedure to be private. As long as the API calls are in the same module as your wrapper function, the API declares can remain private. This is typical VB usage with a routine named 'Main' and is scoped to work only within the example routine. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Jeremy Toves > >I hope somebody can shed some light on this. Sometimes, I'll create and >launch batch files on the fly. I worked around the problem of Access >running over the batch files before they completed by creating a >completion.txt file which my Access database polled for so it knew that the >process finished. That was a less than desirable solution. > >I found a small piece of code that makes an API call to figure out when DOS >is complete before Access procedes. It works great. I'm just curious as >to why the subroutine is private. I don't want to replicate this in each >module I use this API call. Does anybody know why this should be private? >Here is the site I code I found. > > Thanks, >Jeremy Toves > > >http://visualbasic.about.com/od/learnvb6/l/bldykvb6dosa.htm?terms=vb+script+close+window > > Private Declare Function OpenProcess _ > Lib "kernel32" ( _ > ByVal dwDesiredAccess As Long, _ > ByVal bInheritHandle As Long, _ > ByVal dwProcessId As Long) _ > As Long >Private Declare Function WaitForSingleObject _ > Lib "kernel32" ( _ > ByVal hHandle As Long, _ > ByVal dwMilliseconds As Long) _ > As Long >Private Declare Function CloseHandle _ > Lib "kernel32" ( _ > ByVal hObject As Long) _ > As Long >Private Const SYNCHRONIZE = &H100000 >Private Const INFINITE = &HFFFF > > Sub Main() > ShellAndWait ("C:\WINDOWS\system32\ping.EXE www.google.com") >End Sub > > Private Sub ShellAndWait(CommandLine As String) > Dim ShellId As Long > Dim ShellHandle As Long > ShellId = Shell(CommandLine, vbNormalFocus) > ShellHandle = OpenProcess(SYNCHRONIZE, 0, ShellId) > If ShellHandle <> 0 Then > WaitForSingleObject ShellHandle, INFINITE > CloseHandle ShellHandle > End If >End Sub From Jdemarco at hudsonhealthplan.org Tue Feb 7 14:49:44 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 7 Feb 2006 15:49:44 -0500 Subject: [AccessD] Signing code A2K3 Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C4550@TTNEXCHCL2.hshhp.com> List, Is anyone signing their code in A2K3? We're about to rollout this version (from A97) and although converting and testing our apps in the upgraded version is clear cut I'm not quite sure how to deal with code signing. Some questions for you: Will our users be constantly presented with the message box warning them about unsigned code if we don't use a signing mechanism? Do I really have to pay VeriSign (or someone else) to use our own apps? Does this affect how multiple developers share a project? TIA, Jim DeMarco Director of Application Development Hudson Health Plan *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From itsame2000 at sbcglobal.net Tue Feb 7 15:00:44 2006 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Tue, 7 Feb 2006 13:00:44 -0800 (PST) Subject: [AccessD] API Reference Message-ID: <20060207210044.57840.qmail@web81504.mail.mud.yahoo.com> I'm finding API calls more and more useful lately. Does anybody know of a good online reference? Thanks, Jeremy Toves From Jim.Hale at FleetPride.com Tue Feb 7 15:19:06 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 7 Feb 2006 15:19:06 -0600 Subject: [AccessD] API Reference Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA01@corp-es01.fleetpride.com> Try http://www.mentalis.org/apilist/apilist.php Jim Hale -----Original Message----- From: Jeremy Toves [mailto:itsame2000 at sbcglobal.net] Sent: Tuesday, February 07, 2006 3:01 PM To: AccessD Subject: [AccessD] API Reference I'm finding API calls more and more useful lately. Does anybody know of a good online reference? Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From martyconnelly at shaw.ca Tue Feb 7 15:49:44 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 07 Feb 2006 13:49:44 -0800 Subject: [AccessD] Faxing from Access 2002 using Windows XP Fax References: <00f501c62c09$120ff000$0d00a8c0@desktop> Message-ID: <43E915F8.1020404@shaw.ca> If have initialized the WinFAX printer driver in the Printer and Faxes WinXP control panel applet. You should be able to send a normal report print just as you would to any other printer so you could skip the snp format . On first trying to print to this driver you fill in basic info in Fax configuaration wizard like your phone number email for cover page etc. I haven't looked at changing phone numbers from VBA code, not sure exactly how. This driver converts various files to a Fax Tiff image format and has a cover page editor installed under Programs --> Accessories --> Communications --> Faxes assume you have a phone line connected to the machine It will bring up a Fax connection form displaying the sending info and dialing retries 'see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxlegacyvb_9tb3.asp ' for added methods and properties like sender name phone blah blah. Here is another really basic method and doesn't track faxes or whether sent properly that is why you buy 3'd party packages, lots of fiddley things to consider here. You could write extra code to track faxes It is not particulary fast. ' FaxServer method 'this Win 2000 legacy method should work on Win2000 and winXP 'It assumes you have initialized the WinFAX printer driver in ' the Printer and Faxes WinXP control panel applet. This driver converts various files ' to a Fax Tiff image format and has a cover page editor installed under ' Programs --> Accessories --> Communications --> Faxes 'and you have a phone line connected. ' It will bring up a Fax connection form displaying the sending info and dialing retries 'see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxlegacyvb_9tb3.asp ' for added methods and properties like sender name phone blah blah. Sub testfax() Dim strPDFFileName As String Dim strPNumber As String Dim lSaveAs As Long Dim y As Long lSaveAs = 999 strPNumber = "1-250-555-1212" strPDFFileName = "C:\temp\UserGuide.pdf" Dim fs As Object Set fs = CreateObject("FaxServer.FaxServer") Dim Servername As String 'this is your computer machine name Servername = "Martin" fs.Connect (Servername) fs.retries = 5 '# of retries + 1 fs.retrydelay = 1 'in minutes Dim FD As Object Set FD = fs.createdocument(strPDFFileName) 'strPDFFilename is the path and filename of the document FD.DisplayName = "CheckScale #" & lSaveAs 'lSaveAs is just the document # FD.faxnumber = strPNumber 'Faxnumber to dial, including code for outside line, et all... FD.FileName = strPDFFileName y = FD.send() fs.Disconnect Set FD = Nothing Set fs = Nothing End Sub In this process, the fax is sent from within the application. The printing application directly renders the image to be printed (faxed) and no further conversion is required. The fax printer driver saves the rendered image as a temporary TIFF file and sends it to the fax service for queuing and transmission. The fax send wizard is displayed so the user can provide specific fax transmission data. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxabout_18s3.asp may be able to script something (using e.g. VBScript): Fax Service Client API Visual Basic Reference http://msdn.microsoft.com/library/en-us/fax/faxlegacyvb_4r6t.asp I guess you will find some examples in this Google newsgroup search: http://groups.google.com/groups?q=createobject+FaxServer.FaxServer The fax service for WinXP introduces a new set of COM dual interfaces as well, the Fax Service Extended COM application programming interface (API) About the Fax Service Extended COM API http://msdn.microsoft.com/library/en-us/fax/faxabout_699l.asp and http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxabout_18s3.asp Fax Service Extended COM Samples (Visual Basic) http://msdn.microsoft.com/library/en-us/fax/faxabout_2ckz.asp Barbara Ryan wrote: >I am currently faxing a report snapshot file (.snp), using the Sendobject command in an Access 2002 application. For this to happen, Microsoft Outlook is must be active (as well as ClickYes, third-party software that automatically responds to the security dialog box that pops up from Outlook). > >My client is now asking if Outlook is really necessary for this process (they do not want ANY mail client installed on this computer). Also, they do not want to purchase any third party Fax software. > >Does anyone know of a way to fax a snapshot file from Access without using Outlook or any third party Fax software? > >Thanks, >Barb Ryan > > > -- Marty Connelly Victoria, B.C. Canada From jwelz at hotmail.com Tue Feb 7 15:54:13 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 07 Feb 2006 14:54:13 -0700 Subject: [AccessD] Duplicate AutoNumbers In-Reply-To: <20060207210044.57840.qmail@web81504.mail.mud.yahoo.com> Message-ID: Trouble call from users: Enter a name in search combo and a record from 3 years ago with a different name shows up. Have a look at the table. I have 30 records duplicating the Autonumber PK. She's gone back a bit over 3 years. AN was at 17,000 and is now duplicating rows from 7474 after a corrupt record with AN 2759985. Corrupt record has text with characters I've never seen before and several foreign keys showing 7474 and one showing 1677749760 (normal range of values from 0 through 3). Several of these duplicate records are subsequent to our last compact/repair. Now I must fix the records and divide the child records between the proper parents. Good thing there are lots of backups so I can match the related records to the original parents. What a waste of time. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com From wdhindman at bellsouth.net Tue Feb 7 16:16:45 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 7 Feb 2006 17:16:45 -0500 Subject: [AccessD] Duplicate AutoNumbers References: Message-ID: <019201c62c34$2e713350$1801a8c0@50NM721> ...huh? ...how are you getting DUPLICATE autonumber pk's ...does the field not require a unique an? ...I know that a corrupt mdb can restart an's on unused numbers which is one reason why you can't trust them where audit sequences are required ...but duplicates are new ...and damn scary :( William ----- Original Message ----- From: "J??rgen Welz" To: Sent: Tuesday, February 07, 2006 4:54 PM Subject: [AccessD] Duplicate AutoNumbers > Trouble call from users: > > Enter a name in search combo and a record from 3 years ago with a > different > name shows up. > Have a look at the table. I have 30 records duplicating the Autonumber > PK. > She's gone back a bit over 3 years. AN was at 17,000 and is now > duplicating > rows from 7474 after a corrupt record with AN 2759985. Corrupt record has > text with characters I've never seen before and several foreign keys > showing > 7474 and one showing 1677749760 (normal range of values from 0 through 3). > > Several of these duplicate records are subsequent to our last > compact/repair. Now I must fix the records and divide the child records > between the proper parents. Good thing there are lots of backups so I can > match the related records to the original parents. What a waste of time. > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > > -------------------------------------------------------------------------------- > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From itsame2000 at sbcglobal.net Tue Feb 7 16:25:40 2006 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Tue, 7 Feb 2006 14:25:40 -0800 (PST) Subject: [AccessD] API Reference In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA01@corp-es01.fleetpride.com> Message-ID: <20060207222540.43234.qmail@web81501.mail.mud.yahoo.com> Thanks! This looks good. Jeremy Toves "Hale, Jim" wrote: Try http://www.mentalis.org/apilist/apilist.php Jim Hale -----Original Message----- From: Jeremy Toves [mailto:itsame2000 at sbcglobal.net] Sent: Tuesday, February 07, 2006 3:01 PM To: AccessD Subject: [AccessD] API Reference I'm finding API calls more and more useful lately. Does anybody know of a good online reference? Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From itsame2000 at sbcglobal.net Tue Feb 7 16:24:39 2006 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Tue, 7 Feb 2006 14:24:39 -0800 (PST) Subject: [AccessD] API Reference In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA01@corp-es01.fleetpride.com> Message-ID: <20060207222444.18878.qmail@web81505.mail.mud.yahoo.com> Thanks! This looks good. Jeremy Toves "Hale, Jim" wrote: Try http://www.mentalis.org/apilist/apilist.php Jim Hale -----Original Message----- From: Jeremy Toves [mailto:itsame2000 at sbcglobal.net] Sent: Tuesday, February 07, 2006 3:01 PM To: AccessD Subject: [AccessD] API Reference I'm finding API calls more and more useful lately. Does anybody know of a good online reference? Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From itsame2000 at sbcglobal.net Tue Feb 7 16:25:37 2006 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Tue, 7 Feb 2006 14:25:37 -0800 (PST) Subject: [AccessD] API Reference In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA01@corp-es01.fleetpride.com> Message-ID: <20060207222537.18992.qmail@web81505.mail.mud.yahoo.com> Thanks! This looks good. Jeremy Toves "Hale, Jim" wrote: Try http://www.mentalis.org/apilist/apilist.php Jim Hale -----Original Message----- From: Jeremy Toves [mailto:itsame2000 at sbcglobal.net] Sent: Tuesday, February 07, 2006 3:01 PM To: AccessD Subject: [AccessD] API Reference I'm finding API calls more and more useful lately. Does anybody know of a good online reference? Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Feb 7 16:47:46 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 7 Feb 2006 16:47:46 -0600 Subject: [AccessD] Duplicate AutoNumbers Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1CD03209@xlivmbx21.aig.com> I had something similar a couple of weeks ago, new records were being assigned AutoNumber values that already existed. However the unique index of the field still kicked in and threw a duplicate value error, so I was able to spot exactly when it happened and fix it. The cure was to get everyone out of the front-end and Compact/Repair the back-end. Now how your app is managing to accept the duplicate values is another question. Sounds like the index is so corrupt that it's lost it's Unique setting too. I'd try the compacting method first. Then open the table directly in the back end and add a new record, just to see what the AutoNumber value looks like. Oh and William regarding your comment " which is one reason why you can't trust them where audit sequences are required"... Tut Tut!!! Autonumbers are not supposed to be used for audit sequences, that would be assigning a meaning to them instead of just using them to identify a row in the table, yada, yada, yada. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 07, 2006 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Duplicate AutoNumbers ...huh? ...how are you getting DUPLICATE autonumber pk's ...does the field not require a unique an? ...I know that a corrupt mdb can restart an's on unused numbers which is one reason why you can't trust them where audit sequences are required ...but duplicates are new ...and damn scary :( William ----- Original Message ----- From: "J??rgen Welz" To: Sent: Tuesday, February 07, 2006 4:54 PM Subject: [AccessD] Duplicate AutoNumbers > Trouble call from users: > > Enter a name in search combo and a record from 3 years ago with a > different > name shows up. > Have a look at the table. I have 30 records duplicating the Autonumber > PK. > She's gone back a bit over 3 years. AN was at 17,000 and is now > duplicating > rows from 7474 after a corrupt record with AN 2759985. Corrupt record has > text with characters I've never seen before and several foreign keys > showing > 7474 and one showing 1677749760 (normal range of values from 0 through 3). > > Several of these duplicate records are subsequent to our last > compact/repair. Now I must fix the records and divide the child > records between the proper parents. Good thing there are lots of > backups so I can match the related records to the original parents. > What a waste of time. > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz 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 From bchacc at san.rr.com Tue Feb 7 18:36:28 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 07 Feb 2006 16:36:28 -0800 Subject: [AccessD] Faxing from Access 2002 using Windows XP Fax In-Reply-To: <00f501c62c09$120ff000$0d00a8c0@desktop> References: <00f501c62c09$120ff000$0d00a8c0@desktop> Message-ID: <43E93D0C.1010600@san.rr.com> Barbara: I have a WinFax routine. It's 3rd party but if all else fails, I could send that to you. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com Barbara Ryan wrote: > I am currently faxing a report snapshot file (.snp), using the Sendobject command in an Access 2002 application. For this to happen, Microsoft Outlook is must be active (as well as ClickYes, third-party software that automatically responds to the security dialog box that pops up from Outlook). > > My client is now asking if Outlook is really necessary for this process (they do not want ANY mail client installed on this computer). Also, they do not want to purchase any third party Fax software. > > Does anyone know of a way to fax a snapshot file from Access without using Outlook or any third party Fax software? > > Thanks, > Barb Ryan > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jwcolby at ColbyConsulting.com Tue Feb 7 19:08:35 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 7 Feb 2006 20:08:35 -0500 Subject: [AccessD] Duplicate AutoNumbers In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1CD03209@xlivmbx21.aig.com> Message-ID: <00d601c62c4c$30316d00$647aa8c0@ColbyM6805> It can accept the "duplicate" if the original was deleted, i.e. if there is a "hole" in the sequence. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, February 07, 2006 5:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Duplicate AutoNumbers I had something similar a couple of weeks ago, new records were being assigned AutoNumber values that already existed. However the unique index of the field still kicked in and threw a duplicate value error, so I was able to spot exactly when it happened and fix it. The cure was to get everyone out of the front-end and Compact/Repair the back-end. Now how your app is managing to accept the duplicate values is another question. Sounds like the index is so corrupt that it's lost it's Unique setting too. I'd try the compacting method first. Then open the table directly in the back end and add a new record, just to see what the AutoNumber value looks like. Oh and William regarding your comment " which is one reason why you can't trust them where audit sequences are required"... Tut Tut!!! Autonumbers are not supposed to be used for audit sequences, that would be assigning a meaning to them instead of just using them to identify a row in the table, yada, yada, yada. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 07, 2006 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Duplicate AutoNumbers ...huh? ...how are you getting DUPLICATE autonumber pk's ...does the field not require a unique an? ...I know that a corrupt mdb can restart an's on unused numbers which is one reason why you can't trust them where audit sequences are required ...but duplicates are new ...and damn scary :( William ----- Original Message ----- From: "J??rgen Welz" To: Sent: Tuesday, February 07, 2006 4:54 PM Subject: [AccessD] Duplicate AutoNumbers > Trouble call from users: > > Enter a name in search combo and a record from 3 years ago with a > different > name shows up. > Have a look at the table. I have 30 records duplicating the Autonumber > PK. > She's gone back a bit over 3 years. AN was at 17,000 and is now > duplicating > rows from 7474 after a corrupt record with AN 2759985. Corrupt record has > text with characters I've never seen before and several foreign keys > showing > 7474 and one showing 1677749760 (normal range of values from 0 through 3). > > Several of these duplicate records are subsequent to our last > compact/repair. Now I must fix the records and divide the child > records between the proper parents. Good thing there are lots of > backups so I can match the related records to the original parents. > What a waste of time. > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Tue Feb 7 20:05:59 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 07 Feb 2006 19:05:59 -0700 Subject: [AccessD] Duplicate AutoNumbers In-Reply-To: <00d601c62c4c$30316d00$647aa8c0@ColbyM6805> Message-ID: John No holes. If you sort on the AN PK field, they sit there in nice neat pairs somewhere below the middle of the table. I ran a: CurrentDb.Execute ("Insert Into tblEstimate (ID, EstimateID) Values (16876, 16876)") from the immediate window to correctly set the AN and verified that new records are added with subsequent AN's. I had two fields, both indexed unique for the purposes of a custom replication system that used a global offset number depending on the machine where the record was edited or added. When records are added, the 2nd value is the PK plus an offset to determine which machine the record was added/edited from. There are no duplications in the offset field, only the AN field. What's really annoying is, a person will enter a new record (not in list) and when they attempt to look it up with the same combo, it displays the record from three years ago with the same AN PK. The new record displays in the search combo and looks up the value in the hidden 1st column in the combo. I use single record recordsets. In the after update of the search combo, code sets the form recordsource to: "Select * From tblEstimate Where EstimateID = " & Me.cboLookup Both the old and new Names of the estimates appear in the search combo, but both display the first record matching the duplicated value in the combo. Oh well. I'll fix the data tonight once everyone gets out of the database. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "John Colby" > >It can accept the "duplicate" if the original was deleted, i.e. if there is >a "hole" in the sequence. > > >John W. Colby >www.ColbyConsulting.com > > >-----Original Message----- > >I had something similar a couple of weeks ago, new records were being >assigned AutoNumber values that already existed. However the unique index >of the field still kicked in and threw a duplicate value error, so I was >able to spot exactly when it happened and fix it. The cure was to get >everyone out of the front-end and Compact/Repair the back-end. > >Now how your app is managing to accept the duplicate values is another >question. Sounds like the index is so corrupt that it's lost it's Unique >setting too. I'd try the compacting method first. Then open the table >directly in the back end and add a new record, just to see what the >AutoNumber value looks like. > >Oh and William regarding your comment " which is one reason why you can't >trust them where audit sequences are required"... > >Tut Tut!!! Autonumbers are not supposed to be used for audit sequences, >that >would be assigning a meaning to them instead of just using them to identify >a row in the table, yada, yada, yada. > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman >Sent: Tuesday, February 07, 2006 5:17 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Duplicate AutoNumbers > > >...huh? ...how are you getting DUPLICATE autonumber pk's ...does the field >not require a unique an? ...I know that a corrupt mdb can restart an's on >unused numbers which is one reason why you can't trust them where audit >sequences are required ...but duplicates are new ...and damn scary :( > >William > >----- Original Message ----- >From: "J??rgen Welz" >To: >Sent: Tuesday, February 07, 2006 4:54 PM >Subject: [AccessD] Duplicate AutoNumbers > > > > Trouble call from users: > > > > Enter a name in search combo and a record from 3 years ago with a > > different > > name shows up. > > Have a look at the table. I have 30 records duplicating the Autonumber > > PK. > > She's gone back a bit over 3 years. AN was at 17,000 and is now > > duplicating > > rows from 7474 after a corrupt record with AN 2759985. Corrupt record >has > > text with characters I've never seen before and several foreign keys > > showing > > 7474 and one showing 1677749760 (normal range of values from 0 through >3). > > > > Several of these duplicate records are subsequent to our last > > compact/repair. Now I must fix the records and divide the child > > records between the proper parents. Good thing there are lots of > > backups so I can match the related records to the original parents. > > What a waste of time. > > > > Ciao > > J?rgen Welz > > Edmonton, Alberta > > jwelz 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 >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 7 20:32:16 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 7 Feb 2006 21:32:16 -0500 Subject: [AccessD] Duplicate AutoNumbers In-Reply-To: Message-ID: <00dd01c62c57$e10b7840$647aa8c0@ColbyM6805> Is it an autonumber or just an incrementing long? And if you look in the indexes, is there an index called PK and is that index Unique (yes, no duplicates)? Is this field plainly marked as the PK with the little key symbol? Or are you saying that a combination of two fields is the PK? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J??rgen Welz Sent: Tuesday, February 07, 2006 9:06 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Duplicate AutoNumbers John No holes. If you sort on the AN PK field, they sit there in nice neat pairs somewhere below the middle of the table. I ran a: CurrentDb.Execute ("Insert Into tblEstimate (ID, EstimateID) Values (16876, 16876)") from the immediate window to correctly set the AN and verified that new records are added with subsequent AN's. I had two fields, both indexed unique for the purposes of a custom replication system that used a global offset number depending on the machine where the record was edited or added. When records are added, the 2nd value is the PK plus an offset to determine which machine the record was added/edited from. There are no duplications in the offset field, only the AN field. What's really annoying is, a person will enter a new record (not in list) and when they attempt to look it up with the same combo, it displays the record from three years ago with the same AN PK. The new record displays in the search combo and looks up the value in the hidden 1st column in the combo. I use single record recordsets. In the after update of the search combo, code sets the form recordsource to: "Select * From tblEstimate Where EstimateID = " & Me.cboLookup Both the old and new Names of the estimates appear in the search combo, but both display the first record matching the duplicated value in the combo. Oh well. I'll fix the data tonight once everyone gets out of the database. Ciao J|rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "John Colby" > >It can accept the "duplicate" if the original was deleted, i.e. if >there is a "hole" in the sequence. > > >John W. Colby >www.ColbyConsulting.com > > >-----Original Message----- > >I had something similar a couple of weeks ago, new records were being >assigned AutoNumber values that already existed. However the unique >index of the field still kicked in and threw a duplicate value error, >so I was able to spot exactly when it happened and fix it. The cure was >to get everyone out of the front-end and Compact/Repair the back-end. > >Now how your app is managing to accept the duplicate values is another >question. Sounds like the index is so corrupt that it's lost it's >Unique setting too. I'd try the compacting method first. Then open the >table directly in the back end and add a new record, just to see what >the AutoNumber value looks like. > >Oh and William regarding your comment " which is one reason why you >can't trust them where audit sequences are required"... > >Tut Tut!!! Autonumbers are not supposed to be used for audit sequences, >that would be assigning a meaning to them instead of just using them to >identify a row in the table, yada, yada, yada. > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >Hindman >Sent: Tuesday, February 07, 2006 5:17 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Duplicate AutoNumbers > > >...huh? ...how are you getting DUPLICATE autonumber pk's ...does the >field not require a unique an? ...I know that a corrupt mdb can restart >an's on unused numbers which is one reason why you can't trust them >where audit sequences are required ...but duplicates are new ...and >damn scary :( > >William > >----- Original Message ----- >From: "J??rgen Welz" >To: >Sent: Tuesday, February 07, 2006 4:54 PM >Subject: [AccessD] Duplicate AutoNumbers > > > > Trouble call from users: > > > > Enter a name in search combo and a record from 3 years ago with a > > different name shows up. > > Have a look at the table. I have 30 records duplicating the > > Autonumber PK. > > She's gone back a bit over 3 years. AN was at 17,000 and is now > > duplicating rows from 7474 after a corrupt record with AN 2759985. > > Corrupt record >has > > text with characters I've never seen before and several foreign keys > > showing > > 7474 and one showing 1677749760 (normal range of values from 0 > > through >3). > > > > Several of these duplicate records are subsequent to our last > > compact/repair. Now I must fix the records and divide the child > > records between the proper parents. Good thing there are lots of > > backups so I can match the related records to the original parents. > > What a waste of time. > > > > Ciao > > J|rgen Welz > > Edmonton, Alberta > > jwelz 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 >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From jwelz at hotmail.com Tue Feb 7 21:45:06 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 07 Feb 2006 20:45:06 -0700 Subject: [AccessD] Duplicate AutoNumbers In-Reply-To: <00dd01c62c57$e10b7840$647aa8c0@ColbyM6805> Message-ID: Index Name: PrimaryKey Field Name: EstimateID Sort Order: Ascending Properties: Primary: Yes Unique: Yes Ignore Nulls: No The field I mentioned named 'ID' is my replication synch field and is also indexed unique, no duplicates and is equal to the AN plus an offset. A2k3 using A2k type BE. This database survived a compact & repair leaving dupes. I had to reseed the AN at a higher number using the line of code I quoted in an earlier post. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "John Colby" >Is it an autonumber or just an incrementing long? And if you look in the >indexes, is there an index called PK and is that index Unique (yes, no >duplicates)? > >Is this field plainly marked as the PK with the little key symbol? Or are >you saying that a combination of two fields is the PK? > >John W. Colby >www.ColbyConsulting.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J??rgen Welz >Sent: Tuesday, February 07, 2006 9:06 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Duplicate AutoNumbers > >John > >No holes. If you sort on the AN PK field, they sit there in nice neat >pairs >somewhere below the middle of the table. I ran a: > >CurrentDb.Execute ("Insert Into tblEstimate (ID, EstimateID) Values (16876, >16876)") > >from the immediate window to correctly set the AN and verified that new >records are added with subsequent AN's. I had two fields, both indexed >unique for the purposes of a custom replication system that used a global >offset number depending on the machine where the record was edited or >added. > > When records are added, the 2nd value is the PK plus an offset to >determine which machine the record was added/edited from. There are no >duplications in the offset field, only the AN field. > >What's really annoying is, a person will enter a new record (not in list) >and when they attempt to look it up with the same combo, it displays the >record from three years ago with the same AN PK. The new record displays >in >the search combo and looks up the value in the hidden 1st column in the >combo. I use single record recordsets. In the after update of the search >combo, code sets the form recordsource to: > >"Select * From tblEstimate Where EstimateID = " & Me.cboLookup > >Both the old and new Names of the estimates appear in the search combo, but >both display the first record matching the duplicated value in the combo. > >Oh well. I'll fix the data tonight once everyone gets out of the database. > >Ciao >J|rgen Welz >Edmonton, Alberta >jwelz at hotmail.com > > > > >From: "John Colby" > > > >It can accept the "duplicate" if the original was deleted, i.e. if > >there is a "hole" in the sequence. > > > > > >John W. Colby > >www.ColbyConsulting.com > > > > > >-----Original Message----- > > > >I had something similar a couple of weeks ago, new records were being > >assigned AutoNumber values that already existed. However the unique > >index of the field still kicked in and threw a duplicate value error, > >so I was able to spot exactly when it happened and fix it. The cure was > >to get everyone out of the front-end and Compact/Repair the back-end. > > > >Now how your app is managing to accept the duplicate values is another > >question. Sounds like the index is so corrupt that it's lost it's > >Unique setting too. I'd try the compacting method first. Then open the > >table directly in the back end and add a new record, just to see what > >the AutoNumber value looks like. > > > >Oh and William regarding your comment " which is one reason why you > >can't trust them where audit sequences are required"... > > > >Tut Tut!!! Autonumbers are not supposed to be used for audit sequences, > >that would be assigning a meaning to them instead of just using them to > >identify a row in the table, yada, yada, yada. > > > >Lambert > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > >Hindman > >Sent: Tuesday, February 07, 2006 5:17 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Duplicate AutoNumbers > > > > > >...huh? ...how are you getting DUPLICATE autonumber pk's ...does the > >field not require a unique an? ...I know that a corrupt mdb can restart > >an's on unused numbers which is one reason why you can't trust them > >where audit sequences are required ...but duplicates are new ...and > >damn scary :( > > > >William > > > >----- Original Message ----- > >From: "J??rgen Welz" > >To: > >Sent: Tuesday, February 07, 2006 4:54 PM > >Subject: [AccessD] Duplicate AutoNumbers > > > > > > > Trouble call from users: > > > > > > Enter a name in search combo and a record from 3 years ago with a > > > different name shows up. > > > Have a look at the table. I have 30 records duplicating the > > > Autonumber PK. > > > She's gone back a bit over 3 years. AN was at 17,000 and is now > > > duplicating rows from 7474 after a corrupt record with AN 2759985. > > > Corrupt record > >has > > > text with characters I've never seen before and several foreign keys > > > showing > > > 7474 and one showing 1677749760 (normal range of values from 0 > > > through > >3). > > > > > > Several of these duplicate records are subsequent to our last > > > compact/repair. Now I must fix the records and divide the child > > > records between the proper parents. Good thing there are lots of > > > backups so I can match the related records to the original parents. > > > What a waste of time. > > > > > > Ciao > > > J|rgen Welz > > > Edmonton, Alberta > > > jwelz 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 > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >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 7 22:22:18 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 7 Feb 2006 23:22:18 -0500 Subject: [AccessD] Duplicate AutoNumbers In-Reply-To: Message-ID: <000f01c62c67$40166160$647aa8c0@ColbyM6805> You might want to copy the table out to an independent container, strip off the additional fields, test to see if it still happens, and if so, send to MS to analyze. Likely after moving out of the current BE it will work just fine, but you never know. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J??rgen Welz Sent: Tuesday, February 07, 2006 10:45 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Duplicate AutoNumbers Index Name: PrimaryKey Field Name: EstimateID Sort Order: Ascending Properties: Primary: Yes Unique: Yes Ignore Nulls: No The field I mentioned named 'ID' is my replication synch field and is also indexed unique, no duplicates and is equal to the AN plus an offset. A2k3 using A2k type BE. This database survived a compact & repair leaving dupes. I had to reseed the AN at a higher number using the line of code I quoted in an earlier post. Ciao J|rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "John Colby" Is it an autonumber or >just an incrementing long? And if you look in the indexes, is there an >index called PK and is that index Unique (yes, no duplicates)? > >Is this field plainly marked as the PK with the little key symbol? Or >are you saying that a combination of two fields is the PK? > >John W. Colby >www.ColbyConsulting.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JCSent: Tuesday, February 07, 2006 9:06 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Duplicate AutoNumbers > >John > >No holes. If you sort on the AN PK field, they sit there in nice neat >pairs somewhere below the middle of the table. I ran a: > >CurrentDb.Execute ("Insert Into tblEstimate (ID, EstimateID) Values >(16876, >16876)") > >from the immediate window to correctly set the AN and verified that new >records are added with subsequent AN's. I had two fields, both indexed >unique for the purposes of a custom replication system that used a >global offset number depending on the machine where the record was >edited or added. > > When records are added, the 2nd value is the PK plus an offset to >determine which machine the record was added/edited from. There are no >duplications in the offset field, only the AN field. > >What's really annoying is, a person will enter a new record (not in >list) and when they attempt to look it up with the same combo, it >displays the record from three years ago with the same AN PK. The new >record displays in the search combo and looks up the value in the >hidden 1st column in the combo. I use single record recordsets. In >the after update of the search combo, code sets the form recordsource >to: > >"Select * From tblEstimate Where EstimateID = " & Me.cboLookup > >Both the old and new Names of the estimates appear in the search combo, >but both display the first record matching the duplicated value in the combo. > >Oh well. I'll fix the data tonight once everyone gets out of the database. > >Ciao >J|rgen Welz >Edmonton, Alberta >jwelz at hotmail.com > > > > >From: "John Colby" > > > >It can accept the "duplicate" if the original was deleted, i.e. if > >there is a "hole" in the sequence. > > > > > >John W. Colby > >www.ColbyConsulting.com > > > > > >-----Original Message----- > > > >I had something similar a couple of weeks ago, new records were being > >assigned AutoNumber values that already existed. However the unique > >index of the field still kicked in and threw a duplicate value error, > >so I was able to spot exactly when it happened and fix it. The cure > >was to get everyone out of the front-end and Compact/Repair the back-end. > > > >Now how your app is managing to accept the duplicate values is > >another question. Sounds like the index is so corrupt that it's lost > >it's Unique setting too. I'd try the compacting method first. Then > >open the table directly in the back end and add a new record, just to > >see what the AutoNumber value looks like. > > > >Oh and William regarding your comment " which is one reason why you > >can't trust them where audit sequences are required"... > > > >Tut Tut!!! Autonumbers are not supposed to be used for audit > >sequences, that would be assigning a meaning to them instead of just > >using them to identify a row in the table, yada, yada, yada. > > > >Lambert > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > >Hindman > >Sent: Tuesday, February 07, 2006 5:17 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Duplicate AutoNumbers > > > > > >...huh? ...how are you getting DUPLICATE autonumber pk's ...does the > >field not require a unique an? ...I know that a corrupt mdb can > >restart an's on unused numbers which is one reason why you can't > >trust them where audit sequences are required ...but duplicates are > >new ...and damn scary :( > > > >William > > > >----- Original Message ----- > >From: "J??rgen Welz" > >To: > >Sent: Tuesday, February 07, 2006 4:54 PM > >Subject: [AccessD] Duplicate AutoNumbers > > > > > > > Trouble call from users: > > > > > > Enter a name in search combo and a record from 3 years ago with a > > > different name shows up. > > > Have a look at the table. I have 30 records duplicating the > > > Autonumber PK. > > > She's gone back a bit over 3 years. AN was at 17,000 and is now > > > duplicating rows from 7474 after a corrupt record with AN 2759985. > > > Corrupt record > >has > > > text with characters I've never seen before and several foreign > > > keys showing > > > 7474 and one showing 1677749760 (normal range of values from 0 > > > through > >3). > > > > > > Several of these duplicate records are subsequent to our last > > > compact/repair. Now I must fix the records and divide the child > > > records between the proper parents. Good thing there are lots of > > > backups so I can match the related records to the original parents. > > > What a waste of time. > > > > > > Ciao > > > J|rgen Welz > > > Edmonton, Alberta > > > jwelz 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 > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From tom.p at piedpiper.com.au Tue Feb 7 23:09:06 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Wed, 8 Feb 2006 13:09:06 +0800 Subject: [AccessD] Problem With Ageing Function References: <000f01c62c67$40166160$647aa8c0@ColbyM6805> Message-ID: <003001c62c6d$c98e6e50$2900a8c0@TOMNEW> Hi All.... I havent posted for a long time....shows I must be learning SOMETHING but I have a problem now I have written the function below to work out ageing in accounts but it does not seem to work properly.....am I missing something stupid? Is it to do with Access date formatting (we in Oz use dd/mm/yyyy) Any help would be apprec iated The Variable (Dte) is of course the date of the transaction calling the function Function Ageing(Dte) Dim D D = Date Dim Curr As Date Curr = DateSerial(Year(D), Month(D), (0)) 'Debug.Print Curr Dim Day30 As Date Day30 = DateSerial(Year(D), Month(D) - 1, (0) + 1) 'Debug.Print Day30 Dim Day60 As Date Day60 = DateSerial(Year(D), Month(D) - 2, (0) + 1) 'Debug.Print Day60 Dim Over As Date Over = DateSerial(Year(D), Month(D) - 1, (0)) 'Debug.Print Over 'Ageing function...... 'Using Todays date as 15/04/2006 then '( 0)Current should be > 31/03/2006 '(30)30Days 1/03/2006 to 31/03/2006 '(60)60Days 1/02/2006 to 28/02/2006 '(90)Over 60Days < 1/02/2006 Select Case Dte Case Is > Curr 'CURRENT AMOUNT Ageing = 0 Case Day30 To Curr ' 30 Days Ageing = 30 Case Day60 To Over ' 60 Days Ageing = 60 Case Is < Over Ageing = 90 Case Else End Select End Function Regards Tom Keatley From stuart at lexacorp.com.pg Wed Feb 8 00:04:55 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 08 Feb 2006 16:04:55 +1000 Subject: [AccessD] Problem With Ageing Function In-Reply-To: <003001c62c6d$c98e6e50$2900a8c0@TOMNEW> Message-ID: <43EA16A7.26632.13F3E92E@stuart.lexacorp.com.pg> What's not working, it seems to work fine for me (using dd/mm/yy here). I put D = DateValue("15/04/2006") in place of D = Date and it gave the correct responses to dates in the ranges set out below. On 8 Feb 2006 at 13:09, Tom Keatley wrote: > Hi All.... > > I havent posted for a long time....shows I must be learning SOMETHING > but I have a problem now > > I have written the function below to work out ageing in accounts but it does > not seem to work properly.....am I missing something stupid? > > Is it to do with Access date formatting (we in Oz use dd/mm/yyyy) > > Any help would be apprec iated > > The Variable (Dte) is of course the date of the transaction calling the > function > > Function Ageing(Dte) > Dim D > D = Date > Dim Curr As Date > Curr = DateSerial(Year(D), Month(D), (0)) > 'Debug.Print Curr > > Dim Day30 As Date > Day30 = DateSerial(Year(D), Month(D) - 1, (0) + 1) > 'Debug.Print Day30 > > Dim Day60 As Date > Day60 = DateSerial(Year(D), Month(D) - 2, (0) + 1) > 'Debug.Print Day60 > > Dim Over As Date > Over = DateSerial(Year(D), Month(D) - 1, (0)) > 'Debug.Print Over > > 'Ageing function...... > 'Using Todays date as 15/04/2006 then > '( 0)Current should be > 31/03/2006 > > '(30)30Days 1/03/2006 to 31/03/2006 > '(60)60Days 1/02/2006 to 28/02/2006 > '(90)Over 60Days < 1/02/2006 > > Select Case Dte > Case Is > Curr 'CURRENT AMOUNT > Ageing = 0 > Case Day30 To Curr ' 30 Days > Ageing = 30 > Case Day60 To Over ' 60 Days > Ageing = 60 > Case Is < Over > Ageing = 90 > Case Else > End Select > > End Function > > Regards > > Tom Keatley > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From pcs at azizaz.com Wed Feb 8 06:45:23 2006 From: pcs at azizaz.com (Borge Hansen) Date: Wed, 8 Feb 2006 22:45:23 +1000 Subject: [AccessD] Email - User interface for the runtime version of Total Access Emailer References: <43EA16A7.26632.13F3E92E@stuart.lexacorp.com.pg> Message-ID: <016901c62cad$87a96db0$fa10a8c0@Albatross> Hi all.... I am looking into the runtime version features of Total Access Emailer (2002/2003).... A lot of the features available in the interactive (full) version is not available in the runtime... Has anyone hand rolled a user interface that replicates some or most of the interactive features of the full version? I am going down the path of using TAE as I need the ready made features of merging fields from the source dataset into the master HTML email, in order to produce 'personalized' HTML emails... Thanks to all who helped me out with various issues last year.... Regards borge gold coast, australia From dw-murphy at cox.net Wed Feb 8 11:49:40 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 8 Feb 2006 09:49:40 -0800 Subject: [AccessD] Email - User interface for the runtime version of TotalAccess Emailer In-Reply-To: <016901c62cad$87a96db0$fa10a8c0@Albatross> Message-ID: <000001c62cd8$0aa85580$0200a8c0@murphyf3vdfepi> Borge, Have not used TAE, but did build my own e-mail functionality using some ideas I got from Erwin Craps a couple of weeks ago on this list. The functionality depends on Outlook being on the users machine since it uses automation. I set it up using late binding and have tested it on several machines with different versions of Office in runtime configuration. Worked well. Look in the archives under "Outlook automation - use a template for a message" Hope that helps. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: Wednesday, February 08, 2006 4:45 AM To: Access Developers discussion and problem solving Subject: [AccessD] Email - User interface for the runtime version of TotalAccess Emailer Hi all.... I am looking into the runtime version features of Total Access Emailer (2002/2003).... A lot of the features available in the interactive (full) version is not available in the runtime... Has anyone hand rolled a user interface that replicates some or most of the interactive features of the full version? I am going down the path of using TAE as I need the ready made features of merging fields from the source dataset into the master HTML email, in order to produce 'personalized' HTML emails... Thanks to all who helped me out with various issues last year.... Regards borge gold coast, australia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Wed Feb 8 12:53:16 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 8 Feb 2006 10:53:16 -0800 Subject: [AccessD] Field Entry question Message-ID: <000a01c62ce0$ee3dc5c0$6701a8c0@HPLaptop> I have a subform based on the following sql statement SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, Left([Memo_Key],5) AS IncNum FROM 20ACCTEXT; When I try to enter a new record I get an error saying IncNum (a hidden field used as link to parent records) is an expression and con not be edited. If I manually clear the two errors generated everything continues ok. Is there a way to suppress the two errors. Thanks Joe Hecht jmhecht at earthlink.net From cfoust at infostatsystems.com Wed Feb 8 13:38:04 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 8 Feb 2006 11:38:04 -0800 Subject: [AccessD] Field Entry question Message-ID: You mention two errors but only describe one. IncNum *is* a calculated field on the subform, so how are you using it exactly that triggers the error? How is memo_key getting populated? Since you've defined IncNum as the left 5 characters of Memo_key (which had better have at least 5 chars or you're in trouble), Memo_key has to be populated before you can work with IncNum. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 10:53 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Field Entry question I have a subform based on the following sql statement SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, Left([Memo_Key],5) AS IncNum FROM 20ACCTEXT; When I try to enter a new record I get an error saying IncNum (a hidden field used as link to parent records) is an expression and con not be edited. If I manually clear the two errors generated everything continues ok. Is there a way to suppress the two errors. Thanks Joe Hecht jmhecht at earthlink.net -- 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 8 13:43:29 2006 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 8 Feb 2006 11:43:29 -0800 (PST) Subject: [AccessD] Field Entry question In-Reply-To: <000a01c62ce0$ee3dc5c0$6701a8c0@HPLaptop> Message-ID: <20060208194329.41265.qmail@web33103.mail.mud.yahoo.com> Change the SQL of the form to SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, [Memo_Key] FROM 20ACCTEXT; Then on your subform add a text box and add set the Control Source property to Left([Memo_Key],5) and set the caption of this text box's lable to IncNum Joe Hecht wrote: I have a subform based on the following sql statement SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, Left([Memo_Key],5) AS IncNum FROM 20ACCTEXT; When I try to enter a new record I get an error saying IncNum (a hidden field used as link to parent records) is an expression and con not be edited. If I manually clear the two errors generated everything continues ok. Is there a way to suppress the two errors. Thanks Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! From Gustav at cactus.dk Wed Feb 8 13:47:14 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 08 Feb 2006 20:47:14 +0100 Subject: [AccessD] Problem With Ageing Function Message-ID: Hi Tom Try: Function Ageing(Dte As Date) and pass a variable of datatype DateTime or specify US format: #m/d/yyyy# lngResult = Ageing(#4/15/2006#) /gustav >>> tom.p at piedpiper.com.au 08-02-2006 06:09:06 >>> Hi All.... I havent posted for a long time....shows I must be learning SOMETHING but I have a problem now I have written the function below to work out ageing in accounts but it does not seem to work properly.....am I missing something stupid? Is it to do with Access date formatting (we in Oz use dd/mm/yyyy) Any help would be apprec iated The Variable (Dte) is of course the date of the transaction calling the function Function Ageing(Dte) Dim D D = Date Dim Curr As Date Curr = DateSerial(Year(D), Month(D), (0)) 'Debug.Print Curr Dim Day30 As Date Day30 = DateSerial(Year(D), Month(D) - 1, (0) + 1) 'Debug.Print Day30 Dim Day60 As Date Day60 = DateSerial(Year(D), Month(D) - 2, (0) + 1) 'Debug.Print Day60 Dim Over As Date Over = DateSerial(Year(D), Month(D) - 1, (0)) 'Debug.Print Over 'Ageing function...... 'Using Todays date as 15/04/2006 then '( 0)Current should be > 31/03/2006 '(30)30Days 1/03/2006 to 31/03/2006 '(60)60Days 1/02/2006 to 28/02/2006 '(90)Over 60Days < 1/02/2006 Select Case Dte Case Is > Curr 'CURRENT AMOUNT Ageing = 0 Case Day30 To Curr ' 30 Days Ageing = 30 Case Day60 To Over ' 60 Days Ageing = 60 Case Is < Over Ageing = 90 Case Else End Select End Function Regards Tom Keatley From bheid at appdevgrp.com Wed Feb 8 13:50:08 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 8 Feb 2006 14:50:08 -0500 Subject: [AccessD] [SPAM SUSPECT] Field Entry question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3BD1E@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F44@ADGSERVER> Just see what the error number(s) are and in your error handler so a "resume next" if the err.number is one of those values. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [SPAM SUSPECT] [AccessD] Field Entry question Importance: Low I have a subform based on the following sql statement SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, Left([Memo_Key],5) AS IncNum FROM 20ACCTEXT; When I try to enter a new record I get an error saying IncNum (a hidden field used as link to parent records) is an expression and con not be edited. If I manually clear the two errors generated everything continues ok. Is there a way to suppress the two errors. Thanks Joe Hecht jmhecht at earthlink.net From jmhecht at earthlink.net Wed Feb 8 13:53:48 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 8 Feb 2006 11:53:48 -0800 Subject: [AccessD] [SPAM SUSPECT] Field Entry question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D34F44@ADGSERVER> Message-ID: <001001c62ce9$61443560$6701a8c0@HPLaptop> Bobby, I do not think the error number shows. How can I get it? Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, February 08, 2006 11:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [SPAM SUSPECT] Field Entry question Just see what the error number(s) are and in your error handler so a "resume next" if the err.number is one of those values. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [SPAM SUSPECT] [AccessD] Field Entry question Importance: Low I have a subform based on the following sql statement SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, Left([Memo_Key],5) AS IncNum FROM 20ACCTEXT; When I try to enter a new record I get an error saying IncNum (a hidden field used as link to parent records) is an expression and con not be edited. If I manually clear the two errors generated everything continues ok. Is there a way to suppress the two errors. Thanks Joe Hecht jmhecht at earthlink.net -- 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 8 13:55:08 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 08 Feb 2006 20:55:08 +0100 Subject: [AccessD] Binding to an ado recordset Message-ID: Hi Jim Oh, I didn't watch that close - it was just the fact if such a form would be updatable I was looking for, and I found that MS had moved the page. I never use ADP files. /gustav >>> accessd at shaw.ca 07-02-2006 19:04:44 >>> Gustav: Isn't that ADP Access DB? ... Microsoft Access is using for the SQL Server database currently open in an Access project (ADP) file... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: February 7, 2006 9:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Binding to an ado recordset This link has changed: http://support.microsoft.com/default.aspx?scid=kb;en-us;281998 /gustav >>> shamil at users.mns.ru 20-12-2005 18:39:36 >>> John, Here is MS KB article: How to bind Microsoft Access forms to ADO recordsets - http://support.microsoft.com/kb/281998 Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Monday, December 19, 2005 11:45 PM Subject: [AccessD] Binding to an ado recordset > Is this possible in Access 2002? 2003 and above? Where did this kick in? > > John W. Colby > www.ColbyConsulting.com From jmhecht at earthlink.net Wed Feb 8 14:03:35 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 8 Feb 2006 12:03:35 -0800 Subject: [AccessD] Field Entry question In-Reply-To: Message-ID: <001101c62cea$beccf3b0$6701a8c0@HPLaptop> Charlotte, Memo key for new fields is manually entered. When I try to add a new record as I type in the first character I get the first error. Error 1:Field can not be updated. Error 2: Defines the problem as IncNum can not update. Neither error returns a number to write code around. Joe Hecht jmhecht 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 08, 2006 11:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Field Entry question You mention two errors but only describe one. IncNum *is* a calculated field on the subform, so how are you using it exactly that triggers the error? How is memo_key getting populated? Since you've defined IncNum as the left 5 characters of Memo_key (which had better have at least 5 chars or you're in trouble), Memo_key has to be populated before you can work with IncNum. Charlotte Foust Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Wed Feb 8 14:15:01 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 8 Feb 2006 12:15:01 -0800 Subject: [AccessD] Help with Syntax error Message-ID: <001201c62cec$5793b600$6701a8c0@HPLaptop> The idea here is get the difference in years between 2 dates. This is a global module. Public Sub yearcalc(date1 As Date, date2 As Date) = int(Datediff("m", date1,date2)/12) End Sub =int line returns syntax error This is the code I want to call the above Private Sub Form_BeforeUpdate(Cancel As Integer) Dim DOB As Date Dim txtIDATE As Date Set DOB = date1 Set txtIDATE = date2 Call yearcalc Thanks Joe Hecht jmhecht at earthlink.net From bheid at appdevgrp.com Wed Feb 8 14:33:03 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 8 Feb 2006 15:33:03 -0500 Subject: [AccessD] [SPAM SUSPECT] Help with Syntax error In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3BD47@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F46@ADGSERVER> Joe, Firstly, yearcalc needs to be a function that returns a long (I assume that is what you would want). Public Function yearcalc(date1 As Date, date2 As Date) as long dim lDiff as long ldiff = clng((Datediff("m", date1,date2)/12)) yearcalc=ldiff End Sub The calling code would need to be something like: dim lRet as long lRet=yearcalc(date1,date2) Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 3:15 PM To: 'Access Developers discussion and problem solving' Subject: [SPAM SUSPECT] [AccessD] Help with Syntax error Importance: Low The idea here is get the difference in years between 2 dates. This is a global module. Public Sub yearcalc(date1 As Date, date2 As Date) = int(Datediff("m", date1,date2)/12) End Sub =int line returns syntax error This is the code I want to call the above Private Sub Form_BeforeUpdate(Cancel As Integer) Dim DOB As Date Dim txtIDATE As Date Set DOB = date1 Set txtIDATE = date2 Call yearcalc Thanks Joe Hecht jmhecht at earthlink.net From bheid at appdevgrp.com Wed Feb 8 14:35:48 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 8 Feb 2006 15:35:48 -0500 Subject: [AccessD] [SPAM SUSPECT] Field Entry question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3BD3D@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F47@ADGSERVER> Set a breakpoint in your error handler. Then go to the immediate window (ctl-g) and enter ? err.number and press enter. Or you could add the err.number value to your error handler error message like: msgbox "Error: " & err.number & " - " & err.description & " has occurred.",vbokonly+vbexclamation Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 2:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [SPAM SUSPECT] Field Entry question Bobby, I do not think the error number shows. How can I get it? Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, February 08, 2006 11:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [SPAM SUSPECT] Field Entry question Just see what the error number(s) are and in your error handler so a "resume next" if the err.number is one of those values. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [SPAM SUSPECT] [AccessD] Field Entry question Importance: Low I have a subform based on the following sql statement SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, Left([Memo_Key],5) AS IncNum FROM 20ACCTEXT; When I try to enter a new record I get an error saying IncNum (a hidden field used as link to parent records) is an expression and con not be edited. If I manually clear the two errors generated everything continues ok. Is there a way to suppress the two errors. Thanks Joe Hecht jmhecht 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 DorisH3 at aol.com Wed Feb 8 15:16:31 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Wed, 8 Feb 2006 16:16:31 EST Subject: [AccessD] Need help Message-ID: I apologize ahead of time but I am fairly new to Access and desperately need help. I have a text field called Event number I need to remove the text from position 3 thru 6 and place it into a date field on a form?.can anyone tell me how I can accomplish this task. Thanks for any help extended my way?..D From Lambert.Heenan at AIG.com Wed Feb 8 15:25:07 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 8 Feb 2006 15:25:07 -0600 Subject: [AccessD] Need help Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0359B@xlivmbx21.aig.com> Extracting the text in positions 3 through 6 is easy... txtSomeTextVariableOrSomeTextControl = Mid([Event Number],3,6) But how those four characters translate to a date is another matter. Can you show us some examples of the data that appears in [Event Number]? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DorisH3 at aol.com Sent: Wednesday, February 08, 2006 4:17 PM To: accessd at databaseadvisors.com Subject: [AccessD] Need help I apologize ahead of time but I am fairly new to Access and desperately need help. I have a text field called Event number I need to remove the text from position 3 thru 6 and place it into a date field on a form....can anyone tell me how I can accomplish this task. Thanks for any help extended my way.....D -- 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 8 15:36:53 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 09 Feb 2006 07:36:53 +1000 Subject: [AccessD] Need help In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0359B@xlivmbx21.aig.com> Message-ID: <43EAF115.20992.17492604@stuart.lexacorp.com.pg> On 8 Feb 2006 at 15:25, Heenan, Lambert wrote: > Extracting the text in positions 3 through 6 is easy... > > txtSomeTextVariableOrSomeTextControl = Mid([Event Number],3,6) > Of course you meant to say "Mid([Event Number],3,4)" and just mistyped it :-) -- Stuart From Lambert.Heenan at AIG.com Wed Feb 8 15:49:59 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 8 Feb 2006 16:49:59 -0500 Subject: [AccessD] Need help Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1CD035B5@xlivmbx21.aig.com> Doh!!!! Of course I did! :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, February 08, 2006 4:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Need help On 8 Feb 2006 at 15:25, Heenan, Lambert wrote: > Extracting the text in positions 3 through 6 is easy... > > txtSomeTextVariableOrSomeTextControl = Mid([Event Number],3,6) > Of course you meant to say "Mid([Event Number],3,4)" and just mistyped it :-) -- Stuart -- 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 8 15:50:20 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Wed, 8 Feb 2006 16:50:20 -0500 Subject: [AccessD] Need help In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0359B@xlivmbx21.aig.com> Message-ID: wouldn't it be Mid([Event Number],3,4)? The first number is where to start and the second is how many to take. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, > Lambert > Sent: Wednesday, February 08, 2006 4:25 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Need help > > > Extracting the text in positions 3 through 6 is easy... > > txtSomeTextVariableOrSomeTextControl = Mid([Event Number],3,6) > > But how those four characters translate to a date is another > matter. Can you > show us some examples of the data that appears in [Event Number]? > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DorisH3 at aol.com > Sent: Wednesday, February 08, 2006 4:17 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Need help > > > > > I apologize ahead of time but I am fairly new to Access and desperately > need > help. > I have a text field called Event number I need to remove the text from > position 3 thru 6 and place it into a date field on a form....can anyone > tell me how > I can accomplish this task. Thanks for any help extended my way.....D > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tom.p at piedpiper.com.au Wed Feb 8 17:47:06 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Thu, 9 Feb 2006 07:47:06 +0800 Subject: [AccessD] Problem With Ageing Function Further to..... References: <43EA16A7.26632.13F3E92E@stuart.lexacorp.com.pg> Message-ID: <00a101c62d09$f7fac440$2900a8c0@TOMNEW> Thanks for the replies Stuart and Gustav..... Of course you were right Stuart it WAS working ...After your reply I tried it again with one difference ...I put the date as a string (as you did) "01/01/2006" instead of a date #01/01/2006# and it worked fine .....I havent tried again as a date so I dont know whether that was a problem or maybe the moon was in the wrong plain or my coffee supply was too low . I actually have a suspicion that the test data I was using was all 12 months old which would probably explain why all my ageing came out at 90 days.... as I said .......stupid So now my function works exactly as it should but now brings another problem....... I am using the function in an update query to update the customers transaction file aging wise on the fly as he is accessed, the result is then displayed in a list box on my customer form and also will be used in a statement report once I build it. The UNFORSEEN problem I now have is ...... Say a customer owes a total of $400 which has been incurred over the last 4 months so current = $100 30day = $100 60day = $100 90day = $100 He now pays his account in total in the current month so.... current = $-300 30day = $100 60day = $100 90day = $100 My transaction file is simply invoices as positive amounts and cheques and payments as negative amounts so that the total result is what is owing. How would you normally handle a situation like this. the result is actually accurate but of course this is not how you would display it..... As usual any help is appreciated Regards Tom Keatley From stuart at lexacorp.com.pg Wed Feb 8 18:20:37 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 09 Feb 2006 10:20:37 +1000 Subject: [AccessD] Problem With Ageing Function Further to..... In-Reply-To: <00a101c62d09$f7fac440$2900a8c0@TOMNEW> Message-ID: <43EB1775.27272.17DF0F84@stuart.lexacorp.com.pg> On 9 Feb 2006 at 7:47, Tom Keatley wrote: > Thanks for the replies Stuart and Gustav..... > > Of course you were right Stuart it WAS working ...After your reply I tried > it again with one difference ...I put the date as a string (as you did) > "01/01/2006" instead of a date #01/01/2006# and it worked fine .....I havent > tried again as a date so I dont know whether that was a problem or maybe the > moon was in the wrong plain or my coffee supply was too low . You never know what is going to happen when you use variants for everything. It can really turn around and bite you. 1. Make it a rule to explicitly type ALL variables. 2. It is much easier to keep track if you DIM all the variables in a Sub or Function at the start. 3. Using a naming convention so that you can tell a variables type from its name also makes code a lot easier to follow/debug/modify a year later :-) IN this case, you are using Year(D) and Month(D) multiple times, so for efficiency, I would calculate it once and store it in a variable I would recommend you change your original code to be more like: Function Ageing(Dte as Date) as Long Dim dteD as Date Dim dteCurr As Date Dim dteDay30 As Date Dim dteDay60 As Date Dim dteOver As Date Dimj lngYear as Long Dim lngMonth as Long lngYear = year(Date) lngMonth = month(Date) dteCurr = DateSerial(lngYear, lngMonth, 0) dteDay30 = DateSerial(lngYear, lngMonth - 1, 1) dteDay60 = DateSerial(lngYear, lngMonth - 2, 1) dteOver = DateSerial(lngYear, lngMonth - 1, 0) 'Ageing function...... 'Using Todays date as 15/04/2006 then '( 0)Current should be > 31/03/2006 '(30)30Days 1/03/2006 to 31/03/2006 '(60)60Days 1/02/2006 to 28/02/2006 '(90)Over 60Days < 1/02/2006 Select Case Dte Case Is > dteCurr 'CURRENT AMOUNT Ageing = 0 Case dteDay30 To dteCurr ' 30 Days Ageing = 30 Case dteDay60 To dteOver ' 60 Days Ageing = 60 Case Is < dteOver Ageing = 90 Case Else End Select End Function > > I am using the function in an update query to update the customers > transaction file aging wise on the fly as he is accessed, the result is then > displayed in a list box on my customer form and also will be used in a > statement report once I build it. The UNFORSEEN problem I now have is ...... > > Say a customer owes a total of $400 which has been incurred over the last 4 > months so current = $100 30day = $100 60day = $100 90day = $100 > > He now pays his account in total in the current month so.... > current = $-300 > 30day = $100 > 60day = $100 > 90day = $100 > > My transaction file is simply invoices as positive amounts and cheques and > payments as negative amounts so that the total result is what is owing. How > would you normally handle a situation like this. the result is actually > accurate but of course this is not how you would display it..... > To deal with short payments, payments over multiple periods etc, you need store "Balance Outstanding" against each Invoice. At the time you create the invoice, the balance outstanding is equal to the invoice amount. When you process a payment, you need to credit invoices up to the amount of the payment, starting with the oldest invoice. Then run your aging routine on Balance Outstanding only on invoices with a balance and ignore payment records. -- Stuart From erbachs at gmail.com Wed Feb 8 20:36:21 2006 From: erbachs at gmail.com (Steve Erbach) Date: Wed, 8 Feb 2006 20:36:21 -0600 Subject: [AccessD] Basic Query Design In-Reply-To: References: <39cb22f30602061806p54f48b87p9d996ddec7e417d4@mail.gmail.com> Message-ID: <39cb22f30602081836k3516ccd0vd9262671041bc089@mail.gmail.com> J?rgen, The answer is: relational division. I went over to SQL Server Central and asked a basic question about how to accomplish the type of query you wanted, and Joe Celko, author of SQL for Smarties, suggested that I look up relational division in the discussion forums and elsewhere. One resource I found ( http://www.cs.arizona.edu/people/mccann/research/divpresentation.pdf ) presented this method: SELECT tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName FROM tblEmployeeCourse INNER JOIN tblEmployee ON tblEmployeeCourse.EmployeeID = tblEmployee.EmployeeID WHERE CourseID In (1,2,4,5) GROUP BY tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName HAVING Count(tblEmployee.EmployeeID) = 4 ORDER BY FirstName & ' ' & LastName SELECT DISTINCT EmployeeID FROM tblEmployeeCourse AS EC1 WHERE NOT EXISTS ( SELECT CourseID FROM tblCourse WHERE CourseID In (1,2,4,5) AND NOT EXISTS ( SELECT * FROM tblEmployeeCourse AS EC2 WHERE EC2.CourseID = tblCourse.CourseID AND EC2.EmployeeID = EC1.EmployeeID)) Kind of a double-negative. I'm assuming that your Course table is called tblCourse. One of the other three methods mentioned in the PDF file is along the same COUNT lines as the solution Stuart suggested to you. Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security On 2/6/06, J?rgen Welz wrote: > Hey Steve: > > The actual query is a bit more complex than posted as it takes into account > certification expiry dates and may mix in numerous additional Inclusive and > Exclusionary conditions, several driven by multi select list boxes (1 > through 8 regional offices, 1 or more of several categories of employee...). > The question I posed was to address one aspect of a search that I provide > for every major form. I won't have a problem with dupliicate courses in my > 'count'. If I mapped bit flags to categories I'd have no trouble > dynamically setting query by join SQL and denormalizing everything to the > Employee table with a few external lookups. But I digress. > > Getting back to how one would integrate this with a SQL Server BE; the SQL > string rowsource for a hit list may join anywhere from 0 to 8 additional > tables in any combination, an In(list) may require a list of values subquery > or nested subqueries and require in/exclusive conditions on the main table > or any of the related tables. How does anyone to something like this > without resorting to dynamic SQL? Do you have 60 stored parameter stored > procedures that you substitute in as the rowsource as required? > > Stuart's posted solution provides a reasonable approach to cleaning up the > string generation code I have been using to find matches for meeting 'every > one' in a list on a single field. I have yet to run some performance tests > but expect to do so over the next couple of days. > > Anyone else have an idea of another way of doing this before I run some > testing? > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > > > >From: Steve Erbach > > > >J?rgen, > > > >I've been working on this off-and-on today. Your query reminded me > >that a database I used to work with, Paradox, contained set operations > >for this very thing: Which employees have taken every one of the > >following list of courses? > > > >I thought at first that the ALL keyword might do the trick in SQL, but > >no such luck. It doesn't look like there's a straightforward > >set-oriented way to perform this query in SQL. It would have to be > >something like what Stuart showed you. Only thing I wonder about with > >that query is if an employee took one of the courses more than once > >but skipped one of the ones you're looking for. The COUNT would be > >the same, but your criteria would not be met. > > > >Steve Erbach > >Neenah, WI From stuart at lexacorp.com.pg Wed Feb 8 21:04:11 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 09 Feb 2006 13:04:11 +1000 Subject: [AccessD] Basic Query Design In-Reply-To: <39cb22f30602081836k3516ccd0vd9262671041bc089@mail.gmail.com> References: Message-ID: <43EB3DCB.1966.1874CDCE@stuart.lexacorp.com.pg> On 8 Feb 2006 at 20:36, Steve Erbach wrote: > SELECT DISTINCT EmployeeID > FROM tblEmployeeCourse AS EC1 > WHERE NOT EXISTS > ( SELECT CourseID FROM tblCourse > WHERE CourseID In (1,2,4,5) AND NOT EXISTS > ( SELECT * FROM tblEmployeeCourse AS EC2 > WHERE EC2.CourseID = tblCourse.CourseID > AND EC2.EmployeeID = EC1.EmployeeID)) > Ouch! My head hurts! -- Stuart From DorisH3 at aol.com Wed Feb 8 21:20:28 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Wed, 8 Feb 2006 22:20:28 EST Subject: [AccessD] Need help Message-ID: <1ea.4c6b3723.311c0efc@aol.com> The event number field would look like this 22110906 A....I need to extract 110906 and place it into a date field which would be a short date 11/09/2006. D From stuart at lexacorp.com.pg Wed Feb 8 21:30:26 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 09 Feb 2006 13:30:26 +1000 Subject: [AccessD] Need help In-Reply-To: <1ea.4c6b3723.311c0efc@aol.com> Message-ID: <43EB43F2.5330.188CD7AD@stuart.lexacorp.com.pg> On 8 Feb 2006 at 22:20, DorisH3 at aol.com wrote: > The event number field would look like this 22110906 A....I need to extract > 110906 and place it into a date field which would be a short date > 11/09/2006. > Assuming 110906 is mmddyy, the safest way would be txtEventDate = DateSerial(Val(Right$([Event Number],2)), _ Val(Left$([Event Number],2)), _ Val(Mid$([Event Number],3,2))) Then you can format txtEvent as "mm/dd/yy" or any other format you want. -- Stuart From bchacc at san.rr.com Wed Feb 8 21:36:09 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 08 Feb 2006 19:36:09 -0800 Subject: [AccessD] [Fwd: Project Notification] Message-ID: <43EAB8A9.8030204@san.rr.com> Any body work with Guru.com? Anybody have any success with it? Are we competing with programmers in India, Russia, and China? Rocky -------- Original Message -------- Subject: Project Notification Date: Wed, 08 Feb 2006 01:19:26 -0500 (EST) From: Guru.com To: bchacc at san.rr.com Guru.com : Project Notification ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dear Rocky: Within the last 24 hours, employers posted one or more projects that match your profile(s). How to find the below project(s): ---Sign in to your professional account: http://www.guru.com/pro/login.cfm ---On the My Admin page, click the "Project Notifications" link. Want to stop receiving Project Notification emails? Learn how here: http://www.guru.com/help/pro/invites.cfm#turn_off --------------------------------------------------- Profile ID: 611628 matches... Project ID: 192572 Title: Commission Calculation program Category: Programming / Software / Database Development Description: We are a mortgage company where we hire Loan Agents on commission, based on funded loans. We need a system that will calculate our loan agent's commission according to percentage, deductions, fees, etc., We need to maintain a database of all Loan Agents and their earned commission. We need to maintance a database of all loans funded. We need to be able to generate reports on specific loan commissions on particular time frame. --------------------------------------------------- --------------------------------------------------- Profile ID: 611628 matches... Project ID: 192628 Title: VBA/Access Function Category: Programming / Software / Database Development Description: I need an VBA function to be used in an Access database that will compare two strings. If the strings are match with only a two character difference the function should return "True". If the strings vary by more than a two character difference the function should return false. The strings will have no punctuation or spaces. I NEED THIS NO LATER THAN 02/08/2006 5pm CST. Examples: Smith101MainStreet & Smiht101MainStreet = True Smit101MainStreet & Smith101MainStreet = True Smith10111MainStreet & Smith101MainStreet = True Smit101ManStreet & Smith101MainStreet = True Smith222MainStreet & Smith101MainStreet = False Smith101MaintainStreet & Smith101MainStreet = False Smoth101ManyStreet & Smith101MainStreet = False I will pay $45 for this function. I also have a large amount of similar work and Access development that I would happily give to someone that can show me quality and on time results. --------------------------------------------------- _______________________________________________________ This Project Notification will be deleted from your account in two weeks. Avoid deletion, and save a copy to your Watch List. - Sign in to your professional account: http://www.guru.com/pro/login.cfm - On the My Admin page, click the "Project Notifications" link. - Click the "Add to Watch List" button. _______________________________________________________ Payment Protection Tip: Always remember to complete your transactions on Guru.com. It's the safest way to sell services. We offer two levels of payment protection through our mandatory SafePay payment system-- Escrow and Invoicing. PAY PROTECTION LEVEL----PAYMENT OPTION ---------------------------------------------- Highest Protection------SafePay Escrow High Protection---------SafePay Invoicing Because getting paid outside of SafePay is a high-risk transaction, it is a violation of our Terms of Service. All payments from employers on Guru.com must go through either SafePay Escrow or Invoicing. In addition, receiving payment through SafePay is the only way to build money-earned and feedback statistics, which attract future employers. *** More SafePay Information: http://www.guru.com/help/pro/invoice.cfm _______________________________________________________ Project Bidding Tips: - How to determine a time and cost estimate: http://www.guru.com/resources/pro/fair_estimate.cfm - View a sample proposal: http://www.guru.com/resources/pro/sample_proposal.cfm _______________________________________________________ Tips on How to Protect Yourself: - Smart Working Tips (PDF): http://www.guru.com/resources/pro/pdf/smart_working.pdf - How to identify and avoid fraudulent employers: http://www.guru.com/help/pro/selection.cfm#beaware _______________________________________________________ Want to receive SafePay payments fast? Sign up for our free Direct Deposit payment service now! More info: http://www.guru.com/help/pro/payment.cfm#gurupay_dd Sincerely, Guru.com Team Please do not reply to this email. This mailbox is not monitored and you will not receive a response. For assistance, please refer to our Help Center (http://www.guru.com/help/pro/professionals.cfm) or our Contact Us page (http://www.guru.com/pro/contact.cfm). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Want to sign in? http://www.guru.com/pro/login.cfm Forgot your Username and/or Password? http://www.guru.com/pro/login_lostpassword.cfm Need assistance? http://www.guru.com/pro/contact.cfm -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jwcolby at ColbyConsulting.com Wed Feb 8 21:58:22 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 8 Feb 2006 22:58:22 -0500 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: <43EAB8A9.8030204@san.rr.com> Message-ID: <002501c62d2d$14d80f00$647aa8c0@ColbyM6805> Rocky, I do work with them. I have one client that I got through them, but I suspect only because they wanted to actually meet to discuss it and they were down on the coast. I have actually bid on perhaps 50 projects and landed exactly one. However if you watch what goes by on that site you can get a good laugh. "I need a spider to scan the major bookseller web sites, looking for my books. I need it to find the lowest price, then bid one cent below that lowest price. Email me the results. And the total cost for this project must be $75 or less". Uhhhh... OK. Idiot. Unfortunately quite typical. So yes, we are competing with India, Russia and China. OTOH, we also probably have list members in India, and Shamil is in Russia. China is less likely. Guru.com claim that less than 30% of all the contracts go overseas, but you have heard the old saw about "liars, damned liars, and statisticians". My guess is that less than 40% of all contracts even get awarded, with 75% of them going overseas. 75% of 40% = 30%. And in spite of it all, I still respond if they sound like they have a clue (which isn't all THAT often). 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 08, 2006 10:36 PM To: Access Developers discussion and problem solving Subject: [AccessD] [Fwd: Project Notification] Any body work with Guru.com? Anybody have any success with it? Are we competing with programmers in India, Russia, and China? Rocky -------- Original Message -------- Subject: Project Notification Date: Wed, 08 Feb 2006 01:19:26 -0500 (EST) From: Guru.com To: bchacc at san.rr.com Guru.com : Project Notification ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dear Rocky: Within the last 24 hours, employers posted one or more projects that match your profile(s). How to find the below project(s): ---Sign in to your professional account: http://www.guru.com/pro/login.cfm ---On the My Admin page, click the "Project Notifications" link. Want to stop receiving Project Notification emails? Learn how here: http://www.guru.com/help/pro/invites.cfm#turn_off --------------------------------------------------- Profile ID: 611628 matches... Project ID: 192572 Title: Commission Calculation program Category: Programming / Software / Database Development Description: We are a mortgage company where we hire Loan Agents on commission, based on funded loans. We need a system that will calculate our loan agent's commission according to percentage, deductions, fees, etc., We need to maintain a database of all Loan Agents and their earned commission. We need to maintance a database of all loans funded. We need to be able to generate reports on specific loan commissions on particular time frame. --------------------------------------------------- --------------------------------------------------- Profile ID: 611628 matches... Project ID: 192628 Title: VBA/Access Function Category: Programming / Software / Database Development Description: I need an VBA function to be used in an Access database that will compare two strings. If the strings are match with only a two character difference the function should return "True". If the strings vary by more than a two character difference the function should return false. The strings will have no punctuation or spaces. I NEED THIS NO LATER THAN 02/08/2006 5pm CST. Examples: Smith101MainStreet & Smiht101MainStreet = True Smit101MainStreet & Smith101MainStreet = True Smith10111MainStreet & Smith101MainStreet = True Smit101ManStreet & Smith101MainStreet = True Smith222MainStreet & Smith101MainStreet = False Smith101MaintainStreet & Smith101MainStreet = False Smoth101ManyStreet & Smith101MainStreet = False I will pay $45 for this function. I also have a large amount of similar work and Access development that I would happily give to someone that can show me quality and on time results. --------------------------------------------------- _______________________________________________________ This Project Notification will be deleted from your account in two weeks. Avoid deletion, and save a copy to your Watch List. - Sign in to your professional account: http://www.guru.com/pro/login.cfm - On the My Admin page, click the "Project Notifications" link. - Click the "Add to Watch List" button. _______________________________________________________ Payment Protection Tip: Always remember to complete your transactions on Guru.com. It's the safest way to sell services. We offer two levels of payment protection through our mandatory SafePay payment system-- Escrow and Invoicing. PAY PROTECTION LEVEL----PAYMENT OPTION ---------------------------------------------- Highest Protection------SafePay Escrow High Protection---------SafePay Invoicing Because getting paid outside of SafePay is a high-risk transaction, it is a violation of our Terms of Service. All payments from employers on Guru.com must go through either SafePay Escrow or Invoicing. In addition, receiving payment through SafePay is the only way to build money-earned and feedback statistics, which attract future employers. *** More SafePay Information: http://www.guru.com/help/pro/invoice.cfm _______________________________________________________ Project Bidding Tips: - How to determine a time and cost estimate: http://www.guru.com/resources/pro/fair_estimate.cfm - View a sample proposal: http://www.guru.com/resources/pro/sample_proposal.cfm _______________________________________________________ Tips on How to Protect Yourself: - Smart Working Tips (PDF): http://www.guru.com/resources/pro/pdf/smart_working.pdf - How to identify and avoid fraudulent employers: http://www.guru.com/help/pro/selection.cfm#beaware _______________________________________________________ Want to receive SafePay payments fast? Sign up for our free Direct Deposit payment service now! More info: http://www.guru.com/help/pro/payment.cfm#gurupay_dd Sincerely, Guru.com Team Please do not reply to this email. This mailbox is not monitored and you will not receive a response. For assistance, please refer to our Help Center (http://www.guru.com/help/pro/professionals.cfm) or our Contact Us page (http://www.guru.com/pro/contact.cfm). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Want to sign in? http://www.guru.com/pro/login.cfm Forgot your Username and/or Password? http://www.guru.com/pro/login_lostpassword.cfm Need assistance? http://www.guru.com/pro/contact.cfm -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Feb 8 22:36:13 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 08 Feb 2006 20:36:13 -0800 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: <002501c62d2d$14d80f00$647aa8c0@ColbyM6805> References: <002501c62d2d$14d80f00$647aa8c0@ColbyM6805> Message-ID: <43EAC6BD.9000409@san.rr.com> Makes sense. The numbers sound right. I can't even compete with programmers in this country let alone overseas where the wage rate is so much lower. Most of the ones I look at are so vaguely worded that I wonder how you can make a reasonable estimate of cost. Rocky John Colby wrote: > Rocky, > > I do work with them. I have one client that I got through them, but I > suspect only because they wanted to actually meet to discuss it and they > were down on the coast. I have actually bid on perhaps 50 projects and > landed exactly one. > > However if you watch what goes by on that site you can get a good laugh. > > "I need a spider to scan the major bookseller web sites, looking for my > books. I need it to find the lowest price, then bid one cent below that > lowest price. Email me the results. And the total cost for this project > must be $75 or less". > > Uhhhh... OK. Idiot. Unfortunately quite typical. > > So yes, we are competing with India, Russia and China. OTOH, we also > probably have list members in India, and Shamil is in Russia. China is less > likely. > > Guru.com claim that less than 30% of all the contracts go overseas, but you > have heard the old saw about "liars, damned liars, and statisticians". My > guess is that less than 40% of all contracts even get awarded, with 75% of > them going overseas. 75% of 40% = 30%. > > And in spite of it all, I still respond if they sound like they have a clue > (which isn't all THAT often). > > 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 08, 2006 10:36 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] [Fwd: Project Notification] > > Any body work with Guru.com? Anybody have any success with it? Are we > competing with programmers in India, Russia, and China? > > Rocky > > > -------- Original Message -------- > Subject: Project Notification > Date: Wed, 08 Feb 2006 01:19:26 -0500 (EST) > From: Guru.com > To: bchacc at san.rr.com > > > > > Guru.com : Project Notification > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Dear Rocky: > > Within the last 24 hours, employers posted one or more projects that match > your profile(s). > > How to find the below project(s): > ---Sign in to your professional account: http://www.guru.com/pro/login.cfm > ---On the My Admin page, click the "Project Notifications" link. > > Want to stop receiving Project Notification emails? > Learn how here: http://www.guru.com/help/pro/invites.cfm#turn_off > --------------------------------------------------- > Profile ID: 611628 matches... > Project ID: 192572 > Title: Commission Calculation program > Category: Programming / Software / Database Development > Description: > We are a mortgage company where we hire Loan Agents on commission, based on > funded loans. > > We need a system that will calculate our loan agent's commission according > to percentage, deductions, fees, etc., > > We need to maintain a database of all Loan Agents and their earned > commission. We need to maintance a database of all loans funded. > > We need to be able to generate reports on specific loan commissions on > particular time frame. > > --------------------------------------------------- > > --------------------------------------------------- > Profile ID: 611628 matches... > Project ID: 192628 > Title: VBA/Access Function > Category: Programming / Software / Database Development > Description: > I need an VBA function to be used in an Access database that will compare > two strings. If the strings are match with only a two character difference > the function should return "True". If the strings vary by more than a two > character difference the function should return false. The strings will > have no punctuation or spaces. I NEED THIS NO LATER THAN 02/08/2006 5pm > CST. > > Examples: > Smith101MainStreet & Smiht101MainStreet = True Smit101MainStreet & > Smith101MainStreet = True Smith10111MainStreet & Smith101MainStreet = True > Smit101ManStreet & Smith101MainStreet = True > > Smith222MainStreet & Smith101MainStreet = False Smith101MaintainStreet & > Smith101MainStreet = False Smoth101ManyStreet & Smith101MainStreet = False > > I will pay $45 for this function. I also have a large amount of similar > work and Access development that I would happily give to someone that can > show me quality and on time results. > > --------------------------------------------------- > > _______________________________________________________ > > This Project Notification will be deleted from your account in two weeks. > Avoid deletion, and save a copy to your Watch List. > - Sign in to your professional account: http://www.guru.com/pro/login.cfm > - On the My Admin page, click the "Project Notifications" link. > - Click the "Add to Watch List" button. > > _______________________________________________________ > > Payment Protection Tip: > > Always remember to complete your transactions on Guru.com. It's the safest > way to sell services. > We offer two levels of payment protection through our mandatory SafePay > payment system-- Escrow and Invoicing. > > PAY PROTECTION LEVEL----PAYMENT OPTION > ---------------------------------------------- > Highest Protection------SafePay Escrow > High Protection---------SafePay Invoicing > > Because getting paid outside of SafePay is a high-risk transaction, it is a > violation of our Terms of Service. All payments from employers on Guru.com > must go through either SafePay Escrow or Invoicing. In addition, receiving > payment through SafePay is the only way to build money-earned and feedback > statistics, which attract future employers. *** More SafePay Information: > http://www.guru.com/help/pro/invoice.cfm > _______________________________________________________ > > Project Bidding Tips: > > - How to determine a time and cost estimate: > http://www.guru.com/resources/pro/fair_estimate.cfm > - View a sample proposal: > http://www.guru.com/resources/pro/sample_proposal.cfm > _______________________________________________________ > > Tips on How to Protect Yourself: > > - Smart Working Tips (PDF): > http://www.guru.com/resources/pro/pdf/smart_working.pdf > - How to identify and avoid fraudulent employers: > http://www.guru.com/help/pro/selection.cfm#beaware > _______________________________________________________ > > > Want to receive SafePay payments fast? Sign up for our free Direct Deposit > payment service now! More info: > http://www.guru.com/help/pro/payment.cfm#gurupay_dd > > > Sincerely, > Guru.com Team > > Please do not reply to this email. This mailbox is not monitored and you > will not receive a response. For assistance, please refer to our Help Center > (http://www.guru.com/help/pro/professionals.cfm) or our Contact Us page > (http://www.guru.com/pro/contact.cfm). > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Want to sign in? http://www.guru.com/pro/login.cfm Forgot your Username > and/or Password? http://www.guru.com/pro/login_lostpassword.cfm > Need assistance? http://www.guru.com/pro/contact.cfm > > > > > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dmcafee at pacbell.net Wed Feb 8 22:59:21 2006 From: dmcafee at pacbell.net (David McAfee) Date: Wed, 8 Feb 2006 20:59:21 -0800 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: <002501c62d2d$14d80f00$647aa8c0@ColbyM6805> Message-ID: I couldn't have said it better myself John. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Wednesday, February 08, 2006 7:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] Rocky, I do work with them. I have one client that I got through them, but I suspect only because they wanted to actually meet to discuss it and they were down on the coast. I have actually bid on perhaps 50 projects and landed exactly one. However if you watch what goes by on that site you can get a good laugh. "I need a spider to scan the major bookseller web sites, looking for my books. I need it to find the lowest price, then bid one cent below that lowest price. Email me the results. And the total cost for this project must be $75 or less". Uhhhh... OK. Idiot. Unfortunately quite typical. So yes, we are competing with India, Russia and China. OTOH, we also probably have list members in India, and Shamil is in Russia. China is less likely. Guru.com claim that less than 30% of all the contracts go overseas, but you have heard the old saw about "liars, damned liars, and statisticians". My guess is that less than 40% of all contracts even get awarded, with 75% of them going overseas. 75% of 40% = 30%. And in spite of it all, I still respond if they sound like they have a clue (which isn't all THAT often). 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 08, 2006 10:36 PM To: Access Developers discussion and problem solving Subject: [AccessD] [Fwd: Project Notification] Any body work with Guru.com? Anybody have any success with it? Are we competing with programmers in India, Russia, and China? Rocky -------- Original Message -------- Subject: Project Notification Date: Wed, 08 Feb 2006 01:19:26 -0500 (EST) From: Guru.com To: bchacc at san.rr.com Guru.com : Project Notification ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dear Rocky: Within the last 24 hours, employers posted one or more projects that match your profile(s). How to find the below project(s): ---Sign in to your professional account: http://www.guru.com/pro/login.cfm ---On the My Admin page, click the "Project Notifications" link. Want to stop receiving Project Notification emails? Learn how here: http://www.guru.com/help/pro/invites.cfm#turn_off --------------------------------------------------- Profile ID: 611628 matches... Project ID: 192572 Title: Commission Calculation program Category: Programming / Software / Database Development Description: We are a mortgage company where we hire Loan Agents on commission, based on funded loans. We need a system that will calculate our loan agent's commission according to percentage, deductions, fees, etc., We need to maintain a database of all Loan Agents and their earned commission. We need to maintance a database of all loans funded. We need to be able to generate reports on specific loan commissions on particular time frame. --------------------------------------------------- --------------------------------------------------- Profile ID: 611628 matches... Project ID: 192628 Title: VBA/Access Function Category: Programming / Software / Database Development Description: I need an VBA function to be used in an Access database that will compare two strings. If the strings are match with only a two character difference the function should return "True". If the strings vary by more than a two character difference the function should return false. The strings will have no punctuation or spaces. I NEED THIS NO LATER THAN 02/08/2006 5pm CST. Examples: Smith101MainStreet & Smiht101MainStreet = True Smit101MainStreet & Smith101MainStreet = True Smith10111MainStreet & Smith101MainStreet = True Smit101ManStreet & Smith101MainStreet = True Smith222MainStreet & Smith101MainStreet = False Smith101MaintainStreet & Smith101MainStreet = False Smoth101ManyStreet & Smith101MainStreet = False I will pay $45 for this function. I also have a large amount of similar work and Access development that I would happily give to someone that can show me quality and on time results. --------------------------------------------------- _______________________________________________________ This Project Notification will be deleted from your account in two weeks. Avoid deletion, and save a copy to your Watch List. - Sign in to your professional account: http://www.guru.com/pro/login.cfm - On the My Admin page, click the "Project Notifications" link. - Click the "Add to Watch List" button. _______________________________________________________ Payment Protection Tip: Always remember to complete your transactions on Guru.com. It's the safest way to sell services. We offer two levels of payment protection through our mandatory SafePay payment system-- Escrow and Invoicing. PAY PROTECTION LEVEL----PAYMENT OPTION ---------------------------------------------- Highest Protection------SafePay Escrow High Protection---------SafePay Invoicing Because getting paid outside of SafePay is a high-risk transaction, it is a violation of our Terms of Service. All payments from employers on Guru.com must go through either SafePay Escrow or Invoicing. In addition, receiving payment through SafePay is the only way to build money-earned and feedback statistics, which attract future employers. *** More SafePay Information: http://www.guru.com/help/pro/invoice.cfm _______________________________________________________ Project Bidding Tips: - How to determine a time and cost estimate: http://www.guru.com/resources/pro/fair_estimate.cfm - View a sample proposal: http://www.guru.com/resources/pro/sample_proposal.cfm _______________________________________________________ Tips on How to Protect Yourself: - Smart Working Tips (PDF): http://www.guru.com/resources/pro/pdf/smart_working.pdf - How to identify and avoid fraudulent employers: http://www.guru.com/help/pro/selection.cfm#beaware _______________________________________________________ Want to receive SafePay payments fast? Sign up for our free Direct Deposit payment service now! More info: http://www.guru.com/help/pro/payment.cfm#gurupay_dd Sincerely, Guru.com Team Please do not reply to this email. This mailbox is not monitored and you will not receive a response. For assistance, please refer to our Help Center (http://www.guru.com/help/pro/professionals.cfm) or our Contact Us page (http://www.guru.com/pro/contact.cfm). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Want to sign in? http://www.guru.com/pro/login.cfm Forgot your Username and/or Password? http://www.guru.com/pro/login_lostpassword.cfm Need assistance? http://www.guru.com/pro/contact.cfm -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at ColbyConsulting.com Wed Feb 8 23:33:11 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Thu, 9 Feb 2006 00:33:11 -0500 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: <43EAC6BD.9000409@san.rr.com> Message-ID: <002b01c62d3a$51e14a30$647aa8c0@ColbyM6805> >Most of the ones I look at are so vaguely worded that I wonder how you can make a reasonable estimate of cost. And the answer is, I don't make an estimate of cost, I quote my hourly rate plus expenses, with a disclaimer that their spec is so vaguely worded that a fixed quote is not possible. Of course my hourly rate is about 5-10 times that of an Indian responding so if these companies are inclined to do that I can't compete. I actually got a phone call the other night from a company in India, quoting me $12 / hour for all kinds of offshoring work. 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 08, 2006 11:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] Makes sense. The numbers sound right. I can't even compete with programmers in this country let alone overseas where the wage rate is so much lower. Most of the ones I look at are so vaguely worded that I wonder how you can make a reasonable estimate of cost. Rocky John Colby wrote: > Rocky, > > I do work with them. I have one client that I got through them, but I > suspect only because they wanted to actually meet to discuss it and > they were down on the coast. I have actually bid on perhaps 50 > projects and landed exactly one. > > However if you watch what goes by on that site you can get a good laugh. > > "I need a spider to scan the major bookseller web sites, looking for > my books. I need it to find the lowest price, then bid one cent below > that lowest price. Email me the results. And the total cost for this > project must be $75 or less". > > Uhhhh... OK. Idiot. Unfortunately quite typical. > > So yes, we are competing with India, Russia and China. OTOH, we also > probably have list members in India, and Shamil is in Russia. China > is less likely. > > Guru.com claim that less than 30% of all the contracts go overseas, > but you have heard the old saw about "liars, damned liars, and > statisticians". My guess is that less than 40% of all contracts even > get awarded, with 75% of them going overseas. 75% of 40% = 30%. > > And in spite of it all, I still respond if they sound like they have a > clue (which isn't all THAT often). > > 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 08, 2006 10:36 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] [Fwd: Project Notification] > > Any body work with Guru.com? Anybody have any success with it? Are > we competing with programmers in India, Russia, and China? > > Rocky > > > -------- Original Message -------- > Subject: Project Notification > Date: Wed, 08 Feb 2006 01:19:26 -0500 (EST) > From: Guru.com > To: bchacc at san.rr.com > > > > > Guru.com : Project Notification > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Dear Rocky: > > Within the last 24 hours, employers posted one or more projects that > match your profile(s). > > How to find the below project(s): > ---Sign in to your professional account: > http://www.guru.com/pro/login.cfm ---On the My Admin page, click the "Project Notifications" link. > > Want to stop receiving Project Notification emails? > Learn how here: http://www.guru.com/help/pro/invites.cfm#turn_off > --------------------------------------------------- > Profile ID: 611628 matches... > Project ID: 192572 > Title: Commission Calculation program > Category: Programming / Software / Database Development > Description: > We are a mortgage company where we hire Loan Agents on commission, > based on funded loans. > > We need a system that will calculate our loan agent's commission > according to percentage, deductions, fees, etc., > > We need to maintain a database of all Loan Agents and their earned > commission. We need to maintance a database of all loans funded. > > We need to be able to generate reports on specific loan commissions on > particular time frame. > > --------------------------------------------------- > > --------------------------------------------------- > Profile ID: 611628 matches... > Project ID: 192628 > Title: VBA/Access Function > Category: Programming / Software / Database Development > Description: > I need an VBA function to be used in an Access database that will > compare two strings. If the strings are match with only a two > character difference the function should return "True". If the > strings vary by more than a two character difference the function > should return false. The strings will have no punctuation or spaces. > I NEED THIS NO LATER THAN 02/08/2006 5pm CST. > > Examples: > Smith101MainStreet & Smiht101MainStreet = True Smit101MainStreet & > Smith101MainStreet = True Smith10111MainStreet & Smith101MainStreet = > True Smit101ManStreet & Smith101MainStreet = True > > Smith222MainStreet & Smith101MainStreet = False Smith101MaintainStreet > & Smith101MainStreet = False Smoth101ManyStreet & Smith101MainStreet = > False > > I will pay $45 for this function. I also have a large amount of > similar work and Access development that I would happily give to > someone that can show me quality and on time results. > > --------------------------------------------------- > > _______________________________________________________ > > This Project Notification will be deleted from your account in two weeks. > Avoid deletion, and save a copy to your Watch List. > - Sign in to your professional account: > http://www.guru.com/pro/login.cfm > - On the My Admin page, click the "Project Notifications" link. > - Click the "Add to Watch List" button. > > _______________________________________________________ > > Payment Protection Tip: > > Always remember to complete your transactions on Guru.com. It's the > safest way to sell services. > We offer two levels of payment protection through our mandatory > SafePay payment system-- Escrow and Invoicing. > > PAY PROTECTION LEVEL----PAYMENT OPTION > ---------------------------------------------- > Highest Protection------SafePay Escrow High Protection---------SafePay > Invoicing > > Because getting paid outside of SafePay is a high-risk transaction, it > is a violation of our Terms of Service. All payments from employers on > Guru.com must go through either SafePay Escrow or Invoicing. In > addition, receiving payment through SafePay is the only way to build > money-earned and feedback statistics, which attract future employers. *** More SafePay Information: > http://www.guru.com/help/pro/invoice.cfm > _______________________________________________________ > > Project Bidding Tips: > > - How to determine a time and cost estimate: > http://www.guru.com/resources/pro/fair_estimate.cfm > - View a sample proposal: > http://www.guru.com/resources/pro/sample_proposal.cfm > _______________________________________________________ > > Tips on How to Protect Yourself: > > - Smart Working Tips (PDF): > http://www.guru.com/resources/pro/pdf/smart_working.pdf > - How to identify and avoid fraudulent employers: > http://www.guru.com/help/pro/selection.cfm#beaware > _______________________________________________________ > > > Want to receive SafePay payments fast? Sign up for our free Direct > Deposit payment service now! More info: > http://www.guru.com/help/pro/payment.cfm#gurupay_dd > > > Sincerely, > Guru.com Team > > Please do not reply to this email. This mailbox is not monitored and > you will not receive a response. For assistance, please refer to our > Help Center > (http://www.guru.com/help/pro/professionals.cfm) or our Contact Us > page (http://www.guru.com/pro/contact.cfm). > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Want to sign in? http://www.guru.com/pro/login.cfm Forgot your > Username and/or Password? > http://www.guru.com/pro/login_lostpassword.cfm > Need assistance? http://www.guru.com/pro/contact.cfm > > > > > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 9 00:52:40 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 8 Feb 2006 22:52:40 -0800 Subject: [AccessD] Field Entry question In-Reply-To: Message-ID: <000001c62d45$6c33b840$7800a8c0@HPLaptop> So any way, I go to my friend's house who is teaching me how to write more code and we are trying to figure this out. As we go through the query which is the data source I deleted a couple of test rows that are empty. Now we can't duplicate the error. Joe Hecht jmhecht at earthlink.net You mention two errors but only describe one. IncNum *is* a calculated field on the subform, so how are you using it exactly that triggers the error? How is memo_key getting populated? Since you've defined IncNum as the left 5 characters of Memo_key (which had better have at least 5 chars or you're in trouble), Memo_key has to be populated before you can work with IncNum. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 10:53 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Field Entry question I have a subform based on the following sql statement SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, Left([Memo_Key],5) AS IncNum FROM 20ACCTEXT; When I try to enter a new record I get an error saying IncNum (a hidden field used as link to parent records) is an expression and con not be edited. If I manually clear the two errors generated everything continues ok. Is there a way to suppress the two errors. Thanks Joe Hecht jmhecht 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 Gustav at cactus.dk Thu Feb 9 05:17:50 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 09 Feb 2006 12:17:50 +0100 Subject: [AccessD] Problem With Ageing Function Further to..... Message-ID: Hi Tom Don't do that. Always handle dates as date/time values if at all possible. As we both have told you, change your code to use date/time and not variant. /gustav >>> tom.p at piedpiper.com.au 09-02-2006 00:47:06 >>> ...I put the date as a string (as you did) "01/01/2006" instead of a date #01/01/2006# and it worked fine ... From bheid at appdevgrp.com Thu Feb 9 06:19:31 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 9 Feb 2006 07:19:31 -0500 Subject: [AccessD] [SPAM SUSPECT] Help with Syntax error In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3BD50@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F49@ADGSERVER> Joe, Also, you do know that you can get the difference in years with datediff, don't you? ldiff = Datediff("y", date1,date2) Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, February 08, 2006 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [SPAM SUSPECT] Help with Syntax error Joe, Firstly, yearcalc needs to be a function that returns a long (I assume that is what you would want). Public Function yearcalc(date1 As Date, date2 As Date) as long dim lDiff as long ldiff = clng((Datediff("m", date1,date2)/12)) yearcalc=ldiff End Sub The calling code would need to be something like: dim lRet as long lRet=yearcalc(date1,date2) Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 3:15 PM To: 'Access Developers discussion and problem solving' Subject: [SPAM SUSPECT] [AccessD] Help with Syntax error Importance: Low The idea here is get the difference in years between 2 dates. This is a global module. Public Sub yearcalc(date1 As Date, date2 As Date) = int(Datediff("m", date1,date2)/12) End Sub =int line returns syntax error This is the code I want to call the above Private Sub Form_BeforeUpdate(Cancel As Integer) Dim DOB As Date Dim txtIDATE As Date Set DOB = date1 Set txtIDATE = date2 Call yearcalc Thanks Joe Hecht jmhecht at earthlink.net From erbachs at gmail.com Thu Feb 9 09:35:51 2006 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 9 Feb 2006 09:35:51 -0600 Subject: [AccessD] Basic Query Design In-Reply-To: <43EB3DCB.1966.1874CDCE@stuart.lexacorp.com.pg> References: <39cb22f30602081836k3516ccd0vd9262671041bc089@mail.gmail.com> <43EB3DCB.1966.1874CDCE@stuart.lexacorp.com.pg> Message-ID: <39cb22f30602090735v1ab16d32l7d6f55a9b4817b71@mail.gmail.com> Stuart, Hah! The guy that came up with it is a professor in the Computer Science Dept. at UW-Parkside in Kenosha, WI...right in my neck of the woods. After showing this method and explaining how it's derived in detail, he wrote, "Imagine presenting this to undergrads who have just a lecture or two of SQL under their belts. You DO get the chance to talk about scoping of aliases..." Steve Erbach Scientific Marketing Neenah, WI http://TheTownCrank.blogspot.com On 2/8/06, Stuart McLachlan wrote: > On 8 Feb 2006 at 20:36, Steve Erbach wrote: > > > SELECT DISTINCT EmployeeID > > FROM tblEmployeeCourse AS EC1 > > WHERE NOT EXISTS > > ( SELECT CourseID FROM tblCourse > > WHERE CourseID In (1,2,4,5) AND NOT EXISTS > > ( SELECT * FROM tblEmployeeCourse AS EC2 > > WHERE EC2.CourseID = tblCourse.CourseID > > AND EC2.EmployeeID = EC1.EmployeeID)) > > > > Ouch! My head hurts! > > -- > Stuart > From Mike.W.Gowey at doc.state.or.us Thu Feb 9 10:04:48 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 9 Feb 2006 09:04:48 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBE1@srciml1.ds.doc.state.or.us> Gustav, Any idea on this? -----Original Message----- From: Gowey Mike W Sent: Monday, February 06, 2006 11:01 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Post Card Printing Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- 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 9 10:10:35 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Feb 2006 08:10:35 -0800 Subject: [AccessD] [Fwd: Project Notification] Message-ID: ROTFL Wow! A whole $12 and hour?? You've hit the big time! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 08, 2006 9:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] >Most of the ones I look at are so vaguely worded that I wonder how you >can make a reasonable estimate of cost. And the answer is, I don't make an estimate of cost, I quote my hourly rate plus expenses, with a disclaimer that their spec is so vaguely worded that a fixed quote is not possible. Of course my hourly rate is about 5-10 times that of an Indian responding so if these companies are inclined to do that I can't compete. I actually got a phone call the other night from a company in India, quoting me $12 / hour for all kinds of offshoring work. 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 08, 2006 11:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] Makes sense. The numbers sound right. I can't even compete with programmers in this country let alone overseas where the wage rate is so much lower. Most of the ones I look at are so vaguely worded that I wonder how you can make a reasonable estimate of cost. Rocky John Colby wrote: > Rocky, > > I do work with them. I have one client that I got through them, but I > suspect only because they wanted to actually meet to discuss it and > they were down on the coast. I have actually bid on perhaps 50 > projects and landed exactly one. > > However if you watch what goes by on that site you can get a good > laugh. > > "I need a spider to scan the major bookseller web sites, looking for > my books. I need it to find the lowest price, then bid one cent below > that lowest price. Email me the results. And the total cost for this > project must be $75 or less". > > Uhhhh... OK. Idiot. Unfortunately quite typical. > > So yes, we are competing with India, Russia and China. OTOH, we also > probably have list members in India, and Shamil is in Russia. China > is less likely. > > Guru.com claim that less than 30% of all the contracts go overseas, > but you have heard the old saw about "liars, damned liars, and > statisticians". My guess is that less than 40% of all contracts even > get awarded, with 75% of them going overseas. 75% of 40% = 30%. > > And in spite of it all, I still respond if they sound like they have a > clue (which isn't all THAT often). > > 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 08, 2006 10:36 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] [Fwd: Project Notification] > > Any body work with Guru.com? Anybody have any success with it? Are > we competing with programmers in India, Russia, and China? > > Rocky > > > -------- Original Message -------- > Subject: Project Notification > Date: Wed, 08 Feb 2006 01:19:26 -0500 (EST) > From: Guru.com > To: bchacc at san.rr.com > > > > > Guru.com : Project Notification > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Dear Rocky: > > Within the last 24 hours, employers posted one or more projects that > match your profile(s). > > How to find the below project(s): > ---Sign in to your professional account: > http://www.guru.com/pro/login.cfm ---On the My Admin page, click the "Project Notifications" link. > > Want to stop receiving Project Notification emails? > Learn how here: http://www.guru.com/help/pro/invites.cfm#turn_off > --------------------------------------------------- > Profile ID: 611628 matches... > Project ID: 192572 > Title: Commission Calculation program > Category: Programming / Software / Database Development > Description: > We are a mortgage company where we hire Loan Agents on commission, > based on funded loans. > > We need a system that will calculate our loan agent's commission > according to percentage, deductions, fees, etc., > > We need to maintain a database of all Loan Agents and their earned > commission. We need to maintance a database of all loans funded. > > We need to be able to generate reports on specific loan commissions on > particular time frame. > > --------------------------------------------------- > > --------------------------------------------------- > Profile ID: 611628 matches... > Project ID: 192628 > Title: VBA/Access Function > Category: Programming / Software / Database Development > Description: > I need an VBA function to be used in an Access database that will > compare two strings. If the strings are match with only a two > character difference the function should return "True". If the > strings vary by more than a two character difference the function > should return false. The strings will have no punctuation or spaces. > I NEED THIS NO LATER THAN 02/08/2006 5pm CST. > > Examples: > Smith101MainStreet & Smiht101MainStreet = True Smit101MainStreet & > Smith101MainStreet = True Smith10111MainStreet & Smith101MainStreet = > True Smit101ManStreet & Smith101MainStreet = True > > Smith222MainStreet & Smith101MainStreet = False Smith101MaintainStreet > & Smith101MainStreet = False Smoth101ManyStreet & Smith101MainStreet = > False > > I will pay $45 for this function. I also have a large amount of > similar work and Access development that I would happily give to > someone that can show me quality and on time results. > > --------------------------------------------------- > > _______________________________________________________ > > This Project Notification will be deleted from your account in two > weeks. Avoid deletion, and save a copy to your Watch List. > - Sign in to your professional account: > http://www.guru.com/pro/login.cfm > - On the My Admin page, click the "Project Notifications" link. > - Click the "Add to Watch List" button. > > _______________________________________________________ > > Payment Protection Tip: > > Always remember to complete your transactions on Guru.com. It's the > safest way to sell services. > We offer two levels of payment protection through our mandatory > SafePay payment system-- Escrow and Invoicing. > > PAY PROTECTION LEVEL----PAYMENT OPTION > ---------------------------------------------- > Highest Protection------SafePay Escrow High Protection---------SafePay > Invoicing > > Because getting paid outside of SafePay is a high-risk transaction, it > is a violation of our Terms of Service. All payments from employers on > Guru.com must go through either SafePay Escrow or Invoicing. In > addition, receiving payment through SafePay is the only way to build > money-earned and feedback statistics, which attract future employers. *** More SafePay Information: > http://www.guru.com/help/pro/invoice.cfm > _______________________________________________________ > > Project Bidding Tips: > > - How to determine a time and cost estimate: > http://www.guru.com/resources/pro/fair_estimate.cfm > - View a sample proposal: > http://www.guru.com/resources/pro/sample_proposal.cfm > _______________________________________________________ > > Tips on How to Protect Yourself: > > - Smart Working Tips (PDF): > http://www.guru.com/resources/pro/pdf/smart_working.pdf > - How to identify and avoid fraudulent employers: > http://www.guru.com/help/pro/selection.cfm#beaware > _______________________________________________________ > > > Want to receive SafePay payments fast? Sign up for our free Direct > Deposit payment service now! More info: > http://www.guru.com/help/pro/payment.cfm#gurupay_dd > > > Sincerely, > Guru.com Team > > Please do not reply to this email. This mailbox is not monitored and > you will not receive a response. For assistance, please refer to our > Help Center > (http://www.guru.com/help/pro/professionals.cfm) or our Contact Us > page (http://www.guru.com/pro/contact.cfm). > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Want to sign in? http://www.guru.com/pro/login.cfm Forgot your > Username and/or Password? > http://www.guru.com/pro/login_lostpassword.cfm > Need assistance? http://www.guru.com/pro/contact.cfm > > > > > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 9 10:12:46 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Feb 2006 08:12:46 -0800 Subject: [AccessD] Basic Query Design Message-ID: LOL Try the SQL for shaped recordsets sometime if you want to cause headaches! ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Thursday, February 09, 2006 7:36 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Basic Query Design Stuart, Hah! The guy that came up with it is a professor in the Computer Science Dept. at UW-Parkside in Kenosha, WI...right in my neck of the woods. After showing this method and explaining how it's derived in detail, he wrote, "Imagine presenting this to undergrads who have just a lecture or two of SQL under their belts. You DO get the chance to talk about scoping of aliases..." Steve Erbach Scientific Marketing Neenah, WI http://TheTownCrank.blogspot.com On 2/8/06, Stuart McLachlan wrote: > On 8 Feb 2006 at 20:36, Steve Erbach wrote: > > > SELECT DISTINCT EmployeeID > > FROM tblEmployeeCourse AS EC1 > > WHERE NOT EXISTS > > ( SELECT CourseID FROM tblCourse > > WHERE CourseID In (1,2,4,5) AND NOT EXISTS > > ( SELECT * FROM tblEmployeeCourse AS EC2 > > WHERE EC2.CourseID = tblCourse.CourseID > > AND EC2.EmployeeID = EC1.EmployeeID)) > > > > Ouch! My head hurts! > > -- > Stuart > -- 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 9 10:32:23 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 09 Feb 2006 17:32:23 +0100 Subject: [AccessD] Post Card Printing Message-ID: Hi Mike Oh, missed that. I'll have a look ... /gustav >>> Mike.W.Gowey at doc.state.or.us 09-02-2006 17:04:48 >>> Gustav, Any idea on this? From jwcolby at ColbyConsulting.com Thu Feb 9 11:55:04 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Thu, 9 Feb 2006 12:55:04 -0500 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: Message-ID: <005b01c62da1$f55c4f90$647aa8c0@ColbyM6805> LOL, no I could hire THEM for $12 / hour. 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: Thursday, February 09, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] ROTFL Wow! A whole $12 and hour?? You've hit the big time! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 08, 2006 9:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] >Most of the ones I look at are so vaguely worded that I wonder how you >can make a reasonable estimate of cost. And the answer is, I don't make an estimate of cost, I quote my hourly rate plus expenses, with a disclaimer that their spec is so vaguely worded that a fixed quote is not possible. Of course my hourly rate is about 5-10 times that of an Indian responding so if these companies are inclined to do that I can't compete. I actually got a phone call the other night from a company in India, quoting me $12 / hour for all kinds of offshoring work. John W. Colby www.ColbyConsulting.com From markamatte at hotmail.com Thu Feb 9 11:55:38 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 09 Feb 2006 17:55:38 +0000 Subject: [AccessD] Post Card Printing In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF48607780579BBE1@srciml1.ds.doc.state.or.us> Message-ID: Mike, I did this exact thing a few years ago. I'll send you a small db offline...let me know if you have any questions. Thanks, Mark A. Matte >From: "Gowey Mike W" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Post Card Printing >Date: Thu, 9 Feb 2006 09:04:48 -0700 > > >Gustav, > >Any idea on this? > >-----Original Message----- >From: Gowey Mike W >Sent: Monday, February 06, 2006 11:01 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Post Card Printing > > >Gustav, > >One problem I have run into on this, it works great as long as you have >a record count that is divisable by 4. If the record count is not >divisible by 4 the last page that prints when you turn over the post >card prints incorrectly because of the order, so if you have a record >count of 14 than the first 3 pages print great, but the last page that >only has 2 records on it will print on the opposite side of the page. > >Any ideas on maybe how to correct this or how to insert blank records >when not divisible by 4? > >Thanks, > >Mike > >-----Original Message----- >From: Gustav Brock [mailto:Gustav at cactus.dk] >Sent: Friday, February 03, 2006 4:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Post Card Printing > >Hi Mike > >For the first run you sort by sequence ID. >To be sorted properly for the second run, they have to be ordered into >another sequence, four by four (page) and two by two (column). > >If the first run is printed column by column, a page will be printed >like this: > > 1 3 > 2 4 > >where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. >To print correctly on the other side of the page, the second run must be >printed this way: > > 3 1 > 4 2 > >thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. > >The first query pulls the records in sequential order as well as the >corresponding values for page and column to allow for the alternative >ordering for the second run. As you need four cards to be printed on >page 1 you need to compensate by passing an offset which equals the >negative value of the first ID. > >Without an offset (=0) and a first CardID of 1 you would only get three >cards on the first page: > >Page4 Column2 CardID >0 0 1 >0 1 2 >0 1 3 >1 0 4 >1 0 5 >1 1 6 >1 1 7 >2 0 8 > >With an offset of -1 the pages will be filled correctly: > >Page4 Column2 CardID >0 0 1 >0 0 2 >0 1 3 >0 1 4 >1 0 5 >1 0 6 >1 1 7 >1 1 8 > >To retrieve the records for the first run, you really don't need to sort >on anything else than the CardID: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > CardID; > >For the second run, however, you need the other sorting on page and >column as well: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2 DESC, > CardID; > >This will return: > >Page4 Column2 CardID >0 1 3 >0 1 4 >0 0 1 >0 0 2 >1 1 7 >1 1 8 >1 0 5 >1 0 6 > >which is what you need. > >Use these two queries as the basis for the queries for pulling the >records to print first and second run respectively. > >The temp table is only needed if you can't get the sorting right for the >second run; sometimes Access refuses to sort on derived values. > >If you don't have a sequential ID, look up the subject "Sequence number >in query" from 2006-01-22 or write all the data you need to print to >another temp table with an AutoNumber field. > >/gustav > > >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> > >Sorry Gustav I am lost on the first part on creating the temp table with >the Offset and ID part. > >-----Original Message----- >From: Gowey Mike W >Sent: Thursday, February 02, 2006 10:10 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Post Card Printing > >Sorry replied to the wrong post. > > >When you say sequential ID for the records do you mean within the >customer table? I do have a unique customer ID for each customer within >the customer table, will that work? > >-----Original Message----- >From: Gustav Brock [mailto:Gustav at cactus.dk] >Sent: Thursday, February 02, 2006 9:41 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Post Card Printing > >Hi Mike > >You will need a sequential ID for the records. >Then create a query to write a temp table: > > SELECT > ([Offset]+[ID])\4 AS Page4, > (([Offset]+[ID])\2) Mod 2 AS Column2, > ID AS CardID > INTO > tblCardID > FROM > tblYourTable; > >Use parameter Offset to adjust the sequence for full pages by setting it >to the negative value of the first ID. If this is 67, set Offset to -67. >You could retrieve that value first or by an in-line subquery, but I'll >leave that to you. > >If you set up columns to go down and then across, you can use this >method. >Read and sort the table for printing the front side of the cards: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2, > CardID; > >and sort this way for the rear side of the cards: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2 DESC, > CardID; > >Put this code into two queries and create inner join to your original >table and pull the fields you need from this to print the cards. > >You may be able to skip the temp table and sort directly but it does not >always work. >Also, you may later reduce the queries like this: > > SELECT > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2 DESC, > CardID; > >By adjusting the sorting and the across/down sequence you can create >other printing sequences. > >/gustav > > > >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> > > >I'm wondering if any one knows of a way that I can get post cards to >print from the database. Here is what I am attempting to do but it is >not working. I print the front of the card with the return address and >the address of the customer (4 per page). Than what I want to be able >to do is flip the card stock over and print the customer billing data on >the back. Currently the columns are set up to go across and than down >for printing. Is there a way that I can get the columns to print across >the bottom and than up? The problem is when I turn over the card stock >than the names and detail do not match up, they are backwards, because >of course when you flip the card stock over the first record is at the >bottom of the page instead of the top. > >Anybody have any ideas? > >Thanks in advance for any ideas, > > >Mike Gowey MCSA, MCDST, A+, LME, NET+ >Team Leader - SouthEast Region >Information Systems Unit > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 9 11:59:22 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Feb 2006 09:59:22 -0800 Subject: [AccessD] [Fwd: Project Notification] Message-ID: Ooooooohhhh! ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Thursday, February 09, 2006 9:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] LOL, no I could hire THEM for $12 / hour. 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: Thursday, February 09, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] ROTFL Wow! A whole $12 and hour?? You've hit the big time! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 08, 2006 9:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] >Most of the ones I look at are so vaguely worded that I wonder how you >can make a reasonable estimate of cost. And the answer is, I don't make an estimate of cost, I quote my hourly rate plus expenses, with a disclaimer that their spec is so vaguely worded that a fixed quote is not possible. Of course my hourly rate is about 5-10 times that of an Indian responding so if these companies are inclined to do that I can't compete. I actually got a phone call the other night from a company in India, quoting me $12 / hour for all kinds of offshoring work. 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 Mike.W.Gowey at doc.state.or.us Thu Feb 9 12:01:10 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 9 Feb 2006 11:01:10 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBE3@srciml1.ds.doc.state.or.us> Thanks Mark that would be great. -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Thursday, February 09, 2006 10:56 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Mike, I did this exact thing a few years ago. I'll send you a small db offline...let me know if you have any questions. Thanks, Mark A. Matte >From: "Gowey Mike W" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Post Card Printing >Date: Thu, 9 Feb 2006 09:04:48 -0700 > > >Gustav, > >Any idea on this? > >-----Original Message----- >From: Gowey Mike W >Sent: Monday, February 06, 2006 11:01 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Post Card Printing > > >Gustav, > >One problem I have run into on this, it works great as long as you have >a record count that is divisable by 4. If the record count is not >divisible by 4 the last page that prints when you turn over the post >card prints incorrectly because of the order, so if you have a record >count of 14 than the first 3 pages print great, but the last page that >only has 2 records on it will print on the opposite side of the page. > >Any ideas on maybe how to correct this or how to insert blank records >when not divisible by 4? > >Thanks, > >Mike > >-----Original Message----- >From: Gustav Brock [mailto:Gustav at cactus.dk] >Sent: Friday, February 03, 2006 4:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Post Card Printing > >Hi Mike > >For the first run you sort by sequence ID. >To be sorted properly for the second run, they have to be ordered into >another sequence, four by four (page) and two by two (column). > >If the first run is printed column by column, a page will be printed >like this: > > 1 3 > 2 4 > >where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. >To print correctly on the other side of the page, the second run must >be printed this way: > > 3 1 > 4 2 > >thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. > >The first query pulls the records in sequential order as well as the >corresponding values for page and column to allow for the alternative >ordering for the second run. As you need four cards to be printed on >page 1 you need to compensate by passing an offset which equals the >negative value of the first ID. > >Without an offset (=0) and a first CardID of 1 you would only get three >cards on the first page: > >Page4 Column2 CardID >0 0 1 >0 1 2 >0 1 3 >1 0 4 >1 0 5 >1 1 6 >1 1 7 >2 0 8 > >With an offset of -1 the pages will be filled correctly: > >Page4 Column2 CardID >0 0 1 >0 0 2 >0 1 3 >0 1 4 >1 0 5 >1 0 6 >1 1 7 >1 1 8 > >To retrieve the records for the first run, you really don't need to >sort on anything else than the CardID: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > CardID; > >For the second run, however, you need the other sorting on page and >column as well: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2 DESC, > CardID; > >This will return: > >Page4 Column2 CardID >0 1 3 >0 1 4 >0 0 1 >0 0 2 >1 1 7 >1 1 8 >1 0 5 >1 0 6 > >which is what you need. > >Use these two queries as the basis for the queries for pulling the >records to print first and second run respectively. > >The temp table is only needed if you can't get the sorting right for >the second run; sometimes Access refuses to sort on derived values. > >If you don't have a sequential ID, look up the subject "Sequence number >in query" from 2006-01-22 or write all the data you need to print to >another temp table with an AutoNumber field. > >/gustav > > >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> > >Sorry Gustav I am lost on the first part on creating the temp table >with the Offset and ID part. > >-----Original Message----- >From: Gowey Mike W >Sent: Thursday, February 02, 2006 10:10 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Post Card Printing > >Sorry replied to the wrong post. > > >When you say sequential ID for the records do you mean within the >customer table? I do have a unique customer ID for each customer >within the customer table, will that work? > >-----Original Message----- >From: Gustav Brock [mailto:Gustav at cactus.dk] >Sent: Thursday, February 02, 2006 9:41 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Post Card Printing > >Hi Mike > >You will need a sequential ID for the records. >Then create a query to write a temp table: > > SELECT > ([Offset]+[ID])\4 AS Page4, > (([Offset]+[ID])\2) Mod 2 AS Column2, > ID AS CardID > INTO > tblCardID > FROM > tblYourTable; > >Use parameter Offset to adjust the sequence for full pages by setting >it to the negative value of the first ID. If this is 67, set Offset to -67. >You could retrieve that value first or by an in-line subquery, but I'll >leave that to you. > >If you set up columns to go down and then across, you can use this >method. >Read and sort the table for printing the front side of the cards: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2, > CardID; > >and sort this way for the rear side of the cards: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2 DESC, > CardID; > >Put this code into two queries and create inner join to your original >table and pull the fields you need from this to print the cards. > >You may be able to skip the temp table and sort directly but it does >not always work. >Also, you may later reduce the queries like this: > > SELECT > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2 DESC, > CardID; > >By adjusting the sorting and the across/down sequence you can create >other printing sequences. > >/gustav > > > >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> > > >I'm wondering if any one knows of a way that I can get post cards to >print from the database. Here is what I am attempting to do but it is >not working. I print the front of the card with the return address and >the address of the customer (4 per page). Than what I want to be able >to do is flip the card stock over and print the customer billing data >on the back. Currently the columns are set up to go across and than >down for printing. Is there a way that I can get the columns to print >across the bottom and than up? The problem is when I turn over the >card stock than the names and detail do not match up, they are >backwards, because of course when you flip the card stock over the >first record is at the bottom of the page instead of the top. > >Anybody have any ideas? > >Thanks in advance for any ideas, > > >Mike Gowey MCSA, MCDST, A+, LME, NET+ >Team Leader - SouthEast Region >Information Systems Unit > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 9 12:00:30 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 09 Feb 2006 19:00:30 +0100 Subject: [AccessD] Post Card Printing Message-ID: Hi Mike After you have (re)created the tblCardID table for sorting, you will need to run a second query which appends missing records to tblCardID up to a multiplum of four. If the last page has one card, it will add records for three empty cards, if two is present, then two cards are added, etc. Thus your two printing queries will always return full pages of four cards. This is the query (watch out, guru code): INSERT INTO tblCardID ( Page4, Column2, CardID ) SELECT TOP 4 [Page4]+1 AS PageMax, Column2, [CardID]+4 AS Card1 FROM tblCardID WHERE (([CardID]+4) Not In (Select Top 4 CardID From tblCardID Order By CardID DESC;)) AND ([Page4]= (Select Max(Page4)-1 From tblCardID;)) ORDER BY Page4 DESC, Column2 DESC, CardID DESC; /gustav >>> Mike.W.Gowey at doc.state.or.us 06-02-2006 19:01:06 >>> Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit From jmhecht at earthlink.net Thu Feb 9 12:03:22 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 9 Feb 2006 10:03:22 -0800 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: <005b01c62da1$f55c4f90$647aa8c0@ColbyM6805> Message-ID: <001701c62da3$1eaab160$0a01a8c0@desktop> Wish I could get hired @ $12.00 an hour -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Thursday, February 09, 2006 9:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] LOL, no I could hire THEM for $12 / hour. 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: Thursday, February 09, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] ROTFL Wow! A whole $12 and hour?? You've hit the big time! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 08, 2006 9:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] >Most of the ones I look at are so vaguely worded that I wonder how you >can make a reasonable estimate of cost. And the answer is, I don't make an estimate of cost, I quote my hourly rate plus expenses, with a disclaimer that their spec is so vaguely worded that a fixed quote is not possible. Of course my hourly rate is about 5-10 times that of an Indian responding so if these companies are inclined to do that I can't compete. I actually got a phone call the other night from a company in India, quoting me $12 / hour for all kinds of offshoring work. John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 9 12:24:58 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Feb 2006 10:24:58 -0800 Subject: [AccessD] [Fwd: Project Notification] Message-ID: Keep trying, Joe. Maybe one day you too can do offshore programming! I just do off-the-wall programming myself. ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 09, 2006 10:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] Wish I could get hired @ $12.00 an hour -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Thursday, February 09, 2006 9:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] LOL, no I could hire THEM for $12 / hour. 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: Thursday, February 09, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] ROTFL Wow! A whole $12 and hour?? You've hit the big time! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 08, 2006 9:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] >Most of the ones I look at are so vaguely worded that I wonder how you >can make a reasonable estimate of cost. And the answer is, I don't make an estimate of cost, I quote my hourly rate plus expenses, with a disclaimer that their spec is so vaguely worded that a fixed quote is not possible. Of course my hourly rate is about 5-10 times that of an Indian responding so if these companies are inclined to do that I can't compete. I actually got a phone call the other night from a company in India, quoting me $12 / hour for all kinds of offshoring work. 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 jwcolby at ColbyConsulting.com Thu Feb 9 13:10:48 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Thu, 9 Feb 2006 14:10:48 -0500 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: Message-ID: <006101c62dac$8a2652b0$647aa8c0@ColbyM6805> He lives in Los Angeles IIRC. One big earthquake and he will be doing "offshore programming". 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: Thursday, February 09, 2006 1:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] Keep trying, Joe. Maybe one day you too can do offshore programming! I just do off-the-wall programming myself. ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 09, 2006 10:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] Wish I could get hired @ $12.00 an hour -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Thursday, February 09, 2006 9:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] LOL, no I could hire THEM for $12 / hour. John W. Colby www.ColbyConsulting.com From jmhecht at earthlink.net Thu Feb 9 13:28:35 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 9 Feb 2006 11:28:35 -0800 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: <006101c62dac$8a2652b0$647aa8c0@ColbyM6805> Message-ID: <001801c62daf$05acb850$0a01a8c0@desktop> John, You do rc. One good shake and my whole world is off shore. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Thursday, February 09, 2006 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] He lives in Los Angeles IIRC. One big earthquake and he will be doing "offshore programming". 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: Thursday, February 09, 2006 1:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] Keep trying, Joe. Maybe one day you too can do offshore programming! I just do off-the-wall programming myself. ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 09, 2006 10:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] Wish I could get hired @ $12.00 an hour -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Thursday, February 09, 2006 9:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] LOL, no I could hire THEM for $12 / hour. 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 Mike.W.Gowey at doc.state.or.us Thu Feb 9 13:31:06 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 9 Feb 2006 12:31:06 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBE4@srciml1.ds.doc.state.or.us> Gustav, I have been trying this and it seems to always insert 4 records into the table. I've been going through it line by line to see why but not much luck. -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 09, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike After you have (re)created the tblCardID table for sorting, you will need to run a second query which appends missing records to tblCardID up to a multiplum of four. If the last page has one card, it will add records for three empty cards, if two is present, then two cards are added, etc. Thus your two printing queries will always return full pages of four cards. This is the query (watch out, guru code): INSERT INTO tblCardID ( Page4, Column2, CardID ) SELECT TOP 4 [Page4]+1 AS PageMax, Column2, [CardID]+4 AS Card1 FROM tblCardID WHERE (([CardID]+4) Not In (Select Top 4 CardID From tblCardID Order By CardID DESC;)) AND ([Page4]= (Select Max(Page4)-1 From tblCardID;)) ORDER BY Page4 DESC, Column2 DESC, CardID DESC; /gustav >>> Mike.W.Gowey at doc.state.or.us 06-02-2006 19:01:06 >>> Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Thu Feb 9 13:57:10 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 9 Feb 2006 22:57:10 +0300 Subject: [AccessD] OT: where can I get HTML tags and atributes list in software readable form? Message-ID: <002a01c62db3$08458ed0$6501a8c0@Nant> Hi All, Where can I get the list of HTML 4.x's tags and their (at least specific) attributes, which I can import into, say MS Access tables, without programming? Thank you in advance for any info! Shamil P.S. I guess Marty knows the answer for sure :) -- Web: http://smsconsulting.spb.ru/shamil_s From Mike.W.Gowey at doc.state.or.us Thu Feb 9 13:59:42 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 9 Feb 2006 12:59:42 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBE5@srciml1.ds.doc.state.or.us> Never mind Gustav I parsed through it and I now have it working. Thanks again you are a life saver. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 09, 2006 12:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Gustav, I have been trying this and it seems to always insert 4 records into the table. I've been going through it line by line to see why but not much luck. -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 09, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike After you have (re)created the tblCardID table for sorting, you will need to run a second query which appends missing records to tblCardID up to a multiplum of four. If the last page has one card, it will add records for three empty cards, if two is present, then two cards are added, etc. Thus your two printing queries will always return full pages of four cards. This is the query (watch out, guru code): INSERT INTO tblCardID ( Page4, Column2, CardID ) SELECT TOP 4 [Page4]+1 AS PageMax, Column2, [CardID]+4 AS Card1 FROM tblCardID WHERE (([CardID]+4) Not In (Select Top 4 CardID From tblCardID Order By CardID DESC;)) AND ([Page4]= (Select Max(Page4)-1 From tblCardID;)) ORDER BY Page4 DESC, Column2 DESC, CardID DESC; /gustav >>> Mike.W.Gowey at doc.state.or.us 06-02-2006 19:01:06 >>> Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Thu Feb 9 14:04:58 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 9 Feb 2006 15:04:58 -0500 Subject: [AccessD] OT: where can I get HTML tags and atributes list in software readable form? Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0389E@xlivmbx21.aig.com> Office XP includes a help file HTMLREF.CHM which might fit the bill. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, February 09, 2006 2:57 PM To: !DBA-MAIN Subject: [AccessD] OT: where can I get HTML tags and atributes list in software readable form? Hi All, Where can I get the list of HTML 4.x's tags and their (at least specific) attributes, which I can import into, say MS Access tables, without programming? Thank you in advance for any info! Shamil P.S. I guess Marty knows the answer for sure :) -- Web: http://smsconsulting.spb.ru/shamil_s -- 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 9 14:23:58 2006 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 9 Feb 2006 12:23:58 -0800 (PST) Subject: [AccessD] Consulting Contracts Message-ID: <20060209202358.13437.qmail@web33107.mail.mud.yahoo.com> Does anyone know of a website that has very generic software consulting contracts you can download? May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. From shamil at users.mns.ru Thu Feb 9 14:32:11 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 9 Feb 2006 23:32:11 +0300 Subject: [AccessD] OT: where can I get HTML tags and atributes list in software readable form? References: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0389E@xlivmbx21.aig.com> Message-ID: <002f01c62db8$44508d80$6501a8c0@Nant> Thank you Lambert! HTMLRef.chm seems to be also a plug-in to HTML-Kit (http://www.chami.com/html-kit/plugins/info/hkh_htmlref/), I have just found also good lists(tables) ready to import here: Index of HTML elements http://www.w3.org/TR/html401/index/elements.html Index of HTML attributes http://www.w3.org/TR/html401/index/attributes.html I should have looked there in the W3 specs first of all.... Does anybody know better formatted, having more info, easily manipulated HTML tags and attributes lists? Shamil ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 09, 2006 11:04 PM Subject: Re: [AccessD] OT: where can I get HTML tags and atributes list in software readable form? > Office XP includes a help file HTMLREF.CHM which might fit the bill. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Thursday, February 09, 2006 2:57 PM > To: !DBA-MAIN > Subject: [AccessD] OT: where can I get HTML tags and atributes list in > software readable form? > > > Hi All, > > Where can I get the list of HTML 4.x's tags and their (at least specific) > attributes, which I can import into, say MS Access tables, without > programming? > > Thank you in advance for any info! > > Shamil > > P.S. I guess Marty knows the answer for sure :) > > -- > Web: http://smsconsulting.spb.ru/shamil_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 carbonnb at gmail.com Thu Feb 9 14:36:57 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 9 Feb 2006 15:36:57 -0500 Subject: [AccessD] OT: where can I get HTML tags and atributes list in software readable form? In-Reply-To: <002f01c62db8$44508d80$6501a8c0@Nant> References: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0389E@xlivmbx21.aig.com> <002f01c62db8$44508d80$6501a8c0@Nant> Message-ID: On 09/02/06, Shamil Salakhetdinov wrote: > Thank you Lambert! > > HTMLRef.chm seems to be also a plug-in to HTML-Kit > (http://www.chami.com/html-kit/plugins/info/hkh_htmlref/), > > I have just found also good lists(tables) ready to import here: > > Index of HTML elements > http://www.w3.org/TR/html401/index/elements.html > > Index of HTML attributes > http://www.w3.org/TR/html401/index/attributes.html > > I should have looked there in the W3 specs first of all.... > > Does anybody know better formatted, having more info, easily manipulated > HTML tags and attributes lists? Here are a couple of pages that may be of use as well: http://www.w3schools.com/tags/default.asp (no attributes, just tags but tags are links to details pages including attributes) http://www.nic.fi/~tapio1/HTMLKit/AttributesHTML40.php3 and this one is probably the best: http://www.nic.fi/~tapio1/HTMLKit/AttributesHTML40.php3 -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From carbonnb at gmail.com Thu Feb 9 15:02:56 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 9 Feb 2006 16:02:56 -0500 Subject: [AccessD] OT: where can I get HTML tags and atributes list in software readable form? In-Reply-To: References: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0389E@xlivmbx21.aig.com> <002f01c62db8$44508d80$6501a8c0@Nant> Message-ID: On 09/02/06, Bryan Carbonnell wrote: > On 09/02/06, Shamil Salakhetdinov wrote: > > Thank you Lambert! > > > > HTMLRef.chm seems to be also a plug-in to HTML-Kit > > (http://www.chami.com/html-kit/plugins/info/hkh_htmlref/), Found one more: http://wdvl.internet.com/Authoring/HTML/4/Tags/Tags.html -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From shamil at users.mns.ru Thu Feb 9 15:26:55 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 10 Feb 2006 00:26:55 +0300 Subject: [AccessD] OT: where can I get HTML tags and atributes list insoftware readable form? References: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0389E@xlivmbx21.aig.com><002f01c62db8$44508d80$6501a8c0@Nant> Message-ID: <001401c62dbf$8e30e3d0$6501a8c0@Nant> Thank you, Bryan! That's even more than I expect to find! Very much appreciated, very useful for the task I'm doing here! Thank you, Shamil ----- Original Message ----- From: "Bryan Carbonnell" To: "Access Developers discussion and problem solving" Sent: Friday, February 10, 2006 12:02 AM Subject: Re: [AccessD] OT: where can I get HTML tags and atributes list insoftware readable form? > On 09/02/06, Bryan Carbonnell wrote: >> On 09/02/06, Shamil Salakhetdinov wrote: >> > Thank you Lambert! >> > >> > HTMLRef.chm seems to be also a plug-in to HTML-Kit >> > (http://www.chami.com/html-kit/plugins/info/hkh_htmlref/), > > Found one more: > http://wdvl.internet.com/Authoring/HTML/4/Tags/Tags.html > > -- > Bryan Carbonnell - carbonnb at gmail.com > Life's journey is not to arrive at the grave safely in a well > preserved body, but rather to skid in sideways, totally worn out, > shouting "What a great ride!" > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Feb 9 15:27:56 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 09 Feb 2006 13:27:56 -0800 Subject: [AccessD] Consulting Contracts References: <20060209202358.13437.qmail@web33107.mail.mud.yahoo.com> Message-ID: <43EBB3DC.6050300@shaw.ca> http://techrepublic.com.com/5138-6337-730174.html?tag=nl.e053 Don't forget to have a lawyer look at it and your O&E insurance is uptodate There are probably some Nolo Press Legal books that cover this. Lonnie Johnson wrote: >Does anyone know of a website that has very generic software consulting contracts you can download? > > >May God bless you beyond your imagination! >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > > > > > > > > >--------------------------------- > Yahoo! Mail > Use Photomail to share photos without annoying attachments. > > -- Marty Connelly Victoria, B.C. Canada From erbachs at gmail.com Thu Feb 9 15:48:06 2006 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 9 Feb 2006 15:48:06 -0600 Subject: [AccessD] Basic Query Design In-Reply-To: References: Message-ID: <39cb22f30602091348sb94348exbb8ee1a21060e6fd@mail.gmail.com> Charlotte, Right you are! I used them for a fancy report in an ASP project I did last year. Very interesting capability. Hard to tell whether it's worth the effort versus multiple queries to form those mutliple recordsets. Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security Blog: http://TheTownCrank.blogspot.com On 2/9/06, Charlotte Foust wrote: > LOL Try the SQL for shaped recordsets sometime if you want to cause > headaches! ;o> > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, February 09, 2006 7:36 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Basic Query Design > > > Stuart, > > Hah! The guy that came up with it is a professor in the Computer > Science Dept. at UW-Parkside in Kenosha, WI...right in my neck of the > woods. After showing this method and explaining how it's derived in > detail, he wrote, "Imagine presenting this to undergrads who have just a > lecture or two of SQL under their belts. You DO get the chance to talk > about scoping of aliases..." > > Steve Erbach > Scientific Marketing > Neenah, WI > http://TheTownCrank.blogspot.com From Mike.W.Gowey at doc.state.or.us Thu Feb 9 16:28:36 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 9 Feb 2006 15:28:36 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF486077808115B10@srciml1.ds.doc.state.or.us> Gustav, Sorry to be such a pest, when I create the tblCardID table it keeps putting at the top the Page4 number that has the least amount of records. For Example: Page4 Column2 CardID 17 0 69 17 1 70 17 1 71 18 0 72 18 0 73 18 1 74 18 1 75 19 0 76 19 0 77 19 1 78 19 1 79 20 0 80 20 0 81 20 1 82 20 1 83 So when I apply the query below to add records if needed if does not find any because the top records are 20 and already has 4 records but 17 has only 3 records. Any Idea why it does that? Thanks again -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 09, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike After you have (re)created the tblCardID table for sorting, you will need to run a second query which appends missing records to tblCardID up to a multiplum of four. If the last page has one card, it will add records for three empty cards, if two is present, then two cards are added, etc. Thus your two printing queries will always return full pages of four cards. This is the query (watch out, guru code): INSERT INTO tblCardID ( Page4, Column2, CardID ) SELECT TOP 4 [Page4]+1 AS PageMax, Column2, [CardID]+4 AS Card1 FROM tblCardID WHERE (([CardID]+4) Not In (Select Top 4 CardID From tblCardID Order By CardID DESC;)) AND ([Page4]= (Select Max(Page4)-1 From tblCardID;)) ORDER BY Page4 DESC, Column2 DESC, CardID DESC; /gustav >>> Mike.W.Gowey at doc.state.or.us 06-02-2006 19:01:06 >>> Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Thu Feb 9 20:17:28 2006 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 10 Feb 2006 13:17:28 +1100 Subject: [AccessD] SQL Server 2005 book Message-ID: <000e01c62de8$2509ce20$6501a8c0@user> Is Mike Gunderloy still on this list? I am getting a bit frustrated finding any decent resources to help me learn SQL Server 2005. I know Mike has a new book coming out "Mastering Microsoft SQL Server 2005" but I can't get it here (Australia) until July. I would love to find an early copy - it's just too hard to use the SQL 2000 books when so much terminology has changed and it's all new. Meanwhile I am using the new Books Online feature but I am one of those people who like to have a book. Or does anyone have any other books they would recommend? Kath From darrend at nimble.com.au Thu Feb 9 20:26:39 2006 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 10 Feb 2006 13:26:39 +1100 Subject: [AccessD] SQL Server 2005 book In-Reply-To: <000e01c62de8$2509ce20$6501a8c0@user> Message-ID: <20060210022641.DZST18661.omta02sl.mx.bigpond.com@DENZILLAP> Hi Kath Address it to Susan (Sales Harkins) as well Both Susan and Mike are co-writing it Susan is 'more than a lurker' on these pages Susan...oh Susan - are you there?? Hope it's all going well for you Kath See ya Darren ------------------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Friday, 10 February 2006 1:17 PM To: AccessD at databaseadvisors.com; dba-sqlserver at databaseadvisors.com Subject: [AccessD] SQL Server 2005 book Is Mike Gunderloy still on this list? I am getting a bit frustrated finding any decent resources to help me learn SQL Server 2005. I know Mike has a new book coming out "Mastering Microsoft SQL Server 2005" but I can't get it here (Australia) until July. I would love to find an early copy - it's just too hard to use the SQL 2000 books when so much terminology has changed and it's all new. Meanwhile I am using the new Books Online feature but I am one of those people who like to have a book. Or does anyone have any other books they would recommend? Kath -- 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 10 00:53:32 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 09 Feb 2006 22:53:32 -0800 Subject: [AccessD] OT: Affiliate Program Message-ID: <43EC386C.1090509@san.rr.com> Dear List: I have a web site where we are selling The Sleep Advisor (www.thesleepadvisor.com). Someone with an alternative health site has proposed to promote The Sleep Advisor on her site and send folks to our site. She asks if we have an affiliate program. Which we ain't. I looked into it a bit and it doesn't look trivial. Basically we need a way to know if someone visiting our site and buying The Sleep Advisor originated from her site. We're hosted by Affinity and have Urchin statistics but I don't see anything there that would be helpful right off. Does anyone know a slick, quick way to do this? MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From accessd at shaw.ca Fri Feb 10 03:09:55 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 10 Feb 2006 01:09:55 -0800 Subject: [AccessD] Basic Query Design In-Reply-To: <43EB3DCB.1966.1874CDCE@stuart.lexacorp.com.pg> Message-ID: <001f01c62e21$c2472a00$017ba8c0@xpserver> One note: Would this query allow the user to go for coffee while waiting for the results? 'Sub queries' and 'not exists' has certain reputations? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: February 8, 2006 7:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Basic Query Design On 8 Feb 2006 at 20:36, Steve Erbach wrote: > SELECT DISTINCT EmployeeID > FROM tblEmployeeCourse AS EC1 > WHERE NOT EXISTS > ( SELECT CourseID FROM tblCourse > WHERE CourseID In (1,2,4,5) AND NOT EXISTS > ( SELECT * FROM tblEmployeeCourse AS EC2 > WHERE EC2.CourseID = tblCourse.CourseID > AND EC2.EmployeeID = EC1.EmployeeID)) > Ouch! My head hurts! -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Feb 10 03:21:54 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 10 Feb 2006 12:21:54 +0300 Subject: [AccessD] OT: Affiliate Program References: <43EC386C.1090509@san.rr.com> Message-ID: <001e01c62e23$70d5ca30$6501a8c0@Nant> Rocky, Internet servers are usually able to keep raw logs of HTTP requests - these are seperate ASCII files and their records are well formatted and look like the sample log records from my site's today HTTP requests log in the P.S. of this message. I did plan for quite some time to write code to parse these records and to put them into database for further analysis but I didn't have good reasons to that for myself. Now, if nobody here will point on a ready to use solution then we can write, test and use such TCP/IP log parser together and when well done make it available on AccessD site for download... How about this idea? I can write some code for starters on weekend... Shamil P.S. HTTP requests sample log: 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET /robots.txt HTTP/1.1" 404 297 "-" "findlinks/1.1.1-a1 (+http://wortschatz.uni-leipzig.de/findlinks/)" 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD /shamil_s HTTP/1.1" 301 - "-" "LWP::Simple/5.803" 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD /shamil_s/ HTTP/1.1" 200 - "-" "LWP::Simple/5.803" 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s HTTP/1.1" 301 334 "http://www.jaja-jak-globusy.com/" "Poirot" ... 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET /shamil_s/pics/pole2.gif HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" ... 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET /robots.txt HTTP/1.0" 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" ... ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Friday, February 10, 2006 9:53 AM Subject: [AccessD] OT: Affiliate Program > Dear List: > > I have a web site where we are selling The Sleep Advisor > (www.thesleepadvisor.com). Someone with an alternative health site has > proposed to promote The Sleep Advisor on her site and send folks to our > site. She asks if we have an affiliate program. Which we ain't. > > I looked into it a bit and it doesn't look trivial. Basically we need a > way to know if someone visiting our site and buying The Sleep Advisor > originated from her site. We're hosted by Affinity and have Urchin > statistics but I don't see anything there that would be helpful right off. > > Does anyone know a slick, quick way to do this? > > MTIA > > Rocky > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Fri Feb 10 03:57:06 2006 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Fri, 10 Feb 2006 09:57:06 -0000 Subject: [AccessD] OT: Affiliate Program Message-ID: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk> Interesting project! I too had considered such a project in the past, but was daunted by the complexity. My web hosting company (DSVR) supports a product called Webalizer. This is a server-side (PERL?) jobbie that analyses log files. Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . Regards! Chris Foote > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Shamil > Salakhetdinov > Sent: Friday, February 10, 2006 9:22 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Affiliate Program > > > Rocky, > > Internet servers are usually able to keep raw logs of HTTP > requests - these > are seperate ASCII files and their records are well formatted > and look like > the sample log records from my site's today HTTP requests > log in the P.S. > of this message. > > I did plan for quite some time to write code to parse these > records and to > put them into database for further analysis but I didn't have > good reasons > to that for myself. > > Now, if nobody here will point on a ready to use solution > then we can write, > test and use such TCP/IP log parser together and when well done make > it available on AccessD site for download... > > How about this idea? I can write some code for starters on weekend... > > Shamil > > P.S. HTTP requests sample log: > > 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET > /robots.txt HTTP/1.1" 404 > 297 "-" "findlinks/1.1.1-a1 > (+http://wortschatz.uni-leipzig.de/findlinks/)" > > 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD > /shamil_s HTTP/1.1" > 301 - "-" "LWP::Simple/5.803" > > 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD > /shamil_s/ HTTP/1.1" > 200 - "-" "LWP::Simple/5.803" > > 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s > HTTP/1.1" 301 > 334 "http://www.jaja-jak-globusy.com/" "Poirot" > > ... > > 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET > /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 > "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 > (compatible; MSIE 6.0; > Windows NT 5.1; SV1; .NET CLR 1.1.4322)" > > 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET > /shamil_s/pics/pole2.gif > HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 > (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" > > ... > > 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET > /robots.txt HTTP/1.0" > 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; > http://help.yahoo.com/help/us/ysearch/slurp)" > > 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET > /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 > (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" ... From Gustav at cactus.dk Fri Feb 10 04:38:02 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Feb 2006 11:38:02 +0100 Subject: [AccessD] Post Card Printing Message-ID: Hi Mike That will happen if you don't use the right value for Offset. The right value will ensure that the first page is full having two Column2 of 0 followed by two of 1. Please read the explanation on this (below, from the original post). For your example data, it seems Offset should be -69. By second thought, you could easily pull this value automatically. This is the revised query doing that: SELECT ([ID]-[Offset])\4 AS Page4, (([ID]-[Offset])\2) Mod 2 AS Column2, ID AS CardID, (SELECT MIN(deliveryid) FROM tblYourTable;) AS Offset INTO tblCardID FROM tblYourTable; /gustav >>> Mike.W.Gowey at doc.state.or.us 09-02-2006 23:28:36 >>> Gustav, Sorry to be such a pest, when I create the tblCardID table it keeps putting at the top the Page4 number that has the least amount of records. For Example: Page4 Column2 CardID 17 0 69 17 1 70 17 1 71 18 0 72 18 0 73 18 1 74 18 1 75 19 0 76 19 0 77 19 1 78 19 1 79 20 0 80 20 0 81 20 1 82 20 1 83 So when I apply the query below to add records if needed if does not find any because the top records are 20 and already has 4 records but 17 has only 3 records. Any Idea why it does that? Thanks again -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 09, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike After you have (re)created the tblCardID table for sorting, you will need to run a second query which appends missing records to tblCardID up to a multiplum of four. If the last page has one card, it will add records for three empty cards, if two is present, then two cards are added, etc. Thus your two printing queries will always return full pages of four cards. This is the query (watch out, guru code): INSERT INTO tblCardID ( Page4, Column2, CardID ) SELECT TOP 4 [Page4]+1 AS PageMax, Column2, [CardID]+4 AS Card1 FROM tblCardID WHERE (([CardID]+4) Not In (Select Top 4 CardID From tblCardID Order By CardID DESC;)) AND ([Page4]= (Select Max(Page4)-1 From tblCardID;)) ORDER BY Page4 DESC, Column2 DESC, CardID DESC; /gustav >>> Mike.W.Gowey at doc.state.or.us 06-02-2006 19:01:06 >>> Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit From John.Clark at niagaracounty.com Fri Feb 10 06:34:06 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 10 Feb 2006 07:34:06 -0500 Subject: [AccessD] Possible or No? Message-ID: I use the code at the bottom to automatically come up with the next number in a series...in this case the next available indictment number. It works great, and I've used it in other programs...I wish I remembered who helped me with this...I've got it in one of my books somewhere, but I recently moved to a new office and I think it is packed somewhere...buuuuuut...they have thrown a wrench into the works. It works for standard, straightforward indictment numbers, but apparently they do a couple of different things, in different situations. One of these is, when multiple people are indicted on a crime (i.e. co-defendants) they would share the "main" indictment number, but a suffix would be added for each subsequent member, after the first entry. For example: Tom, Dick, and Harry get indicted on racketeering charges. Tom is entered first and is assigned the next available number, which is 2006-043. Then Dick is entered, but he doesn't get 2006-044; instead they want to give him 2006-043-1. They then want Harry to get 2006-043-2. There are also instances where there is a lowercase "a" assigned to it...I believe this is something about multiple indictments. I have found current numbers encompassing both these scenarios (2005-043a-1), which really musses things up. And a scenario where it designates handed down from fed court, which isn't a problem...I've just added a field for this and append it...it doesn't really affect the number. Whattaya think? While I was there I discovered that this number system is not anything mandated by the state, and one woman there refuses to follow this procedure, and instead creates a new indictment number for each defendant. This would actually be quite a bit easier on me...I'd be nearly done, with some minor work left. This tells me though, that maybe there needs to be a policy change rather than building the code, if it is possible to being with. Also, if I go through this trouble, and the "rebel" lady still ignores their process of doing things, there really isn't any way to force her through code...there is no way to recognize these people, before they are designated in the program. I'm thinking...depending on what y'all say...of giving them a call and asking about the possibility of changing this procedurally. I probably would have already, but it is one of those clients (department for me) that treats you real good, and you just want to give them whatever they want...you know they'll appreciate it. *** CODE BELOW *** Function NewControlNum() As String Dim strSQL As String Dim strNewID As String Dim rst As Recordset '"Right(Year(Now()),2)" & _ ...this line was in the code strSQL = "SELECT nz(Max(Mid([tblIndictment]![IndictmentNumber],6)),0)+1 AS lngMaxID," & _ "Year(Now())" & _ "& '-' & [lngMaxID] AS lngNewID " & _ "FROM tblIndictment " & _ "WHERE (((Left([tblIndictment]![IndictmentNumber],4))=Right(Year(Now()),4)));" Set rst = CodeDb.OpenRecordset(strSQL) With rst strNewID = rst!lngNewID rst.Close Set rst = Nothing End With NewControlNum = strNewID Rem *************************************************************************** Select Case Len(NewControlNum) Case 6 NewControlNum = Left(NewControlNum, 5) & "00" & Right(NewControlNum, 1) Case 7 NewControlNum = Left(NewControlNum, 5) & "0" & Right(NewControlNum, 2) End Select End Function From Gustav at cactus.dk Fri Feb 10 07:00:16 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Feb 2006 14:00:16 +0100 Subject: [AccessD] Possible or No? Message-ID: Hi John That is a dirty road. 2006-043 represented a person. Now it would represent a crime while persons would be 2006-043-0, 2006-043-1, 2006-043-2 etc. Not to comment on the "a" suffix ... A true mess. /gustav From Mike.W.Gowey at doc.state.or.us Fri Feb 10 08:51:30 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Fri, 10 Feb 2006 07:51:30 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBE7@srciml1.ds.doc.state.or.us> Thanks Gustav I thought I was getting the right Offset cause it would work sometimes, but this way works much better. Works everytime now. Thanks again, I can finally put this part to rest and concentrate on the rest of the program. -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 10, 2006 3:38 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike That will happen if you don't use the right value for Offset. The right value will ensure that the first page is full having two Column2 of 0 followed by two of 1. Please read the explanation on this (below, from the original post). For your example data, it seems Offset should be -69. By second thought, you could easily pull this value automatically. This is the revised query doing that: SELECT ([ID]-[Offset])\4 AS Page4, (([ID]-[Offset])\2) Mod 2 AS Column2, ID AS CardID, (SELECT MIN(deliveryid) FROM tblYourTable;) AS Offset INTO tblCardID FROM tblYourTable; /gustav >>> Mike.W.Gowey at doc.state.or.us 09-02-2006 23:28:36 >>> Gustav, Sorry to be such a pest, when I create the tblCardID table it keeps putting at the top the Page4 number that has the least amount of records. For Example: Page4 Column2 CardID 17 0 69 17 1 70 17 1 71 18 0 72 18 0 73 18 1 74 18 1 75 19 0 76 19 0 77 19 1 78 19 1 79 20 0 80 20 0 81 20 1 82 20 1 83 So when I apply the query below to add records if needed if does not find any because the top records are 20 and already has 4 records but 17 has only 3 records. Any Idea why it does that? Thanks again -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 09, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike After you have (re)created the tblCardID table for sorting, you will need to run a second query which appends missing records to tblCardID up to a multiplum of four. If the last page has one card, it will add records for three empty cards, if two is present, then two cards are added, etc. Thus your two printing queries will always return full pages of four cards. This is the query (watch out, guru code): INSERT INTO tblCardID ( Page4, Column2, CardID ) SELECT TOP 4 [Page4]+1 AS PageMax, Column2, [CardID]+4 AS Card1 FROM tblCardID WHERE (([CardID]+4) Not In (Select Top 4 CardID From tblCardID Order By CardID DESC;)) AND ([Page4]= (Select Max(Page4)-1 From tblCardID;)) ORDER BY Page4 DESC, Column2 DESC, CardID DESC; /gustav >>> Mike.W.Gowey at doc.state.or.us 06-02-2006 19:01:06 >>> Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lmrazek at lcm-res.com Fri Feb 10 09:10:08 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Fri, 10 Feb 2006 09:10:08 -0600 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <43EC386C.1090509@san.rr.com> Message-ID: <029d01c62e54$14e5c190$036fa8c0@hplaptop> Hi Rocky: If she is constructing the links, could she add a query string to the URL (EX: http://www.thesleepadvisor.com/index.asp?AffiliateID=1)? Depending on your server model, then you could add code to automatically detect the query string and log it to a database/session variable/cookie (using server side code). Then on a successful order, your system looks for the db value/session variable/cookie and adds it to the order record. Hope this helps. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -----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 10, 2006 12:54 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Affiliate Program Dear List: I have a web site where we are selling The Sleep Advisor (www.thesleepadvisor.com). Someone with an alternative health site has proposed to promote The Sleep Advisor on her site and send folks to our site. She asks if we have an affiliate program. Which we ain't. I looked into it a bit and it doesn't look trivial. Basically we need a way to know if someone visiting our site and buying The Sleep Advisor originated from her site. We're hosted by Affinity and have Urchin statistics but I don't see anything there that would be helpful right off. Does anyone know a slick, quick way to do this? MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Feb 10 09:15:33 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 07:15:33 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <001e01c62e23$70d5ca30$6501a8c0@Nant> References: <43EC386C.1090509@san.rr.com> <001e01c62e23$70d5ca30$6501a8c0@Nant> Message-ID: <43ECAE15.8010609@san.rr.com> Shamil: I wrote a crude app to parse the log files from my E-Z-MRP web site. I put it up on www.e-z-mrp.com/ftpguest for you to download and take a look. Maybe it will help. My purpose was just to do page counts and if you look at the query 'qryCountsofMajorPagesByMonth' you'll see what I'm using this app for. My log files look like the same format as yours. I always wondered what those extra fields were for. Can they be used somehow to track sales? What we need is a way to know if someone went to our site from her site, ended up on the order page and placed an order. You can download the product from our site but most people place an order for it to be shipped to them. Some of the info I've seen on affiliate programs seems to indicate that they work with downloadable products versus shippable. An alternative I was thinking about was to put some kind of coupon or discount code on her site where people can link to us and have a place on our order page where the buyer can key in the coupon or discount code and modify the code to give the discount. This way we could set up discount codes for different affiliates or put a discount coupon as an insert in a publication. New territory for me. Hope the list will tolerate this bit of OT for a few days. Thanks for the help. Regards, Rocky Shamil Salakhetdinov wrote: > Rocky, > > Internet servers are usually able to keep raw logs of HTTP requests - these > are seperate ASCII files and their records are well formatted and look like > the sample log records from my site's today HTTP requests log in the P.S. > of this message. > > I did plan for quite some time to write code to parse these records and to > put them into database for further analysis but I didn't have good reasons > to that for myself. > > Now, if nobody here will point on a ready to use solution then we can write, > test and use such TCP/IP log parser together and when well done make > it available on AccessD site for download... > > How about this idea? I can write some code for starters on weekend... > > Shamil > > P.S. HTTP requests sample log: > > 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET /robots.txt HTTP/1.1" 404 > 297 "-" "findlinks/1.1.1-a1 (+http://wortschatz.uni-leipzig.de/findlinks/)" > > 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD /shamil_s HTTP/1.1" > 301 - "-" "LWP::Simple/5.803" > > 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD /shamil_s/ HTTP/1.1" > 200 - "-" "LWP::Simple/5.803" > > 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s HTTP/1.1" 301 > 334 "http://www.jaja-jak-globusy.com/" "Poirot" > > ... > > 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET > /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 > "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 (compatible; MSIE 6.0; > Windows NT 5.1; SV1; .NET CLR 1.1.4322)" > > 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET /shamil_s/pics/pole2.gif > HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 > (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" > > ... > > 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET /robots.txt HTTP/1.0" > 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; > http://help.yahoo.com/help/us/ysearch/slurp)" > > 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET > /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 > (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" > > 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET > /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 > (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" > > ... > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: "Access Developers discussion and problem solving" > > Sent: Friday, February 10, 2006 9:53 AM > Subject: [AccessD] OT: Affiliate Program > > > >> Dear List: >> >> I have a web site where we are selling The Sleep Advisor >> (www.thesleepadvisor.com). Someone with an alternative health site has >> proposed to promote The Sleep Advisor on her site and send folks to our >> site. She asks if we have an affiliate program. Which we ain't. >> >> I looked into it a bit and it doesn't look trivial. Basically we need a >> way to know if someone visiting our site and buying The Sleep Advisor >> originated from her site. We're hosted by Affinity and have Urchin >> statistics but I don't see anything there that would be helpful right off. >> >> Does anyone know a slick, quick way to do this? >> >> MTIA >> >> Rocky >> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Gustav at cactus.dk Fri Feb 10 09:14:56 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Feb 2006 16:14:56 +0100 Subject: [AccessD] Post Card Printing Message-ID: Hi Mike Great. Have a nice weekend! /gustav >>> Mike.W.Gowey at doc.state.or.us 10-02-2006 15:51:30 >>> Thanks Gustav I thought I was getting the right Offset cause it would work sometimes, but this way works much better. Works everytime now. Thanks again, I can finally put this part to rest and concentrate on the rest of the program. From shamil at users.mns.ru Fri Feb 10 09:27:07 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 10 Feb 2006 18:27:07 +0300 Subject: [AccessD] OT: Affiliate Program References: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk> Message-ID: <002801c62e56$758b81e0$6501a8c0@Nant> <<< > Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . >>> Yes, Chris my ISP collects/presents similar statistics for my site: http://www.smsconsulting.spb.ru/acclogs/hourly_usage_200601.png http://www.smsconsulting.spb.ru/acclogs/daily_usage_200601.png http://www.smsconsulting.spb.ru/acclogs/usage_200601.html8 But Rocky needs raw information to analyze his site activity generated by his affilate sites - I think such information can be extracted from HTTP log records but I don't know how this HTTP logging works in details. My guess is that the first entry via affilate site should have this site's identifier in URL, which can be extracted and linked with all the following activity of the IP address presented as the first element of the entry log record... Shamil ----- Original Message ----- From: "Foote, Chris" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 10, 2006 12:57 PM Subject: Re: [AccessD] OT: Affiliate Program > Interesting project! > > I too had considered such a project in the past, but was daunted by the > complexity. > > My web hosting company (DSVR) supports a product called Webalizer. This is > a > server-side (PERL?) jobbie that analyses log files. > > Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . > > Regards! > Chris Foote > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Shamil >> Salakhetdinov >> Sent: Friday, February 10, 2006 9:22 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] OT: Affiliate Program >> >> >> Rocky, >> >> Internet servers are usually able to keep raw logs of HTTP >> requests - these >> are seperate ASCII files and their records are well formatted >> and look like >> the sample log records from my site's today HTTP requests >> log in the P.S. >> of this message. >> >> I did plan for quite some time to write code to parse these >> records and to >> put them into database for further analysis but I didn't have >> good reasons >> to that for myself. >> >> Now, if nobody here will point on a ready to use solution >> then we can write, >> test and use such TCP/IP log parser together and when well done make >> it available on AccessD site for download... >> >> How about this idea? I can write some code for starters on weekend... >> >> Shamil >> >> P.S. HTTP requests sample log: >> >> 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET >> /robots.txt HTTP/1.1" 404 >> 297 "-" "findlinks/1.1.1-a1 >> (+http://wortschatz.uni-leipzig.de/findlinks/)" >> >> 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD >> /shamil_s HTTP/1.1" >> 301 - "-" "LWP::Simple/5.803" >> >> 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD >> /shamil_s/ HTTP/1.1" >> 200 - "-" "LWP::Simple/5.803" >> >> 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s >> HTTP/1.1" 301 >> 334 "http://www.jaja-jak-globusy.com/" "Poirot" >> >> ... >> >> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >> /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 >> "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >> (compatible; MSIE 6.0; >> Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >> >> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >> /shamil_s/pics/pole2.gif >> HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >> (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >> >> ... >> >> 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET >> /robots.txt HTTP/1.0" >> 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; >> http://help.yahoo.com/help/us/ysearch/slurp)" >> >> 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET >> /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 >> (compatible; Yahoo! Slurp; > http://help.yahoo.com/help/us/ysearch/slurp)" > > 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET > /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 > (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" > > ... > -- > 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 10 09:43:46 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 07:43:46 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <029d01c62e54$14e5c190$036fa8c0@hplaptop> References: <029d01c62e54$14e5c190$036fa8c0@hplaptop> Message-ID: <43ECB4B2.6020209@san.rr.com> Larry: We use PayPal for ordering. When they click on the Order Button they go to the paypal page where they may or may not complete the order. Does this make the cookie approach problematical? TIA Rocky Lawrence Mrazek wrote: > Hi Rocky: > > If she is constructing the links, could she add a query string to the URL > (EX: http://www.thesleepadvisor.com/index.asp?AffiliateID=1)? Depending on > your server model, then you could add code to automatically detect the query > string and log it to a database/session variable/cookie (using server side > code). Then on a successful order, your system looks for the db > value/session variable/cookie and adds it to the order record. > > Hope this helps. > > Larry Mrazek > LCM Research, Inc. > www.lcm-res.com > lmrazek at lcm-res.com > ph. 314-432-5886 > fx. 314-432-3304 > > -----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 10, 2006 12:54 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT: Affiliate Program > > Dear List: > > I have a web site where we are selling The Sleep Advisor > (www.thesleepadvisor.com). Someone with an alternative health site has > proposed to promote The Sleep Advisor on her site and send folks to our > site. She asks if we have an affiliate program. Which we ain't. > > I looked into it a bit and it doesn't look trivial. Basically we need a way > to know if someone visiting our site and buying The Sleep Advisor originated > from her site. We're hosted by Affinity and have Urchin statistics but I > don't see anything there that would be helpful right off. > > Does anyone know a slick, quick way to do this? > > MTIA > > Rocky > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Fri Feb 10 09:46:21 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 07:46:21 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <002801c62e56$758b81e0$6501a8c0@Nant> References: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk> <002801c62e56$758b81e0$6501a8c0@Nant> Message-ID: <43ECB54D.20105@san.rr.com> Shamil: More than that I need to know where a sale came from (actually, knowing the number of visitors generated from an affiliate would be interesting but not really necessary). And since our order button links to PayPal, this may be a problem. They may or may not complete the order there. Rocky Shamil Salakhetdinov wrote: > <<< > >> Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . >> > Yes, Chris my ISP collects/presents similar statistics for my site: > > http://www.smsconsulting.spb.ru/acclogs/hourly_usage_200601.png > http://www.smsconsulting.spb.ru/acclogs/daily_usage_200601.png > http://www.smsconsulting.spb.ru/acclogs/usage_200601.html8 > > But Rocky needs raw information to analyze his site activity generated by > his affilate sites - I think such information can be extracted from HTTP log > records but I don't know how this HTTP logging works in details. My guess is > that the first entry via affilate site should have this site's identifier in > URL, which can be extracted and linked with all the following activity of > the IP address presented as the first element of the entry log record... > > Shamil > > ----- Original Message ----- > From: "Foote, Chris" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, February 10, 2006 12:57 PM > Subject: Re: [AccessD] OT: Affiliate Program > > > >> Interesting project! >> >> I too had considered such a project in the past, but was daunted by the >> complexity. >> >> My web hosting company (DSVR) supports a product called Webalizer. This is >> a >> server-side (PERL?) jobbie that analyses log files. >> >> Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . >> >> Regards! >> Chris Foote >> >> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Shamil >>> Salakhetdinov >>> Sent: Friday, February 10, 2006 9:22 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] OT: Affiliate Program >>> >>> >>> Rocky, >>> >>> Internet servers are usually able to keep raw logs of HTTP >>> requests - these >>> are seperate ASCII files and their records are well formatted >>> and look like >>> the sample log records from my site's today HTTP requests >>> log in the P.S. >>> of this message. >>> >>> I did plan for quite some time to write code to parse these >>> records and to >>> put them into database for further analysis but I didn't have >>> good reasons >>> to that for myself. >>> >>> Now, if nobody here will point on a ready to use solution >>> then we can write, >>> test and use such TCP/IP log parser together and when well done make >>> it available on AccessD site for download... >>> >>> How about this idea? I can write some code for starters on weekend... >>> >>> Shamil >>> >>> P.S. HTTP requests sample log: >>> >>> 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET >>> /robots.txt HTTP/1.1" 404 >>> 297 "-" "findlinks/1.1.1-a1 >>> (+http://wortschatz.uni-leipzig.de/findlinks/)" >>> >>> 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD >>> /shamil_s HTTP/1.1" >>> 301 - "-" "LWP::Simple/5.803" >>> >>> 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD >>> /shamil_s/ HTTP/1.1" >>> 200 - "-" "LWP::Simple/5.803" >>> >>> 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s >>> HTTP/1.1" 301 >>> 334 "http://www.jaja-jak-globusy.com/" "Poirot" >>> >>> ... >>> >>> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >>> /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 >>> "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >>> (compatible; MSIE 6.0; >>> Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >>> >>> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >>> /shamil_s/pics/pole2.gif >>> HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >>> (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >>> >>> ... >>> >>> 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET >>> /robots.txt HTTP/1.0" >>> 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; >>> http://help.yahoo.com/help/us/ysearch/slurp)" >>> >>> 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET >>> /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 >>> (compatible; Yahoo! Slurp; >>> >> http://help.yahoo.com/help/us/ysearch/slurp)" >> >> 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET >> /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 >> (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" >> >> ... >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From darsant at gmail.com Fri Feb 10 09:57:08 2006 From: darsant at gmail.com (Josh McFarlane) Date: Fri, 10 Feb 2006 09:57:08 -0600 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <43ECB54D.20105@san.rr.com> References: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk> <002801c62e56$758b81e0$6501a8c0@Nant> <43ECB54D.20105@san.rr.com> Message-ID: <53c8e05a0602100757g719bbc28ta1a8d4738adfb50@mail.gmail.com> On 2/10/06, Rocky Smolin - Beach Access Software wrote: > Shamil: > > More than that I need to know where a sale came from (actually, knowing > the number of visitors generated from an affiliate would be interesting > but not really necessary). And since our order button links to PayPal, > this may be a problem. They may or may not complete the order there. > > Rocky May be a sort of pain, but if you changed your ordering process so they ordered it from your website first, and then the final step to complete the transaction was to go through paypal, you could tag the orders created on your site with the Affiliate ID. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From bchacc at san.rr.com Fri Feb 10 10:02:12 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 08:02:12 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <53c8e05a0602100757g719bbc28ta1a8d4738adfb50@mail.gmail.com> References: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk> <002801c62e56$758b81e0$6501a8c0@Nant> <43ECB54D.20105@san.rr.com> <53c8e05a0602100757g719bbc28ta1a8d4738adfb50@mail.gmail.com> Message-ID: <43ECB904.60808@san.rr.com> If they got to the PayPal site (where they actually put in their credit card) and bailed at that point would we have registered a sale to that affiliate but not made the sale? Rocky Josh McFarlane wrote: > On 2/10/06, Rocky Smolin - Beach Access Software wrote: > >> Shamil: >> >> More than that I need to know where a sale came from (actually, knowing >> the number of visitors generated from an affiliate would be interesting >> but not really necessary). And since our order button links to PayPal, >> this may be a problem. They may or may not complete the order there. >> >> Rocky >> > > May be a sort of pain, but if you changed your ordering process so > they ordered it from your website first, and then the final step to > complete the transaction was to go through paypal, you could tag the > orders created on your site with the Affiliate ID. > > -- > Josh McFarlane > > "Peace cannot be kept by force. It can only be achieved by understanding." > -Albert Einstein > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From carbonnb at gmail.com Fri Feb 10 10:10:51 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 10 Feb 2006 11:10:51 -0500 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <43ECB904.60808@san.rr.com> References: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk> <002801c62e56$758b81e0$6501a8c0@Nant> <43ECB54D.20105@san.rr.com> <53c8e05a0602100757g719bbc28ta1a8d4738adfb50@mail.gmail.com> <43ECB904.60808@san.rr.com> Message-ID: On 10/02/06, Rocky Smolin - Beach Access Software wrote: > If they got to the PayPal site (where they actually put in their credit > card) and bailed at that point would we have registered a sale to that > affiliate but not made the sale? Does PayPal give the purchaser a spot to add comments or referal/coupon codes? Maybe use that, and trust the user to enter it? -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From cfoust at infostatsystems.com Fri Feb 10 10:11:43 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Feb 2006 08:11:43 -0800 Subject: [AccessD] Basic Query Design Message-ID: It is when you're using them to populate a datagrid. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Thursday, February 09, 2006 1:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Basic Query Design Charlotte, Right you are! I used them for a fancy report in an ASP project I did last year. Very interesting capability. Hard to tell whether it's worth the effort versus multiple queries to form those mutliple recordsets. Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security Blog: http://TheTownCrank.blogspot.com On 2/9/06, Charlotte Foust wrote: > LOL Try the SQL for shaped recordsets sometime if you want to cause > headaches! ;o> > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > Erbach > Sent: Thursday, February 09, 2006 7:36 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Basic Query Design > > > Stuart, > > Hah! The guy that came up with it is a professor in the Computer > Science Dept. at UW-Parkside in Kenosha, WI...right in my neck of the > woods. After showing this method and explaining how it's derived in > detail, he wrote, "Imagine presenting this to undergrads who have just > a lecture or two of SQL under their belts. You DO get the chance to > talk about scoping of aliases..." > > Steve Erbach > Scientific Marketing > Neenah, WI > http://TheTownCrank.blogspot.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Feb 10 10:22:04 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 10 Feb 2006 19:22:04 +0300 Subject: [AccessD] OT: Affiliate Program References: <43EC386C.1090509@san.rr.com> <001e01c62e23$70d5ca30$6501a8c0@Nant> <43ECAE15.8010609@san.rr.com> Message-ID: <000801c62e5e$253bd700$6501a8c0@Nant> Rocky, I just made a simple test - created simple HTML page on one of my test sites: http://4auto.biz/apps/testAffilate.htm And from this web page made a link to http://www.smsconsulting.spb.ru/affilates/test.htm?ID=1 When I went through this test route I found the following HTTP log record in my logs: 10.1.1.181 - - [10/Feb/2006:18:28:57 +0300] "GET /affilates/test.htm?ID=1 HTTP/1.1" 304 - "http://4auto.biz/apps/testAffilate.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)" where: - 10.1.1.181 is my PC's IP address in the LAN of my ISP provider; - http://4auto.biz/apps/testAffilate.htm - the URL of the page, which generated this HTTP log record (for you it will be your affilate's URL); - GET /affilates/test.htm?ID=1 HTTP/1.1 - is the HTTP request generated by previous URL Now you have 10.1.1.181 linked to the info that it came from http://4auto.biz/apps/testAffilate.htm with ID=1 (ID defines your different products, which an affilate can sell from their site). The entered page on your site (/affilates/test.htm?ID=1 in my sample) should be a dynamic Web page generating the URL to follow with affilate and product Id and unique coupon ID as parameters to track your customer's activity until they order your software/service entering coupon Id on last step (the coupon ID could be also static and corresponding HTML page aslo static - then this coupon would be a unique ID for a given affilate/your software product.service pair)... You can then automatically analyze the activity of 10.1.1.181 in your HTTP log records and find that it will result in opening your order page and placing order for your software or getting subscription to your service using unique/fixed coupon Id - then you can pay your affilates for bringing a paying customer to your site... Maybe it can be done simpler - it is new territory for me too - I'm just thinking how it can be done... Shamil ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Cc: "rubin Naiman" Sent: Friday, February 10, 2006 6:15 PM Subject: Re: [AccessD] OT: Affiliate Program > Shamil: > > I wrote a crude app to parse the log files from my E-Z-MRP web site. I > put it up on www.e-z-mrp.com/ftpguest for you to download and take a > look. Maybe it will help. My purpose was just to do page counts and if > you look at the query 'qryCountsofMajorPagesByMonth' you'll see what I'm > using this app for. My log files look like the same format as yours. > > I always wondered what those extra fields were for. Can they be used > somehow to track sales? What we need is a way to know if someone went > to our site from her site, ended up on the order page and placed an > order. You can download the product from our site but most people place > an order for it to be shipped to them. Some of the info I've seen on > affiliate programs seems to indicate that they work with downloadable > products versus shippable. > > An alternative I was thinking about was to put some kind of coupon or > discount code on her site where people can link to us and have a place > on our order page where the buyer can key in the coupon or discount code > and modify the code to give the discount. This way we could set up > discount codes for different affiliates or put a discount coupon as an > insert in a publication. > > New territory for me. Hope the list will tolerate this bit of OT for a > few days. > > Thanks for the help. > > Regards, > > Rocky > > Shamil Salakhetdinov wrote: >> Rocky, >> >> Internet servers are usually able to keep raw logs of HTTP requests - >> these >> are seperate ASCII files and their records are well formatted and look >> like >> the sample log records from my site's today HTTP requests log in the >> P.S. >> of this message. >> >> I did plan for quite some time to write code to parse these records and >> to >> put them into database for further analysis but I didn't have good >> reasons >> to that for myself. >> >> Now, if nobody here will point on a ready to use solution then we can >> write, >> test and use such TCP/IP log parser together and when well done make >> it available on AccessD site for download... >> >> How about this idea? I can write some code for starters on weekend... >> >> Shamil >> >> P.S. HTTP requests sample log: >> >> 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET /robots.txt HTTP/1.1" >> 404 >> 297 "-" "findlinks/1.1.1-a1 >> (+http://wortschatz.uni-leipzig.de/findlinks/)" >> >> 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD /shamil_s HTTP/1.1" >> 301 - "-" "LWP::Simple/5.803" >> >> 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD /shamil_s/ HTTP/1.1" >> 200 - "-" "LWP::Simple/5.803" >> >> 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s HTTP/1.1" >> 301 >> 334 "http://www.jaja-jak-globusy.com/" "Poirot" >> >> ... >> >> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >> /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 >> "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 (compatible; MSIE >> 6.0; >> Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >> >> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >> /shamil_s/pics/pole2.gif >> HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >> (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >> >> ... >> >> 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET /robots.txt HTTP/1.0" >> 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; >> http://help.yahoo.com/help/us/ysearch/slurp)" >> >> 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET >> /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 >> (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" >> >> 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET >> /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 >> (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" >> >> ... >> >> ----- Original Message ----- >> From: "Rocky Smolin - Beach Access Software" >> To: "Access Developers discussion and problem solving" >> >> Sent: Friday, February 10, 2006 9:53 AM >> Subject: [AccessD] OT: Affiliate Program >> >> >> >>> Dear List: >>> >>> I have a web site where we are selling The Sleep Advisor >>> (www.thesleepadvisor.com). Someone with an alternative health site has >>> proposed to promote The Sleep Advisor on her site and send folks to our >>> site. She asks if we have an affiliate program. Which we ain't. >>> >>> I looked into it a bit and it doesn't look trivial. Basically we need a >>> way to know if someone visiting our site and buying The Sleep Advisor >>> originated from her site. We're hosted by Affinity and have Urchin >>> statistics but I don't see anything there that would be helpful right >>> off. >>> >>> Does anyone know a slick, quick way to do this? >>> >>> MTIA >>> >>> Rocky >>> >>> -- >>> Rocky Smolin >>> Beach Access Software >>> 858-259-4334 >>> www.e-z-mrp.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Feb 10 10:26:32 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 10 Feb 2006 19:26:32 +0300 Subject: [AccessD] OT: Affiliate Program References: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk><002801c62e56$758b81e0$6501a8c0@Nant> <43ECB54D.20105@san.rr.com> Message-ID: <001701c62e5e$c2a562e0$6501a8c0@Nant> <<< They may or may not complete the order there. >>> Yes, Rocky, but if the order coupon/Id (fixed for affilate/product pair or generated when customers enter your page via affilate's site) will be put in the next page after entry page URL as parameter and then entered when order is placed then you can use it to join HTTP log and your/paypal order database info.... Shamil ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Friday, February 10, 2006 6:46 PM Subject: Re: [AccessD] OT: Affiliate Program > Shamil: > > More than that I need to know where a sale came from (actually, knowing > the number of visitors generated from an affiliate would be interesting > but not really necessary). And since our order button links to PayPal, > this may be a problem. They may or may not complete the order there. > > Rocky > > > Shamil Salakhetdinov wrote: >> <<< >> >>> Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . >>> >> Yes, Chris my ISP collects/presents similar statistics for my site: >> >> http://www.smsconsulting.spb.ru/acclogs/hourly_usage_200601.png >> http://www.smsconsulting.spb.ru/acclogs/daily_usage_200601.png >> http://www.smsconsulting.spb.ru/acclogs/usage_200601.html8 >> >> But Rocky needs raw information to analyze his site activity generated by >> his affilate sites - I think such information can be extracted from HTTP >> log >> records but I don't know how this HTTP logging works in details. My guess >> is >> that the first entry via affilate site should have this site's identifier >> in >> URL, which can be extracted and linked with all the following activity of >> the IP address presented as the first element of the entry log record... >> >> Shamil >> >> ----- Original Message ----- >> From: "Foote, Chris" >> To: "'Access Developers discussion and problem solving'" >> >> Sent: Friday, February 10, 2006 12:57 PM >> Subject: Re: [AccessD] OT: Affiliate Program >> >> >> >>> Interesting project! >>> >>> I too had considered such a project in the past, but was daunted by the >>> complexity. >>> >>> My web hosting company (DSVR) supports a product called Webalizer. This >>> is >>> a >>> server-side (PERL?) jobbie that analyses log files. >>> >>> Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . >>> >>> Regards! >>> Chris Foote >>> >>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Shamil >>>> Salakhetdinov >>>> Sent: Friday, February 10, 2006 9:22 AM >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] OT: Affiliate Program >>>> >>>> >>>> Rocky, >>>> >>>> Internet servers are usually able to keep raw logs of HTTP >>>> requests - these >>>> are seperate ASCII files and their records are well formatted >>>> and look like >>>> the sample log records from my site's today HTTP requests >>>> log in the P.S. >>>> of this message. >>>> >>>> I did plan for quite some time to write code to parse these >>>> records and to >>>> put them into database for further analysis but I didn't have >>>> good reasons >>>> to that for myself. >>>> >>>> Now, if nobody here will point on a ready to use solution >>>> then we can write, >>>> test and use such TCP/IP log parser together and when well done make >>>> it available on AccessD site for download... >>>> >>>> How about this idea? I can write some code for starters on weekend... >>>> >>>> Shamil >>>> >>>> P.S. HTTP requests sample log: >>>> >>>> 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET >>>> /robots.txt HTTP/1.1" 404 >>>> 297 "-" "findlinks/1.1.1-a1 >>>> (+http://wortschatz.uni-leipzig.de/findlinks/)" >>>> >>>> 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD >>>> /shamil_s HTTP/1.1" >>>> 301 - "-" "LWP::Simple/5.803" >>>> >>>> 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD >>>> /shamil_s/ HTTP/1.1" >>>> 200 - "-" "LWP::Simple/5.803" >>>> >>>> 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s >>>> HTTP/1.1" 301 >>>> 334 "http://www.jaja-jak-globusy.com/" "Poirot" >>>> >>>> ... >>>> >>>> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >>>> /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 >>>> "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >>>> (compatible; MSIE 6.0; >>>> Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >>>> >>>> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >>>> /shamil_s/pics/pole2.gif >>>> HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >>>> (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >>>> >>>> ... >>>> >>>> 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET >>>> /robots.txt HTTP/1.0" >>>> 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; >>>> http://help.yahoo.com/help/us/ysearch/slurp)" >>>> >>>> 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET >>>> /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 >>>> (compatible; Yahoo! Slurp; >>>> >>> http://help.yahoo.com/help/us/ysearch/slurp)" >>> >>> 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET >>> /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 >>> (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" >>> >>> ... >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Feb 10 10:31:52 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 08:31:52 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: References: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk> <002801c62e56$758b81e0$6501a8c0@Nant> <43ECB54D.20105@san.rr.com> <53c8e05a0602100757g719bbc28ta1a8d4738adfb50@mail.gmail.com> <43ECB904.60808@san.rr.com> Message-ID: <43ECBFF8.2040406@san.rr.com> That's what I'm thinking now. Free first class mail shipping or maybe $5 discount. Rocky Bryan Carbonnell wrote: > On 10/02/06, Rocky Smolin - Beach Access Software wrote: > >> If they got to the PayPal site (where they actually put in their credit >> card) and bailed at that point would we have registered a sale to that >> affiliate but not made the sale? >> > > Does PayPal give the purchaser a spot to add comments or referal/coupon codes? > > Maybe use that, and trust the user to enter it? > > -- > Bryan Carbonnell - carbonnb at gmail.com > Life's journey is not to arrive at the grave safely in a well > preserved body, but rather to skid in sideways, totally worn out, > shouting "What a great ride!" > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dwaters at usinternet.com Fri Feb 10 10:32:05 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 10 Feb 2006 10:32:05 -0600 Subject: [AccessD] Case Is = Null ?? Message-ID: <000401c62e5f$8766a620$0200a8c0@danwaters> I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan From bchacc at san.rr.com Fri Feb 10 10:37:31 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 08:37:31 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <000801c62e5e$253bd700$6501a8c0@Nant> References: <43EC386C.1090509@san.rr.com> <001e01c62e23$70d5ca30$6501a8c0@Nant> <43ECAE15.8010609@san.rr.com> <000801c62e5e$253bd700$6501a8c0@Nant> Message-ID: <43ECC14B.9050001@san.rr.com> Shamil: Will this work for non-static IP addresses? (Is that the right question?) My IP address on someone else's web site is actually my ISP's. I think. Second, we don't have our own order page. We use PayPal and avoided the whole gateway company interface thing. (PayPal takes about the same cut as a gateway company). So would this create a problem? I'm leaning now towards a coupon or discount code that we can save in the sales record which would give free shipping or $5 off and that would enable us to link a specific sale to an affiliate and also support multiple affiliates with different codes plus a unique discount code if we ran an ad or put a flyer into some publication. Rocky Shamil Salakhetdinov wrote: > Rocky, > > I just made a simple test - created simple HTML page on one of my test > sites: > > http://4auto.biz/apps/testAffilate.htm > > And from this web page made a link to > > http://www.smsconsulting.spb.ru/affilates/test.htm?ID=1 > > When I went through this test route I found the following HTTP log record in > my logs: > > 10.1.1.181 - - [10/Feb/2006:18:28:57 +0300] "GET /affilates/test.htm?ID=1 > HTTP/1.1" 304 - "http://4auto.biz/apps/testAffilate.htm" "Mozilla/4.0 > (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR > 2.0.50727)" > > where: > > - 10.1.1.181 is my PC's IP address in the LAN of my ISP provider; > - http://4auto.biz/apps/testAffilate.htm - the URL of the page, which > generated this HTTP log record (for you it will be your affilate's URL); > - GET /affilates/test.htm?ID=1 HTTP/1.1 - is the HTTP request generated by > previous URL > > Now you have 10.1.1.181 linked to the info that it came from > http://4auto.biz/apps/testAffilate.htm with ID=1 (ID defines your different > products, which an affilate can sell from their site). > > The entered page on your site (/affilates/test.htm?ID=1 in my sample) should > be a dynamic Web page generating the URL to follow with affilate and product > Id and unique coupon ID as parameters to track your customer's activity > until they order your software/service entering coupon Id on last step (the > coupon ID could be also static and corresponding HTML page aslo static - > then this coupon would be a unique ID for a given affilate/your software > product.service pair)... > > You can then automatically analyze the activity of 10.1.1.181 in your HTTP > log records and find that it will result in opening your order page and > placing order for your software or getting subscription to your service > using unique/fixed coupon Id - then you can pay your affilates for bringing > a paying customer to your site... > > Maybe it can be done simpler - it is new territory for me too - I'm just > thinking how it can be done... > > Shamil > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: "Access Developers discussion and problem solving" > > Cc: "rubin Naiman" > Sent: Friday, February 10, 2006 6:15 PM > Subject: Re: [AccessD] OT: Affiliate Program > > > >> Shamil: >> >> I wrote a crude app to parse the log files from my E-Z-MRP web site. I >> put it up on www.e-z-mrp.com/ftpguest for you to download and take a >> look. Maybe it will help. My purpose was just to do page counts and if >> you look at the query 'qryCountsofMajorPagesByMonth' you'll see what I'm >> using this app for. My log files look like the same format as yours. >> >> I always wondered what those extra fields were for. Can they be used >> somehow to track sales? What we need is a way to know if someone went >> to our site from her site, ended up on the order page and placed an >> order. You can download the product from our site but most people place >> an order for it to be shipped to them. Some of the info I've seen on >> affiliate programs seems to indicate that they work with downloadable >> products versus shippable. >> >> An alternative I was thinking about was to put some kind of coupon or >> discount code on her site where people can link to us and have a place >> on our order page where the buyer can key in the coupon or discount code >> and modify the code to give the discount. This way we could set up >> discount codes for different affiliates or put a discount coupon as an >> insert in a publication. >> >> New territory for me. Hope the list will tolerate this bit of OT for a >> few days. >> >> Thanks for the help. >> >> Regards, >> >> Rocky >> >> Shamil Salakhetdinov wrote: >> >>> Rocky, >>> >>> Internet servers are usually able to keep raw logs of HTTP requests - >>> these >>> are seperate ASCII files and their records are well formatted and look >>> like >>> the sample log records from my site's today HTTP requests log in the >>> P.S. >>> of this message. >>> >>> I did plan for quite some time to write code to parse these records and >>> to >>> put them into database for further analysis but I didn't have good >>> reasons >>> to that for myself. >>> >>> Now, if nobody here will point on a ready to use solution then we can >>> write, >>> test and use such TCP/IP log parser together and when well done make >>> it available on AccessD site for download... >>> >>> How about this idea? I can write some code for starters on weekend... >>> >>> Shamil >>> >>> P.S. HTTP requests sample log: >>> >>> 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET /robots.txt HTTP/1.1" >>> 404 >>> 297 "-" "findlinks/1.1.1-a1 >>> (+http://wortschatz.uni-leipzig.de/findlinks/)" >>> >>> 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD /shamil_s HTTP/1.1" >>> 301 - "-" "LWP::Simple/5.803" >>> >>> 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD /shamil_s/ HTTP/1.1" >>> 200 - "-" "LWP::Simple/5.803" >>> >>> 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s HTTP/1.1" >>> 301 >>> 334 "http://www.jaja-jak-globusy.com/" "Poirot" >>> >>> ... >>> >>> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >>> /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 >>> "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 (compatible; MSIE >>> 6.0; >>> Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >>> >>> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >>> /shamil_s/pics/pole2.gif >>> HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >>> (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >>> >>> ... >>> >>> 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET /robots.txt HTTP/1.0" >>> 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; >>> http://help.yahoo.com/help/us/ysearch/slurp)" >>> >>> 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET >>> /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 >>> (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" >>> >>> 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET >>> /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 >>> (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" >>> >>> ... >>> >>> ----- Original Message ----- >>> From: "Rocky Smolin - Beach Access Software" >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Friday, February 10, 2006 9:53 AM >>> Subject: [AccessD] OT: Affiliate Program >>> >>> >>> >>> >>>> Dear List: >>>> >>>> I have a web site where we are selling The Sleep Advisor >>>> (www.thesleepadvisor.com). Someone with an alternative health site has >>>> proposed to promote The Sleep Advisor on her site and send folks to our >>>> site. She asks if we have an affiliate program. Which we ain't. >>>> >>>> I looked into it a bit and it doesn't look trivial. Basically we need a >>>> way to know if someone visiting our site and buying The Sleep Advisor >>>> originated from her site. We're hosted by Affinity and have Urchin >>>> statistics but I don't see anything there that would be helpful right >>>> off. >>>> >>>> Does anyone know a slick, quick way to do this? >>>> >>>> MTIA >>>> >>>> Rocky >>>> >>>> -- >>>> Rocky Smolin >>>> Beach Access Software >>>> 858-259-4334 >>>> www.e-z-mrp.com >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> >>> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From spikee at oatlandspark.org.uk Fri Feb 10 10:44:09 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Fri, 10 Feb 2006 16:44:09 -0000 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <002801c62e56$758b81e0$6501a8c0@Nant> Message-ID: <200602101644.k1AGi8C01301@databaseadvisors.com> Absolutely Shamil, but if you look at one of the link pages for the months, say > http://emmajohnstoneceramics.com/usage/usage_200602.html towards the bottom, there's a table of "Referrers". As this is plain HTML, this could be extracted. Regards! Chris F -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: 10 February 2006 15:27 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Affiliate Program <<< > Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . >>> Yes, Chris my ISP collects/presents similar statistics for my site: http://www.smsconsulting.spb.ru/acclogs/hourly_usage_200601.png http://www.smsconsulting.spb.ru/acclogs/daily_usage_200601.png http://www.smsconsulting.spb.ru/acclogs/usage_200601.html8 But Rocky needs raw information to analyze his site activity generated by his affilate sites - I think such information can be extracted from HTTP log records but I don't know how this HTTP logging works in details. My guess is that the first entry via affilate site should have this site's identifier in URL, which can be extracted and linked with all the following activity of the IP address presented as the first element of the entry log record... Shamil ----- Original Message ----- From: "Foote, Chris" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 10, 2006 12:57 PM Subject: Re: [AccessD] OT: Affiliate Program > Interesting project! > > I too had considered such a project in the past, but was daunted by the > complexity. > > My web hosting company (DSVR) supports a product called Webalizer. This is > a > server-side (PERL?) jobbie that analyses log files. > > Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . > > Regards! > Chris Foote From jeffrey.demulling at usbank.com Fri Feb 10 10:40:54 2006 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Fri, 10 Feb 2006 10:40:54 -0600 Subject: [AccessD] Case Is = Null ?? In-Reply-To: <000401c62e5f$8766a620$0200a8c0@danwaters> Message-ID: Case IsNull or Case Is Null ' not sure which one. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] Case Is = Null ?? 02/10/2006 10:32 AM Please respond to "Access Developers discussion and problem solving" I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== From jwcolby at ColbyConsulting.com Fri Feb 10 10:47:22 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 10 Feb 2006 11:47:22 -0500 Subject: [AccessD] Inserting text in a word document Message-ID: <005101c62e61$aa66d850$647aa8c0@ColbyM6805> Does anyone have code to insert lines of text in a word document at a bookmark? John W. Colby www.ColbyConsulting.com From andy at minstersystems.co.uk Fri Feb 10 10:49:05 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 10 Feb 2006 16:49:05 +0000 Subject: [AccessD] Case Is = Null ?? Message-ID: <20060210164902.68DE62593A4@smtp.nildram.co.uk> Hi Dan I'm probably about to be proved wrong but I don't know that you can handle a Null within a Case statement. I'd handle it outside, ie If IsNull(var) then Else Select Case var .. Be interested to see if anyone knows otherwise. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "AccessD" Subject: [AccessD] Case Is = Null ?? Date: 10/02/06 16:34 I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From Gustav at cactus.dk Fri Feb 10 10:52:55 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Feb 2006 17:52:55 +0100 Subject: [AccessD] Case Is = Null ?? Message-ID: Hi Dan Move it to the Case Else section: Select Case varTest Case n Case y Case Else If IsNull(varTest) Then ' Null Else ' Not Null End If End Select /gustav >>> dwaters at usinternet.com 10-02-2006 17:32:05 >>> I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan From jimdettman at earthlink.net Fri Feb 10 10:54:32 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 10 Feb 2006 11:54:32 -0500 Subject: [AccessD] Inserting text in a word document In-Reply-To: <005101c62e61$aa66d850$647aa8c0@ColbyM6805> Message-ID: John The code snippets below insert data from a record set. Jim. Const pelFldWWBookmark = 0 Const pelFldAccessField = 1 Const pelFldWWFont = 2 Const pelFldWWPoints = 3 Const pelFldWWBold = 4 Const pelFldWWItalics = 5 Const pelFldWWUnderline = 6 Const pelWordMacroRun = 1 Const pelWordFileCloseNoSave = 2 ' Begin Automation conversation with Word ' Don't need to intialize mobjWord if it already points to Word If mobjWord Is Nothing Then On Error Resume Next Set mobjWord = GetObject(, "Word.Application") If Err <> 0 Then Err = 0 Set mobjWord = CreateObject("Word.Application") End If If Err <> 0 Then MsgBox "Error: Word Automation object could not be created.", vbCritical + vbOKOnly, strProc GoTo AutomateWordDone End If On Error GoTo AutomateWordErr End If ' Create a new document for each data record. Do While Not rstData.EOF mobjWord.WordBasic.FileOpen varDocAndPath ' Send data, if any, over to document and format it If varSendFields Then ' Move through tblAutoFields row by row ' and send over data to document For intJ = 0 To intFieldsRecLim - 1 ' Jump to bookmark mobjWord.Selection.GoTo What:=wdGoToBookmark, Name:=avarFields(pelFldWWBookmark, intJ) ' Format the font per field specification mobjWord.WordBasic.FormatFont avarFields(pelFldWWPoints, intJ), IIf(avarFields(pelFldWWUnderline, intJ), 1, 0), , , , , , , , , , , , , , avarFields(pelFldWWFont, intJ), IIf(avarFields(pelFldWWBold, intJ), 1, 0), IIf(avarFields(pelFldWWItalics, intJ), 1, 0) ' Insert the data at the bookmark mobjWord.WordBasic.INSERT pelNullToZLS(rstData(avarFields(pelFldAccessField, intJ))) Next intJ End If ' varSendFields Debug.Print "Loaded and formatted data for " & rstData.[Name] ' Print the document, if required ' Otherwise shift focus to document for user edit If varDocPrint Then ' Print the document if required ' Use a Print Macro if one has been specified DoEvents If IsNull(varDocMacroPrint) Then mobjWord.WordBasic.FilePrint , , , , , , , pelNullToZLS(varCopies) Else mobjWord.WordBasic.ToolsMacro varDocMacroPrint, pelWordMacroRun End If Debug.Print "Printed document" End If DoEvents DoEvents If varDocPrint Then mobjWord.WordBasic.FileClose pelWordFileCloseNoSave Debug.Print "Executed File Close" DoEvents DoEvents End If ' If requested as one record only, ' it's time to bail out! If fOneRec Then Exit Do Else rstData.MoveNext End If Loop rstData.Close Set rstData = Nothing -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Friday, February 10, 2006 11:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Inserting text in a word document Does anyone have code to insert lines of text in a word document at a bookmark? 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 andy at minstersystems.co.uk Fri Feb 10 10:58:56 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 10 Feb 2006 16:58:56 +0000 Subject: [AccessD] Case Is = Null ?? Message-ID: <20060210165853.42DDB2542D0@smtp.nildram.co.uk> Neither of those works, and nor does Case Is = Null. Simple test function. Function CaseNull() Dim var As Variant var = Null Select Case var Case Is = Null 'The line in question MsgBox "Null" Case Else MsgBox "Not Null" End Select End Function I can't find anything to put in the line in question that gives me a message of "Null". IsNull and Is Null both error. Is = Null just doesn't work. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Case Is = Null ?? Date: 10/02/06 16:45 Case IsNull or Case Is Null ' not sure which one. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] Case Is = Null ?? 02/10/2006 10:32 AM Please respond to "Access Developers discussion and problem solving" I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== -- 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 Fri Feb 10 11:06:44 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Feb 2006 09:06:44 -0800 Subject: [AccessD] Case Is = Null ?? Message-ID: You cannot do comparisons with Null. NOTHING is equal to null. You could do a Select Case Isnull(var) with True and Else cases and then handle the situations within each branch. Select Case Isnull(var) Case True Msgbox "Null Case Else Msgbox "Not Null" End Select Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, February 10, 2006 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? Neither of those works, and nor does Case Is = Null. Simple test function. Function CaseNull() Dim var As Variant var = Null Select Case var Case Is = Null 'The line in question MsgBox "Null" Case Else MsgBox "Not Null" End Select End Function I can't find anything to put in the line in question that gives me a message of "Null". IsNull and Is Null both error. Is = Null just doesn't work. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Case Is = Null ?? Date: 10/02/06 16:45 Case IsNull or Case Is Null ' not sure which one. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] Case Is = Null ?? 02/10/2006 10:32 AM Please respond to "Access Developers discussion and problem solving" I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------ ------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ======================================================================== ====== -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lmrazek at lcm-res.com Fri Feb 10 11:17:37 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Fri, 10 Feb 2006 11:17:37 -0600 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <43ECB4B2.6020209@san.rr.com> Message-ID: <02ce01c62e65$e3f1ff60$036fa8c0@hplaptop> Rocky: Are you using "classic" PayPal or PayPal Payments Pro? If you're using classic, then this is a bit of a problem, since not everyone clicks on the "return to store" button to return to your site (you could have the handling code on your landing page). Do you generate an order or customer record before going to PayPal? If so, then you could update the record before they go to PayPal. Have you checked out other payment gateways such as Authorize.Net? I've seen some resellers advertise them at 25/month + trans fees ... Their advantage is that your customer stays on your site. PayPal Pro Payments is similar in price and capabilities, but is much harder to implement AND they have an extemely strict validation routine, which occassionally reject valid CC's because of problems with the address (str instead of Street for example). Let me know if you have any questions. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -----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 10, 2006 9:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Affiliate Program Larry: We use PayPal for ordering. When they click on the Order Button they go to the paypal page where they may or may not complete the order. Does this make the cookie approach problematical? TIA Rocky Lawrence Mrazek wrote: > Hi Rocky: > > If she is constructing the links, could she add a query string to the > URL > (EX: http://www.thesleepadvisor.com/index.asp?AffiliateID=1)? > Depending on your server model, then you could add code to > automatically detect the query string and log it to a database/session > variable/cookie (using server side code). Then on a successful order, > your system looks for the db value/session variable/cookie and adds it to the order record. > > Hope this helps. > > Larry Mrazek > LCM Research, Inc. > www.lcm-res.com > lmrazek at lcm-res.com > ph. 314-432-5886 > fx. 314-432-3304 > > -----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 10, 2006 12:54 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT: Affiliate Program > > Dear List: > > I have a web site where we are selling The Sleep Advisor > (www.thesleepadvisor.com). Someone with an alternative health site > has proposed to promote The Sleep Advisor on her site and send folks > to our site. She asks if we have an affiliate program. Which we ain't. > > I looked into it a bit and it doesn't look trivial. Basically we need > a way to know if someone visiting our site and buying The Sleep > Advisor originated from her site. We're hosted by Affinity and have > Urchin statistics but I don't see anything there that would be helpful right off. > > Does anyone know a slick, quick way to do this? > > MTIA > > Rocky > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Feb 10 11:37:57 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 09:37:57 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <02ce01c62e65$e3f1ff60$036fa8c0@hplaptop> References: <02ce01c62e65$e3f1ff60$036fa8c0@hplaptop> Message-ID: <43ECCF75.9080708@san.rr.com> Larry: I actually don't know which version we're using. I'll find out. We almost went with Affinity but PayPal seemed so much easier. Rocky Lawrence Mrazek wrote: > Rocky: > > Are you using "classic" PayPal or PayPal Payments Pro? If you're using > classic, then this is a bit of a problem, since not everyone clicks on the > "return to store" button to return to your site (you could have the handling > code on your landing page). > > Do you generate an order or customer record before going to PayPal? If so, > then you could update the record before they go to PayPal. > > Have you checked out other payment gateways such as Authorize.Net? I've seen > some resellers advertise them at 25/month + trans fees ... Their advantage > is that your customer stays on your site. PayPal Pro Payments is similar in > price and capabilities, but is much harder to implement AND they have an > extemely strict validation routine, which occassionally reject valid CC's > because of problems with the address (str instead of Street for example). > > Let me know if you have any questions. > > Larry Mrazek > LCM Research, Inc. > www.lcm-res.com > lmrazek at lcm-res.com > ph. 314-432-5886 > fx. 314-432-3304 > > -----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 10, 2006 9:44 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Affiliate Program > > Larry: > > We use PayPal for ordering. When they click on the Order Button they go to > the paypal page where they may or may not complete the order. Does this > make the cookie approach problematical? > > TIA > > Rocky > > > Lawrence Mrazek wrote: > >> Hi Rocky: >> >> If she is constructing the links, could she add a query string to the >> URL >> (EX: http://www.thesleepadvisor.com/index.asp?AffiliateID=1)? >> Depending on your server model, then you could add code to >> automatically detect the query string and log it to a database/session >> variable/cookie (using server side code). Then on a successful order, >> your system looks for the db value/session variable/cookie and adds it to >> > the order record. > >> Hope this helps. >> >> Larry Mrazek >> LCM Research, Inc. >> www.lcm-res.com >> lmrazek at lcm-res.com >> ph. 314-432-5886 >> fx. 314-432-3304 >> >> -----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 10, 2006 12:54 AM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] OT: Affiliate Program >> >> Dear List: >> >> I have a web site where we are selling The Sleep Advisor >> (www.thesleepadvisor.com). Someone with an alternative health site >> has proposed to promote The Sleep Advisor on her site and send folks >> to our site. She asks if we have an affiliate program. Which we ain't. >> >> I looked into it a bit and it doesn't look trivial. Basically we need >> a way to know if someone visiting our site and buying The Sleep >> Advisor originated from her site. We're hosted by Affinity and have >> Urchin statistics but I don't see anything there that would be helpful >> > right off. > >> Does anyone know a slick, quick way to do this? >> >> MTIA >> >> Rocky >> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dwaters at usinternet.com Fri Feb 10 11:45:06 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 10 Feb 2006 11:45:06 -0600 Subject: [AccessD] Case Is = Null ?? - Answered! In-Reply-To: <5017987.1139591729644.JavaMail.root@sniper14> Message-ID: <000401c62e69$bb3abb30$0200a8c0@danwaters> Thanks to everyone! Charlotte - your suggestion looks good! I can nest another Select Case when the expression is not null. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? You cannot do comparisons with Null. NOTHING is equal to null. You could do a Select Case Isnull(var) with True and Else cases and then handle the situations within each branch. Select Case Isnull(var) Case True Msgbox "Null Case Else Msgbox "Not Null" End Select Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, February 10, 2006 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? Neither of those works, and nor does Case Is = Null. Simple test function. Function CaseNull() Dim var As Variant var = Null Select Case var Case Is = Null 'The line in question MsgBox "Null" Case Else MsgBox "Not Null" End Select End Function I can't find anything to put in the line in question that gives me a message of "Null". IsNull and Is Null both error. Is = Null just doesn't work. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Case Is = Null ?? Date: 10/02/06 16:45 Case IsNull or Case Is Null ' not sure which one. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] Case Is = Null ?? 02/10/2006 10:32 AM Please respond to "Access Developers discussion and problem solving" I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------ ------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ======================================================================== ====== -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Fri Feb 10 12:19:35 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 10 Feb 2006 13:19:35 -0500 Subject: [AccessD] Inserting text in a word document In-Reply-To: References: <005101c62e61$aa66d850$647aa8c0@ColbyM6805> Message-ID: On 10/02/06, Jim Dettman wrote: > mobjWord.WordBasic.INSERT > pelNullToZLS(rstData(avarFields(pelFldAccessField, intJ))) Ick!!! WordBasic!!!! John, Here is a little chunk that should do it for you: Dim doc As Word.Document Dim rng As Word.Range Set rng = doc.Bookmarks("MyBookmarkName").Range rng.InsertAfter "This text gets inserted after the bookmark" -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From Lambert.Heenan at AIG.com Fri Feb 10 12:23:50 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 10 Feb 2006 13:23:50 -0500 Subject: [AccessD] Case Is = Null ?? - Answered! Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1D2883D6@xlivmbx21.aig.com> Or, you can do this... Select Case var & "" ' above line adds an empty string to our variant variable. This will turn Nulls in to empty strings, which you can test for. Case "" ' do whatever you need for a Null Case "AnotherValue" ' code Case "YetAnotherValue" ' more code End Select So only one Select Case statement needed. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 10, 2006 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Thanks to everyone! Charlotte - your suggestion looks good! I can nest another Select Case when the expression is not null. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? You cannot do comparisons with Null. NOTHING is equal to null. You could do a Select Case Isnull(var) with True and Else cases and then handle the situations within each branch. Select Case Isnull(var) Case True Msgbox "Null Case Else Msgbox "Not Null" End Select Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, February 10, 2006 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? Neither of those works, and nor does Case Is = Null. Simple test function. Function CaseNull() Dim var As Variant var = Null Select Case var Case Is = Null 'The line in question MsgBox "Null" Case Else MsgBox "Not Null" End Select End Function I can't find anything to put in the line in question that gives me a message of "Null". IsNull and Is Null both error. Is = Null just doesn't work. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Case Is = Null ?? Date: 10/02/06 16:45 Case IsNull or Case Is Null ' not sure which one. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] Case Is = Null ?? 02/10/2006 10:32 AM Please respond to "Access Developers discussion and problem solving" I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------ ------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ======================================================================== ====== -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Feb 10 12:29:18 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Feb 2006 10:29:18 -0800 Subject: [AccessD] Case Is = Null ?? - Answered! Message-ID: But that doesn't tell you if the variable was null, only that it could have been either null or a zero length string to start with. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 10, 2006 10:24 AM To: 'Access Developers discussion and problem solving' Cc: 'Dan Waters' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Or, you can do this... Select Case var & "" ' above line adds an empty string to our variant variable. This will turn Nulls in to empty strings, which you can test for. Case "" ' do whatever you need for a Null Case "AnotherValue" ' code Case "YetAnotherValue" ' more code End Select So only one Select Case statement needed. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 10, 2006 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Thanks to everyone! Charlotte - your suggestion looks good! I can nest another Select Case when the expression is not null. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? You cannot do comparisons with Null. NOTHING is equal to null. You could do a Select Case Isnull(var) with True and Else cases and then handle the situations within each branch. Select Case Isnull(var) Case True Msgbox "Null Case Else Msgbox "Not Null" End Select Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, February 10, 2006 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? Neither of those works, and nor does Case Is = Null. Simple test function. Function CaseNull() Dim var As Variant var = Null Select Case var Case Is = Null 'The line in question MsgBox "Null" Case Else MsgBox "Not Null" End Select End Function I can't find anything to put in the line in question that gives me a message of "Null". IsNull and Is Null both error. Is = Null just doesn't work. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Case Is = Null ?? Date: 10/02/06 16:45 Case IsNull or Case Is Null ' not sure which one. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] Case Is = Null ?? 02/10/2006 10:32 AM Please respond to "Access Developers discussion and problem solving" I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------ ------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ======================================================================== ====== -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From boogieloogie at gmail.com Fri Feb 10 12:56:20 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Fri, 10 Feb 2006 14:56:20 -0400 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <43EC386C.1090509@san.rr.com> References: <43EC386C.1090509@san.rr.com> Message-ID: <3bf43ee90602101056i72b440dbk4bb0fb7040d435f8@mail.gmail.com> try http://www.softservice.org/products_affiliatepro.html There is an online demo and it costs $49.00 BL On 2/10/06, Rocky Smolin - Beach Access Software wrote: > > Dear List: > > I have a web site where we are selling The Sleep Advisor > (www.thesleepadvisor.com). Someone with an alternative health site has > proposed to promote The Sleep Advisor on her site and send folks to our > site. She asks if we have an affiliate program. Which we ain't. > > I looked into it a bit and it doesn't look trivial. Basically we need a > way to know if someone visiting our site and buying The Sleep Advisor > originated from her site. We're hosted by Affinity and have Urchin > statistics but I don't see anything there that would be helpful right off. > > Does anyone know a slick, quick way to do this? > > MTIA > > Rocky > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwelz at hotmail.com Fri Feb 10 13:02:40 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Fri, 10 Feb 2006 12:02:40 -0700 Subject: [AccessD] Inserting text in a word document In-Reply-To: Message-ID: Ditto on WordBasic I often protect documents for formfields so insertafter doesn't work if you set the bookmark property for a Word textbox field. This lets me set default values in a form. owdDoc.Bookmarks("ProjectName").Select owdApp.Selection.Text = strProjectName where owdDoc is an object variable pointing to a Word.Document and owdApp is an object variable pointing to an instance of Word in which the Document is open. My system sends a collection of data elements from one or more recordsets using a key matching the first portion of the bookmark name up to a delimiter. The balance of the bookmark name determines formatting properties. A second delimited part of the bookmark name allows bookmarks drawing from the same data collection item to write to multiple bookmarks (you can't have more than one bookmark with the same name in a document). This way, the document controls the formatting of the data. In some documents you may want "Wednesday, the 4th day of September) where as other documents are fine with "9/4/2006". Also, if a field, like a person's name appears more than once, "John;", "John;1" and "John;2" can all pull the collecion 'John' item. I iterate the Document's bookmark collection and throw the matching collection item at the bookmark. Generally I use a recordset's field name or alias as the collection key. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Bryan Carbonnell >On 10/02/06, Jim Dettman wrote: > > > mobjWord.WordBasic.INSERT > > pelNullToZLS(rstData(avarFields(pelFldAccessField, intJ))) > > >Ick!!! WordBasic!!!! > >John, > >Here is a little chunk that should do it for you: > >Dim doc As Word.Document >Dim rng As Word.Range > >Set rng = doc.Bookmarks("MyBookmarkName").Range > >rng.InsertAfter "This text gets inserted after the bookmark" > >-- >Bryan Carbonnell - carbonnb at gmail.com From jwelz at hotmail.com Fri Feb 10 13:06:05 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Fri, 10 Feb 2006 12:06:05 -0700 Subject: [AccessD] Basic Query Design In-Reply-To: <001f01c62e21$c2472a00$017ba8c0@xpserver> Message-ID: Thanks Steve/Stuart I'll run some performance testing this weekend on my original method and the two alternate solutions. I'll post results Monday. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Jim Lawrence > >One note: Would this query allow the user to go for coffee while waiting >for >the results? 'Sub queries' and 'not exists' has certain reputations? > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan >Sent: February 8, 2006 7:04 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Basic Query Design > >On 8 Feb 2006 at 20:36, Steve Erbach wrote: > > > SELECT DISTINCT EmployeeID > > FROM tblEmployeeCourse AS EC1 > > WHERE NOT EXISTS > > ( SELECT CourseID FROM tblCourse > > WHERE CourseID In (1,2,4,5) AND NOT EXISTS > > ( SELECT * FROM tblEmployeeCourse AS EC2 > > WHERE EC2.CourseID = tblCourse.CourseID > > AND EC2.EmployeeID = EC1.EmployeeID)) > > > >Ouch! My head hurts! > >-- >Stuart From erbachs at gmail.com Fri Feb 10 13:27:52 2006 From: erbachs at gmail.com (Steve Erbach) Date: Fri, 10 Feb 2006 13:27:52 -0600 Subject: [AccessD] Basic Query Design In-Reply-To: References: Message-ID: <39cb22f30602101127j33881a7dm88286d10147d3676@mail.gmail.com> Charlotte, Well, of course, now that you say that, it makes perfect sense. Why redo multiple "hierarchical" queries to generate recordsets in a loop...when you can do one SHAPE query and get all the data at once? Steve Erbach Neenah, WI On 2/10/06, Charlotte Foust wrote: > It is when you're using them to populate a datagrid. > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, February 09, 2006 1:48 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Basic Query Design > > > Charlotte, > > Right you are! I used them for a fancy report in an ASP project I did > last year. Very interesting capability. Hard to tell whether it's > worth the effort versus multiple queries to form those mutliple > recordsets. > > Regards, > > Steve Erbach From bchacc at san.rr.com Fri Feb 10 13:30:39 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 11:30:39 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <3bf43ee90602101056i72b440dbk4bb0fb7040d435f8@mail.gmail.com> References: <43EC386C.1090509@san.rr.com> <3bf43ee90602101056i72b440dbk4bb0fb7040d435f8@mail.gmail.com> Message-ID: <43ECE9DF.7080904@san.rr.com> BL: I looked at that and it looked good. Do you have any experience with it? Something that I was uncertain about with that program is that we need to record sales, not page hits, and we're using PayPal for payment and so paypal would have to 'talk' to this package to tell it when it made a sale and who it came from. TIA Rocky Boogie Loogie wrote: > try > > http://www.softservice.org/products_affiliatepro.html > > There is an online demo and it costs $49.00 > > BL > > On 2/10/06, Rocky Smolin - Beach Access Software wrote: > >> Dear List: >> >> I have a web site where we are selling The Sleep Advisor >> (www.thesleepadvisor.com). Someone with an alternative health site has >> proposed to promote The Sleep Advisor on her site and send folks to our >> site. She asks if we have an affiliate program. Which we ain't. >> >> I looked into it a bit and it doesn't look trivial. Basically we need a >> way to know if someone visiting our site and buying The Sleep Advisor >> originated from her site. We're hosted by Affinity and have Urchin >> statistics but I don't see anything there that would be helpful right off. >> >> Does anyone know a slick, quick way to do this? >> >> MTIA >> >> Rocky >> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jimdettman at earthlink.net Fri Feb 10 13:30:08 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 10 Feb 2006 14:30:08 -0500 Subject: [AccessD] Inserting text in a word document In-Reply-To: Message-ID: It's old code. First did that back in Access 2.0. Still works in everything that I use so... Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Friday, February 10, 2006 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Inserting text in a word document On 10/02/06, Jim Dettman wrote: > mobjWord.WordBasic.INSERT > pelNullToZLS(rstData(avarFields(pelFldAccessField, intJ))) Ick!!! WordBasic!!!! John, Here is a little chunk that should do it for you: Dim doc As Word.Document Dim rng As Word.Range Set rng = doc.Bookmarks("MyBookmarkName").Range rng.InsertAfter "This text gets inserted after the bookmark" -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Fri Feb 10 14:05:53 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 10 Feb 2006 15:05:53 -0500 Subject: [AccessD] Inserting text in a word document In-Reply-To: References: Message-ID: On 10/02/06, Jim Dettman wrote: > It's old code. First did that back in Access 2.0. Still works in > everything that I use so... Since it's legacy code, I'll forgive you :-)) -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From Lambert.Heenan at AIG.com Fri Feb 10 14:05:36 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 10 Feb 2006 14:05:36 -0600 Subject: [AccessD] Case Is = Null ?? - Answered! Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1D288473@xlivmbx21.aig.com> True, but in my experience -limited though it may be :) - if a field holds a null or an empty string, you often need to do the same thing - report it out as an exception for instance. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 1:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? - Answered! But that doesn't tell you if the variable was null, only that it could have been either null or a zero length string to start with. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 10, 2006 10:24 AM To: 'Access Developers discussion and problem solving' Cc: 'Dan Waters' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Or, you can do this... Select Case var & "" ' above line adds an empty string to our variant variable. This will turn Nulls in to empty strings, which you can test for. Case "" ' do whatever you need for a Null Case "AnotherValue" ' code Case "YetAnotherValue" ' more code End Select So only one Select Case statement needed. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 10, 2006 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Thanks to everyone! Charlotte - your suggestion looks good! I can nest another Select Case when the expression is not null. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? You cannot do comparisons with Null. NOTHING is equal to null. You could do a Select Case Isnull(var) with True and Else cases and then handle the situations within each branch. Select Case Isnull(var) Case True Msgbox "Null Case Else Msgbox "Not Null" End Select Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, February 10, 2006 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? Neither of those works, and nor does Case Is = Null. Simple test function. Function CaseNull() Dim var As Variant var = Null Select Case var Case Is = Null 'The line in question MsgBox "Null" Case Else MsgBox "Not Null" End Select End Function I can't find anything to put in the line in question that gives me a message of "Null". IsNull and Is Null both error. Is = Null just doesn't work. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Case Is = Null ?? Date: 10/02/06 16:45 Case IsNull or Case Is Null ' not sure which one. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] Case Is = Null ?? 02/10/2006 10:32 AM Please respond to "Access Developers discussion and problem solving" I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------ ------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ======================================================================== ====== -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 10 14:18:38 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 10 Feb 2006 15:18:38 -0500 Subject: [AccessD] Inserting text in a word document In-Reply-To: Message-ID: I guess next time I'll make sure to issue a disclaimer Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Friday, February 10, 2006 3:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Inserting text in a word document On 10/02/06, Jim Dettman wrote: > It's old code. First did that back in Access 2.0. Still works in > everything that I use so... Since it's legacy code, I'll forgive you :-)) -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Feb 10 14:23:13 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Feb 2006 21:23:13 +0100 Subject: [AccessD] Case Is = Null ?? - Answered! Message-ID: Hi Charlotte and Lambert But why all this Nz trouble and a clumsy Select Case for a simple If-Then, when Case Else neatly catches a Null as shown ... /gustav >>> Lambert.Heenan at AIG.com 10-02-2006 21:05:36 >>> True, but in my experience -limited though it may be :) - if a field holds a null or an empty string, you often need to do the same thing - report it out as an exception for instance. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 1:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? - Answered! But that doesn't tell you if the variable was null, only that it could have been either null or a zero length string to start with. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 10, 2006 10:24 AM To: 'Access Developers discussion and problem solving' Cc: 'Dan Waters' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Or, you can do this... Select Case var & "" ' above line adds an empty string to our variant variable. This will turn Nulls in to empty strings, which you can test for. Case "" ' do whatever you need for a Null Case "AnotherValue" ' code Case "YetAnotherValue" ' more code End Select So only one Select Case statement needed. Lambert From Lambert.Heenan at AIG.com Fri Feb 10 14:28:05 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 10 Feb 2006 15:28:05 -0500 Subject: [AccessD] Case Is = Null ?? - Answered! Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1D288495@xlivmbx21.aig.com> Because it's Friday (most places), and we all have silly ideas on Fridays! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 10, 2006 3:23 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Case Is = Null ?? - Answered! Hi Charlotte and Lambert But why all this Nz trouble and a clumsy Select Case for a simple If-Then, when Case Else neatly catches a Null as shown ... /gustav >>> Lambert.Heenan at AIG.com 10-02-2006 21:05:36 >>> True, but in my experience -limited though it may be :) - if a field holds a null or an empty string, you often need to do the same thing - report it out as an exception for instance. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 1:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? - Answered! But that doesn't tell you if the variable was null, only that it could have been either null or a zero length string to start with. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 10, 2006 10:24 AM To: 'Access Developers discussion and problem solving' Cc: 'Dan Waters' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Or, you can do this... Select Case var & "" ' above line adds an empty string to our variant variable. This will turn Nulls in to empty strings, which you can test for. Case "" ' do whatever you need for a Null Case "AnotherValue" ' code Case "YetAnotherValue" ' more code End Select So only one Select Case statement needed. Lambert -- 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 10 14:54:08 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Fri, 10 Feb 2006 13:54:08 -0700 Subject: [AccessD] Basic Query Design: Results In-Reply-To: <39cb22f30602101127j33881a7dm88286d10147d3676@mail.gmail.com> Message-ID: Had to try the speed comparisons between the three approaches to querying "Every Employee who has taken all of the following 4 courses". Tables are tblEmployee, tblEmployeeCourse (junction table) and tblCourse. There are 1700 employees, about 2000 EmployeeCourse records and 18 course records. 1. Using Count: qryTestCount SELECT tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName AS Estimator FROM tblEmployeeCourse INNER JOIN tblEmployee ON tblEmployeeCourse.EmployeeID = tblEmployee.ContactID WHERE (((tblEmployeeCourse.CourseID) In (1,2,4,5))) GROUP BY tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName HAVING (((Count(tblEmployee.ContactID)) = 4)) ORDER BY FirstName & ' ' & LastName; 2. Nested Selects: qryTestNestedIn SELECT DISTINCT ContactID, FirstName & ' ' & LastName FROM tblEmployeeEmployeeType RIGHT JOIN tblEmployee ON tblEmployeeEmployeeType.EmployeeID = tblEmployee.ContactID WHERE tblEmployee.ContactID > 0 And tblEmployee.Deleted = False And FirstName > '' And LastName > '' And ContactID In (Select ContactID FROM tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = tblEmployeeCourse.EmployeeID Where CourseID = 1) And CourseID = 2) And CourseID = 5) And CourseID = 4) ORDER BY FirstName & ' ' & LastName; 3. Relational Division: qryTestRelationalDiv SELECT DISTINCT EC1.EmployeeID, [FirstName] & " " & [LastName] AS Expr1 FROM tblEmployeeCourse AS EC1 INNER JOIN tblEmployee ON EC1.EmployeeID = tblEmployee.ContactID WHERE (((Exists (SELECT CourseID FROM tblCourse WHERE CourseID In (1,2,4,5) AND NOT EXISTS ( SELECT * FROM tblEmployeeCourse AS EC2 WHERE EC2.CourseID = tblCourse.CourseID AND EC2.EmployeeID = EC1.EmployeeID)))=False)) ORDER BY [FirstName] & " " & [LastName]; The following subroutine was used to open each query in sequence and report to the debug window: Public Declare Function timeGetTime Lib "Winmm" () As Long Sub testQuerySpeed() Dim r As DAO.Recordset Dim db As DAO.Database Dim lngi As Long Dim t As Long Set db = CurrentDb t = timeGetTime For lngi = 0 To 50 Set r = db.OpenRecordset("qryTestCount") Next Debug.Print "Using Count " & timeGetTime - t t = timeGetTime For lngi = 0 To 50 Set r = db.OpenRecordset("qryTestNestedIn") Next Debug.Print "Using Nested Join " & timeGetTime - t t = timeGetTime For lngi = 0 To 50 Set r = db.OpenRecordset("qryTestRelationalDiv") Next Debug.Print "Using RelationalDivision " & timeGetTime - t r.Close Set r = Nothing End Sub The results in the immediate window (in milliseconds), run 5 minutes apart speak for themselves: Using Count 5219 Using Nested Join 34796 Using RelationalDivision 13563 Using Count 7750 Using Nested Join 53625 Using RelationalDivision 17000 Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com From dwaters at usinternet.com Fri Feb 10 14:59:19 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 10 Feb 2006 14:59:19 -0600 Subject: [AccessD] Case Is = Null ?? - Answered! In-Reply-To: <25695332.1139603158719.JavaMail.root@sniper20> Message-ID: <000601c62e84$dce0f950$0200a8c0@danwaters> Gustav, Null was one of many possibilities, but needed to be handled uniquely. A second possible value needed to be handled a certain way. And then everything else (and they weren't null), all needed to be handled the same way. I ended up using: If IsNull(xx) Then ElseIf Else End If Dan PS - I guess I said Answered too soon! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 10, 2006 2:23 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Case Is = Null ?? - Answered! Hi Charlotte and Lambert But why all this Nz trouble and a clumsy Select Case for a simple If-Then, when Case Else neatly catches a Null as shown ... /gustav >>> Lambert.Heenan at AIG.com 10-02-2006 21:05:36 >>> True, but in my experience -limited though it may be :) - if a field holds a null or an empty string, you often need to do the same thing - report it out as an exception for instance. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 1:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? - Answered! But that doesn't tell you if the variable was null, only that it could have been either null or a zero length string to start with. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 10, 2006 10:24 AM To: 'Access Developers discussion and problem solving' Cc: 'Dan Waters' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Or, you can do this... Select Case var & "" ' above line adds an empty string to our variant variable. This will turn Nulls in to empty strings, which you can test for. Case "" ' do whatever you need for a Null Case "AnotherValue" ' code Case "YetAnotherValue" ' more code End Select So only one Select Case statement needed. Lambert -- 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 10 15:28:55 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Fri, 10 Feb 2006 14:28:55 -0700 Subject: [AccessD] Basic Query Design: Results In-Reply-To: Message-ID: Of course, after I posted, I had to try another method. The query is: SELECT tblEmployee.ContactID, [FirstName] & ' ' & [LastName] AS Expr1 FROM (((tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = tblEmployeeCourse.EmployeeID) INNER JOIN tblEmployeeCourse AS tblEmployeeCourse_1 ON tblEmployeeCourse.EmployeeID = tblEmployeeCourse_1.EmployeeID) INNER JOIN tblEmployeeCourse AS tblEmployeeCourse_2 ON tblEmployeeCourse.EmployeeID = tblEmployeeCourse_2.EmployeeID) INNER JOIN tblEmployeeCourse AS tblEmployeeCourse_3 ON tblEmployeeCourse.EmployeeID = tblEmployeeCourse_3.EmployeeID WHERE (((tblEmployeeCourse.CourseID)=1) AND ((tblEmployeeCourse_1.CourseID)=2) AND ((tblEmployeeCourse_2.CourseID)=4) AND ((tblEmployeeCourse_3.CourseID)=5)) ORDER BY [FirstName] & ' ' & [LastName]; This is functionally equivalent to creating a query select where CourseID =1, another where CourseID = 2, a third where CouseID = 4 and a 4th where course ID = 5 and then joining them all on the ContactID. A few runs of the time test adding this as a 4th test item result in a time that is 2nd fastest but consistently 70% slower than the fastest method that uses the count. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "J??rgen Welz" > >Had to try the speed comparisons between the three approaches to querying >"Every Employee who has taken all of the following 4 courses". Tables are >tblEmployee, tblEmployeeCourse (junction table) and tblCourse. There are >1700 employees, about 2000 EmployeeCourse records and 18 course records. > >1. Using Count: qryTestCount > >SELECT tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName AS >Estimator >FROM tblEmployeeCourse INNER JOIN tblEmployee ON >tblEmployeeCourse.EmployeeID = tblEmployee.ContactID >WHERE (((tblEmployeeCourse.CourseID) In (1,2,4,5))) >GROUP BY tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName >HAVING (((Count(tblEmployee.ContactID)) = 4)) >ORDER BY FirstName & ' ' & LastName; > >2. Nested Selects: qryTestNestedIn > >SELECT DISTINCT ContactID, FirstName & ' ' & LastName >FROM tblEmployeeEmployeeType RIGHT JOIN tblEmployee ON >tblEmployeeEmployeeType.EmployeeID = tblEmployee.ContactID >WHERE tblEmployee.ContactID > 0 And tblEmployee.Deleted = False And >FirstName > '' And LastName > '' And ContactID In (Select ContactID FROM >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = >tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = >tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = >tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = >tblEmployeeCourse.EmployeeID Where CourseID = 1) And CourseID = 2) And >CourseID = 5) And CourseID = 4) >ORDER BY FirstName & ' ' & LastName; > >3. Relational Division: qryTestRelationalDiv > >SELECT DISTINCT EC1.EmployeeID, [FirstName] & " " & [LastName] AS Expr1 >FROM tblEmployeeCourse AS EC1 INNER JOIN tblEmployee ON EC1.EmployeeID = >tblEmployee.ContactID >WHERE (((Exists (SELECT CourseID FROM tblCourse WHERE CourseID In >(1,2,4,5) AND NOT EXISTS ( SELECT * FROM tblEmployeeCourse AS EC2 > WHERE EC2.CourseID = tblCourse.CourseID AND EC2.EmployeeID = >EC1.EmployeeID)))=False)) >ORDER BY [FirstName] & " " & [LastName]; > >The following subroutine was used to open each query in sequence and report >to the debug window: > >Public Declare Function timeGetTime Lib "Winmm" () As Long > >Sub testQuerySpeed() > Dim r As DAO.Recordset > Dim db As DAO.Database > Dim lngi As Long > Dim t As Long > > Set db = CurrentDb > t = timeGetTime > For lngi = 0 To 50 > Set r = db.OpenRecordset("qryTestCount") > Next > Debug.Print "Using Count " & timeGetTime - t > t = timeGetTime > For lngi = 0 To 50 > Set r = db.OpenRecordset("qryTestNestedIn") > Next > Debug.Print "Using Nested Join " & timeGetTime - t > t = timeGetTime > For lngi = 0 To 50 > Set r = db.OpenRecordset("qryTestRelationalDiv") > Next > Debug.Print "Using RelationalDivision " & timeGetTime - t > r.Close > Set r = Nothing >End Sub > >The results in the immediate window (in milliseconds), run 5 minutes apart >speak for themselves: > >Using Count 5219 >Using Nested Join 34796 >Using RelationalDivision 13563 > >Using Count 7750 >Using Nested Join 53625 >Using RelationalDivision 17000 > >Ciao >J?rgen Welz >Edmonton, Alberta >jwelz at hotmail.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 10 15:50:44 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Feb 2006 13:50:44 -0800 Subject: [AccessD] Case Is = Null ?? - Answered! Message-ID: I didn't say I would necessarily do it that way, Gustav. I was just answering the question asked on using a Select Case. :o} I often use Case Else, but if there is a reason for knowing explicitly that the value of the variable was null, a Case Else might not be specific enough. Depends on what you want/need to do. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 10, 2006 12:23 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Case Is = Null ?? - Answered! Hi Charlotte and Lambert But why all this Nz trouble and a clumsy Select Case for a simple If-Then, when Case Else neatly catches a Null as shown ... /gustav >>> Lambert.Heenan at AIG.com 10-02-2006 21:05:36 >>> True, but in my experience -limited though it may be :) - if a field holds a null or an empty string, you often need to do the same thing - report it out as an exception for instance. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 1:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? - Answered! But that doesn't tell you if the variable was null, only that it could have been either null or a zero length string to start with. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 10, 2006 10:24 AM To: 'Access Developers discussion and problem solving' Cc: 'Dan Waters' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Or, you can do this... Select Case var & "" ' above line adds an empty string to our variant variable. This will turn Nulls in to empty strings, which you can test for. Case "" ' do whatever you need for a Null Case "AnotherValue" ' code Case "YetAnotherValue" ' more code End Select So only one Select Case statement needed. Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at texassystems.com Fri Feb 10 17:44:52 2006 From: KIsmert at texassystems.com (Ken Ismert) Date: Fri, 10 Feb 2006 17:44:52 -0600 Subject: [AccessD] Project Notification Message-ID: >> OTOH, we also probably have list members in India, >> and Shamil is in Russia. China is less likely. Don't forget our ever-helpful colleague, A.D. Tejpal ... -Ken From dw-murphy at cox.net Fri Feb 10 18:21:05 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 10 Feb 2006 16:21:05 -0800 Subject: [AccessD] OutputTo In-Reply-To: Message-ID: <000001c62ea1$0ca35180$0200a8c0@murphyf3vdfepi> Folks, This is an FYI. Maybe it will save some one some time or one of you can explain the cause. I use the snapshot functionality in Access so folks can send formated copies of reports (Yes I am converting to a built in pdf creator, but for now snapshots work and I don't have to buy anything) Have had good luck with the snapshots since we convereted our runtime to Access 2002. Today a customer called that we did a customization for to say that the output report as snapshot was giving an error of "The report snapshot was not created because you don't have enough free disk space .....". I can creat the error on my development machine. Checked the usual problems of faulty path, illegal characters, etc, and not satisfaction. I then started playing with the length of the file path. Turns out if the path length, including the snapshot file name and extension is longer than 126 characters you get the error. If the length is 126 or less it works as advertised. Weird! If anyone has a reason for this behavior I'd appreciate your thoughts. Doug From dwaters at usinternet.com Fri Feb 10 19:13:31 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 10 Feb 2006 19:13:31 -0600 Subject: [AccessD] OutputTo In-Reply-To: <31579880.1139617417746.JavaMail.root@sniper19> Message-ID: <000001c62ea8$5fb552e0$0200a8c0@danwaters> Doug, I came across this a couple of months ago. And yes it's a pain. I called Microsoft Help after convincing myself it was truly a bug. Lo and Behold, they have fixed this in Access 2003! No plans to fix for Access 2002. Wish my news was better! Dan PS - Because this was truly a bug, MS did not charge me for the call. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Friday, February 10, 2006 6:21 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OutputTo Folks, This is an FYI. Maybe it will save some one some time or one of you can explain the cause. I use the snapshot functionality in Access so folks can send formated copies of reports (Yes I am converting to a built in pdf creator, but for now snapshots work and I don't have to buy anything) Have had good luck with the snapshots since we convereted our runtime to Access 2002. Today a customer called that we did a customization for to say that the output report as snapshot was giving an error of "The report snapshot was not created because you don't have enough free disk space .....". I can creat the error on my development machine. Checked the usual problems of faulty path, illegal characters, etc, and not satisfaction. I then started playing with the length of the file path. Turns out if the path length, including the snapshot file name and extension is longer than 126 characters you get the error. If the length is 126 or less it works as advertised. Weird! If anyone has a reason for this behavior I'd appreciate your thoughts. Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max at sherman.org.uk Sat Feb 11 03:53:34 2006 From: max at sherman.org.uk (Max Sherman) Date: Sat, 11 Feb 2006 09:53:34 -0000 Subject: [AccessD] Email using SMTP In-Reply-To: <43DEF374.7010807@shaw.ca> Message-ID: <004901c62ef1$06bd67b0$8bf31452@server> Hi All, I found the code posted by Marty et al to be very useful and now have this working from within Access. Does anybody have anything similar that will work from within Access to retrieve POP3 emails from a server (bypassing Outlook etc). Preferably with the option to leave a copy on the server. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: 31 January 2006 05:20 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email using SMTP Now if you wanted to get really fancy;) Here is how to execute a vbs script with CDO that sends an email but it is executed from within an SQL Stored Procedure that you could call from Access http://www.sqlservercentral.com/columnists/aloera/sqlserverscriptingandwmi.a sp Barbara Ryan wrote: >Thanks, Steve and Marty.... It's nice to know that I have several options. >I learn something new every day......Barb > > >----- Original Message ----- >From: "MartyConnelly" >To: "Access Developers discussion and problem solving" > >Sent: Monday, January 30, 2006 4:10 PM >Subject: Re: [AccessD] Email using SMTP > > > > >>Here is another method of using CDO similar to Steves but doesn't >>require a userid password. >>Requires WinXP or Win2000 >>This method may only work inside a domain ie you have a online node via >>a cable modem >>but not on a dial up. >> >> >>'The example code is using CDOSYS (CDO for Windows 2000 or XP). >>'I dont think I would want to go back to CDONTS for earlier systems >>'It does not depend on MAPI or CDO or Outlook >>'It does not use your mailbox to send email. >>' So you can send mail without a mail program or mail account >>' This code builds the message and drops it into a pickup directory, >>' and the SMTP service running on the machine >>' picks it up and send it out to the internet. >> >>'So why use CDO code instead of Outlook automation or >>Application.SendMail in VBA. >>' It doesn't matter what Mail program you are using (It uses the SMTP >>server). >>' It doesn't matter what Office version you are using. >>' supposedly you can send an object or file in the body of the mail >>(some mail programs cant do this) >>' haven't verified this >>' You can send any file attachment you like. >>' No Outlook Security warning so no need for Redemption >> >>' You probably wont have your mail server full expanded smtp address >>'If you go into netscape mail or outlook and look for the smtp name >>'It will look like mine, "shawmail" or "shawnews" this dns resolves >>'to "shawmail.cg.shawcable.net" CDO doesn't resolve this short name so >>'The quickest way to get this actual address without using registry et al. >>'is run cmd and ping "shawmail" to return full qualified smtp address. >>'This code wont run exactly unless you are on cable and signed on in the >>Shaw domain >> >>Sub SendCDO() >>' This example use late binding of CDOSys, you don't have to set a >> >> >reference > > >>' You must be online to net when you run the sub >>' You must be running WinXP or Win2000 >>Dim cdoMessage As Object >>Dim objCDOMail As Object >>Dim strschema As String >>On Error GoTo ErrorHandler ' Enable error-handling routine. >>' >>Set cdoMessage = CreateObject("CDO.Message") >>Set objCDOMail = CreateObject("CDO.Configuration") >>strschema = "http://schemas.microsoft.com/cdo/configuration/" >>objCDOMail.Load -1 ' CDO Source Default >>'If you have illegal or wrong smtp address here it will run for 30-60 >>seconds and finally give transport error >>With objCDOMail.Fields >>.Item(strschema & "sendusing") = 2 ' cdoSendUsingPort >>.Item(strschema & "smtpserver") = "shawmail.cg.shawcable.net" ' "Your >>SMTP server address here" >>.Item(strschema & "smtpserverport") = 25 'specify port number >>.Update >>End With >> >>With cdoMessage >>Set .Configuration = objCDOMail >>.to = "martyconnelly at gmail.com" >>.From = "Winnie The Pooh " >>.CC = "" >>.BCC = "" >>.Subject = "This is another test from marty" >>.TextBody = "This is the text in the body just cdo defaults" >>.AddAttachment "C:\temp2\rptSampleCount.rtf" >>.AddAttachment "C:\temp2\frontimage.jpeg" >>.send >>End With >> >>Set cdoMessage = Nothing >>Set objCDOMail = Nothing >>Exit Sub ' Exit to avoid handler. >>ErrorHandler: ' Error-handling routine. >>Debug.Print Err.Number & "-" & Err.Description >>Set cdoMessage = Nothing >>Set objCDOMail = Nothing >>Exit Sub >>End Sub >> >> >> >>Barbara Ryan wrote: >> >> >> >>>I've found some SMTP components on the web that allow you to email >>> >>> >directly from Access using SMTP. > > >>>Does anyone know of any VBA code (e.g., using SMTP "commands") that I >>> >>> >could use WITHOUT using a component (as well as NOT using any electronic >mail application) > > >>>Thanks, >>>Barb Ryan >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >> >> >> > > -- 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 Sat Feb 11 04:02:27 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 11 Feb 2006 02:02:27 -0800 Subject: [AccessD] web site access tracker In-Reply-To: Message-ID: <006001c62ef2$442ef810$017ba8c0@xpserver> Hi All: Does anyone know of or has made a web site access tracking program that we can install into the DBA web site. (We had one before but the app supplier started adding pop-up ads.) I am not sure of all the languages that are supported by our web site provider but they do support ASP and ASP.Net (and probably PHP and Perl would be my guess.) We have an operational MS SQL server where details can be stored. TIA Jim From Gustav at cactus.dk Sat Feb 11 07:08:34 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 11 Feb 2006 14:08:34 +0100 Subject: [AccessD] Case Is = Null ?? - Answered! Message-ID: Hi Dan and Charlotte OK, I just read your previous messages as suggestions for a final suggestion. /gustav >>> dwaters at usinternet.com 10-02-2006 21:59:19 >>> Gustav, Null was one of many possibilities, but needed to be handled uniquely. A second possible value needed to be handled a certain way. And then everything else (and they weren't null), all needed to be handled the same way. I ended up using: If IsNull(xx) Then ElseIf Else End If Dan PS - I guess I said Answered too soon! From dwaters at usinternet.com Sat Feb 11 10:04:19 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 11 Feb 2006 10:04:19 -0600 Subject: [AccessD] (OT) VB Express + SQL Server Express ?? Message-ID: <000001c62f24$d1003e20$0200a8c0@danwaters> I've downloaded VB Express to get a look at the features. I've never developed with VB before (just Access), and I remember reading that subforms/subreports aren't available in VB. I looked through the list of controls for forms, and didn't find any reference to subforms/subreports. Also, VB doesn't have a reporting feature like Access. SS 2005 has Reporting Services, but SS Express doesn't. So, is the idea of using VB Express with SQL Server Express for business applications not feasible? Does anyone have experience using these products yet? Dan From harkinsss at bellsouth.net Sat Feb 11 10:33:22 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sat, 11 Feb 2006 11:33:22 -0500 Subject: [AccessD] (OT) VB Express + SQL Server Express ?? In-Reply-To: <000001c62f24$d1003e20$0200a8c0@danwaters> Message-ID: <001701c62f28$e03c8de0$b5b3d6d1@SUSANONE> Also, VB doesn't have a reporting feature like Access. SS 2005 has Reporting Services, but SS Express doesn't. So, is the idea of using VB Express with SQL Server Express for business applications not feasible? =========MS does the usual song and dance that Express products are for amateurs, students, etc -- not business. Does anyone have experience using these products yet? =========Some, and I find them both excellent tools for the right jobs. It'll give an awful lot of power and choices to the average user -- VB Express writes all the code for you -- it's a great tool for the right people. I don't think it's appropriate for heavy design/developers -- but I would certainly consider it -- and then upgrade when necessary, if necessary. I think that small business and small developers are going to find a lot of use for the Express products -- despite MS's insistence that they're toys. On the MS side, I think they know exactly what they're doing -- making this stuff free will ultimately send a lot of people looking for and purchasing more -- eventually. And, it stops the open source critics -- kind of. Susan H. From jwelz at hotmail.com Sat Feb 11 11:16:07 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Sat, 11 Feb 2006 10:16:07 -0700 Subject: [AccessD] (OT) VB Express + SQL Server Express ?? In-Reply-To: <000001c62f24$d1003e20$0200a8c0@danwaters> Message-ID: Although I have no experience with VB Express, I dabbled a bit in VB6 a little while back and found that a lot of what you do with Access with subforms can be done with control arrays and grids. You don't get the automatic filtering of data in the grids, but if you work with single record recordsets and use just in time data retrieval for subforms in Access, the process is analagous in VB6. What I missed most in VB6 were the list and combo features you had in Access. Sure I wrote an autocomplete and not in list routine for VB combos (wasn't a property to be enabled), and multi column data mandated grids, but you were required to gain a modicum of control. In VB6 you could do more with drag and drop and you were required to do a bit more work but you had more control in exchange. I'm curious about the capabilities of VB Express controls. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Dan Waters" > >I've downloaded VB Express to get a look at the features. I've never >developed with VB before (just Access), and I remember reading that >subforms/subreports aren't available in VB. I looked through the list of >controls for forms, and didn't find any reference to subforms/subreports. > >Also, VB doesn't have a reporting feature like Access. SS 2005 has >Reporting Services, but SS Express doesn't. > >So, is the idea of using VB Express with SQL Server Express for business >applications not feasible? > >Does anyone have experience using these products yet? > >Dan From martyconnelly at shaw.ca Sat Feb 11 13:37:35 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 11 Feb 2006 11:37:35 -0800 Subject: [AccessD] Email using SMTP References: <004901c62ef1$06bd67b0$8bf31452@server> Message-ID: <43EE3CFF.5090503@shaw.ca> You could try the POPX control from Mabry, but may not be able to use within another ActiveX control MAIL/X CONTROLS - Internet SMTP and POP ActiveX Controls and COM Obj http://www.mabry.com/mailx/index.htm IDS Mail version works with Access now assurx.com http://www.intuitive-data.com/idsmail.htm You can use the winsock control (already present on your machine) or the Winsock API's . You just have to know what ports to connect to for SMTP and for POP3 http://www.vbip.com/winsock/winsock_simple_sender.asp Max Sherman wrote: >Hi All, >I found the code posted by Marty et al to be very useful and now have this >working from within Access. > >Does anybody have anything similar that will work from within Access to >retrieve POP3 emails from a server (bypassing Outlook etc). Preferably with >the option to leave a copy on the server. > >Regards >Max > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: 31 January 2006 05:20 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Email using SMTP > >Now if you wanted to get really fancy;) >Here is how to execute a vbs script with CDO that sends an email but it >is executed from within an SQL Stored Procedure >that you could call from Access > >http://www.sqlservercentral.com/columnists/aloera/sqlserverscriptingandwmi.a >sp > >Barbara Ryan wrote: > > > >>Thanks, Steve and Marty.... It's nice to know that I have several options. >>I learn something new every day......Barb >> >> >>----- Original Message ----- >>From: "MartyConnelly" >>To: "Access Developers discussion and problem solving" >> >>Sent: Monday, January 30, 2006 4:10 PM >>Subject: Re: [AccessD] Email using SMTP >> >> >> >> >> >> >>>Here is another method of using CDO similar to Steves but doesn't >>>require a userid password. >>>Requires WinXP or Win2000 >>>This method may only work inside a domain ie you have a online node via >>>a cable modem >>>but not on a dial up. >>> >>> >>>'The example code is using CDOSYS (CDO for Windows 2000 or XP). >>>'I dont think I would want to go back to CDONTS for earlier systems >>>'It does not depend on MAPI or CDO or Outlook >>>'It does not use your mailbox to send email. >>>' So you can send mail without a mail program or mail account >>>' This code builds the message and drops it into a pickup directory, >>>' and the SMTP service running on the machine >>>' picks it up and send it out to the internet. >>> >>>'So why use CDO code instead of Outlook automation or >>>Application.SendMail in VBA. >>>' It doesn't matter what Mail program you are using (It uses the SMTP >>>server). >>>' It doesn't matter what Office version you are using. >>>' supposedly you can send an object or file in the body of the mail >>>(some mail programs cant do this) >>>' haven't verified this >>>' You can send any file attachment you like. >>>' No Outlook Security warning so no need for Redemption >>> >>>' You probably wont have your mail server full expanded smtp address >>>'If you go into netscape mail or outlook and look for the smtp name >>>'It will look like mine, "shawmail" or "shawnews" this dns resolves >>>'to "shawmail.cg.shawcable.net" CDO doesn't resolve this short name so >>>'The quickest way to get this actual address without using registry et al. >>>'is run cmd and ping "shawmail" to return full qualified smtp address. >>>'This code wont run exactly unless you are on cable and signed on in the >>>Shaw domain >>> >>>Sub SendCDO() >>>' This example use late binding of CDOSys, you don't have to set a >>> >>> >>> >>> >>reference >> >> >> >> >>>' You must be online to net when you run the sub >>>' You must be running WinXP or Win2000 >>>Dim cdoMessage As Object >>>Dim objCDOMail As Object >>>Dim strschema As String >>>On Error GoTo ErrorHandler ' Enable error-handling routine. >>>' >>>Set cdoMessage = CreateObject("CDO.Message") >>>Set objCDOMail = CreateObject("CDO.Configuration") >>>strschema = "http://schemas.microsoft.com/cdo/configuration/" >>>objCDOMail.Load -1 ' CDO Source Default >>>'If you have illegal or wrong smtp address here it will run for 30-60 >>>seconds and finally give transport error >>>With objCDOMail.Fields >>>.Item(strschema & "sendusing") = 2 ' cdoSendUsingPort >>>.Item(strschema & "smtpserver") = "shawmail.cg.shawcable.net" ' "Your >>>SMTP server address here" >>>.Item(strschema & "smtpserverport") = 25 'specify port number >>>.Update >>>End With >>> >>>With cdoMessage >>>Set .Configuration = objCDOMail >>>.to = "martyconnelly at gmail.com" >>>.From = "Winnie The Pooh " >>>.CC = "" >>>.BCC = "" >>>.Subject = "This is another test from marty" >>>.TextBody = "This is the text in the body just cdo defaults" >>>.AddAttachment "C:\temp2\rptSampleCount.rtf" >>>.AddAttachment "C:\temp2\frontimage.jpeg" >>>.send >>>End With >>> >>>Set cdoMessage = Nothing >>>Set objCDOMail = Nothing >>>Exit Sub ' Exit to avoid handler. >>>ErrorHandler: ' Error-handling routine. >>>Debug.Print Err.Number & "-" & Err.Description >>>Set cdoMessage = Nothing >>>Set objCDOMail = Nothing >>>Exit Sub >>>End Sub >>> >>> >>> >>>Barbara Ryan wrote: >>> >>> >>> >>> >>> >>>>I've found some SMTP components on the web that allow you to email >>>> >>>> >>>> >>>> >>directly from Access using SMTP. >> >> >> >> >>>>Does anyone know of any VBA code (e.g., using SMTP "commands") that I >>>> >>>> >>>> >>>> >>could use WITHOUT using a component (as well as NOT using any electronic >>mail application) >> >> >> >> >>>>Thanks, >>>>Barb Ryan >>>> >>>> >>>> >>>> >>>> >>>> >>>-- >>>Marty Connelly >>>Victoria, B.C. >>>Canada >>> >>> >>> >>> >>> >>> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Sat Feb 11 15:00:47 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 11 Feb 2006 13:00:47 -0800 Subject: [AccessD] (OT) VB Express + SQL Server Express ?? References: <000001c62f24$d1003e20$0200a8c0@danwaters> Message-ID: <43EE507F.3070005@shaw.ca> Why not just call Access Reports from VB.Net You will need either the Microsoft Office XP or 2003 Primary Interop Assemblies (PIAs). Microsoft Office XP primary interop assemblies (PIAs) are available for download XP http://support.microsoft.com/kb/328912/EN-US/ 2003 http://support.microsoft.com/kb/897646/ Then How To Automate Microsoft Access From Visual Basic .NET http://support.microsoft.com/default.aspx?scid=kb;en-us;317113 or more general http://support.microsoft.com/kb/311452/ http://msdn.microsoft.com/office/default.aspx?pull=/library/en-us/odc_of2003_bk/html/officeinteroperabilitych2_part1.asp you may have to reference the Microsoft.Office.Interop.Excel namespace through an alias, like so: using Excel = Microsoft.Office.Interop.Excel; simple access vb.net access program Developing Office 2003 solutions with .NET http://builder.com.com/5100-6373_14-5315974.html#Listing%20A Dan Waters wrote: >I've downloaded VB Express to get a look at the features. I've never >developed with VB before (just Access), and I remember reading that >subforms/subreports aren't available in VB. I looked through the list of >controls for forms, and didn't find any reference to subforms/subreports. > >Also, VB doesn't have a reporting feature like Access. SS 2005 has >Reporting Services, but SS Express doesn't. > >So, is the idea of using VB Express with SQL Server Express for business >applications not feasible? > >Does anyone have experience using these products yet? > >Dan > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Sat Feb 11 15:08:05 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 11 Feb 2006 13:08:05 -0800 Subject: [AccessD] (OT) VB Express + SQL Server Express ?? In-Reply-To: <43EE507F.3070005@shaw.ca> Message-ID: <007201c62f4f$4046c720$017ba8c0@xpserver> Hi Marty: That is brilliant.... have been about to start a search on relevant reporting for a VB.Net project. Excellent mind reading! :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: February 11, 2006 1:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] (OT) VB Express + SQL Server Express ?? Why not just call Access Reports from VB.Net You will need either the Microsoft Office XP or 2003 Primary Interop Assemblies (PIAs). Microsoft Office XP primary interop assemblies (PIAs) are available for download XP http://support.microsoft.com/kb/328912/EN-US/ 2003 http://support.microsoft.com/kb/897646/ Then How To Automate Microsoft Access From Visual Basic .NET http://support.microsoft.com/default.aspx?scid=kb;en-us;317113 or more general http://support.microsoft.com/kb/311452/ http://msdn.microsoft.com/office/default.aspx?pull=/library/en-us/odc_of2003 _bk/html/officeinteroperabilitych2_part1.asp you may have to reference the Microsoft.Office.Interop.Excel namespace through an alias, like so: using Excel = Microsoft.Office.Interop.Excel; simple access vb.net access program Developing Office 2003 solutions with .NET http://builder.com.com/5100-6373_14-5315974.html#Listing%20A Dan Waters wrote: >I've downloaded VB Express to get a look at the features. I've never >developed with VB before (just Access), and I remember reading that >subforms/subreports aren't available in VB. I looked through the list of >controls for forms, and didn't find any reference to subforms/subreports. > >Also, VB doesn't have a reporting feature like Access. SS 2005 has >Reporting Services, but SS Express doesn't. > >So, is the idea of using VB Express with SQL Server Express for business >applications not feasible? > >Does anyone have experience using these products yet? > >Dan > > > -- 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 carbonnb at gmail.com Sat Feb 11 21:01:10 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Sat, 11 Feb 2006 22:01:10 -0500 Subject: [AccessD] web site access tracker In-Reply-To: <006001c62ef2$442ef810$017ba8c0@xpserver> References: <006001c62ef2$442ef810$017ba8c0@xpserver> Message-ID: On 11/02/06, Jim Lawrence wrote: > Does anyone know of or has made a web site access tracking program that we > can install into the DBA web site. (We had one before but the app supplier > started adding pop-up ads.) > > I am not sure of all the languages that are supported by our web site > provider but they do support ASP and ASP.Net (and probably PHP and Perl > would be my guess.) > > We have an operational MS SQL server where details can be stored. Jim, If you have access to the IIS log, then have a look at AWStats (http://awstats.sourceforge.net/). It will parse the IIS logfile and make pretty graphs and stats. Best part, it's free. :) -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jmhecht at earthlink.net Sat Feb 11 22:52:24 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Sat, 11 Feb 2006 20:52:24 -0800 Subject: [AccessD] A little Null Help Please Message-ID: <000001c62f90$1dd237b0$6701a8c0@HPLaptop> I have a situation where for some records there is no DOB for an entry. The details are messy but trying to be a good programmer I am trying to code around it. If DOB = Null Then txtAgeThisDay.Value = "No Dob" Else txtAgeThisDay = yearcalc(DOB, txTaCCIDENT_dATE) 'Calc Age on Event Day End If I have tested a record and know the DOB is null. txtAgeThisDay.Value = "No Dob" is not triggering. Could some one please tell me why? TIA Joe Hecht jmhecht at earthlink.net From jmhecht at earthlink.net Sat Feb 11 23:50:24 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Sat, 11 Feb 2006 21:50:24 -0800 Subject: [AccessD] OT: Compare 2 directories Message-ID: <000001c62f98$39fd8bd0$6701a8c0@HPLaptop> Any one have or know a tool where you can compare two directories and synchronize them. Thanks Joe Hecht jmhecht at earthlink.net From bchacc at san.rr.com Sun Feb 12 00:10:25 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 11 Feb 2006 22:10:25 -0800 Subject: [AccessD] A little Null Help Please In-Reply-To: <000001c62f90$1dd237b0$6701a8c0@HPLaptop> References: <000001c62f90$1dd237b0$6701a8c0@HPLaptop> Message-ID: <43EED151.5040506@san.rr.com> Just guessing here. Try If IsNull(DOB) Then or the wildly inelegant If Nz(DOB) = "" Rocky Joe Hecht wrote: > I have a situation where for some records there is no DOB > for an entry. > > > > The details are messy but trying to be a good programmer I > am trying to code around it. > > > > If DOB = Null Then > > txtAgeThisDay.Value = "No Dob" > > Else > > txtAgeThisDay = yearcalc(DOB, txTaCCIDENT_dATE) 'Calc > Age on Event Day > > End If > > > > > > I have tested a record and know the DOB is null. > > > > txtAgeThisDay.Value = "No Dob" is not triggering. > > > > Could some one please tell me why? > > > > TIA > > > > Joe Hecht > > jmhecht at earthlink.net > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jwelz at hotmail.com Sun Feb 12 01:22:23 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Sun, 12 Feb 2006 00:22:23 -0700 Subject: [AccessD] OT: Compare 2 directories In-Reply-To: <000001c62f98$39fd8bd0$6701a8c0@HPLaptop> Message-ID: I wrote a little ditty that synchronizes files between laptop and server. There is a function that returns the logged in user name not included here, but it opens a table that determines which tables to synch. For each table, there is a folder with the name of the table. For each record that has files, there is a subfolder beneath the table folder named with the PK. For example, if a user synchs Company correspondence as indicated by that users settings in the Synch table, the routine opens the table of Companies, walks the AN PK field and checks to see if a folder exists for that PK, ie if AN PK = 12365, it looks in the base path (hard coded in the procedure as 'C:\GOM\') to see if any files exist at C:\GOM\tblCompany\12365\ and every other PK number below ...\tblCompany\ Each table also has a field(0) named like the name of the table, without the 'tbl' prefix and an suffix of 'ID'. tblCompany has a pk named 'CompanyID'. tblEmployee has a pk named 'EmployeeID'.... If a folder exists and any file exists in a folder, it checks to see if it exists in the server folder (base path 'S:\GOM\...') and if it doesn't, it copies it over. If the path doesn't exist, it creates the path and then copies the file. It also copies (and creates folders) in the opposite direction. The synch routine does not check for file modified date, but it can be easily modified to notify users of which files have disparate sizes or modified dates hence requiring user intervention to decide which to keep, or work on a preset rule. The routine begins with a call to 'SynchFiles'. A users record might contain the following string in the 'Synch' field: Project;Estimate;Employee and will synch the files beneath tblProject, tblEstimate and tblEmployee for each record that has files. The routine was used to get every file for every active record from the server to the laptop. If any file was created on a laptop while out of the office, that file was synched to the server when the routine ran. If any file was created on the server while a laptop was out of the office, that made its way to the laptop. One downside was that it was difficult to delete files. For example, if a file had been synched to one laptop and the server copy was deleted, the file from the laptop would find its way back to the server and on subsequent laptops. I wound up building a hierarchy of folders where files marked for deletion were kept and these were excluded from the synch. These files had to be maintained for a month or more since, if a laptop was out of service for a day longer, the files that remained on the laptop would show up again. We wound up deleteing all table related files from the laptops periodically and letting the synch run as files were marked inactive (no longer employed with us, project completed, estimate bid declined) just to cut down on the number of outdated files on the laptops as we were otherwise synching a couple gigs of files. Once an initial synch ran (typically 30 minutes), the subsequent maintenance synchs ran in a few minutes. I used arrays to store file and path information where some might use collections. Party on. If you are just comparing a pair of directories, this might be a bit of overkill..... Without futher ado: Option Compare Database Option Explicit Private Declare Function CopyFileA Lib "kernel32" (ByVal ExistingFileName As String, _ ByVal NewFileName As String, ByVal FailIfExists As Long) As Long Dim mLapFile() As String 'array of files matching criteria and path on Local drive Dim mSrvFile() As String 'array of files matching criteria and path on Server drive Dim mstrLapPath As String 'path of files to synch on Local drive Dim mstrSrvPath As String 'path of files to synch on Server drive Dim mstrFileCrit As String 'set to \*.* Dim gDb As DAO.Database Dim gstrSrvPath As String Public Sub SynchFiles() On Error GoTo ErrorHandler Dim ar() As String Dim lngI As Long Dim r As DAO.Recordset Dim strSql As String Dim strActive As String DoCmd.Hourglass True Set gDb = CurrentDb mstrFileCrit = "\*.*" strSql = "Select Synch From usysUser Where LoginName = '" & fnUserName & "'" Set r = gDb.OpenRecordset(strSql) If Len(Nz(r!Synch, "")) Then If InStr(r!Synch, "Project") Then ReDim Preserve ar(lngI) ar(lngI) = "Project" lngI = lngI + 1 End If If InStr(r!Synch, "Company") Then ReDim Preserve ar(lngI) ar(lngI) = "Company" lngI = lngI + 1 End If If InStr(r!Synch, "Contact") Then ReDim Preserve ar(lngI) ar(lngI) = "Contact" lngI = lngI + 1 End If If InStr(r!Synch, "Employee") Then ReDim Preserve ar(lngI) ar(lngI) = "Employee" lngI = lngI + 1 End If If InStr(r!Synch, "Estimate") Then ReDim Preserve ar(lngI) ar(lngI) = "Estimate" lngI = lngI + 1 End If For lngI = 0 To UBound(ar) Set r = gDb.OpenRecordset("Select " & ar(lngI) & "ID From tbl" & ar(lngI) & _ " Where Deleted = False And IsActive = True") If Not r.EOF Then gstrLocalPath = "C:\GOM\" gstrSrvPath = "S:\GOM\" mstrLapPath = gstrLocalPath & "tbl" & ar(lngI) & "\" mstrSrvPath = gstrSERVERPATH & "tbl" & ar(lngI) & "\" GetFileList r, "tbl" & ar(lngI) End If Next End If ExitRoutine: On Error Resume Next DoCmd.Hourglass False r.Close Set r = Nothing Exit Sub ErrorHandler: With Err Select Case .Number Case Else MsgBox .Number & vbCrLf & .Description, vbInformation, "Error - SynchFiles" End Select End With 'Resume 0 Resume ExitRoutine End Sub Private Sub GetFileList(r As DAO.Recordset, strTable As String) On Error GoTo ErrorHandler Dim lngI As Long Dim lngJ As Long Dim lngC As Long Dim strFileName As String Dim strFilPthNm As String Dim strSubFolder As String ReDim mLapFile(0) ReDim mSrvFile(0) lngI = 1 lngJ = 1 r.MoveLast r.MoveFirst SysCmd acSysCmdInitMeter, "Getting Local and Server " & strTable & " File Lists", r.RecordCount Do Until r.EOF strSubFolder = r(0) If Len(Dir(mstrLapPath & strSubFolder, vbDirectory)) = 0 Then If Len(Dir(mstrSrvPath & strSubFolder, vbDirectory)) Then If Len(Dir(mstrSrvPath & strSubFolder & mstrFileCrit)) Then MkDir (mstrLapPath & strSubFolder) End If End If Else strFilPthNm = mstrLapPath & strSubFolder & mstrFileCrit strFileName = Dir(strFilPthNm) Do While Len(strFileName) ReDim Preserve mLapFile(lngI) mLapFile(lngI) = strSubFolder & "\" & strFileName strFileName = Dir lngI = lngI + 1 Loop End If If Len(Dir(mstrSrvPath & strSubFolder, vbDirectory)) = 0 Then If Len(Dir(mstrLapPath & strSubFolder, vbDirectory)) Then If Len(Dir(mstrLapPath & strSubFolder & mstrFileCrit)) Then MkDir (mstrSrvPath & strSubFolder) End If End If Else strFilPthNm = mstrSrvPath & strSubFolder & mstrFileCrit strFileName = Dir(strFilPthNm) Do While Len(strFileName) ReDim Preserve mSrvFile(lngJ) mSrvFile(lngJ) = strSubFolder & "\" & strFileName strFileName = Dir lngJ = lngJ + 1 Loop End If r.MoveNext lngC = lngC + 1 SysCmd acSysCmdUpdateMeter, lngC Loop WalkFileList ExitRoutine: On Error Resume Next Exit Sub ErrorHandler: With Err Select Case .Number Case 75, 76 If fnCreateBasePath(mstrLapPath & strSubFolder) And fnCreateBasePath(mstrSrvPath & strSubFolder) Then Resume Next Case Else MsgBox .Number & vbCrLf & .Description, vbInformation, "Error - GetFileList" End Select End With 'Resume 0 Resume ExitRoutine End Sub Private Sub WalkFileList() On Error GoTo ErrorHandler Dim blnFound As Boolean Dim lngI As Long Dim lngJ As Long blnFound = False If UBound(mLapFile) > 0 Then For lngI = 1 To UBound(mLapFile) If UBound(mSrvFile) < 1 Then blnFound = False Else For lngJ = 1 To UBound(mSrvFile) If mLapFile(lngI) = mSrvFile(lngJ) Then blnFound = True Exit For End If blnFound = False Next End If If Not blnFound Then DoFileCopy mstrLapPath & mLapFile(lngI), mstrSrvPath & mLapFile(lngI), "Server", 1 End If Next End If blnFound = False If UBound(mSrvFile) > 0 Then For lngJ = 1 To UBound(mSrvFile) If UBound(mLapFile) < 1 Then blnFound = False Else For lngI = 1 To UBound(mLapFile) If mSrvFile(lngJ) = mLapFile(lngI) Then blnFound = True Exit For End If blnFound = False Next End If If Not blnFound Then DoFileCopy mstrSrvPath & mSrvFile(lngJ), mstrLapPath & mSrvFile(lngJ), "Laptop", 1 End If Next End If ExitRoutine: On Error Resume Next SysCmd acSysCmdRemoveMeter Exit Sub ErrorHandler: With Err Select Case .Number Case Else MsgBox .Number & vbCrLf & .Description, vbInformation, "Error - WalkFileList" End Select End With 'Resume 0 Resume ExitRoutine End Sub Private Sub DoFileCopy(Source As String, Dest As String, Orig As String, ByVal intC As Integer) On Error GoTo ExitRoutine SysCmd acSysCmdInitMeter, "Copying " & Source & " to " & Orig, intC Copy Source, Dest ExitRoutine: Exit Sub If Err = 70 Then MsgBox "File " & Source & " is open. Can't Copy. Press OK to continue file " & _ "Synchronization." Else MsgBox Err.Description & Err.Number Err = 0 End If End Sub Private Function fnCreateBasePath(strCreatePath As String) As Boolean On Error GoTo ErrorHandler Dim strPath As String Dim lngPos As Long strCreatePath = Trim$(strCreatePath) If Right$(strCreatePath, 1) <> "\" Then strCreatePath = strCreatePath & "\" lngPos = 7 Do Until lngPos = 1 lngPos = InStr(lngPos + 1, strCreatePath, "\") If lngPos Then strPath = Left$(strCreatePath, lngPos - 1) If Not Len(Dir(strPath, vbDirectory)) > 0 Then MkDir strPath End If End If lngPos = lngPos + 1 Loop fnCreateBasePath = True ExitRoutine: On Error Resume Next Exit Function ErrorHandler: With Err Select Case .Number Case Else MsgBox .Number & vbCrLf & .Description & vbCrLf & vbCrLf & _ " Error in creating Folder: '" & strCreatePath & "'", _ vbInformation, "Error - fnCreateBasePath" End Select End With 'Resume 0 Resume ExitRoutine End Function Private Function Copy(FileSrc As String, FileDst As String, Optional NoOverWrite As Boolean = True) _ As Boolean On Error GoTo ErrorHandler Copy = CopyFileA(FileSrc, FileDst, NoOverWrite) = 1 ExitRoutine: On Error Resume Next Exit Function ErrorHandler: With Err Select Case .Number Case Else MsgBox .Number & vbCrLf & .Description, vbInformation, "Error - Copy" End Select End With 'Resume 0 Resume ExitRoutine End Function Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Joe Hecht" >Any one have or know a tool where you can compare two >directories and synchronize them. > > > >Thanks > > > >Joe Hecht > >jmhecht at earthlink.net From vchas at comcast.net Sun Feb 12 01:46:45 2006 From: vchas at comcast.net (Vinnie Chas) Date: Sat, 11 Feb 2006 23:46:45 -0800 Subject: [AccessD] A little Null Help Please In-Reply-To: <000001c62f90$1dd237b0$6701a8c0@HPLaptop> Message-ID: <001301c62fa8$792a3be0$014bbd43@flagg> Joe Try this If isnull(DOB) then txtAgeThisDay.Value = "No Dob" Else txtAgeThisDay = yearcalc(DOB, txTaCCIDENT_dATE) 'Calc Age on Event Day End If HTH Vinnie Chas www.vinniechas.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, February 11, 2006 8:52 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A little Null Help Please I have a situation where for some records there is no DOB for an entry. The details are messy but trying to be a good programmer I am trying to code around it. If DOB = Null Then txtAgeThisDay.Value = "No Dob" Else txtAgeThisDay = yearcalc(DOB, txTaCCIDENT_dATE) 'Calc Age on Event Day End If I have tested a record and know the DOB is null. txtAgeThisDay.Value = "No Dob" is not triggering. Could some one please tell me why? TIA Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.6/257 - Release Date: 2/10/2006 From stuart at lexacorp.com.pg Sun Feb 12 03:32:52 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 12 Feb 2006 19:32:52 +1000 Subject: [AccessD] OT: Compare 2 directories In-Reply-To: <000001c62f98$39fd8bd0$6701a8c0@HPLaptop> Message-ID: <43EF8D64.32598.94511FB@stuart.lexacorp.com.pg> On 11 Feb 2006 at 21:50, Joe Hecht wrote: > Any one have or know a tool where you can compare two > directories and synchronize them. > I wrote a little utility a few years ago to merge directories. It may be of use. You can find it at http://www.lexacorp.com.pg click on the "free software button" -- Stuart From stuart at lexacorp.com.pg Sun Feb 12 03:37:08 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 12 Feb 2006 19:37:08 +1000 Subject: [AccessD] A little Null Help Please In-Reply-To: <000001c62f90$1dd237b0$6701a8c0@HPLaptop> Message-ID: <43EF8E64.21238.948F6CE@stuart.lexacorp.com.pg> On 11 Feb 2006 at 20:52, Joe Hecht wrote: > > If DOB = Null Then > As someone else said the other day on this list. Nothing equals Null. You need to use Isnull() in your comparison or use NZ() to convert the Null to something else before doing the comparison. -- Stuart From word_diva at hotmail.com Sun Feb 12 07:17:33 2006 From: word_diva at hotmail.com (Nancy Lytle) Date: Sun, 12 Feb 2006 08:17:33 -0500 Subject: [AccessD] OT: Compare 2 directories In-Reply-To: <000001c62f98$39fd8bd0$6701a8c0@HPLaptop> Message-ID: You might try Microsoft's SyncToy, it is a wonderful little utility for sync'ing, etc. Nancy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Sunday, February 12, 2006 12:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Compare 2 directories Any one have or know a tool where you can compare two directories and synchronize them. Thanks Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.6/257 - Release Date: 2/10/2006 From max at sherman.org.uk Sun Feb 12 09:27:58 2006 From: max at sherman.org.uk (Max Sherman) Date: Sun, 12 Feb 2006 15:27:58 -0000 Subject: [AccessD] Email using SMTP In-Reply-To: <43EE3CFF.5090503@shaw.ca> Message-ID: <000001c62fe8$e8bdd170$8bf31452@server> Thanks Marty, none of these did the trick, but they did start me hopping across the sites. I eventually came up with FREEPOP which I have started making use of. It describes itself as: Description: FreePOP is an ActiveX control that allows read/write access to a POP3 mailbox and the messages in the mailbox. This ActiveX control was developed with Microsoft Visual Basic 6.0-SP4. Possible uses: FreePOP allows you to find out the number of unread messages in a POP3 mailbox. FreePOP allows you access to the various headers of a message (i.e. Subject, Date, From, etc.) FreePOP allows you to retrieve the contents of a message. FreePOP allows you to selectively delete a message. FreePOP allows you to read a message directly into a file. Documentation is good and I had it working in no time at all. I just need to program it in so that it operates in the way I want. Thanks for kick-starting me. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: 11 February 2006 19:38 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email using SMTP You could try the POPX control from Mabry, but may not be able to use within another ActiveX control MAIL/X CONTROLS - Internet SMTP and POP ActiveX Controls and COM Obj http://www.mabry.com/mailx/index.htm IDS Mail version works with Access now assurx.com http://www.intuitive-data.com/idsmail.htm You can use the winsock control (already present on your machine) or the Winsock API's . You just have to know what ports to connect to for SMTP and for POP3 http://www.vbip.com/winsock/winsock_simple_sender.asp Max Sherman wrote: >Hi All, >I found the code posted by Marty et al to be very useful and now have this >working from within Access. > >Does anybody have anything similar that will work from within Access to >retrieve POP3 emails from a server (bypassing Outlook etc). Preferably with >the option to leave a copy on the server. > >Regards >Max > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: 31 January 2006 05:20 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Email using SMTP > >Now if you wanted to get really fancy;) >Here is how to execute a vbs script with CDO that sends an email but it >is executed from within an SQL Stored Procedure >that you could call from Access > >http://www.sqlservercentral.com/columnists/aloera/sqlserverscriptingandwmi. a >sp > >Barbara Ryan wrote: > > > >>Thanks, Steve and Marty.... It's nice to know that I have several options. >>I learn something new every day......Barb >> >> >>----- Original Message ----- >>From: "MartyConnelly" >>To: "Access Developers discussion and problem solving" >> >>Sent: Monday, January 30, 2006 4:10 PM >>Subject: Re: [AccessD] Email using SMTP >> >> >> >> >> >> >>>Here is another method of using CDO similar to Steves but doesn't >>>require a userid password. >>>Requires WinXP or Win2000 >>>This method may only work inside a domain ie you have a online node via >>>a cable modem >>>but not on a dial up. >>> >>> >>>'The example code is using CDOSYS (CDO for Windows 2000 or XP). >>>'I dont think I would want to go back to CDONTS for earlier systems >>>'It does not depend on MAPI or CDO or Outlook >>>'It does not use your mailbox to send email. >>>' So you can send mail without a mail program or mail account >>>' This code builds the message and drops it into a pickup directory, >>>' and the SMTP service running on the machine >>>' picks it up and send it out to the internet. >>> >>>'So why use CDO code instead of Outlook automation or >>>Application.SendMail in VBA. >>>' It doesn't matter what Mail program you are using (It uses the SMTP >>>server). >>>' It doesn't matter what Office version you are using. >>>' supposedly you can send an object or file in the body of the mail >>>(some mail programs cant do this) >>>' haven't verified this >>>' You can send any file attachment you like. >>>' No Outlook Security warning so no need for Redemption >>> >>>' You probably wont have your mail server full expanded smtp address >>>'If you go into netscape mail or outlook and look for the smtp name >>>'It will look like mine, "shawmail" or "shawnews" this dns resolves >>>'to "shawmail.cg.shawcable.net" CDO doesn't resolve this short name so >>>'The quickest way to get this actual address without using registry et al. >>>'is run cmd and ping "shawmail" to return full qualified smtp address. >>>'This code wont run exactly unless you are on cable and signed on in the >>>Shaw domain >>> >>>Sub SendCDO() >>>' This example use late binding of CDOSys, you don't have to set a >>> >>> >>> >>> >>reference >> >> >> >> >>>' You must be online to net when you run the sub >>>' You must be running WinXP or Win2000 >>>Dim cdoMessage As Object >>>Dim objCDOMail As Object >>>Dim strschema As String >>>On Error GoTo ErrorHandler ' Enable error-handling routine. >>>' >>>Set cdoMessage = CreateObject("CDO.Message") >>>Set objCDOMail = CreateObject("CDO.Configuration") >>>strschema = "http://schemas.microsoft.com/cdo/configuration/" >>>objCDOMail.Load -1 ' CDO Source Default >>>'If you have illegal or wrong smtp address here it will run for 30-60 >>>seconds and finally give transport error >>>With objCDOMail.Fields >>>.Item(strschema & "sendusing") = 2 ' cdoSendUsingPort >>>.Item(strschema & "smtpserver") = "shawmail.cg.shawcable.net" ' "Your >>>SMTP server address here" >>>.Item(strschema & "smtpserverport") = 25 'specify port number >>>.Update >>>End With >>> >>>With cdoMessage >>>Set .Configuration = objCDOMail >>>.to = "martyconnelly at gmail.com" >>>.From = "Winnie The Pooh " >>>.CC = "" >>>.BCC = "" >>>.Subject = "This is another test from marty" >>>.TextBody = "This is the text in the body just cdo defaults" >>>.AddAttachment "C:\temp2\rptSampleCount.rtf" >>>.AddAttachment "C:\temp2\frontimage.jpeg" >>>.send >>>End With >>> >>>Set cdoMessage = Nothing >>>Set objCDOMail = Nothing >>>Exit Sub ' Exit to avoid handler. >>>ErrorHandler: ' Error-handling routine. >>>Debug.Print Err.Number & "-" & Err.Description >>>Set cdoMessage = Nothing >>>Set objCDOMail = Nothing >>>Exit Sub >>>End Sub >>> >>> >>> >>>Barbara Ryan wrote: >>> >>> >>> >>> >>> >>>>I've found some SMTP components on the web that allow you to email >>>> >>>> >>>> >>>> >>directly from Access using SMTP. >> >> >> >> >>>>Does anyone know of any VBA code (e.g., using SMTP "commands") that I >>>> >>>> >>>> >>>> >>could use WITHOUT using a component (as well as NOT using any electronic >>mail application) >> >> >> >> >>>>Thanks, >>>>Barb Ryan >>>> >>>> >>>> >>>> >>>> >>>> >>>-- >>>Marty Connelly >>>Victoria, B.C. >>>Canada >>> >>> >>> >>> >>> >>> >> >> >> >> > > > -- 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 Gustav at cactus.dk Sun Feb 12 10:12:20 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 12 Feb 2006 17:12:20 +0100 Subject: [AccessD] Email using SMTP Message-ID: Hi Max FreePOP may lack some features (I've not used it): http://www.harm.net/FreePOP However, I've used two (not free but not expensive) POP3 tools, the DLL from http://www.marshallsoft.com and the very powerful ocx from Chilkat: http://www.chilkatsoft.com/email-activex.asp Both feature excellent service which alone may very well be worth the money you pay. /gustav >>> max at sherman.org.uk 12-02-2006 16:27:58 >>> Thanks Marty, none of these did the trick, but they did start me hopping across the sites. I eventually came up with FREEPOP which I have started making use of. It describes itself as: Description: FreePOP is an ActiveX control that allows read/write access to a POP3 mailbox and the messages in the mailbox. This ActiveX control was developed with Microsoft Visual Basic 6.0-SP4. Possible uses: FreePOP allows you to find out the number of unread messages in a POP3 mailbox. FreePOP allows you access to the various headers of a message (i.e. Subject, Date, From, etc.) FreePOP allows you to retrieve the contents of a message. FreePOP allows you to selectively delete a message. FreePOP allows you to read a message directly into a file. Documentation is good and I had it working in no time at all. I just need to program it in so that it operates in the way I want. Thanks for kick-starting me. Regards Max From erbachs at gmail.com Sun Feb 12 12:32:43 2006 From: erbachs at gmail.com (Steve Erbach) Date: Sun, 12 Feb 2006 12:32:43 -0600 Subject: [AccessD] Basic Query Design: Results In-Reply-To: References: Message-ID: <39cb22f30602121032p74a0fe9g972109f17b710a26@mail.gmail.com> J?rgen, Now, the $64,000 question: Did all the queries give you the same results? Just kidding! I'm interested to see that the Count query is quickest. It's certainly easier to understand...and should make for a lot less coding! Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/10/06, J?rgen Welz wrote: > Of course, after I posted, I had to try another method. > > The query is: > > SELECT tblEmployee.ContactID, [FirstName] & ' ' & [LastName] AS Expr1 > FROM (((tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = > tblEmployeeCourse.EmployeeID) INNER JOIN tblEmployeeCourse AS > tblEmployeeCourse_1 ON tblEmployeeCourse.EmployeeID = > tblEmployeeCourse_1.EmployeeID) INNER JOIN tblEmployeeCourse AS > tblEmployeeCourse_2 ON tblEmployeeCourse.EmployeeID = > tblEmployeeCourse_2.EmployeeID) INNER JOIN tblEmployeeCourse AS > tblEmployeeCourse_3 ON tblEmployeeCourse.EmployeeID = > tblEmployeeCourse_3.EmployeeID > WHERE (((tblEmployeeCourse.CourseID)=1) AND > ((tblEmployeeCourse_1.CourseID)=2) AND ((tblEmployeeCourse_2.CourseID)=4) > AND ((tblEmployeeCourse_3.CourseID)=5)) > ORDER BY [FirstName] & ' ' & [LastName]; > > > This is functionally equivalent to creating a query select where CourseID > =1, another where CourseID = 2, a third where CouseID = 4 and a 4th where > course ID = 5 and then joining them all on the ContactID. > > A few runs of the time test adding this as a 4th test item result in a time > that is 2nd fastest but consistently 70% slower than the fastest method that > uses the count. > > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > > > > > >From: "J??rgen Welz" > > > >Had to try the speed comparisons between the three approaches to querying > >"Every Employee who has taken all of the following 4 courses". Tables are > >tblEmployee, tblEmployeeCourse (junction table) and tblCourse. There are > >1700 employees, about 2000 EmployeeCourse records and 18 course records. > > > >1. Using Count: qryTestCount > > > >SELECT tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName AS > >Estimator > >FROM tblEmployeeCourse INNER JOIN tblEmployee ON > >tblEmployeeCourse.EmployeeID = tblEmployee.ContactID > >WHERE (((tblEmployeeCourse.CourseID) In (1,2,4,5))) > >GROUP BY tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName > >HAVING (((Count(tblEmployee.ContactID)) = 4)) > >ORDER BY FirstName & ' ' & LastName; > > > >2. Nested Selects: qryTestNestedIn > > > >SELECT DISTINCT ContactID, FirstName & ' ' & LastName > >FROM tblEmployeeEmployeeType RIGHT JOIN tblEmployee ON > >tblEmployeeEmployeeType.EmployeeID = tblEmployee.ContactID > >WHERE tblEmployee.ContactID > 0 And tblEmployee.Deleted = False And > >FirstName > '' And LastName > '' And ContactID In (Select ContactID FROM > >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = > >tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM > >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = > >tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM > >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = > >tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM > >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = > >tblEmployeeCourse.EmployeeID Where CourseID = 1) And CourseID = 2) And > >CourseID = 5) And CourseID = 4) > >ORDER BY FirstName & ' ' & LastName; > > > >3. Relational Division: qryTestRelationalDiv > > > >SELECT DISTINCT EC1.EmployeeID, [FirstName] & " " & [LastName] AS Expr1 > >FROM tblEmployeeCourse AS EC1 INNER JOIN tblEmployee ON EC1.EmployeeID = > >tblEmployee.ContactID > >WHERE (((Exists (SELECT CourseID FROM tblCourse WHERE CourseID In > >(1,2,4,5) AND NOT EXISTS ( SELECT * FROM tblEmployeeCourse AS EC2 > > WHERE EC2.CourseID = tblCourse.CourseID AND EC2.EmployeeID = > >EC1.EmployeeID)))=False)) > >ORDER BY [FirstName] & " " & [LastName]; > > > >The following subroutine was used to open each query in sequence and report > >to the debug window: > > > >Public Declare Function timeGetTime Lib "Winmm" () As Long > > > >Sub testQuerySpeed() > > Dim r As DAO.Recordset > > Dim db As DAO.Database > > Dim lngi As Long > > Dim t As Long > > > > Set db = CurrentDb > > t = timeGetTime > > For lngi = 0 To 50 > > Set r = db.OpenRecordset("qryTestCount") > > Next > > Debug.Print "Using Count " & timeGetTime - t > > t = timeGetTime > > For lngi = 0 To 50 > > Set r = db.OpenRecordset("qryTestNestedIn") > > Next > > Debug.Print "Using Nested Join " & timeGetTime - t > > t = timeGetTime > > For lngi = 0 To 50 > > Set r = db.OpenRecordset("qryTestRelationalDiv") > > Next > > Debug.Print "Using RelationalDivision " & timeGetTime - t > > r.Close > > Set r = Nothing > >End Sub > > > >The results in the immediate window (in milliseconds), run 5 minutes apart > >speak for themselves: > > > >Using Count 5219 > >Using Nested Join 34796 > >Using RelationalDivision 13563 > > > >Using Count 7750 > >Using Nested Join 53625 > >Using RelationalDivision 17000 > > > >Ciao > >J?rgen Welz > >Edmonton, Alberta > >jwelz 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 > > > -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security From max at sherman.org.uk Sun Feb 12 13:16:41 2006 From: max at sherman.org.uk (Max Sherman) Date: Sun, 12 Feb 2006 19:16:41 -0000 Subject: [AccessD] Email using SMTP In-Reply-To: Message-ID: <000b01c63008$dc38a810$8bf31452@server> Hi Gustav, Yes, I looked at both of those but I *think* the Free one will give me all that I need (but of course, I won't know for sure until I hit a block). What I would like is the actual API code that utilise the winsock so that I can do away with the ActiveX completely. In brief it offers: FreePOP Methods Connect - Disconnect - SetCurrentMsg - RetrieveCurrentMsg - DeleteCurrentMsg - ResetDeletedMsgs - GetOtherHeader - strHeaderLine - WriteCurrentMsgToFile - GetStringValueOfProperty - FreePOP Properties POPHostname - POPPort - POPUsername - POPPassword - POPTimeout - Status - StatusText - Error ErrorText - MsgCount - MsgNumber - MsgUniqueID - MsgHeaders - MsgSubject - MsgFrom - MsgReturnPath - MsgReplyTo - MsgDate - MsgSizeInK - ConnectResponse - MsgContents - DebugMode - DebugFile FreePOP Events MsgReadStatus Message read so far (in K) Message size (in K) Percent completed Thanks for the feedback. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 12 February 2006 16:12 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email using SMTP Hi Max FreePOP may lack some features (I've not used it): http://www.harm.net/FreePOP However, I've used two (not free but not expensive) POP3 tools, the DLL from http://www.marshallsoft.com and the very powerful ocx from Chilkat: http://www.chilkatsoft.com/email-activex.asp Both feature excellent service which alone may very well be worth the money you pay. /gustav >>> max at sherman.org.uk 12-02-2006 16:27:58 >>> Thanks Marty, none of these did the trick, but they did start me hopping across the sites. I eventually came up with FREEPOP which I have started making use of. It describes itself as: Description: FreePOP is an ActiveX control that allows read/write access to a POP3 mailbox and the messages in the mailbox. This ActiveX control was developed with Microsoft Visual Basic 6.0-SP4. Possible uses: FreePOP allows you to find out the number of unread messages in a POP3 mailbox. FreePOP allows you access to the various headers of a message (i.e. Subject, Date, From, etc.) FreePOP allows you to retrieve the contents of a message. FreePOP allows you to selectively delete a message. FreePOP allows you to read a message directly into a file. Documentation is good and I had it working in no time at all. I just need to program it in so that it operates in the way I want. Thanks for kick-starting me. Regards Max -- 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 12 13:36:13 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 12 Feb 2006 20:36:13 +0100 Subject: [AccessD] Email using SMTP Message-ID: Hi Max Don't do that unless for fun or if you don't know what to do. It's for a reason that so many controls are available ... If you are trying to avoid installation issues, stick with a DLL solution like that from Marshall. Or use a command line util that saves to files which you later can parse like GetMail: http://www.xmailserver.org/davide.html /gustav >>> max at sherman.org.uk 12-02-2006 20:16:41 >>> Hi Gustav, Yes, I looked at both of those but I *think* the Free one will give me all that I need (but of course, I won't know for sure until I hit a block). What I would like is the actual API code that utilise the winsock so that I can do away with the ActiveX completely. In brief it offers: FreePOP Methods Connect - Disconnect - SetCurrentMsg - RetrieveCurrentMsg - DeleteCurrentMsg - ResetDeletedMsgs - GetOtherHeader - strHeaderLine - WriteCurrentMsgToFile - GetStringValueOfProperty - FreePOP Properties POPHostname - POPPort - POPUsername - POPPassword - POPTimeout - Status - StatusText - Error ErrorText - MsgCount - MsgNumber - MsgUniqueID - MsgHeaders - MsgSubject - MsgFrom - MsgReturnPath - MsgReplyTo - MsgDate - MsgSizeInK - ConnectResponse - MsgContents - DebugMode - DebugFile FreePOP Events MsgReadStatus Message read so far (in K) Message size (in K) Percent completed Thanks for the feedback. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 12 February 2006 16:12 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email using SMTP Hi Max FreePOP may lack some features (I've not used it): http://www.harm.net/FreePOP However, I've used two (not free but not expensive) POP3 tools, the DLL from http://www.marshallsoft.com and the very powerful ocx from Chilkat: http://www.chilkatsoft.com/email-activex.asp Both feature excellent service which alone may very well be worth the money you pay. /gustav >>> max at sherman.org.uk 12-02-2006 16:27:58 >>> Thanks Marty, none of these did the trick, but they did start me hopping across the sites. I eventually came up with FREEPOP which I have started making use of. It describes itself as: Description: FreePOP is an ActiveX control that allows read/write access to a POP3 mailbox and the messages in the mailbox. This ActiveX control was developed with Microsoft Visual Basic 6.0-SP4. Possible uses: FreePOP allows you to find out the number of unread messages in a POP3 mailbox. FreePOP allows you access to the various headers of a message (i.e. Subject, Date, From, etc.) FreePOP allows you to retrieve the contents of a message. FreePOP allows you to selectively delete a message. FreePOP allows you to read a message directly into a file. Documentation is good and I had it working in no time at all. I just need to program it in so that it operates in the way I want. Thanks for kick-starting me. Regards Max From shamil at users.mns.ru Sun Feb 12 15:29:47 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Mon, 13 Feb 2006 00:29:47 +0300 Subject: [AccessD] web site access tracker References: <006001c62ef2$442ef810$017ba8c0@xpserver> Message-ID: <003001c6301b$740b36a0$6501a8c0@Nant> Jim, As far as I can see here is good and free software HTTP-ANALYZE 2.4 (http://www.http-analyze.org/) Shamil ----- Original Message ----- From: "Jim Lawrence" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 11, 2006 1:02 PM Subject: [AccessD] web site access tracker > Hi All: > > Does anyone know of or has made a web site access tracking program that we > can install into the DBA web site. (We had one before but the app supplier > started adding pop-up ads.) > > I am not sure of all the languages that are supported by our web site > provider but they do support ASP and ASP.Net (and probably PHP and Perl > would be my guess.) > > We have an operational MS SQL server where details can be stored. > > > TIA > Jim > > -- > 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 12 16:59:40 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 12 Feb 2006 14:59:40 -0800 Subject: [AccessD] web site access tracker In-Reply-To: <003001c6301b$740b36a0$6501a8c0@Nant> Message-ID: <000a01c63028$018dc090$017ba8c0@xpserver> Hi Shamil: Thanks for the heads up. I will looking into it and when I get some comments back form our ISP then should be able to process... May have to work as a link though it would be nicer if we could host it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: February 12, 2006 1:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] web site access tracker Jim, As far as I can see here is good and free software HTTP-ANALYZE 2.4 (http://www.http-analyze.org/) Shamil ----- Original Message ----- From: "Jim Lawrence" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 11, 2006 1:02 PM Subject: [AccessD] web site access tracker > Hi All: > > Does anyone know of or has made a web site access tracking program that we > can install into the DBA web site. (We had one before but the app supplier > started adding pop-up ads.) > > I am not sure of all the languages that are supported by our web site > provider but they do support ASP and ASP.Net (and probably PHP and Perl > would be my guess.) > > We have an operational MS SQL server where details can be stored. > > > TIA > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sun Feb 12 21:32:22 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 12 Feb 2006 19:32:22 -0800 Subject: [AccessD] (OT) VB Express + SQL Server Express ?? References: <007201c62f4f$4046c720$017ba8c0@xpserver> Message-ID: <43EFFDC6.1030700@shaw.ca> You can also use tools like this to turn Access Form and Report applications into Web-enabled Crystal Reports http://doc.advisor.com/Articles.nsf/nl/12367 Jim Lawrence wrote: >Hi Marty: > >That is brilliant.... have been about to start a search on relevant >reporting for a VB.Net project. > >Excellent mind reading! :-) > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: February 11, 2006 1:01 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] (OT) VB Express + SQL Server Express ?? > >Why not just call Access Reports from VB.Net >You will need either the Microsoft Office XP or 2003 Primary Interop >Assemblies (PIAs). >Microsoft Office XP primary interop assemblies (PIAs) are available for >download >XP >http://support.microsoft.com/kb/328912/EN-US/ >2003 >http://support.microsoft.com/kb/897646/ >Then >How To Automate Microsoft Access From Visual Basic .NET >http://support.microsoft.com/default.aspx?scid=kb;en-us;317113 > >or more general > >http://support.microsoft.com/kb/311452/ >http://msdn.microsoft.com/office/default.aspx?pull=/library/en-us/odc_of2003 >_bk/html/officeinteroperabilitych2_part1.asp > > you may have to reference the Microsoft.Office.Interop.Excel namespace >through an alias, like so: > >using Excel = Microsoft.Office.Interop.Excel; >simple access vb.net access program > Developing Office 2003 solutions with .NET >http://builder.com.com/5100-6373_14-5315974.html#Listing%20A > > > > >Dan Waters wrote: > > > >>I've downloaded VB Express to get a look at the features. I've never >>developed with VB before (just Access), and I remember reading that >>subforms/subreports aren't available in VB. I looked through the list of >>controls for forms, and didn't find any reference to subforms/subreports. >> >>Also, VB doesn't have a reporting feature like Access. SS 2005 has >>Reporting Services, but SS Express doesn't. >> >>So, is the idea of using VB Express with SQL Server Express for business >>applications not feasible? >> >>Does anyone have experience using these products yet? >> >>Dan >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From max at sherman.org.uk Mon Feb 13 01:51:55 2006 From: max at sherman.org.uk (Max Sherman) Date: Mon, 13 Feb 2006 07:51:55 -0000 Subject: [AccessD] Email using SMTP In-Reply-To: Message-ID: <001901c63072$5d43fea0$8bf31452@server> Hi Gustav, Thanks for the link to Davide's page. Lots there for me to look at - brilliant link. Who/what is Marshall? Is there a link for him/it? Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 12 February 2006 19:36 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email using SMTP Hi Max Don't do that unless for fun or if you don't know what to do. It's for a reason that so many controls are available ... If you are trying to avoid installation issues, stick with a DLL solution like that from Marshall. Or use a command line util that saves to files which you later can parse like GetMail: http://www.xmailserver.org/davide.html /gustav >>> max at sherman.org.uk 12-02-2006 20:16:41 >>> Hi Gustav, Yes, I looked at both of those but I *think* the Free one will give me all that I need (but of course, I won't know for sure until I hit a block). What I would like is the actual API code that utilise the winsock so that I can do away with the ActiveX completely. In brief it offers: FreePOP Methods Connect - Disconnect - SetCurrentMsg - RetrieveCurrentMsg - DeleteCurrentMsg - ResetDeletedMsgs - GetOtherHeader - strHeaderLine - WriteCurrentMsgToFile - GetStringValueOfProperty - FreePOP Properties POPHostname - POPPort - POPUsername - POPPassword - POPTimeout - Status - StatusText - Error ErrorText - MsgCount - MsgNumber - MsgUniqueID - MsgHeaders - MsgSubject - MsgFrom - MsgReturnPath - MsgReplyTo - MsgDate - MsgSizeInK - ConnectResponse - MsgContents - DebugMode - DebugFile FreePOP Events MsgReadStatus Message read so far (in K) Message size (in K) Percent completed Thanks for the feedback. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 12 February 2006 16:12 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email using SMTP Hi Max FreePOP may lack some features (I've not used it): http://www.harm.net/FreePOP However, I've used two (not free but not expensive) POP3 tools, the DLL from http://www.marshallsoft.com and the very powerful ocx from Chilkat: http://www.chilkatsoft.com/email-activex.asp Both feature excellent service which alone may very well be worth the money you pay. /gustav >>> max at sherman.org.uk 12-02-2006 16:27:58 >>> Thanks Marty, none of these did the trick, but they did start me hopping across the sites. I eventually came up with FREEPOP which I have started making use of. It describes itself as: Description: FreePOP is an ActiveX control that allows read/write access to a POP3 mailbox and the messages in the mailbox. This ActiveX control was developed with Microsoft Visual Basic 6.0-SP4. Possible uses: FreePOP allows you to find out the number of unread messages in a POP3 mailbox. FreePOP allows you access to the various headers of a message (i.e. Subject, Date, From, etc.) FreePOP allows you to retrieve the contents of a message. FreePOP allows you to selectively delete a message. FreePOP allows you to read a message directly into a file. Documentation is good and I had it working in no time at all. I just need to program it in so that it operates in the way I want. Thanks for kick-starting me. Regards Max -- 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 13 02:31:08 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 13 Feb 2006 09:31:08 +0100 Subject: [AccessD] Email using SMTP Message-ID: Hi Max Yes: http://www.marshallsoft.com /gustav >>> max at sherman.org.uk 13-02-2006 08:51 >>> Hi Gustav, Thanks for the link to Davide's page. Lots there for me to look at - brilliant link. Who/what is Marshall? Is there a link for him/it? Regards Max From Johncliviger at aol.com Mon Feb 13 04:41:45 2006 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Mon, 13 Feb 2006 05:41:45 EST Subject: [AccessD] Printing from AXP where printer is elsewhere Message-ID: Hi all I'm printing documents from AXP using cmd_Onclick to drive a report and all is fine. That is until the printer elsewhere in the building cocks it up and we need a re-print. How can I know sat at my AXP workstation that the document has fails to print? TIA john c From jwcolby at ColbyConsulting.com Mon Feb 13 09:39:11 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Mon, 13 Feb 2006 10:39:11 -0500 Subject: [AccessD] Self installing widget for Outlook Message-ID: <003001c630b3$a3d6cb40$647aa8c0@ColbyM6805> Does anyone know how to create for Outlook a self installing toolbar which accesses a macro from a button on the toolbar. The toolbar would need to be created and the code inserted into Outlook. John W. Colby www.ColbyConsulting.com From DWUTKA at marlow.com Mon Feb 13 10:38:05 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 13 Feb 2006 10:38:05 -0600 Subject: [AccessD] OT: Affiliate Program Message-ID: <17724746D360394AA3BFE5B8D40A9C1B49E70D@main2.marlow.com> That's pretty simple to do from an ASP page. You need to look at the referrer property. If you open a browser, and type in an address, the referer property in the HTTP header information is blank. However, if you click a link on a site, the referer property will have the site you are coming from in it. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, February 10, 2006 12:54 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Affiliate Program Dear List: I have a web site where we are selling The Sleep Advisor (www.thesleepadvisor.com). Someone with an alternative health site has proposed to promote The Sleep Advisor on her site and send folks to our site. She asks if we have an affiliate program. Which we ain't. I looked into it a bit and it doesn't look trivial. Basically we need a way to know if someone visiting our site and buying The Sleep Advisor originated from her site. We're hosted by Affinity and have Urchin statistics but I don't see anything there that would be helpful right off. Does anyone know a slick, quick way to do this? MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgeller at cce.umn.edu Mon Feb 13 11:00:52 2006 From: sgeller at cce.umn.edu (Susan Geller) Date: Mon, 13 Feb 2006 11:00:52 -0600 Subject: [AccessD] Office 2003 and Visual Source Safe Message-ID: <89934FC7BFD7AC40AC64F2A29B0C2D638A98A2@mail.cce.local> We have been using the Office XP Developer version for Access and have been using the feature that allows us to check our projects into Visual Source Safe. We are totally reliant on this because we have multiple developers working on a single project. In Office 2003, this feature is not available. Does anybody know how to connect an Access file to VSS starting in Office 2003? Thanks. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 From max at sherman.org.uk Mon Feb 13 11:01:31 2006 From: max at sherman.org.uk (Max Sherman) Date: Mon, 13 Feb 2006 17:01:31 -0000 Subject: [AccessD] Email using SMTP In-Reply-To: Message-ID: <001a01c630bf$24b50e10$8bf31452@server> Thanks Gustav, I will check it out. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 13 February 2006 08:31 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email using SMTP Hi Max Yes: http://www.marshallsoft.com /gustav >>> max at sherman.org.uk 13-02-2006 08:51 >>> Hi Gustav, Thanks for the link to Davide's page. Lots there for me to look at - brilliant link. Who/what is Marshall? Is there a link for him/it? Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgeller at cce.umn.edu Mon Feb 13 11:09:36 2006 From: sgeller at cce.umn.edu (Susan Geller) Date: Mon, 13 Feb 2006 11:09:36 -0600 Subject: [AccessD] Office 2003 and Visual Source Safe Message-ID: <89934FC7BFD7AC40AC64F2A29B0C2D638A98BF@mail.cce.local> Got my own answer: -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Geller Sent: Monday, February 13, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] Office 2003 and Visual Source Safe We have been using the Office XP Developer version for Access and have been using the feature that allows us to check our projects into Visual Source Safe. We are totally reliant on this because we have multiple developers working on a single project. In Office 2003, this feature is not available. Does anybody know how to connect an Access file to VSS starting in Office 2003? Thanks. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgeller at cce.umn.edu Mon Feb 13 11:10:18 2006 From: sgeller at cce.umn.edu (Susan Geller) Date: Mon, 13 Feb 2006 11:10:18 -0600 Subject: [AccessD] Office 2003 and Visual Source Safe Message-ID: <89934FC7BFD7AC40AC64F2A29B0C2D638A98C2@mail.cce.local> Oops. And the answer is reported in this article for those who are interested: http://support.microsoft.com/kb/837136/en-us --Susan -----Original Message----- From: Susan Geller Sent: Monday, February 13, 2006 11:10 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Office 2003 and Visual Source Safe Got my own answer: -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Geller Sent: Monday, February 13, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] Office 2003 and Visual Source Safe We have been using the Office XP Developer version for Access and have been using the feature that allows us to check our projects into Visual Source Safe. We are totally reliant on this because we have multiple developers working on a single project. In Office 2003, this feature is not available. Does anybody know how to connect an Access file to VSS starting in Office 2003? Thanks. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 -- 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 13 11:10:13 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 13 Feb 2006 09:10:13 -0800 Subject: [AccessD] Office 2003 and Visual Source Safe Message-ID: I believe I posted the link to the download within the last week or so, Susan. http://msdn.microsoft.com/vstudio/previous/ssafe/ Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Geller Sent: Monday, February 13, 2006 9:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] Office 2003 and Visual Source Safe We have been using the Office XP Developer version for Access and have been using the feature that allows us to check our projects into Visual Source Safe. We are totally reliant on this because we have multiple developers working on a single project. In Office 2003, this feature is not available. Does anybody know how to connect an Access file to VSS starting in Office 2003? Thanks. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Mon Feb 13 11:17:17 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 13 Feb 2006 12:17:17 -0500 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B49E70D@main2.marlow.com> References: <17724746D360394AA3BFE5B8D40A9C1B49E70D@main2.marlow.com> Message-ID: On 13/02/06, DWUTKA at marlow.com wrote: > That's pretty simple to do from an ASP page. You need to look at the > referrer property. If you open a browser, and type in an address, the > referer property in the HTTP header information is blank. However, if you > click a link on a site, the referer property will have the site you are > coming from in it. Assuming that the user (or someone between the end user and the 2 servers like a proxy server or some such) hasn't disabled sending the Referer header. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From Erwin.Craps at ithelps.be Mon Feb 13 14:48:13 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 13 Feb 2006 21:48:13 +0100 Subject: [AccessD] OT: Compare 2 directories Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B6380@stekelbes.ithelps.local> It is wonderfull :-) -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Nancy Lytle Verzonden: zondag 12 februari 2006 14:18 Aan: 'Access Developers discussion and problem solving' Onderwerp: Re: [AccessD] OT: Compare 2 directories You might try Microsoft's SyncToy, it is a wonderful little utility for sync'ing, etc. Nancy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Sunday, February 12, 2006 12:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Compare 2 directories Any one have or know a tool where you can compare two directories and synchronize them. Thanks Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.6/257 - Release Date: 2/10/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Mon Feb 13 15:34:56 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 13 Feb 2006 15:34:56 -0600 Subject: [AccessD] Make table query fails Message-ID: When I try to run the following query I get a message of invalid argument. When I try to view the results in datasheet view it work fine. What might be going wrong? I tried writing the results to a different table with no success. No I did not write this ugly query - I was given it. Thanks for ideas. SELECT [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells to Alloc].CO2PAT_SDate, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API, ConfigMaster.PID AS Other_Pattern, Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4) AS Other_Pattern_as_Well, Constants!SDate AS Other_Pattern_SDate, SurfaceMaster.PID AS Other_Pattern_as_Well_API INTO [Funky Temp Other Ptrn to Alloc] FROM SurfaceMaster, [Funky Ptrn and Wells to Alloc] INNER JOIN (ConfigMaster INNER JOIN Constants ON ConfigMaster.PID = Constants.PID) ON [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API = ConfigMaster.ChildPID WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Constants.Date)<#1/1/1960#) AND ((SurfaceMaster.Name)=Right([ConfigMaster]![PID],Len([ConfigMaster]![PID ])-4))) ORDER BY [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT, Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From martyconnelly at shaw.ca Mon Feb 13 15:39:45 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 13 Feb 2006 13:39:45 -0800 Subject: [AccessD] Printing from AXP where printer is elsewhere References: Message-ID: <43F0FCA1.8000803@shaw.ca> Lets say this maybe difficult but not impossible. The key thing is not all printer drivers play nice and may not give you the error codes you are hoping for. You cannot directly connect to the hardware and must use the printer driver for information. The drivers error's reporting back could "Unknown" or "Other" when the printer consoles display "Paper Jam" etc. You could look at the print queue and gather information there to see if job has finished. But this means constant polling of the printer or using event methods. But the print queue does not track finished jobs. Also your user app may not run with sufficient OS permissions. These guys at Merrion used to have a lot of info about VB using above methods but they have moved on to dotNet and the info is bit harder to get The info was moved to this Yahoo Group Look at printer status http://www.merrioncomputing.com/Programming/PrintStatus.htm Have a look at the sample files here and the archives of their message lists http://groups.yahoo.com/group/MerrionComputing/messages http://groups.yahoo.com/group/MerrionComputing/files/ Printer Queue Watch Docs http://groups.yahoo.com/group/MerrionComputing/files/PrinterQueueWatch%20Help/ You might get away with some of these WMI routines if your drivers are WMI compatible Sub lookupprinters() On Error Resume Next strComputer = "." Set objWMIservice = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIservice.ExecQuery("Select * from Win32_Printer", , 48) For Each objitem In colItems Debug.Print "Attributes: " & objitem.Attributes Debug.Print "Availability: " & objitem.Availability Debug.Print "AveragePagesPerMinute: " & objitem.AveragePagesPerMinute Debug.Print "Capabilities: " & CLng(objitem.Capabilities(0)) Debug.Print "CapabilityDescriptions: " & objitem.CapabilityDescriptions(0) Debug.Print "Caption: " & objitem.Caption Debug.Print "ConfigManagerErrorCode: " & objitem.ConfigManagerErrorCode Debug.Print "ConfigManagerUserConfig: " & objitem.ConfigManagerUserConfig Debug.Print "CreationClassName: " & objitem.CreationClassName Debug.Print "DefaultPriority: " & objitem.DefaultPriority Debug.Print "Description: " & objitem.Description Debug.Print "DetectedErrorState: " & objitem.DetectedErrorState Debug.Print "DeviceID: " & objitem.DeviceID Debug.Print "DriverName: " & objitem.DriverName Debug.Print "ErrorCleared: " & objitem.ErrorCleared Debug.Print "ErrorDescription: " & objitem.ErrorDescription Debug.Print "HorizontalResolution: " & objitem.HorizontalResolution ' Debug.Print "InstallDate: " & CDate(objitem.InstallDate) 'null check above Debug.Print "JobCountSinceLastReset: " & objitem.JobCountSinceLastReset Debug.Print "LanguagesSupported: " & objitem.LanguagesSupported Debug.Print "LastErrorCode: " & objitem.LastErrorCode Debug.Print "Location: " & objitem.Location Debug.Print "Name: " & objitem.Name Debug.Print "PaperSizesSupported: " & objitem.PaperSizesSupported(0) Debug.Print "PNPDeviceID: " & objitem.PNPDeviceID Debug.Print "PortName: " & objitem.PortName Debug.Print "PowerManagementCapabilities: " & objitem.PowerManagementCapabilities Debug.Print "PowerManagementSupported: " & objitem.PowerManagementSupported Debug.Print "PrinterPaperNames: " & objitem.PrinterPaperNames(0) Debug.Print "PrinterState: " & objitem.PrinterState Debug.Print "PrinterStatus: " & objitem.PrinterStatus Debug.Print "PrintJobDataType: " & objitem.PrintJobDataType Debug.Print "PrintProcessor: " & objitem.PrintProcessor Debug.Print "SeparatorFile: " & objitem.SeparatorFile Debug.Print "ServerName: " & objitem.ServerName Debug.Print "ShareName: " & objitem.ShareName Debug.Print "SpoolEnabled: " & objitem.SpoolEnabled ' Debug.Print "StartTime: " & CDate(objitem.StartTime) ' 'null check above Debug.Print "Status: " & objitem.Status Debug.Print "StatusInfo: " & objitem.StatusInfo Debug.Print "SystemCreationClassName: " & objitem.SystemCreationClassName Debug.Print "SystemName: " & objitem.SystemName 'Debug.Print "TimeOfLastReset: " & CDate(objitem.TimeOfLastReset) 'null check above Debug.Print "UntilTime: " & objitem.UntilTime Debug.Print "VerticalResolution: " & objitem.VerticalResolution Next Set colItems1 = objWMIservice.ExecQuery("Select * from Win32_Printer", , 48) For Each objitem In colItems1 Debug.Print "Attributes: " & objitem.Attributes Debug.Print "Attributes: " & objitem.Name Next End Sub Sub liststatus() strComputer = "." Set objWMIservice = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colPrinters = objWMIservice. _ ExecNotificationQuery("Select * from __instancemodificationevent " _ & "within 30 where TargetInstance isa 'Win32_Printer'") I = 0 Do While I = 10 Set objprinter = colPrinters.NextEvent If objprinter.TargetInstance.PrinterStatus <> _ objprinter.PreviousInstance.PrinterStatus Then Select Case objprinter.TargetInstance.PrinterStatus Case 1 strCurrentState = "Other" Case 2 strCurrentState = "Unknown" Case 3 strCurrentState = "Idle" Case 4 strCurrentState = "Printing" Case 5 strCurrentState = "Warming Up" End Select Select Case objprinter.PreviousInstance.PrinterStatus Case 1 strPreviousState = "Other" Case 2 strPreviousState = "Unknown" Case 3 strPreviousState = "Idle" Case 4 strPreviousState = "Printing" Case 5 strPreviousState = "Warming Up" End Select Debug.Print objprinter.TargetInstance.Name _ & " is " & strCurrentState _ & ". The printer previously was " & strPreviousState & "." End If I = I + 1 Loop End Sub Sub testprt() Dim objWMIservice As Object Dim colInstalledPrinters As Object Dim objprinter As Variant Dim strComputer As String 'printer codes 'http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_printer.asp 'Set objWMIservice = _ 'GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") strComputer = "." Set objWMIservice = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") ' Grab the list of printers in the colInstallPrinters list. Set colInstalledPrinters = objWMIservice.ExecQuery("Select * from Win32_Printer ") ' Run through the printer collection. For Each objprinter In colInstalledPrinters Debug.Print objprinter.Name If objprinter.Status = "Error" Then Debug.Print "Detected Printer error" & objprinter.Name Debug.Print "DetectedErrorState - " & objprinter.DetectedErrorState Debug.Print "ExtendedDetectedErrorState - " & _ objprinter.ExtendedDetectedErrorState Debug.Print "PrinterStatus - " & objprinter.PrinterStatus Debug.Print "ExtendedPrinterStatus - " & _ objprinter.ExtendedPrinterStatus End If Next Set colInstalledPrinters = Nothing Set objWMIservice = Nothing End Sub Johncliviger at aol.com wrote: >Hi all >I'm printing documents from AXP using cmd_Onclick to drive a report and all >is fine. That is until the printer elsewhere in the building cocks it up and >we need a re-print. How can I know sat at my AXP workstation that the document >has fails to print? > >TIA > >john c > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Mon Feb 13 15:44:00 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 13 Feb 2006 13:44:00 -0800 Subject: [AccessD] Printing from AXP where printer is elsewhere References: Message-ID: <43F0FDA0.5070703@shaw.ca> Some alternate code using winSpool to list status of printer and it's jobs in the queue Option Compare Database Option Explicit Public Declare Function OpenPrinter Lib "winspool.drv" _ Alias "OpenPrinterA" _ (ByVal pPrinterName As String, _ phPrinter As Long, _ pDefault As PRINTER_DEFAULTS) _ As Long Public Declare Function GetPrinter Lib "winspool.drv" Alias "GetPrinterA" _ (ByVal hPrinter As Long, _ ByVal Level As Long, _ pPrinter As Byte, _ ByVal cbBuf As Long, _ pcbNeeded As Long) _ As Long Public Declare Function ClosePrinter Lib "winspool.drv" _ (ByVal hPrinter As Long) _ As Long Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _ (Destination As Any, _ Source As Any, _ ByVal Length As Long) Public Declare Function EnumJobs Lib "winspool.drv" Alias "EnumJobsA" _ (ByVal hPrinter As Long, _ ByVal FirstJob As Long, _ ByVal NoJobs As Long, _ ByVal Level As Long, _ pJob As Byte, _ ByVal cdBuf As Long, _ pcbNeeded As Long, _ pcReturned As Long) _ As Long ' constants for PRINTER_DEFAULTS structure Public Const PRINTER_ACCESS_USE = &H8 Public Const PRINTER_ACCESS_ADMINISTER = &H4 ' constants for DEVMODE structure Public Const CCHDEVICENAME = 32 Public Const CCHFORMNAME = 32 Public Type PRINTER_DEFAULTS pDatatype As String pDevMode As Long DesiredAccess As Long End Type Public Type DEVMODE dmDeviceName As String * CCHDEVICENAME dmSpecVersion As Integer dmDriverVersion As Integer dmSize As Integer dmDriverExtra As Integer dmFields As Long dmOrientation As Integer dmPaperSize As Integer dmPaperLength As Integer dmPaperWidth As Integer dmScale As Integer dmCopies As Integer dmDefaultSource As Integer dmPrintQuality As Integer dmColor As Integer dmDuplex As Integer dmYResolution As Integer dmTTOption As Integer dmCollate As Integer dmFormName As String * CCHFORMNAME dmLogPixels As Integer dmBitsPerPel As Long dmPelsWidth As Long dmPelsHeight As Long dmDisplayFlags As Long dmDisplayFrequency As Long End Type Type SYSTEMTIME wYear As Integer wMonth As Integer wDayOfWeek As Integer wDay As Integer wHour As Integer wMinute As Integer wSecond As Integer wMilliseconds As Integer End Type Type JOB_INFO_2 JobId As Long pPrinterName As Long pMachineName As Long pUserName As Long pDocument As Long pNotifyName As Long pDatatype As Long pPrintProcessor As Long pParameters As Long pDriverName As Long pDevMode As Long pStatus As Long pSecurityDescriptor As Long Status As Long Priority As Long Position As Long StartTime As Long UntilTime As Long TotalPages As Long Size As Long Submitted As SYSTEMTIME time As Long PagesPrinted As Long End Type Type PRINTER_INFO_2 pServerName As Long pPrinterName As Long pShareName As Long pPortName As Long pDriverName As Long pComment As Long pLocation As Long pDevMode As Long pSepFile As Long pPrintProcessor As Long pDatatype As Long pParameters As Long pSecurityDescriptor As Long Attributes As Long Priority As Long DefaultPriority As Long StartTime As Long UntilTime As Long Status As Long cJobs As Long AveragePPM As Long End Type Public Const ERROR_INSUFFICIENT_BUFFER = 122 Public Const PRINTER_STATUS_BUSY = &H200 Public Const PRINTER_STATUS_DOOR_OPEN = &H400000 Public Const PRINTER_STATUS_ERROR = &H2 Public Const PRINTER_STATUS_INITIALIZING = &H8000 Public Const PRINTER_STATUS_IO_ACTIVE = &H100 Public Const PRINTER_STATUS_MANUAL_FEED = &H20 Public Const PRINTER_STATUS_NO_TONER = &H40000 Public Const PRINTER_STATUS_NOT_AVAILABLE = &H1000 Public Const PRINTER_STATUS_OFFLINE = &H80 Public Const PRINTER_STATUS_OUT_OF_MEMORY = &H200000 Public Const PRINTER_STATUS_OUTPUT_BIN_FULL = &H800 Public Const PRINTER_STATUS_PAGE_PUNT = &H80000 Public Const PRINTER_STATUS_PAPER_JAM = &H8 Public Const PRINTER_STATUS_PAPER_OUT = &H10 Public Const PRINTER_STATUS_PAPER_PROBLEM = &H40 Public Const PRINTER_STATUS_PAUSED = &H1 Public Const PRINTER_STATUS_PENDING_DELETION = &H4 Public Const PRINTER_STATUS_PRINTING = &H400 Public Const PRINTER_STATUS_PROCESSING = &H4000 Public Const PRINTER_STATUS_TONER_LOW = &H20000 Public Const PRINTER_STATUS_USER_INTERVENTION = &H100000 Public Const PRINTER_STATUS_WAITING = &H2000 Public Const PRINTER_STATUS_WARMING_UP = &H10000 Public Const JOB_STATUS_PAUSED = &H1 Public Const JOB_STATUS_ERROR = &H2 Public Const JOB_STATUS_DELETING = &H4 Public Const JOB_STATUS_SPOOLING = &H8 Public Const JOB_STATUS_PRINTING = &H10 Public Const JOB_STATUS_OFFLINE = &H20 Public Const JOB_STATUS_PAPEROUT = &H40 Public Const JOB_STATUS_PRINTED = &H80 Public Const JOB_STATUS_DELETED = &H100 Public Const JOB_STATUS_BLOCKED_DEVQ = &H200 Public Const JOB_STATUS_USER_INTERVENTION = &H400 Public Const JOB_STATUS_RESTART = &H800 Public Function GetString(ByVal PtrStr As Long) As String Dim StrBuff As String * 256 'Check for zero address If PtrStr = 0 Then GetString = " " Exit Function End If 'Copy data from PtrStr to buffer CopyMemory ByVal StrBuff, ByVal PtrStr, 64 'Strp any trailing nulls from sting GetString = StripNulls(StrBuff) End Function Public Function StripNulls(OriginalStr As String) As String 'Strip any trailing nulls from input string If (InStr(OriginalStr, Chr(0)) > 0) Then OriginalStr = Left(OriginalStr, InStr(OriginalStr, Chr(0)) - 1) End If 'Return modified string StripNulls = OriginalStr End Function Public Function PtrCtoVbString(Add As Long) As String Dim sTemp As String * 512, x As Long x = lstrcpy(sTemp, Add) If (InStr(1, sTemp, Chr(0)) = 0) Then PtrCtoVbString = "" Else PtrCtoVbString = Left(sTemp, InStr(1, sTemp, Chr(0)) - 1) End If End Function 'Amyuni PDF Converter 'HP Deskjet 3840 Series 'CheckPrinter("Amyuni PDF Converter","01") Public Function CheckPrinter(PrinterStr As String, JobStr As String) As String Dim hPrinter As Long Dim ByteBuf As Long, BytesNeeded As Long Dim PI2 As PRINTER_INFO_2 Dim JI2 As JOB_INFO_2 Dim PrinterInfo() As Byte Dim JobInfo() As Byte Dim result As Long, LastError As Long Dim PrinterName As String, tempStr As String Dim NumJI2 As Long Dim pDefaults As PRINTER_DEFAULTS Dim I As Integer 'Set a default return value if no errors occur CheckPrinter = "Printer info retrieved" 'NOTE: You can pick a printer from the Printers Collection 'or use the EnumPrinters() API to select a printer name. 'Use the default printer of Printers collection PrinterName = Printer.DeviceName ' or from parameter above PrinterName = PrinterStr 'Set desired access security setting pDefaults.DesiredAccess = PRINTER_ACCESS_USE 'Call API to get a handle to the printer result = OpenPrinter(PrinterName, hPrinter, pDefaults) If result = 0 Then 'If an error occured, display an error and exit sub CheckPrinter = "Cannot open printer " & PrinterName & _ ", Error: " & Err.LastDllError Exit Function End If 'Init BytesNeeded BytesNeeded = 0 'Clear the error object of any errors Err.Clear 'Determine the buffer size needed to get printer info result = GetPrinter(hPrinter, 2, 0&, 0&, BytesNeeded) 'Check for error calling GetPrinter If Err.LastDllError <> ERROR_INSUFFICIENT_BUFFER Then 'Display an error message, close printer, and exit sub CheckPrinter = " > GetPrinter Failed on initial call! <" ClosePrinter hPrinter Exit Function End If 'Due to a problem with GetPrinter on Windows 95, we must allocate 'a buffer as much as 3 times larger than the value returned by the 'initial call to GetPrinter. See page 790 of Charles Petzold's 'book "Programming Windows 95" for additional information. ReDim PrinterInfo(1 To BytesNeeded * 3) ByteBuf = BytesNeeded 'Call GetPrinter to get the status result = GetPrinter(hPrinter, 2, PrinterInfo(1), ByteBuf, _ BytesNeeded * 3) 'Check for errors If result = 0 Then 'Determine the error that occured LastError = Err.LastDllError() 'Display error message, close printer, and exit sub CheckPrinter = "Couldn't get Printer Status! Error = " _ & LastError ClosePrinter hPrinter Exit Function End If 'Copy contents of printer status byte array into a 'PRINTER_INFO_2 structure to separate the individual elements CopyMemory PI2, PrinterInfo(1), Len(PI2) 'Check if printer is in ready state If PI2.Status = 0 Then PrinterStr = "Printer Status = Ready" & vbCrLf Else tempStr = "" ' Clear If (PI2.Status And PRINTER_STATUS_BUSY) Then tempStr = tempStr & "Busy " End If If (PI2.Status And PRINTER_STATUS_DOOR_OPEN) Then tempStr = tempStr & "Printer Door Open " End If If (PI2.Status And PRINTER_STATUS_ERROR) Then tempStr = tempStr & "Printer Error " End If If (PI2.Status And PRINTER_STATUS_INITIALIZING) Then tempStr = tempStr & "Initializing " End If If (PI2.Status And PRINTER_STATUS_IO_ACTIVE) Then tempStr = tempStr & "I/O Active " End If If (PI2.Status And PRINTER_STATUS_MANUAL_FEED) Then tempStr = tempStr & "Manual Feed " End If If (PI2.Status And PRINTER_STATUS_NO_TONER) Then tempStr = tempStr & "No Toner " End If If (PI2.Status And PRINTER_STATUS_NOT_AVAILABLE) Then tempStr = tempStr & "Not Available " End If If (PI2.Status And PRINTER_STATUS_OFFLINE) Then tempStr = tempStr & "Off Line " End If If (PI2.Status And PRINTER_STATUS_OUT_OF_MEMORY) Then tempStr = tempStr & "Out of Memory " End If If (PI2.Status And PRINTER_STATUS_OUTPUT_BIN_FULL) Then tempStr = tempStr & "Output Bin Full " End If If (PI2.Status And PRINTER_STATUS_PAGE_PUNT) Then tempStr = tempStr & "Page Punt " End If If (PI2.Status And PRINTER_STATUS_PAPER_JAM) Then tempStr = tempStr & "Paper Jam " End If If (PI2.Status And PRINTER_STATUS_PAPER_OUT) Then tempStr = tempStr & "Paper Out " End If If (PI2.Status And PRINTER_STATUS_OUTPUT_BIN_FULL) Then tempStr = tempStr & "Output Bin Full " End If If (PI2.Status And PRINTER_STATUS_PAPER_PROBLEM) Then tempStr = tempStr & "Page Problem " End If If (PI2.Status And PRINTER_STATUS_PAUSED) Then tempStr = tempStr & "Paused " End If If (PI2.Status And PRINTER_STATUS_PENDING_DELETION) Then tempStr = tempStr & "Pending Deletion " End If If (PI2.Status And PRINTER_STATUS_PRINTING) Then tempStr = tempStr & "Printing " End If If (PI2.Status And PRINTER_STATUS_PROCESSING) Then tempStr = tempStr & "Processing " End If If (PI2.Status And PRINTER_STATUS_TONER_LOW) Then tempStr = tempStr & "Toner Low " End If If (PI2.Status And PRINTER_STATUS_USER_INTERVENTION) Then tempStr = tempStr & "User Intervention " End If If (PI2.Status And PRINTER_STATUS_WAITING) Then tempStr = tempStr & "Waiting " End If If (PI2.Status And PRINTER_STATUS_WARMING_UP) Then tempStr = tempStr & "Warming Up " End If If Len(tempStr) = 0 Then tempStr = "Unknown Status of " & PI2.Status End If PrinterStr = "Printer Status = " & tempStr & vbCrLf End If 'Add printer name, driver, and port to list PrinterStr = PrinterStr & "Printer Name = " & _ GetString(PI2.pPrinterName) & vbCrLf PrinterStr = PrinterStr & "Printer Driver Name = " & _ GetString(PI2.pDriverName) & vbCrLf PrinterStr = PrinterStr & "Printer Port Name = " & _ GetString(PI2.pPortName) & vbCrLf 'Call API to get size of buffer needed result = EnumJobs(hPrinter, 0&, &HFFFFFFFF, 2, ByVal 0&, 0&, _ BytesNeeded, NumJI2) 'Check if there are no current jobs and display appropriate message If BytesNeeded = 0 Then JobStr = "No Print Jobs!" Else 'Redim byte array to hold info about print job ReDim JobInfo(0 To BytesNeeded * 3) 'Call API to get print job info result = EnumJobs(hPrinter, 0&, &HFFFFFFFF, 2, JobInfo(0), _ BytesNeeded * 3, ByteBuf, NumJI2) 'Check for errors If result = 0 Then 'Get and display error, close printer, and exit sub LastError = Err.LastDllError CheckPrinter = " > EnumJobs Failed on second call! < Error = " _ & LastError ClosePrinter hPrinter Exit Function End If 'Copy contents of print job info byte array into a 'JOB_INFO_2 structure to separate the individual elements For I = 0 To NumJI2 - 1 ' Loop through jobs and walk the buffer CopyMemory JI2, JobInfo(I * Len(JI2)), Len(JI2) ' List info available on Jobs Debug.Print "Job ID" & vbTab & JI2.JobId Debug.Print "Name Of Printer" & vbTab & _ GetString(JI2.pPrinterName) Debug.Print "Name Of Machine That Created Job" & vbTab & _ GetString(JI2.pMachineName) Debug.Print "Print Job Owner's Name" & vbTab & _ GetString(JI2.pUserName) Debug.Print "Name Of Document" & vbTab & GetString(JI2.pDocument) Debug.Print "Name Of User To Notify" & vbTab & _ GetString(JI2.pNotifyName) Debug.Print "Type Of Data" & vbTab & GetString(JI2.pDatatype) Debug.Print "Print Processor" & vbTab & _ GetString(JI2.pPrintProcessor) Debug.Print "Print Processor Parameters" & vbTab & _ GetString(JI2.pParameters) Debug.Print "Print Driver Name" & vbTab & _ GetString(JI2.pDriverName) Debug.Print "Print Job 'P' Status" & vbTab & _ GetString(JI2.pStatus) Debug.Print "Print Job Status" & vbTab & JI2.Status Debug.Print "Print Job Priority" & vbTab & JI2.Priority Debug.Print "Position in Queue" & vbTab & JI2.Position Debug.Print "Earliest Time Job Can Be Printed" & vbTab & _ JI2.StartTime Debug.Print "Latest Time Job Will Be Printed" & vbTab & _ JI2.UntilTime Debug.Print "Total Pages For Entire Job" & vbTab & JI2.TotalPages Debug.Print "Size of Job In Bytes" & vbTab & JI2.Size 'Due to a bug since NT 3.51, the time member is not set correctly 'so don't use it on NT 3.51. Debug.Print "Elapsed Print Time" & vbTab & JI2.time Debug.Print "Pages Printed So Far" & vbTab & JI2.PagesPrinted 'Display basic job status info JobStr = JobStr & "Job ID = " & JI2.JobId & _ vbCrLf & "Total Pages = " & JI2.TotalPages & vbCrLf tempStr = "" 'Clear 'Check for a ready state If JI2.pStatus = 0& Then ' If pStatus is Null, check Status If JI2.Status = 0 Then tempStr = tempStr & "Ready! " & vbCrLf Else 'Check for the various print job states If (JI2.Status And JOB_STATUS_SPOOLING) Then tempStr = tempStr & "Spooling " End If If (JI2.Status And JOB_STATUS_OFFLINE) Then tempStr = tempStr & "Off line " End If If (JI2.Status And JOB_STATUS_PAUSED) Then tempStr = tempStr & "Paused " End If If (JI2.Status And JOB_STATUS_ERROR) Then tempStr = tempStr & "Error " End If If (JI2.Status And JOB_STATUS_PAPEROUT) Then tempStr = tempStr & "Paper Out " End If If (JI2.Status And JOB_STATUS_PRINTING) Then tempStr = tempStr & "Printing " End If If (JI2.Status And JOB_STATUS_USER_INTERVENTION) Then tempStr = tempStr & "User Intervention Needed " End If If Len(tempStr) = 0 Then tempStr = "Unknown Status of " & JI2.Status End If End If Else ' Dereference pStatus tempStr = PtrCtoVbString(JI2.pStatus) End If 'Report the Job status JobStr = JobStr & tempStr & vbCrLf Debug.Print JobStr & tempStr Next I End If 'Close the printer handle ClosePrinter hPrinter End Function Johncliviger at aol.com wrote: >Hi all >I'm printing documents from AXP using cmd_Onclick to drive a report and all >is fine. That is until the printer elsewhere in the building cocks it up and >we need a re-print. How can I know sat at my AXP workstation that the document >has fails to print? > >TIA > >john c > > -- Marty Connelly Victoria, B.C. Canada From jwelz at hotmail.com Mon Feb 13 15:54:07 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Mon, 13 Feb 2006 14:54:07 -0700 Subject: [AccessD] Basic Query Design: Results In-Reply-To: <39cb22f30602121032p74a0fe9g972109f17b710a26@mail.gmail.com> Message-ID: All four methods returned exactly the same rows. Of course the number of rows returned and variations in the number of criteria entered will probably favour one method over another. I tried to take a realistic scenario where I have only 4 conditions and fewer than 20 records are returned. I have a suspicion that the last method I posted will return the best speed against larger datasets as it is based simply on join processing on single equality conditions for each additional condition and can use indexing every step of the way. l suspect calculating a count may require all table rows to be returned. Then again, returning consecutive subsets of data from the same table in order to process the same join might be slower than returning the table one time and running the processing on the count. For typical data in our environment, it appears that using the count is the best approach. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Steve Erbach > >J?rgen, > >Now, the $64,000 question: Did all the queries give you the same results? > >Just kidding! I'm interested to see that the Count query is quickest. > It's certainly easier to understand...and should make for a lot less >coding! > >Steve Erbach >Neenah, WI >http://TheTownCrank.blogspot.com From Chester_Kaup at kindermorgan.com Mon Feb 13 16:54:54 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 13 Feb 2006 16:54:54 -0600 Subject: [AccessD] Make table query fails Message-ID: Problem solved. Deleted one of the criteria and reentered it. Query now runs. Go figure. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 13, 2006 3:35 PM To: accessd at databaseadvisors.com Subject: [AccessD] Make table query fails When I try to run the following query I get a message of invalid argument. When I try to view the results in datasheet view it work fine. What might be going wrong? I tried writing the results to a different table with no success. No I did not write this ugly query - I was given it. Thanks for ideas. SELECT [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells to Alloc].CO2PAT_SDate, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API, ConfigMaster.PID AS Other_Pattern, Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4) AS Other_Pattern_as_Well, Constants!SDate AS Other_Pattern_SDate, SurfaceMaster.PID AS Other_Pattern_as_Well_API INTO [Funky Temp Other Ptrn to Alloc] FROM SurfaceMaster, [Funky Ptrn and Wells to Alloc] INNER JOIN (ConfigMaster INNER JOIN Constants ON ConfigMaster.PID = Constants.PID) ON [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API = ConfigMaster.ChildPID WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Constants.Date)<#1/1/1960#) AND ((SurfaceMaster.Name)=Right([ConfigMaster]![PID],Len([ConfigMaster]![PID ])-4))) ORDER BY [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT, Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From erbachs at gmail.com Mon Feb 13 16:57:41 2006 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 13 Feb 2006 16:57:41 -0600 Subject: [AccessD] Make table query fails In-Reply-To: References: Message-ID: <39cb22f30602131457x678c0cedy1ac36acdf27d69ca@mail.gmail.com> Chester, Is this a query you've got some exclamation points in various places. These should be periods, unless you're referencing fields on another form. In that case you need the full Forms reference; e.g., ((SurfaceMaster.Name) = Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4)) instead of ((SurfaceMaster.Name)=Right([ConfigMaster]![PID],Len([ConfigMaster]![PID])-4)) Does this help? Steve Erbach Neenah, WI On 2/13/06, Kaup, Chester wrote: > When I try to run the following query I get a message of invalid > argument. When I try to view the results in datasheet view it work fine. > What might be going wrong? I tried writing the results to a different > table with no success. No I did not write this ugly query - I was given > it. Thanks for ideas. > > > > SELECT [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells to > Alloc].CO2PAT_SDate, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT, > [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API, ConfigMaster.PID AS > Other_Pattern, Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4) AS > Other_Pattern_as_Well, Constants!SDate AS Other_Pattern_SDate, > SurfaceMaster.PID AS Other_Pattern_as_Well_API INTO [Funky Temp Other > Ptrn to Alloc] > > FROM SurfaceMaster, [Funky Ptrn and Wells to Alloc] > > INNER JOIN (ConfigMaster INNER JOIN Constants ON ConfigMaster.PID = > Constants.PID) ON [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API = > ConfigMaster.ChildPID > > WHERE (((ConfigMaster.PID) Like "PAT*") AND > ((Constants.Date)<#1/1/1960#) AND > ((SurfaceMaster.Name)=Right([ConfigMaster]![PID],Len([ConfigMaster]![PID > ])-4))) > > ORDER BY [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells > to Alloc].Well_in_CO2PAT, > Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4); > > > > Chester Kaup > From DWUTKA at marlow.com Mon Feb 13 18:00:52 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 13 Feb 2006 18:00:52 -0600 Subject: [AccessD] OT: Compare 2 directories Message-ID: <17724746D360394AA3BFE5B8D40A9C1BD732@main2.marlow.com> Robocopy, which was part of the Windows 2000 Resource Kit, has a 'mirror' function which you can use to 'synchronize' two folders. Drew -----Original Message----- From: Joe Hecht [mailto:jmhecht at earthlink.net] Sent: Saturday, February 11, 2006 11:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Compare 2 directories Any one have or know a tool where you can compare two directories and synchronize them. Thanks Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Mon Feb 13 19:29:36 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 13 Feb 2006 20:29:36 -0500 Subject: [AccessD] Bar Code Printing/Scanning References: <17724746D360394AA3BFE5B8D40A9C1BD732@main2.marlow.com> Message-ID: <003001c63106$1feb31b0$1801a8c0@50NM721> ...have a need to print bar codes on badges that can be easily and reliably scanned at a trade show entrance. ...the database is A2K3 but the data is merged to WXP to print the badges. ...the badge bar codes are printed with HP LJ 4050s ...printing the bar codes in Word using code 39 font works well but doesn't produce the enter/exit control codes ...also need to know if anyone has experience with a particular hand held scanner or manufacturer that you would ...or would not ...recommend. ...and how you've collected the data from the scanners. ...and anything else I should be aware of before leaping. ...anyone? From jwcolby at ColbyConsulting.com Mon Feb 13 20:40:06 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Mon, 13 Feb 2006 21:40:06 -0500 Subject: [AccessD] Bar Code Printing/Scanning In-Reply-To: <003001c63106$1feb31b0$1801a8c0@50NM721> Message-ID: <005501c6310f$f7d8aa40$647aa8c0@ColbyM6805> William, I have done bar codes a couple of times. The first time was in Mexico at the clothing Maquilla, where we used the keyboard wedge. Those work fine except that there is no control over where the data goes. More precisely, the data goes wherever the current focus is, which means that if the user is able to switch away to some other app, the data will go into that app. The second time was at the screw company where I used a Serial port scanner. That works very well since you have complete control over when the scanner is turned on, and the data does not even have to go into a control on a form, i.e. it is just coming in to a serial port. What you do with it is your business. Of course that means that you have to program it from the top to the bottom, but you have absolute control. In that app I actually used the Comm control that comes with VB6. I wrote a class to encapsulate an instance. The class allowed me to set up the comm port, start/stop/parity/baud, then turn it on / off as I desired. The class read the buffer from the comm control and assembled it into a string, then raised an event and passed the string to the event sink. I wrote another class to sink the event and handle the bar code per se. Thus the comm class could be reusable, the bar code class "knew" that the string was a bar code and how to check it, then use it. By breaking it into those two pieces I could have a clean testable interface. As for which Bar code, it was too long ago to remember. The bar code you use depends on what you are doing with it, whether you need special characters and all that. Special purpose (UPC) etc. It sounds like you just need a simple bar code that understands upper/lower alpha / numeric. Again though, I don't remember which barcode I ended up with. I think it was code 128 in the last one but not certain. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, February 13, 2006 8:30 PM To: Access Developers discussion and problem solving Subject: [AccessD] Bar Code Printing/Scanning ...have a need to print bar codes on badges that can be easily and reliably scanned at a trade show entrance. ...the database is A2K3 but the data is merged to WXP to print the badges. ...the badge bar codes are printed with HP LJ 4050s ...printing the bar codes in Word using code 39 font works well but doesn't produce the enter/exit control codes ...also need to know if anyone has experience with a particular hand held scanner or manufacturer that you would ...or would not ...recommend. ...and how you've collected the data from the scanners. ...and anything else I should be aware of before leaping. ...anyone? -- 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 13 21:48:03 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 14 Feb 2006 13:48:03 +1000 Subject: [AccessD] Bar Code Printing/Scanning In-Reply-To: <003001c63106$1feb31b0$1801a8c0@50NM721> Message-ID: <43F1DF93.22976.3495A79@stuart.lexacorp.com.pg> On 13 Feb 2006 at 20:29, William Hindman wrote: > ...have a need to print bar codes on badges that can be easily and reliably > scanned at a trade show entrance. > > ...the database is A2K3 but the data is merged to WXP to print the badges. > > ...the badge bar codes are printed with HP LJ 4050s > > ...printing the bar codes in Word using code 39 font works well but doesn't > produce the enter/exit control codes > You need to wrap the string in delimiters: strCodeToPrint = "*" & strCode & "*" before merging to Word > ...and how you've collected the data from the scanners. > Last time I did this was barcoded invitations for functions. They use a handheld scanner on a "keyboard wedge". To get the info into the correct place, I had a hidden text box on the form and set Key Preview on. I surrounded the printed barcodes with "$"s When the form detected a "$" being entered, it exposed the hidden text box, and set focus to it. When a second "$" was detected, it closed the text box and processed the input. This worked fine as long as the form had focus. Best way to ensure that is to set it modal, full screen. Here's the main function: Private Sub Form_KeyPress(KeyAscii As Integer) Dim Inflow as Boolean If KeyAscii = 36 Then ' $ sign InFlow = Not InFlow KeyAscii = 0 If Not InFlow Then cboInvitees.SetFocus txtInput.Visible = False InFlow = False If Len(txtInput) > 0 Then LogGuest Val(txtInput), "Scanner" cboInvitees = txtInput End If Else InFlow = True txtInput = "" txtInput.Visible = True txtInput.SetFocus End If End If End Sub Contact me off-list if you want a copy of the application. -- Stuart From Erwin.Craps at ithelps.be Tue Feb 14 01:37:18 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 14 Feb 2006 08:37:18 +0100 Subject: [AccessD] Bar Code Printing/Scanning Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B6381@stekelbes.ithelps.local> For what concerns printing barcodes. I bought this control from Anex Technologies Inc several years ago and they still do the trick for me in A2K3 http://www.anextech.com/ocx1D.htm I always use EAN128 because you can use aplha/numeric in that one and it's widespread, in Europe that is. I believe EAN128 is pretty much the same as CODE128 and both are supported by most scanners. The disadvantage of CODE128/EAN128 is that the barcodes are longer then using only a numeric code, that can be an issue. I have a keyboard connected bar code scanner, because you don't need to change your soft to make it work. BUT: You don't know where youre data goes (see earlier responses to your mail) AND I believe most keyboard scanners connect in between a PS/2 connector. This can be a problem becaase all new computers have USB keyboards these days. And when using notebooks you have to connect a keyboard to the notebook for making the scanner work. So I would now defintly go for a USB scanner (those also exists these days) or a Serial RS-232, but you need to write some extra code for it, but it is probably worth it. Notebooks are these days no longer equiped with a RS-232 port, but you can always use a RS-232 tot USB convertor. Greetz Erwin From Johncliviger at aol.com Tue Feb 14 03:46:07 2006 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Tue, 14 Feb 2006 04:46:07 EST Subject: [AccessD] Printing from AXP where printer is elsewhere Message-ID: <245.6e3f409.312300df@aol.com> Hi Marty Thank you for that comprehensive reply. I'm working my way through it. And theres me thinking that a few lines of vb code in On-Print event will do the job! Ah well who wants a simple life anyway? Thanks Marty regards john c lancashire uk From Gustav at cactus.dk Tue Feb 14 05:56:51 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 14 Feb 2006 12:56:51 +0100 Subject: [AccessD] Make table query fails Message-ID: Hi Chester I admire your - eh creative - table naming convention: [Funky Temp Other Ptrn to Alloc] /gustav From Gustav at cactus.dk Tue Feb 14 06:26:18 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 14 Feb 2006 13:26:18 +0100 Subject: [AccessD] Bar Code Printing/Scanning Message-ID: Hi William We have had very good results with the PSC QuickScan6000+ laser scanner: http://www.pscnet.com/ It is partly rubber coated for protection. You have to decide on reading distance (laser for long distance, CCD and similar for close distance) and if they will be dropped on the floor. Also, you can have wireless scanners now. As for printing, we use Access reports only. I see no reason for using Word as for the barcode, but you may have other needs, of course. /gustav >>> wdhindman at bellsouth.net 14-02-2006 02:29:36 >>> ...have a need to print bar codes on badges that can be easily and reliably scanned at a trade show entrance. ...the database is A2K3 but the data is merged to WXP to print the badges. ...the badge bar codes are printed with HP LJ 4050s ...printing the bar codes in Word using code 39 font works well but doesn't produce the enter/exit control codes ...also need to know if anyone has experience with a particular hand held scanner or manufacturer that you would ...or would not ...recommend. ...and how you've collected the data from the scanners. ...and anything else I should be aware of before leaping. ...anyone? From ecritt1 at alltel.net Tue Feb 14 09:42:38 2006 From: ecritt1 at alltel.net (Penn White) Date: Tue, 14 Feb 2006 10:42:38 -0500 Subject: [AccessD] A little Null Help Please References: <000001c62f90$1dd237b0$6701a8c0@HPLaptop> Message-ID: <001a01c6317d$4919f9f0$0302a8c0@pennp4> Here's a nice little function that I found somewhere. I've removed the error checking since the one I use is not the same as everyone elses. In my experience, IsNull tends to miss a few things. Penn Public Function Fn_IsNothing(ByVal varValueToTest) As Integer '----------------------------------------------------------- ' Does a "nothing" test based on data type. ' Null = nothing ' Empty = nothing ' Number = 0 is nothing ' String = "" is nothing ' Date/Time is never nothing ' Inputs: A value to test for logical "nothing" ' Outputs: True = value passed is a logical "nothing", False = it ain't ' Created By: JLV 01/31/95 ' Last Revised: JLV 01/31/95 '----------------------------------------------------------- Dim intSuccess As Integer Fn_IsNothing = True Select Case VarType(varValueToTest) Case 0 ' Empty GoTo Exit_Fn_IsNothing Case 1 ' Null GoTo Exit_Fn_IsNothing Case 2, 3, 4, 5, 6 ' Integer, Long, Single, Double, Currency If varValueToTest <> 0 Then Fn_IsNothing = False Case 7 ' Date / Time Fn_IsNothing = False Case 8 ' String If (Len(varValueToTest) <> 0 And varValueToTest <> " ") Then Fn_IsNothing = False End Select End Function From martyconnelly at shaw.ca Tue Feb 14 11:33:47 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 14 Feb 2006 09:33:47 -0800 Subject: [AccessD] Printing from AXP where printer is elsewhere References: <245.6e3f409.312300df@aol.com> Message-ID: <43F2147B.9030507@shaw.ca> Here are some quick and dirty WMI scripts that will work on WinXP and Win2000 to check printers and spool queues. These should work with WinXP certified printers like high end HP's but not with printers cobbled together from recycled parts on the back streets of Naples. I believe WMI is looking at winspool.drv and not individual printer drivers. WMI is a work in progress just like IBM's HASP was 35 years ago. But HASP only had to work with a limited number of products and protocols Just to hook it to a pen plotter took a $1000 bisynch protocol converter. Just stick in your remote machine name into the code. It wont give you fine errors like out of toner. It also should tell you how long a wait there is in the print queue. There are many network monitor programs out there in the $500 range like http://www.activexperts.com/activmonitor/ Concievably knowing your jobname or id you could monitor the machine's print spool in a timer form and when the job id disappears from the queue sends you a SMS text message while you are sitting in Starbucks. 'http://www.activexperts.com/activmonitor/windowsmanagement/scripts/printing/printerport/#MonitorPrinterStatus2.htm Sub Test(Optional strComputerName As Variant) 'Checks the status for each printer on a computer, and issues an alert if any of these printers have stopped. Dim objWMIService As Object Dim colInstalledPrinters As Object Dim objPrinter As Variant Dim strComputer As String If IsMissing(strComputerName) Then strComputer = "." 'local machine default name Else strComputer = strComputerName End If Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colInstalledPrinters = objWMIService.ExecQuery _ ("Select * from Win32_Printer Where PrinterStatus = '1' " _ & "or PrinterStatus = '2'") If colInstalledPrinters.Count = 0 Then Debug.Print "All printers are functioning correctly." Else For Each objPrinter In colInstalledPrinters Debug.Print "Printer " & objPrinter.Name & " is not responding." Next End If End Sub Sub test2() 'Displays current status for all printers on a computer. Dim objWMIService As Object Dim colInstalledPrinters As Object Dim objPrinter As Variant Dim strComputer As String Dim strPrinterStatus As String strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colInstalledPrinters = objWMIService.ExecQuery _ ("Select * from Win32_Printer") For Each objPrinter In colInstalledPrinters Debug.Print "Name: " & objPrinter.Name Debug.Print "Location: " & objPrinter.Location Select Case objPrinter.PrinterStatus Case 1 strPrinterStatus = "Other" Case 2 strPrinterStatus = "Unknown" Case 3 strPrinterStatus = "Idle" Case 4 strPrinterStatus = "Printing" Case 5 strPrinterStatus = "Warmup" End Select Debug.Print "Printer Status: " & strPrinterStatus Debug.Print "Server Name: " & objPrinter.ServerName Debug.Print "Share Name: " & objPrinter.ShareName Debug.Print Next End Sub Sub test3() 'Returns the job ID, user name, and total pages for each print job on a computer. Dim objWMIService As Object Dim colPrintJobs As Object Dim objPrintJob As Variant Dim strComputer As String Dim strPrinter As Variant strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colPrintJobs = objWMIService.ExecQuery _ ("Select * from Win32_PrintJob") 'Page count may not be correct for multi-copy print of word document. Debug.Print "Print Queue, Job ID, Owner, Total Pages" For Each objPrintJob In colPrintJobs strPrinter = Split(objPrintJob.Name, ",", -1, 1) Debug.Print strPrinter(0) & ", " & _ objPrintJob.JobId & ", " & objPrintJob.Owner & ", " _ & objPrintJob.TotalPages Next End Sub Johncliviger at aol.com wrote: >Hi Marty > >Thank you for that comprehensive reply. I'm working my way through it. And >theres me thinking that a few lines of vb code in On-Print event will do the >job! Ah well who wants a simple life anyway? > >Thanks Marty > >regards > >john c >lancashire >uk > > -- Marty Connelly Victoria, B.C. Canada From RickN at NelsonTech.com Tue Feb 14 11:36:39 2006 From: RickN at NelsonTech.com (Rick Nelson) Date: Tue, 14 Feb 2006 09:36:39 -0800 Subject: [AccessD] AccessD Digest, Vol 36, Issue 23 In-Reply-To: References: Message-ID: <6.2.3.4.2.20060214093140.0273e6c8@pop.1and1.com> I've found Heatsoft ADCS is great - have used it for a couple of years - works well when you want fine control but have lots of files and need to repeat periodically. I also have their Automatic Synchronizer but have never used it. http://www.heatsoft.com/ Rick N. At 10:00 AM 2/12/06, you wrote: >Message: 6 >Date: Sat, 11 Feb 2006 21:50:24 -0800 >From: "Joe Hecht" >Subject: [AccessD] OT: Compare 2 directories >To: "'Access Developers discussion and problem solving'" > >Message-ID: <000001c62f98$39fd8bd0$6701a8c0 at HPLaptop> >Content-Type: text/plain; charset="us-ascii" > >Any one have or know a tool where you can compare two >directories and synchronize them. > > > >Thanks > > > >Joe Hecht > >jmhecht at earthlink.net Rick Nelson Nelson Technology Associates Danville, California From Chester_Kaup at kindermorgan.com Tue Feb 14 12:49:41 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 14 Feb 2006 12:49:41 -0600 Subject: [AccessD] Make table query fails Message-ID: Turns out the database had some corruption that a compact and repair fixed. Also if I try to change the ! to . and eliminate the brackets in the query grid Access just puts it back. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Monday, February 13, 2006 4:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Make table query fails Chester, Is this a query you've got some exclamation points in various places. These should be periods, unless you're referencing fields on another form. In that case you need the full Forms reference; e.g., ((SurfaceMaster.Name) = Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4)) instead of ((SurfaceMaster.Name)=Right([ConfigMaster]![PID],Len([ConfigMaster]![PID ])-4)) Does this help? Steve Erbach Neenah, WI On 2/13/06, Kaup, Chester wrote: > When I try to run the following query I get a message of invalid > argument. When I try to view the results in datasheet view it work fine. > What might be going wrong? I tried writing the results to a different > table with no success. No I did not write this ugly query - I was given > it. Thanks for ideas. > > > > SELECT [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells to > Alloc].CO2PAT_SDate, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT, > [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API, ConfigMaster.PID AS > Other_Pattern, Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4) AS > Other_Pattern_as_Well, Constants!SDate AS Other_Pattern_SDate, > SurfaceMaster.PID AS Other_Pattern_as_Well_API INTO [Funky Temp Other > Ptrn to Alloc] > > FROM SurfaceMaster, [Funky Ptrn and Wells to Alloc] > > INNER JOIN (ConfigMaster INNER JOIN Constants ON ConfigMaster.PID = > Constants.PID) ON [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API = > ConfigMaster.ChildPID > > WHERE (((ConfigMaster.PID) Like "PAT*") AND > ((Constants.Date)<#1/1/1960#) AND > ((SurfaceMaster.Name)=Right([ConfigMaster]![PID],Len([ConfigMaster]![PID > ])-4))) > > ORDER BY [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells > to Alloc].Well_in_CO2PAT, > Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4); > > > > Chester Kaup > -- 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 14 14:46:02 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 14 Feb 2006 12:46:02 -0800 Subject: [AccessD] Bar Code Printing/Scanning In-Reply-To: <005501c6310f$f7d8aa40$647aa8c0@ColbyM6805> Message-ID: <002f01c631a7$ab582d60$017ba8c0@xpserver> Hi William: In a number of models of Okidata printers there is an option which allows the barcode printing to be started and stopped through under program. This is a reverse keyboard wedge where it works at the other end. By just prefixing and suffixing a piece of text with the appropriate code sequence a bar code will be printed. Jim ...have a need to print bar codes on badges that can be easily and reliably scanned at a trade show entrance. ...the database is A2K3 but the data is merged to WXP to print the badges. ...the badge bar codes are printed with HP LJ 4050s ...printing the bar codes in Word using code 39 font works well but doesn't produce the enter/exit control codes ...also need to know if anyone has experience with a particular hand held scanner or manufacturer that you would ...or would not ...recommend. ...and how you've collected the data from the scanners. ...and anything else I should be aware of before leaping. ...anyone? From Mike.W.Gowey at doc.state.or.us Tue Feb 14 15:34:47 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Tue, 14 Feb 2006 14:34:47 -0700 Subject: [AccessD] Criteria Question Message-ID: <05EBB8A3BEB95B4F8216BE4EF486077808115B15@srciml1.ds.doc.state.or.us> Within my table I have a field that is set to Yes/No format. I am attempting to create a query that prompts the user to enter Yes or No as a criteria for this field. Everytime I prompt the user and they enter Yes or No in the prompt box, they get an error of "This expression is typed incorrectly, or is to complex to be evaluated." But yet if I type in Yes or No in the actual query criteria it works just fine. I just get this error when I prompt the user to enter the criteria. Anybody have any ideas? TIA, Mike From cfoust at infostatsystems.com Tue Feb 14 15:55:33 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 14 Feb 2006 13:55:33 -0800 Subject: [AccessD] Criteria Question Message-ID: You can try wrapping the criteria line in a Cbool() function to translate the "yes" or "no" to a boolean. Otherwise, anything you type in is a string, which won't compare to a yes/no. Cbool([Enter Yes or No]) Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Tuesday, February 14, 2006 1:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] Criteria Question Within my table I have a field that is set to Yes/No format. I am attempting to create a query that prompts the user to enter Yes or No as a criteria for this field. Everytime I prompt the user and they enter Yes or No in the prompt box, they get an error of "This expression is typed incorrectly, or is to complex to be evaluated." But yet if I type in Yes or No in the actual query criteria it works just fine. I just get this error when I prompt the user to enter the criteria. Anybody have any ideas? TIA, Mike -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Tue Feb 14 16:14:43 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Tue, 14 Feb 2006 15:14:43 -0700 Subject: [AccessD] Criteria Question Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BC14@srciml1.ds.doc.state.or.us> Unfortunately that gives the same error :-( -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Tuesday, February 14, 2006 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Criteria Question You can try wrapping the criteria line in a Cbool() function to translate the "yes" or "no" to a boolean. Otherwise, anything you type in is a string, which won't compare to a yes/no. Cbool([Enter Yes or No]) Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Tuesday, February 14, 2006 1:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] Criteria Question Within my table I have a field that is set to Yes/No format. I am attempting to create a query that prompts the user to enter Yes or No as a criteria for this field. Everytime I prompt the user and they enter Yes or No in the prompt box, they get an error of "This expression is typed incorrectly, or is to complex to be evaluated." But yet if I type in Yes or No in the actual query criteria it works just fine. I just get this error when I prompt the user to enter the criteria. Anybody have any ideas? TIA, Mike -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 14 16:21:30 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 15 Feb 2006 08:21:30 +1000 Subject: [AccessD] Criteria Question In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF486077808115B15@srciml1.ds.doc.state.or.us> Message-ID: <43F2E48A.23600.744BF70@stuart.lexacorp.com.pg> On 14 Feb 2006 at 14:34, Gowey Mike W wrote: > Within my table I have a field that is set to Yes/No format. I am > attempting to create a query that prompts the user to enter Yes or No as a > criteria for this field. Everytime I prompt the user and they enter Yes or > No in the prompt box, they get an error of > > "This expression is typed incorrectly, or is to complex to be > evaluated." > Set the criterion to "=IIf(["Yes or no"]="YES",True,False)" -- Stuart From bchacc at san.rr.com Tue Feb 14 19:45:02 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 14 Feb 2006 17:45:02 -0800 Subject: [AccessD] Colors in a combo box Message-ID: <43F2879E.3060201@san.rr.com> Dear List: Can you make a combo box display a list of colored boxes? Noah's putting together a program to give the value of a resistor if you select the colors of the rings. The combo box is currently a list of the colors. But it would be much cooler if it dropped down the colors instead of a list. Is this possible? MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From stuart at lexacorp.com.pg Tue Feb 14 20:34:33 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 15 Feb 2006 12:34:33 +1000 Subject: [AccessD] Colors in a combo box In-Reply-To: <43F2879E.3060201@san.rr.com> Message-ID: <43F31FD9.4183.82C6CA5@stuart.lexacorp.com.pg> On 14 Feb 2006 at 17:45, Rocky Smolin - Beach Access S wrote: > Dear List: > > Can you make a combo box display a list of colored boxes? Noah's > putting together a program to give the value of a resistor if you select the > colors of the rings. The combo box is currently a list of the colors. But > it would be much cooler if it dropped down the colors instead of a list. Is > this possible? > I think you will have to do something with stacking columns of labels, - wait a minute........... How about something like this: http://www.lexacorp.com.pg/Resistor.gif Option Groups, Radio buttons and coloured labels. Up to you to do the maths, but you can have a copy of the form if you want it -- Stuart From karenr7 at oz.net Tue Feb 14 21:17:35 2006 From: karenr7 at oz.net (Karen Rosenstiel) Date: Tue, 14 Feb 2006 19:17:35 -0800 Subject: [AccessD] Colors in a combo box In-Reply-To: <43F31FD9.4183.82C6CA5@stuart.lexacorp.com.pg> Message-ID: <000001c631de$5e94f940$6401a8c0@bigmama> Rocky, If you do a google on resistors colors, you will get lots of hits. I learned to enjoy playing with these when I was studying to be a computer technician a couple of years ago, but I have forgotten most of it, unfortunately, because I haven't been working in the field and keep up with studying it. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, February 14, 2006 6:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Colors in a combo box On 14 Feb 2006 at 17:45, Rocky Smolin - Beach Access S wrote: > Dear List: > > Can you make a combo box display a list of colored boxes? Noah's > putting together a program to give the value of a resistor if you > select the colors of the rings. The combo box is currently a list of > the colors. But it would be much cooler if it dropped down the colors > instead of a list. Is this possible? > I think you will have to do something with stacking columns of labels, - wait a minute........... How about something like this: http://www.lexacorp.com.pg/Resistor.gif Option Groups, Radio buttons and coloured labels. Up to you to do the maths, but you can have a copy of the form if you want it -- Stuart -- 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 14 22:57:48 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 14 Feb 2006 20:57:48 -0800 Subject: [AccessD] Colors in a combo box In-Reply-To: <43F31FD9.4183.82C6CA5@stuart.lexacorp.com.pg> References: <43F31FD9.4183.82C6CA5@stuart.lexacorp.com.pg> Message-ID: <43F2B4CC.1000502@san.rr.com> Stuart: I showed it to him. Option frames were a new idea. He thought that was a really neat control - especially the part about the value being associated with the button that you could read in code. Stuff we take for granted. But he likes the combo boxes better. Of course, now that he's got the value lists all set up he doesn't want to redo it. :) I would be neat if you could drop down a list of colors or more generally, embedded graphics. So you could pick from a list of pictures. Access 2007? Thanks Rocky Stuart McLachlan wrote: > On 14 Feb 2006 at 17:45, Rocky Smolin - Beach Access S wrote: > > >> Dear List: >> >> Can you make a combo box display a list of colored boxes? Noah's >> putting together a program to give the value of a resistor if you select the >> colors of the rings. The combo box is currently a list of the colors. But >> it would be much cooler if it dropped down the colors instead of a list. Is >> this possible? >> >> > > I think you will have to do something with stacking columns of labels, - > wait a minute........... > > How about something like this: > http://www.lexacorp.com.pg/Resistor.gif > > Option Groups, Radio buttons and coloured labels. > Up to you to do the maths, but you can have a copy of the form if you want > it > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From shamil at users.mns.ru Wed Feb 15 02:55:32 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 15 Feb 2006 11:55:32 +0300 Subject: [AccessD] OT: Quote of the day Message-ID: <001a01c6320d$b4e26f60$6501a8c0@Nant> "It's my experience that coming up with an elegant solution is deeply satisfying at an entirely different level; it feels closer to art than technology. And elegance always pays off; it's not a frivolous pursuit. Not only does it give you a program that's easier to build and debug, but it's also easier to understand and maintain, and that's where the financial value lies." Thinking in C++, 2nd ed. Volume 1 ?2000 by Bruce Eckel Shamil From stuart at lexacorp.com.pg Wed Feb 15 03:06:44 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 15 Feb 2006 19:06:44 +1000 Subject: [AccessD] OT: Quote of the day In-Reply-To: <001a01c6320d$b4e26f60$6501a8c0@Nant> Message-ID: <43F37BC4.29680.9937945@stuart.lexacorp.com.pg> On 15 Feb 2006 at 11:55, Shamil Salakhetdinov wrote: > "It's my experience that coming up with an elegant solution is deeply > satisfying at an entirely different level; it feels closer to art than > technology. And elegance always pays off; it's not a frivolous pursuit. Not > only does it give you a program that's easier to build and debug, but it's > also easier to understand and maintain, and that's where the financial value > lies." > > Thinking in C++, 2nd ed. Volume 1 > ?2000 by Bruce Eckel > There are those who will tell you that programming is simply a matter of combining various elements so that they work together correctly to produce a desired result. This description is accurate, but it is cut-and-dried explanation of what is really an art. Programming is more a matter of artistry than anything else. Whether you're a painter, sculptor, writer, or programmer, a creative, careful approach and good intuition are necessary to ensure a successful outcome. Susanne Marie Rodriguez. Ashton-Tate & Framework -- Stuart From shamil at users.mns.ru Wed Feb 15 03:55:57 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 15 Feb 2006 12:55:57 +0300 Subject: [AccessD] OT: Quote of the day References: <43F37BC4.29680.9937945@stuart.lexacorp.com.pg> Message-ID: <000601c63216$060e2f20$6501a8c0@Nant> Stuart, The latter is the Marie Rodriquez quote I have on my web site's start page from the time this my web site/page were created. Did you want to note that or something else?- I didn't get it :) Shamil -- Web: http://smsconsulting.spb.ru/shamil_s ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 15, 2006 12:06 PM Subject: Re: [AccessD] OT: Quote of the day On 15 Feb 2006 at 11:55, Shamil Salakhetdinov wrote: > "It's my experience that coming up with an elegant solution is deeply > satisfying at an entirely different level; it feels closer to art than > technology. And elegance always pays off; it's not a frivolous pursuit. > Not > only does it give you a program that's easier to build and debug, but it's > also easier to understand and maintain, and that's where the financial > value > lies." > > Thinking in C++, 2nd ed. Volume 1 > ?2000 by Bruce Eckel > There are those who will tell you that programming is simply a matter of combining various elements so that they work together correctly to produce a desired result. This description is accurate, but it is cut-and-dried explanation of what is really an art. Programming is more a matter of artistry than anything else. Whether you're a painter, sculptor, writer, or programmer, a creative, careful approach and good intuition are necessary to ensure a successful outcome. Susanne Marie Rodriguez. Ashton-Tate & Framework -- Stuart -- 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 15 04:07:51 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 15 Feb 2006 11:07:51 +0100 Subject: [AccessD] Criteria Question Message-ID: Hi Mike You need to specify the parameter as Bit. Insert a first line in your SQL of the query: PARAMETERS [Please Enter Yes or No] Bit; SELECT ... etc. Note, however, that Yes/No are localized, so in a French Access you will need to type Oui/Non and Jes/Ne for an Esperantian(?) Access. /gustav >>> Mike.W.Gowey at doc.state.or.us 14-02-2006 22:34 >>> Within my table I have a field that is set to Yes/No format. I am attempting to create a query that prompts the user to enter Yes or No as a criteria for this field. Everytime I prompt the user and they enter Yes or No in the prompt box, they get an error of "This expression is typed incorrectly, or is to complex to be evaluated." But yet if I type in Yes or No in the actual query criteria it works just fine. I just get this error when I prompt the user to enter the criteria. From Gustav at cactus.dk Wed Feb 15 04:18:03 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 15 Feb 2006 11:18:03 +0100 Subject: [AccessD] Colors in a combo box Message-ID: Hi Stuart How nice! Brings back memories of countless hours spent in my young days with the soldering iron mounting genious printed circuit boards of own construction ... /gustav >>> stuart at lexacorp.com.pg 15-02-2006 03:34 >>> On 14 Feb 2006 at 17:45, Rocky Smolin - Beach Access S wrote: > Dear List: > > Can you make a combo box display a list of colored boxes? Noah's > putting together a program to give the value of a resistor if you select the > colors of the rings. The combo box is currently a list of the colors. But > it would be much cooler if it dropped down the colors instead of a list. Is > this possible? > I think you will have to do something with stacking columns of labels, - wait a minute........... How about something like this: http://www.lexacorp.com.pg/Resistor.gif Option Groups, Radio buttons and coloured labels. Up to you to do the maths, but you can have a copy of the form if you want it -- Stuart From erbachs at gmail.com Wed Feb 15 06:54:46 2006 From: erbachs at gmail.com (Steve Erbach) Date: Wed, 15 Feb 2006 06:54:46 -0600 Subject: [AccessD] OT: Quote of the day In-Reply-To: <000601c63216$060e2f20$6501a8c0@Nant> References: <43F37BC4.29680.9937945@stuart.lexacorp.com.pg> <000601c63216$060e2f20$6501a8c0@Nant> Message-ID: <39cb22f30602150454g64adfe10ve163771389a74189@mail.gmail.com> Shamil and Stuart, Ashton-Tate. Boy, I haven't thought about that outfit for a long time. Back in the days when I was actually thrilled to learn something new on a computer...say, 1982 or thereabouts. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/15/06, Shamil Salakhetdinov wrote: > Stuart, > > The latter is the Marie Rodriquez quote I have on my web site's start page > from the time this my web site/page were created. Did you want to note that > or something else?- I didn't get it :) > > Shamil > -- > Web: http://smsconsulting.spb.ru/shamil_s > > ----- Original Message ----- > From: "Stuart McLachlan" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, February 15, 2006 12:06 PM > Subject: Re: [AccessD] OT: Quote of the day > > > On 15 Feb 2006 at 11:55, Shamil Salakhetdinov wrote: > > > "It's my experience that coming up with an elegant solution is deeply > > satisfying at an entirely different level; it feels closer to art than > > technology. And elegance always pays off; it's not a frivolous pursuit. > > Not > > only does it give you a program that's easier to build and debug, but it's > > also easier to understand and maintain, and that's where the financial > > value > > lies." > > > > Thinking in C++, 2nd ed. Volume 1 > > (c)2000 by Bruce Eckel > > > > There are those who will tell you that programming is simply a matter of > combining various elements so that they work together correctly to produce > a desired result. This description is accurate, but it is cut-and-dried > explanation of what is really an art. Programming is more a matter of > artistry than anything else. Whether you're a painter, sculptor, writer, or > programmer, a creative, careful approach and good intuition are necessary > to ensure a successful outcome. > > Susanne Marie Rodriguez. Ashton-Tate & Framework > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security From wdhindman at bellsouth.net Wed Feb 15 07:42:54 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Wed, 15 Feb 2006 08:42:54 -0500 Subject: [AccessD] Colors in a combo box References: <43F2879E.3060201@san.rr.com> Message-ID: <001201c63235$b98b56d0$1801a8c0@50NM721> ...fairly easy to do with a list box but afaik it would require a 3rd party ocx to do in a combo ...Lebans has a faked list box that can be individually colored by item if that would work ...Zeal has an inexpensive combo ocx that allows you to set colors of list items in the drop. William ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 14, 2006 8:45 PM Subject: [AccessD] Colors in a combo box > Dear List: > > Can you make a combo box display a list of colored boxes? Noah's > putting together a program to give the value of a resistor if you select > the colors of the rings. The combo box is currently a list of the > colors. But it would be much cooler if it dropped down the colors > instead of a list. Is this possible? > > MTIA > > Rocky > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Wed Feb 15 07:44:03 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 15 Feb 2006 07:44:03 -0600 Subject: [AccessD] Colors in a combo box In-Reply-To: <6243519.1139968329299.JavaMail.root@sniper23> Message-ID: <000c01c63235$e24efa40$0200a8c0@danwaters> Rocky, Could you set up a column or row of buttons (actually labels) where each button matches a color? Dan Waters -----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 14, 2006 7:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] Colors in a combo box Dear List: Can you make a combo box display a list of colored boxes? Noah's putting together a program to give the value of a resistor if you select the colors of the rings. The combo box is currently a list of the colors. But it would be much cooler if it dropped down the colors instead of a list. Is this possible? MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Wed Feb 15 08:31:37 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Wed, 15 Feb 2006 07:31:37 -0700 Subject: [AccessD] Criteria Question Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BC17@srciml1.ds.doc.state.or.us> Thanks Stuart that is what I needed, works excellent. -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Tuesday, February 14, 2006 3:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Criteria Question On 14 Feb 2006 at 14:34, Gowey Mike W wrote: > Within my table I have a field that is set to Yes/No format. I am > attempting to create a query that prompts the user to enter Yes or No > as a criteria for this field. Everytime I prompt the user and they > enter Yes or No in the prompt box, they get an error of > > "This expression is typed incorrectly, or is to complex to be > evaluated." > Set the criterion to "=IIf(["Yes or no"]="YES",True,False)" -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Wed Feb 15 08:32:04 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 15 Feb 2006 09:32:04 -0500 Subject: [AccessD] OT: Quote of the day In-Reply-To: <001a01c6320d$b4e26f60$6501a8c0@Nant> Message-ID: <000201c6323c$98292e20$e5b3d6d1@SUSANONE> I'm not a technical minded person -- I only make my living this way because it's what presented itself at a time when I needed it. It was means, not a passion by any means. I'd had to overcome a lot, because my mind doesn't translate binary automatically (well, I'm sure it does, but you know what I mean!). But, what I always found challenging and almost inspiring was finding solutions that the "experts" said didn't exist without code, or at least a lot of code. That is my forte and I have gotten a lot of enjoyment out of it. :) The second best thing has been taking massive blocks of code and reducing them, by a lot -- I am always astounded by the general lack of care given "logic" in most code. Susan H. "It's my experience that coming up with an elegant solution is deeply satisfying at an entirely different level; it feels closer to art than technology. And elegance always pays off; it's not a frivolous pursuit. Not only does it give you a program that's easier to build and debug, but it's also easier to understand and maintain, and that's where the financial value lies." Thinking in C++, 2nd ed. Volume 1 C2000 by Bruce Eckel From harkinsss at bellsouth.net Wed Feb 15 08:32:04 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 15 Feb 2006 09:32:04 -0500 Subject: [AccessD] Colors in a combo box In-Reply-To: <001201c63235$b98b56d0$1801a8c0@50NM721> Message-ID: <000301c6323c$9dd079f0$e5b3d6d1@SUSANONE> How would you do it in a list box? Susan H. ...fairly easy to do with a list box but afaik it would require a 3rd party ocx to do in a combo ...Lebans has a faked list box that can be individually colored by item if that would work ...Zeal has an inexpensive combo ocx that allows you to set colors of list items in the drop. From jwcolby at ColbyConsulting.com Wed Feb 15 08:50:36 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 15 Feb 2006 09:50:36 -0500 Subject: [AccessD] Dubious value Message-ID: <00e101c6323f$2f223fe0$647aa8c0@ColbyM6805> >From the following blog: http://blogs.msdn.com/michkap/archive/2005/10/19/482694.aspx There is the Jet 4.0 feature of record level locking that people love, so I will talk about that. Now the rule is that once the database is opened (by anybody), that is the mode of the datasbase until all user are out of it; this makes sense since locking schemes have to apply to all concurrent users to have any meaning. So what this means is that the Access setting in the Tools|Options Advanced tab (the chekbox "Open databases using record-level locking") is a request, not a demand. If the database is already opened in the other mode, your open will not fail, and with the current design you are not even warned that your preference was not heeded since your request could not be honored. But two additional warnings that you my find useful here exist: * 3811 -- Attempt to open the datasbase with the requested record level locking failed; page level locking will be used * 3812 -- Attempt to open the datasbase with the requested page level locking failed; record level locking will be used What this means is that if in your database you run the following code after it is open: Set con = New ADODB.Connection con.Provider = "Microsoft.JET.OLEDB.4.0" con.Properties("Data Source") = CurrentDb.Name con.Properties("Jet OLEDB:Database Locking Mode") = 1 ' use 0 for page level check con.CursorLocation = adUseServer con.Open and the database was not in the mode you asked for tht you will see one of those warnings in the NativeError property, right in con.Errors(0).NativeError! You will see one of the following values (depending on whether you set the locking mode to 0 or 1 in the code) if there is something in that collection (on 100% success it will be empty): * 249761507 -- Warning 3811 above (in hex it is 0x0ee30ee3, and 0x0ee3 is indeed 3811) * 249827044 -- Warning 3812 above (in hex it is 0x0ee40ee4, and 0x0ee4 is indeed 3812) So it is as simple as that. You can obviously combine this with an Application.GetOption("Use Row Level Locking") to see if the user running the code is the cause of the problem so you can kick them out or whatever. This becomes a much cooler way to solve problems such as those documented in KB article 237333, which just tells people to change the setting in Access and does not help people to fix the problem of the fact that it is not always that user's settings which are causing the problem.... ************************ As always happens however... When I try and use that code, none of the above errors occur, rather I get a message: "the database has been placed in a state that prevents it from being opened or locked" I thought I would use this code to troubleshoot locking issues since I have several clients where locking is an issue. Can anyone look at the code and comment on why I would not get the indicated error? I am (for now) just running the code inside of my framework, standalone. John W. Colby www.ColbyConsulting.com From wdhindman at bellsouth.net Wed Feb 15 08:59:06 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Wed, 15 Feb 2006 09:59:06 -0500 Subject: [AccessD] Colors in a combo box References: <000301c6323c$9dd079f0$e5b3d6d1@SUSANONE> Message-ID: <002501c63240$5e85a370$1801a8c0@50NM721> http://www.lebans.com/customlistboxver3.htm William ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, February 15, 2006 9:32 AM Subject: Re: [AccessD] Colors in a combo box > How would you do it in a list box? > > Susan H. > > ...fairly easy to do with a list box but afaik it would require a 3rd > party > ocx to do in a combo ...Lebans has a faked list box that can be > individually > colored by item if that would work ...Zeal has an inexpensive combo ocx > that > allows you to set colors of list items in the drop. > > -- > 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 15 09:06:32 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 15 Feb 2006 07:06:32 -0800 Subject: [AccessD] Colors in a combo box In-Reply-To: <000c01c63235$e24efa40$0200a8c0@danwaters> References: <000c01c63235$e24efa40$0200a8c0@danwaters> Message-ID: <43F34378.2060709@san.rr.com> Yeah, like Stuart's link to his GIF? But I'm not the designer on this project. I can only present the user with alternatives. And he seems to favor the combo box approach. Might be able to get him to look at a list box. But he's very hard nosed. Perhaps when he turns ten he'll be more pliable. :-P Rocky Dan Waters wrote: > Rocky, > > Could you set up a column or row of buttons (actually labels) where each > button matches a color? > > Dan Waters > > > -----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 14, 2006 7:45 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Colors in a combo box > > Dear List: > > Can you make a combo box display a list of colored boxes? Noah's > putting together a program to give the value of a resistor if you select > the colors of the rings. The combo box is currently a list of the > colors. But it would be much cooler if it dropped down the colors > instead of a list. Is this possible? > > MTIA > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Wed Feb 15 09:07:47 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 15 Feb 2006 07:07:47 -0800 Subject: [AccessD] Colors in a combo box In-Reply-To: <000301c6323c$9dd079f0$e5b3d6d1@SUSANONE> References: <000301c6323c$9dd079f0$e5b3d6d1@SUSANONE> Message-ID: <43F343C3.2040003@san.rr.com> Always looking for that next article, aren't you? ;-) Rocky Susan Harkins wrote: > How would you do it in a list box? > > Susan H. > > ...fairly easy to do with a list box but afaik it would require a 3rd party > ocx to do in a combo ...Lebans has a faked list box that can be individually > colored by item if that would work ...Zeal has an inexpensive combo ocx that > allows you to set colors of list items in the drop. > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From alan.lawhon at us.army.mil Wed Feb 15 09:25:33 2006 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Wed, 15 Feb 2006 09:25:33 -0600 Subject: [AccessD] OT: Quote of the day Message-ID: <5D5043687CFCE44288407A73E4CC6E17013EF5D1@redstone819.ad.redstone.army.mil> Susan: I have bought, read, (and actually used!) some of the code (and code snippets) in some of your programming books - especially your "Access" programming books. I have always felt that you have a very well organized mind (programming wise) and a special knack for explaining "technical things" very well. (We won't get into your political views ... that's for the OT list.) I'm curious about something. Have you ever taken a standardized IQ test - such as the Stanford-Binet assessment - and if so, what is your IQ? (I took an on-line IQ test recently and scored 127 or 128. The assessment said I was "near genius" and capable of earning a doctoral degree. I laughed at this, thinking it was much more likely that the web site was simply stroking my ego in hopes that I would actually pay for some of their more "intensive and focused" tests ...) It has always struck me that you are much smarter (and "intelligent") than you let on. Alan C. Lawhon -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, February 15, 2006 8:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Quote of the day I'm not a technical minded person -- I only make my living this way because it's what presented itself at a time when I needed it. It was means, not a passion by any means. I'd had to overcome a lot, because my mind doesn't translate binary automatically (well, I'm sure it does, but you know what I mean!). But, what I always found challenging and almost inspiring was finding solutions that the "experts" said didn't exist without code, or at least a lot of code. That is my forte and I have gotten a lot of enjoyment out of it. :) The second best thing has been taking massive blocks of code and reducing them, by a lot -- I am always astounded by the general lack of care given "logic" in most code. Susan H. "It's my experience that coming up with an elegant solution is deeply satisfying at an entirely different level; it feels closer to art than technology. And elegance always pays off; it's not a frivolous pursuit. Not only does it give you a program that's easier to build and debug, but it's also easier to understand and maintain, and that's where the financial value lies." Thinking in C++, 2nd ed. Volume 1 C2000 by Bruce Eckel -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Wed Feb 15 09:35:57 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 15 Feb 2006 10:35:57 -0500 Subject: [AccessD] Colors in a combo box In-Reply-To: <43F343C3.2040003@san.rr.com> Message-ID: <000d01c63245$84df5980$e5b3d6d1@SUSANONE> Well, yes. :) But, as William's link has taken me to someone beyond my little net, I will probably forego this one. :) Susan H. Always looking for that next article, aren't you? ;-) From harkinsss at bellsouth.net Wed Feb 15 09:44:09 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 15 Feb 2006 10:44:09 -0500 Subject: [AccessD] Colors in a combo box In-Reply-To: <002501c63240$5e85a370$1801a8c0@50NM721> Message-ID: <001001c63246$a9ee63f0$e5b3d6d1@SUSANONE> Well shoot... The download won't work for me -- no clue -- just get the little red X box.:( http://www.lebans.com/DownloadFiles/ListBoxEnhanced.zip If someone downloaded this example, would you mind sending it to me privately? Maybe I can get it that way. Be sure to zip it up -- I'm on dial-up -- thank you! :) Susan H. http://www.lebans.com/customlistboxver3.htm From bheid at appdevgrp.com Wed Feb 15 10:37:05 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 15 Feb 2006 11:37:05 -0500 Subject: [AccessD] [SPAM SUSPECT] Re: Colors in a combo box In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D4B2CC@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F9C@ADGSERVER> I think you will have to a owner-drawn combo box. Not sure if you can do that in access. Here are some samples: Color Picker by Owner Drawn List Box and Combo Box (MFC/C++) http://www.codeproject.com/combobox/colorpicker.asp Owner Draw Combo and List Boxes Version 2.1 (VB5/6) http://tinyurl.com/8733q http://www.vbaccelerator.com/home/vb/Code/Controls/Combo_and_List_Boxes/Owne r_Draw_Combo_and_List_Box/article.asp Change the Style of a Control / Owner Drawn Controls (VB5/6) http://www.thescarms.com/vbasic/OwnerDrawn.asp Virtual Listbox Demo.zip (34KB) This project shows how you can create an owner drawn virtual listbox that allows you to set the color of each item to any color you want dynamically. It is based on Matt Hart's concept of hooking the WM_CREATE message for VB controls to enable changing window styles that can only be set when a control is created. This technique was published in the July, 1999 issue of the VBPJ. I have taken the concept a step further and encapsulated it in a user control. The listbox is also "virtual" in the sense that the items it displays are actually kept in a separate array. The list only calls for the text of an item when it needs to be drawn. This is very useful for situations where you have a large number of items that would require a long time to load into a regular listbox. This demo uses subclassing techniques so, If you don't already have it, you will want to get the Debug Object (Dbgwproc.dll) DLL to allow stepping through subclassed code in break mode in the VB IDE. http://www.mvps.org/vbvision/_samples/Virtual_Listbox_Demo.zip (Found at http://www.mvps.org/vbvision/grouped_demos.htm) Bobby -----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 14, 2006 11:58 PM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] Colors in a combo box Importance: Low Stuart: I showed it to him. Option frames were a new idea. He thought that was a really neat control - especially the part about the value being associated with the button that you could read in code. Stuff we take for granted. But he likes the combo boxes better. Of course, now that he's got the value lists all set up he doesn't want to redo it. :) I would be neat if you could drop down a list of colors or more generally, embedded graphics. So you could pick from a list of pictures. Access 2007? Thanks Rocky Stuart McLachlan wrote: > On 14 Feb 2006 at 17:45, Rocky Smolin - Beach Access S wrote: > > >> Dear List: >> >> Can you make a combo box display a list of colored boxes? Noah's >> putting together a program to give the value of a resistor if you select the >> colors of the rings. The combo box is currently a list of the colors. But >> it would be much cooler if it dropped down the colors instead of a list. Is >> this possible? >> >> > > I think you will have to do something with stacking columns of labels, - > wait a minute........... > > How about something like this: > http://www.lexacorp.com.pg/Resistor.gif > > Option Groups, Radio buttons and coloured labels. > Up to you to do the maths, but you can have a copy of the form if you want > it > > > -- Rocky Smolin From bchacc at san.rr.com Wed Feb 15 10:57:15 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 15 Feb 2006 08:57:15 -0800 Subject: [AccessD] Colors in a combo box In-Reply-To: <001001c63246$a9ee63f0$e5b3d6d1@SUSANONE> References: <001001c63246$a9ee63f0$e5b3d6d1@SUSANONE> Message-ID: <43F35D6B.4070409@san.rr.com> Done Susan Harkins wrote: > Well shoot... The download won't work for me -- no clue -- just get the > little red X box.:( > > http://www.lebans.com/DownloadFiles/ListBoxEnhanced.zip > > If someone downloaded this example, would you mind sending it to me > privately? Maybe I can get it that way. Be sure to zip it up -- I'm on > dial-up -- thank you! :) > > Susan H. > > http://www.lebans.com/customlistboxver3.htm > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From martyconnelly at shaw.ca Wed Feb 15 12:43:39 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 15 Feb 2006 10:43:39 -0800 Subject: [AccessD] Dubious value References: <00e101c6323f$2f223fe0$647aa8c0@ColbyM6805> Message-ID: <43F3765B.5040602@shaw.ca> I think what is happening is you are immediately switching into Exclusive mode as soon as you do any edit with a module open To prove it just open your mdb and then immediately Ctl-G and run your test routine from the immediate debug window. You might find it easier to debug by opening an external mdb file rather than using the current one I seem to remember in 2003 by doing a complete file save it may switch back to Shared mode. Also After and before the Open statement Try Debug.Print con.Mode For Shared open should be something like = 16 or = adModeShareDenyNone John Colby wrote: >>From the following blog: > >http://blogs.msdn.com/michkap/archive/2005/10/19/482694.aspx > >There is the Jet 4.0 feature of record level locking that people love, so I >will talk about that. > >Now the rule is that once the database is opened (by anybody), that is the >mode of the datasbase until all user are out of it; this makes sense since >locking schemes have to apply to all concurrent users to have any meaning. > >So what this means is that the Access setting in the Tools|Options Advanced >tab (the chekbox "Open databases using record-level locking") is a request, >not a demand. If the database is already opened in the other mode, your open >will not fail, and with the current design you are not even warned that your >preference was not heeded since your request could not be honored. > >But two additional warnings that you my find useful here exist: > > * 3811 -- Attempt to open the datasbase with the requested record level >locking failed; page level locking will be used > * 3812 -- Attempt to open the datasbase with the requested page level >locking failed; record level locking will be used > >What this means is that if in your database you run the following code after >it is open: > > Set con = New ADODB.Connection > con.Provider = "Microsoft.JET.OLEDB.4.0" > con.Properties("Data Source") = CurrentDb.Name > con.Properties("Jet OLEDB:Database Locking Mode") = 1 ' use 0 for page >level check > con.CursorLocation = adUseServer > con.Open > >and the database was not in the mode you asked for tht you will see one of >those warnings in the NativeError property, right in >con.Errors(0).NativeError! You will see one of the following values >(depending on whether you set the locking mode to 0 or 1 in the code) if >there is something in that collection (on 100% success it will be empty): > > * 249761507 -- Warning 3811 above (in hex it is 0x0ee30ee3, and 0x0ee3 >is indeed 3811) > * 249827044 -- Warning 3812 above (in hex it is 0x0ee40ee4, and 0x0ee4 >is indeed 3812) > >So it is as simple as that. You can obviously combine this with an >Application.GetOption("Use Row Level Locking") to see if the user running >the code is the cause of the problem so you can kick them out or whatever. >This becomes a much cooler way to solve problems such as those documented in >KB article 237333, which just tells people to change the setting in Access >and does not help people to fix the problem of the fact that it is not >always that user's settings which are causing the problem.... > > >************************ > >As always happens however... When I try and use that code, none of the above >errors occur, rather I get a message: > >"the database has been placed in a state that prevents it from being opened >or locked" > >I thought I would use this code to troubleshoot locking issues since I have >several clients where locking is an issue. Can anyone look at the code and >comment on why I would not get the indicated error? > >I am (for now) just running the code inside of my framework, standalone. > >John W. Colby >www.ColbyConsulting.com > > > > -- Marty Connelly Victoria, B.C. Canada From harkinsss at bellsouth.net Wed Feb 15 13:31:45 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 15 Feb 2006 14:31:45 -0500 Subject: [AccessD] OT: Quote of the day In-Reply-To: <5D5043687CFCE44288407A73E4CC6E17013EF5D1@redstone819.ad.redstone.army.mil> Message-ID: <000001c63266$78c139e0$e5b3d6d1@SUSANONE> Thank you Alan. I don't mean to imply that I'm not "smart enough." I just don't believe that I'm carrying around any superior intelligence or genius. I'm probably above average somewhat, but I don't think it's enough to celebrate. :) There are all kinds of intelligence. I don't memorize code and syntax, I remember where the samples are and I review them as needed. I know Access features well enough that I can usually put them together in ways others don't consider. That's not because I'm so smart, but because I am so familiar with the product. If I tried to remember all the solutions and reasons, I'd explode. That's the difference between me and many developers who just type out stuff that works. It is more efficient for me to review samples and apply them than to try to memorize every rule necessary to create it myself. That doesn't make me smart or dumb. It makes me -- it means I am familiar enough with my own abilities to know what works best for me. Almost everything you have read was inspired by someone else -- I don't just sit around and fire off solutions. Generally, I see snippets and pieces and they inspire something else. But that's my niche Alan -- it's the little spot I've carved out for myself out of necessity. I wouldn't even try to compete with the high-powered developers. That doesn't make me smarter or dumber than them, it makes me different. Although, frankly -- they probably do have a higher IQs than me, and that doesn't bother me. No, I've never taken an IQ test, that I can recall. I don't memorize much at all. I do remember enough to say, "Oh... I need to look that up..." And, I can retain a lot about some subjects with little effort, but I doubt I could write an essay on any subject (except personal) without requiring sources. I think we all remember the ACT's and SAT's from high school? I was a decent student -- in the top 20% -- but not exceptional by any means. When we compared SAT scores, a friend of mine -- one of the top 10 seniors -- was just increduous that my score was higher than hers. In fact, she went so far as to claim they'd made a mistake -- she was truly angry. I was just hurt. A teacher I was fond of later explained to me that my friend had to work very hard for her grades. She studied relentlessly and put 100% into everything she did and here I was -- doing good if I handed in my homework and showed up for class 4 days out of 5, and I scored higher than her. Now, the point of that story is -- if, at the same time, that friend and I had both taken IQ tests -- she's have probably scored higher than me. My success with the SAT's and ACT's was the way they asked questions, not the questions themselves. She memorized things, and she memorized a whole lot. However, what she didn't memorize, she didn't know. I just thought through the questions and gave the answer that seemed the best. I didn't know the answers to most of the questions. I reasoned many answers, I didn't "know" the answers. There are different kinds of brain power, and I doubt either one's better than the other -- but it does make us all very different. People get into trouble when they fail to recognize their weaknesses or fail to take advantage of their strengths. I am not a genius -- no way even near it. I simply know what I'm good at, and that's what I do. Susan H. I have bought, read, (and actually used!) some of the code (and code snippets) in some of your programming books - especially your "Access" programming books. I have always felt that you have a very well organized mind (programming wise) and a special knack for explaining "technical things" very well. (We won't get into your political views ... that's for the OT list.) I'm curious about something. Have you ever taken a standardized IQ test - such as the Stanford-Binet assessment - and if so, what is your IQ? (I took an on-line IQ test recently and scored 127 or 128. The assessment said I was "near genius" and capable of earning a doctoral degree. I laughed at this, thinking it was much more likely that the web site was simply stroking my ego in hopes that I would actually pay for some of their more "intensive and focused" tests ...) It has always struck me that you are much smarter (and "intelligent") than you let on. Alan C. Lawhon -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, February 15, 2006 8:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Quote of the day I'm not a technical minded person -- I only make my living this way because it's what presented itself at a time when I needed it. It was means, not a passion by any means. I'd had to overcome a lot, because my mind doesn't translate binary automatically (well, I'm sure it does, but you know what I mean!). But, what I always found challenging and almost inspiring was finding solutions that the "experts" said didn't exist without code, or at least a lot of code. That is my forte and I have gotten a lot of enjoyment out of it. :) The second best thing has been taking massive blocks of code and reducing them, by a lot -- I am always astounded by the general lack of care given "logic" in most code. Susan H. "It's my experience that coming up with an elegant solution is deeply satisfying at an entirely different level; it feels closer to art than technology. And elegance always pays off; it's not a frivolous pursuit. Not only does it give you a program that's easier to build and debug, but it's also easier to understand and maintain, and that's where the financial value lies." Thinking in C++, 2nd ed. Volume 1 C2000 by Bruce Eckel -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.25/247 - Release Date: 1/31/2006 From jwcolby at ColbyConsulting.com Wed Feb 15 14:04:05 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 15 Feb 2006 15:04:05 -0500 Subject: [AccessD] Dubious value In-Reply-To: <43F3765B.5040602@shaw.ca> Message-ID: <011301c6326a$fa165e90$647aa8c0@ColbyM6805> I have not even figured out what the code does. It appears to try and switch the database to a given mode, but then there is code that reads the mode but it doesn't reflect these changes. Perhaps the read code reads the properties of the FE and this is the properties of the BE, though how they discover which BE is beyond me. All rather confusing. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, February 15, 2006 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dubious value I think what is happening is you are immediately switching into Exclusive mode as soon as you do any edit with a module open To prove it just open your mdb and then immediately Ctl-G and run your test routine from the immediate debug window. You might find it easier to debug by opening an external mdb file rather than using the current one I seem to remember in 2003 by doing a complete file save it may switch back to Shared mode. Also After and before the Open statement Try Debug.Print con.Mode For Shared open should be something like = 16 or = adModeShareDenyNone John Colby wrote: >>From the following blog: > >http://blogs.msdn.com/michkap/archive/2005/10/19/482694.aspx > >There is the Jet 4.0 feature of record level locking that people love, >so I will talk about that. > >Now the rule is that once the database is opened (by anybody), that is >the mode of the datasbase until all user are out of it; this makes >sense since locking schemes have to apply to all concurrent users to have any meaning. > >So what this means is that the Access setting in the Tools|Options >Advanced tab (the chekbox "Open databases using record-level locking") >is a request, not a demand. If the database is already opened in the >other mode, your open will not fail, and with the current design you >are not even warned that your preference was not heeded since your request could not be honored. > >But two additional warnings that you my find useful here exist: > > * 3811 -- Attempt to open the datasbase with the requested record >level locking failed; page level locking will be used > * 3812 -- Attempt to open the datasbase with the requested page >level locking failed; record level locking will be used > >What this means is that if in your database you run the following code >after it is open: > > Set con = New ADODB.Connection > con.Provider = "Microsoft.JET.OLEDB.4.0" > con.Properties("Data Source") = CurrentDb.Name > con.Properties("Jet OLEDB:Database Locking Mode") = 1 ' use 0 for >page level check > con.CursorLocation = adUseServer > con.Open > >and the database was not in the mode you asked for tht you will see one >of those warnings in the NativeError property, right in >con.Errors(0).NativeError! You will see one of the following values >(depending on whether you set the locking mode to 0 or 1 in the code) >if there is something in that collection (on 100% success it will be empty): > > * 249761507 -- Warning 3811 above (in hex it is 0x0ee30ee3, and >0x0ee3 is indeed 3811) > * 249827044 -- Warning 3812 above (in hex it is 0x0ee40ee4, and >0x0ee4 is indeed 3812) > >So it is as simple as that. You can obviously combine this with an >Application.GetOption("Use Row Level Locking") to see if the user >running the code is the cause of the problem so you can kick them out or whatever. >This becomes a much cooler way to solve problems such as those >documented in KB article 237333, which just tells people to change the >setting in Access and does not help people to fix the problem of the >fact that it is not always that user's settings which are causing the problem.... > > >************************ > >As always happens however... When I try and use that code, none of the >above errors occur, rather I get a message: > >"the database has been placed in a state that prevents it from being >opened or locked" > >I thought I would use this code to troubleshoot locking issues since I >have several clients where locking is an issue. Can anyone look at the >code and comment on why I would not get the indicated error? > >I am (for now) just running the code inside of my framework, standalone. > >John W. Colby >www.ColbyConsulting.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 Wed Feb 15 14:55:52 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 15 Feb 2006 12:55:52 -0800 Subject: [AccessD] Dubious value References: <011301c6326a$fa165e90$647aa8c0@ColbyM6805> Message-ID: <43F39558.30803@shaw.ca> Well I can get both error messages to occur * 3811 -- Attempt to open the datasbase with the requested record level locking failed; page level locking will be used * 3812 -- Attempt to open the datasbase with the requested page level locking failed; record level locking will be used if I put this line after the open statement Debug.Print con.Errors(0).NativeError If I get no error at all on this line, the line itself will error with a 3265 error Item cannot be found in the collection You have to also set Tools --> Options --> Advanced and select page locking by toggle locking all records or full record locking checkbox Open database for record locking. Just remember once the mdb is opened with either page or record locing setting, it stays that way until everyone is out of the pool and the mdb is closed. John Colby wrote: >I have not even figured out what the code does. It appears to try and >switch the database to a given mode, but then there is code that reads the >mode but it doesn't reflect these changes. Perhaps the read code reads the >properties of the FE and this is the properties of the BE, though how they >discover which BE is beyond me. All rather confusing. > > >John W. Colby >www.ColbyConsulting.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Wednesday, February 15, 2006 1:44 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Dubious value > >I think what is happening is you are immediately switching into Exclusive >mode as soon as you do any edit with a module open To prove it just open >your mdb and then immediately Ctl-G and run your test routine from the >immediate debug window. >You might find it easier to debug by opening an external mdb file rather >than using the current one I seem to remember in 2003 by doing a complete >file save it may switch back to Shared mode. > >Also After and before the Open statement > >Try Debug.Print con.Mode >For Shared open should be something like = 16 or > >= adModeShareDenyNone > >John Colby wrote: > > > >>>From the following blog: >> >>http://blogs.msdn.com/michkap/archive/2005/10/19/482694.aspx >> >>There is the Jet 4.0 feature of record level locking that people love, >>so I will talk about that. >> >>Now the rule is that once the database is opened (by anybody), that is >>the mode of the datasbase until all user are out of it; this makes >>sense since locking schemes have to apply to all concurrent users to have >> >> >any meaning. > > >>So what this means is that the Access setting in the Tools|Options >>Advanced tab (the chekbox "Open databases using record-level locking") >>is a request, not a demand. If the database is already opened in the >>other mode, your open will not fail, and with the current design you >>are not even warned that your preference was not heeded since your request >> >> >could not be honored. > > >>But two additional warnings that you my find useful here exist: >> >> * 3811 -- Attempt to open the datasbase with the requested record >>level locking failed; page level locking will be used >> * 3812 -- Attempt to open the datasbase with the requested page >>level locking failed; record level locking will be used >> >>What this means is that if in your database you run the following code >>after it is open: >> >> Set con = New ADODB.Connection >> con.Provider = "Microsoft.JET.OLEDB.4.0" >> con.Properties("Data Source") = CurrentDb.Name >> con.Properties("Jet OLEDB:Database Locking Mode") = 1 ' use 0 for >>page level check >> con.CursorLocation = adUseServer >> con.Open >> >>and the database was not in the mode you asked for tht you will see one >>of those warnings in the NativeError property, right in >>con.Errors(0).NativeError! You will see one of the following values >>(depending on whether you set the locking mode to 0 or 1 in the code) >>if there is something in that collection (on 100% success it will be >> >> >empty): > > >> * 249761507 -- Warning 3811 above (in hex it is 0x0ee30ee3, and >>0x0ee3 is indeed 3811) >> * 249827044 -- Warning 3812 above (in hex it is 0x0ee40ee4, and >>0x0ee4 is indeed 3812) >> >>So it is as simple as that. You can obviously combine this with an >>Application.GetOption("Use Row Level Locking") to see if the user >>running the code is the cause of the problem so you can kick them out or >> >> >whatever. > > >>This becomes a much cooler way to solve problems such as those >>documented in KB article 237333, which just tells people to change the >>setting in Access and does not help people to fix the problem of the >>fact that it is not always that user's settings which are causing the >> >> >problem.... > > >>************************ >> >>As always happens however... When I try and use that code, none of the >>above errors occur, rather I get a message: >> >>"the database has been placed in a state that prevents it from being >>opened or locked" >> >>I thought I would use this code to troubleshoot locking issues since I >>have several clients where locking is an issue. Can anyone look at the >>code and comment on why I would not get the indicated error? >> >>I am (for now) just running the code inside of my framework, standalone. >> >>John W. Colby >>www.ColbyConsulting.com >> >> >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > > -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Wed Feb 15 16:09:39 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 16 Feb 2006 08:09:39 +1000 Subject: [AccessD] OT: Quote of the day In-Reply-To: <000001c63266$78c139e0$e5b3d6d1@SUSANONE> References: <5D5043687CFCE44288407A73E4CC6E17013EF5D1@redstone819.ad.redstone.army.mil> Message-ID: <43F43343.4447.C6042C4@stuart.lexacorp.com.pg> On 15 Feb 2006 at 14:31, Susan Harkins wrote: > student -- in the top 20% -- but not exceptional by any means. When we > compared SAT scores, a friend of mine -- one of the top 10 seniors -- was > just increduous that my score was higher than hers. In fact, she went so far > as to claim they'd made a mistake -- she was truly angry. I was just hurt. A > teacher I was fond of later explained to me that my friend had to work very > hard for her grades. She studied relentlessly and put 100% into everything > she did and here I was -- doing good if I handed in my homework and showed > up for class 4 days out of 5, and I scored higher than her. > > Now, the point of that story is -- if, at the same time, that friend and I > had both taken IQ tests -- she's have probably scored higher than me. I doubt that very much. Based on my reading of the people on this list, I reckon I could name several people here who, in their school days were " in the top 20%" and "doing good if I handed in my homework and showed up for class 4 days out of 5". They are the sort, who ace IQ tests if they can be bothered to do them. The real smart ones are the one who work out early on just how much they have to do to get by comfortably in school. > My > success with the SAT's and ACT's was the way they asked questions, not the > questions themselves. She memorized things, and she memorized a whole lot. > However, what she didn't memorize, she didn't know. I just thought through > the questions and gave the answer that seemed the best. I didn't know the > answers to most of the questions. I reasoned many answers, I didn't "know" > the answers. > Exactly. Knowledge is not intelligence and you should never confuse the two. Sounds like the people who design your SATs and ACTS are smart enough to know this and are testing the right thing. -- Stuart From mikedorism at verizon.net Wed Feb 15 16:12:46 2006 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Wed, 15 Feb 2006 17:12:46 -0500 Subject: [AccessD] Access XP Runtime and Citrix Message-ID: <000601c6327c$f4796dd0$2f01a8c0@dorismanning> I've got an application that my users generally run using Access Runtime ADP FE on their local computers. The "powers that be" have decided to switch over to a Citrix network. The problem. the application still runs and generates no errors, but the forms do not show the data they are supposed to. If you run the application on the Citrix server itself, the data changes just like it should. Are there any gotchas I should know about when it comes to running an Access ADP FE on a Citrix network? Doris Manning mikedorism at verizon.net From jimdettman at earthlink.net Wed Feb 15 16:34:03 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 15 Feb 2006 17:34:03 -0500 Subject: [AccessD] Dubious value In-Reply-To: <011301c6326a$fa165e90$647aa8c0@ColbyM6805> Message-ID: The code is a work around to force DAO to use record locking. Don't know if it works or not, but it's from a MSKB article. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Wednesday, February 15, 2006 3:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dubious value I have not even figured out what the code does. It appears to try and switch the database to a given mode, but then there is code that reads the mode but it doesn't reflect these changes. Perhaps the read code reads the properties of the FE and this is the properties of the BE, though how they discover which BE is beyond me. All rather confusing. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, February 15, 2006 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dubious value I think what is happening is you are immediately switching into Exclusive mode as soon as you do any edit with a module open To prove it just open your mdb and then immediately Ctl-G and run your test routine from the immediate debug window. You might find it easier to debug by opening an external mdb file rather than using the current one I seem to remember in 2003 by doing a complete file save it may switch back to Shared mode. Also After and before the Open statement Try Debug.Print con.Mode For Shared open should be something like = 16 or = adModeShareDenyNone John Colby wrote: >>From the following blog: > >http://blogs.msdn.com/michkap/archive/2005/10/19/482694.aspx > >There is the Jet 4.0 feature of record level locking that people love, >so I will talk about that. > >Now the rule is that once the database is opened (by anybody), that is >the mode of the datasbase until all user are out of it; this makes >sense since locking schemes have to apply to all concurrent users to have any meaning. > >So what this means is that the Access setting in the Tools|Options >Advanced tab (the chekbox "Open databases using record-level locking") >is a request, not a demand. If the database is already opened in the >other mode, your open will not fail, and with the current design you >are not even warned that your preference was not heeded since your request could not be honored. > >But two additional warnings that you my find useful here exist: > > * 3811 -- Attempt to open the datasbase with the requested record >level locking failed; page level locking will be used > * 3812 -- Attempt to open the datasbase with the requested page >level locking failed; record level locking will be used > >What this means is that if in your database you run the following code >after it is open: > > Set con = New ADODB.Connection > con.Provider = "Microsoft.JET.OLEDB.4.0" > con.Properties("Data Source") = CurrentDb.Name > con.Properties("Jet OLEDB:Database Locking Mode") = 1 ' use 0 for >page level check > con.CursorLocation = adUseServer > con.Open > >and the database was not in the mode you asked for tht you will see one >of those warnings in the NativeError property, right in >con.Errors(0).NativeError! You will see one of the following values >(depending on whether you set the locking mode to 0 or 1 in the code) >if there is something in that collection (on 100% success it will be empty): > > * 249761507 -- Warning 3811 above (in hex it is 0x0ee30ee3, and >0x0ee3 is indeed 3811) > * 249827044 -- Warning 3812 above (in hex it is 0x0ee40ee4, and >0x0ee4 is indeed 3812) > >So it is as simple as that. You can obviously combine this with an >Application.GetOption("Use Row Level Locking") to see if the user >running the code is the cause of the problem so you can kick them out or whatever. >This becomes a much cooler way to solve problems such as those >documented in KB article 237333, which just tells people to change the >setting in Access and does not help people to fix the problem of the >fact that it is not always that user's settings which are causing the problem.... > > >************************ > >As always happens however... When I try and use that code, none of the >above errors occur, rather I get a message: > >"the database has been placed in a state that prevents it from being >opened or locked" > >I thought I would use this code to troubleshoot locking issues since I >have several clients where locking is an issue. Can anyone look at the >code and comment on why I would not get the indicated error? > >I am (for now) just running the code inside of my framework, standalone. > >John W. Colby >www.ColbyConsulting.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 From Jim.Hale at FleetPride.com Wed Feb 15 16:36:39 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 15 Feb 2006 16:36:39 -0600 Subject: [AccessD] Access XP Runtime and Citrix Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA22@corp-es01.fleetpride.com> I had a similar issue. From the archives: (I have to say I never solved it to my satisfaction) Sent: Monday, October 25, 2004 9:44 AM Subject: [AccessD] Strange Citrix error when running Access with Excel " I have a database that populates Excel budget spreadsheets from Access tables and also opens Excel spreadsheets and extracts data. I am using Office 2000 and DAO 3.6. The code runs flawlessly on my machine. On the Citrix server, however, the code to extract data from spreadsheets runs fine but the code to populate spreadsheets tells me that the interface does not support this operation. References are okay and permissions seem ok since I can save the spreadsheet (sans the data) through automation. Why automation works in one direction but not the other is beyond me. Any suggestions? TIA" Response from Greg: "We've had similar problems. Terminal Services uses the console to open office objects from code interactively. We got around it by always having the console logged in (not pretty just works). If you still have problems you might try adjusting your DCOMCNFG to allow interactive access and launch permissions." -----Original Message----- From: Mike & Doris Manning [mailto:mikedorism at verizon.net] Sent: Wednesday, February 15, 2006 4:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access XP Runtime and Citrix I've got an application that my users generally run using Access Runtime ADP FE on their local computers. The "powers that be" have decided to switch over to a Citrix network. The problem. the application still runs and generates no errors, but the forms do not show the data they are supposed to. If you run the application on the Citrix server itself, the data changes just like it should. Are there any gotchas I should know about when it comes to running an Access ADP FE on a Citrix network? *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From jwcolby at ColbyConsulting.com Wed Feb 15 17:20:13 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 15 Feb 2006 18:20:13 -0500 Subject: [AccessD] OT: Intelligence (or the lack thereof) In-Reply-To: <43F43343.4447.C6042C4@stuart.lexacorp.com.pg> Message-ID: <012701c63286$66824e20$647aa8c0@ColbyM6805> I had the honor to work with a guy who was a degreed Electrical Engineer. It drove me crazy working with him - he would literally pull down the menus in Turbo Pascal (this was in the mid 80s) and read the selections, then choose one. EVERY TIME. He never "learned" the menus. Trying to do anything with him just drove me nuts. The nicest guy, but just a click or two above "average" intelligence. I think he was the guy studying till midnight every night in college, but he succeeded. OTOH, I also worked with a guy that was in the "180" range. Brilliant, totally normal (which is not necessarily normal in that IQ level) etc. He was the author of the compression algorithms for Stac Electronics of Stacker fame. I would go in to his office with a question, something I was struggling with. He would be typing in 'C' code, never even stop typing, and spit out the answer. That is a humbling experience believe me. 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 15, 2006 5:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Quote of the day On 15 Feb 2006 at 14:31, Susan Harkins wrote: > student -- in the top 20% -- but not exceptional by any means. When we > compared SAT scores, a friend of mine -- one of the top 10 seniors -- > was just increduous that my score was higher than hers. In fact, she > went so far as to claim they'd made a mistake -- she was truly angry. > I was just hurt. A teacher I was fond of later explained to me that my > friend had to work very hard for her grades. She studied relentlessly > and put 100% into everything she did and here I was -- doing good if I > handed in my homework and showed up for class 4 days out of 5, and I scored higher than her. > > Now, the point of that story is -- if, at the same time, that friend > and I had both taken IQ tests -- she's have probably scored higher than me. I doubt that very much. Based on my reading of the people on this list, I reckon I could name several people here who, in their school days were " in the top 20%" and "doing good if I handed in my homework and showed up for class 4 days out of 5". They are the sort, who ace IQ tests if they can be bothered to do them. The real smart ones are the one who work out early on just how much they have to do to get by comfortably in school. > My > success with the SAT's and ACT's was the way they asked questions, not > the questions themselves. She memorized things, and she memorized a whole lot. > However, what she didn't memorize, she didn't know. I just thought > through the questions and gave the answer that seemed the best. I > didn't know the answers to most of the questions. I reasoned many answers, I didn't "know" > the answers. > Exactly. Knowledge is not intelligence and you should never confuse the two. Sounds like the people who design your SATs and ACTS are smart enough to know this and are testing the right thing. -- Stuart -- 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 15 17:40:20 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 15 Feb 2006 15:40:20 -0800 Subject: [AccessD] Access XP Runtime and Citrix References: <000601c6327c$f4796dd0$2f01a8c0@dorismanning> Message-ID: <43F3BBE4.7040008@shaw.ca> Maybe some links here http://www.granite.ab.ca/access/terminalserver.htm I have heard of problems if the app is installed from a terminal client rather than terminal server console. Mike & Doris Manning wrote: >I've got an application that my users generally run using Access Runtime ADP >FE on their local computers. The "powers that be" have decided to switch >over to a Citrix network. The problem. the application still runs and >generates no errors, but the forms do not show the data they are supposed >to. If you run the application on the Citrix server itself, the data >changes just like it should. > > > >Are there any gotchas I should know about when it comes to running an Access >ADP FE on a Citrix network? > > > >Doris Manning > >mikedorism at verizon.net > > > > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Wed Feb 15 17:40:39 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 15 Feb 2006 15:40:39 -0800 Subject: [AccessD] OT: Intelligence (or the lack thereof) Message-ID: LOL I used to belong to Mensa, but everyone I met there seemed to work for the state! They spent a lot of time playing "my IQ is higher than yours." I decided none of us were all that smart and quit! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 15, 2006 3:20 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Intelligence (or the lack thereof) I had the honor to work with a guy who was a degreed Electrical Engineer. It drove me crazy working with him - he would literally pull down the menus in Turbo Pascal (this was in the mid 80s) and read the selections, then choose one. EVERY TIME. He never "learned" the menus. Trying to do anything with him just drove me nuts. The nicest guy, but just a click or two above "average" intelligence. I think he was the guy studying till midnight every night in college, but he succeeded. OTOH, I also worked with a guy that was in the "180" range. Brilliant, totally normal (which is not necessarily normal in that IQ level) etc. He was the author of the compression algorithms for Stac Electronics of Stacker fame. I would go in to his office with a question, something I was struggling with. He would be typing in 'C' code, never even stop typing, and spit out the answer. That is a humbling experience believe me. 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 15, 2006 5:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Quote of the day On 15 Feb 2006 at 14:31, Susan Harkins wrote: > student -- in the top 20% -- but not exceptional by any means. When we > compared SAT scores, a friend of mine -- one of the top 10 seniors -- > was just increduous that my score was higher than hers. In fact, she > went so far as to claim they'd made a mistake -- she was truly angry. > I was just hurt. A teacher I was fond of later explained to me that my > friend had to work very hard for her grades. She studied relentlessly > and put 100% into everything she did and here I was -- doing good if I > handed in my homework and showed up for class 4 days out of 5, and I scored higher than her. > > Now, the point of that story is -- if, at the same time, that friend > and I had both taken IQ tests -- she's have probably scored higher than me. I doubt that very much. Based on my reading of the people on this list, I reckon I could name several people here who, in their school days were " in the top 20%" and "doing good if I handed in my homework and showed up for class 4 days out of 5". They are the sort, who ace IQ tests if they can be bothered to do them. The real smart ones are the one who work out early on just how much they have to do to get by comfortably in school. > My > success with the SAT's and ACT's was the way they asked questions, not > the questions themselves. She memorized things, and she memorized a whole lot. > However, what she didn't memorize, she didn't know. I just thought > through the questions and gave the answer that seemed the best. I > didn't know the answers to most of the questions. I reasoned many answers, I didn't "know" > the answers. > Exactly. Knowledge is not intelligence and you should never confuse the two. Sounds like the people who design your SATs and ACTS are smart enough to know this and are testing the right thing. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Feb 15 17:54:45 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 16 Feb 2006 09:54:45 +1000 Subject: [AccessD] OT: Intelligence (or the lack thereof) In-Reply-To: Message-ID: <43F44BE5.7138.CC07C30@stuart.lexacorp.com.pg> On 15 Feb 2006 at 15:40, Charlotte Foust wrote: > LOL I used to belong to Mensa, but everyone I met there seemed to work for > the state! They spent a lot of time playing "my IQ is higher than yours." That is exactly my impression about Mensa - it looks to me like a club for smart w*nkers. I suspect a lot of members have also got their names in various "Who's Who" directories. > I decided none of us were all that smart and quit! > Now that *was* a smart move :-) -- Stuart From erbachs at gmail.com Wed Feb 15 18:05:57 2006 From: erbachs at gmail.com (Steve Erbach) Date: Wed, 15 Feb 2006 18:05:57 -0600 Subject: [AccessD] OT: Quote of the day In-Reply-To: <000001c63266$78c139e0$e5b3d6d1@SUSANONE> References: <5D5043687CFCE44288407A73E4CC6E17013EF5D1@redstone819.ad.redstone.army.mil> <000001c63266$78c139e0$e5b3d6d1@SUSANONE> Message-ID: <39cb22f30602151605r4faf96f5td287f80a72e2e6db@mail.gmail.com> Susan, Sounds like you're describing the classic differences between an over-achiever (your incensed schoolmate) and an under-achiever. Over-achievers often don't have the natural brain power or talent but have an abundance of drive and, sometimes, confidence. I am definitely in the under- category. I liked Stuart's comment about "if they can be bothered to do them." That's me. Now, the ones that are dangerous are the ones with brain power AND drive. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/15/06, Susan Harkins wrote: > Thank you Alan. I don't mean to imply that I'm not "smart enough." I just > don't believe that I'm carrying around any superior intelligence or genius. > I'm probably above average somewhat, but I don't think it's enough to > celebrate. :) There are all kinds of intelligence. I don't memorize code and > syntax, I remember where the samples are and I review them as needed. I know > Access features well enough that I can usually put them together in ways > others don't consider. That's not because I'm so smart, but because I am so > familiar with the product. > > If I tried to remember all the solutions and reasons, I'd explode. That's > the difference between me and many developers who just type out stuff that > works. It is more efficient for me to review samples and apply them than to > try to memorize every rule necessary to create it myself. That doesn't make > me smart or dumb. It makes me -- it means I am familiar enough with my own > abilities to know what works best for me. Almost everything you have read > was inspired by someone else -- I don't just sit around and fire off > solutions. Generally, I see snippets and pieces and they inspire something > else. But that's my niche Alan -- it's the little spot I've carved out for > myself out of necessity. I wouldn't even try to compete with the > high-powered developers. That doesn't make me smarter or dumber than them, > it makes me different. Although, frankly -- they probably do have a higher > IQs than me, and that doesn't bother me. > > No, I've never taken an IQ test, that I can recall. I don't memorize much at > all. I do remember enough to say, "Oh... I need to look that up..." And, I > can retain a lot about some subjects with little effort, but I doubt I could > write an essay on any subject (except personal) without requiring sources. I > think we all remember the ACT's and SAT's from high school? I was a decent > student -- in the top 20% -- but not exceptional by any means. When we > compared SAT scores, a friend of mine -- one of the top 10 seniors -- was > just increduous that my score was higher than hers. In fact, she went so far > as to claim they'd made a mistake -- she was truly angry. I was just hurt. A > teacher I was fond of later explained to me that my friend had to work very > hard for her grades. She studied relentlessly and put 100% into everything > she did and here I was -- doing good if I handed in my homework and showed > up for class 4 days out of 5, and I scored higher than her. > > Now, the point of that story is -- if, at the same time, that friend and I > had both taken IQ tests -- she's have probably scored higher than me. My > success with the SAT's and ACT's was the way they asked questions, not the > questions themselves. She memorized things, and she memorized a whole lot. > However, what she didn't memorize, she didn't know. I just thought through > the questions and gave the answer that seemed the best. I didn't know the > answers to most of the questions. I reasoned many answers, I didn't "know" > the answers. > > There are different kinds of brain power, and I doubt either one's better > than the other -- but it does make us all very different. People get into > trouble when they fail to recognize their weaknesses or fail to take > advantage of their strengths. > > I am not a genius -- no way even near it. I simply know what I'm good at, > and that's what I do. > > Susan H. > From harkinsss at bellsouth.net Wed Feb 15 18:50:39 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 15 Feb 2006 19:50:39 -0500 Subject: [AccessD] OT: Quote of the day In-Reply-To: <43F43343.4447.C6042C4@stuart.lexacorp.com.pg> Message-ID: <001a01c63293$0278a480$95b3d6d1@SUSANONE> > > Now, the point of that story is -- if, at the same time, that friend > and I had both taken IQ tests -- she's have probably scored higher than me. I doubt that very much. Based on my reading of the people on this list, I reckon I could name several people here who, in their school days were " in the top 20%" and "doing good if I handed in my homework and showed up for class 4 days out of 5". They are the sort, who ace IQ tests if they can be bothered to do them. The real smart ones are the one who work out early on just how much they have to do to get by comfortably in school. ========I wasn't acing anything, and looking back, I don't feel so smart. I had the opportunity to get a great education and I blew it off because I could get decent grades with no effort. That's not smart -- I was totally stupid and immature. > My > success with the SAT's and ACT's was the way they asked questions, not > the questions themselves. She memorized things, and she memorized a whole lot. > However, what she didn't memorize, she didn't know. I just thought > through the questions and gave the answer that seemed the best. I > didn't know the answers to most of the questions. I reasoned many answers, I didn't "know" > the answers. > Exactly. Knowledge is not intelligence and you should never confuse the two. Sounds like the people who design your SATs and ACTS are smart enough to know this and are testing the right thing. ========Yes, we agree here. My natural ability may have been greater than my friend's, but she was using hers and I wasn't. She was assimilating, I was guessing. I was able to reason through the questions and you may be right -- if the tests are measuring intelligence -- the ability to comprehend and reason -- and test your knowledge as well, you might be right. Susan H. From hadyn at dataconcepts.co.nz Wed Feb 15 20:32:29 2006 From: hadyn at dataconcepts.co.nz (Hadyn Morgan) Date: Thu, 16 Feb 2006 15:32:29 +1300 Subject: [AccessD] OT: Bug / Feature Databases In-Reply-To: <001a01c63293$0278a480$95b3d6d1@SUSANONE> Message-ID: Hi All Just wondering what people use to track bugs and feature requests for their applications. Do you use an inhouse database or a off the shelf package? If you use a OTS package, which one and why? Kind regards Hadyn -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.9/261 - Release Date: 15/02/2006 From jwcolby at ColbyConsulting.com Wed Feb 15 20:40:45 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 15 Feb 2006 21:40:45 -0500 Subject: [AccessD] OT: Quote of the day In-Reply-To: <001a01c63293$0278a480$95b3d6d1@SUSANONE> Message-ID: <013301c632a2$641f9540$647aa8c0@ColbyM6805> True intelligence is the reasonable application of knowledge. Intelligence without knowledge is useless, knowledge without intelligence is dangerous. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, February 15, 2006 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Quote of the day > > Now, the point of that story is -- if, at the same time, that friend > and I had both taken IQ tests -- she's have probably scored higher > than me. I doubt that very much. Based on my reading of the people on this list, I reckon I could name several people here who, in their school days were " in the top 20%" and "doing good if I handed in my homework and showed up for class 4 days out of 5". They are the sort, who ace IQ tests if they can be bothered to do them. The real smart ones are the one who work out early on just how much they have to do to get by comfortably in school. ========I wasn't acing anything, and looking back, I don't feel so smart. I had the opportunity to get a great education and I blew it off because I could get decent grades with no effort. That's not smart -- I was totally stupid and immature. > My > success with the SAT's and ACT's was the way they asked questions, not > the questions themselves. She memorized things, and she memorized a > whole lot. > However, what she didn't memorize, she didn't know. I just thought > through the questions and gave the answer that seemed the best. I > didn't know the answers to most of the questions. I reasoned many > answers, I didn't "know" > the answers. > Exactly. Knowledge is not intelligence and you should never confuse the two. Sounds like the people who design your SATs and ACTS are smart enough to know this and are testing the right thing. ========Yes, we agree here. My natural ability may have been greater than my friend's, but she was using hers and I wasn't. She was assimilating, I was guessing. I was able to reason through the questions and you may be right -- if the tests are measuring intelligence -- the ability to comprehend and reason -- and test your knowledge as well, you might be right. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Wed Feb 15 21:06:27 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 15 Feb 2006 19:06:27 -0800 Subject: [AccessD] Parameter Request window Message-ID: <000301c632a5$fb244a50$6701a8c0@HPLaptop> I am working on a report. Suddenly when I go to preview the report it opens a parameter window and asks for a parameter. The caption in the parameter is just one of the tables in the query? Any one seen this before. Joe Hecht jmhecht at earthlink.net From bchacc at san.rr.com Wed Feb 15 23:15:39 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 15 Feb 2006 21:15:39 -0800 Subject: [AccessD] Parameter Request window In-Reply-To: <000301c632a5$fb244a50$6701a8c0@HPLaptop> References: <000301c632a5$fb244a50$6701a8c0@HPLaptop> Message-ID: <43F40A7B.6080208@san.rr.com> Many times. Usually I've misspelled something so it doesn't point to a legitimate field or an expression that doesn't evaluate correctly. Sometimes I've changed a table in a query and left one of the fields from the old table there. Lots of things. Unfortunately that parameter prompt doesn't give you much of a clue. Rocky Joe Hecht wrote: > I am working on a report. Suddenly when I go to preview the > report it opens a parameter window and asks for a > parameter. > > > > The caption in the parameter is just one of the tables in > the query? Any one seen this before. > > Joe Hecht > > jmhecht at earthlink.net > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From stuart at lexacorp.com.pg Wed Feb 15 23:23:05 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 16 Feb 2006 15:23:05 +1000 Subject: [AccessD] Parameter Request window In-Reply-To: <000301c632a5$fb244a50$6701a8c0@HPLaptop> Message-ID: <43F498D9.7955.DED1512@stuart.lexacorp.com.pg> On 15 Feb 2006 at 19:06, Joe Hecht wrote: > I am working on a report. Suddenly when I go to preview the > report it opens a parameter window and asks for a > parameter. > > > > The caption in the parameter is just one of the tables in > the query? Any one seen this before. > Try opening the query in design view and make sure that it still looks OK. The switch to data view. You may get a more useful error there. -- Stuart From pedro at plex.nl Thu Feb 16 09:33:37 2006 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 16 Feb 2006 09:33:37 (MET) Subject: [AccessD] weekdays Message-ID: <200602160833.k1G8Xbcw006651@mailhostC.plex.net> Hello Group, i now that there is an sql that can give me the days of the week fo a specific date, but i can't find it right now. Who can help me? i have: date 16-02-06 17-02-06 i need: date day 16-02-06 thursday 17-02-06 friday Pedro Janssen From Gustav at cactus.dk Thu Feb 16 03:11:03 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 16 Feb 2006 10:11:03 +0100 Subject: [AccessD] Parameter Request window Message-ID: Hi Joe Also, in design view, check your settings for grouping and sorting of the report. /gustav >>> stuart at lexacorp.com.pg 16-02-2006 06:23:05 >>> On 15 Feb 2006 at 19:06, Joe Hecht wrote: > I am working on a report. Suddenly when I go to preview the > report it opens a parameter window and asks for a > parameter. > > The caption in the parameter is just one of the tables in > the query? Any one seen this before. > Try opening the query in design view and make sure that it still looks OK. The switch to data view. You may get a more useful error there. -- Stuart From Gustav at cactus.dk Thu Feb 16 03:13:26 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 16 Feb 2006 10:13:26 +0100 Subject: [AccessD] weekdays Message-ID: Hi Pedro There is no native SQL for that but for ISO weekdays use Weekday([date], 2) /gustav >>> pedro at plex.nl 16-02-2006 09:33:37 >>> Hello Group, i now that there is an sql that can give me the days of the week fo a specific date, but i can't find it right now. Who can help me? i have: date 16-02-06 17-02-06 i need: date day 16-02-06 thursday 17-02-06 friday Pedro Janssen From hkotsch at arcor.de Thu Feb 16 03:28:45 2006 From: hkotsch at arcor.de (Helmut Kotsch) Date: Thu, 16 Feb 2006 10:28:45 +0100 Subject: [AccessD] weekdays In-Reply-To: <200602160833.k1G8Xbcw006651@mailhostC.plex.net> Message-ID: In the German version of Access it is Format([yourdate];"tttt") for the full day name and Format([yourdate];"ttt") for a 2-letter day name. In the English version of Access I think tttt should be replaced with dddd. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von pedro at plex.nl Gesendet: Donnerstag, 16. Februar 2006 09:34 An: accessd at databaseadvisors.com Betreff: [AccessD] weekdays Hello Group, i now that there is an sql that can give me the days of the week fo a specific date, but i can't find it right now. Who can help me? i have: date 16-02-06 17-02-06 i need: date day 16-02-06 thursday 17-02-06 friday Pedro Janssen -- 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 16 03:32:28 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 16 Feb 2006 10:32:28 +0100 Subject: [AccessD] weekdays Message-ID: Hi Pedro Oops, you wish the weekday to be spelled out? Format([date], "dddd", 2) will give you the localized name of the weekday. /gustav >>> Gustav at cactus.dk 16-02-2006 10:13:26 >>> Hi Pedro There is no native SQL for that but for ISO weekdays use Weekday([date], 2) /gustav >>> pedro at plex.nl 16-02-2006 09:33:37 >>> Hello Group, i now that there is an sql that can give me the days of the week fo a specific date, but i can't find it right now. Who can help me? i have: date 16-02-06 17-02-06 i need: date day 16-02-06 thursday 17-02-06 friday Pedro Janssen From darrend at nimble.com.au Thu Feb 16 05:20:09 2006 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 16 Feb 2006 22:20:09 +1100 Subject: [AccessD] Parameter Request window In-Reply-To: <000301c632a5$fb244a50$6701a8c0@HPLaptop> Message-ID: <20060216112018.NVFD16720.omta01sl.mx.bigpond.com@DENZILLAP> Hi Joe On first glance this is normally/usually a sign that one of the fields in the underlying query has gone, been renamed Or a table that has that field name is no longer part of the query etc Open the query and look for telltale things like Expr:Some Field name in one of the fields columns Darren ------------------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, 16 February 2006 2:06 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Parameter Request window I am working on a report. Suddenly when I go to preview the report it opens a parameter window and asks for a parameter. The caption in the parameter is just one of the tables in the query? Any one seen this before. Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From erbachs at gmail.com Thu Feb 16 08:45:24 2006 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 16 Feb 2006 08:45:24 -0600 Subject: [AccessD] OT: Quote of the day In-Reply-To: <013301c632a2$641f9540$647aa8c0@ColbyM6805> References: <001a01c63293$0278a480$95b3d6d1@SUSANONE> <013301c632a2$641f9540$647aa8c0@ColbyM6805> Message-ID: <39cb22f30602160645n79f90444oe736a6fb5b48855c@mail.gmail.com> John, ? knowledge without intelligence is dangerous. ? Nah! Knowledge without intelligence is human nature. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/15/06, John Colby wrote: > True intelligence is the reasonable application of knowledge. Intelligence > without knowledge is useless, knowledge without intelligence is dangerous. > > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Wednesday, February 15, 2006 7:51 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Quote of the day > > > > > Now, the point of that story is -- if, at the same time, that friend > > and I had both taken IQ tests -- she's have probably scored higher > > than > me. > > I doubt that very much. Based on my reading of the people on this list, > I reckon I could name several people here who, in their school days were " > in the top 20%" and "doing good if I handed in my homework and showed up > for class 4 days out of 5". They are the sort, who ace IQ tests if they can > be bothered to do them. > > The real smart ones are the one who work out early on just how much they > have to do to get by comfortably in school. > > ========I wasn't acing anything, and looking back, I don't feel so smart. I > had the opportunity to get a great education and I blew it off because I > could get decent grades with no effort. That's not smart -- I was totally > stupid and immature. > > > My > > success with the SAT's and ACT's was the way they asked questions, not > > the questions themselves. She memorized things, and she memorized a > > whole > lot. > > However, what she didn't memorize, she didn't know. I just thought > > through the questions and gave the answer that seemed the best. I > > didn't know the answers to most of the questions. I reasoned many > > answers, > I didn't "know" > > the answers. > > > Exactly. Knowledge is not intelligence and you should never confuse the two. > Sounds like the people who design your SATs and ACTS are smart enough to > know this and are testing the right thing. > > ========Yes, we agree here. My natural ability may have been greater than my > friend's, but she was using hers and I wasn't. She was assimilating, I was > guessing. I was able to reason through the questions and you may be right -- > if the tests are measuring intelligence -- the ability to comprehend and > reason -- and test your knowledge as well, you might be right. > > Susan H. > From jwcolby at ColbyConsulting.com Thu Feb 16 09:37:56 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Thu, 16 Feb 2006 10:37:56 -0500 Subject: [AccessD] OT: Quote of the day In-Reply-To: <39cb22f30602160645n79f90444oe736a6fb5b48855c@mail.gmail.com> Message-ID: <013f01c6330e$f640fa10$647aa8c0@ColbyM6805> LOL, yea.... And is there anything more dangerous? ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Thursday, February 16, 2006 9:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Quote of the day John, > knowledge without intelligence is dangerous. < Nah! Knowledge without intelligence is human nature. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/15/06, John Colby wrote: > True intelligence is the reasonable application of knowledge. > Intelligence without knowledge is useless, knowledge without intelligence is dangerous. > > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > Harkins > Sent: Wednesday, February 15, 2006 7:51 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Quote of the day > > > > > Now, the point of that story is -- if, at the same time, that friend > > and I had both taken IQ tests -- she's have probably scored higher > > than > me. > > I doubt that very much. Based on my reading of the people on this list, > I reckon I could name several people here who, in their school days were " > in the top 20%" and "doing good if I handed in my homework and showed > up for class 4 days out of 5". They are the sort, who ace IQ tests if > they can be bothered to do them. > > The real smart ones are the one who work out early on just how much > they have to do to get by comfortably in school. > > ========I wasn't acing anything, and looking back, I don't feel so > smart. I had the opportunity to get a great education and I blew it > off because I could get decent grades with no effort. That's not smart > -- I was totally stupid and immature. > > > My > > success with the SAT's and ACT's was the way they asked questions, > > not the questions themselves. She memorized things, and she > > memorized a whole > lot. > > However, what she didn't memorize, she didn't know. I just thought > > through the questions and gave the answer that seemed the best. I > > didn't know the answers to most of the questions. I reasoned many > > answers, > I didn't "know" > > the answers. > > > Exactly. Knowledge is not intelligence and you should never confuse the two. > Sounds like the people who design your SATs and ACTS are smart enough > to know this and are testing the right thing. > > ========Yes, we agree here. My natural ability may have been greater > than my friend's, but she was using hers and I wasn't. She was > assimilating, I was guessing. I was able to reason through the > questions and you may be right -- if the tests are measuring > intelligence -- the ability to comprehend and reason -- and test your knowledge as well, you might be right. > > Susan H. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimjih at comcast.net Thu Feb 16 10:00:46 2006 From: jimjih at comcast.net (jimjih at comcast.net) Date: Thu, 16 Feb 2006 16:00:46 +0000 Subject: [AccessD] OT: Quote of the day Message-ID: <021620061600.27664.43F4A1AE0003DC5400006C102200761064080706030706@comcast.net> Therefore: Human Nature = Dangerous. Jim -------------- Original message -------------- From: "John Colby" > LOL, yea.... > > And is there anything more dangerous? > > ;-) > > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, February 16, 2006 9:45 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Quote of the day > > John, > > > knowledge without intelligence is dangerous. < > > Nah! Knowledge without intelligence is human nature. > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > > On 2/15/06, John Colby wrote: > > True intelligence is the reasonable application of knowledge. > > Intelligence without knowledge is useless, knowledge without intelligence > is dangerous. > > > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > > Harkins > > Sent: Wednesday, February 15, 2006 7:51 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] OT: Quote of the day > > > > > > > > Now, the point of that story is -- if, at the same time, that friend > > > and I had both taken IQ tests -- she's have probably scored higher > > > than > > me. > > > > I doubt that very much. Based on my reading of the people on this list, > > I reckon I could name several people here who, in their school days were > " > > in the top 20%" and "doing good if I handed in my homework and showed > > up for class 4 days out of 5". They are the sort, who ace IQ tests if > > they can be bothered to do them. > > > > The real smart ones are the one who work out early on just how much > > they have to do to get by comfortably in school. > > > > ========I wasn't acing anything, and looking back, I don't feel so > > smart. I had the opportunity to get a great education and I blew it > > off because I could get decent grades with no effort. That's not smart > > -- I was totally stupid and immature. > > > > > My > > > success with the SAT's and ACT's was the way they asked questions, > > > not the questions themselves. She memorized things, and she > > > memorized a whole > > lot. > > > However, what she didn't memorize, she didn't know. I just thought > > > through the questions and gave the answer that seemed the best. I > > > didn't know the answers to most of the questions. I reasoned many > > > answers, > > I didn't "know" > > > the answers. > > > > > Exactly. Knowledge is not intelligence and you should never confuse the > two. > > Sounds like the people who design your SATs and ACTS are smart enough > > to know this and are testing the right thing. > > > > ========Yes, we agree here. My natural ability may have been greater > > than my friend's, but she was using hers and I wasn't. She was > > assimilating, I was guessing. I was able to reason through the > > questions and you may be right -- if the tests are measuring > > intelligence -- the ability to comprehend and reason -- and test your > knowledge as well, you might be right. > > > > 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 cfoust at infostatsystems.com Thu Feb 16 10:09:56 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 16 Feb 2006 08:09:56 -0800 Subject: [AccessD] OT: Bug / Feature Databases Message-ID: We use an in-house database. We've looked at the commercial products several times, but they didn't quite fit and we already had one we could modify so .... ;o} Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hadyn Morgan Sent: Wednesday, February 15, 2006 6:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Bug / Feature Databases Hi All Just wondering what people use to track bugs and feature requests for their applications. Do you use an inhouse database or a off the shelf package? If you use a OTS package, which one and why? Kind regards Hadyn -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.9/261 - Release Date: 15/02/2006 -- 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 16 10:12:21 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 16 Feb 2006 08:12:21 -0800 Subject: [AccessD] OT: Quote of the day Message-ID: Hmmn. Are we talking about bounders again?? ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jimjih at comcast.net Sent: Thursday, February 16, 2006 8:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Quote of the day Therefore: Human Nature = Dangerous. Jim -------------- Original message -------------- From: "John Colby" > LOL, yea.... > > And is there anything more dangerous? > > ;-) > > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, February 16, 2006 9:45 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Quote of the day > > John, > > > knowledge without intelligence is dangerous. < > > Nah! Knowledge without intelligence is human nature. > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > > On 2/15/06, John Colby wrote: > > True intelligence is the reasonable application of knowledge. > > Intelligence without knowledge is useless, knowledge without intelligence > is dangerous. > > > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > > Harkins > > Sent: Wednesday, February 15, 2006 7:51 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] OT: Quote of the day > > > > > > > > Now, the point of that story is -- if, at the same time, that > > > friend > > > and I had both taken IQ tests -- she's have probably scored higher > > > than > > me. > > > > I doubt that very much. Based on my reading of the people on this > > list, > > I reckon I could name several people here who, in their school days were > " > > in the top 20%" and "doing good if I handed in my homework and > > showed > > up for class 4 days out of 5". They are the sort, who ace IQ tests if > > they can be bothered to do them. > > > > The real smart ones are the one who work out early on just how much > > they have to do to get by comfortably in school. > > > > ========I wasn't acing anything, and looking back, I don't feel so > > smart. I had the opportunity to get a great education and I blew it > > off because I could get decent grades with no effort. That's not smart > > -- I was totally stupid and immature. > > > > > My > > > success with the SAT's and ACT's was the way they asked questions, > > > not the questions themselves. She memorized things, and she > > > memorized a whole > > lot. > > > However, what she didn't memorize, she didn't know. I just thought > > > through the questions and gave the answer that seemed the best. I > > > didn't know the answers to most of the questions. I reasoned many > > > answers, > > I didn't "know" > > > the answers. > > > > > Exactly. Knowledge is not intelligence and you should never confuse > > the > two. > > Sounds like the people who design your SATs and ACTS are smart > > enough > > to know this and are testing the right thing. > > > > ========Yes, we agree here. My natural ability may have been greater > > than my friend's, but she was using hers and I wasn't. She was > > assimilating, I was guessing. I was able to reason through the > > questions and you may be right -- if the tests are measuring > > intelligence -- the ability to comprehend and reason -- and test your > knowledge as well, you might be right. > > > > Susan H. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 16 10:17:21 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 16 Feb 2006 10:17:21 -0600 Subject: [AccessD] OT: Quote of the day Message-ID: <17724746D360394AA3BFE5B8D40A9C1BD765@main2.marlow.com> I believe that is the plot of many movies where computers are used to protect human life.... ;) Drew -----Original Message----- From: jimjih at comcast.net [mailto:jimjih at comcast.net] Sent: Thursday, February 16, 2006 10:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Quote of the day Therefore: Human Nature = Dangerous. Jim -------------- Original message -------------- From: "John Colby" > LOL, yea.... > > And is there anything more dangerous? > > ;-) > > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, February 16, 2006 9:45 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Quote of the day > > John, > > > knowledge without intelligence is dangerous. < > > Nah! Knowledge without intelligence is human nature. > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > > On 2/15/06, John Colby wrote: > > True intelligence is the reasonable application of knowledge. > > Intelligence without knowledge is useless, knowledge without intelligence > is dangerous. > > > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > > Harkins > > Sent: Wednesday, February 15, 2006 7:51 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] OT: Quote of the day > > > > > > > > Now, the point of that story is -- if, at the same time, that friend > > > and I had both taken IQ tests -- she's have probably scored higher > > > than > > me. > > > > I doubt that very much. Based on my reading of the people on this list, > > I reckon I could name several people here who, in their school days were > " > > in the top 20%" and "doing good if I handed in my homework and showed > > up for class 4 days out of 5". They are the sort, who ace IQ tests if > > they can be bothered to do them. > > > > The real smart ones are the one who work out early on just how much > > they have to do to get by comfortably in school. > > > > ========I wasn't acing anything, and looking back, I don't feel so > > smart. I had the opportunity to get a great education and I blew it > > off because I could get decent grades with no effort. That's not smart > > -- I was totally stupid and immature. > > > > > My > > > success with the SAT's and ACT's was the way they asked questions, > > > not the questions themselves. She memorized things, and she > > > memorized a whole > > lot. > > > However, what she didn't memorize, she didn't know. I just thought > > > through the questions and gave the answer that seemed the best. I > > > didn't know the answers to most of the questions. I reasoned many > > > answers, > > I didn't "know" > > > the answers. > > > > > Exactly. Knowledge is not intelligence and you should never confuse the > two. > > Sounds like the people who design your SATs and ACTS are smart enough > > to know this and are testing the right thing. > > > > ========Yes, we agree here. My natural ability may have been greater > > than my friend's, but she was using hers and I wasn't. She was > > assimilating, I was guessing. I was able to reason through the > > questions and you may be right -- if the tests are measuring > > intelligence -- the ability to comprehend and reason -- and test your > knowledge as well, you might be right. > > > > Susan H. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 16 11:06:32 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 16 Feb 2006 09:06:32 -0800 Subject: [AccessD] Parameter Request window (Solved) In-Reply-To: <20060216112018.NVFD16720.omta01sl.mx.bigpond.com@DENZILLAP> Message-ID: <001501c6331b$56b20a40$6701a8c0@HPLaptop> Something in the link between my main report and sub report phooey. Do not know why. I went through and deleted sets of fields at a time. That did not do it. Deleted sub report and it stopped complaining. Thanks to all. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 16, 2006 3:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Parameter Request window Hi Joe On first glance this is normally/usually a sign that one of the fields in the underlying query has gone, been renamed Or a table that has that field name is no longer part of the query etc Open the query and look for telltale things like Expr:Some Field name in one of the fields columns Darren ------------------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, 16 February 2006 2:06 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Parameter Request window I am working on a report. Suddenly when I go to preview the report it opens a parameter window and asks for a parameter. The caption in the parameter is just one of the tables in the query? Any one seen this before. Joe Hecht jmhecht 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 rl_stewart at highstream.net Thu Feb 16 12:34:46 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 16 Feb 2006 13:34:46 -0500 Subject: [AccessD] OT: Bug / Feature Databases Message-ID: <1140114886.43f4c5c610fd7@webmail.highstream.net> You might look at a product call OnTime. The single user version is free. From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hadyn Morgan Sent: Wednesday, February 15, 2006 6:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Bug / Feature Databases Hi All Just wondering what people use to track bugs and feature requests for their applications. Do you use an inhouse database or a off the shelf package? If you use a OTS package, which one and why? Kind regards Hadyn Robert L. Stewart The Dyson Group International Software for the Non-profit Enterprise Expanding your Sphere of Knowledge From John.Clark at niagaracounty.com Thu Feb 16 12:41:29 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 16 Feb 2006 13:41:29 -0500 Subject: [AccessD] Possible or No? SOLVED Message-ID: After keeping this in the back of my mind, for the last week, I think I've finally got this one figured out. I was actually getting ready to put up the white flag. For the first time, since joining this list...what has it been...five years ago now...the answer didn't magically appear in my Email. I was actually writing an Email to the user, requesting a policy change because, as I mentioned, they don't all do it, and it isn't anything mandated to be done. While typing, it dawned on me. You should have seen it...the clouds opened up and a beam of light shown down on my keyboard from above...and I swear I heard angels singing. An epiphany...I had a damn epiphany! As exhilarating as it is, to have finally beat this problem, the solution was so damn simple that I can't help feeling a bit a bit "duh" at the same time. My only excuse is that I am juggling many other things, and most of them un-program related. The solution was as simple as adding ",3" to the mid function. This made the line: strSQL = "SELECT nz(Max(Mid([tblIndictment]![IndictmentNumber],6,3)),0)+1 AS lngMaxID," & _ "Year(Now())" & _ "& '-' & [lngMaxID] AS lngNewID " & _ "FROM tblIndictment " & _ "WHERE (((Left([tblIndictment]![IndictmentNumber],4))=Right(Year(Now()),4)));" Now it only looks at the characters in slots 6, 7 and 8, and disregards anything further. This was so dang easy. I can't believe I didn't see it before. I've tested it and it actually works. I have to leave the field open for editing...I could have an enable button, but I don't know that it is necessary...and the user overrides the number. But, then, that same number will, as it should be, be the next one in line again. John W. Clark From John.Clark at niagaracounty.com Thu Feb 16 12:47:04 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 16 Feb 2006 13:47:04 -0500 Subject: [AccessD] Order By Message-ID: I ran into a slight problem today. I've gotten passed it, but I am still curious. I designed a form and tried putting into order by a control number. To do this I figured I had to add it to the "Order By" property of the form. However, this did not give me any results. What I ended up doing, in the essence of time, is put a SELECT statement in the Control Source of the form, ending in an Order By statement. Why wouldn't this work the first way? John Clark From pedro at plex.nl Thu Feb 16 13:22:05 2006 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 16 Feb 2006 20:22:05 +0100 Subject: [AccessD] weekdays References: Message-ID: <002201c6332e$45831ad0$4001a8c0@laptop> Helmut and Gustav, thanks for the help. It did the trick. Pedro ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, February 16, 2006 10:32 AM Subject: Re: [AccessD] weekdays > Hi Pedro > > Oops, you wish the weekday to be spelled out? > > Format([date], "dddd", 2) > > will give you the localized name of the weekday. > > /gustav > >>>> Gustav at cactus.dk 16-02-2006 10:13:26 >>> > Hi Pedro > > There is no native SQL for that but for ISO weekdays use > > Weekday([date], 2) > > /gustav > >>>> pedro at plex.nl 16-02-2006 09:33:37 >>> > Hello Group, > > i now that there is an sql that can give me the days of the week fo a > specific date, but i can't find it right now. > > Who can help me? > > i have: > date > 16-02-06 > 17-02-06 > > i need: > date day > 16-02-06 thursday > 17-02-06 friday > > Pedro Janssen > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Lambert.Heenan at aig.com Thu Feb 16 13:21:28 2006 From: Lambert.Heenan at aig.com (Heenan, Lambert) Date: Thu, 16 Feb 2006 14:21:28 -0500 Subject: [AccessD] Order By Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1D7E886D@xlivmbx21.aig.com> John, I think you'll find that you also have to set the OrderdByOn property to True before the OrderedBy property has any effect. Simplest thing would to do that in the OnLoad event... Me.OrderedByOn = True Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, February 16, 2006 1:47 PM To: accessd at databaseadvisors.com Subject: [AccessD] Order By I ran into a slight problem today. I've gotten passed it, but I am still curious. I designed a form and tried putting into order by a control number. To do this I figured I had to add it to the "Order By" property of the form. However, this did not give me any results. What I ended up doing, in the essence of time, is put a SELECT statement in the Control Source of the form, ending in an Order By statement. Why wouldn't this work the first way? John Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Feb 16 13:29:16 2006 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 16 Feb 2006 13:29:16 -0600 Subject: [AccessD] Order By In-Reply-To: <3208929.1140116058784.JavaMail.root@sniper19> Message-ID: <000001c6332f$46ae10d0$0200a8c0@danwaters> John, What I do if I want a form to be ordered is to use these two lines in the Open event: Me.OrderbyOn = True Me.Orderby = "FieldName" This lets you stay out of the recordsource field just to get things ordered. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, February 16, 2006 12:47 PM To: accessd at databaseadvisors.com Subject: [AccessD] Order By I ran into a slight problem today. I've gotten passed it, but I am still curious. I designed a form and tried putting into order by a control number. To do this I figured I had to add it to the "Order By" property of the form. However, this did not give me any results. What I ended up doing, in the essence of time, is put a SELECT statement in the Control Source of the form, ending in an Order By statement. Why wouldn't this work the first way? John Clark -- 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 16 13:58:21 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 16 Feb 2006 14:58:21 -0500 Subject: [AccessD] Order By Message-ID: I'm going to sound totally "duh" here, but I've never heard of OrderByOn. Is it only a code thing, or is it in the properties box? Well, I knew it would be simple. Thanks Lambert and Dan! >>> dwaters at usinternet.com 2/16/2006 2:29 PM >>> John, What I do if I want a form to be ordered is to use these two lines in the Open event: Me.OrderbyOn = True Me.Orderby = "FieldName" This lets you stay out of the recordsource field just to get things ordered. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, February 16, 2006 12:47 PM To: accessd at databaseadvisors.com Subject: [AccessD] Order By I ran into a slight problem today. I've gotten passed it, but I am still curious. I designed a form and tried putting into order by a control number. To do this I figured I had to add it to the "Order By" property of the form. However, this did not give me any results. What I ended up doing, in the essence of time, is put a SELECT statement in the Control Source of the form, ending in an Order By statement. Why wouldn't this work the first way? John Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Thu Feb 16 14:28:35 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 16 Feb 2006 14:28:35 -0600 Subject: [AccessD] Order By Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1D7E88D1@xlivmbx21.aig.com> Strictly code. Make you wonder why MS exposed the OrderedBy property but not the OrderedByOn one in the form's Property Sheet. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, February 16, 2006 2:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Order By I'm going to sound totally "duh" here, but I've never heard of OrderByOn. Is it only a code thing, or is it in the properties box? Well, I knew it would be simple. Thanks Lambert and Dan! >>> dwaters at usinternet.com 2/16/2006 2:29 PM >>> John, What I do if I want a form to be ordered is to use these two lines in the Open event: Me.OrderbyOn = True Me.Orderby = "FieldName" This lets you stay out of the recordsource field just to get things ordered. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, February 16, 2006 12:47 PM To: accessd at databaseadvisors.com Subject: [AccessD] Order By I ran into a slight problem today. I've gotten passed it, but I am still curious. I designed a form and tried putting into order by a control number. To do this I figured I had to add it to the "Order By" property of the form. However, this did not give me any results. What I ended up doing, in the essence of time, is put a SELECT statement in the Control Source of the form, ending in an Order By statement. Why wouldn't this work the first way? John Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Feb 16 14:52:16 2006 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 16 Feb 2006 14:52:16 -0600 Subject: [AccessD] Order By In-Reply-To: <15310148.1140120406594.JavaMail.root@sniper19> Message-ID: <000001c6333a$def7cf60$0200a8c0@danwaters> Yes - for Forms, this can only be set in code. For Reports, you can set it in the Report's property sheet. Take a look at Help for OrderbyOn. I would recommend setting this property prior to each time you want to set the Orderby value. I just did a test and it turns out that if you make a new form without a recordsource, the OrderbyOn property is False by default. So, for a form like this you'll need to set it to True in code. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, February 16, 2006 1:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Order By I'm going to sound totally "duh" here, but I've never heard of OrderByOn. Is it only a code thing, or is it in the properties box? Well, I knew it would be simple. Thanks Lambert and Dan! >>> dwaters at usinternet.com 2/16/2006 2:29 PM >>> John, What I do if I want a form to be ordered is to use these two lines in the Open event: Me.OrderbyOn = True Me.Orderby = "FieldName" This lets you stay out of the recordsource field just to get things ordered. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, February 16, 2006 12:47 PM To: accessd at databaseadvisors.com Subject: [AccessD] Order By I ran into a slight problem today. I've gotten passed it, but I am still curious. I designed a form and tried putting into order by a control number. To do this I figured I had to add it to the "Order By" property of the form. However, this did not give me any results. What I ended up doing, in the essence of time, is put a SELECT statement in the Control Source of the form, ending in an Order By statement. Why wouldn't this work the first way? John Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Feb 16 15:22:36 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Feb 2006 07:22:36 +1000 Subject: [AccessD] OT: Bug / Feature Databases In-Reply-To: <1140114886.43f4c5c610fd7@webmail.highstream.net> Message-ID: <43F579BC.14414.115B8A34@stuart.lexacorp.com.pg> On 16 Feb 2006 at 13:34, Robert L. Stewart wrote: > You might look at a product call OnTime. The single user version is free. > Looks good apart from the the fact that it needs SQL Server and .Net1.1 installed :-( -- Stuart From darsant at gmail.com Thu Feb 16 15:32:50 2006 From: darsant at gmail.com (Josh McFarlane) Date: Thu, 16 Feb 2006 15:32:50 -0600 Subject: [AccessD] OT: Bug / Feature Databases In-Reply-To: References: <001a01c63293$0278a480$95b3d6d1@SUSANONE> Message-ID: <53c8e05a0602161332y40d22561w3f065fbc1af74396@mail.gmail.com> On 2/15/06, Hadyn Morgan wrote: > Hi All > > Just wondering what people use to track bugs and feature requests for their > applications. Do you use an inhouse database or a off the shelf package? > If you use a OTS package, which one and why? We use FogBugz (www.fogbugz.com). Installation on W2K3 server took 15 minutes (90% was to install IIS). Very easy to use, and has tons of easy reports and filtering to make features / bugs, and client support easy. They have a 45 day free trial too! -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From darsant at gmail.com Thu Feb 16 15:33:54 2006 From: darsant at gmail.com (Josh McFarlane) Date: Thu, 16 Feb 2006 15:33:54 -0600 Subject: [AccessD] OT: Bug / Feature Databases In-Reply-To: <53c8e05a0602161332y40d22561w3f065fbc1af74396@mail.gmail.com> References: <001a01c63293$0278a480$95b3d6d1@SUSANONE> <53c8e05a0602161332y40d22561w3f065fbc1af74396@mail.gmail.com> Message-ID: <53c8e05a0602161333s1f9aa021i1c84def7a2fae060@mail.gmail.com> On 2/16/06, Josh McFarlane wrote: > We use FogBugz (www.fogbugz.com). > > Installation on W2K3 server took 15 minutes (90% was to install IIS). > Very easy to use, and has tons of easy reports and filtering to make > features / bugs, and client support easy. > > They have a 45 day free trial too! I forgot to mention back-end wise they're very flexible - It uses SQL Server, MySQL, or an Access database to store the information in. From jmhecht at earthlink.net Thu Feb 16 17:54:01 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 16 Feb 2006 15:54:01 -0800 Subject: [AccessD] Calendar control help please Message-ID: <002101c63354$43362850$6701a8c0@HPLaptop> 1. I want to make the value in calPhysExpStart = txtStartDate. I have not been able to do that with code target = source or source = target. How do I do that? 2. If I make this mdb an mde will the control carry over ok? Thanks Joe Hecht jmhecht at earthlink.net From darrend at nimble.com.au Thu Feb 16 18:23:33 2006 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 17 Feb 2006 11:23:33 +1100 Subject: [AccessD] Calendar control help please In-Reply-To: <002101c63354$43362850$6701a8c0@HPLaptop> Message-ID: <20060217002335.GALF16720.omta01sl.mx.bigpond.com@DENZILLAP> Hi Joe What's a calPhysExpStart Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? If it is the MS one then Assume the MSActiveX is called Me.calPhysExpStart Have code something like this Me.calPhysExpStart= Me.txtStartDate Demo sent off list Hope this helps Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar control help please 1. I want to make the value in calPhysExpStart = txtStartDate. I have not been able to do that with code target = source or source = target. How do I do that? 2. If I make this mdb an mde will the control carry over ok? Thanks Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 16 18:27:37 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 16 Feb 2006 16:27:37 -0800 Subject: [AccessD] Calendar control help please In-Reply-To: <20060217002335.GALF16720.omta01sl.mx.bigpond.com@DENZILLAP> Message-ID: <003301c63358$f4993de0$6701a8c0@HPLaptop> Microsoft Jobbie. I can barley roll code. Forget building an existing control. Thanks Darren Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 16, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Hi Joe What's a calPhysExpStart Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? If it is the MS one then Assume the MSActiveX is called Me.calPhysExpStart Have code something like this Me.calPhysExpStart= Me.txtStartDate Demo sent off list Hope this helps Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar control help please 1. I want to make the value in calPhysExpStart = txtStartDate. I have not been able to do that with code target = source or source = target. How do I do that? 2. If I make this mdb an mde will the control carry over ok? Thanks Joe Hecht jmhecht 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 darrend at nimble.com.au Thu Feb 16 18:31:50 2006 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 17 Feb 2006 11:31:50 +1100 Subject: [AccessD] Calendar control help please In-Reply-To: <003301c63358$f4993de0$6701a8c0@HPLaptop> Message-ID: <20060217003152.VTCW18661.omta02sl.mx.bigpond.com@DENZILLAP> I have a code driven one I have used for years - it's brilliant No ActiveX issues at all Dunno where I got it I have modified its look abit, you are most welcome to it Any me too's off list please See y'all Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 11:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Microsoft Jobbie. I can barley roll code. Forget building an existing control. Thanks Darren Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 16, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Hi Joe What's a calPhysExpStart Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? If it is the MS one then Assume the MSActiveX is called Me.calPhysExpStart Have code something like this Me.calPhysExpStart= Me.txtStartDate Demo sent off list Hope this helps Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar control help please 1. I want to make the value in calPhysExpStart = txtStartDate. I have not been able to do that with code target = source or source = target. How do I do that? 2. If I make this mdb an mde will the control carry over ok? Thanks Joe Hecht jmhecht 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 jmhecht at earthlink.net Thu Feb 16 22:10:19 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 16 Feb 2006 20:10:19 -0800 Subject: [AccessD] CANCEL WILL NOT CANCEL Message-ID: <008a01c63378$10fd0fb0$6701a8c0@HPLaptop> The following code is supposed to check that 1. The start date is not null 2. The end date is not null. If either is null I want a message box( that works) and when user clicks ok they go back to form. It is not working. Can any one see why? Thanks Private Sub cmdAccEndDate_Click() Dim lngRetval As Long Dim strStDocName As String Dim lngRetval1 As Long Dim lngRetval2 As Long Dim CANCEL As Boolean Me.txtAccEndDate = Me.calAccEndDate 'Sets end date If IsNull(Me.txtAccStartDate) Then 'Confirm Start Date is not null lngRetval1 = MsgBox( _ "There is no Start Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER START DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If IsNull(Me.txtAccEndDate) Then 'Confirm End Date is not null lngRetval1 = MsgBox( _ "There is no End Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER END DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If Me.txtAccStartDate > Me.txtAccEndDate Then lngRetval = MsgBox( _ "The start date must be the same as, or before the end date of the report." & vbCrLf & "" & vbCrLf & "Please review the selected dates and try your report again", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "INCORECT DATE INPUT") Select Case lngRetval Case vbOK End Select Else ' Dim stDocName As String strStDocName = "30_rptAccidentRegister" DoCmd.OpenReport strStDocName, acPreview DoCmd.RunCommand acCmdZoom100 Joe Hecht jmhecht at earthlink.net From darsant at gmail.com Thu Feb 16 22:16:40 2006 From: darsant at gmail.com (Josh McFarlane) Date: Thu, 16 Feb 2006 22:16:40 -0600 Subject: [AccessD] CANCEL WILL NOT CANCEL In-Reply-To: <008a01c63378$10fd0fb0$6701a8c0@HPLaptop> References: <008a01c63378$10fd0fb0$6701a8c0@HPLaptop> Message-ID: <53c8e05a0602162016q2afe20ej4cc5f8237f6a363c@mail.gmail.com> On 2/16/06, Joe Hecht wrote: > If either is null I want a message box( that works) and when > user clicks ok they go back to form. > > > > It is not working. Can any one see why? You're just defining a cancel variable and not using it for anything. If you want it to not display the report you'd need something like If CANCEL = FALSE End If -- Darsant Silverstring "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From martyconnelly at shaw.ca Thu Feb 16 23:08:12 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 16 Feb 2006 21:08:12 -0800 Subject: [AccessD] Calendar control help please References: <20060217003152.VTCW18661.omta02sl.mx.bigpond.com@DENZILLAP> Message-ID: <43F55A3C.2070302@shaw.ca> Stephan Lebans API only calendar one maybe? http://www.lebans.com/monthcalendar.htm Darren DICK wrote: >I have a code driven one I have used for years - it's brilliant >No ActiveX issues at all >Dunno where I got it >I have modified its look abit, you are most welcome to it >Any me too's off list please > >See y'all > > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 11:28 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Microsoft Jobbie. > >I can barley roll code. Forget building an existing control. > >Thanks Darren > >Joe Hecht >jmhecht at earthlink.net >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK >Sent: Thursday, February 16, 2006 4:24 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Hi Joe >What's a calPhysExpStart >Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? > >If it is the MS one then >Assume the MSActiveX is called Me.calPhysExpStart > >Have code something like this Me.calPhysExpStart= Me.txtStartDate > >Demo sent off list > >Hope this helps > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 10:54 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Calendar control help please > >1. I want to make the value in calPhysExpStart = >txtStartDate. I have not been able to do that with code target = source or >source = target. How do I do that? >2. If I make this mdb an mde will the control carry >over ok? > > > >Thanks > > > >Joe Hecht > >jmhecht 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 > > > -- Marty Connelly Victoria, B.C. Canada From pcs at azizaz.com Thu Feb 16 23:12:26 2006 From: pcs at azizaz.com (Borge Hansen) Date: Fri, 17 Feb 2006 15:12:26 +1000 Subject: [AccessD] CANCEL WILL NOT CANCEL References: <008a01c63378$10fd0fb0$6701a8c0@HPLaptop> Message-ID: <039401c63380$be468180$fa10a8c0@Albatross> Joe, Perhaps the following: The code is associated with a command button. A command button does not have a cancel event Put the code in a procedure that has a cancel event, for example Report_OnOpen and reference the form where the txt controls reside in your if test or since you are using the code on a form where you gather selection criteria parameters for the recordsource of some report, then instead of cancel : issue the message box warning return focus to the text control in question and do an "exit sub", something like: If IsNull(Me.txtAccStartDate) or len(Me.txtAccStartDate) = 0 Then 'Confirm Start Date is not null MsgBox( "There is no Start Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", vbCritical, "Input Validation") Me.txtAccStartDate.setfocus exit sub End If forget about the lngRetval1 Also: I handle the case of no data selected to report on like this: On the OnNoData event in the report: Private Sub Report_NoData(Cancel As Integer) On Error GoTo ErrorHere Cancel = True ErrorExit: DoCmd.SetWarnings True Exit Sub ErrorHere: MsgBox "Error in Report_NoData " & ": " & Err.Number & " " & Err.Description Resume ErrorExit End Sub This will generate a 2501 error So, on the command button code on the 'Report Parameter Form: where you are firing up the report, include the following in the error handler: ErrorHere: Select Case Err Case 2501 'you cancelled open report MsgBox "The current set of selection criteria result in no data to be reported on. Try to change the selection criteria and then run the report again!", vbInformation, "NO DATA TO REPORT ON" Resume ErrorExit Case Else MsgBox "Error in cmdSave_Click " & ": " & Err.Number & " " & Err.Description Resume ErrorExit End Select ....hope this helps borge gold coast, australia ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 17, 2006 2:10 PM Subject: [AccessD] CANCEL WILL NOT CANCEL > The following code is supposed to check that > > > > 1. The start date is not null > 2. The end date is not null. > > > > If either is null I want a message box( that works) and when > user clicks ok they go back to form. > > > > It is not working. Can any one see why? > > > > Thanks > > > > Private Sub cmdAccEndDate_Click() > > Dim lngRetval As Long > > Dim strStDocName As String > > Dim lngRetval1 As Long > > Dim lngRetval2 As Long > > Dim CANCEL As Boolean > > > > > > Me.txtAccEndDate = Me.calAccEndDate 'Sets end date > > > > If IsNull(Me.txtAccStartDate) Then 'Confirm Start Date > is not null > > lngRetval1 = MsgBox( _ > > "There is no Start Date Entered." & vbCrLf & "" > & vbCrLf & "Please select a Start Date", _ > > vbOKOnly + vbCritical + vbDefaultButton1, _ > > "PLEASE ENTER START DATE") > > > > Select Case lngRetval1 > > Case vbOK > > CANCEL = True > > > > End Select > > End If > > > > If IsNull(Me.txtAccEndDate) Then 'Confirm End Date is > not null > > > > lngRetval1 = MsgBox( _ > > "There is no End Date Entered." & vbCrLf & "" & > vbCrLf & "Please select a Start Date", _ > > vbOKOnly + vbCritical + vbDefaultButton1, _ > > "PLEASE ENTER END DATE") > > > > Select Case lngRetval1 > > Case vbOK > > CANCEL = True > > End Select > > End If > > > > If Me.txtAccStartDate > Me.txtAccEndDate Then > > lngRetval = MsgBox( _ > > "The start date must be the same as, or before the > end date of the report." & vbCrLf & "" & vbCrLf & "Please > review the selected dates and try your report again", _ > > vbOKOnly + vbCritical + vbDefaultButton1, _ > > "INCORECT DATE INPUT") > > > > Select Case lngRetval > > Case vbOK > > End Select > > Else > > ' Dim stDocName As String > > > > strStDocName = "30_rptAccidentRegister" > > DoCmd.OpenReport strStDocName, acPreview > > DoCmd.RunCommand acCmdZoom100 > > > > > > Joe Hecht > > jmhecht at earthlink.net From darrend at nimble.com.au Thu Feb 16 23:36:21 2006 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 17 Feb 2006 16:36:21 +1100 Subject: [AccessD] Calendar control help please In-Reply-To: <43F55A3C.2070302@shaw.ca> Message-ID: <20060217053623.MHGC18661.omta02sl.mx.bigpond.com@DENZILLAP> Hi Marty I have seen and played with that one But no - it's not that one The one I have is text boxes and labels - all arranged on a form I think maybe someone on this list made it Maybe Arthur F or William H See ya DD Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, 17 February 2006 4:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Calendar control help please Stephan Lebans API only calendar one maybe? http://www.lebans.com/monthcalendar.htm Darren DICK wrote: >I have a code driven one I have used for years - it's brilliant No >ActiveX issues at all Dunno where I got it I have modified its look >abit, you are most welcome to it Any me too's off list please > >See y'all > > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 11:28 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Microsoft Jobbie. > >I can barley roll code. Forget building an existing control. > >Thanks Darren > >Joe Hecht >jmhecht at earthlink.net >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK >Sent: Thursday, February 16, 2006 4:24 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Hi Joe >What's a calPhysExpStart >Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? > >If it is the MS one then >Assume the MSActiveX is called Me.calPhysExpStart > >Have code something like this Me.calPhysExpStart= Me.txtStartDate > >Demo sent off list > >Hope this helps > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 10:54 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Calendar control help please > >1. I want to make the value in calPhysExpStart = >txtStartDate. I have not been able to do that with code target = source >or source = target. How do I do that? >2. If I make this mdb an mde will the control carry >over ok? > > > >Thanks > > > >Joe Hecht > >jmhecht 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 > > > -- 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 DWUTKA at marlow.com Fri Feb 17 09:09:16 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 17 Feb 2006 09:09:16 -0600 Subject: [AccessD] Calendar control help please Message-ID: <17724746D360394AA3BFE5B8D40A9C1BD76C@main2.marlow.com> Is it my MiniCalendar? Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Thursday, February 16, 2006 6:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please I have a code driven one I have used for years - it's brilliant No ActiveX issues at all Dunno where I got it I have modified its look abit, you are most welcome to it Any me too's off list please See y'all Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 11:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Microsoft Jobbie. I can barley roll code. Forget building an existing control. Thanks Darren Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 16, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Hi Joe What's a calPhysExpStart Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? If it is the MS one then Assume the MSActiveX is called Me.calPhysExpStart Have code something like this Me.calPhysExpStart= Me.txtStartDate Demo sent off list Hope this helps Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar control help please 1. I want to make the value in calPhysExpStart = txtStartDate. I have not been able to do that with code target = source or source = target. How do I do that? 2. If I make this mdb an mde will the control carry over ok? Thanks Joe Hecht jmhecht 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 Lambert.Heenan at AIG.com Fri Feb 17 09:24:34 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 17 Feb 2006 10:24:34 -0500 Subject: [AccessD] Calendar control help please Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1D7E8A8D@xlivmbx21.aig.com> You'll find an all access, no ActiveX controls, form on Allen Brown's website here... http://allenbrowne.com/ser-51.html Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Friday, February 17, 2006 12:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Hi Marty I have seen and played with that one But no - it's not that one The one I have is text boxes and labels - all arranged on a form I think maybe someone on this list made it Maybe Arthur F or William H See ya DD Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, 17 February 2006 4:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Calendar control help please Stephan Lebans API only calendar one maybe? http://www.lebans.com/monthcalendar.htm Darren DICK wrote: >I have a code driven one I have used for years - it's brilliant No >ActiveX issues at all Dunno where I got it I have modified its look >abit, you are most welcome to it Any me too's off list please > >See y'all > > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 11:28 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Microsoft Jobbie. > >I can barley roll code. Forget building an existing control. > >Thanks Darren > >Joe Hecht >jmhecht at earthlink.net >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK >Sent: Thursday, February 16, 2006 4:24 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Hi Joe >What's a calPhysExpStart >Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX >list? > >If it is the MS one then >Assume the MSActiveX is called Me.calPhysExpStart > >Have code something like this Me.calPhysExpStart= Me.txtStartDate > >Demo sent off list > >Hope this helps > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 10:54 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Calendar control help please > >1. I want to make the value in calPhysExpStart = >txtStartDate. I have not been able to do that with code target = source >or source = target. How do I do that? >2. If I make this mdb an mde will the control carry >over ok? > > > >Thanks > > > >Joe Hecht > >jmhecht 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 > > > -- 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 markamatte at hotmail.com Fri Feb 17 09:36:26 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 17 Feb 2006 15:36:26 +0000 Subject: [AccessD] Calendar control help please Message-ID: Drew, Speaking of your MiniCalendar...I've had a copy for years...and looked at it a number of times for direction. The funny part...until you just mentioned it, I forgot there was even a calendar part of the db (yes, even with the obvious name)...I actually had to open it and look for the calendar...I was so impressed with the video clip usage and the hiding of the window, I overlooked the entire purpose of the db. Anyway...since I was laughing at myself I thought I'd share. Have a GREAT Weekend Everyone! Mark A. Matte >From: DWUTKA at marlow.com >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Calendar control help please >Date: Fri, 17 Feb 2006 09:09:16 -0600 > >Is it my MiniCalendar? > >Drew > >-----Original Message----- >From: Darren DICK [mailto:darrend at nimble.com.au] >Sent: Thursday, February 16, 2006 6:32 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > > >I have a code driven one I have used for years - it's brilliant >No ActiveX issues at all >Dunno where I got it >I have modified its look abit, you are most welcome to it >Any me too's off list please > >See y'all > > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 11:28 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Microsoft Jobbie. > >I can barley roll code. Forget building an existing control. > >Thanks Darren > >Joe Hecht >jmhecht at earthlink.net >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK >Sent: Thursday, February 16, 2006 4:24 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Hi Joe >What's a calPhysExpStart >Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX >list? > >If it is the MS one then >Assume the MSActiveX is called Me.calPhysExpStart > >Have code something like this Me.calPhysExpStart= Me.txtStartDate > >Demo sent off list > >Hope this helps > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 10:54 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Calendar control help please > >1. I want to make the value in calPhysExpStart = >txtStartDate. I have not been able to do that with code target = source or >source = target. How do I do that? >2. If I make this mdb an mde will the control carry >over ok? > > > >Thanks > > > >Joe Hecht > >jmhecht 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 >-- >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 17 10:01:18 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 17 Feb 2006 08:01:18 -0800 Subject: [AccessD] CANCEL WILL NOT CANCEL Message-ID: Joe, Have you stepped through this code? The first thing to do is check and see what values are in txtAccEndDate and txtAccStartDate. You are using IsNull but they could also be a zero length string or zero (midnight). I'm not sure what you intend to do with the CANCEL variable, since you populate it, but you don't do anything with it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 16, 2006 8:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CANCEL WILL NOT CANCEL The following code is supposed to check that 1. The start date is not null 2. The end date is not null. If either is null I want a message box( that works) and when user clicks ok they go back to form. It is not working. Can any one see why? Thanks Private Sub cmdAccEndDate_Click() Dim lngRetval As Long Dim strStDocName As String Dim lngRetval1 As Long Dim lngRetval2 As Long Dim CANCEL As Boolean Me.txtAccEndDate = Me.calAccEndDate 'Sets end date If IsNull(Me.txtAccStartDate) Then 'Confirm Start Date is not null lngRetval1 = MsgBox( _ "There is no Start Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER START DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If IsNull(Me.txtAccEndDate) Then 'Confirm End Date is not null lngRetval1 = MsgBox( _ "There is no End Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER END DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If Me.txtAccStartDate > Me.txtAccEndDate Then lngRetval = MsgBox( _ "The start date must be the same as, or before the end date of the report." & vbCrLf & "" & vbCrLf & "Please review the selected dates and try your report again", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "INCORECT DATE INPUT") Select Case lngRetval Case vbOK End Select Else ' Dim stDocName As String strStDocName = "30_rptAccidentRegister" DoCmd.OpenReport strStDocName, acPreview DoCmd.RunCommand acCmdZoom100 Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Fri Feb 17 17:37:12 2006 From: darrend at nimble.com.au (Darren DICK) Date: Sat, 18 Feb 2006 10:37:12 +1100 Subject: [AccessD] Calendar control help please In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1BD76C@main2.marlow.com> Message-ID: <20060217233715.JEAP19070.omta01ps.mx.bigpond.com@DENZILLAP> Hi Drew no it's not your one either I can't remember where I got it I feel awful now - I can't credit the original author So to whomever they are - many thanks Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Saturday, 18 February 2006 2:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Calendar control help please Is it my MiniCalendar? Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Thursday, February 16, 2006 6:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please I have a code driven one I have used for years - it's brilliant No ActiveX issues at all Dunno where I got it I have modified its look abit, you are most welcome to it Any me too's off list please See y'all Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 11:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Microsoft Jobbie. I can barley roll code. Forget building an existing control. Thanks Darren Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 16, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Hi Joe What's a calPhysExpStart Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? If it is the MS one then Assume the MSActiveX is called Me.calPhysExpStart Have code something like this Me.calPhysExpStart= Me.txtStartDate Demo sent off list Hope this helps Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar control help please 1. I want to make the value in calPhysExpStart = txtStartDate. I have not been able to do that with code target = source or source = target. How do I do that? 2. If I make this mdb an mde will the control carry over ok? Thanks Joe Hecht jmhecht 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Fri Feb 17 17:38:02 2006 From: darrend at nimble.com.au (Darren DICK) Date: Sat, 18 Feb 2006 10:38:02 +1100 Subject: [AccessD] CANCEL WILL NOT CANCEL In-Reply-To: <008a01c63378$10fd0fb0$6701a8c0@HPLaptop> Message-ID: <20060217233805.WLVB14751.omta05ps.mx.bigpond.com@DENZILLAP> Hi Joe Have a look at the last email I sent off list It has all that sort of stuff in it Seeya Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 3:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CANCEL WILL NOT CANCEL The following code is supposed to check that 1. The start date is not null 2. The end date is not null. If either is null I want a message box( that works) and when user clicks ok they go back to form. It is not working. Can any one see why? Thanks Private Sub cmdAccEndDate_Click() Dim lngRetval As Long Dim strStDocName As String Dim lngRetval1 As Long Dim lngRetval2 As Long Dim CANCEL As Boolean Me.txtAccEndDate = Me.calAccEndDate 'Sets end date If IsNull(Me.txtAccStartDate) Then 'Confirm Start Date is not null lngRetval1 = MsgBox( _ "There is no Start Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER START DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If IsNull(Me.txtAccEndDate) Then 'Confirm End Date is not null lngRetval1 = MsgBox( _ "There is no End Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER END DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If Me.txtAccStartDate > Me.txtAccEndDate Then lngRetval = MsgBox( _ "The start date must be the same as, or before the end date of the report." & vbCrLf & "" & vbCrLf & "Please review the selected dates and try your report again", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "INCORECT DATE INPUT") Select Case lngRetval Case vbOK End Select Else ' Dim stDocName As String strStDocName = "30_rptAccidentRegister" DoCmd.OpenReport strStDocName, acPreview DoCmd.RunCommand acCmdZoom100 Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Fri Feb 17 19:51:49 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Fri, 17 Feb 2006 17:51:49 -0800 Subject: [AccessD] CANCEL WILL NOT CANCEL In-Reply-To: Message-ID: <002301c6342d$e2f4bb20$6601a8c0@HPLaptop> Charlotte, I will check what you suggested. The problem is, it is going to the report. Not back to the form which is the desired behavior. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 17, 2006 8:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CANCEL WILL NOT CANCEL Joe, Have you stepped through this code? The first thing to do is check and see what values are in txtAccEndDate and txtAccStartDate. You are using IsNull but they could also be a zero length string or zero (midnight). I'm not sure what you intend to do with the CANCEL variable, since you populate it, but you don't do anything with it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 16, 2006 8:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CANCEL WILL NOT CANCEL The following code is supposed to check that 1. The start date is not null 2. The end date is not null. If either is null I want a message box( that works) and when user clicks ok they go back to form. It is not working. Can any one see why? Thanks Private Sub cmdAccEndDate_Click() Dim lngRetval As Long Dim strStDocName As String Dim lngRetval1 As Long Dim lngRetval2 As Long Dim CANCEL As Boolean Me.txtAccEndDate = Me.calAccEndDate 'Sets end date If IsNull(Me.txtAccStartDate) Then 'Confirm Start Date is not null lngRetval1 = MsgBox( _ "There is no Start Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER START DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If IsNull(Me.txtAccEndDate) Then 'Confirm End Date is not null lngRetval1 = MsgBox( _ "There is no End Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER END DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If Me.txtAccStartDate > Me.txtAccEndDate Then lngRetval = MsgBox( _ "The start date must be the same as, or before the end date of the report." & vbCrLf & "" & vbCrLf & "Please review the selected dates and try your report again", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "INCORECT DATE INPUT") Select Case lngRetval Case vbOK End Select Else ' Dim stDocName As String strStDocName = "30_rptAccidentRegister" DoCmd.OpenReport strStDocName, acPreview DoCmd.RunCommand acCmdZoom100 Joe Hecht jmhecht 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 darsant at gmail.com Sat Feb 18 11:42:37 2006 From: darsant at gmail.com (Josh McFarlane) Date: Sat, 18 Feb 2006 11:42:37 -0600 Subject: [AccessD] CANCEL WILL NOT CANCEL In-Reply-To: <002301c6342d$e2f4bb20$6601a8c0@HPLaptop> References: <002301c6342d$e2f4bb20$6601a8c0@HPLaptop> Message-ID: <53c8e05a0602180942ja067fa9nf3cacca762a15f65@mail.gmail.com> On 2/17/06, Joe Hecht wrote: > Charlotte, > > I will check what you suggested. The problem is, it is going > to the report. Not back to the form which is the desired > behavior. Click Event Handlers don't have a Cancel parameter like Close event handlers do. If you want to implement a cancel mechanism, you have to do it yourself. One way you can do this is by wrapping the report functions in an If statement that checks CANCEL like I previously suggested. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From artful at rogers.com Sat Feb 18 13:20:30 2006 From: artful at rogers.com (Arthur Fuller) Date: Sat, 18 Feb 2006 14:20:30 -0500 Subject: [AccessD] Plant an Excel Worksheet on a form? In-Reply-To: <53c8e05a0602180942ja067fa9nf3cacca762a15f65@mail.gmail.com> Message-ID: <007f01c634c0$61d37110$8e01a8c0@rock> Is it possible to plonk an Excel worksheet directly onto an Access form? Or should I be content with invoking Excel and passing the filename to it? TIA, Arthur From shamil at users.mns.ru Sat Feb 18 13:59:01 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 18 Feb 2006 22:59:01 +0300 Subject: [AccessD] Plant an Excel Worksheet on a form? References: <007f01c634c0$61d37110$8e01a8c0@rock> Message-ID: <001601c634c5$d22e5010$6401a8c0@Nant> Arthur, You can use e.g. Unbound Object Frame - see online help for more details like this sample code: Sub Command1_Click OLE1.Class = "Excel.Sheet" ' Set class name. ' Specify type of object. OLE1.OLETypeAllowed = acOLELinked ' Specify source file. OLE1.SourceDoc = "C:\Excel\Oletext.xls" ' Specify data to create link to. OLE1.SourceItem = "R1C1:R5C5" ' Create linked object. OLE1.Action = acOLECreateLink ' Adjust control size. OLE1.SizeMode = acOLESizeZoom End Sub Shamil ----- Original Message ----- From: "Arthur Fuller" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 18, 2006 10:20 PM Subject: [AccessD] Plant an Excel Worksheet on a form? > Is it possible to plonk an Excel worksheet directly onto an Access form? > Or > should I be content with invoking Excel and passing the filename to it? > TIA, > Arthur > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From shamil at users.mns.ru Sun Feb 19 07:24:16 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 19 Feb 2006 16:24:16 +0300 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: <011b01c63559$405128e0$6401a8c0@Nant> http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil From paul.baumann at rtctech.com Sun Feb 19 16:59:43 2006 From: paul.baumann at rtctech.com (Paul Baumann) Date: Sun, 19 Feb 2006 16:59:43 -0600 Subject: [AccessD] Calendar control help please In-Reply-To: <20060217233715.JEAP19070.omta01ps.mx.bigpond.com@DENZILLAP> Message-ID: <20060219225943.B2F2E44FB34@relay3.r3.iad.emailsrvr.com> Darren, I would appreciate a copy of that calendar control if you don't mind. Paul Paul O. Baumann Tel. 262-925-1300 Fax 262-925-1299 Email: paulb at rtctech.com -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Friday, February 17, 2006 5:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Hi Drew no it's not your one either I can't remember where I got it I feel awful now - I can't credit the original author So to whomever they are - many thanks Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Saturday, 18 February 2006 2:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Calendar control help please Is it my MiniCalendar? Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Thursday, February 16, 2006 6:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please I have a code driven one I have used for years - it's brilliant No ActiveX issues at all Dunno where I got it I have modified its look abit, you are most welcome to it Any me too's off list please See y'all Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 11:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Microsoft Jobbie. I can barley roll code. Forget building an existing control. Thanks Darren Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 16, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Hi Joe What's a calPhysExpStart Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? If it is the MS one then Assume the MSActiveX is called Me.calPhysExpStart Have code something like this Me.calPhysExpStart= Me.txtStartDate Demo sent off list Hope this helps Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar control help please 1. I want to make the value in calPhysExpStart = txtStartDate. I have not been able to do that with code target = source or source = target. How do I do that? 2. If I make this mdb an mde will the control carry over ok? Thanks Joe Hecht jmhecht 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Mon Feb 20 06:45:19 2006 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Mon, 20 Feb 2006 12:45:19 -0000 Subject: [AccessD] Nested query Message-ID: <7303A459C921B5499AF732CCEEAD2B7F3E6BC8@craws161660.int.rdel.co.uk> Good day! I'm having problems "nesting" a query within another query. My (simplified) scenario is as follows: I have a table (tblClubs) that has three fields: fldIDClubs, fldClubCode, and fldClubName. fldIDClubs is an AutoNumbered field, the other two are text. In my table I currently have the following four records: | fldIDClubs | fldClubCode | fldClubName | |------------|-------------|-------------| | 1 | WAL | Walton | | 2 | WAL | Still Walton| | 3 | WEY | Weybridge | | 4 | OXU | Oxford Uni. | What I want to do, is to return the records with the highest IDClub number per ClubCode ie: | fldIDClubs | fldClubCode | fldClubName | |------------|-------------|-------------| | 2 | WAL | Still Walton| | 3 | WEY | Weybridge | | 4 | OXU | Oxford Uni. | I can do this in two steps, by creating a query that selects MAX IDClubs and GROUP BYs ClubCode (SQL below) SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY tblClubs.fldClubCode; And then using that query in another query with a LEFT JOIN on the original table (SQL below) SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName FROM qryLatestClubRecs LEFT JOIN tblClubs ON qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; But, I need to do this all in one query. I'm using Access as a tool to develop SQL to be used with mySQL in a PHP web page. Any suggestions gratefully received. TIA! Chris Foote From djkr at msn.com Mon Feb 20 07:19:07 2006 From: djkr at msn.com (DJK(John) Robinson) Date: Mon, 20 Feb 2006 13:19:07 -0000 Subject: [AccessD] Nested query In-Reply-To: <7303A459C921B5499AF732CCEEAD2B7F3E6BC8@craws161660.int.rdel.co.uk> Message-ID: Hi Chris A rare occasion that I'm up to date with AccessD reading - displacement activity for evil tax calculations! Anyway, how about: SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY tblClubs.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON LatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; HTH John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, Chris Sent: 20 February 2006 12:45 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Nested query Good day! I'm having problems "nesting" a query within another query. My (simplified) scenario is as follows: I have a table (tblClubs) that has three fields: fldIDClubs, fldClubCode, and fldClubName. fldIDClubs is an AutoNumbered field, the other two are text. In my table I currently have the following four records: | fldIDClubs | fldClubCode | fldClubName | |------------|-------------|-------------| | 1 | WAL | Walton | | 2 | WAL | Still Walton| | 3 | WEY | Weybridge | | 4 | OXU | Oxford Uni. | What I want to do, is to return the records with the highest IDClub number per ClubCode ie: | fldIDClubs | fldClubCode | fldClubName | |------------|-------------|-------------| | 2 | WAL | Still Walton| | 3 | WEY | Weybridge | | 4 | OXU | Oxford Uni. | I can do this in two steps, by creating a query that selects MAX IDClubs and GROUP BYs ClubCode (SQL below) SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY tblClubs.fldClubCode; And then using that query in another query with a LEFT JOIN on the original table (SQL below) SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName FROM qryLatestClubRecs LEFT JOIN tblClubs ON qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; But, I need to do this all in one query. I'm using Access as a tool to develop SQL to be used with mySQL in a PHP web page. Any suggestions gratefully received. TIA! Chris Foote -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Mon Feb 20 07:40:14 2006 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Mon, 20 Feb 2006 13:40:14 -0000 Subject: [AccessD] Nested query Message-ID: <7303A459C921B5499AF732CCEEAD2B7F3E6BC9@craws161660.int.rdel.co.uk> Many thanks John! I'll give that a go. Regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) > Robinson > Sent: Monday, February 20, 2006 1:19 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Nested query > > > Hi Chris > > A rare occasion that I'm up to date with AccessD reading - > displacement > activity for evil tax calculations! > > Anyway, how about: > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] > FROM tblClubs > GROUP BY tblClubs.fldClubCode) AS LatestClubRecs > LEFT JOIN tblClubs ON LatestClubRecs.[Highest ID] = > tblClubs.fldIDClubs; > > HTH > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Foote, Chris > Sent: 20 February 2006 12:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Nested query > > > Good day! > > I'm having problems "nesting" a query within another query. > > My (simplified) scenario is as follows: > > I have a table (tblClubs) that has three fields: fldIDClubs, > fldClubCode, > and fldClubName. > > fldIDClubs is an AutoNumbered field, the other two are text. > > In my table I currently have the following four records: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 1 | WAL | Walton | > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > > What I want to do, is to return the records with the highest > IDClub number > per ClubCode ie: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > I can do this in two steps, by creating a query that selects > MAX IDClubs and > GROUP BYs ClubCode (SQL below) > > > SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] > FROM tblClubs > GROUP BY tblClubs.fldClubCode; > > > And then using that query in another query with a LEFT JOIN > on the original > table (SQL below) > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, > tblClubs.fldClubName FROM > qryLatestClubRecs LEFT JOIN tblClubs ON > qryLatestClubRecs.[Highest ID] = > tblClubs.fldIDClubs; > > But, I need to do this all in one query. I'm using Access as a tool to > develop SQL to be used with mySQL in a PHP web page. > > Any suggestions gratefully received. > > TIA! > > Chris Foote From spikee at oatlandspark.org.uk Mon Feb 20 14:15:40 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Mon, 20 Feb 2006 20:15:40 -0000 Subject: [AccessD] Nested query In-Reply-To: <7303A459C921B5499AF732CCEEAD2B7F3E6BC9@craws161660.int.rdel.co.uk> Message-ID: <200602202015.k1KKFsC16991@databaseadvisors.com> Hi John! I could not get your suggestion to work in A97, but in A2003 (with a minor change) it works as good as gold. What I ended up with is: SELECT tblClubs.fldIDClub, tblClubs.fldClubCode, tblClubs.fldClubShort FROM (SELECT Max(tblClubs1.fldIDClub) AS [Highest ID] FROM tblClubs tblClubs1 GROUP BY tblClubs1.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON LatestClubRecs.[Highest ID] = tblClubs.fldIDClub; Notice that I aliased "tblClubs" as "tblClubs1" in the second "FROM". Without this Access complained about the same table being referred to twice. Thanks again for your help John! Best regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) > Robinson > Sent: Monday, February 20, 2006 1:19 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Nested query > > > Hi Chris > > A rare occasion that I'm up to date with AccessD reading - > displacement activity for evil tax calculations! > > Anyway, how about: > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs > GROUP BY tblClubs.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON > LatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > HTH > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, > Chris > Sent: 20 February 2006 12:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Nested query > > > Good day! > > I'm having problems "nesting" a query within another query. > > My (simplified) scenario is as follows: > > I have a table (tblClubs) that has three fields: fldIDClubs, > fldClubCode, and fldClubName. > > fldIDClubs is an AutoNumbered field, the other two are text. > > In my table I currently have the following four records: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 1 | WAL | Walton | > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > > What I want to do, is to return the records with the highest IDClub > number per ClubCode ie: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > I can do this in two steps, by creating a query that selects MAX > IDClubs and GROUP BYs ClubCode (SQL below) > > > SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY > tblClubs.fldClubCode; > > And then using that query in another query with a LEFT JOIN on the > original table (SQL below) > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM qryLatestClubRecs LEFT JOIN tblClubs ON > qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > But, I need to do this all in one query. I'm using Access as a tool to > develop SQL to be used with mySQL in a PHP web page. > > Any suggestions gratefully received. > > TIA! > > Chris Foote -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djkr at msn.com Mon Feb 20 14:39:05 2006 From: djkr at msn.com (DJK(John) Robinson) Date: Mon, 20 Feb 2006 20:39:05 -0000 Subject: [AccessD] Nested query In-Reply-To: <200602202015.k1KKFsC16991@databaseadvisors.com> Message-ID: That's interesting, version-wise. It was OK in XP (2002). J -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote (Spike) Sent: 20 February 2006 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query Hi John! I could not get your suggestion to work in A97, but in A2003 (with a minor change) it works as good as gold. What I ended up with is: SELECT tblClubs.fldIDClub, tblClubs.fldClubCode, tblClubs.fldClubShort FROM (SELECT Max(tblClubs1.fldIDClub) AS [Highest ID] FROM tblClubs tblClubs1 GROUP BY tblClubs1.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON LatestClubRecs.[Highest ID] = tblClubs.fldIDClub; Notice that I aliased "tblClubs" as "tblClubs1" in the second "FROM". Without this Access complained about the same table being referred to twice. Thanks again for your help John! Best regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) > Robinson > Sent: Monday, February 20, 2006 1:19 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Nested query > > > Hi Chris > > A rare occasion that I'm up to date with AccessD reading - > displacement activity for evil tax calculations! > > Anyway, how about: > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs > GROUP BY tblClubs.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON > LatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > HTH > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, > Chris > Sent: 20 February 2006 12:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Nested query > > > Good day! > > I'm having problems "nesting" a query within another query. > > My (simplified) scenario is as follows: > > I have a table (tblClubs) that has three fields: fldIDClubs, > fldClubCode, and fldClubName. > > fldIDClubs is an AutoNumbered field, the other two are text. > > In my table I currently have the following four records: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 1 | WAL | Walton | > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > > What I want to do, is to return the records with the highest IDClub > number per ClubCode ie: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > I can do this in two steps, by creating a query that selects MAX > IDClubs and GROUP BYs ClubCode (SQL below) > > > SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY > tblClubs.fldClubCode; > > And then using that query in another query with a LEFT JOIN on the > original table (SQL below) > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM qryLatestClubRecs LEFT JOIN tblClubs ON > qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > But, I need to do this all in one query. I'm using Access as a tool to > develop SQL to be used with mySQL in a PHP web page. > > Any suggestions gratefully received. > > TIA! > > Chris Foote -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From spikee at oatlandspark.org.uk Mon Feb 20 14:52:21 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Mon, 20 Feb 2006 20:52:21 -0000 Subject: [AccessD] Nested query In-Reply-To: Message-ID: <200602202052.k1KKqQC24319@databaseadvisors.com> There's something not quite right about it as well John. The A2003 query grid keeps replacing the round brackets surrounding the sub-query with square brackets. Odd! I'm trying to run this query against mySQL using phpMyAdmin and it does not like it one bit. I think I need to read up on aliasing tables a bit more. I wonder if I should move sideways onto the SQL list? Regards! Chris F -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: 20 February 2006 20:39 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query That's interesting, version-wise. It was OK in XP (2002). J -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote (Spike) Sent: 20 February 2006 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query Hi John! I could not get your suggestion to work in A97, but in A2003 (with a minor change) it works as good as gold. What I ended up with is: SELECT tblClubs.fldIDClub, tblClubs.fldClubCode, tblClubs.fldClubShort FROM (SELECT Max(tblClubs1.fldIDClub) AS [Highest ID] FROM tblClubs tblClubs1 GROUP BY tblClubs1.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON LatestClubRecs.[Highest ID] = tblClubs.fldIDClub; Notice that I aliased "tblClubs" as "tblClubs1" in the second "FROM". Without this Access complained about the same table being referred to twice. Thanks again for your help John! Best regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) > Robinson > Sent: Monday, February 20, 2006 1:19 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Nested query > > > Hi Chris > > A rare occasion that I'm up to date with AccessD reading - > displacement activity for evil tax calculations! > > Anyway, how about: > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs > GROUP BY tblClubs.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON > LatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > HTH > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, > Chris > Sent: 20 February 2006 12:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Nested query > > > Good day! > > I'm having problems "nesting" a query within another query. > > My (simplified) scenario is as follows: > > I have a table (tblClubs) that has three fields: fldIDClubs, > fldClubCode, and fldClubName. > > fldIDClubs is an AutoNumbered field, the other two are text. > > In my table I currently have the following four records: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 1 | WAL | Walton | > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > > What I want to do, is to return the records with the highest IDClub > number per ClubCode ie: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > I can do this in two steps, by creating a query that selects MAX > IDClubs and GROUP BYs ClubCode (SQL below) > > > SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY > tblClubs.fldClubCode; > > And then using that query in another query with a LEFT JOIN on the > original table (SQL below) > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM qryLatestClubRecs LEFT JOIN tblClubs ON > qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > But, I need to do this all in one query. I'm using Access as a tool to > develop SQL to be used with mySQL in a PHP web page. > > Any suggestions gratefully received. > > TIA! > > Chris Foote -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Feb 20 15:41:44 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 20 Feb 2006 21:41:44 +0000 Subject: [AccessD] Nested query In-Reply-To: <200602202052.k1KKqQC24319@databaseadvisors.com> Message-ID: Chris, You mentioned A97...just tested this...works fine...hope it helps. Thanks, Mark A. Matte ********** SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName FROM tblClubs WHERE (((tblClubs.fldIDClubs) In (SELECT Max(tblClubs.fldIDClubs) AS MaxOffldIDClubs FROM tblClubs GROUP BY tblClubs.fldClubCode;))); ********** >From: "Chris Foote (Spike)" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Nested query >Date: Mon, 20 Feb 2006 20:52:21 -0000 > >There's something not quite right about it as well John. > >The A2003 query grid keeps replacing the round brackets surrounding the >sub-query with square brackets. Odd! > >I'm trying to run this query against mySQL using phpMyAdmin and it does not >like it one bit. I think I need to read up on aliasing tables a bit more. > >I wonder if I should move sideways onto the SQL list? > >Regards! >Chris F > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DJK(John) >Robinson >Sent: 20 February 2006 20:39 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Nested query > >That's interesting, version-wise. It was OK in XP (2002). >J > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote >(Spike) >Sent: 20 February 2006 20:16 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Nested query > > >Hi John! > >I could not get your suggestion to work in A97, but in A2003 (with a minor >change) it works as good as gold. > >What I ended up with is: > > >SELECT tblClubs.fldIDClub, tblClubs.fldClubCode, tblClubs.fldClubShort FROM >(SELECT Max(tblClubs1.fldIDClub) AS [Highest ID] > > FROM tblClubs tblClubs1 > > GROUP BY tblClubs1.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs >ON >LatestClubRecs.[Highest ID] = tblClubs.fldIDClub; > >Notice that I aliased "tblClubs" as "tblClubs1" in the second "FROM". >Without this Access complained about the same table being referred to >twice. > >Thanks again for your help John! > >Best regards >Chris F > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) > > Robinson > > Sent: Monday, February 20, 2006 1:19 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Nested query > > > > > > Hi Chris > > > > A rare occasion that I'm up to date with AccessD reading - > > displacement activity for evil tax calculations! > > > > Anyway, how about: > > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > > FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs > > GROUP BY tblClubs.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON > > LatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > > > HTH > > John > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, > > Chris > > Sent: 20 February 2006 12:45 > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Nested query > > > > > > Good day! > > > > I'm having problems "nesting" a query within another query. > > > > My (simplified) scenario is as follows: > > > > I have a table (tblClubs) that has three fields: fldIDClubs, > > fldClubCode, and fldClubName. > > > > fldIDClubs is an AutoNumbered field, the other two are text. > > > > In my table I currently have the following four records: > > > > | fldIDClubs | fldClubCode | fldClubName | > > |------------|-------------|-------------| > > | 1 | WAL | Walton | > > | 2 | WAL | Still Walton| > > | 3 | WEY | Weybridge | > > | 4 | OXU | Oxford Uni. | > > > > > > What I want to do, is to return the records with the highest IDClub > > number per ClubCode ie: > > > > | fldIDClubs | fldClubCode | fldClubName | > > |------------|-------------|-------------| > > | 2 | WAL | Still Walton| > > | 3 | WEY | Weybridge | > > | 4 | OXU | Oxford Uni. | > > > > I can do this in two steps, by creating a query that selects MAX > > IDClubs and GROUP BYs ClubCode (SQL below) > > > > > > SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY > > tblClubs.fldClubCode; > > > > And then using that query in another query with a LEFT JOIN on the > > original table (SQL below) > > > > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > > FROM qryLatestClubRecs LEFT JOIN tblClubs ON > > qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > > > But, I need to do this all in one query. I'm using Access as a tool to > > develop SQL to be used with mySQL in a PHP web page. > > > > Any suggestions gratefully received. > > > > TIA! > > > > Chris Foote >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Mon Feb 20 16:00:07 2006 From: KIsmert at texassystems.com (Ken Ismert) Date: Mon, 20 Feb 2006 16:00:07 -0600 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: In fact, if you look at Visual Studio 2005 Tools for Office, you'll find it has no built-in support for Access yet... http://msdn.microsoft.com/office/understanding/vsto/default.aspx As usual, Access lags behind its Office companions in terms of the latest development platform support. That means we'll be able to hang onto that juicy VBA goodness for at least one release beyond any of the other Office components. :) -Ken -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Sunday, February 19, 2006 7:24 AM To: !DBA-MAIN Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil From shamil at users.mns.ru Mon Feb 20 17:00:18 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 21 Feb 2006 02:00:18 +0300 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... References: Message-ID: <000601c63671$731de060$6401a8c0@Nant> Ken, VSTO as far as I see creates COM Add-ins wrapped into .NET Framework "candy wrappers" + different installation/deployment scenarios based on XML manifest files... I may have missed something(please correct) but basically that's all... And new XML based file formats for MS Word and MS Excel - my easy guess is that they use XML serialization/deserialization via MS XML Core Services COM based DLL(s) to save/instantiate MS Word/Excel documents, which as all we know consist of many instances of child objects. That format change wasn't a heavy move on my guess - internally they still use the same software... and no plans to rewrite in using .NET Framework... As for MS Access one can write COM/VSTO Add-ins for MS Access or just CCW wrapped .Net class library .dlls - so I don't think we, MS Access developers, are "out of the game" here... VBA will probably be with us and MS Access until MS Office exists - good news for MS Access VBA developers! People say there are plans to enhance macros for MS Access but these plans when implemented shouldn't hopefully kill VBA... Will they(MS) rewrite their COM based flagship software in foreseeable future? - the doubts in that only grow here - VS.NET 2005 is even better for COM native development than previous Visual Studio releases... I wanted to switch to C++/ATL/COM development - anybody has any good projects there? :) Shamil ----- Original Message ----- From: "Ken Ismert" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 21, 2006 1:00 AM Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > In fact, if you look at Visual Studio 2005 Tools for Office, you'll find > it has no built-in support for Access yet... > > http://msdn.microsoft.com/office/understanding/vsto/default.aspx > > As usual, Access lags behind its Office companions in terms of the > latest development platform support. > > That means we'll be able to hang onto that juicy VBA goodness for at > least one release beyond any of the other Office components. > > :) > > -Ken > > > -----Original Message----- > From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] > Sent: Sunday, February 19, 2006 7:24 AM > To: !DBA-MAIN > Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 > > Shamil > > > -- > 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 20 17:00:30 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 20 Feb 2006 23:00:30 -0000 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: <038e01c63671$7c6f5aa8$1b0e758f@ads.qub.ac.uk> I say a recent demo which combined a .net windows form using a web service embedded inside access 12 and passing data to Access. I asked the MS guy for this but he had deleted the example following the presentation. VBA is there alive and well just looking at the multi value datatypes. In DAO they act as a child recordset of the parent recordset and have all the properties of a normal recordset. So you need to open 2 recordsets when dealing with them Martin -----Original Message----- From: "Ken Ismert" Sent: 2/20/06 10:03:58 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... In fact, if you look at Visual Studio 2005 Tools for Office, you'll find it has no built-in support for Access yet... http://msdn.microsoft.com/office/understanding/vsto/default.aspx As usual, Access lags behind its Office companions in terms of the latest development platform support. That means we'll be able to hang onto that juicy VBA goodness for at least one release beyond any of the other Office components. :) -Ken -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Sunday, February 19, 2006 7:24 AM To: !DBA-MAIN Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil -- 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 20 17:12:39 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 20 Feb 2006 23:12:39 -0000 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: <038f01c63673$2f384e64$1b0e758f@ads.qub.ac.uk> People say there are plans to enhance macros for MS Access but these plans when implemented shouldn't hopefully kill VBA... havnt really looked at them yet but there is something called embedded macros in all the new templates supplied no vba at all. The templates themselves are pure xml files when you open them outside access. Each access object comprises an xml file a format file and a description file of some sort. A tool will be available which will shred an access db file into the required xml to permit you to create your own templates. If you want I can post a sample of the XML files for an object. Martin -----Unmodified Original Message----- Ken, VSTO as far as I see creates COM Add-ins wrapped into .NET Framework "candy wrappers" + different installation/deployment scenarios based on XML manifest files... I may have missed something(please correct) but basically that's all... And new XML based file formats for MS Word and MS Excel - my easy guess is that they use XML serialization/deserialization via MS XML Core Services COM based DLL(s) to save/instantiate MS Word/Excel documents, which as all we know consist of many instances of child objects. That format change wasn't a heavy move on my guess - internally they still use the same software... and no plans to rewrite in using .NET Framework... As for MS Access one can write COM/VSTO Add-ins for MS Access or just CCW wrapped .Net class library .dlls - so I don't think we, MS Access developers, are "out of the game" here... VBA will probably be with us and MS Access until MS Office exists - good news for MS Access VBA developers! People say there are plans to enhance macros for MS Access but these plans when implemented shouldn't hopefully kill VBA... Will they(MS) rewrite their COM based flagship software in foreseeable future? - the doubts in that only grow here - VS.NET 2005 is even better for COM native development than previous Visual Studio releases... I wanted to switch to C++/ATL/COM development - anybody has any good projects there? :) Shamil ----- Original Message ----- From: "Ken Ismert" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 21, 2006 1:00 AM Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > In fact, if you look at Visual Studio 2005 Tools for Office, you'll find > it has no built-in support for Access yet... > > http://msdn.microsoft.com/office/understanding/vsto/default.aspx > > As usual, Access lags behind its Office companions in terms of the > latest development platform support. > > That means we'll be able to hang onto that juicy VBA goodness for at > least one release beyond any of the other Office components. > > :) > > -Ken > > > -----Original Message----- > From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] > Sent: Sunday, February 19, 2006 7:24 AM > To: !DBA-MAIN > Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 > > Shamil > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Feb 20 18:12:36 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 20 Feb 2006 16:12:36 -0800 Subject: [AccessD] No Macro--> Security Message-ID: <43FA5AF4.3080808@san.rr.com> Dear List: My user has four machines - one designated 'server' for the back end, three 'clients'. He Put the back end of the app I developed on the server, and a copy of the front end on the three clients. Two work OK after he got the security warning and went Tools --> Macro --> Security and lowered the security. But on the third machine there's no 'Security' choice on the Macro sub menu. Not even grayed out. Anyone seen this before and know how to fix it? (I have but I can't remember because I'm old and forgetful). MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From harkinsss at bellsouth.net Mon Feb 20 18:16:10 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Mon, 20 Feb 2006 19:16:10 -0500 Subject: [AccessD] No Macro--> Security In-Reply-To: <43FA5AF4.3080808@san.rr.com> Message-ID: <001101c6367c$053594c0$beb3d6d1@SUSANONE> You're getting the warning without the option to change? What kind of security have you got on it? Don't know the answer though -- that's just the first thing that came to mind -- that user needs the right permission to change that option and doesn't have it???? Susan H. Dear List: My user has four machines - one designated 'server' for the back end, three 'clients'. He Put the back end of the app I developed on the server, and a copy of the front end on the three clients. Two work OK after he got the security warning and went Tools --> Macro --> Security and lowered the security. But on the third machine there's no 'Security' choice on the Macro sub menu. Not even grayed out. Anyone seen this before and know how to fix it? (I have but I can't remember because I'm old and forgetful). From bill_Patten at earthlink.net Mon Feb 20 20:54:00 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Mon, 20 Feb 2006 18:54:00 -0800 Subject: [AccessD] No Macro--> Security References: <43FA5AF4.3080808@san.rr.com> Message-ID: <003d01c63692$1176c7c0$6501a8c0@BPCS> I'm running out the door so didn't edit this from my personal tech tips, but I believe the information you need is here. Bill To turn off or change security (macro blocking) go to tools/macro/security and set. If the security tab is not there then you must go to customize and set it up/ tools/customize/commands then rearrange commands then in the menu bar drop down find tools!Macro and select Then select add find security and double click. Move to where you want it and say OK from MS Help Change the security level for macro virus protection Show All Hide All Security Because macros can contain viruses, be careful about running them. Take the following precautions: run up-to-date antivirus software on your computer; set your macro security level to high; clear the Trust all installed add-ins and templates check box; use digital signatures; maintain a list of trusted publishers. On the Tools menu, point to Macro, and then click Security. If you do not see the Macro menu item under the Tools menu, or the Security menu item under the Macro menu, click the arrows at the bottom of a drop-down menu to display the hidden menu items. Tip If you want to see all menu items by default, on the Tools menu, click Customize, click the Options tab, and select the Always show full menus check box. I still can't see the Security command under the Macro menu On the Tools menu, click Customize, and then click the Commands tab. Click Rearrange Commands, select Menu Bar, and in the Menu Bar box, click Tools | Macro. In the Controls section, click Add. The Add command dialog box will appear. In the Categories box, click Tools, and then in the Commands box, click Security. The Security command will appear in the Controls box. Use the Move Up and Move Down buttons to position the Security command where you want. If you'd like to position the Security command in its own group (between horizontal lines), with Security selected, click Modify Selection and click Begin a Group. Select the menu item below the Security command, and repeat. Click Close twice. Key Words access 2003 security macro ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Monday, February 20, 2006 4:12 PM Subject: [AccessD] No Macro--> Security Dear List: My user has four machines - one designated 'server' for the back end, three 'clients'. He Put the back end of the app I developed on the server, and a copy of the front end on the three clients. Two work OK after he got the security warning and went Tools --> Macro --> Security and lowered the security. But on the third machine there's no 'Security' choice on the Macro sub menu. Not even grayed out. Anyone seen this before and know how to fix it? (I have but I can't remember because I'm old and forgetful). MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Mon Feb 20 21:11:52 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 21 Feb 2006 14:11:52 +1100 Subject: [AccessD] Nested query Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116A31F@ddi-01.DDI.local> Not sure about mySQL but SQL Server terminology is 'derived' tables. Check if mySQL allows derived tables. SELECT a FROM [Select a from b]. DerivedTable The [] brackets are the correct syntax. Sub queries are different and are in either the Select or Where parts of the statement. HTH Michael M www.ddisolutions.com.au There's something not quite right about it as well John. The A2003 query grid keeps replacing the round brackets surrounding the sub-query with square brackets. Odd! I'm trying to run this query against mySQL using phpMyAdmin and it does not like it one bit. I think I need to read up on aliasing tables a bit more. I wonder if I should move sideways onto the SQL list? Regards! Chris F -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: 20 February 2006 20:39 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query That's interesting, version-wise. It was OK in XP (2002). J -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote (Spike) Sent: 20 February 2006 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query Hi John! I could not get your suggestion to work in A97, but in A2003 (with a minor change) it works as good as gold. What I ended up with is: SELECT tblClubs.fldIDClub, tblClubs.fldClubCode, tblClubs.fldClubShort FROM (SELECT Max(tblClubs1.fldIDClub) AS [Highest ID] FROM tblClubs tblClubs1 GROUP BY tblClubs1.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON LatestClubRecs.[Highest ID] = tblClubs.fldIDClub; Notice that I aliased "tblClubs" as "tblClubs1" in the second "FROM". Without this Access complained about the same table being referred to twice. Thanks again for your help John! Best regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) > Robinson > Sent: Monday, February 20, 2006 1:19 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Nested query > > > Hi Chris > > A rare occasion that I'm up to date with AccessD reading - > displacement activity for evil tax calculations! > > Anyway, how about: > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs > GROUP BY tblClubs.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON > LatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > HTH > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, > Chris > Sent: 20 February 2006 12:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Nested query > > > Good day! > > I'm having problems "nesting" a query within another query. > > My (simplified) scenario is as follows: > > I have a table (tblClubs) that has three fields: fldIDClubs, > fldClubCode, and fldClubName. > > fldIDClubs is an AutoNumbered field, the other two are text. > > In my table I currently have the following four records: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 1 | WAL | Walton | > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > > What I want to do, is to return the records with the highest IDClub > number per ClubCode ie: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > I can do this in two steps, by creating a query that selects MAX > IDClubs and GROUP BYs ClubCode (SQL below) > > > SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY > tblClubs.fldClubCode; > > And then using that query in another query with a LEFT JOIN on the > original table (SQL below) > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM qryLatestClubRecs LEFT JOIN tblClubs ON > qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > But, I need to do this all in one query. I'm using Access as a tool to > develop SQL to be used with mySQL in a PHP web page. > > Any suggestions gratefully received. > > TIA! > > Chris Foote -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Feb 20 22:03:13 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 20 Feb 2006 20:03:13 -0800 Subject: [AccessD] No Macro--> Security In-Reply-To: <001101c6367c$053594c0$beb3d6d1@SUSANONE> References: <001101c6367c$053594c0$beb3d6d1@SUSANONE> Message-ID: <43FA9101.5010406@san.rr.com> I think it's the Access security level that gets changed in that Macro-->Security dialog box. The first two machines at first opened the app in what the user call a 'safe mode' (read only of the tables;couldn't update any records), and after adjusting the security level, Access allowed read/write. On the third machine, however, there is not security option in the Macro sub-menu. I suspect, and told him that he probably needs to do a custom re-install of Access adding the feature that controls this. But that was just a guess. When I install Office, I always just install everything (run all from my computer). Doesn't take up much more space. I started doing that after several annoying updates for features that didn't get included in the typical install. Rocky Susan Harkins wrote: > You're getting the warning without the option to change? What kind of > security have you got on it? Don't know the answer though -- that's just the > first thing that came to mind -- that user needs the right permission to > change that option and doesn't have it???? > > Susan H. > > Dear List: > > My user has four machines - one designated 'server' for the back end, three > 'clients'. He Put the back end of the app I developed on the server, and a > copy of the front end on the three clients. Two work OK after he got the > security warning and went Tools --> Macro --> Security and lowered the > security. But on the third machine there's no 'Security' choice on the > Macro sub menu. Not even grayed out. > > Anyone seen this before and know how to fix it? (I have but I can't remember > because I'm old and forgetful). > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Mon Feb 20 22:04:50 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 20 Feb 2006 20:04:50 -0800 Subject: [AccessD] No Macro--> Security In-Reply-To: <003d01c63692$1176c7c0$6501a8c0@BPCS> References: <43FA5AF4.3080808@san.rr.com> <003d01c63692$1176c7c0$6501a8c0@BPCS> Message-ID: <43FA9162.1020907@san.rr.com> Bill: Thanks. That looks like it. Will forward to the client. Rocky Bill Patten wrote: > I'm running out the door so didn't edit this from my personal tech tips, but > I believe the information you need is here. > > Bill > To turn off or change security (macro blocking) go to tools/macro/security > and set. > If the security tab is not there then you must go to customize and set it > up/ > > tools/customize/commands then rearrange commands then in the menu bar drop > down find tools!Macro and select Then select add find security and double > click. Move to where you want it and say OK > from MS Help > Change the security level for macro virus protection > Show All > Hide All > Security Because macros can contain viruses, be careful about running them. > Take the following precautions: run up-to-date antivirus software on your > computer; set your macro security level to high; clear the Trust all > installed add-ins and templates check box; use digital signatures; maintain > a list of trusted publishers. > > On the Tools menu, point to Macro, and then click Security. If you do not > see the Macro menu item under the Tools menu, or the Security menu item > under the Macro menu, click the arrows at the bottom of a drop-down menu to > display the hidden menu items. > Tip If you want to see all menu items by default, on the Tools menu, click > Customize, click the Options tab, and select the Always show full menus > check box. > > I still can't see the Security command under the Macro menu > > On the Tools menu, click Customize, and then click the Commands tab. > Click Rearrange Commands, select Menu Bar, and in the Menu Bar box, click > Tools | Macro. > In the Controls section, click Add. > The Add command dialog box will appear. > > In the Categories box, click Tools, and then in the Commands box, click > Security. > The Security command will appear in the Controls box. > > Use the Move Up and Move Down buttons to position the Security command where > you want. > If you'd like to position the Security command in its own group (between > horizontal lines), with Security selected, click Modify Selection and click > Begin a Group. Select the menu item below the Security command, and repeat. > > Click Close twice. > > > > Key Words > access 2003 security macro > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: "Access Developers discussion and problem solving" > > Sent: Monday, February 20, 2006 4:12 PM > Subject: [AccessD] No Macro--> Security > > > Dear List: > > My user has four machines - one designated 'server' for the back end, > three 'clients'. He Put the back end of the app I developed on the > server, and a copy of the front end on the three clients. Two work OK > after he got the security warning and went Tools --> Macro --> Security > and lowered the security. But on the third machine there's no > 'Security' choice on the Macro sub menu. Not even grayed out. > > Anyone seen this before and know how to fix it? (I have but I can't > remember because I'm old and forgetful). > > MTIA > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jmhecht at earthlink.net Mon Feb 20 22:10:44 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Mon, 20 Feb 2006 20:10:44 -0800 Subject: [AccessD] The 10 commandments Access style question? Message-ID: <000a01c6369c$c9c92ac0$6701a8c0@HPLaptop> One of them is lookups are bad. If I set a data type as text (not evil lookup) but create a combo box for the display control am I a sinner. The combo box looks up the proper field and lets users select a value. Not in list property and code coming later. Having faith in the coming question the tablets lay here http://www.mvps.org/access/tencommandments.htm Joe Hecht jmhecht at earthlink.net From jmhecht at earthlink.net Mon Feb 20 22:31:55 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Mon, 20 Feb 2006 20:31:55 -0800 Subject: [AccessD] How many cbo atr too many cbo Message-ID: <002101c6369f$bf71e410$6701a8c0@HPLaptop> As I redesign my project again, I am using multiple cbo to help try insure proper text entry. If the data source for the cbo is a field in the same table how many cbo are too many? It will be a split DB with no more that 4 users. Joe Hecht jmhecht at earthlink.net From martyconnelly at shaw.ca Mon Feb 20 23:03:55 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 20 Feb 2006 21:03:55 -0800 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... References: <038f01c63673$2f384e64$1b0e758f@ads.qub.ac.uk> Message-ID: <43FA9F3B.2080107@shaw.ca> I wouldn't mind seeing the xml. Martin Reid wrote: >People say there are plans to enhance macros for MS Access but these plans >when implemented shouldn't hopefully kill VBA... > >havnt really looked at them yet but there is something called embedded macros in all the new templates supplied no vba at all. The templates themselves are pure xml files when you open them outside access. Each access object comprises an xml file a format file and a description file of some sort. A tool will be available which will shred an access db file into the required xml to permit you to create your own templates. If you want I can post a sample of the XML files for an object. > >Martin > >-----Unmodified Original Message----- >Ken, > >VSTO as far as I see creates COM Add-ins wrapped into .NET Framework "candy >wrappers" + different installation/deployment scenarios based on XML >manifest files... > >I may have missed something(please correct) but basically that's all... > >And new XML based file formats for MS Word and MS Excel - my easy guess is >that they use XML serialization/deserialization via MS XML Core Services >COM based DLL(s) to save/instantiate MS Word/Excel documents, which as all >we know consist of many instances of child objects. That format change >wasn't a heavy move on my guess - internally they still use the same >software... and no plans to rewrite in using .NET Framework... > >As for MS Access one can write COM/VSTO Add-ins for MS Access or just CCW >wrapped .Net class library .dlls - so I don't think we, MS Access >developers, are "out of the game" here... > >VBA will probably be with us and MS Access until MS Office exists - good >news for MS Access VBA developers! > >People say there are plans to enhance macros for MS Access but these plans >when implemented shouldn't hopefully kill VBA... > >Will they(MS) rewrite their COM based flagship software in foreseeable >future? - the doubts in that only grow here - VS.NET 2005 is even better for >COM native development than previous Visual Studio releases... > >I wanted to switch to C++/ATL/COM development - anybody has any good >projects there? :) > >Shamil > >----- Original Message ----- >From: "Ken Ismert" >To: "Access Developers discussion and problem solving" > >Sent: Tuesday, February 21, 2006 1:00 AM >Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > > > >>In fact, if you look at Visual Studio 2005 Tools for Office, you'll find >>it has no built-in support for Access yet... >> >>http://msdn.microsoft.com/office/understanding/vsto/default.aspx >> >>As usual, Access lags behind its Office companions in terms of the >>latest development platform support. >> >>That means we'll be able to hang onto that juicy VBA goodness for at >>least one release beyond any of the other Office components. >> >>:) >> >>-Ken >> >> >>-----Original Message----- >>From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] >>Sent: Sunday, February 19, 2006 7:24 AM >>To: !DBA-MAIN >>Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... >> >>http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 >> >>Shamil >> >> >>-- >>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 Mon Feb 20 23:11:51 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 20 Feb 2006 21:11:51 -0800 Subject: [AccessD] No Macro--> Security References: <43FA5AF4.3080808@san.rr.com> <003d01c63692$1176c7c0$6501a8c0@BPCS> <43FA9162.1020907@san.rr.com> Message-ID: <43FAA117.5090209@shaw.ca> Some other ways around this. To avoid the security message you have to set the security level outside of Access before opening the database. You can create a VB script file with this code and start your app using this. (Code is from an MS article) http://support.microsoft.com/?kbid=235422 Const cDatabaseToOpen = "C:\.mdb" On Error Resume Next Dim AcApp Set AcApp = CreateObject("Access.Application") If AcApp.Version >= 10 Then AcApp.AutomationSecurity = 1 ' msoAutomationSecurityLow End If AcApp.Visible = True AcApp.OpenCurrentDatabase cDatabaseToOpen If AcApp.CurrentProject.FullName <> "" Then AcApp.UserControl = True Else AcApp.Quit MsgBox "Failed to open '" & cDatabaseToOpen & "'." End If Pete A couple of other ways around this. Get your network guy to change the following registry settings of the following key, should help you change the security level of the macro in Access 2003. He should be able to change this globally across the network for each client PC, there is even a way to do this from Access VBA code using WMI with proper network permissions. HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level If the value is 1, then the macro security of Access 2003 is set to low. If the value is 2, then the macro security of Access 2003 is set to medium. If the value is 3, then the macro security of Access 2003 is set to high. WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. Or You could also put this vbs code in a file to execute in a user's shortcut. Just create vbs file and add to desktop shortcut. MyMDB.vbs Const cDatabaseToOpen = "C:\.mdb" On Error Resume Next Dim AcApp Set AcApp = CreateObject("Access.Application.11") If AcApp.Version >= 11 Then AcApp.AutomationSecurity = 1 ' msoAutomationSecurityLow End If AcApp.Visible = True AcApp.OpenCurrentDatabase cDatabaseToOpen If AcApp.CurrentProject.FullName <> "" Then AcApp.UserControl = True Else AcApp.Quit MsgBox "Failed to open '" & cDatabaseToOpen & "'." End If Rocky Smolin - Beach Access Software wrote: >Bill: > >Thanks. That looks like it. Will forward to the client. > >Rocky > > >Bill Patten wrote: > > >>I'm running out the door so didn't edit this from my personal tech tips, but >>I believe the information you need is here. >> >>Bill >>To turn off or change security (macro blocking) go to tools/macro/security >>and set. >>If the security tab is not there then you must go to customize and set it >>up/ >> >>tools/customize/commands then rearrange commands then in the menu bar drop >>down find tools!Macro and select Then select add find security and double >>click. Move to where you want it and say OK >>from MS Help >>Change the security level for macro virus protection >>Show All >>Hide All >>Security Because macros can contain viruses, be careful about running them. >>Take the following precautions: run up-to-date antivirus software on your >>computer; set your macro security level to high; clear the Trust all >>installed add-ins and templates check box; use digital signatures; maintain >>a list of trusted publishers. >> >>On the Tools menu, point to Macro, and then click Security. If you do not >>see the Macro menu item under the Tools menu, or the Security menu item >>under the Macro menu, click the arrows at the bottom of a drop-down menu to >>display the hidden menu items. >>Tip If you want to see all menu items by default, on the Tools menu, click >>Customize, click the Options tab, and select the Always show full menus >>check box. >> >>I still can't see the Security command under the Macro menu >> >>On the Tools menu, click Customize, and then click the Commands tab. >>Click Rearrange Commands, select Menu Bar, and in the Menu Bar box, click >>Tools | Macro. >>In the Controls section, click Add. >>The Add command dialog box will appear. >> >>In the Categories box, click Tools, and then in the Commands box, click >>Security. >>The Security command will appear in the Controls box. >> >>Use the Move Up and Move Down buttons to position the Security command where >>you want. >>If you'd like to position the Security command in its own group (between >>horizontal lines), with Security selected, click Modify Selection and click >>Begin a Group. Select the menu item below the Security command, and repeat. >> >>Click Close twice. >> >> >> >>Key Words >>access 2003 security macro >> >>----- Original Message ----- >>From: "Rocky Smolin - Beach Access Software" >>To: "Access Developers discussion and problem solving" >> >>Sent: Monday, February 20, 2006 4:12 PM >>Subject: [AccessD] No Macro--> Security >> >> >>Dear List: >> >>My user has four machines - one designated 'server' for the back end, >>three 'clients'. He Put the back end of the app I developed on the >>server, and a copy of the front end on the three clients. Two work OK >>after he got the security warning and went Tools --> Macro --> Security >>and lowered the security. But on the third machine there's no >>'Security' choice on the Macro sub menu. Not even grayed out. >> >>Anyone seen this before and know how to fix it? (I have but I can't >>remember because I'm old and forgetful). >> >>MTIA >> >>Rocky >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Tue Feb 21 00:48:37 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 20 Feb 2006 22:48:37 -0800 Subject: [AccessD] No Macro--> Security In-Reply-To: <43FAA117.5090209@shaw.ca> References: <43FA5AF4.3080808@san.rr.com> <003d01c63692$1176c7c0$6501a8c0@BPCS> <43FA9162.1020907@san.rr.com> <43FAA117.5090209@shaw.ca> Message-ID: <43FAB7C5.3010402@san.rr.com> Marty: Some good ideas for a workaround. Thanks. Will copy the client. However, I'm still hoping the solution is as simple as a full install of Access. Rocky MartyConnelly wrote: > Some other ways around this. > > To avoid the security message you have to set the security level outside > of Access before opening the database. > You can create a VB script file with this code and start your app using > this. (Code is from an MS article) > http://support.microsoft.com/?kbid=235422 > > Const cDatabaseToOpen = "C:\.mdb" > > On Error Resume Next > Dim AcApp > Set AcApp = CreateObject("Access.Application") > If AcApp.Version >= 10 Then > AcApp.AutomationSecurity = 1 ' msoAutomationSecurityLow > End If > AcApp.Visible = True > AcApp.OpenCurrentDatabase cDatabaseToOpen > If AcApp.CurrentProject.FullName <> "" Then > AcApp.UserControl = True > Else > AcApp.Quit > MsgBox "Failed to open '" & cDatabaseToOpen & "'." > End If > > Pete > A couple of other ways around this. > > Get your network guy to change the following registry settings of the > following key, should help you change the security level of the macro in > Access 2003. He should be able to change this globally across the > network for each client PC, there is even a way to do this from Access > VBA code using WMI with proper network permissions. > > HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level > > If the value is 1, then the macro security of Access 2003 is set to low. > If the value is 2, then the macro security of Access 2003 is set to medium. > If the value is 3, then the macro security of Access 2003 is set to high. > > WARNING: If you use Registry Editor incorrectly, you may cause serious > problems that may require you to reinstall your operating system. > Microsoft cannot guarantee that you can solve problems that result from > using Registry Editor incorrectly. Use Registry Editor at your own risk. > > > Or > > You could also put this vbs code in a file to execute in a user's > shortcut. Just create vbs file and add to desktop shortcut. > > MyMDB.vbs > > Const cDatabaseToOpen = "C:\.mdb" > > On Error Resume Next > Dim AcApp > Set AcApp = CreateObject("Access.Application.11") > If AcApp.Version >= 11 Then > AcApp.AutomationSecurity = 1 ' msoAutomationSecurityLow > End If > AcApp.Visible = True > AcApp.OpenCurrentDatabase cDatabaseToOpen > If AcApp.CurrentProject.FullName <> "" Then > AcApp.UserControl = True > Else > AcApp.Quit > MsgBox "Failed to open '" & cDatabaseToOpen & "'." > End If > > Rocky Smolin - Beach Access Software wrote: > > >> Bill: >> >> Thanks. That looks like it. Will forward to the client. >> >> Rocky >> >> >> Bill Patten wrote: >> >> >> >>> I'm running out the door so didn't edit this from my personal tech tips, but >>> I believe the information you need is here. >>> >>> Bill >>> To turn off or change security (macro blocking) go to tools/macro/security >>> and set. >>> If the security tab is not there then you must go to customize and set it >>> up/ >>> >>> tools/customize/commands then rearrange commands then in the menu bar drop >>> down find tools!Macro and select Then select add find security and double >>> click. Move to where you want it and say OK >>> >> >from MS Help >> >>> Change the security level for macro virus protection >>> Show All >>> Hide All >>> Security Because macros can contain viruses, be careful about running them. >>> Take the following precautions: run up-to-date antivirus software on your >>> computer; set your macro security level to high; clear the Trust all >>> installed add-ins and templates check box; use digital signatures; maintain >>> a list of trusted publishers. >>> >>> On the Tools menu, point to Macro, and then click Security. If you do not >>> see the Macro menu item under the Tools menu, or the Security menu item >>> under the Macro menu, click the arrows at the bottom of a drop-down menu to >>> display the hidden menu items. >>> Tip If you want to see all menu items by default, on the Tools menu, click >>> Customize, click the Options tab, and select the Always show full menus >>> check box. >>> >>> I still can't see the Security command under the Macro menu >>> >>> On the Tools menu, click Customize, and then click the Commands tab. >>> Click Rearrange Commands, select Menu Bar, and in the Menu Bar box, click >>> Tools | Macro. >>> In the Controls section, click Add. >>> The Add command dialog box will appear. >>> >>> In the Categories box, click Tools, and then in the Commands box, click >>> Security. >>> The Security command will appear in the Controls box. >>> >>> Use the Move Up and Move Down buttons to position the Security command where >>> you want. >>> If you'd like to position the Security command in its own group (between >>> horizontal lines), with Security selected, click Modify Selection and click >>> Begin a Group. Select the menu item below the Security command, and repeat. >>> >>> Click Close twice. >>> >>> >>> >>> Key Words >>> access 2003 security macro >>> >>> ----- Original Message ----- >>> From: "Rocky Smolin - Beach Access Software" >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Monday, February 20, 2006 4:12 PM >>> Subject: [AccessD] No Macro--> Security >>> >>> >>> Dear List: >>> >>> My user has four machines - one designated 'server' for the back end, >>> three 'clients'. He Put the back end of the app I developed on the >>> server, and a copy of the front end on the three clients. Two work OK >>> after he got the security warning and went Tools --> Macro --> Security >>> and lowered the security. But on the third machine there's no >>> 'Security' choice on the Macro sub menu. Not even grayed out. >>> >>> Anyone seen this before and know how to fix it? (I have but I can't >>> remember because I'm old and forgetful). >>> >>> MTIA >>> >>> Rocky >>> >>> >>> >>> >>> >> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Chris.Foote at uk.thalesgroup.com Tue Feb 21 02:24:22 2006 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Tue, 21 Feb 2006 08:24:22 -0000 Subject: [AccessD] Nested query Message-ID: <7303A459C921B5499AF732CCEEAD2B7F3E6BCE@craws161660.int.rdel.co.uk> Cheers Mark! Your version works fine in A97. MySQL 4.0.23a-Max still not happy, but I can work on it. Regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > Sent: Monday, February 20, 2006 9:42 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Nested query > > > Chris, > > You mentioned A97...just tested this...works fine...hope it helps. > > Thanks, > > Mark A. Matte > > ********** > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM tblClubs > WHERE (((tblClubs.fldIDClubs) In (SELECT Max(tblClubs.fldIDClubs) AS > MaxOffldIDClubs FROM tblClubs GROUP BY tblClubs.fldClubCode;))); > ********** > > >From: "Chris Foote (Spike)" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] Nested query > >Date: Mon, 20 Feb 2006 20:52:21 -0000 > > > >There's something not quite right about it as well John. > > > >The A2003 query grid keeps replacing the round brackets > surrounding the > >sub-query with square brackets. Odd! > > > >I'm trying to run this query against mySQL using phpMyAdmin > and it does not > >like it one bit. I think I need to read up on aliasing > tables a bit more. > > > >I wonder if I should move sideways onto the SQL list? > > > >Regards! > >Chris F > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DJK(John) > >Robinson > >Sent: 20 February 2006 20:39 > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] Nested query > > > >That's interesting, version-wise. It was OK in XP (2002). > >J > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Chris Foote > >(Spike) > >Sent: 20 February 2006 20:16 > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] Nested query > > > > > >Hi John! > > > >I could not get your suggestion to work in A97, but in A2003 > (with a minor > >change) it works as good as gold. > > > >What I ended up with is: > > > > > >SELECT tblClubs.fldIDClub, tblClubs.fldClubCode, > tblClubs.fldClubShort FROM > >(SELECT Max(tblClubs1.fldIDClub) AS [Highest ID] > > > > FROM tblClubs tblClubs1 > > > > GROUP BY tblClubs1.fldClubCode) AS LatestClubRecs LEFT > JOIN tblClubs > >ON > >LatestClubRecs.[Highest ID] = tblClubs.fldIDClub; > > > >Notice that I aliased "tblClubs" as "tblClubs1" in the second "FROM". > >Without this Access complained about the same table being > referred to > >twice. > > > >Thanks again for your help John! > > > >Best regards > >Chris F From shamil at users.mns.ru Tue Feb 21 03:39:00 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 21 Feb 2006 12:39:00 +0300 Subject: [AccessD] The 10 commandments Access style question? References: <000a01c6369c$c9c92ac0$6701a8c0@HPLaptop> Message-ID: <00aa01c636ca$aecad560$6401a8c0@Nant> Joe, I'd disagree with them and I'd use lookups as much as possible - lookups are true development speed up feature and are very useful for users IMO. I did read carefully the article they refer to http://www.mvps.org/access/lookupfields.htm Honestly I didn't like to use lookup fields when they appeared in Access 97 and I even recommended to not use them to some people - I changed my mind for quite some time now - good evolution IMO :) HTH, Shamil ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 21, 2006 7:10 AM Subject: [AccessD] The 10 commandments Access style question? > One of them is lookups are bad. If I set a data type as text > (not evil lookup) but create a combo box for the display > control am I a sinner. > > The combo box looks up the proper field and lets users > select a value. > > Not in list property and code coming later. > > Having faith in the coming question the tablets lay here > > http://www.mvps.org/access/tencommandments.htm > > Joe Hecht > > jmhecht at earthlink.net > > > > -- > 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 21 03:54:52 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Feb 2006 10:54:52 +0100 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: Hi Martin Could you elaborate on this please? A recordset of a recordset in DAO? > .. multi value datatypes. In DAO they act as a child recordset of the > parent recordset and have all the properties of a normal recordset. > So you need to open 2 recordsets when dealing with them /gustav >>> mwp.reid at qub.ac.uk 21-02-2006 00:00 >>> I say a recent demo which combined a .net windows form using a web service embedded inside access 12 and passing data to Access. I asked the MS guy for this but he had deleted the example following the presentation. VBA is there alive and well just looking at the multi value datatypes. In DAO they act as a child recordset of the parent recordset and have all the properties of a normal recordset. So you need to open 2 recordsets when dealing with them Martin From Gustav at cactus.dk Tue Feb 21 04:05:03 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Feb 2006 11:05:03 +0100 Subject: [AccessD] The 10 commandments Access style question? Message-ID: Hi Joe You have to quote correctly. He states "Lookup fields are bad" which is true. If you don't know what lookup fields are, don't bother, you won't need them. Go and create all the comboboxes you like! /gustav >>> jmhecht at earthlink.net 21-02-2006 05:10 >>> One of them is lookups are bad. If I set a data type as text (not evil lookup) but create a combo box for the display control am I a sinner. The combo box looks up the proper field and lets users select a value. Not in list property and code coming later. Having faith in the coming question the tablets lay here http://www.mvps.org/access/tencommandments.htm Joe Hecht jmhecht at earthlink.net From Gustav at cactus.dk Tue Feb 21 04:08:50 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Feb 2006 11:08:50 +0100 Subject: [AccessD] Nested query Message-ID: Hi Chris In standard SQL I believe you need to replace the construct [Select * From ...]. As T with (Select * From ...) T /gustav >>> Chris.Foote at uk.thalesgroup.com 21-02-2006 09:24 >>> Cheers Mark! Your version works fine in A97. MySQL 4.0.23a-Max still not happy, but I can work on it. Regards Chris F From Gustav at cactus.dk Tue Feb 21 04:16:46 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Feb 2006 11:16:46 +0100 Subject: [AccessD] The 10 commandments Access style question? Message-ID: Hi Shamil and Joe I still don't like them in tables. In queries, however, they can be quite useful, leaving the table design clean. I've used them in a set of queries for simple administrative purposes (configuration of an app) where an ID is exactly meaningless while "the meaning" is mandatory to perform the task. It saved my for creating a bunch of forms. However, I would never use them in an application at the user level. /gustav >>> shamil at users.mns.ru 21-02-2006 10:39 >>> Joe, I'd disagree with them and I'd use lookups as much as possible - lookups are true development speed up feature and are very useful for users IMO. I did read carefully the article they refer to http://www.mvps.org/access/lookupfields.htm Honestly I didn't like to use lookup fields when they appeared in Access 97 and I even recommended to not use them to some people - I changed my mind for quite some time now - good evolution IMO :) HTH, Shamil From Gustav at cactus.dk Tue Feb 21 04:40:39 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Feb 2006 11:40:39 +0100 Subject: [AccessD] Unlock an MDE Message-ID: Hi Arthur and Dan Just noticed this link: http://www.everythingaccess.com/tutorials.asp?ID=1 /gustav >>> dwaters at usinternet.com 20-01-2006 17:28 >>> Dear King, What I've read in a few places is that there is a technique where a developer could 'add' capability to an mde, but not change what was already there. The capability addition must use Access macros, because the code is unavailable. I was looking for a way to 'defeat' an mde to see if I could claim to a customer that it really was permanently locked, and I from what I found an mde will not reveal its secrets! Best of Luck, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, January 20, 2006 10:02 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Unlock an MDE A client has an MDE and has lost its corresponding MDB. I vaguely recall that there is some sort of rescue technique. It wouldn't mattered if what came back was obfuscated code; that could be dealt with. Any tips or pointers? A commercial package would be OK if that's the only method. The alternative is reverse-engineering it, which in the circumstances wouldn't be all that terrible. Like most apps, it contains a lot of obvious code and a little rocket science. TIA, Arthur Son of Uther Pendragon, Defeater of the Saxons, Lord Over Alllll England, and King of the Dorks From jwcolby at ColbyConsulting.com Tue Feb 21 06:22:39 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 21 Feb 2006 07:22:39 -0500 Subject: [AccessD] How many cbo atr too many cbo In-Reply-To: <002101c6369f$bf71e410$6701a8c0@HPLaptop> Message-ID: <006001c636e1$82aa2cd0$12013b0a@ColbyM6805> If the source is a field in the same table, you likely aren't normalized correctly. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, February 20, 2006 11:32 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How many cbo atr too many cbo As I redesign my project again, I am using multiple cbo to help try insure proper text entry. If the data source for the cbo is a field in the same table how many cbo are too many? It will be a split DB with no more that 4 users. Joe Hecht jmhecht at earthlink.net -- 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 Tue Feb 21 07:29:10 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 21 Feb 2006 13:29:10 -0000 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: Gustav Here is a bit of DAO which loads a value into a new Access datatype called Attachment which allows you to save several attachments. Dim rsEmployees As DAO.Recordset Dim rsPictures As DAO.Recordset Set db = CurrentDb ' Get the parent recordset Set rsEmployees = db.OpenRecordset("Table1") 'Put the parent record into edit mode rsEmployees.Edit 'Get the attachment recordset Set rsPictures = rsEmployees.Fields("AttachmentCell").Value 'Set first attachment to loaded picture rsPictures.Edit rsPictures.Fields("FileData").LoadFromFile ("C:\test.jpg") rsPictures.Update ' Update the parent record rsEmployees.Update Martin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 21 February 2006 09:55 To: accessd at databaseadvisors.com Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Hi Martin Could you elaborate on this please? A recordset of a recordset in DAO? > .. multi value datatypes. In DAO they act as a child recordset of the > parent recordset and have all the properties of a normal recordset. > So you need to open 2 recordsets when dealing with them /gustav >>> mwp.reid at qub.ac.uk 21-02-2006 00:00 >>> I say a recent demo which combined a .net windows form using a web service embedded inside access 12 and passing data to Access. I asked the MS guy for this but he had deleted the example following the presentation. VBA is there alive and well just looking at the multi value datatypes. In DAO they act as a child recordset of the parent recordset and have all the properties of a normal recordset. So you need to open 2 recordsets when dealing with them Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Tue Feb 21 07:47:24 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 21 Feb 2006 16:47:24 +0300 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... References: Message-ID: <002c01c636ed$5a558160$6401a8c0@Nant> Martin, Does this code means they updated DAO to support new datatype or they somehow worked it around without DAO patching? Shamil ----- Original Message ----- From: "Martin Reid" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 21, 2006 4:29 PM Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > Gustav > > Here is a bit of DAO which loads a value into a new Access datatype > called Attachment which allows you to save several attachments. > > Dim rsEmployees As DAO.Recordset > Dim rsPictures As DAO.Recordset > Set db = CurrentDb > > ' Get the parent recordset > Set rsEmployees = db.OpenRecordset("Table1") > > 'Put the parent record into edit mode > rsEmployees.Edit > > > 'Get the attachment recordset > Set rsPictures = rsEmployees.Fields("AttachmentCell").Value > > 'Set first attachment to loaded picture > rsPictures.Edit > rsPictures.Fields("FileData").LoadFromFile ("C:\test.jpg") > rsPictures.Update > > ' Update the parent record > rsEmployees.Update > > > > Martin > > From mwp.reid at qub.ac.uk Tue Feb 21 07:51:07 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 21 Feb 2006 13:51:07 -0000 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: Thay have updated DAO and JET. They took a private copy of JET and renamed it ACE which is the default database created by Access 12. They then extended the engine to cope with this as well. Martin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: 21 February 2006 13:47 To: Access Developers discussion and problem solving Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Martin, Does this code means they updated DAO to support new datatype or they somehow worked it around without DAO patching? Shamil ----- Original Message ----- From: "Martin Reid" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 21, 2006 4:29 PM Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > Gustav > > Here is a bit of DAO which loads a value into a new Access datatype > called Attachment which allows you to save several attachments. > > Dim rsEmployees As DAO.Recordset > Dim rsPictures As DAO.Recordset > Set db = CurrentDb > > ' Get the parent recordset > Set rsEmployees = db.OpenRecordset("Table1") > > 'Put the parent record into edit mode > rsEmployees.Edit > > > 'Get the attachment recordset > Set rsPictures = rsEmployees.Fields("AttachmentCell").Value > > 'Set first attachment to loaded picture > rsPictures.Edit > rsPictures.Fields("FileData").LoadFromFile ("C:\test.jpg") > rsPictures.Update > > ' Update the parent record > rsEmployees.Update > > > > Martin > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com m From Gustav at cactus.dk Tue Feb 21 08:00:58 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Feb 2006 15:00:58 +0100 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: Hi Martin Oh, news! LoadFromFile was ADO only. So - as Shamil asks - how comes? /gustav >>> mwp.reid at qub.ac.uk 21-02-2006 14:29 >>> Gustav Here is a bit of DAO which loads a value into a new Access datatype called Attachment which allows you to save several attachments. Dim rsEmployees As DAO.Recordset Dim rsPictures As DAO.Recordset Set db = CurrentDb ' Get the parent recordset Set rsEmployees = db.OpenRecordset("Table1") 'Put the parent record into edit mode rsEmployees.Edit 'Get the attachment recordset Set rsPictures = rsEmployees.Fields("AttachmentCell").Value 'Set first attachment to loaded picture rsPictures.Edit rsPictures.Fields("FileData").LoadFromFile ("C:\test.jpg") rsPictures.Update ' Update the parent record rsEmployees.Update Martin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 21 February 2006 09:55 To: accessd at databaseadvisors.com Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Hi Martin Could you elaborate on this please? A recordset of a recordset in DAO? > .. multi value datatypes. In DAO they act as a child recordset of the > parent recordset and have all the properties of a normal recordset. > So you need to open 2 recordsets when dealing with them /gustav >>> mwp.reid at qub.ac.uk 21-02-2006 00:00 >>> I say a recent demo which combined a .net windows form using a web service embedded inside access 12 and passing data to Access. I asked the MS guy for this but he had deleted the example following the presentation. VBA is there alive and well just looking at the multi value datatypes. In DAO they act as a child recordset of the parent recordset and have all the properties of a normal recordset. So you need to open 2 recordsets when dealing with them Martin From dwaters at usinternet.com Tue Feb 21 08:12:54 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 21 Feb 2006 08:12:54 -0600 Subject: [AccessD] Unlock an MDE In-Reply-To: <4632855.1140519967967.JavaMail.root@sniper39> Message-ID: <000701c636f0$e8f8fac0$0200a8c0@danwaters> Hi Gustav, I've seen this site before, but their 'conversion service' is a new feature. I wonder how they do this, and what they charge. They do claim to do everything they can to verify ownership prior to making a conversion. Dan -----Original Message----- Hi Arthur and Dan Just noticed this link: http://www.everythingaccess.com/tutorials.asp?ID=1 /gustav >>> dwaters at usinternet.com 20-01-2006 17:28 >>> Dear King, What I've read in a few places is that there is a technique where a developer could 'add' capability to an mde, but not change what was already there. The capability addition must use Access macros, because the code is unavailable. I was looking for a way to 'defeat' an mde to see if I could claim to a customer that it really was permanently locked, and I from what I found an mde will not reveal its secrets! Best of Luck, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, January 20, 2006 10:02 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Unlock an MDE A client has an MDE and has lost its corresponding MDB. I vaguely recall that there is some sort of rescue technique. It wouldn't mattered if what came back was obfuscated code; that could be dealt with. Any tips or pointers? A commercial package would be OK if that's the only method. The alternative is reverse-engineering it, which in the circumstances wouldn't be all that terrible. Like most apps, it contains a lot of obvious code and a little rocket science. TIA, Arthur Son of Uther Pendragon, Defeater of the Saxons, Lord Over Alllll England, and King of the Dorks -- 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 21 08:30:35 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Feb 2006 15:30:35 +0100 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: Hi Martin et al Martin, you did post this in November, I just forgot, sorry. Read on here: http://blogs.msdn.com/access/ Browse to the bottom. /gustav >>> mwp.reid at qub.ac.uk 21-02-2006 14:51 >>> Thay have updated DAO and JET. They took a private copy of JET and renamed it ACE which is the default database created by Access 12. They then extended the engine to cope with this as well. Martin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: 21 February 2006 13:47 To: Access Developers discussion and problem solving Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Martin, Does this code means they updated DAO to support new datatype or they somehow worked it around without DAO patching? Shamil ----- Original Message ----- From: "Martin Reid" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 21, 2006 4:29 PM Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > Gustav > > Here is a bit of DAO which loads a value into a new Access datatype > called Attachment which allows you to save several attachments. > > Dim rsEmployees As DAO.Recordset > Dim rsPictures As DAO.Recordset > Set db = CurrentDb > > ' Get the parent recordset > Set rsEmployees = db.OpenRecordset("Table1") > > 'Put the parent record into edit mode > rsEmployees.Edit > > > 'Get the attachment recordset > Set rsPictures = rsEmployees.Fields("AttachmentCell").Value > > 'Set first attachment to loaded picture > rsPictures.Edit > rsPictures.Fields("FileData").LoadFromFile ("C:\test.jpg") > rsPictures.Update > > ' Update the parent record > rsEmployees.Update > > > > Martin From jmhecht at earthlink.net Tue Feb 21 08:46:58 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 21 Feb 2006 06:46:58 -0800 Subject: [AccessD] How many cbo atr too many cbo In-Reply-To: <006001c636e1$82aa2cd0$12013b0a@ColbyM6805> Message-ID: <001201c636f5$aafe2e70$6701a8c0@HPLaptop> John, It is about 50 fields all one to one about the same thing. Accident Properties. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, February 21, 2006 4:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How many cbo atr too many cbo If the source is a field in the same table, you likely aren't normalized correctly. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, February 20, 2006 11:32 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How many cbo atr too many cbo As I redesign my project again, I am using multiple cbo to help try insure proper text entry. If the data source for the cbo is a field in the same table how many cbo are too many? It will be a split DB with no more that 4 users. Joe Hecht jmhecht 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 DWUTKA at marlow.com Tue Feb 21 09:46:53 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 21 Feb 2006 09:46:53 -0600 Subject: [AccessD] The 10 commandments Access style question? Message-ID: <17724746D360394AA3BFE5B8D40A9C1BD79E@main2.marlow.com> We've had this little debate before. Are we trying to liven this week up a bit or something? Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Tuesday, February 21, 2006 4:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] The 10 commandments Access style question? Hi Shamil and Joe I still don't like them in tables. In queries, however, they can be quite useful, leaving the table design clean. I've used them in a set of queries for simple administrative purposes (configuration of an app) where an ID is exactly meaningless while "the meaning" is mandatory to perform the task. It saved my for creating a bunch of forms. However, I would never use them in an application at the user level. /gustav >>> shamil at users.mns.ru 21-02-2006 10:39 >>> Joe, I'd disagree with them and I'd use lookups as much as possible - lookups are true development speed up feature and are very useful for users IMO. I did read carefully the article they refer to http://www.mvps.org/access/lookupfields.htm Honestly I didn't like to use lookup fields when they appeared in Access 97 and I even recommended to not use them to some people - I changed my mind for quite some time now - good evolution IMO :) HTH, Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Tue Feb 21 09:59:23 2006 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Tue, 21 Feb 2006 15:59:23 -0000 Subject: [AccessD] The 10 commandments Access style question? Message-ID: <7303A459C921B5499AF732CCEEAD2B7F3E6BD5@craws161660.int.rdel.co.uk> I thought that my problem with SQL syntax was exciting enough ;-) Regards Chris Foote > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > DWUTKA at marlow.com > Sent: Tuesday, February 21, 2006 3:47 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] The 10 commandments Access style question? > > > We've had this little debate before. Are we trying to liven > this week up a > bit or something? > > Drew > > -----Original Message----- > From: Gustav Brock [mailto:Gustav at cactus.dk] > Sent: Tuesday, February 21, 2006 4:17 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] The 10 commandments Access style question? > > > Hi Shamil and Joe > > I still don't like them in tables. In queries, however, they > can be quite > useful, leaving the table design clean. > > I've used them in a set of queries for simple administrative purposes > (configuration of an app) where an ID is exactly meaningless > while "the > meaning" is mandatory to perform the task. It saved my for > creating a bunch > of forms. > > However, I would never use them in an application at the user level. > > /gustav From jmhecht at earthlink.net Tue Feb 21 10:07:00 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 21 Feb 2006 08:07:00 -0800 Subject: [AccessD] The 10 commandments Access style question? In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1BD79E@main2.marlow.com> Message-ID: <000001c63700$d9353b70$6701a8c0@HPLaptop> Not looking for debate. Just trying to be a better programmer. And right now it is not feeling like it is working. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Tuesday, February 21, 2006 7:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] The 10 commandments Access style question? We've had this little debate before. Are we trying to liven this week up a bit or something? Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Tuesday, February 21, 2006 4:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] The 10 commandments Access style question? Hi Shamil and Joe I still don't like them in tables. In queries, however, they can be quite useful, leaving the table design clean. I've used them in a set of queries for simple administrative purposes (configuration of an app) where an ID is exactly meaningless while "the meaning" is mandatory to perform the task. It saved my for creating a bunch of forms. However, I would never use them in an application at the user level. /gustav >>> shamil at users.mns.ru 21-02-2006 10:39 >>> Joe, I'd disagree with them and I'd use lookups as much as possible - lookups are true development speed up feature and are very useful for users IMO. I did read carefully the article they refer to http://www.mvps.org/access/lookupfields.htm Honestly I didn't like to use lookup fields when they appeared in Access 97 and I even recommended to not use them to some people - I changed my mind for quite some time now - good evolution IMO :) HTH, Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Feb 21 10:32:32 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 21 Feb 2006 08:32:32 -0800 Subject: [AccessD] Nested query Message-ID: That's the way the query engine in Access handles the inline query under the covers. Your problem isn't with aliasing the tables (although I would strongly suggest losing the spaces in your aliases). It may work for you if you create the query with the parens and then save it but don't open it in SQL view again, or if you do, replace the brackets and period with parens again before saving. Access 97 was particularly fussy about this. You had to use parens because it would not recognize the square brackets when entered by the user, even though the query engine requires them. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote (Spike) Sent: Monday, February 20, 2006 12:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query There's something not quite right about it as well John. The A2003 query grid keeps replacing the round brackets surrounding the sub-query with square brackets. Odd! I'm trying to run this query against mySQL using phpMyAdmin and it does not like it one bit. I think I need to read up on aliasing tables a bit more. I wonder if I should move sideways onto the SQL list? Regards! Chris F -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: 20 February 2006 20:39 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query That's interesting, version-wise. It was OK in XP (2002). J -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote (Spike) Sent: 20 February 2006 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query Hi John! I could not get your suggestion to work in A97, but in A2003 (with a minor change) it works as good as gold. What I ended up with is: SELECT tblClubs.fldIDClub, tblClubs.fldClubCode, tblClubs.fldClubShort FROM (SELECT Max(tblClubs1.fldIDClub) AS [Highest ID] FROM tblClubs tblClubs1 GROUP BY tblClubs1.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON LatestClubRecs.[Highest ID] = tblClubs.fldIDClub; Notice that I aliased "tblClubs" as "tblClubs1" in the second "FROM". Without this Access complained about the same table being referred to twice. Thanks again for your help John! Best regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) > Robinson > Sent: Monday, February 20, 2006 1:19 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Nested query > > > Hi Chris > > A rare occasion that I'm up to date with AccessD reading - > displacement activity for evil tax calculations! > > Anyway, how about: > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs > GROUP BY tblClubs.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON > LatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > HTH > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, > Chris > Sent: 20 February 2006 12:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Nested query > > > Good day! > > I'm having problems "nesting" a query within another query. > > My (simplified) scenario is as follows: > > I have a table (tblClubs) that has three fields: fldIDClubs, > fldClubCode, and fldClubName. > > fldIDClubs is an AutoNumbered field, the other two are text. > > In my table I currently have the following four records: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 1 | WAL | Walton | > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > > What I want to do, is to return the records with the highest IDClub > number per ClubCode ie: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > I can do this in two steps, by creating a query that selects MAX > IDClubs and GROUP BYs ClubCode (SQL below) > > > SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY > tblClubs.fldClubCode; > > And then using that query in another query with a LEFT JOIN on the > original table (SQL below) > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM qryLatestClubRecs LEFT JOIN tblClubs ON > qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > But, I need to do this all in one query. I'm using Access as a tool to > develop SQL to be used with mySQL in a PHP web page. > > Any suggestions gratefully received. > > TIA! > > Chris Foote -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Feb 21 10:33:28 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 21 Feb 2006 08:33:28 -0800 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: That "juicy VBA goodness" can't hold a candle to the .Net goodies, Ken. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Monday, February 20, 2006 2:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... In fact, if you look at Visual Studio 2005 Tools for Office, you'll find it has no built-in support for Access yet... http://msdn.microsoft.com/office/understanding/vsto/default.aspx As usual, Access lags behind its Office companions in terms of the latest development platform support. That means we'll be able to hang onto that juicy VBA goodness for at least one release beyond any of the other Office components. :) -Ken -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Sunday, February 19, 2006 7:24 AM To: !DBA-MAIN Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil -- 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 21 13:22:00 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 21 Feb 2006 13:22:00 -0600 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news - VBA in Office 12 and beyond...) In-Reply-To: <11285598.1140540232160.JavaMail.root@sniper14> Message-ID: <000001c6371c$173c7d50$0200a8c0@danwaters> OK Charlotte, What are these goodies? And the big question - what does it take to do the conversion (software, learning curve time, how to make reports, convert forms vs. modules vs. reports, etc.) For an Access application that has ~50K lines of code, is it worth it? Thanks! Dan -----Original Message----- That "juicy VBA goodness" can't hold a candle to the .Net goodies, Ken. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Monday, February 20, 2006 2:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... In fact, if you look at Visual Studio 2005 Tools for Office, you'll find it has no built-in support for Access yet... http://msdn.microsoft.com/office/understanding/vsto/default.aspx As usual, Access lags behind its Office companions in terms of the latest development platform support. That means we'll be able to hang onto that juicy VBA goodness for at least one release beyond any of the other Office components. :) -Ken -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Sunday, February 19, 2006 7:24 AM To: !DBA-MAIN Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Feb 21 14:07:32 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 21 Feb 2006 20:07:32 +0000 Subject: [AccessD] Use animated .gif in A97 In-Reply-To: <000001c6371c$173c7d50$0200a8c0@danwaters> Message-ID: Hello All, I'm trying to use an animated .gif in an A97 db. With the help of www.lebans.com I got the .gif in but there is no animation. Any ideas/direction? Thanks, Mark A. Matte From rl_stewart at highstream.net Tue Feb 21 15:08:15 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 21 Feb 2006 16:08:15 -0500 Subject: [AccessD] How many cbo atr too many cbo In-Reply-To: References: Message-ID: <1140556095.43fb813f85b4a@webmail.highstream.net> Then it is definately bad design. tblAccident AccidentID AccidentDesc Etc.... tblAccidentProperty AccidentPropertyID AccidentID PropertyId AccidentPropertyComments etc.... tlkpProperty PropertyID PropertyDesc This will allow you to add as many "properties" to an accident as you need to in a normalized fashion. Oh, and only one combobox, PropertyID, in it. Robert Date: Tue, 21 Feb 2006 06:46:58 -0800 From: "Joe Hecht" Subject: Re: [AccessD] How many cbo atr too many cbo To: "'Access Developers discussion and problem solving'" Message-ID: <001201c636f5$aafe2e70$6701a8c0 at HPLaptop> Content-Type: text/plain; charset="us-ascii" John, It is about 50 fields all one to one about the same thing. Accident Properties. Joe Hecht jmhecht at earthlink.net Robert L. Stewart The Dyson Group International Software for the Non-profit Enterprise Expanding your Sphere of Knowledge From cfoust at infostatsystems.com Tue Feb 21 15:16:29 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 21 Feb 2006 13:16:29 -0800 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBA in Office 12 and beyond...) Message-ID: I don't know where to start, Dan. It would be a total rewrite, but the program logic could be used to build the new app. Learning curve is steep because *everything* is an object and doing anything to it (like populating a string that already has text) creates a NEW object with the same name. You don't do things the same way, but it is much easier to get at and manipulate data, to create datasets that include related fields from another table, to create reusable code. The list is endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and user controls is quite different from Access because you have so much control over the objects and their behavior. Reports can be used in our web-based app or on Windows without modifications. Do you want to bind different parts of a form or report to different data sources? No problem. Do you want to bind controls to the top, left, right, bottom of the container so they move when the object resizes? No problem. Do you want a panel to fill its allocated space and stay that way through form resizes? No problem. Do you want custom behavior from a control? Create your own and use it in you apps. I'm a fan, as you can tell, but it is also easier to sell clients on .Net apps than on Access applications, justifiably or not. We build our apps so that we can connect to either an Access or SQL Server backend without changing any of the code, which makes it easy to switch a client over when they need the added capacity of SQL Server. It takes planning and learning and effort, so don't do it unless you are willing to commit to those things and you are willing to use managed code. There is no point at all in building one-off code in .Net. That's a waste of time and energy. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 21, 2006 11:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBA in Office 12 and beyond...) OK Charlotte, What are these goodies? And the big question - what does it take to do the conversion (software, learning curve time, how to make reports, convert forms vs. modules vs. reports, etc.) For an Access application that has ~50K lines of code, is it worth it? Thanks! Dan -----Original Message----- That "juicy VBA goodness" can't hold a candle to the .Net goodies, Ken. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Monday, February 20, 2006 2:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... In fact, if you look at Visual Studio 2005 Tools for Office, you'll find it has no built-in support for Access yet... http://msdn.microsoft.com/office/understanding/vsto/default.aspx As usual, Access lags behind its Office companions in terms of the latest development platform support. That means we'll be able to hang onto that juicy VBA goodness for at least one release beyond any of the other Office components. :) -Ken -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Sunday, February 19, 2006 7:24 AM To: !DBA-MAIN Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Tue Feb 21 15:32:02 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 21 Feb 2006 13:32:02 -0800 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) In-Reply-To: Message-ID: <000201c6372e$4157bc50$0200a8c0@murphyf3vdfepi> Charlotte, I am interested in becoming proficient in .NET but am concerned that our development costs will go up to our customers if use that technology. What do you think the time comparison is to develop an application in Access vs .NET once the .NET learning has been accomplished? I recently read an editorial in Smart Access by Peter Vogel who has been working in both environments that indicated that he thought Access is a much more efficient environment to develop in, assuming that the functionality you require is supported by Access. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 21, 2006 1:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) I don't know where to start, Dan. It would be a total rewrite, but the program logic could be used to build the new app. Learning curve is steep because *everything* is an object and doing anything to it (like populating a string that already has text) creates a NEW object with the same name. You don't do things the same way, but it is much easier to get at and manipulate data, to create datasets that include related fields from another table, to create reusable code. The list is endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and user controls is quite different from Access because you have so much control over the objects and their behavior. Reports can be used in our web-based app or on Windows without modifications. Do you want to bind different parts of a form or report to different data sources? No problem. Do you want to bind controls to the top, left, right, bottom of the container so they move when the object resizes? No problem. Do you want a panel to fill its allocated space and stay that way through form resizes? No problem. Do you want custom behavior from a control? Create your own and use it in you apps. I'm a fan, as you can tell, but it is also easier to sell clients on .Net apps than on Access applications, justifiably or not. We build our apps so that we can connect to either an Access or SQL Server backend without changing any of the code, which makes it easy to switch a client over when they need the added capacity of SQL Server. It takes planning and learning and effort, so don't do it unless you are willing to commit to those things and you are willing to use managed code. There is no point at all in building one-off code in .Net. That's a waste of time and energy. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 21, 2006 11:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBA in Office 12 and beyond...) OK Charlotte, What are these goodies? And the big question - what does it take to do the conversion (software, learning curve time, how to make reports, convert forms vs. modules vs. reports, etc.) For an Access application that has ~50K lines of code, is it worth it? Thanks! Dan -----Original Message----- That "juicy VBA goodness" can't hold a candle to the .Net goodies, Ken. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Monday, February 20, 2006 2:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... In fact, if you look at Visual Studio 2005 Tools for Office, you'll find it has no built-in support for Access yet... http://msdn.microsoft.com/office/understanding/vsto/default.aspx As usual, Access lags behind its Office companions in terms of the latest development platform support. That means we'll be able to hang onto that juicy VBA goodness for at least one release beyond any of the other Office components. :) -Ken -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Sunday, February 19, 2006 7:24 AM To: !DBA-MAIN Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Feb 21 15:50:51 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 21 Feb 2006 15:50:51 -0600 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) In-Reply-To: <4135463.1140556914973.JavaMail.root@sniper20> Message-ID: <000401c63730$e22e97a0$0200a8c0@danwaters> Thanks Charlotte, My customers typically want customized or new modules, unique to them, so it sounds like sticking with Access is probably correct. I think you've improved my career choices! Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 21, 2006 3:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) I don't know where to start, Dan. It would be a total rewrite, but the program logic could be used to build the new app. Learning curve is steep because *everything* is an object and doing anything to it (like populating a string that already has text) creates a NEW object with the same name. You don't do things the same way, but it is much easier to get at and manipulate data, to create datasets that include related fields from another table, to create reusable code. The list is endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and user controls is quite different from Access because you have so much control over the objects and their behavior. Reports can be used in our web-based app or on Windows without modifications. Do you want to bind different parts of a form or report to different data sources? No problem. Do you want to bind controls to the top, left, right, bottom of the container so they move when the object resizes? No problem. Do you want a panel to fill its allocated space and stay that way through form resizes? No problem. Do you want custom behavior from a control? Create your own and use it in you apps. I'm a fan, as you can tell, but it is also easier to sell clients on .Net apps than on Access applications, justifiably or not. We build our apps so that we can connect to either an Access or SQL Server backend without changing any of the code, which makes it easy to switch a client over when they need the added capacity of SQL Server. It takes planning and learning and effort, so don't do it unless you are willing to commit to those things and you are willing to use managed code. There is no point at all in building one-off code in .Net. That's a waste of time and energy. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 21, 2006 11:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBA in Office 12 and beyond...) OK Charlotte, What are these goodies? And the big question - what does it take to do the conversion (software, learning curve time, how to make reports, convert forms vs. modules vs. reports, etc.) For an Access application that has ~50K lines of code, is it worth it? Thanks! Dan -----Original Message----- That "juicy VBA goodness" can't hold a candle to the .Net goodies, Ken. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Monday, February 20, 2006 2:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... In fact, if you look at Visual Studio 2005 Tools for Office, you'll find it has no built-in support for Access yet... http://msdn.microsoft.com/office/understanding/vsto/default.aspx As usual, Access lags behind its Office companions in terms of the latest development platform support. That means we'll be able to hang onto that juicy VBA goodness for at least one release beyond any of the other Office components. :) -Ken -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Sunday, February 19, 2006 7:24 AM To: !DBA-MAIN Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Tue Feb 21 16:06:33 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 22 Feb 2006 01:06:33 +0300 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBA in Office 12 and beyond...) References: <000001c6371c$173c7d50$0200a8c0@danwaters> Message-ID: <001301c63733$209b8280$6401a8c0@Nant> > For an Access application that has ~50K lines of code, is it worth it? Dan, It all depends of course and it have to be carefully planned... Rough first estimation (I assume your code is rather clean and well tested): if you don't plan to rewrite DAO/ADO -> ADO.NET during conversion and if we assume that these 50K of code lines are not heavily MS Access object model bound - i.e. that these are more utility/data processing code then I'd say 50K code lines conversion VBA ->VB = 10 man/weeks (5 weeks code conversion, 5 weeks tests preparation, testing, deploying).... I did multiply "cowboy programmer estimate" of 4-5 weeks by two. It may need to be multiplied another two times to have 20 man/weeks, especially if you have a lot of code bound to MS Access forms specific forms and if you have a lot of complicated reports. One of my experiences of VBA (3 MS Excel add-ins) to VSTO based XL add-ins: - source code in three VBA addins: Sources ======= Files 74 (500KB) Pages 229 Words 47264 Chars (no spaces) 349,959 Chars (with spaces) 452,476 Paragraphs 11,840 Lines 14,621 Result ====== Files 76 (1MB) Pages 416 Words 88,454 Chars (no spaces) 803,394 Chars (with spaces) 1,066, 778 Paragraphs 18,123 Lines 26,460 The stats are collected by MS Word with all text merged into one file for source and for destination projects, font used 10pt Courrier new, page size A4. The result text size is bigger because during automatic conversion quite some comments are inserted, which I didn't delete all and because I did leave quite some converted code commented to see what was done etc. Conversion took one week work from scratch without in advance knowledge on how to write COM Add-ins using VSTO etc. There were several simple MS Forms forms only. During conversion DAO and ADO weren't converted to ADO.NET. Recap ===== If you/your company/customers are betting on .NET Framework(i.e. this is accepted long term goal and you have resources) then I'd not think long and just go (VS.NET 2005) - the more you will be programming on VB.NET/C# the more you feel yourself much more comfortable and safe than in VBA and after some (usally not long) start-up delay you will be quickly getting development time acceleration... Shamil ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 21, 2006 10:22 PM Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBA in Office 12 and beyond...) > OK Charlotte, > > What are these goodies? And the big question - what does it take to do > the > conversion (software, learning curve time, how to make reports, convert > forms vs. modules vs. reports, etc.) > > For an Access application that has ~50K lines of code, is it worth it? > > Thanks! > Dan > > > -----Original Message----- > > That "juicy VBA goodness" can't hold a candle to the .Net goodies, Ken. > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert > Sent: Monday, February 20, 2006 2:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > > > In fact, if you look at Visual Studio 2005 Tools for Office, you'll find > it has no built-in support for Access yet... > > http://msdn.microsoft.com/office/understanding/vsto/default.aspx > > As usual, Access lags behind its Office companions in terms of the > latest development platform support. > > That means we'll be able to hang onto that juicy VBA goodness for at > least one release beyond any of the other Office components. > > :) > > -Ken > > > -----Original Message----- > From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] > Sent: Sunday, February 19, 2006 7:24 AM > To: !DBA-MAIN > Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 > > Shamil > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From erbachs at gmail.com Tue Feb 21 16:04:44 2006 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 21 Feb 2006 16:04:44 -0600 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBA in Office 12 and beyond...) In-Reply-To: References: Message-ID: <39cb22f30602211404r96d043fsa9258fe4a9003992@mail.gmail.com> Charlotte, Very good little summary of the features/benefits of using .NET. Could you tell me what resources you've used to support your learning curve? That is, books, on-line code samples, hands-on courses, magazines, web sites, etc. Do you have any "mentors"? People who you think are tops when it comes to writing about .NET or coding in .NET? Thanks, Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/21/06, Charlotte Foust wrote: > I don't know where to start, Dan. It would be a total rewrite, but the > program logic could be used to build the new app. Learning curve is > steep because *everything* is an object and doing anything to it (like > populating a string that already has text) creates a NEW object with the > same name. You don't do things the same way, but it is much easier to > get at and manipulate data, to create datasets that include related > fields from another table, to create reusable code. The list is > endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and user > controls is quite different from Access because you have so much control > over the objects and their behavior. Reports can be used in our > web-based app or on Windows without modifications. Do you want to bind > different parts of a form or report to different data sources? No > problem. Do you want to bind controls to the top, left, right, bottom > of the container so they move when the object resizes? No problem. Do > you want a panel to fill its allocated space and stay that way through > form resizes? No problem. Do you want custom behavior from a control? > Create your own and use it in you apps. > > I'm a fan, as you can tell, but it is also easier to sell clients on > .Net apps than on Access applications, justifiably or not. We build our > apps so that we can connect to either an Access or SQL Server backend > without changing any of the code, which makes it easy to switch a client > over when they need the added capacity of SQL Server. It takes planning > and learning and effort, so don't do it unless you are willing to commit > to those things and you are willing to use managed code. There is no > point at all in building one-off code in .Net. That's a waste of time > and energy. > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, February 21, 2006 11:22 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news > -VBA in Office 12 and beyond...) > > > OK Charlotte, > > What are these goodies? And the big question - what does it take to do > the conversion (software, learning curve time, how to make reports, > convert forms vs. modules vs. reports, etc.) > > For an Access application that has ~50K lines of code, is it worth it? > > Thanks! > Dan From cfoust at infostatsystems.com Tue Feb 21 16:13:55 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 21 Feb 2006 14:13:55 -0800 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) Message-ID: My employer purchased the .Net training series from AppDev and I went through quite a bit of it. I also have a couple of Rick Dobsons books on VB.Net and a very useful tutorial book, Database Programming with Visual Basic.Net and ADO.Net. It is out of date and doesn't use Option strict, so it is a good exercise to make the examples run anyhow in a current and more restrictive environment. ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Tuesday, February 21, 2006 2:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) Charlotte, Very good little summary of the features/benefits of using .NET. Could you tell me what resources you've used to support your learning curve? That is, books, on-line code samples, hands-on courses, magazines, web sites, etc. Do you have any "mentors"? People who you think are tops when it comes to writing about .NET or coding in .NET? Thanks, Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/21/06, Charlotte Foust wrote: > I don't know where to start, Dan. It would be a total rewrite, but > the program logic could be used to build the new app. Learning curve > is steep because *everything* is an object and doing anything to it > (like populating a string that already has text) creates a NEW object > with the same name. You don't do things the same way, but it is much > easier to get at and manipulate data, to create datasets that include > related fields from another table, to create reusable code. The list > is endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and > user controls is quite different from Access because you have so much > control over the objects and their behavior. Reports can be used in > our web-based app or on Windows without modifications. Do you want to > bind different parts of a form or report to different data sources? > No problem. Do you want to bind controls to the top, left, right, > bottom of the container so they move when the object resizes? No > problem. Do you want a panel to fill its allocated space and stay > that way through form resizes? No problem. Do you want custom > behavior from a control? Create your own and use it in you apps. > > I'm a fan, as you can tell, but it is also easier to sell clients on > .Net apps than on Access applications, justifiably or not. We build > our apps so that we can connect to either an Access or SQL Server > backend without changing any of the code, which makes it easy to > switch a client over when they need the added capacity of SQL Server. > It takes planning and learning and effort, so don't do it unless you > are willing to commit to those things and you are willing to use > managed code. There is no point at all in building one-off code in > .Net. That's a waste of time and energy. > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, February 21, 2006 11:22 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > news -VBA in Office 12 and beyond...) > > > OK Charlotte, > > What are these goodies? And the big question - what does it take to > do the conversion (software, learning curve time, how to make reports, > convert forms vs. modules vs. reports, etc.) > > For an Access application that has ~50K lines of code, is it worth it? > > Thanks! > Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Tue Feb 21 19:12:28 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 21 Feb 2006 17:12:28 -0800 Subject: [AccessD] Some vba help please Message-ID: <000301c6374d$0e7f48b0$6701a8c0@HPLaptop> Private Sub Accident_Date_AfterUpdate() Me.txtNewAccidentID = Right(txtAccidentDate, 4) & " - " & DMax(NewAccidentID, [20_tblAccidentmaster]) End Sub I am trying to build a new key for each record in a table. Right(txtAccidentDate, 4) gets the year. " & right(DMax(NewAccidentID, [20_tblAccidentmaster]),3)+1 gets the next sequential number. 1. The code is not firing. I am getting no error or value. 2. Does this code look correct to my purpose. Joe Hecht jmhecht at earthlink.net From erbachs at gmail.com Tue Feb 21 19:36:45 2006 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 21 Feb 2006 19:36:45 -0600 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) In-Reply-To: References: Message-ID: <39cb22f30602211736wa222dd4ha3649fda1d56bb96@mail.gmail.com> Charlotte, Thank you very much. I have the Murach series of .NET books, two O'Reilly books on ASP.NET (the Cookbook and Programming With), three early Microsoft books on .NET, and a Wrox book on Crystal Reports. My Safari subscription has been very useful along those lines, too. On my bookshelf I've got the O'Reilly ADO.NET Cookbook, the Programming ASP.NET 3rd edition, and the Programming C# 4th edition. Are you talking about the .NET Power Suite for Visual Basic .NET or Visual C# .NET? I see that those are currently $2517 and $1437 without books. Hoo boy! I'll bet they were pretty thorough! I see a used copy of Rick Dobson's "Programming Microsoft SQL Server 2000 with Microsoft Visual Basic .NET" available on Amazon for $135.99!! Otherwise he has a lot of Access-based books. Don't see any others on .NET really except for one on SQL Server 2005 Express. F. Scott Barker appears to be the author of that 2002 book on ADO.NET and VB.NET. Thanks again. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/21/06, Charlotte Foust wrote: > My employer purchased the .Net training series from AppDev and I went > through quite a bit of it. I also have a couple of Rick Dobsons books > on VB.Net and a very useful tutorial book, Database Programming with > Visual Basic.Net and ADO.Net. It is out of date and doesn't use Option > strict, so it is a good exercise to make the examples run anyhow in a > current and more restrictive environment. ;o> > > Charlotte > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Tuesday, February 21, 2006 2:05 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news > -VBAin Office 12 and beyond...) > > > Charlotte, > > Very good little summary of the features/benefits of using .NET. > > Could you tell me what resources you've used to support your learning > curve? That is, books, on-line code samples, hands-on courses, > magazines, web sites, etc. Do you have any "mentors"? People who you > think are tops when it comes to writing about .NET or coding in .NET? > > Thanks, > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > > On 2/21/06, Charlotte Foust wrote: > > I don't know where to start, Dan. It would be a total rewrite, but > > the program logic could be used to build the new app. Learning curve > > is steep because *everything* is an object and doing anything to it > > (like populating a string that already has text) creates a NEW object > > with the same name. You don't do things the same way, but it is much > > easier to get at and manipulate data, to create datasets that include > > related fields from another table, to create reusable code. The list > > is endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and > > user controls is quite different from Access because you have so much > > control over the objects and their behavior. Reports can be used in > > our web-based app or on Windows without modifications. Do you want to > > > bind different parts of a form or report to different data sources? > > No problem. Do you want to bind controls to the top, left, right, > > bottom of the container so they move when the object resizes? No > > problem. Do you want a panel to fill its allocated space and stay > > that way through form resizes? No problem. Do you want custom > > behavior from a control? Create your own and use it in you apps. > > > > I'm a fan, as you can tell, but it is also easier to sell clients on > > .Net apps than on Access applications, justifiably or not. We build > > our apps so that we can connect to either an Access or SQL Server > > backend without changing any of the code, which makes it easy to > > switch a client over when they need the added capacity of SQL Server. > > > It takes planning and learning and effort, so don't do it unless you > > are willing to commit to those things and you are willing to use > > managed code. There is no point at all in building one-off code in > > .Net. That's a waste of time and energy. > > > > Charlotte Foust > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > > Sent: Tuesday, February 21, 2006 11:22 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > > news -VBA in Office 12 and beyond...) > > > > > > OK Charlotte, > > > > What are these goodies? And the big question - what does it take to > > do the conversion (software, learning curve time, how to make reports, > > > convert forms vs. modules vs. reports, etc.) > > > > For an Access application that has ~50K lines of code, is it worth it? > > > > Thanks! > > Dan > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security From cfoust at infostatsystems.com Tue Feb 21 19:38:32 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 21 Feb 2006 17:38:32 -0800 Subject: [AccessD] Some vba help please Message-ID: It looks to me like you're trying to use the same NewAccidentID for all the records. Surely that isn't what you wanted is it? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, February 21, 2006 5:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some vba help please Private Sub Accident_Date_AfterUpdate() Me.txtNewAccidentID = Right(txtAccidentDate, 4) & " - " & DMax(NewAccidentID, [20_tblAccidentmaster]) End Sub I am trying to build a new key for each record in a table. Right(txtAccidentDate, 4) gets the year. " & right(DMax(NewAccidentID, [20_tblAccidentmaster]),3)+1 gets the next sequential number. 1. The code is not firing. I am getting no error or value. 2. Does this code look correct to my purpose. Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Tue Feb 21 19:47:45 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 21 Feb 2006 17:47:45 -0800 Subject: [AccessD] Some vba help please In-Reply-To: Message-ID: <000f01c63751$fad1a600$6701a8c0@HPLaptop> Charlotte I am trying to make a new field. Their current key system 1. Will cause duplicate values in 2010 2. Does not allow proper numerical sort now. Current system is first and last digit of year + next sequence number 19-01 19-02 20-01 20-112 20-02 And so on I want to build 2000-001 2000-002 2000-003 Etc Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 21, 2006 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Some vba help please It looks to me like you're trying to use the same NewAccidentID for all the records. Surely that isn't what you wanted is it? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, February 21, 2006 5:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some vba help please Private Sub Accident_Date_AfterUpdate() Me.txtNewAccidentID = Right(txtAccidentDate, 4) & " - " & DMax(NewAccidentID, [20_tblAccidentmaster]) End Sub I am trying to build a new key for each record in a table. Right(txtAccidentDate, 4) gets the year. " & right(DMax(NewAccidentID, [20_tblAccidentmaster]),3)+1 gets the next sequential number. 1. The code is not firing. I am getting no error or value. 2. Does this code look correct to my purpose. Joe Hecht jmhecht 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 KP at sdsonline.net Tue Feb 21 19:51:12 2006 From: KP at sdsonline.net (Kath Pelletti) Date: Wed, 22 Feb 2006 12:51:12 +1100 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) References: <39cb22f30602211736wa222dd4ha3649fda1d56bb96@mail.gmail.com> Message-ID: <006501c63752$7645a700$6501a8c0@user> It's interesting to see what everyone is reading........ I recently ordered these (still waiting). I'll post back an opinion when I've been through them: ASP .NET Developer's Guide by Buczek, Greg Visual Basic 2005 Programmer's Reference (Programmer to Programmer)" Rod Stephens; My problem has been finding stuff which relates to the latest 2005 version. Kath ----- Original Message ----- From: Steve Erbach To: Access Developers discussion and problem solving Sent: Wednesday, February 22, 2006 12:36 PM Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) Charlotte, Thank you very much. I have the Murach series of .NET books, two O'Reilly books on ASP.NET (the Cookbook and Programming With), three early Microsoft books on .NET, and a Wrox book on Crystal Reports. My Safari subscription has been very useful along those lines, too. On my bookshelf I've got the O'Reilly ADO.NET Cookbook, the Programming ASP.NET 3rd edition, and the Programming C# 4th edition. Are you talking about the .NET Power Suite for Visual Basic .NET or Visual C# .NET? I see that those are currently $2517 and $1437 without books. Hoo boy! I'll bet they were pretty thorough! I see a used copy of Rick Dobson's "Programming Microsoft SQL Server 2000 with Microsoft Visual Basic .NET" available on Amazon for $135.99!! Otherwise he has a lot of Access-based books. Don't see any others on .NET really except for one on SQL Server 2005 Express. F. Scott Barker appears to be the author of that 2002 book on ADO.NET and VB.NET. Thanks again. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/21/06, Charlotte Foust wrote: > My employer purchased the .Net training series from AppDev and I went > through quite a bit of it. I also have a couple of Rick Dobsons books > on VB.Net and a very useful tutorial book, Database Programming with > Visual Basic.Net and ADO.Net. It is out of date and doesn't use Option > strict, so it is a good exercise to make the examples run anyhow in a > current and more restrictive environment. ;o> > > Charlotte > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Tuesday, February 21, 2006 2:05 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news > -VBAin Office 12 and beyond...) > > > Charlotte, > > Very good little summary of the features/benefits of using .NET. > > Could you tell me what resources you've used to support your learning > curve? That is, books, on-line code samples, hands-on courses, > magazines, web sites, etc. Do you have any "mentors"? People who you > think are tops when it comes to writing about .NET or coding in .NET? > > Thanks, > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > > On 2/21/06, Charlotte Foust wrote: > > I don't know where to start, Dan. It would be a total rewrite, but > > the program logic could be used to build the new app. Learning curve > > is steep because *everything* is an object and doing anything to it > > (like populating a string that already has text) creates a NEW object > > with the same name. You don't do things the same way, but it is much > > easier to get at and manipulate data, to create datasets that include > > related fields from another table, to create reusable code. The list > > is endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and > > user controls is quite different from Access because you have so much > > control over the objects and their behavior. Reports can be used in > > our web-based app or on Windows without modifications. Do you want to > > > bind different parts of a form or report to different data sources? > > No problem. Do you want to bind controls to the top, left, right, > > bottom of the container so they move when the object resizes? No > > problem. Do you want a panel to fill its allocated space and stay > > that way through form resizes? No problem. Do you want custom > > behavior from a control? Create your own and use it in you apps. > > > > I'm a fan, as you can tell, but it is also easier to sell clients on > > .Net apps than on Access applications, justifiably or not. We build > > our apps so that we can connect to either an Access or SQL Server > > backend without changing any of the code, which makes it easy to > > switch a client over when they need the added capacity of SQL Server. > > > It takes planning and learning and effort, so don't do it unless you > > are willing to commit to those things and you are willing to use > > managed code. There is no point at all in building one-off code in > > .Net. That's a waste of time and energy. > > > > Charlotte Foust > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > > Sent: Tuesday, February 21, 2006 11:22 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > > news -VBA in Office 12 and beyond...) > > > > > > OK Charlotte, > > > > What are these goodies? And the big question - what does it take to > > do the conversion (software, learning curve time, how to make reports, > > > convert forms vs. modules vs. reports, etc.) > > > > For an Access application that has ~50K lines of code, is it worth it? > > > > Thanks! > > Dan > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From erbachs at gmail.com Tue Feb 21 20:32:35 2006 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 21 Feb 2006 20:32:35 -0600 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) In-Reply-To: <006501c63752$7645a700$6501a8c0@user> References: <39cb22f30602211736wa222dd4ha3649fda1d56bb96@mail.gmail.com> <006501c63752$7645a700$6501a8c0@user> Message-ID: <39cb22f30602211832t20ca7d79le10f5893fbd07a8c@mail.gmail.com> Kath, O'Reilly has these books on 2005 versions and .NET 2.0: C# Cookbook, 2nd edition Visual Basic 2005 in a Nutshell, 3rd edition Programming ASP.NET, 3rd edition ASP.NET 2.0, A Developer's Notebook Visual C# 2005, A Developer's Notebook Programming C#, 4th edition Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/21/06, Kath Pelletti wrote: > It's interesting to see what everyone is reading........ > > I recently ordered these (still waiting). I'll post back an opinion when I've been through them: > > ASP .NET Developer's Guide by Buczek, Greg > > Visual Basic 2005 Programmer's Reference (Programmer to Programmer)" > Rod Stephens; > > My problem has been finding stuff which relates to the latest 2005 version. > > Kath > ----- Original Message ----- > From: Steve Erbach > To: Access Developers discussion and problem solving > Sent: Wednesday, February 22, 2006 12:36 PM > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) > > > Charlotte, > > Thank you very much. > > I have the Murach series of .NET books, two O'Reilly books on ASP.NET > (the Cookbook and Programming With), three early Microsoft books on > .NET, and a Wrox book on Crystal Reports. My Safari subscription has > been very useful along those lines, too. On my bookshelf I've got the > O'Reilly ADO.NET Cookbook, the Programming ASP.NET 3rd edition, and > the Programming C# 4th edition. > > Are you talking about the .NET Power Suite for Visual Basic .NET or > Visual C# .NET? I see that those are currently $2517 and $1437 > without books. Hoo boy! I'll bet they were pretty thorough! > > I see a used copy of Rick Dobson's "Programming Microsoft SQL Server > 2000 with Microsoft Visual Basic .NET" available on Amazon for > $135.99!! > > Otherwise he has a lot of Access-based books. Don't see any others on > .NET really except for one on SQL Server 2005 Express. > > F. Scott Barker appears to be the author of that 2002 book on ADO.NET > and VB.NET. > > Thanks again. > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com From darrend at nimble.com.au Tue Feb 21 22:04:49 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 22 Feb 2006 15:04:49 +1100 Subject: [AccessD] Some vba help please In-Reply-To: <000f01c63751$fad1a600$6701a8c0@HPLaptop> Message-ID: <20060222040454.ZGAF14751.omta05ps.mx.bigpond.com@DENZILLAP> Hi Joe For what it's worth I would add a totally new column make it an autonumber Call it something Like IncidentID And make it the PK for the table And use that resulting IncidentID for all things like searches, building strings etc Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 22 February 2006 12:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Some vba help please Charlotte I am trying to make a new field. Their current key system 1. Will cause duplicate values in 2010 2. Does not allow proper numerical sort now. Current system is first and last digit of year + next sequence number 19-01 19-02 20-01 20-112 20-02 And so on I want to build 2000-001 2000-002 2000-003 Etc Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 21, 2006 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Some vba help please It looks to me like you're trying to use the same NewAccidentID for all the records. Surely that isn't what you wanted is it? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, February 21, 2006 5:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some vba help please Private Sub Accident_Date_AfterUpdate() Me.txtNewAccidentID = Right(txtAccidentDate, 4) & " - " & DMax(NewAccidentID, [20_tblAccidentmaster]) End Sub I am trying to build a new key for each record in a table. Right(txtAccidentDate, 4) gets the year. " & right(DMax(NewAccidentID, [20_tblAccidentmaster]),3)+1 gets the next sequential number. 1. The code is not firing. I am getting no error or value. 2. Does this code look correct to my purpose. Joe Hecht jmhecht 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 jmhecht at earthlink.net Tue Feb 21 22:15:18 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 21 Feb 2006 20:15:18 -0800 Subject: [AccessD] Some vba help please In-Reply-To: <20060222040454.ZGAF14751.omta05ps.mx.bigpond.com@DENZILLAP> Message-ID: <000001c63766$9732f990$6701a8c0@HPLaptop> That's my plan but the client is insisting on a counter type display as mentioned. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, February 21, 2006 8:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Some vba help please Hi Joe For what it's worth I would add a totally new column make it an autonumber Call it something Like IncidentID And make it the PK for the table And use that resulting IncidentID for all things like searches, building strings etc Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 22 February 2006 12:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Some vba help please Charlotte I am trying to make a new field. Their current key system 1. Will cause duplicate values in 2010 2. Does not allow proper numerical sort now. Current system is first and last digit of year + next sequence number 19-01 19-02 20-01 20-112 20-02 And so on I want to build 2000-001 2000-002 2000-003 Etc Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 21, 2006 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Some vba help please It looks to me like you're trying to use the same NewAccidentID for all the records. Surely that isn't what you wanted is it? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, February 21, 2006 5:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some vba help please Private Sub Accident_Date_AfterUpdate() Me.txtNewAccidentID = Right(txtAccidentDate, 4) & " - " & DMax(NewAccidentID, [20_tblAccidentmaster]) End Sub I am trying to build a new key for each record in a table. Right(txtAccidentDate, 4) gets the year. " & right(DMax(NewAccidentID, [20_tblAccidentmaster]),3)+1 gets the next sequential number. 1. The code is not firing. I am getting no error or value. 2. Does this code look correct to my purpose. Joe Hecht jmhecht 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 martyconnelly at shaw.ca Tue Feb 21 22:37:06 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 21 Feb 2006 20:37:06 -0800 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) References: <000401c63730$e22e97a0$0200a8c0@danwaters> Message-ID: <43FBEA72.1040401@shaw.ca> You might want to look at tools like IronSpeed Designer for development speed. http://www.devx.com/IronSpeedVS/Door/17479 http://www.ironspeed.com/products/ It is about $2000 and meant generally for ASP.Net apps to Access or SQL backends Dan Waters wrote: >Thanks Charlotte, > >My customers typically want customized or new modules, unique to them, so it >sounds like sticking with Access is probably correct. > >I think you've improved my career choices! > >Thanks! >Dan > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >Sent: Tuesday, February 21, 2006 3:16 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news >-VBAin Office 12 and beyond...) > >I don't know where to start, Dan. It would be a total rewrite, but the >program logic could be used to build the new app. Learning curve is >steep because *everything* is an object and doing anything to it (like >populating a string that already has text) creates a NEW object with the >same name. You don't do things the same way, but it is much easier to >get at and manipulate data, to create datasets that include related >fields from another table, to create reusable code. The list is >endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and user >controls is quite different from Access because you have so much control >over the objects and their behavior. Reports can be used in our >web-based app or on Windows without modifications. Do you want to bind >different parts of a form or report to different data sources? No >problem. Do you want to bind controls to the top, left, right, bottom >of the container so they move when the object resizes? No problem. Do >you want a panel to fill its allocated space and stay that way through >form resizes? No problem. Do you want custom behavior from a control? >Create your own and use it in you apps. > >I'm a fan, as you can tell, but it is also easier to sell clients on >.Net apps than on Access applications, justifiably or not. We build our >apps so that we can connect to either an Access or SQL Server backend >without changing any of the code, which makes it easy to switch a client >over when they need the added capacity of SQL Server. It takes planning >and learning and effort, so don't do it unless you are willing to commit >to those things and you are willing to use managed code. There is no >point at all in building one-off code in .Net. That's a waste of time >and energy. > >Charlotte Foust > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, February 21, 2006 11:22 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news >-VBA in Office 12 and beyond...) > > >OK Charlotte, > >What are these goodies? And the big question - what does it take to do >the conversion (software, learning curve time, how to make reports, >convert forms vs. modules vs. reports, etc.) > >For an Access application that has ~50K lines of code, is it worth it? > >Thanks! >Dan > > >-----Original Message----- > >That "juicy VBA goodness" can't hold a candle to the .Net goodies, Ken. > >Charlotte Foust > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert >Sent: Monday, February 20, 2006 2:00 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > > >In fact, if you look at Visual Studio 2005 Tools for Office, you'll find >it has no built-in support for Access yet... > >http://msdn.microsoft.com/office/understanding/vsto/default.aspx > >As usual, Access lags behind its Office companions in terms of the >latest development platform support. > >That means we'll be able to hang onto that juicy VBA goodness for at >least one release beyond any of the other Office components. > >:) > >-Ken > > >-----Original Message----- >From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] >Sent: Sunday, February 19, 2006 7:24 AM >To: !DBA-MAIN >Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > >http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 > >Shamil > > > > -- Marty Connelly Victoria, B.C. Canada From jmhecht at earthlink.net Tue Feb 21 23:14:02 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 21 Feb 2006 21:14:02 -0800 Subject: [AccessD] DETECT WHEN FORM IS IN ADD NEW RECORD MODE Message-ID: <000001c6376e$cbf948c0$6701a8c0@HPLaptop> I need to do this. If form.add new = true then Cbo1.visible = false Cbo2.visible = true Else Cbo1.visible = true Cbo2.visible = false End if Thanks Joe Hecht jmhecht at earthlink.net From newsgrps at dalyn.co.nz Tue Feb 21 23:32:42 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 22 Feb 2006 18:32:42 +1300 Subject: [AccessD] DETECT WHEN FORM IS IN ADD NEW RECORD MODE Message-ID: <7.0.0.16.0.20060222183237.01a62f48@dalyn.co.nz> Try If Me.NewRecord = True Then ... Regards David At 22/02/2006, you wrote: >I need to do this. > > If form.add new = true then > Cbo1.visible = false > Cbo2.visible = true > Else > Cbo1.visible = true > Cbo2.visible = false > End if > >Thanks > >Joe Hecht > >jmhecht at earthlink.net From darrend at nimble.com.au Wed Feb 22 00:07:01 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 22 Feb 2006 17:07:01 +1100 Subject: [AccessD] Some vba help please In-Reply-To: <000001c63766$9732f990$6701a8c0@HPLaptop> Message-ID: <20060222060704.VVMK15112.omta03ps.mx.bigpond.com@DENZILLAP> Yep - that's OK - Just build it using the PK This air code =- not tested but you'll get the idea Eg Dim intMyNewCounter as integer intMyNewCounter = Left(SomeYearOnlyDate,1) & right(SomeYearOnlyDate,1) & "-" & Format(me.IncidentID,"000") Then put intMyNewCounter into some field in a table as you are planning Display it - if you must - on some form - no problem But in your searches search on the PK not this formatted Sequence Number HTH See ya Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 22 February 2006 3:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Some vba help please That's my plan but the client is insisting on a counter type display as mentioned. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, February 21, 2006 8:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Some vba help please Hi Joe For what it's worth I would add a totally new column make it an autonumber Call it something Like IncidentID And make it the PK for the table And use that resulting IncidentID for all things like searches, building strings etc Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 22 February 2006 12:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Some vba help please Charlotte I am trying to make a new field. Their current key system 1. Will cause duplicate values in 2010 2. Does not allow proper numerical sort now. Current system is first and last digit of year + next sequence number 19-01 19-02 20-01 20-112 20-02 And so on I want to build 2000-001 2000-002 2000-003 Etc Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 21, 2006 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Some vba help please It looks to me like you're trying to use the same NewAccidentID for all the records. Surely that isn't what you wanted is it? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, February 21, 2006 5:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some vba help please Private Sub Accident_Date_AfterUpdate() Me.txtNewAccidentID = Right(txtAccidentDate, 4) & " - " & DMax(NewAccidentID, [20_tblAccidentmaster]) End Sub I am trying to build a new key for each record in a table. Right(txtAccidentDate, 4) gets the year. " & right(DMax(NewAccidentID, [20_tblAccidentmaster]),3)+1 gets the next sequential number. 1. The code is not firing. I am getting no error or value. 2. Does this code look correct to my purpose. Joe Hecht jmhecht 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Wed Feb 22 00:11:06 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 22 Feb 2006 17:11:06 +1100 Subject: [AccessD] DETECT WHEN FORM IS IN ADD NEW RECORD MODE In-Reply-To: <000001c6376e$cbf948c0$6701a8c0@HPLaptop> Message-ID: <20060222061109.SHZZ17345.omta04ps.mx.bigpond.com@DENZILLAP> Hi Joe Like David said Test the Me.NewRecord property If you are gonna hide and disable certain things on a form - it is best You make your form's default view as: single view - IE NOT continuos Eg like If me.newrecord = true then 'hide or make visible 'or enable/disable whatever you want Else 'Not a new record 'Enable and make visible the normal stuff End if You really don't need the "else" unless you can move from record to record Using nav buttons etc. HTH Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 22 February 2006 4:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] DETECT WHEN FORM IS IN ADD NEW RECORD MODE I need to do this. If form.add new = true then Cbo1.visible = false Cbo2.visible = true Else Cbo1.visible = true Cbo2.visible = false End if Thanks Joe Hecht jmhecht at earthlink.net -- 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 22 04:41:28 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 22 Feb 2006 11:41:28 +0100 Subject: [AccessD] DETECT WHEN FORM IS IN ADD NEW RECORD MODE Message-ID: Hi Joe Use a variable: booNew = Me.NewRecord Cbo1.Visible = Not booNew Cbo2.Visible = booNew /gustav >>> jmhecht at earthlink.net 22-02-2006 06:14 >>> I need to do this. If form.add new = true then Cbo1.visible = false Cbo2.visible = true Else Cbo1.visible = true Cbo2.visible = false End if Thanks Joe Hecht jmhecht at earthlink.net From harkinsss at bellsouth.net Wed Feb 22 08:00:24 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 22 Feb 2006 09:00:24 -0500 Subject: [AccessD] Some vba help please In-Reply-To: <000001c63766$9732f990$6701a8c0@HPLaptop> Message-ID: <000001c637b8$549b1e80$a1b3d6d1@SUSANONE> You can have both. :) Give the insisting client a counter for display that doesn't really do anything. Useless, yes, except that it makes the client feel better. Susan H. That's my plan but the client is insisting on a counter type display as mentioned. Hi Joe For what it's worth I would add a totally new column make it an autonumber Call it something Like IncidentID And make it the PK for the table And use that resulting IncidentID for all things like searches, building strings etc Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 22 February 2006 12:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Some vba help please Charlotte I am trying to make a new field. Their current key system 1. Will cause duplicate values in 2010 2. Does not allow proper numerical sort now. Current system is first and last digit of year + next sequence number 19-01 19-02 20-01 20-112 20-02 And so on I want to build 2000-001 2000-002 2000-003 Etc Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 21, 2006 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Some vba help please It looks to me like you're trying to use the same NewAccidentID for all the records. Surely that isn't what you wanted is it? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, February 21, 2006 5:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some vba help please Private Sub Accident_Date_AfterUpdate() Me.txtNewAccidentID = Right(txtAccidentDate, 4) & " - " & DMax(NewAccidentID, [20_tblAccidentmaster]) End Sub I am trying to build a new key for each record in a table. Right(txtAccidentDate, 4) gets the year. " & right(DMax(NewAccidentID, [20_tblAccidentmaster]),3)+1 gets the next sequential number. 1. The code is not firing. I am getting no error or value. 2. Does this code look correct to my purpose. Joe Hecht jmhecht 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.12/265 - Release Date: 2/20/2006 From cfoust at infostatsystems.com Wed Feb 22 10:42:50 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 22 Feb 2006 08:42:50 -0800 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) Message-ID: No, I'm not talking about any "power suites", and I didn't pay that much for the Dobson books. Yes Barker is the author of the other book. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Tuesday, February 21, 2006 5:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) Charlotte, Thank you very much. I have the Murach series of .NET books, two O'Reilly books on ASP.NET (the Cookbook and Programming With), three early Microsoft books on .NET, and a Wrox book on Crystal Reports. My Safari subscription has been very useful along those lines, too. On my bookshelf I've got the O'Reilly ADO.NET Cookbook, the Programming ASP.NET 3rd edition, and the Programming C# 4th edition. Are you talking about the .NET Power Suite for Visual Basic .NET or Visual C# .NET? I see that those are currently $2517 and $1437 without books. Hoo boy! I'll bet they were pretty thorough! I see a used copy of Rick Dobson's "Programming Microsoft SQL Server 2000 with Microsoft Visual Basic .NET" available on Amazon for $135.99!! Otherwise he has a lot of Access-based books. Don't see any others on .NET really except for one on SQL Server 2005 Express. F. Scott Barker appears to be the author of that 2002 book on ADO.NET and VB.NET. Thanks again. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/21/06, Charlotte Foust wrote: > My employer purchased the .Net training series from AppDev and I went > through quite a bit of it. I also have a couple of Rick Dobsons books > on VB.Net and a very useful tutorial book, Database Programming with > Visual Basic.Net and ADO.Net. It is out of date and doesn't use > Option strict, so it is a good exercise to make the examples run > anyhow in a current and more restrictive environment. ;o> > > Charlotte > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > Erbach > Sent: Tuesday, February 21, 2006 2:05 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news > -VBAin Office 12 and beyond...) > > > Charlotte, > > Very good little summary of the features/benefits of using .NET. > > Could you tell me what resources you've used to support your learning > curve? That is, books, on-line code samples, hands-on courses, > magazines, web sites, etc. Do you have any "mentors"? People who you > think are tops when it comes to writing about .NET or coding in .NET? > > Thanks, > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > > On 2/21/06, Charlotte Foust wrote: > > I don't know where to start, Dan. It would be a total rewrite, but > > the program logic could be used to build the new app. Learning > > curve is steep because *everything* is an object and doing anything > > to it (like populating a string that already has text) creates a NEW > > object with the same name. You don't do things the same way, but it > > is much easier to get at and manipulate data, to create datasets > > that include related fields from another table, to create reusable > > code. The list is endless. ADO.Net is GREAT, and I *liked* ADO. > > Building forms and user controls is quite different from Access > > because you have so much control over the objects and their > > behavior. Reports can be used in our web-based app or on Windows > > without modifications. Do you want to > > > bind different parts of a form or report to different data sources? > > No problem. Do you want to bind controls to the top, left, right, > > bottom of the container so they move when the object resizes? No > > problem. Do you want a panel to fill its allocated space and stay > > that way through form resizes? No problem. Do you want custom > > behavior from a control? Create your own and use it in you apps. > > > > I'm a fan, as you can tell, but it is also easier to sell clients on > > .Net apps than on Access applications, justifiably or not. We build > > our apps so that we can connect to either an Access or SQL Server > > backend without changing any of the code, which makes it easy to > > switch a client over when they need the added capacity of SQL > > Server. > > > It takes planning and learning and effort, so don't do it unless you > > are willing to commit to those things and you are willing to use > > managed code. There is no point at all in building one-off code in > > .Net. That's a waste of time and energy. > > > > Charlotte Foust > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan > > Waters > > Sent: Tuesday, February 21, 2006 11:22 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > > news -VBA in Office 12 and beyond...) > > > > > > OK Charlotte, > > > > What are these goodies? And the big question - what does it take to > > do the conversion (software, learning curve time, how to make > > reports, > > > convert forms vs. modules vs. reports, etc.) > > > > For an Access application that has ~50K lines of code, is it worth > > it? > > > > Thanks! > > Dan > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Feb 22 11:12:07 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 22 Feb 2006 17:12:07 +0000 Subject: [AccessD] Create/Hide Buttons on Form? Message-ID: Hello All, I'm attempting an app related to restaurant/bar management in A2K. The dilemma I have is in design. I want them to have the ability to add new products/seats...but I'm not sure the best way to approach this. For instance...if they add a new menu item...I want a new button to appear. Should I make a predetermined number of buttons and hide them or should I program the app to create and place a new button when the new value is added ( if this, suggestions?) Thanks, Mark A. Matte From dwaters at usinternet.com Wed Feb 22 11:41:23 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 22 Feb 2006 11:41:23 -0600 Subject: [AccessD] Create/Hide Buttons on Form? In-Reply-To: <25877181.1140628997022.JavaMail.root@sniper39> Message-ID: <000901c637d7$363a8920$0200a8c0@danwaters> Hi Mark, I've done something similar on a continuous form. However, I use a textbox masquerading as a button to create the effect of a button. (Solid background, Raised, Locked, etc.) The field the button is bound to would be your menu items, and the click event behind the control initiates the next steps. The only drawback to this is that the mouse cursor turns to an 'I' cursor when it's over a textbox. Maybe someone knows a way out of that. You might be able to use a label with its caption being set to the menu item field when the form opens. Best of Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 22, 2006 11:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Create/Hide Buttons on Form? Hello All, I'm attempting an app related to restaurant/bar management in A2K. The dilemma I have is in design. I want them to have the ability to add new products/seats...but I'm not sure the best way to approach this. For instance...if they add a new menu item...I want a new button to appear. Should I make a predetermined number of buttons and hide them or should I program the app to create and place a new button when the new value is added ( if this, suggestions?) Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Wed Feb 22 11:47:57 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 22 Feb 2006 12:47:57 -0500 Subject: [AccessD] Create/Hide Buttons on Form? In-Reply-To: <000901c637d7$363a8920$0200a8c0@danwaters> Message-ID: <001a01c637d8$1e7e38d0$a1b3d6d1@SUSANONE> The only drawback to this is that the mouse cursor turns to an 'I' cursor when it's over a textbox. Maybe someone knows a way out of that. ========Use the MousePointer property? Not sure that'll work here, but worth looking at. Susan H. From jimdettman at earthlink.net Wed Feb 22 12:00:41 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 22 Feb 2006 13:00:41 -0500 Subject: [AccessD] Create/Hide Buttons on Form? In-Reply-To: Message-ID: Mark, You can make a very flexible interface by pre-defining the buttons and using a table driven setup. I did a POS cash register many years ago that used this approach and it worked quite well. I'll send along a copy so you can see what I did. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Wednesday, February 22, 2006 12:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] Create/Hide Buttons on Form? Hello All, I'm attempting an app related to restaurant/bar management in A2K. The dilemma I have is in design. I want them to have the ability to add new products/seats...but I'm not sure the best way to approach this. For instance...if they add a new menu item...I want a new button to appear. Should I make a predetermined number of buttons and hide them or should I program the app to create and place a new button when the new value is added ( if this, suggestions?) Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Wed Feb 22 12:41:37 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Wed, 22 Feb 2006 13:41:37 -0500 Subject: [AccessD] Create/Hide Buttons on Form? Message-ID: I use labels for my buttons, like you are using a textbox...I have used these as well. The label is for the looks, and I place an invisible button over the top of it. I use the "mouse over", "click", and "on/lost focus" events of the button to call things and/or change the looks of the label. John W Clark >>> dwaters at usinternet.com 2/22/2006 12:41 PM >>> Hi Mark, The only drawback to this is that the mouse cursor turns to an 'I' cursor when it's over a textbox. Maybe someone knows a way out of that. From erbachs at gmail.com Wed Feb 22 12:58:27 2006 From: erbachs at gmail.com (Steve Erbach) Date: Wed, 22 Feb 2006 12:58:27 -0600 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) In-Reply-To: References: Message-ID: <39cb22f30602221058p4e423c9we121d875d386b091@mail.gmail.com> Charlotte, As far as the "power suite" I was just relaying what I found on the AppDev site. Since I'm my own employer I was trying to determine which ".NET training series" you have. AppDev has 17 different .NET "courses" ranging from 2 CD's worth up to 16 CD's. The .NET Power Suites have 73 CD's for the VB.NET suite and 40 CD's for the C# suite. There's also a .NET Web Development suite with 56 CD's. MCAD and MCSD certification suites are available, too. The Dobson book I found just struck me as funny since the ONLY copy available on Amazon had that outrageous price. Maybe it's really, really good! Thanks, Charlotte. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/22/06, Charlotte Foust wrote: > No, I'm not talking about any "power suites", and I didn't pay that much > for the Dobson books. Yes Barker is the author of the other book. > > Charlotte > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Tuesday, February 21, 2006 5:37 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > news-VBAin Office 12 and beyond...) > > > Charlotte, > > Thank you very much. > > I have the Murach series of .NET books, two O'Reilly books on ASP.NET > (the Cookbook and Programming With), three early Microsoft books on > .NET, and a Wrox book on Crystal Reports. My Safari subscription has > been very useful along those lines, too. On my bookshelf I've got the > O'Reilly ADO.NET Cookbook, the Programming ASP.NET 3rd edition, and the > Programming C# 4th edition. > > Are you talking about the .NET Power Suite for Visual Basic .NET or > Visual C# .NET? I see that those are currently $2517 and $1437 without > books. Hoo boy! I'll bet they were pretty thorough! > > I see a used copy of Rick Dobson's "Programming Microsoft SQL Server > 2000 with Microsoft Visual Basic .NET" available on Amazon for $135.99!! > > Otherwise he has a lot of Access-based books. Don't see any others on > .NET really except for one on SQL Server 2005 Express. > > F. Scott Barker appears to be the author of that 2002 book on ADO.NET > and VB.NET. > > Thanks again. > > Steve Erbach From boogieloogie at gmail.com Wed Feb 22 13:18:53 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Wed, 22 Feb 2006 15:18:53 -0400 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) In-Reply-To: <39cb22f30602221058p4e423c9we121d875d386b091@mail.gmail.com> References: <39cb22f30602221058p4e423c9we121d875d386b091@mail.gmail.com> Message-ID: <3bf43ee90602221118j1f713899pb275a6ce0b825737@mail.gmail.com> I program for the compact framework of VB.Net. With CF2.0 and VS 2005 now out the glorious braintrust at Micro$oft has did not include support for .cdb files (.mdb's little cousin) for Windows Mobile 5.0 . Even if you attempt to use tools such has the InTheHand adoce there is no ActiveSync support for the database conversion. They say they will come up with a patch but it will not be supported and that future versions of the Mobile OS may never offer any support again. In professional terms...THIS SUCKS UP THE WAZOO! On 2/22/06, Steve Erbach wrote: > > Charlotte, > > As far as the "power suite" I was just relaying what I found on the > AppDev site. Since I'm my own employer I was trying to determine > which ".NET training series" you have. AppDev has 17 different .NET > "courses" ranging from 2 CD's worth up to 16 CD's. The .NET Power > Suites have 73 CD's for the VB.NET suite and 40 CD's for the C# suite. > There's also a .NET Web Development suite with 56 CD's. MCAD and > MCSD certification suites are available, too. > > The Dobson book I found just struck me as funny since the ONLY copy > available on Amazon had that outrageous price. Maybe it's really, > really good! > > Thanks, Charlotte. > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > On 2/22/06, Charlotte Foust wrote: > > No, I'm not talking about any "power suites", and I didn't pay that much > > for the Dobson books. Yes Barker is the author of the other book. > > > > Charlotte > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > > Sent: Tuesday, February 21, 2006 5:37 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > > news-VBAin Office 12 and beyond...) > > > > > > Charlotte, > > > > Thank you very much. > > > > I have the Murach series of .NET books, two O'Reilly books on ASP.NET > > (the Cookbook and Programming With), three early Microsoft books on > > .NET, and a Wrox book on Crystal Reports. My Safari subscription has > > been very useful along those lines, too. On my bookshelf I've got the > > O'Reilly ADO.NET Cookbook, the Programming ASP.NET 3rd edition, and the > > Programming C# 4th edition. > > > > Are you talking about the .NET Power Suite for Visual Basic .NET or > > Visual C# .NET? I see that those are currently $2517 and $1437 without > > books. Hoo boy! I'll bet they were pretty thorough! > > > > I see a used copy of Rick Dobson's "Programming Microsoft SQL Server > > 2000 with Microsoft Visual Basic .NET" available on Amazon for $135.99!! > > > > Otherwise he has a lot of Access-based books. Don't see any others on > > .NET really except for one on SQL Server 2005 Express. > > > > F. Scott Barker appears to be the author of that 2002 book on ADO.NET > > and VB.NET. > > > > Thanks again. > > > > Steve Erbach > -- > 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 22 13:32:09 2006 From: developer at ultradnt.com (Steve Conklin) Date: Wed, 22 Feb 2006 14:32:09 -0500 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Goodnews-VBAin Office 12 and beyond...) In-Reply-To: <3bf43ee90602221118j1f713899pb275a6ce0b825737@mail.gmail.com> Message-ID: <200602221932.k1MJW7T84171@ultradnt.com> So they are forcing you to go with SQL CE? Are there any other options for Db's on PPC's? Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Boogie Loogie Sent: Wednesday, February 22, 2006 2:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Goodnews-VBAin Office 12 and beyond...) I program for the compact framework of VB.Net. With CF2.0 and VS 2005 now out the glorious braintrust at Micro$oft has did not include support for .cdb files (.mdb's little cousin) for Windows Mobile 5.0 . Even if you attempt to use tools such has the InTheHand adoce there is no ActiveSync support for the database conversion. They say they will come up with a patch but it will not be supported and that future versions of the Mobile OS may never offer any support again. In professional terms...THIS SUCKS UP THE WAZOO! On 2/22/06, Steve Erbach wrote: > > Charlotte, > > As far as the "power suite" I was just relaying what I found on the > AppDev site. Since I'm my own employer I was trying to determine > which ".NET training series" you have. AppDev has 17 different .NET > "courses" ranging from 2 CD's worth up to 16 CD's. The .NET Power > Suites have 73 CD's for the VB.NET suite and 40 CD's for the C# suite. > There's also a .NET Web Development suite with 56 CD's. MCAD and MCSD > certification suites are available, too. > > The Dobson book I found just struck me as funny since the ONLY copy > available on Amazon had that outrageous price. Maybe it's really, > really good! > > Thanks, Charlotte. > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > On 2/22/06, Charlotte Foust wrote: > > No, I'm not talking about any "power suites", and I didn't pay that > > much for the Dobson books. Yes Barker is the author of the other book. > > > > Charlotte > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > > Erbach > > Sent: Tuesday, February 21, 2006 5:37 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > > news-VBAin Office 12 and beyond...) > > > > > > Charlotte, > > > > Thank you very much. > > > > I have the Murach series of .NET books, two O'Reilly books on > > ASP.NET (the Cookbook and Programming With), three early Microsoft > > books on .NET, and a Wrox book on Crystal Reports. My Safari > > subscription has been very useful along those lines, too. On my > > bookshelf I've got the O'Reilly ADO.NET Cookbook, the Programming > > ASP.NET 3rd edition, and the Programming C# 4th edition. > > > > Are you talking about the .NET Power Suite for Visual Basic .NET or > > Visual C# .NET? I see that those are currently $2517 and $1437 > > without books. Hoo boy! I'll bet they were pretty thorough! > > > > I see a used copy of Rick Dobson's "Programming Microsoft SQL Server > > 2000 with Microsoft Visual Basic .NET" available on Amazon for $135.99!! > > > > Otherwise he has a lot of Access-based books. Don't see any others > > on .NET really except for one on SQL Server 2005 Express. > > > > F. Scott Barker appears to be the author of that 2002 book on > > ADO.NET and VB.NET. > > > > Thanks again. > > > > Steve Erbach > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 22 14:51:03 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 22 Feb 2006 12:51:03 -0800 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Goodnews-VBAin Office 12 and beyond...) Message-ID: Oh, I see. We got the 16 CD's, I think. I may have paid around that price for both of Rick's books, not just one. They should run around $60 apiece. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Wednesday, February 22, 2006 10:58 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Goodnews-VBAin Office 12 and beyond...) Charlotte, As far as the "power suite" I was just relaying what I found on the AppDev site. Since I'm my own employer I was trying to determine which ".NET training series" you have. AppDev has 17 different .NET "courses" ranging from 2 CD's worth up to 16 CD's. The .NET Power Suites have 73 CD's for the VB.NET suite and 40 CD's for the C# suite. There's also a .NET Web Development suite with 56 CD's. MCAD and MCSD certification suites are available, too. The Dobson book I found just struck me as funny since the ONLY copy available on Amazon had that outrageous price. Maybe it's really, really good! Thanks, Charlotte. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/22/06, Charlotte Foust wrote: > No, I'm not talking about any "power suites", and I didn't pay that > much for the Dobson books. Yes Barker is the author of the other > book. > > Charlotte > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > Erbach > Sent: Tuesday, February 21, 2006 5:37 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > news-VBAin Office 12 and beyond...) > > > Charlotte, > > Thank you very much. > > I have the Murach series of .NET books, two O'Reilly books on ASP.NET > (the Cookbook and Programming With), three early Microsoft books on > .NET, and a Wrox book on Crystal Reports. My Safari subscription has > been very useful along those lines, too. On my bookshelf I've got the > O'Reilly ADO.NET Cookbook, the Programming ASP.NET 3rd edition, and > the Programming C# 4th edition. > > Are you talking about the .NET Power Suite for Visual Basic .NET or > Visual C# .NET? I see that those are currently $2517 and $1437 > without books. Hoo boy! I'll bet they were pretty thorough! > > I see a used copy of Rick Dobson's "Programming Microsoft SQL Server > 2000 with Microsoft Visual Basic .NET" available on Amazon for > $135.99!! > > Otherwise he has a lot of Access-based books. Don't see any others on > .NET really except for one on SQL Server 2005 Express. > > F. Scott Barker appears to be the author of that 2002 book on ADO.NET > and VB.NET. > > Thanks again. > > Steve Erbach -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Feb 22 18:20:17 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 22 Feb 2006 18:20:17 -0600 Subject: [AccessD] Create/Hide Buttons on Form? In-Reply-To: <6930477.1140634012498.JavaMail.root@sniper19> Message-ID: <000801c6380e$ecfe6370$0200a8c0@danwaters> John, Who don't you just use the click event of the label? I've this as well and no one (but me) knows the difference. Dan -----Original Message----- I use labels for my buttons, like you are using a textbox...I have used these as well. The label is for the looks, and I place an invisible button over the top of it. I use the "mouse over", "click", and "on/lost focus" events of the button to call things and/or change the looks of the label. John W Clark >>> dwaters at usinternet.com 2/22/2006 12:41 PM >>> Hi Mark, The only drawback to this is that the mouse cursor turns to an 'I' cursor when it's over a textbox. Maybe someone knows a way out of that. -- 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 23 04:00:40 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 23 Feb 2006 11:00:40 +0100 Subject: [AccessD] Update query between access table and txt linked file does not work. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B63CB@stekelbes.ithelps.local> Hi I have a query between a Access table and a linked txt file in Access 2003. The access table contains articles but with a short article description, the linked txt file contains same articles with long descriptions. I want to update the access table so this also contains long descriptions. So I linked the 2 tabled based on ArtID but halfway the execution of the query it suddenly says "I cannot update tables that are linked with this ISAM". The thing is when setting the query to view I can change the descriptions manualy!!! And further more, I am only updating one field and that field is in the access table NOT in the linked table. I know I can workaround using code (slow!) or to import the txt file which bloats the database, but that are not solutions I want to implement unless I have to. Here's the query UPDATE DISTINCTROW PROD_MainIMPORT INNER JOIN TechData_Descriptions ON PROD_MainIMPORT.ProductCode = TechData_Descriptions.ArtID SET PROD_MainIMPORT.ProductDescription = [TechData_Descriptions.Description]; PROD_MainIMPORT = regular Access Table TechData_Descriptions= linked txt file. Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From Gustav at cactus.dk Thu Feb 23 05:11:06 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Feb 2006 12:11:06 +0100 Subject: [AccessD] Update query between access table and txt linked file does not work. Message-ID: Hi Erwin Well, one method is to use DLookup() to extract the long text from the linked textfile. Not very fast, but it works. Another - which will cause no bloat - is to import the textfile to a temp mdb file, link to that, update the data, and then delete the temp mdb. Also, I'm not sure a code solution will be that slow. Turn your update query into a select query, don't select fields from the textfile, remove DistinctRow and switch to Inconsistent Update. Open that as a recordset and the link textfile as another recordset ordered the same way as the query. Now you can loop through both recordsets updating the first from the second without Find. This is quite fast at least with DAO. /gustav >>> Erwin.Craps at ithelps.be 23-02-2006 11:00:40 >>> Hi I have a query between a Access table and a linked txt file in Access 2003. The access table contains articles but with a short article description, the linked txt file contains same articles with long descriptions. I want to update the access table so this also contains long descriptions. So I linked the 2 tabled based on ArtID but halfway the execution of the query it suddenly says "I cannot update tables that are linked with this ISAM". The thing is when setting the query to view I can change the descriptions manualy!!! And further more, I am only updating one field and that field is in the access table NOT in the linked table. I know I can workaround using code (slow!) or to import the txt file which bloats the database, but that are not solutions I want to implement unless I have to. Here's the query UPDATE DISTINCTROW PROD_MainIMPORT INNER JOIN TechData_Descriptions ON PROD_MainIMPORT.ProductCode = TechData_Descriptions.ArtID SET PROD_MainIMPORT.ProductDescription = [TechData_Descriptions.Description]; PROD_MainIMPORT = regular Access Table TechData_Descriptions= linked txt file. Erwin Craps Zaakvoerder www.ithelps.be/onsgezin From Erwin.Craps at ithelps.be Thu Feb 23 05:39:11 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 23 Feb 2006 12:39:11 +0100 Subject: [AccessD] Update query between access table and txt linked filedoes not work. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B63CD@stekelbes.ithelps.local> Thanks Gustav I managed to adapt an earlier stage query, added the second table with long descriptions, to import the articles togheter with long description. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 23, 2006 12:11 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Update query between access table and txt linked filedoes not work. Hi Erwin Well, one method is to use DLookup() to extract the long text from the linked textfile. Not very fast, but it works. Another - which will cause no bloat - is to import the textfile to a temp mdb file, link to that, update the data, and then delete the temp mdb. Also, I'm not sure a code solution will be that slow. Turn your update query into a select query, don't select fields from the textfile, remove DistinctRow and switch to Inconsistent Update. Open that as a recordset and the link textfile as another recordset ordered the same way as the query. Now you can loop through both recordsets updating the first from the second without Find. This is quite fast at least with DAO. /gustav >>> Erwin.Craps at ithelps.be 23-02-2006 11:00:40 >>> Hi I have a query between a Access table and a linked txt file in Access 2003. The access table contains articles but with a short article description, the linked txt file contains same articles with long descriptions. I want to update the access table so this also contains long descriptions. So I linked the 2 tabled based on ArtID but halfway the execution of the query it suddenly says "I cannot update tables that are linked with this ISAM". The thing is when setting the query to view I can change the descriptions manualy!!! And further more, I am only updating one field and that field is in the access table NOT in the linked table. I know I can workaround using code (slow!) or to import the txt file which bloats the database, but that are not solutions I want to implement unless I have to. Here's the query UPDATE DISTINCTROW PROD_MainIMPORT INNER JOIN TechData_Descriptions ON PROD_MainIMPORT.ProductCode = TechData_Descriptions.ArtID SET PROD_MainIMPORT.ProductDescription = [TechData_Descriptions.Description]; PROD_MainIMPORT = regular Access Table TechData_Descriptions= linked txt file. Erwin Craps Zaakvoerder www.ithelps.be/onsgezin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Thu Feb 23 08:44:07 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 23 Feb 2006 09:44:07 -0500 Subject: [AccessD] Create/Hide Buttons on Form? Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C4628@TTNEXCHCL2.hshhp.com> Mark, Have you thought about what happens when they've created enough new items to exceed your screen space? Is a drop-down list out of the question for this app? If this were a VB app you'd have a much easier time creating visual elements dynamically than with Access. Just some thoughts. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Wednesday, February 22, 2006 12:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] Create/Hide Buttons on Form? Hello All, I'm attempting an app related to restaurant/bar management in A2K. The dilemma I have is in design. I want them to have the ability to add new products/seats...but I'm not sure the best way to approach this. For instance...if they add a new menu item...I want a new button to appear. Should I make a predetermined number of buttons and hide them or should I program the app to create and place a new button when the new value is added ( if this, suggestions?) Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From ecritt1 at alltel.net Thu Feb 23 09:13:49 2006 From: ecritt1 at alltel.net (Penn White) Date: Thu, 23 Feb 2006 10:13:49 -0500 Subject: [AccessD] Creating a demo Access app? Message-ID: <003701c6388c$0de387f0$0302a8c0@pennp4> In the archives, I found a few references to registration codes for unlocking but I couldn't find anything aobut creating demos. I have an application in Access 2003 that I would like to send out as a demo. I'd like it to be fully functional but only allow 10 main records to be created -- everything in the application is accessed from one form - I'd like to limit the number of records that could be created with this form which is bound to one main table containing fields for relational ID's to other tables. What is the 'best practice' for doing this? Does anyone know of any articles that treat this subject? Thank you, Penn White a From Jdemarco at hudsonhealthplan.org Thu Feb 23 09:47:07 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 23 Feb 2006 10:47:07 -0500 Subject: [AccessD] Creating a demo Access app? Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> My suggestion: Compile the app to mde and code behind your "New Item" button to count the records in the main table (showing a message if the count is at 10). HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Penn White Sent: Thursday, February 23, 2006 10:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] Creating a demo Access app? In the archives, I found a few references to registration codes for unlocking but I couldn't find anything aobut creating demos. I have an application in Access 2003 that I would like to send out as a demo. I'd like it to be fully functional but only allow 10 main records to be created -- everything in the application is accessed from one form - I'd like to limit the number of records that could be created with this form which is bound to one main table containing fields for relational ID's to other tables. What is the 'best practice' for doing this? Does anyone know of any articles that treat this subject? Thank you, Penn White a -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Jdemarco at hudsonhealthplan.org Thu Feb 23 10:47:27 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 23 Feb 2006 11:47:27 -0500 Subject: [AccessD] Access 2000 Runtime Error (X-posted) Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C4634@TTNEXCHCL2.hshhp.com> X-posted AccessD: dba-VB Lists, We inherited (and distribute) an Access 2K app that uses the Access runtime. One of our user sites (not affiliated with our company) is having a problem running VB apps on machines where this app is installed. Here's a copy of what I got from their IT resource: "...happens when an application is started. A window opens saying somthing like "Loading Access 2000 Runtime" and displaying a Windows progress bar. Then a "File Not Found" message window opens. If you cancel out of the window, another "File Not Found" windows opens, etc.. If you cancel out of these windows about 3 or 4 times, the program will start. They're using Jet 3.51 for "ADO and DAO data access" (quoting their IT resource). Is anyone familiar with this? I searched M$KB but didn't find anything. TIA Jim DeMarco Director of Application Development Hudson Health Plan *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From ecritt1 at alltel.net Thu Feb 23 11:00:26 2006 From: ecritt1 at alltel.net (Penn White) Date: Thu, 23 Feb 2006 12:00:26 -0500 Subject: [AccessD] Creating a demo Access app? References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> Message-ID: <001501c6389a$a511bd00$0302a8c0@pennp4> Jim, That sounds like a good idea. I'll try it out. Thanks, Penn > My suggestion: Compile the app to mde and code behind your "New Item" > button to count the records in the main table (showing a message if the > count is at 10). From Gustav at cactus.dk Thu Feb 23 11:28:13 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Feb 2006 18:28:13 +0100 Subject: [AccessD] Access 2000 Runtime Error (X-posted) Message-ID: Hi Jim Could it be the old VBE6.dll issue: Take a look at http://support.microsoft.com/default.aspx?scid=kb;en-us;Q304548 This is a typical error when you do not have O2k SR-3 and you have a 2002 or later app installed on the same machine. The VBE6.DLL for 2002 breaks the 2000 Access executable. Charlotte Foust >>> Jdemarco at hudsonhealthplan.org 23-02-2006 17:47:27 >>> X-posted AccessD: dba-VB Lists, We inherited (and distribute) an Access 2K app that uses the Access runtime. One of our user sites (not affiliated with our company) is having a problem running VB apps on machines where this app is installed. Here's a copy of what I got from their IT resource: "...happens when an application is started. A window opens saying somthing like "Loading Access 2000 Runtime" and displaying a Windows progress bar. Then a "File Not Found" message window opens. If you cancel out of the window, another "File Not Found" windows opens, etc.. If you cancel out of these windows about 3 or 4 times, the program will start. They're using Jet 3.51 for "ADO and DAO data access" (quoting their IT resource). Is anyone familiar with this? I searched M$KB but didn't find anything. TIA Jim DeMarco Director of Application Development Hudson Health Plan From markamatte at hotmail.com Thu Feb 23 11:52:30 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 23 Feb 2006 17:52:30 +0000 Subject: [AccessD] Create/Hide Buttons on Form? In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74016C4628@TTNEXCHCL2.hshhp.com> Message-ID: Jim, Yes...I have thought of that...but not as worried yet because I still didn't know if I could, or how to create the buttons programatically. Drop downs are out of the question...but maybe I should move to VB. Thanks, Mark A. Matte >From: "Jim DeMarco" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem solving" > >Subject: Re: [AccessD] Create/Hide Buttons on Form? >Date: Thu, 23 Feb 2006 09:44:07 -0500 > >Mark, > >Have you thought about what happens when they've created enough new items >to exceed your screen space? Is a drop-down list out of the question for >this app? If this were a VB app you'd have a much easier time creating >visual elements dynamically than with Access. > >Just some thoughts. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, February 22, 2006 12:12 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Create/Hide Buttons on Form? > > >Hello All, > >I'm attempting an app related to restaurant/bar management in A2K. The >dilemma I have is in design. I want them to have the ability to add new >products/seats...but I'm not sure the best way to approach this. For >instance...if they add a new menu item...I want a new button to appear. >Should I make a predetermined number of buttons and hide them or should I >program the app to create and place a new button when the new value is >added >( if this, suggestions?) > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > > > >*********************************************************************************** >"This electronic message is intended to be for the use only of the named >recipient, and may contain information from Hudson Health Plan (HHP) that >is confidential or privileged. If you are not the intended recipient, you >are hereby notified that any disclosure, copying, distribution or use of >the contents of this message is strictly prohibited. If you have received >this message in error or are not the named recipient, please notify us >immediately, either by contacting the sender at the electronic mail address >noted above or calling HHP at (914) 631-1611. If you are not the intended >recipient, please do not forward this email to anyone, and delete and >destroy all copies of this message. Thank You". >*********************************************************************************** > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Thu Feb 23 12:24:31 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 23 Feb 2006 13:24:31 -0500 Subject: [AccessD] Access 2000 Runtime Error (X-posted) Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C463A@TTNEXCHCL2.hshhp.com> Thanks Gustav. It looks like they may have changed the link to that article. I get this article when I click the link you attached: "You receive an error message when you try to view the code in a module, compile a database, create an MDE file or execute code in Access 2000" I think they're running WinXP as well but I'm waiting for an answer on that. I'm the meantime I think I need to find a better search phrase. I'm coming up blank (irrelevant) on Google and kbalertz.com. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Thursday, February 23, 2006 12:28 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) Hi Jim Could it be the old VBE6.dll issue: Take a look at http://support.microsoft.com/default.aspx?scid=kb;en-us;Q304548 This is a typical error when you do not have O2k SR-3 and you have a 2002 or later app installed on the same machine. The VBE6.DLL for 2002 breaks the 2000 Access executable. Charlotte Foust >>> Jdemarco at hudsonhealthplan.org 23-02-2006 17:47:27 >>> X-posted AccessD: dba-VB Lists, We inherited (and distribute) an Access 2K app that uses the Access runtime. One of our user sites (not affiliated with our company) is having a problem running VB apps on machines where this app is installed. Here's a copy of what I got from their IT resource: "...happens when an application is started. A window opens saying somthing like "Loading Access 2000 Runtime" and displaying a Windows progress bar. Then a "File Not Found" message window opens. If you cancel out of the window, another "File Not Found" windows opens, etc.. If you cancel out of these windows about 3 or 4 times, the program will start. They're using Jet 3.51 for "ADO and DAO data access" (quoting their IT resource). Is anyone familiar with this? I searched M$KB but didn't find anything. TIA Jim DeMarco Director of Application Development Hudson Health Plan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From reuben at gfconsultants.com Thu Feb 23 12:12:41 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 23 Feb 2006 13:12:41 -0500 Subject: [AccessD] Copy a file Message-ID: Anyone have a system setup to copy/move files? I want to give a client a small app that she can open, click a button and it will copy the specified file to another specified folder elsewhere on the network. Reuben Cummings GFC, LLC 812.523.1017 From dwaters at usinternet.com Thu Feb 23 12:48:38 2006 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 23 Feb 2006 12:48:38 -0600 Subject: [AccessD] Copy a file In-Reply-To: <4459087.1140719865246.JavaMail.root@sniper39> Message-ID: <000201c638a9$c2463f90$0200a8c0@danwaters> Reuben, Look at File System Objects. It's a good file manipulation method. Dan -----Original Message----- Subject: [AccessD] Copy a file Anyone have a system setup to copy/move files? I want to give a client a small app that she can open, click a button and it will copy the specified file to another specified folder elsewhere on the network. Reuben Cummings GFC, LLC 812.523.1017 From Jdemarco at hudsonhealthplan.org Thu Feb 23 12:54:41 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 23 Feb 2006 13:54:41 -0500 Subject: [AccessD] Create/Hide Buttons on Form? Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C463C@TTNEXCHCL2.hshhp.com> Hmm. Just to be clear I was referring to VB6. I'm not sure how .NET handles that scenario but surely it can be done there as well. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Thursday, February 23, 2006 12:52 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Create/Hide Buttons on Form? Jim, Yes...I have thought of that...but not as worried yet because I still didn't know if I could, or how to create the buttons programatically. Drop downs are out of the question...but maybe I should move to VB. Thanks, Mark A. Matte >From: "Jim DeMarco" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem solving" > >Subject: Re: [AccessD] Create/Hide Buttons on Form? >Date: Thu, 23 Feb 2006 09:44:07 -0500 > >Mark, > >Have you thought about what happens when they've created enough new items >to exceed your screen space? Is a drop-down list out of the question for >this app? If this were a VB app you'd have a much easier time creating >visual elements dynamically than with Access. > >Just some thoughts. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, February 22, 2006 12:12 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Create/Hide Buttons on Form? > > >Hello All, > >I'm attempting an app related to restaurant/bar management in A2K. The >dilemma I have is in design. I want them to have the ability to add new >products/seats...but I'm not sure the best way to approach this. For >instance...if they add a new menu item...I want a new button to appear. >Should I make a predetermined number of buttons and hide them or should I >program the app to create and place a new button when the new value is >added >( if this, suggestions?) > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > > > >*********************************************************************************** >"This electronic message is intended to be for the use only of the named >recipient, and may contain information from Hudson Health Plan (HHP) that >is confidential or privileged. If you are not the intended recipient, you >are hereby notified that any disclosure, copying, distribution or use of >the contents of this message is strictly prohibited. If you have received >this message in error or are not the named recipient, please notify us >immediately, either by contacting the sender at the electronic mail address >noted above or calling HHP at (914) 631-1611. If you are not the intended >recipient, please do not forward this email to anyone, and delete and >destroy all copies of this message. Thank You". >*********************************************************************************** > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/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 electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From bill_Patten at earthlink.net Thu Feb 23 12:55:49 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Thu, 23 Feb 2006 10:55:49 -0800 Subject: [AccessD] Copy a file References: Message-ID: <002601c638aa$c3ec0ae0$6501a8c0@BPCS> Here is routine that I use. Declare Function apiCopyFile Lib "kernel32" Alias "CopyFileA" _ (ByVal lpExistingFileName As String, _ ByVal lpNewFileName As String, _ ByVal bFailIfExists As Long) As Long Declare Function SetFileAttributes Lib "kernel32" Alias "SetFileAttributesA" _ (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long Function BPCopyFile(SourceFile As String, DestFile As String, Optional intReadOnly As Integer) As Boolean On Error GoTo Err_BPCopyFile '---------------------------------------------------------------------------- ' Purpose: Copy a file on disk from one location to another and on request change to or from readonly ' BPcopyfile "c:\dog.oub, c:\cat.mdb , optional 1 = readonly 2 = not readonly ' though this function will copy any files (open ones too) it was designed to copy a ' file from a CD, rename it and then make sure it is not read only ' By: Bill Patten, BPCS ' Date: 9/16/2003 8:41:58 PM ' Mods: '---------------------------------------------------------------------------- Const FILE_ATTRIBUTE_NORMAL = 128 Const FILE_ATTRIBUTE_READONLY = 1 Dim Result As Long BPCopyFile = False 'Assume it wont work If Dir(DestFile) <> "" Then ' desination file exist so kill it 'Just in case it is readonly and would not delete Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) Kill (DestFile) End If If Dir(SourceFile) = "" Then MsgBox Chr(34) & SourceFile & Chr(34) & _ " is not valid file name." Exit Function Else Result = apiCopyFile(SourceFile, DestFile, False) End If If Not IsNull(intReadOnly) Then Select Case intReadOnly Case 1 'Make file read only Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_READONLY) Case 2 'remove readonly Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) End Select End If BPCopyFile = True Exit_BPCopyFile: Exit Function Err_BPCopyFile: MsgBox "Error " & Err.Number & ": " & Err.Description & " In Sub CopyFile In Module modFileCopy" & vbCrLf Resume Exit_BPCopyFile End Function ----- Original Message ----- From: "Reuben Cummings" To: "AccessD" Sent: Thursday, February 23, 2006 10:12 AM Subject: [AccessD] Copy a file Anyone have a system setup to copy/move files? I want to give a client a small app that she can open, click a button and it will copy the specified file to another specified folder elsewhere on the network. Reuben Cummings GFC, LLC 812.523.1017 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Feb 23 13:33:35 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 23 Feb 2006 11:33:35 -0800 Subject: [AccessD] Access 2000 Runtime Error (X-posted) References: <08F823FD83787D4BA0B99CA580AD3C74016C463A@TTNEXCHCL2.hshhp.com> Message-ID: <43FE0E0F.70702@shaw.ca> Have client look at this file in windows explorer c:\program files\common files\microsoft shared\vba\vba6\vbe6.dll Right click on file select properties then selectr version tab and then file version For Office 2003 I have version number for vbe6.dll 6.04.9972 If you have equal to or lower than 6.3.91.8 then it is the faulty Office 2000 vbe6.dll And needs the Office 2000 SP3 installed Jet or DAO 3.51 in msjet35.dll is only installed by Office 97 or MDAC 2.1 (hasn't been downloadable for 2 years from MS) Access 2000 uses DAO 3.6 msjet40.dll They maybe running old VB6 programs calling DAO 3.51 I have Office 97 and 2003 installed C:\WINDOWS\system32\msjet35.dll My version is 3.51.3328.0 C:\WINDOWS\system32\msjet40.dll version 4.00.8618.0 I have heard of certain DAO 3.6 installs removing DAO 3.51 so you might want to check they are both there Most DAO calls that ran against 3.51 will run against DAO 3.6 except for security fixes. Jim DeMarco wrote: >Thanks Gustav. > >It looks like they may have changed the link to that article. I get this article when I click the link you attached: > >"You receive an error message when you try to view the code in a module, compile a database, create an MDE file or execute code in Access 2000" > >I think they're running WinXP as well but I'm waiting for an answer on that. > >I'm the meantime I think I need to find a better search phrase. I'm coming up blank (irrelevant) on Google and kbalertz.com. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >Sent: Thursday, February 23, 2006 12:28 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) > > >Hi Jim > >Could it be the old VBE6.dll issue: > > > >Take a look at >http://support.microsoft.com/default.aspx?scid=kb;en-us;Q304548 > >This is a typical error when you do not have O2k SR-3 and you have a 2002 or later app installed on the same machine. The VBE6.DLL for 2002 breaks the 2000 Access executable. > >Charlotte Foust > > > > > >>>>Jdemarco at hudsonhealthplan.org 23-02-2006 17:47:27 >>> >>>> >>>> >X-posted AccessD: dba-VB > >Lists, > >We inherited (and distribute) an Access 2K app that uses the Access runtime. One of our user sites (not affiliated with our company) is having a problem running VB apps on machines where this app is installed. Here's a copy of what I got from their IT resource: > > >"...happens when an application is started. >A window opens saying somthing like "Loading Access 2000 Runtime" and displaying a Windows progress bar. >Then a "File Not Found" message window opens. If you cancel out of the window, another "File Not Found" windows opens, etc.. >If you cancel out of these windows about 3 or 4 times, the program will start. > > >They're using Jet 3.51 for "ADO and DAO data access" (quoting their IT resource). Is anyone familiar with this? I searched M$KB but didn't find anything. > >TIA > >Jim DeMarco >Director of Application Development >Hudson Health Plan > > > -- Marty Connelly Victoria, B.C. Canada From reuben at gfconsultants.com Thu Feb 23 14:01:39 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 23 Feb 2006 15:01:39 -0500 Subject: [AccessD] Copy a file In-Reply-To: <002601c638aa$c3ec0ae0$6501a8c0@BPCS> Message-ID: Thanks, guys. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bill Patten > Sent: Thursday, February 23, 2006 1:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Copy a file > > > Here is routine that I use. > Declare Function apiCopyFile Lib "kernel32" Alias "CopyFileA" _ > (ByVal lpExistingFileName As String, _ > ByVal lpNewFileName As String, _ > ByVal bFailIfExists As Long) As Long > Declare Function SetFileAttributes Lib "kernel32" Alias > "SetFileAttributesA" _ > (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long > > Function BPCopyFile(SourceFile As String, DestFile As String, Optional > intReadOnly As Integer) As Boolean > On Error GoTo Err_BPCopyFile > '----------------------------------------------------------------- > ----------- > ' Purpose: Copy a file on disk from one location to another and > on request > change to or from readonly > ' BPcopyfile "c:\dog.oub, c:\cat.mdb , optional 1 = readonly 2 = not > readonly > ' though this function will copy any files (open ones too) it > was designed > to copy a > ' file from a CD, rename it and then make sure it is not read only > ' By: Bill Patten, BPCS > ' Date: 9/16/2003 8:41:58 PM > ' Mods: > '----------------------------------------------------------------- > ----------- > Const FILE_ATTRIBUTE_NORMAL = 128 > Const FILE_ATTRIBUTE_READONLY = 1 > Dim Result As Long > BPCopyFile = False 'Assume it wont work > If Dir(DestFile) <> "" Then ' desination file exist so kill it > 'Just in case it is readonly and would not delete > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > Kill (DestFile) > End If > > If Dir(SourceFile) = "" Then > MsgBox Chr(34) & SourceFile & Chr(34) & _ > " is not valid file name." > Exit Function > Else > Result = apiCopyFile(SourceFile, DestFile, False) > End If > If Not IsNull(intReadOnly) Then > Select Case intReadOnly > Case 1 'Make file read only > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_READONLY) > Case 2 'remove readonly > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > End Select > End If > > BPCopyFile = True > Exit_BPCopyFile: > Exit Function > > Err_BPCopyFile: > MsgBox "Error " & Err.Number & ": " & Err.Description & " In > Sub CopyFile > In Module modFileCopy" & vbCrLf > Resume Exit_BPCopyFile > > End Function > > > > > ----- Original Message ----- > From: "Reuben Cummings" > To: "AccessD" > Sent: Thursday, February 23, 2006 10:12 AM > Subject: [AccessD] Copy a file > > > Anyone have a system setup to copy/move files? > > I want to give a client a small app that she can open, click a > button and it > will copy the specified file to another specified folder elsewhere on the > network. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 23 16:16:05 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Feb 2006 14:16:05 -0800 Subject: [AccessD] Create/Hide Buttons on Form? Message-ID: Mark, You can create buttons programmatically, but binding code to them requires directly manipulating the form's code module, which is a pain. No control arrays in Access, unfortunately. You can create the buttons ahead of time and show or hide them and populate their captions based on a table, though. Why not use a table driven approach a la the switchboard manager. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, February 23, 2006 9:52 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Create/Hide Buttons on Form? Jim, Yes...I have thought of that...but not as worried yet because I still didn't know if I could, or how to create the buttons programatically. Drop downs are out of the question...but maybe I should move to VB. Thanks, Mark A. Matte >From: "Jim DeMarco" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem solving" > >Subject: Re: [AccessD] Create/Hide Buttons on Form? >Date: Thu, 23 Feb 2006 09:44:07 -0500 > >Mark, > >Have you thought about what happens when they've created enough new >items >to exceed your screen space? Is a drop-down list out of the question for >this app? If this were a VB app you'd have a much easier time creating >visual elements dynamically than with Access. > >Just some thoughts. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, February 22, 2006 12:12 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Create/Hide Buttons on Form? > > >Hello All, > >I'm attempting an app related to restaurant/bar management in A2K. The >dilemma I have is in design. I want them to have the ability to add >new products/seats...but I'm not sure the best way to approach this. >For instance...if they add a new menu item...I want a new button to >appear. Should I make a predetermined number of buttons and hide them >or should I program the app to create and place a new button when the >new value is added ( if this, suggestions?) > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > > > >*********************************************************************** >************ >"This electronic message is intended to be for the use only of the named >recipient, and may contain information from Hudson Health Plan (HHP) that >is confidential or privileged. If you are not the intended recipient, you >are hereby notified that any disclosure, copying, distribution or use of >the contents of this message is strictly prohibited. If you have received >this message in error or are not the named recipient, please notify us >immediately, either by contacting the sender at the electronic mail address >noted above or calling HHP at (914) 631-1611. If you are not the intended >recipient, please do not forward this email to anyone, and delete and >destroy all copies of this message. Thank You". >*********************************************************************** ************ > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Thu Feb 23 16:28:53 2006 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 23 Feb 2006 15:28:53 -0700 Subject: [AccessD] Create/Hide Buttons on Form? In-Reply-To: Message-ID: You can use a function in the property sheet so you should be able to hook up events by specifying a function in the property sheet. To operate on the specific command button, you can pass it the Active Control: ie, set the property to =fnProcedure(Screen.ActiveControl) You can parse the control name from the object passed and respond appropriately. Or presumably you can hook up controls 'WithEvents'. I haven't been following this thread, but it seems to me you could put a button on a continous form and operate on the current record textbox or index value. Add a subRecord for each category? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Charlotte Foust" > >Mark, > >You can create buttons programmatically, but binding code to them >requires directly manipulating the form's code module, which is a pain. >No control arrays in Access, unfortunately. You can create the buttons >ahead of time and show or hide them and populate their captions based on >a table, though. Why not use a table driven approach a la the >switchboard manager. > >Charlotte > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Thursday, February 23, 2006 9:52 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Create/Hide Buttons on Form? > > >Jim, > >Yes...I have thought of that...but not as worried yet because I still >didn't >know if I could, or how to create the buttons programatically. Drop >downs >are out of the question...but maybe I should move to VB. > >Thanks, > >Mark A. Matte > > > > > >From: "Jim DeMarco" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem solving" > > > >Subject: Re: [AccessD] Create/Hide Buttons on Form? > >Date: Thu, 23 Feb 2006 09:44:07 -0500 > > > >Mark, > > > >Have you thought about what happens when they've created enough new > >items > >to exceed your screen space? Is a drop-down list out of the question >for > >this app? If this were a VB app you'd have a much easier time creating > > >visual elements dynamically than with Access. > > > >Just some thoughts. > > > >Jim DeMarco > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > >Sent: Wednesday, February 22, 2006 12:12 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] Create/Hide Buttons on Form? > > > > > >Hello All, > > > >I'm attempting an app related to restaurant/bar management in A2K. The > > >dilemma I have is in design. I want them to have the ability to add > >new products/seats...but I'm not sure the best way to approach this. > >For instance...if they add a new menu item...I want a new button to > >appear. Should I make a predetermined number of buttons and hide them > >or should I program the app to create and place a new button when the > >new value is added ( if this, suggestions?) > > > >Thanks, > > > >Mark A. Matte From jwelz at hotmail.com Thu Feb 23 16:57:35 2006 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 23 Feb 2006 15:57:35 -0700 Subject: [AccessD] Copy a file In-Reply-To: <002601c638aa$c3ec0ae0$6501a8c0@BPCS> Message-ID: Bill: The API procedure you quote includes an 'Overwrite' parameter: ByVal bFailIfExists As Long Your example is set to overwrite a file existing at the destination by setting this parameter false. Presumably a read only file shouldn't overwrite, but if it does, the call to Kill is unnecessary if it is not readonly or you've removed the readonly attribute. I occasionally find it helpful to open the file exclusive, or attempt to rename the target file to ensure no one is working with it when I overwrite an existing file. In some situations this is a mandatory precaution. I usually prefer to Recycle a file existing at the target prior to overwrite: Public Function Recycle(strFilePathAndFileName As String) As Boolean Dim Killed As FileOpStruct Private Type FileOpStruct hwnd As Long wFunc As Long pFrom As String pTo As String fFlags As Integer fAborted As Boolean hNameMaps As Long sProgressTitle As String End Type Public Function Recycle(strFilePathAndFileName As String) As Boolean Dim Killed As FileOpStruct If Len(Dir(strFilePathAndFileName)) Then With Killed .wFunc = 3 .pFrom = strFilePathAndFileName & vbNullChar .fFlags = 80 '64 is adequate End With Recycle = SHFileOperationA(Killed) = 0 End If End Function In the case of server files, my environment experience is that there is no ready access to the recycle bin. In that case, I have found it beneficial to move the file to a local drive and recycle there. You'd be surprised how many times that preempted a call to helpdesk for a restore from tape. That was in the days before Terminal Server. Nowadays, I find it helpful to prepend a date prefix to the replaced or 'overwritten' file name. Depending on the circumstances, it is frequently useful to check for the existence of a file at the destination and prompt the user. Based on this input, you may set the 'overwrite' parameter in the caller. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Bill Patten" > >Here is routine that I use. >Declare Function apiCopyFile Lib "kernel32" Alias "CopyFileA" _ > (ByVal lpExistingFileName As String, _ > ByVal lpNewFileName As String, _ > ByVal bFailIfExists As Long) As Long > Declare Function SetFileAttributes Lib "kernel32" Alias >"SetFileAttributesA" _ > (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long > >Function BPCopyFile(SourceFile As String, DestFile As String, Optional >intReadOnly As Integer) As Boolean >On Error GoTo Err_BPCopyFile >'---------------------------------------------------------------------------- >' Purpose: Copy a file on disk from one location to another and on request >change to or from readonly >' BPcopyfile "c:\dog.oub, c:\cat.mdb , optional 1 = readonly 2 = not >readonly >' though this function will copy any files (open ones too) it was >designed >to copy a >' file from a CD, rename it and then make sure it is not read only >' By: Bill Patten, BPCS >' Date: 9/16/2003 8:41:58 PM >' Mods: >'---------------------------------------------------------------------------- > Const FILE_ATTRIBUTE_NORMAL = 128 > Const FILE_ATTRIBUTE_READONLY = 1 > Dim Result As Long > BPCopyFile = False 'Assume it wont work > If Dir(DestFile) <> "" Then ' desination file exist so kill it > 'Just in case it is readonly and would not delete > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > Kill (DestFile) > End If > > If Dir(SourceFile) = "" Then > MsgBox Chr(34) & SourceFile & Chr(34) & _ > " is not valid file name." > Exit Function > Else > Result = apiCopyFile(SourceFile, DestFile, False) > End If > If Not IsNull(intReadOnly) Then > Select Case intReadOnly > Case 1 'Make file read only > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_READONLY) > Case 2 'remove readonly > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > End Select > End If > >BPCopyFile = True >Exit_BPCopyFile: > Exit Function > >Err_BPCopyFile: > MsgBox "Error " & Err.Number & ": " & Err.Description & " In Sub >CopyFile >In Module modFileCopy" & vbCrLf > Resume Exit_BPCopyFile > >End Function > > > > >----- Original Message ----- >From: "Reuben Cummings" >To: "AccessD" >Sent: Thursday, February 23, 2006 10:12 AM >Subject: [AccessD] Copy a file > > >Anyone have a system setup to copy/move files? > >I want to give a client a small app that she can open, click a button and >it >will copy the specified file to another specified folder elsewhere on the >network. > >Reuben Cummings >GFC, LLC >812.523.1017 From cfoust at infostatsystems.com Thu Feb 23 17:25:32 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Feb 2006 15:25:32 -0800 Subject: [AccessD] Create/Hide Buttons on Form? Message-ID: True, but that limits your handling in the extreme. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Thursday, February 23, 2006 2:29 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Create/Hide Buttons on Form? You can use a function in the property sheet so you should be able to hook up events by specifying a function in the property sheet. To operate on the specific command button, you can pass it the Active Control: ie, set the property to =fnProcedure(Screen.ActiveControl) You can parse the control name from the object passed and respond appropriately. Or presumably you can hook up controls 'WithEvents'. I haven't been following this thread, but it seems to me you could put a button on a continous form and operate on the current record textbox or index value. Add a subRecord for each category? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Charlotte Foust" > >Mark, > >You can create buttons programmatically, but binding code to them >requires directly manipulating the form's code module, which is a pain. >No control arrays in Access, unfortunately. You can create the buttons >ahead of time and show or hide them and populate their captions based >on a table, though. Why not use a table driven approach a la the >switchboard manager. > >Charlotte > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Thursday, February 23, 2006 9:52 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Create/Hide Buttons on Form? > > >Jim, > >Yes...I have thought of that...but not as worried yet because I still >didn't know if I could, or how to create the buttons programatically. >Drop downs >are out of the question...but maybe I should move to VB. > >Thanks, > >Mark A. Matte > > > > > >From: "Jim DeMarco" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem solving" > > > >Subject: Re: [AccessD] Create/Hide Buttons on Form? > >Date: Thu, 23 Feb 2006 09:44:07 -0500 > > > >Mark, > > > >Have you thought about what happens when they've created enough new > >items to exceed your screen space? Is a drop-down list out of the > >question >for > >this app? If this were a VB app you'd have a much easier time > >creating > > >visual elements dynamically than with Access. > > > >Just some thoughts. > > > >Jim DeMarco > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A > >Matte > >Sent: Wednesday, February 22, 2006 12:12 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] Create/Hide Buttons on Form? > > > > > >Hello All, > > > >I'm attempting an app related to restaurant/bar management in A2K. > >The > > >dilemma I have is in design. I want them to have the ability to add > >new products/seats...but I'm not sure the best way to approach this. > >For instance...if they add a new menu item...I want a new button to > >appear. Should I make a predetermined number of buttons and hide them > >or should I program the app to create and place a new button when the > >new value is added ( if this, suggestions?) > > > >Thanks, > > > >Mark A. Matte From bill_Patten at earthlink.net Thu Feb 23 17:58:33 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Thu, 23 Feb 2006 15:58:33 -0800 Subject: [AccessD] Copy a file References: Message-ID: <005f01c638d5$0e51a8e0$6501a8c0@BPCS> Thanks J?rgen, Good suggestion, I'll play with your recycle function. Bill ----- Original Message ----- From: "Jurgen Welz" To: Sent: Thursday, February 23, 2006 2:57 PM Subject: Re: [AccessD] Copy a file Bill: The API procedure you quote includes an 'Overwrite' parameter: ByVal bFailIfExists As Long Your example is set to overwrite a file existing at the destination by setting this parameter false. Presumably a read only file shouldn't overwrite, but if it does, the call to Kill is unnecessary if it is not readonly or you've removed the readonly attribute. I occasionally find it helpful to open the file exclusive, or attempt to rename the target file to ensure no one is working with it when I overwrite an existing file. In some situations this is a mandatory precaution. I usually prefer to Recycle a file existing at the target prior to overwrite: Public Function Recycle(strFilePathAndFileName As String) As Boolean Dim Killed As FileOpStruct Private Type FileOpStruct hwnd As Long wFunc As Long pFrom As String pTo As String fFlags As Integer fAborted As Boolean hNameMaps As Long sProgressTitle As String End Type Public Function Recycle(strFilePathAndFileName As String) As Boolean Dim Killed As FileOpStruct If Len(Dir(strFilePathAndFileName)) Then With Killed .wFunc = 3 .pFrom = strFilePathAndFileName & vbNullChar .fFlags = 80 '64 is adequate End With Recycle = SHFileOperationA(Killed) = 0 End If End Function In the case of server files, my environment experience is that there is no ready access to the recycle bin. In that case, I have found it beneficial to move the file to a local drive and recycle there. You'd be surprised how many times that preempted a call to helpdesk for a restore from tape. That was in the days before Terminal Server. Nowadays, I find it helpful to prepend a date prefix to the replaced or 'overwritten' file name. Depending on the circumstances, it is frequently useful to check for the existence of a file at the destination and prompt the user. Based on this input, you may set the 'overwrite' parameter in the caller. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Bill Patten" > >Here is routine that I use. >Declare Function apiCopyFile Lib "kernel32" Alias "CopyFileA" _ > (ByVal lpExistingFileName As String, _ > ByVal lpNewFileName As String, _ > ByVal bFailIfExists As Long) As Long > Declare Function SetFileAttributes Lib "kernel32" Alias >"SetFileAttributesA" _ > (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long > >Function BPCopyFile(SourceFile As String, DestFile As String, Optional >intReadOnly As Integer) As Boolean >On Error GoTo Err_BPCopyFile >'---------------------------------------------------------------------------- >' Purpose: Copy a file on disk from one location to another and on request >change to or from readonly >' BPcopyfile "c:\dog.oub, c:\cat.mdb , optional 1 = readonly 2 = not >readonly >' though this function will copy any files (open ones too) it was >designed >to copy a >' file from a CD, rename it and then make sure it is not read only >' By: Bill Patten, BPCS >' Date: 9/16/2003 8:41:58 PM >' Mods: >'---------------------------------------------------------------------------- > Const FILE_ATTRIBUTE_NORMAL = 128 > Const FILE_ATTRIBUTE_READONLY = 1 > Dim Result As Long > BPCopyFile = False 'Assume it wont work > If Dir(DestFile) <> "" Then ' desination file exist so kill it > 'Just in case it is readonly and would not delete > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > Kill (DestFile) > End If > > If Dir(SourceFile) = "" Then > MsgBox Chr(34) & SourceFile & Chr(34) & _ > " is not valid file name." > Exit Function > Else > Result = apiCopyFile(SourceFile, DestFile, False) > End If > If Not IsNull(intReadOnly) Then > Select Case intReadOnly > Case 1 'Make file read only > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_READONLY) > Case 2 'remove readonly > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > End Select > End If > >BPCopyFile = True >Exit_BPCopyFile: > Exit Function > >Err_BPCopyFile: > MsgBox "Error " & Err.Number & ": " & Err.Description & " In Sub >CopyFile >In Module modFileCopy" & vbCrLf > Resume Exit_BPCopyFile > >End Function > > > > >----- Original Message ----- >From: "Reuben Cummings" >To: "AccessD" >Sent: Thursday, February 23, 2006 10:12 AM >Subject: [AccessD] Copy a file > > >Anyone have a system setup to copy/move files? > >I want to give a client a small app that she can open, click a button and >it >will copy the specified file to another specified folder elsewhere on the >network. > >Reuben Cummings >GFC, LLC >812.523.1017 -------------------------------------------------------------------------------- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From boogieloogie at gmail.com Thu Feb 23 18:09:06 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Thu, 23 Feb 2006 20:09:06 -0400 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Goodnews-VBAin Office 12 and beyond...) In-Reply-To: <200602221932.k1MJW7T84171@ultradnt.com> References: <3bf43ee90602221118j1f713899pb275a6ce0b825737@mail.gmail.com> <200602221932.k1MJW7T84171@ultradnt.com> Message-ID: <3bf43ee90602231609l4952d22cq190bbed9b9a31cf@mail.gmail.com> I don't know yet. Frankly I am sticking with VS 2003 and Pocket PC 2003 /Win Ce 4 and lower until I see some movement on the support end of things BL On 2/22/06, Steve Conklin wrote: > > So they are forcing you to go with SQL CE? Are there any other options > for > Db's on PPC's? > > Steve > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Boogie Loogie > Sent: Wednesday, February 22, 2006 2:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: > Goodnews-VBAin > Office 12 and beyond...) > > I program for the compact framework of VB.Net. With CF2.0 and VS 2005 now > out the glorious braintrust at Micro$oft has did not include support for > .cdb files (.mdb's little cousin) for Windows Mobile 5.0 . Even if you > attempt to use tools such has the InTheHand adoce there is no ActiveSync > support for the database conversion. > > They say they will come up with a patch but it will not be supported and > that future versions of the Mobile OS may never offer any support again. > > In professional terms...THIS SUCKS UP THE WAZOO! > > On 2/22/06, Steve Erbach wrote: > > > > Charlotte, > > > > As far as the "power suite" I was just relaying what I found on the > > AppDev site. Since I'm my own employer I was trying to determine > > which ".NET training series" you have. AppDev has 17 different .NET > > "courses" ranging from 2 CD's worth up to 16 CD's. The .NET Power > > Suites have 73 CD's for the VB.NET suite and 40 CD's for the C# suite. > > There's also a .NET Web Development suite with 56 CD's. MCAD and MCSD > > certification suites are available, too. > > > > The Dobson book I found just struck me as funny since the ONLY copy > > available on Amazon had that outrageous price. Maybe it's really, > > really good! > > > > Thanks, Charlotte. > > > > Steve Erbach > > Neenah, WI > > http://TheTownCrank.blogspot.com > > > > On 2/22/06, Charlotte Foust wrote: > > > No, I'm not talking about any "power suites", and I didn't pay that > > > much for the Dobson books. Yes Barker is the author of the other > book. > > > > > > Charlotte > > > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > > > Erbach > > > Sent: Tuesday, February 21, 2006 5:37 PM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > > > news-VBAin Office 12 and beyond...) > > > > > > > > > Charlotte, > > > > > > Thank you very much. > > > > > > I have the Murach series of .NET books, two O'Reilly books on > > > ASP.NET (the Cookbook and Programming With), three early Microsoft > > > books on .NET, and a Wrox book on Crystal Reports. My Safari > > > subscription has been very useful along those lines, too. On my > > > bookshelf I've got the O'Reilly ADO.NET Cookbook, the Programming > > > ASP.NET 3rd edition, and the Programming C# 4th edition. > > > > > > Are you talking about the .NET Power Suite for Visual Basic .NET or > > > Visual C# .NET? I see that those are currently $2517 and $1437 > > > without books. Hoo boy! I'll bet they were pretty thorough! > > > > > > I see a used copy of Rick Dobson's "Programming Microsoft SQL Server > > > 2000 with Microsoft Visual Basic .NET" available on Amazon for > $135.99!! > > > > > > Otherwise he has a lot of Access-based books. Don't see any others > > > on .NET really except for one on SQL Server 2005 Express. > > > > > > F. Scott Barker appears to be the author of that 2002 book on > > > ADO.NET and VB.NET. > > > > > > Thanks again. > > > > > > Steve Erbach > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwelz at hotmail.com Thu Feb 23 18:09:34 2006 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 23 Feb 2006 17:09:34 -0700 Subject: [AccessD] Create/Hide Buttons on Form? In-Reply-To: Message-ID: Charlotte: Assuming a non-continuous form, of course there are limiitations, but in my experience using functions in place of 'Event Procedure' is no more limiting than events with VB6 Control Arrays. In VB, your code is differentiated on an index. With Access, it is based on an attribute of the only unique possible active control experiencing a user interaction. The attribute can be the control name or caption or any other attribute accessible through the control's properties, directly accessible through the reference to Screen.ActiveControl. I've also had success with creating an array of controls in Access: Dim cmdButton() As CommandButton and setting the object variables in the form open event via iteration. Typically, the click event checks the control name against that in the array of controls and works its magic from there. In some cases it is convenient to arrange a form recordset so that the field order for the first 'n' fields corresponds to the 'control array' index. Sure it is somewhat limiting and it may become more difficult to make other kinds of changes that won't be impacted by restrictions. This approach is analagous to using a continuous subform, each with one or more buttons depending on the desired action(s). It is simple to disguise the subform by losing record selectors, navigation buttons and dividing lines and have it appear like a conventional form. It takes a bit of work with the form cycle and tab order to make it transparent, but if the code can be made to work from a control array, you should be able to make an inteterminate number of subforms work by acting on the record that becomes current upon the click. Again, I have not looked at earlier posts so am not certain as to the degree of complexity or whether the data design is amenable to this approach. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Charlotte Foust" > >True, but that limits your handling in the extreme. > >Charlotte > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz >Sent: Thursday, February 23, 2006 2:29 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Create/Hide Buttons on Form? > > >You can use a function in the property sheet so you should be able to hook >up events by specifying a function in the property sheet. To operate on >the >specific command button, you can pass it the Active Control: > >ie, set the property to >=fnProcedure(Screen.ActiveControl) > >You can parse the control name from the object passed and respond >appropriately. > >Or presumably you can hook up controls 'WithEvents'. > >I haven't been following this thread, but it seems to me you could put a >button on a continous form and operate on the current record textbox or >index value. Add a subRecord for each category? > >Ciao >J?rgen Welz >Edmonton, Alberta >jwelz at hotmail.com > > > > > > >From: "Charlotte Foust" > > > >Mark, > > > >You can create buttons programmatically, but binding code to them > >requires directly manipulating the form's code module, which is a pain. > >No control arrays in Access, unfortunately. You can create the buttons > >ahead of time and show or hide them and populate their captions based > >on a table, though. Why not use a table driven approach a la the > >switchboard manager. > > > >Charlotte > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Thursday, February 23, 2006 9:52 AM > >To: accessd at databaseadvisors.com > >Subject: Re: [AccessD] Create/Hide Buttons on Form? > > > > > >Jim, > > > >Yes...I have thought of that...but not as worried yet because I still > >didn't know if I could, or how to create the buttons programatically. > >Drop downs > >are out of the question...but maybe I should move to VB. > > > >Thanks, > > > >Mark A. Matte > > > > > > > > > > >From: "Jim DeMarco" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: "Access Developers discussion and problem solving" > > > > > >Subject: Re: [AccessD] Create/Hide Buttons on Form? > > >Date: Thu, 23 Feb 2006 09:44:07 -0500 > > > > > >Mark, > > > > > >Have you thought about what happens when they've created enough new > > >items to exceed your screen space? Is a drop-down list out of the > > >question > >for > > >this app? If this were a VB app you'd have a much easier time > > >creating > > > > >visual elements dynamically than with Access. > > > > > >Just some thoughts. > > > > > >Jim DeMarco > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A > > >Matte > > >Sent: Wednesday, February 22, 2006 12:12 PM > > >To: accessd at databaseadvisors.com > > >Subject: [AccessD] Create/Hide Buttons on Form? > > > > > > > > >Hello All, > > > > > >I'm attempting an app related to restaurant/bar management in A2K. > > >The > > > > >dilemma I have is in design. I want them to have the ability to add > > >new products/seats...but I'm not sure the best way to approach this. > > >For instance...if they add a new menu item...I want a new button to > > >appear. Should I make a predetermined number of buttons and hide them > > >or should I program the app to create and place a new button when the > > >new value is added ( if this, suggestions?) > > > > > >Thanks, > > > > > >Mark A. Matte From boogieloogie at gmail.com Thu Feb 23 18:12:41 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Thu, 23 Feb 2006 20:12:41 -0400 Subject: [AccessD] Copy a file In-Reply-To: <002601c638aa$c3ec0ae0$6501a8c0@BPCS> References: <002601c638aa$c3ec0ae0$6501a8c0@BPCS> Message-ID: <3bf43ee90602231612x14be2fb9t9df37113294b8e90@mail.gmail.com> Is there a File System Objects routine that displays the folders in a list on the left and if I click on the folder displays the contents of the folder in a list to its right? I have a home grown one but the File System Objects is more prefessional looking than mine but I only can get the folders to display. Thanks BL On 2/23/06, Bill Patten wrote: > > Here is routine that I use. > Declare Function apiCopyFile Lib "kernel32" Alias "CopyFileA" _ > (ByVal lpExistingFileName As String, _ > ByVal lpNewFileName As String, _ > ByVal bFailIfExists As Long) As Long > Declare Function SetFileAttributes Lib "kernel32" Alias > "SetFileAttributesA" _ > (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long > > Function BPCopyFile(SourceFile As String, DestFile As String, Optional > intReadOnly As Integer) As Boolean > On Error GoTo Err_BPCopyFile > > '---------------------------------------------------------------------------- > ' Purpose: Copy a file on disk from one location to another and on request > change to or from readonly > ' BPcopyfile "c:\dog.oub, c:\cat.mdb , optional 1 = readonly 2 = not > readonly > ' though this function will copy any files (open ones too) it was > designed > to copy a > ' file from a CD, rename it and then make sure it is not read only > ' By: Bill Patten, BPCS > ' Date: 9/16/2003 8:41:58 PM > ' Mods: > > '---------------------------------------------------------------------------- > Const FILE_ATTRIBUTE_NORMAL = 128 > Const FILE_ATTRIBUTE_READONLY = 1 > Dim Result As Long > BPCopyFile = False 'Assume it wont work > If Dir(DestFile) <> "" Then ' desination file exist so kill it > 'Just in case it is readonly and would not delete > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > Kill (DestFile) > End If > > If Dir(SourceFile) = "" Then > MsgBox Chr(34) & SourceFile & Chr(34) & _ > " is not valid file name." > Exit Function > Else > Result = apiCopyFile(SourceFile, DestFile, False) > End If > If Not IsNull(intReadOnly) Then > Select Case intReadOnly > Case 1 'Make file read only > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_READONLY) > Case 2 'remove readonly > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > End Select > End If > > BPCopyFile = True > Exit_BPCopyFile: > Exit Function > > Err_BPCopyFile: > MsgBox "Error " & Err.Number & ": " & Err.Description & " In Sub > CopyFile > In Module modFileCopy" & vbCrLf > Resume Exit_BPCopyFile > > End Function > > > > > ----- Original Message ----- > From: "Reuben Cummings" > To: "AccessD" > Sent: Thursday, February 23, 2006 10:12 AM > Subject: [AccessD] Copy a file > > > Anyone have a system setup to copy/move files? > > I want to give a client a small app that she can open, click a button and > it > will copy the specified file to another specified folder elsewhere on the > network. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From boogieloogie at gmail.com Thu Feb 23 18:13:37 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Thu, 23 Feb 2006 20:13:37 -0400 Subject: [AccessD] Creating a demo Access app? In-Reply-To: <001501c6389a$a511bd00$0302a8c0@pennp4> References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> <001501c6389a$a511bd00$0302a8c0@pennp4> Message-ID: <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> Has anyone been able to hack mde's? BL On 2/23/06, Penn White wrote: > > Jim, That sounds like a good idea. I'll try it out. Thanks, Penn > > > My suggestion: Compile the app to mde and code behind your "New Item" > > button to count the records in the main table (showing a message if the > > count is at 10). > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From boogieloogie at gmail.com Thu Feb 23 18:15:53 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Thu, 23 Feb 2006 20:15:53 -0400 Subject: [AccessD] Creating a demo Access app? In-Reply-To: <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> <001501c6389a$a511bd00$0302a8c0@pennp4> <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> Message-ID: <3bf43ee90602231615j7fc71e26r2ba388a1fbfe1aa8@mail.gmail.com> I spoke too soon. Seems they have so I do not think that Jim's solution will work. Damn hackers http://www.everythingaccess.com/mdeunlocker.htm On 2/23/06, Boogie Loogie wrote: > > Has anyone been able to hack mde's? > > BL > > On 2/23/06, Penn White wrote: > > > > Jim, That sounds like a good idea. I'll try it out. Thanks, Penn > > > > > My suggestion: Compile the app to mde and code behind your "New Item" > > > button to count the records in the main table (showing a message if > > the > > > count is at 10). > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > From adtp at airtelbroadband.in Thu Feb 23 22:14:30 2006 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Fri, 24 Feb 2006 09:44:30 +0530 Subject: [AccessD] Creating a demo Access app? References: <003701c6388c$0de387f0$0302a8c0@pennp4> Message-ID: <00cd01c638f8$ec488ba0$8222f63d@pcadt> Penn, You might be able to get some working ideas from two of my sample db's mentioned below: (a) LicenseLock (b) TrialSet These are available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Penn White To: Access Developers discussion and problem solving Sent: Thursday, February 23, 2006 20:43 Subject: [AccessD] Creating a demo Access app? In the archives, I found a few references to registration codes for unlocking but I couldn't find anything aobut creating demos. I have an application in Access 2003 that I would like to send out as a demo. I'd like it to be fully functional but only allow 10 main records to be created -- everything in the application is accessed from one form - I'd like to limit the number of records that could be created with this form which is bound to one main table containing fields for relational ID's to other tables. What is the 'best practice' for doing this? Does anyone know of any articles that treat this subject? Thank you, Penn White From adtp at airtelbroadband.in Thu Feb 23 22:35:08 2006 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Fri, 24 Feb 2006 10:05:08 +0530 Subject: [AccessD] Copy a file References: Message-ID: <010701c638fb$d12f90e0$8222f63d@pcadt> Reuben, My sample db named BackUpManager might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. The db provides for creation of custom lists of files/folders required to be backed up. This is done via appropriate dialog boxes for selection of files or folders. From time to time, earmarked items can be backed up (with date stamp) to the desired destination drive, by click of a command button. In case of folders all their contents, including subfolders (and their contents) get copied. If any of the files happens to be an access db, simultaneous compaction is also carried out if desired. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Reuben Cummings To: AccessD Sent: Thursday, February 23, 2006 23:42 Subject: [AccessD] Copy a file Anyone have a system setup to copy/move files? I want to give a client a small app that she can open, click a button and it will copy the specified file to another specified folder elsewhere on the network. Reuben Cummings GFC, LLC 812.523.1017 From R.Griffiths at bury.gov.uk Fri Feb 24 03:25:48 2006 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 24 Feb 2006 09:25:48 -0000 Subject: [AccessD] Contract Message-ID: <200602240913.k1O9DKg04764@smarthost.yourcomms.net> Hi Group I am a stand alone software developer and have been asked by a client to add (a line/paragraph) into the contract (for a piece of off-the-shelf software I have written) something to ensure that should my business go bankrupt/fail the source code can be released to them for product support. I have no problem with this and understand their concerns. What I'm not sure about is the appropriate wording for this - does anyone have any advice/standard wording they use for this purpose. I have put something together myself but the contract will go to their contracts department (we are talking about a local government client here) for scrutiny. As I have said I am happy to release the source code should my business fail but I don't want to lose any copyright/ownership - also I am finding it difficult to cover what product support constitutes - I don't want to have to release the code if they demand enhancements that I do not want to develop at that time say. Equally I don't want to write a long protracted contract (the software only costs ?5000 so I'm not going to get legal advice or use Escrow) - I am looking for something simple and to the point. All contributions welcome. Richard From djkr at msn.com Fri Feb 24 03:35:32 2006 From: djkr at msn.com (DJK(John) Robinson) Date: Fri, 24 Feb 2006 09:35:32 -0000 Subject: [AccessD] Contract In-Reply-To: <200602240913.k1O9DKg04764@smarthost.yourcomms.net> Message-ID: Hi Richard I'm no help here with the answer, sorry! But do you mean 'off the shelf' rather than bespoke? What's behind my question is - are there other clients for the same software, and if so, what?s the deal with them? It may help to clarify the Q for more helpful respondents! :-) John (PS - Bury? Gosh, I've got the odd client in the Bolton area!) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: 24 February 2006 09:26 To: AccessD Subject: [AccessD] Contract Hi Group I am a stand alone software developer and have been asked by a client to add (a line/paragraph) into the contract (for a piece of off-the-shelf software I have written) something to ensure that should my business go bankrupt/fail the source code can be released to them for product support. I have no problem with this and understand their concerns. What I'm not sure about is the appropriate wording for this - does anyone have any advice/standard wording they use for this purpose. I have put something together myself but the contract will go to their contracts department (we are talking about a local government client here) for scrutiny. As I have said I am happy to release the source code should my business fail but I don't want to lose any copyright/ownership - also I am finding it difficult to cover what product support constitutes - I don't want to have to release the code if they demand enhancements that I do not want to develop at that time say. Equally I don't want to write a long protracted contract (the software only costs ?5000 so I'm not going to get legal advice or use Escrow) - I am looking for something simple and to the point. All contributions welcome. Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Fri Feb 24 03:48:45 2006 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 24 Feb 2006 09:48:45 -0000 Subject: [AccessD] Contract Message-ID: <200602240936.k1O9aGg06652@smarthost.yourcomms.net> John There are other clients/customers (a few - as I've only just completed). The other 3 have not requested this, so I am simply responding on a client-by-client request basis. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: 24 February 2006 09:36 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Contract Hi Richard I'm no help here with the answer, sorry! But do you mean 'off the shelf' rather than bespoke? What's behind my question is - are there other clients for the same software, and if so, what's the deal with them? It may help to clarify the Q for more helpful respondents! :-) John (PS - Bury? Gosh, I've got the odd client in the Bolton area!) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: 24 February 2006 09:26 To: AccessD Subject: [AccessD] Contract Hi Group I am a stand alone software developer and have been asked by a client to add (a line/paragraph) into the contract (for a piece of off-the-shelf software I have written) something to ensure that should my business go bankrupt/fail the source code can be released to them for product support. I have no problem with this and understand their concerns. What I'm not sure about is the appropriate wording for this - does anyone have any advice/standard wording they use for this purpose. I have put something together myself but the contract will go to their contracts department (we are talking about a local government client here) for scrutiny. As I have said I am happy to release the source code should my business fail but I don't want to lose any copyright/ownership - also I am finding it difficult to cover what product support constitutes - I don't want to have to release the code if they demand enhancements that I do not want to develop at that time say. Equally I don't want to write a long protracted contract (the software only costs ?5000 so I'm not going to get legal advice or use Escrow) - I am looking for something simple and to the point. All contributions welcome. Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Fri Feb 24 04:30:49 2006 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Fri, 24 Feb 2006 10:30:49 -0000 Subject: [AccessD] Nested query - SOLVED Message-ID: <7303A459C921B5499AF732CCEEAD2B7F3E6BDE@craws161660.int.rdel.co.uk> Just to close this thread- I ended up using the SQL below: SELECT t1.* FROM tblClubs AS t1 LEFT JOIN tblClubs AS t2 ON (t1.fldIDClubs It works fine in A97, A2k3, and MySQL 4.0.23a. My problem seemed to stem from the fact that version 4.0.23 of mySQL does not support the MAX function. Thanks to everybody who contributed ideas and solutions! Regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte > Foust > Sent: Tuesday, February 21, 2006 4:33 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Nested query > > > That's the way the query engine in Access handles the inline > query under > the covers. Your problem isn't with aliasing the tables (although I > would strongly suggest losing the spaces in your aliases). > It may work > for you if you create the query with the parens and then save it but > don't open it in SQL view again, or if you do, replace the > brackets and > period with parens again before saving. Access 97 was particularly > fussy about this. You had to use parens because it would not > recognize > the square brackets when entered by the user, even though the query > engine requires them. > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote > (Spike) > Sent: Monday, February 20, 2006 12:52 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Nested query > > > There's something not quite right about it as well John. > > The A2003 query grid keeps replacing the round brackets > surrounding the > sub-query with square brackets. Odd! > > I'm trying to run this query against mySQL using phpMyAdmin > and it does > not like it one bit. I think I need to read up on aliasing > tables a bit > more. > > I wonder if I should move sideways onto the SQL list? > > Regards! > Chris F From listmaster at databaseadvisors.com Fri Feb 24 04:48:04 2006 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Fri, 24 Feb 2006 05:48:04 -0500 Subject: [AccessD] Administrivia - Service Outage Announcement Message-ID: The company that hosts our mailing list will be performing some emergency server maintenance that will affect our server. This maintenance is scheduled for tomorrow Feb 24, 2006 between 10:00 AM and 5:00 PM Central Time (GMT -0600). Goto http://www.timezoneconverter.com/cgi-bin/tzc.tzc to figure out what time that is is your area. Use CST6CDT as the From Time Zone and then select your time zone in the To Time Zone. The impact to our service will be minimal. You may notice a short downtime, about 15 minutes at most. The physical server will be rebooted at that time and your service will resume normally. Thanks for your understanding. We apologize for the inconvenience. -- Bryan Carbonnell - listmaster at databaseadvisors.com Learning is a treasure that will follow its owner everywhere. From ecritt1 at alltel.net Fri Feb 24 05:49:35 2006 From: ecritt1 at alltel.net (Penn White) Date: Fri, 24 Feb 2006 06:49:35 -0500 Subject: [AccessD] Creating a demo Access app? References: <003701c6388c$0de387f0$0302a8c0@pennp4> <00cd01c638f8$ec488ba0$8222f63d@pcadt> Message-ID: <001c01c63938$62847ec0$0302a8c0@pennp4> Thanks, A.D. Should have known... ;-) Penn ----- Original Message ----- From: "A.D.TEJPAL" To: "Access Developers discussion and problem solving" Sent: Thursday, February 23, 2006 11:14 PM Subject: Re: [AccessD] Creating a demo Access app? > Penn, > > You might be able to get some working ideas from two of my sample db's > mentioned below: > (a) LicenseLock > (b) TrialSet > > These are available at Rogers Access Library (other developers > library). Link - > http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. > > Best wishes, > A.D.Tejpal > --------------- > > ----- Original Message ----- > From: Penn White > To: Access Developers discussion and problem solving > Sent: Thursday, February 23, 2006 20:43 > Subject: [AccessD] Creating a demo Access app? > > > In the archives, I found a few references to registration codes for > unlocking but I couldn't find anything aobut creating demos. > > I have an application in Access 2003 that I would like to send out as a > demo. I'd like it to be fully functional but only allow 10 main records > to be created -- everything in the application is accessed from one form - > I'd like to limit the number of records that could be created with this > form which is bound to one main table containing fields for relational > ID's to other tables. > > What is the 'best practice' for doing this? Does anyone know of any > articles that treat this subject? > > Thank you, > > Penn White > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From ecritt1 at alltel.net Fri Feb 24 05:52:53 2006 From: ecritt1 at alltel.net (Penn White) Date: Fri, 24 Feb 2006 06:52:53 -0500 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com><001501c6389a$a511bd00$0302a8c0@pennp4><3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> <3bf43ee90602231615j7fc71e26r2ba388a1fbfe1aa8@mail.gmail.com> Message-ID: <002101c63938$d8594a40$0302a8c0@pennp4> That link seems to be broken. In fact, I couldn't even get into the parent (www.everythingaccess.com) Penn >I spoke too soon. Seems they have so I do not think that Jim's solution >will > work. Damn hackers > > http://www.everythingaccess.com/mdeunlocker.htm From boogieloogie at gmail.com Fri Feb 24 06:01:52 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Fri, 24 Feb 2006 08:01:52 -0400 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: <002101c63938$d8594a40$0302a8c0@pennp4> References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> <001501c6389a$a511bd00$0302a8c0@pennp4> <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> <3bf43ee90602231615j7fc71e26r2ba388a1fbfe1aa8@mail.gmail.com> <002101c63938$d8594a40$0302a8c0@pennp4> Message-ID: <3bf43ee90602240401k53498580l58beeb5f6397b5a0@mail.gmail.com> Hmm worked for me. Must have been temporary. On 2/24/06, Penn White wrote: > > That link seems to be broken. In fact, I couldn't even get into the > parent > (www.everythingaccess.com) Penn > > >I spoke too soon. Seems they have so I do not think that Jim's solution > >will > > work. Damn hackers > > > > http://www.everythingaccess.com/mdeunlocker.htm > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Jdemarco at hudsonhealthplan.org Fri Feb 24 06:53:26 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 24 Feb 2006 07:53:26 -0500 Subject: [AccessD] Access 2000 Runtime Error (X-posted) Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C4641@TTNEXCHCL2.hshhp.com> >>They maybe running old VB6 programs calling DAO 3.51 Thanks Marty. This is exactly what they're doing. So will SP3 still fix for them? Or should they recompile their VB apps using a newer Jet version? Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Thursday, February 23, 2006 2:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) Have client look at this file in windows explorer c:\program files\common files\microsoft shared\vba\vba6\vbe6.dll Right click on file select properties then selectr version tab and then file version For Office 2003 I have version number for vbe6.dll 6.04.9972 If you have equal to or lower than 6.3.91.8 then it is the faulty Office 2000 vbe6.dll And needs the Office 2000 SP3 installed Jet or DAO 3.51 in msjet35.dll is only installed by Office 97 or MDAC 2.1 (hasn't been downloadable for 2 years from MS) Access 2000 uses DAO 3.6 msjet40.dll They maybe running old VB6 programs calling DAO 3.51 I have Office 97 and 2003 installed C:\WINDOWS\system32\msjet35.dll My version is 3.51.3328.0 C:\WINDOWS\system32\msjet40.dll version 4.00.8618.0 I have heard of certain DAO 3.6 installs removing DAO 3.51 so you might want to check they are both there Most DAO calls that ran against 3.51 will run against DAO 3.6 except for security fixes. Jim DeMarco wrote: >Thanks Gustav. > >It looks like they may have changed the link to that article. I get this article when I click the link you attached: > >"You receive an error message when you try to view the code in a module, compile a database, create an MDE file or execute code in Access 2000" > >I think they're running WinXP as well but I'm waiting for an answer on that. > >I'm the meantime I think I need to find a better search phrase. I'm coming up blank (irrelevant) on Google and kbalertz.com. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >Sent: Thursday, February 23, 2006 12:28 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) > > >Hi Jim > >Could it be the old VBE6.dll issue: > > > >Take a look at >http://support.microsoft.com/default.aspx?scid=kb;en-us;Q304548 > >This is a typical error when you do not have O2k SR-3 and you have a 2002 or later app installed on the same machine. The VBE6.DLL for 2002 breaks the 2000 Access executable. > >Charlotte Foust > > > > > >>>>Jdemarco at hudsonhealthplan.org 23-02-2006 17:47:27 >>> >>>> >>>> >X-posted AccessD: dba-VB > >Lists, > >We inherited (and distribute) an Access 2K app that uses the Access runtime. One of our user sites (not affiliated with our company) is having a problem running VB apps on machines where this app is installed. Here's a copy of what I got from their IT resource: > > >"...happens when an application is started. >A window opens saying somthing like "Loading Access 2000 Runtime" and displaying a Windows progress bar. >Then a "File Not Found" message window opens. If you cancel out of the window, another "File Not Found" windows opens, etc.. >If you cancel out of these windows about 3 or 4 times, the program will start. > > >They're using Jet 3.51 for "ADO and DAO data access" (quoting their IT resource). Is anyone familiar with this? I searched M$KB but didn't find anything. > >TIA > >Jim DeMarco >Director of Application Development >Hudson Health Plan > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Jdemarco at hudsonhealthplan.org Fri Feb 24 07:03:27 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 24 Feb 2006 08:03:27 -0500 Subject: [AccessD] Converting to 2003 Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C4643@TTNEXCHCL2.hshhp.com> We're moving our A97 apps to 2003. A2K3 defaults to 2000 version. Is there any consensus on which format makes most sense for the upgraded apps (2000 or 2003)? TIA Jim DeMarco Director of Application Development Hudson Health Plan *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From bchacc at san.rr.com Fri Feb 24 08:09:52 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 24 Feb 2006 06:09:52 -0800 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: <002101c63938$d8594a40$0302a8c0@pennp4> References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> <001501c6389a$a511bd00$0302a8c0@pennp4> <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> <3bf43ee90602231615j7fc71e26r2ba388a1fbfe1aa8@mail.gmail.com> <002101c63938$d8594a40$0302a8c0@pennp4> Message-ID: <43FF13B0.2000905@san.rr.com> But does it decompile the code? Rocky > >> I spoke too soon. Seems they have so I do not think that Jim's solution >> will >> work. Damn hackers >> >> http://www.everythingaccess.com/mdeunlocker.htm >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From carbonnb at gmail.com Fri Feb 24 08:16:00 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 24 Feb 2006 09:16:00 -0500 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: <43FF13B0.2000905@san.rr.com> References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> <001501c6389a$a511bd00$0302a8c0@pennp4> <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> <3bf43ee90602231615j7fc71e26r2ba388a1fbfe1aa8@mail.gmail.com> <002101c63938$d8594a40$0302a8c0@pennp4> <43FF13B0.2000905@san.rr.com> Message-ID: On 2/24/06, Rocky Smolin - Beach Access Software wrote: > > But does it decompile the code? Not acording to the page. "*You cannot alter or gain access to the original VBA code - you must use Macros instead." -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From boogieloogie at gmail.com Fri Feb 24 08:37:15 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Fri, 24 Feb 2006 10:37:15 -0400 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> <001501c6389a$a511bd00$0302a8c0@pennp4> <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> <3bf43ee90602231615j7fc71e26r2ba388a1fbfe1aa8@mail.gmail.com> <002101c63938$d8594a40$0302a8c0@pennp4> <43FF13B0.2000905@san.rr.com> Message-ID: <3bf43ee90602240637q1c71f8b9g303819e7a2212b07@mail.gmail.com> that is a relief On 2/24/06, Bryan Carbonnell wrote: > > On 2/24/06, Rocky Smolin - Beach Access Software > wrote: > > > > But does it decompile the code? > > Not acording to the page. > > "*You cannot alter or gain access to the original VBA code - you must > use Macros instead." > > -- > Bryan Carbonnell - carbonnb at gmail.com > Life's journey is not to arrive at the grave safely in a well > preserved body, but rather to skid in sideways, totally worn out, > shouting "What a great ride!" > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Fri Feb 24 08:51:16 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 24 Feb 2006 06:51:16 -0800 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> <001501c6389a$a511bd00$0302a8c0@pennp4> <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> <3bf43ee90602231615j7fc71e26r2ba388a1fbfe1aa8@mail.gmail.com> <002101c63938$d8594a40$0302a8c0@pennp4> <43FF13B0.2000905@san.rr.com> Message-ID: <43FF1D64.5010204@san.rr.com> I've got two products which I send out as mdes. And I worry about the product being knocked off, especially in China where we are beginning to make some sales with the manufacturing system. For both of them the primary intellectual value is in the code - The Sleep Advisor's diagnostic engine is about 7000 lines and the decision tree on the input side, which guides which questions to ask is about half that. The manufacturing system like any system could be knocked off pretty much by copying the design and features of the forms and reports. No magic there. The MRP calculation and cost-roll up program have some tricks in them. Nevertheless, it's not rocket science, and I suppose someone could duplicate the whole thing. But if a product can be duplicated pretty much by looking at the outside, I wonder what the real threat is here? I'm probably missing something. Rocky Bryan Carbonnell wrote: > On 2/24/06, Rocky Smolin - Beach Access Software wrote: > >> But does it decompile the code? >> > > Not acording to the page. > > "*You cannot alter or gain access to the original VBA code - you must > use Macros instead." > > -- > Bryan Carbonnell - carbonnb at gmail.com > Life's journey is not to arrive at the grave safely in a well > preserved body, but rather to skid in sideways, totally worn out, > shouting "What a great ride!" > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From cfoust at infostatsystems.com Fri Feb 24 10:08:26 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 24 Feb 2006 08:08:26 -0800 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) Message-ID: I think the threat is the same as any other knockoff, from Vuitton bags to Rolex watches to custom software, the customer gets something cheap and the original manufacturer gets ripped off. Charlotte Foust -----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 24, 2006 6:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) I've got two products which I send out as mdes. And I worry about the product being knocked off, especially in China where we are beginning to make some sales with the manufacturing system. For both of them the primary intellectual value is in the code - The Sleep Advisor's diagnostic engine is about 7000 lines and the decision tree on the input side, which guides which questions to ask is about half that. The manufacturing system like any system could be knocked off pretty much by copying the design and features of the forms and reports. No magic there. The MRP calculation and cost-roll up program have some tricks in them. Nevertheless, it's not rocket science, and I suppose someone could duplicate the whole thing. But if a product can be duplicated pretty much by looking at the outside, I wonder what the real threat is here? I'm probably missing something. Rocky Bryan Carbonnell wrote: > On 2/24/06, Rocky Smolin - Beach Access Software > wrote: > >> But does it decompile the code? >> > > Not acording to the page. > > "*You cannot alter or gain access to the original VBA code - you must > use Macros instead." > > -- > Bryan Carbonnell - carbonnb at gmail.com > Life's journey is not to arrive at the grave safely in a well > preserved body, but rather to skid in sideways, totally worn out, > shouting "What a great ride!" > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Feb 24 10:58:39 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 24 Feb 2006 08:58:39 -0800 Subject: [AccessD] Access 2000 Runtime Error (X-posted) References: <08F823FD83787D4BA0B99CA580AD3C74016C4641@TTNEXCHCL2.hshhp.com> Message-ID: <43FF3B3F.8000201@shaw.ca> I am guessing without knowing the client's dll version numbers The problem maybe best fixed by recreating your runtime Access 2000 program ensuring it is recompiled with Office 2000 SP3 and Jet SP8 installed. Then reinstalling that, if your Access 2000 program isn't split into a backend, you will have trouble recovering the users tables. If they try to use DAO 3.6 with VB 6 code for mdb database creation they will be creating in 2000 format not 97 unless specifically coded and that may cause problems since DAO 3.5 cannot read 2000 DAO 3.6 format. It is however backward compatible. Their may also be ANSI vs Unicode problems. You might get lucky by re-registering MSJET35.dll In the Run dialog, type the following command: Regsvr32.exe where DLL Name is the name of the DLL file, such as "C:\WINDOWS\system32\msjet35.dll". Path name should be in quotes to avoid spaces problem or perhaps installing the old (last century) Jet SP3 security service pack for DAO 350 only This will re-register dll Pay attention to what version of MSJET35.dll is installed otherwise the SP won't install. http://support.microsoft.com/kb/q172733/ How to determine the current service pack level for Jet 3.5 Use the following steps to determine the Jet 3.5 service pack level that is currently installed on your computer. Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.1. On the Start menu, click Search. 2. In the Search Results pane under Search Companion, click All files and folders. 3. In the All or part of the file name box, type msjet35.dll, and then click Search. 4. In the list of files, right-click the msjet35.dll file located in the Windows\System32 (or Windows\System) folder, and then click Properties. 5. Click the Version tab, and then use the following table to determine the current Jet 4.0 service pack level: Msjet35.dll Version Jet 3.5 Service Pack Level 3.51.2723.0 Service Pack 2 (SP2) 3.51.3203.0 Service Pack 3 (SP3) 3.51.3328.0 Service Pack 3 (SP3) with enhanced security Also see http://msdn.microsoft.com/data/downloads/updates/default.aspx#jet If you're running Access on an NT box being a DHCP/WINS server etc, then you need to stop the services, cause they themselves use Jet to handle their databases. Jim DeMarco wrote: >>>They maybe running old VB6 programs calling DAO 3.51 >>> >>> > >Thanks Marty. This is exactly what they're doing. > >So will SP3 still fix for them? Or should they recompile their VB apps using a newer Jet version? > >Jim D. > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly >Sent: Thursday, February 23, 2006 2:34 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) > > >Have client look at this file in windows explorer > >c:\program files\common files\microsoft shared\vba\vba6\vbe6.dll > >Right click on file select properties then selectr version tab and then >file version >For Office 2003 I have version number for vbe6.dll >6.04.9972 >If you have equal to or lower than > 6.3.91.8 >then it is the faulty Office 2000 vbe6.dll >And needs the Office 2000 SP3 installed > >Jet or DAO 3.51 in msjet35.dll is only installed by Office 97 or MDAC >2.1 (hasn't been downloadable for 2 years from MS) >Access 2000 uses DAO 3.6 msjet40.dll > >They maybe running old VB6 programs calling DAO 3.51 > >I have Office 97 and 2003 installed > >C:\WINDOWS\system32\msjet35.dll My version is 3.51.3328.0 >C:\WINDOWS\system32\msjet40.dll version 4.00.8618.0 > >I have heard of certain DAO 3.6 installs removing DAO 3.51 so you might >want to check they are both there >Most DAO calls that ran against 3.51 will run against DAO 3.6 except for >security fixes. > > >Jim DeMarco wrote: > > > >>Thanks Gustav. >> >>It looks like they may have changed the link to that article. I get this article when I click the link you attached: >> >>"You receive an error message when you try to view the code in a module, compile a database, create an MDE file or execute code in Access 2000" >> >>I think they're running WinXP as well but I'm waiting for an answer on that. >> >>I'm the meantime I think I need to find a better search phrase. I'm coming up blank (irrelevant) on Google and kbalertz.com. >> >>Jim >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >>Sent: Thursday, February 23, 2006 12:28 PM >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) >> >> >>Hi Jim >> >>Could it be the old VBE6.dll issue: >> >> >> >>Take a look at >>http://support.microsoft.com/default.aspx?scid=kb;en-us;Q304548 >> >>This is a typical error when you do not have O2k SR-3 and you have a 2002 or later app installed on the same machine. The VBE6.DLL for 2002 breaks the 2000 Access executable. >> >>Charlotte Foust >> >> >> >> >> >> >> >>>>>Jdemarco at hudsonhealthplan.org 23-02-2006 17:47:27 >>> >>>>> >>>>> >>>>> >>>>> >>X-posted AccessD: dba-VB >> >>Lists, >> >>We inherited (and distribute) an Access 2K app that uses the Access runtime. One of our user sites (not affiliated with our company) is having a problem running VB apps on machines where this app is installed. Here's a copy of what I got from their IT resource: >> >> >>"...happens when an application is started. >>A window opens saying somthing like "Loading Access 2000 Runtime" and displaying a Windows progress bar. >>Then a "File Not Found" message window opens. If you cancel out of the window, another "File Not Found" windows opens, etc.. >>If you cancel out of these windows about 3 or 4 times, the program will start. >> >> >>They're using Jet 3.51 for "ADO and DAO data access" (quoting their IT resource). Is anyone familiar with this? I searched M$KB but didn't find anything. >> >>TIA >> >>Jim DeMarco >>Director of Application Development >>Hudson Health Plan >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Fri Feb 24 11:48:53 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 24 Feb 2006 09:48:53 -0800 Subject: [AccessD] Contract References: <200602240913.k1O9DKg04764@smarthost.yourcomms.net> Message-ID: <43FF4705.9000200@shaw.ca> Software Escrow costs about $500-$750 a year, if you have 50 clients that is reasonable. Here are some downloadable Escrow agreements American, British or Canadian (2 and 3 party) http://www.escrowassociates.com/agreements.htm Look at sections on Successors and Assigns and Bankruptcy in agreements Escrow FAQ that might be useful http://www.softescrow.com/faq.html#5.0 Other Escrow firms DSI Technology Escrow http://www.dsiescrow.com InnovaSafe Escrow Service http://www.innovasafe.com Griffiths, Richard wrote: >Hi Group > >I am a stand alone software developer and have been asked by a client to add (a line/paragraph) into the contract (for a piece of off-the-shelf software I have written) >something to ensure that should my business go bankrupt/fail the source code can be released to them for product support. I have no problem with this >and understand their concerns. What I'm not sure about is the appropriate wording for this - does anyone have any advice/standard wording they use for this purpose. >I have put something together myself but the contract will go to their contracts department (we are talking about a local government client here) for scrutiny. >As I have said I am happy to release the source code should my business fail but I don't want to lose any copyright/ownership - also I am finding it difficult to cover what product support >constitutes - I don't want to have to release the code if they demand enhancements that I do not want to develop at that time say. Equally I don't want to write a long protracted contract (the software only >costs ?5000 so I'm not going to get legal advice or use Escrow) - I am looking for something simple and to the point. All contributions welcome. > >Richard > > > -- Marty Connelly Victoria, B.C. Canada From dwaters at usinternet.com Fri Feb 24 12:03:46 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 24 Feb 2006 12:03:46 -0600 Subject: [AccessD] Contract In-Reply-To: <26091262.1140773311567.JavaMail.root@sniper17> Message-ID: <000001c6396c$a87f3d00$0200a8c0@danwaters> Hi Richard, I'm having exactly this issue with a large customer I currently have. What we've worked out is this: If they are having trouble contacting me (or my company), they will send a registered letter to my legal address. If they don't hear from me in 30 days, then they have the right to claim ownership of the application by sending another registered letter making that claim. Their ownership obtained this way would be non-exclusive and non-transferable, so it won't affect your ability to continue your business as before, assuming you didn't lose the fight with the truck! Actually, they have a good point in wanting to work on this on their own if you can't or won't provide a timely response to their request for an update or modification. To cover this, I allow the IT department, by contract, to make any modifications they want at any time. Their working on this will not change any state of ownership. Of course, I won't warranty any problems caused by them. In practice, the IT department will probably prefer to not get involved in modifications to software that will continue to be maintained by an outside entity, so you should still get first crack at the modification work. You could consider having someone you trust as a developer to be your 'backup' if you're currently busy. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Friday, February 24, 2006 3:26 AM To: AccessD Subject: [AccessD] Contract Hi Group I am a stand alone software developer and have been asked by a client to add (a line/paragraph) into the contract (for a piece of off-the-shelf software I have written) something to ensure that should my business go bankrupt/fail the source code can be released to them for product support. I have no problem with this and understand their concerns. What I'm not sure about is the appropriate wording for this - does anyone have any advice/standard wording they use for this purpose. I have put something together myself but the contract will go to their contracts department (we are talking about a local government client here) for scrutiny. As I have said I am happy to release the source code should my business fail but I don't want to lose any copyright/ownership - also I am finding it difficult to cover what product support constitutes - I don't want to have to release the code if they demand enhancements that I do not want to develop at that time say. Equally I don't want to write a long protracted contract (the software only costs ?5000 so I'm not going to get legal advice or use Escrow) - I am looking for something simple and to the point. All contributions welcome. Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Fri Feb 24 12:19:54 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 24 Feb 2006 13:19:54 -0500 Subject: [AccessD] Access 2000 Runtime Error (X-posted) Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C465C@TTNEXCHCL2.hshhp.com> Thanks for the detailed reply Marty. We're probably going to have to mix and match possible solutions. We don't have A2K here. The app was given to us by a company in Idaho as freeware and it came via an install disk so we never put them together (the app and runtime). All we do is modify the front-end and copy over the original. I think I've got enough possibilities here to get us on track though. Thanks again, Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Friday, February 24, 2006 11:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) I am guessing without knowing the client's dll version numbers The problem maybe best fixed by recreating your runtime Access 2000 program ensuring it is recompiled with Office 2000 SP3 and Jet SP8 installed. Then reinstalling that, if your Access 2000 program isn't split into a backend, you will have trouble recovering the users tables. If they try to use DAO 3.6 with VB 6 code for mdb database creation they will be creating in 2000 format not 97 unless specifically coded and that may cause problems since DAO 3.5 cannot read 2000 DAO 3.6 format. It is however backward compatible. Their may also be ANSI vs Unicode problems. You might get lucky by re-registering MSJET35.dll In the Run dialog, type the following command: Regsvr32.exe where DLL Name is the name of the DLL file, such as "C:\WINDOWS\system32\msjet35.dll". Path name should be in quotes to avoid spaces problem or perhaps installing the old (last century) Jet SP3 security service pack for DAO 350 only This will re-register dll Pay attention to what version of MSJET35.dll is installed otherwise the SP won't install. http://support.microsoft.com/kb/q172733/ How to determine the current service pack level for Jet 3.5 Use the following steps to determine the Jet 3.5 service pack level that is currently installed on your computer. Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.1. On the Start menu, click Search. 2. In the Search Results pane under Search Companion, click All files and folders. 3. In the All or part of the file name box, type msjet35.dll, and then click Search. 4. In the list of files, right-click the msjet35.dll file located in the Windows\System32 (or Windows\System) folder, and then click Properties. 5. Click the Version tab, and then use the following table to determine the current Jet 4.0 service pack level: Msjet35.dll Version Jet 3.5 Service Pack Level 3.51.2723.0 Service Pack 2 (SP2) 3.51.3203.0 Service Pack 3 (SP3) 3.51.3328.0 Service Pack 3 (SP3) with enhanced security Also see http://msdn.microsoft.com/data/downloads/updates/default.aspx#jet If you're running Access on an NT box being a DHCP/WINS server etc, then you need to stop the services, cause they themselves use Jet to handle their databases. Jim DeMarco wrote: >>>They maybe running old VB6 programs calling DAO 3.51 >>> >>> > >Thanks Marty. This is exactly what they're doing. > >So will SP3 still fix for them? Or should they recompile their VB apps using a newer Jet version? > >Jim D. > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly >Sent: Thursday, February 23, 2006 2:34 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) > > >Have client look at this file in windows explorer > >c:\program files\common files\microsoft shared\vba\vba6\vbe6.dll > >Right click on file select properties then selectr version tab and then >file version >For Office 2003 I have version number for vbe6.dll >6.04.9972 >If you have equal to or lower than > 6.3.91.8 >then it is the faulty Office 2000 vbe6.dll >And needs the Office 2000 SP3 installed > >Jet or DAO 3.51 in msjet35.dll is only installed by Office 97 or MDAC >2.1 (hasn't been downloadable for 2 years from MS) >Access 2000 uses DAO 3.6 msjet40.dll > >They maybe running old VB6 programs calling DAO 3.51 > >I have Office 97 and 2003 installed > >C:\WINDOWS\system32\msjet35.dll My version is 3.51.3328.0 >C:\WINDOWS\system32\msjet40.dll version 4.00.8618.0 > >I have heard of certain DAO 3.6 installs removing DAO 3.51 so you might >want to check they are both there >Most DAO calls that ran against 3.51 will run against DAO 3.6 except for >security fixes. > > >Jim DeMarco wrote: > > > >>Thanks Gustav. >> >>It looks like they may have changed the link to that article. I get this article when I click the link you attached: >> >>"You receive an error message when you try to view the code in a module, compile a database, create an MDE file or execute code in Access 2000" >> >>I think they're running WinXP as well but I'm waiting for an answer on that. >> >>I'm the meantime I think I need to find a better search phrase. I'm coming up blank (irrelevant) on Google and kbalertz.com. >> >>Jim >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >>Sent: Thursday, February 23, 2006 12:28 PM >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) >> >> >>Hi Jim >> >>Could it be the old VBE6.dll issue: >> >> >> >>Take a look at >>http://support.microsoft.com/default.aspx?scid=kb;en-us;Q304548 >> >>This is a typical error when you do not have O2k SR-3 and you have a 2002 or later app installed on the same machine. The VBE6.DLL for 2002 breaks the 2000 Access executable. >> >>Charlotte Foust >> >> >> >> >> >> >> >>>>>Jdemarco at hudsonhealthplan.org 23-02-2006 17:47:27 >>> >>>>> >>>>> >>>>> >>>>> >>X-posted AccessD: dba-VB >> >>Lists, >> >>We inherited (and distribute) an Access 2K app that uses the Access runtime. One of our user sites (not affiliated with our company) is having a problem running VB apps on machines where this app is installed. Here's a copy of what I got from their IT resource: >> >> >>"...happens when an application is started. >>A window opens saying somthing like "Loading Access 2000 Runtime" and displaying a Windows progress bar. >>Then a "File Not Found" message window opens. If you cancel out of the window, another "File Not Found" windows opens, etc.. >>If you cancel out of these windows about 3 or 4 times, the program will start. >> >> >>They're using Jet 3.51 for "ADO and DAO data access" (quoting their IT resource). Is anyone familiar with this? I searched M$KB but didn't find anything. >> >>TIA >> >>Jim DeMarco >>Director of Application Development >>Hudson Health Plan >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From shamil at users.mns.ru Fri Feb 24 14:31:19 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 24 Feb 2006 23:31:19 +0300 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: Message-ID: <002701c63981$578360b0$6401a8c0@Nant> All, Here is a Friday puzzle on subject I suppose: Have a look at this screenshot http://www.code-vb.com/help/dlg_frmProcedure.htm and now on this one: http://www.smartvba.com/methods_builder.htm The first (http://www.code-vb.com/help/dlg_frmProcedure.htm) - was first time released in the beginning of the last year and the latter - in the end. These are not related companies. I know the history of the first and how it was created. Question: How it comes that the design of the latter company's software is sometimes literally the same? (and many other forms are like that). My guess: The designs of the first were replicated manually or decompiled (there is good VB6 decompiler - the info about it was published here) then adjusted and published by the second company. Anybody believes that designs can be so similar if the second company didn't know anything about the software products of the first? Am I getting paranoid? If not, then one who publishes MDE apps may expect to see their GUI designs (and good GUI designs is a lot of work) be published within other companies' software... Shamil ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 24, 2006 7:08 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) >I think the threat is the same as any other knockoff, from Vuitton bags > to Rolex watches to custom software, the customer gets something cheap > and the original manufacturer gets ripped off. > > Charlotte Foust > > > -----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 24, 2006 6:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > > > I've got two products which I send out as mdes. And I worry about the > product being knocked off, especially in China where we are beginning to > > make some sales with the manufacturing system. > > For both of them the primary intellectual value is in the code - The > Sleep Advisor's diagnostic engine is about 7000 lines and the decision > tree on the input side, which guides which questions to ask is about > half that. > > The manufacturing system like any system could be knocked off pretty > much by copying the design and features of the forms and reports. No > magic there. The MRP calculation and cost-roll up program have some > tricks in them. > > Nevertheless, it's not rocket science, and I suppose someone could > duplicate the whole thing. > > But if a product can be duplicated pretty much by looking at the > outside, I wonder what the real threat is here? I'm probably missing > something. > > Rocky > > > Bryan Carbonnell wrote: >> On 2/24/06, Rocky Smolin - Beach Access Software >> wrote: >> >>> But does it decompile the code? >>> >> >> Not acording to the page. >> >> "*You cannot alter or gain access to the original VBA code - you must >> use Macros instead." >> >> -- >> Bryan Carbonnell - carbonnb at gmail.com >> Life's journey is not to arrive at the grave safely in a well >> preserved body, but rather to skid in sideways, totally worn out, >> shouting "What a great ride!" >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Feb 24 15:09:41 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 25 Feb 2006 00:09:41 +0300 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: <002701c63981$578360b0$6401a8c0@Nant> Message-ID: <001101c63986$a85f0c00$6401a8c0@Nant> Sorry, some more fears on software hacking hazards (switch on your disparate(?) facts association skills well tested by IQ tests :)) : Have a look: SmartVBA.COM ============ Registrant: C-13-39-19 Tashkent, Tashkent 700128 UZ Domain name: SMARTVBA.COM Administrative Contact: Olevskiy, Evgeniy ******@olsoft.biz C-13-39-19 Tashkent, Tashkent 700128 UZ +998 93 172-0073 Technical Contact: Olevskiy, Evgeniy ******@olsoft.biz C-13-39-19 Tashkent, Tashkent 700128 UZ +998 93 172-0073 Registration Service Provider: Domain Names At WholeSale, ******@olevsky.com +998 71 1840073 This company may be contacted for domain login/passwords, DNS/Nameserver changes, and general domain support questions. Registrar of Record: TUCOWS, INC. Record last updated on 14-Dec-2005. Record expires on 14-Dec-2006. Record created on 14-Dec-2005. Domain servers in listed order: NS1.DISCOUNTASP.NET 64.79.161.51 NS2.DISCOUNTASP.NET 216.177.89.10 NS3.DISCOUNTASP.NET 63.110.186.41 Domain status: ACTIVE === olevsky.com =========== Registrant: EOL C-13-39-19 Tashkent, Tashkent 700128 UZ Domain name: OLEVSKY.COM Administrative Contact: Olevskiy, Evgeniy ******@analyzerxl.com C-13-39-19 Tashkent, Tashkent 700128 UZ +99871-1800073 Fax: +1 (248) 282-0304 Technical Contact: Olevskiy, Evgeniy ******@analyzerxl.com C-13-39-19 Tashkent, 700128 UZ +998 71 1800073 Fax: +1 (248) 282-0304 Registration Service Provider: Domain Names At WholeSale, ******@olevsky.com +998 71 1840073 This company may be contacted for domain login/passwords, DNS/Nameserver changes, and general domain support questions. === www.olsoft.biz ============== Domain Name: OLSOFT.BIZ Domain ID: D6089481-BIZ Sponsoring Registrar: TUCOWS INC. Sponsoring Registrar IANA ID: 69 Domain Status: clientTransferProhibited Domain Status: clientUpdateProhibited Registrant ID: TUSW1V48BI6FEXVW Registrant Name: Eugene Olevsky Registrant Organization: Eugene Olevsky Registrant Address1: C-13--39-19 Registrant City: Tashkent Registrant State/Province: Tashkent Registrant Postal Code: 700128 Registrant Country: Uzbekistan Registrant Country Code: UZ Registrant Phone Number: +998.711840073 Registrant Facsimile Number: +998.711840073 Registrant Email: ******@olevsky.com Administrative Contact ID: TUSW1V48BI6FEXVW Administrative Contact Name: Eugene Olevsky Administrative Contact Organization: Eugene Olevsky Administrative Contact Address1: C-13--39-19 Administrative Contact City: Tashkent Administrative Contact State/Province: Tashkent Administrative Contact Postal Code: 700128 Administrative Contact Country: Uzbekistan Administrative Contact Country Code: UZ Administrative Contact Phone Number: +998.711840073 Administrative Contact Facsimile Number: +998.711840073 Administrative Contact Email: ******@olevsky.com Billing Contact ID: TUSW1V48BI6FEXVW Billing Contact Name: Eugene Olevsky Billing Contact Organization: Eugene Olevsky Billing Contact Address1: C-13--39-19 Billing Contact City: Tashkent Billing Contact State/Province: Tashkent Billing Contact Postal Code: 700128 Billing Contact Country: Uzbekistan Billing Contact Country Code: UZ Billing Contact Phone Number: +998.711840073 Billing Contact Facsimile Number: +998.711840073 Billing Contact Email: ******@olevsky.com Technical Contact ID: TUAMY4RAF2BZ4SWM Technical Contact Name: Direct Domain Technical Contact Organization: Tucows International Corp. Technical Contact Address1: 96 Mowat Avenue Technical Contact City: Toronto Technical Contact State/Province: ON Technical Contact Postal Code: M6K3M1 Technical Contact Country: Canada Technical Contact Country Code: CA Technical Contact Phone Number: +1.4165350123 Technical Contact Facsimile Number: +1.4165312516 Technical Contact Email: *******@domaindirect.com Name Server: NS3.WORLDISPNETWORK.COM Name Server: NS4.WORLDISPNETWORK.COM Created by Registrar: TUCOWS INC. Last Updated by Registrar: TUCOWS INC. Domain Registration Date: Tue Jan 20 07:28:09 GMT 2004 Domain Expiration Date: Fri Jan 19 23:59:59 GMT 2007 Domain Last Updated Date: Fri Jan 06 07:59:39 GMT 2006 as well as http://www.analyzerxl.com/ and many others.... Shamil ----- Original Message ----- From: "Shamil Salakhetdinov" To: "Access Developers discussion and problem solving" Sent: Friday, February 24, 2006 11:31 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > All, > > Here is a Friday puzzle on subject I suppose: > > Have a look at this screenshot > > http://www.code-vb.com/help/dlg_frmProcedure.htm > > and now on this one: > > http://www.smartvba.com/methods_builder.htm > > The first (http://www.code-vb.com/help/dlg_frmProcedure.htm) - was first > time released in the beginning of the last year and the latter - in the > end. > > These are not related companies. > > I know the history of the first and how it was created. > > Question: How it comes that the design of the latter company's software is > sometimes literally the same? (and many other forms are like that). > > My guess: The designs of the first were replicated manually or > decompiled (there is good VB6 decompiler - the info about it was > published here) then adjusted and published by the second company. > > Anybody believes that designs can be so similar if the second company > didn't > know anything about the software products of the first? > Am I getting paranoid? > > If not, then one who publishes MDE apps may expect to see their GUI > designs (and good GUI designs is a lot of work) be published within other > companies' software... > > Shamil <<< tail skipped>>> From wdhindman at bellsouth.net Fri Feb 24 15:09:59 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 24 Feb 2006 16:09:59 -0500 Subject: [AccessD] Converting to 2003 References: <08F823FD83787D4BA0B99CA580AD3C74016C4643@TTNEXCHCL2.hshhp.com> Message-ID: <002a01c63986$abe17c00$6101a8c0@50NM721> Jim ...now that the bloat in the post A2K format has been fixed, I've standardized on the A2K3 format whenever possible ...I no longer see any advantage in using the A2K format unless you're running in a mixed environment. William ----- Original Message ----- From: "Jim DeMarco" To: "AccessD (E-mail)" Sent: Friday, February 24, 2006 8:03 AM Subject: [AccessD] Converting to 2003 > We're moving our A97 apps to 2003. A2K3 defaults to 2000 version. Is > there any consensus on which format makes most sense for the upgraded apps > (2000 or 2003)? > > TIA > > Jim DeMarco > Director of Application Development > Hudson Health Plan > > > > *********************************************************************************** > "This electronic message is intended to be for the use only of the named > recipient, and may contain information from Hudson Health Plan (HHP) that > is confidential or privileged. If you are not the intended recipient, you > are hereby notified that any disclosure, copying, distribution or use of > the contents of this message is strictly prohibited. If you have received > this message in error or are not the named recipient, please notify us > immediately, either by contacting the sender at the electronic mail > address noted above or calling HHP at (914) 631-1611. If you are not the > intended recipient, please do not forward this email to anyone, and delete > and destroy all copies of this message. Thank You". > *********************************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From KP at sdsonline.net Fri Feb 24 16:06:28 2006 From: KP at sdsonline.net (Kath Pelletti) Date: Sat, 25 Feb 2006 09:06:28 +1100 Subject: [AccessD] Contract References: <200602240913.k1O9DKg04764@smarthost.yourcomms.net> Message-ID: <003601c6398e$908f2f80$6501a8c0@user> Richard - I have just had a solicitor draw up a contract for me (regarding software - but different purpose) and some of these clauses seem relevant to you (maybe 13.ii, 13.iii, 13.iv) But it would probably be worth getting something done properly if you can add it to the bill? rgds Kath 13.1 This Agreement may be terminated by either party forthwith upon the happening of any of the following events: (i) upon any material breach by either party of its obligations under this Agreement where the non-breaching party has provided fourteen (14) days written notice to the breaching party specifying the material breach and such material breach has not been remedied during the fourteen (14) day period; (ii) all or substantially all of the assets of the other party are acquired by or its effective control is transferred to any third party, whether governmental or private; (iii) if the other party has a receiver, or receiver and manager appointed over the whole or any substantial part of its assets or if an official manager of the other party is appointed; (iv) a court order is made or a resolution of the other party's shareholder is passed for the winding up of the other party other than for the purpose of reconstruction, re-organisation or amalgamation; (v) if the other party becomes insolvent or makes an assignment for the benefit of creditors or any agreement pursuant to the Law of Bankruptcy or otherwise acknowledges its insolvency. ----- Original Message ----- From: Griffiths, Richard To: AccessD Sent: Friday, February 24, 2006 8:25 PM Subject: [AccessD] Contract Hi Group I am a stand alone software developer and have been asked by a client to add (a line/paragraph) into the contract (for a piece of off-the-shelf software I have written) something to ensure that should my business go bankrupt/fail the source code can be released to them for product support. I have no problem with this and understand their concerns. What I'm not sure about is the appropriate wording for this - does anyone have any advice/standard wording they use for this purpose. I have put something together myself but the contract will go to their contracts department (we are talking about a local government client here) for scrutiny. As I have said I am happy to release the source code should my business fail but I don't want to lose any copyright/ownership - also I am finding it difficult to cover what product support constitutes - I don't want to have to release the code if they demand enhancements that I do not want to develop at that time say. Equally I don't want to write a long protracted contract (the software only costs ?5000 so I'm not going to get legal advice or use Escrow) - I am looking for something simple and to the point. All contributions welcome. Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Feb 24 16:25:51 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 24 Feb 2006 16:25:51 -0600 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: <5287065.1140813611280.JavaMail.root@sniper14> Message-ID: <000901c63991$451541e0$0200a8c0@danwaters> Very Scary!! You can't sue someone who's in the middle of Tashkent, Uzbekistan! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, February 24, 2006 2:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) All, Here is a Friday puzzle on subject I suppose: Have a look at this screenshot http://www.code-vb.com/help/dlg_frmProcedure.htm and now on this one: http://www.smartvba.com/methods_builder.htm The first (http://www.code-vb.com/help/dlg_frmProcedure.htm) - was first time released in the beginning of the last year and the latter - in the end. These are not related companies. I know the history of the first and how it was created. Question: How it comes that the design of the latter company's software is sometimes literally the same? (and many other forms are like that). My guess: The designs of the first were replicated manually or decompiled (there is good VB6 decompiler - the info about it was published here) then adjusted and published by the second company. Anybody believes that designs can be so similar if the second company didn't know anything about the software products of the first? Am I getting paranoid? If not, then one who publishes MDE apps may expect to see their GUI designs (and good GUI designs is a lot of work) be published within other companies' software... Shamil ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 24, 2006 7:08 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) >I think the threat is the same as any other knockoff, from Vuitton bags > to Rolex watches to custom software, the customer gets something cheap > and the original manufacturer gets ripped off. > > Charlotte Foust > > > -----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 24, 2006 6:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > > > I've got two products which I send out as mdes. And I worry about the > product being knocked off, especially in China where we are beginning to > > make some sales with the manufacturing system. > > For both of them the primary intellectual value is in the code - The > Sleep Advisor's diagnostic engine is about 7000 lines and the decision > tree on the input side, which guides which questions to ask is about > half that. > > The manufacturing system like any system could be knocked off pretty > much by copying the design and features of the forms and reports. No > magic there. The MRP calculation and cost-roll up program have some > tricks in them. > > Nevertheless, it's not rocket science, and I suppose someone could > duplicate the whole thing. > > But if a product can be duplicated pretty much by looking at the > outside, I wonder what the real threat is here? I'm probably missing > something. > > Rocky > > > Bryan Carbonnell wrote: >> On 2/24/06, Rocky Smolin - Beach Access Software >> wrote: >> >>> But does it decompile the code? >>> >> >> Not acording to the page. >> >> "*You cannot alter or gain access to the original VBA code - you must >> use Macros instead." >> >> -- >> Bryan Carbonnell - carbonnb at gmail.com >> Life's journey is not to arrive at the grave safely in a well >> preserved body, but rather to skid in sideways, totally worn out, >> shouting "What a great ride!" >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Feb 24 17:51:33 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 25 Feb 2006 02:51:33 +0300 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: <000901c63991$451541e0$0200a8c0@danwaters> Message-ID: <003601c6399d$64caf870$6401a8c0@Nant> Just curious: eFax: +1 888 2134472 (http://www.smartvba.com/AboutUs.htm) is Tashkent, Uzbekistan or United States? Or 888 could be everywhere in this World despite the fact that country prefix is +1? (http://www.csgnetwork.com/usphoneareacodesng.html) There are other addresses/locations of related sites - and this is Moscow, Germany, United States United States - Analyzer LLC - +1 248 282 0304 - www.analyzerxl.com Germany - FRANZ AG - (866) 493-5883 www.neuroxl.com, www.pwdsaver.com, marketnewsanalyzer.com Russia - OLSOFT Software Development Company- http://www.olsoft.biz/contact.htm This their company (www.smartvba.com) tries to hide its origins in our Internet times! (as well as many its related sites). Looks funny if it would have not been that a sad story... (Looks funny because they seems to heavily use search engines to promote their software by any means and in the same time expect they cannot be traced...) Pity folks here don't know Russian - on the referred below site the owner(?) of this company/net of companies talks about poetry and other "high matters" - looks wise what they say: http://www.olevsky.com/prose/Small.htm: "Values: It happens important where to go, but it also happens not important where to go but how..." It looks like his words do not correlate with his business... Here he is: Taskent Business Club Olevskiy Evgene Isakovich - Chairman of the Board Private firm "OLSOFT" http://tbc.boom.ru/founders.html Eugene at olsoft.biz Am I dreaming bad nightmare dreams and therefore I urgently need to purchase Rocky's software license? Am I getting paranoid? Or you do also believe all that happens in reality and all these companies are related? Please help to clarify these troubles... Thank you. Shamil P.S. Sorry moderators but the situation is so unexpected and unexplainable and if they win (they have money and many people working for them as far as I see) then it may happen that a small team of hardworking people will loose almost all their hopes for better future... ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 25, 2006 1:25 AM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > Very Scary!! > > You can't sue someone who's in the middle of Tashkent, Uzbekistan! > > Dan > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Friday, February 24, 2006 2:31 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > > All, > > Here is a Friday puzzle on subject I suppose: > > Have a look at this screenshot > > http://www.code-vb.com/help/dlg_frmProcedure.htm > > and now on this one: > > http://www.smartvba.com/methods_builder.htm > > The first (http://www.code-vb.com/help/dlg_frmProcedure.htm) - was first > time released in the beginning of the last year and the latter - in the > end. > > These are not related companies. > > I know the history of the first and how it was created. > > Question: How it comes that the design of the latter company's software is > sometimes literally the same? (and many other forms are like that). > > My guess: The designs of the first were replicated manually or > decompiled (there is good VB6 decompiler - the info about it was > published here) then adjusted and published by the second company. > > Anybody believes that designs can be so similar if the second company > didn't > know anything about the software products of the first? > Am I getting paranoid? > > If not, then one who publishes MDE apps may expect to see their GUI > designs (and good GUI designs is a lot of work) be published within other > companies' software... > > Shamil > From ecritt1 at alltel.net Sat Feb 25 07:44:33 2006 From: ecritt1 at alltel.net (Penn White) Date: Sat, 25 Feb 2006 08:44:33 -0500 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: <000901c63991$451541e0$0200a8c0@danwaters> <003601c6399d$64caf870$6401a8c0@Nant> Message-ID: <001c01c63a11$9c4aa330$0302a8c0@pennp4> All, I've had a little trouble following all of Shamil's links and logic but it seems to boil down to a company (or multiple companies under the same -hidden - ownership) is in the process of reverse engineering other people's work. If I understand it correctly, it's nothing new and not unique to computer programs. IMHO, everything released into the public domain will, sooner or later, be copied or even reverse engineered by somebody if it's good enough. I beleive that the only way to combat this is to continue to improve the program and market effectively and continually. If the reverse engineers/copycats were so smart, they'd be producing their own work instead of copying everybody elses. This may not be the case in instances like China stealing our proprietary missle development technology which saves them years of work and gives them access to things they don't have the resources yet to develop themselves. But an Access or SQL Server database app like I develop is really pretty simple to copy. What I have going for me is an established customer base and a head start on the competition. I've got over a year of development time in an app I am currently marketing and it's far from finished the way I'd like it to be. Sure, somebody can copy it and maybe even improve on it while they're at it but it will take them awhile and all that while, I'm selling more copies, doing more development and fine tuning, and establishing a loyal group of customers who trust me and know I'm responsive to their needs. They could switch to somebody else, but why would they bother? A new customer could buy a cheap knock-off of my program but ultimately, you get what you pay for and I'm still convinced I'll do a better job than some sorry hacker. My 2 cents. Penn ----- Original Message ----- From: "Shamil Salakhetdinov" To: "Access Developers discussion and problem solving" Sent: Friday, February 24, 2006 6:51 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) From boogieloogie at gmail.com Sat Feb 25 10:12:01 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Sat, 25 Feb 2006 12:12:01 -0400 Subject: [AccessD] Launching a dos program from Access 97 Message-ID: <3bf43ee90602250812y3039987fk65cb6e1ce62316e7@mail.gmail.com> I have a client using an old DOS program called prethin.exe. It is in a folder called fmv. I do not need to pass any variables to it. Just need it to lauch after I feed data to the underlying dbf's. Is it possible to launch it with some vba code behind a button in Access 97? Anyone have a sample? Thanks Tim From Gustav at cactus.dk Sat Feb 25 10:22:20 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 25 Feb 2006 17:22:20 +0100 Subject: [AccessD] Launching a dos program from Access 97 Message-ID: Hi Tim Look up the Shell() function ... it is exactly for this purpose. Remember, if path contains spaces it must be wrapped in double-quotes, and full filename must be used (.exe). /gustav >>> boogieloogie at gmail.com 25-02-2006 17:12 >>> I have a client using an old DOS program called prethin.exe. It is in a folder called fmv. I do not need to pass any variables to it. Just need it to lauch after I feed data to the underlying dbf's. Is it possible to launch it with some vba code behind a button in Access 97? Anyone have a sample? Thanks Tim From martyconnelly at shaw.ca Sat Feb 25 12:46:36 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 25 Feb 2006 10:46:36 -0800 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: <002701c63981$578360b0$6401a8c0@Nant> Message-ID: <4400A60C.7020006@shaw.ca> It is not that hard to do with an mde. Here is a utility. Michael Kaplan pointed me here about 3 or 4 years ago for password cracks. MDE forms/reports extractor v2.2 MS Access 2000 add-in This utility is designed to allow you to extract the forms, reports and macros from an mde file to mdb (without the form/report class module code). It wont get the code behind the forms. http://accesstools.narod.ru/index.html Serge Gavrilov seems to be in your backyard. Shamil Salakhetdinov wrote: >All, > >Here is a Friday puzzle on subject I suppose: > >Have a look at this screenshot > >http://www.code-vb.com/help/dlg_frmProcedure.htm > >and now on this one: > >http://www.smartvba.com/methods_builder.htm > >The first (http://www.code-vb.com/help/dlg_frmProcedure.htm) - was first >time released in the beginning of the last year and the latter - in the end. > >These are not related companies. > >I know the history of the first and how it was created. > >Question: How it comes that the design of the latter company's software is >sometimes literally the same? (and many other forms are like that). > >My guess: The designs of the first were replicated manually or >decompiled (there is good VB6 decompiler - the info about it was >published here) then adjusted and published by the second company. > >Anybody believes that designs can be so similar if the second company didn't >know anything about the software products of the first? >Am I getting paranoid? > >If not, then one who publishes MDE apps may expect to see their GUI >designs (and good GUI designs is a lot of work) be published within other >companies' software... > >Shamil > >----- Original Message ----- >From: "Charlotte Foust" >To: "Access Developers discussion and problem solving" > >Sent: Friday, February 24, 2006 7:08 PM >Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > > > > >>I think the threat is the same as any other knockoff, from Vuitton bags >>to Rolex watches to custom software, the customer gets something cheap >>and the original manufacturer gets ripped off. >> >>Charlotte Foust >> >> >>-----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 24, 2006 6:51 AM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) >> >> >>I've got two products which I send out as mdes. And I worry about the >>product being knocked off, especially in China where we are beginning to >> >>make some sales with the manufacturing system. >> >>For both of them the primary intellectual value is in the code - The >>Sleep Advisor's diagnostic engine is about 7000 lines and the decision >>tree on the input side, which guides which questions to ask is about >>half that. >> >>The manufacturing system like any system could be knocked off pretty >>much by copying the design and features of the forms and reports. No >>magic there. The MRP calculation and cost-roll up program have some >>tricks in them. >> >>Nevertheless, it's not rocket science, and I suppose someone could >>duplicate the whole thing. >> >>But if a product can be duplicated pretty much by looking at the >>outside, I wonder what the real threat is here? I'm probably missing >>something. >> >>Rocky >> >> >>Bryan Carbonnell wrote: >> >> >>>On 2/24/06, Rocky Smolin - Beach Access Software >>>wrote: >>> >>> >>> >>>>But does it decompile the code? >>>> >>>> >>>> >>>Not acording to the page. >>> >>>"*You cannot alter or gain access to the original VBA code - you must >>>use Macros instead." >>> >>>-- >>>Bryan Carbonnell - carbonnb at gmail.com >>>Life's journey is not to arrive at the grave safely in a well >>>preserved body, but rather to skid in sideways, totally worn out, >>>shouting "What a great ride!" >>> >>> >>> >>-- >>Rocky Smolin >>Beach Access Software >>858-259-4334 >>www.e-z-mrp.com >> >> >> >> > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Sat Feb 25 13:55:39 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 25 Feb 2006 11:55:39 -0800 Subject: [AccessD] Focus On Currrent Control After Update Message-ID: <4400B63B.7080803@san.rr.com> Dear List: I have the following module: Private Sub fldContainerCheck1_AfterUpdate() If CheckTheCheck(fldContainerCheck1) = False Then fldContainerCheck1 = "" Me(Screen.ActiveControl.Name).SetFocus End If End Sub if the function CheckTheCheck returns fasle then I want to set the focus back on the field fldContainerCheck1. If I write Me(Screen.ActiveControl.Name).SetFocus or Me.fldContainerCheck1.SetFocus the focus ends up on the next control in tab order. If I write Me(Screen.PreviousControl.Name).SetFocus the focus ends up on the previous control in tab order. How can I get the focus back on the field that has the problem? I tried If CheckTheCheck(fldContainerCheck1) = False Then Me.fldContainerCheck1.Undo in both before and after update events but it didn't undo the entry. I don't want to undo the entire record at this point, just blank the field with the bad number and set the focus there. MTIA Rocky SetFocus -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dwaters at usinternet.com Sat Feb 25 14:13:00 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 25 Feb 2006 14:13:00 -0600 Subject: [AccessD] Focus On Currrent Control After Update In-Reply-To: <13817049.1140897551111.JavaMail.root@sniper14> Message-ID: <000001c63a47$e0fe77a0$0200a8c0@danwaters> Hi Rocky, I have to deal with this all the time. The point is you can't set the focus to a control that already has the focus. And, you sometimes don't know if that control already has the focus. 1st Approach: If you have a control that is ALWAYS enabled, but you're SURE will not have the focus, then you can do this: '-- Move focus txtAlwaysEnabled.SetFocus txtWantFocusHere.SetFocus 2nd approach: First, make an unbound, visible, unlocked, enabled textbox with transparent background and border. Call it txtSetFocusOnPurpose. '-- Move focus txtSetFocusOnPurpose.SetFocus txtWantFocusHere.SetFocus 3rd Approach: (Which I never had much luck with) '-- Move focus If Screen.ActiveControl.Name <> "txtWantFocusHere" Then txtWantFocusHere.SetFocus End If Hope this is of some help! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Saturday, February 25, 2006 1:56 PM To: Access Developers discussion and problem solving Subject: [AccessD] Focus On Currrent Control After Update Dear List: I have the following module: Private Sub fldContainerCheck1_AfterUpdate() If CheckTheCheck(fldContainerCheck1) = False Then fldContainerCheck1 = "" Me(Screen.ActiveControl.Name).SetFocus End If End Sub if the function CheckTheCheck returns fasle then I want to set the focus back on the field fldContainerCheck1. If I write Me(Screen.ActiveControl.Name).SetFocus or Me.fldContainerCheck1.SetFocus the focus ends up on the next control in tab order. If I write Me(Screen.PreviousControl.Name).SetFocus the focus ends up on the previous control in tab order. How can I get the focus back on the field that has the problem? I tried If CheckTheCheck(fldContainerCheck1) = False Then Me.fldContainerCheck1.Undo in both before and after update events but it didn't undo the entry. I don't want to undo the entire record at this point, just blank the field with the bad number and set the focus there. MTIA Rocky SetFocus -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Sat Feb 25 16:50:47 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 26 Feb 2006 01:50:47 +0300 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: <002701c63981$578360b0$6401a8c0@Nant> <4400A60C.7020006@shaw.ca> Message-ID: <006601c63a5e$2ab0e250$6401a8c0@Nant> Marty, I know how to do that with mde without Michael Kaplan's or Serge Gavrilov's utilities. In fact it's very easy and it can't be even called as hacking because it uses undocumented feature and not more than that. I did get on it occasionally while investigating MS Access internals trying to workaround its bugs/limitations. I have never announced this "knowledge" as a service or as an add-in. Just in one case here I helped to get forms/reports designs when this help was requested. And that time I used other technique, which needed much more work than to just use mentioned above undocumented feature. And this help was free. And it was for the author of the original software who lost the sources. And I have never used that knowledge to make copycat software. Yes, I know Serge Gavrilov by e-mail but his utilities/business with MDEs is his own business and his own responsibility - I can' t influence that. BTW, Serge is living in Tcheliabinsk, Urals and I'm in St.Petersburg - we are 2000+ km apart - not a distance in Internet times but it is not my backyard :) Shamil ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Saturday, February 25, 2006 9:46 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > It is not that hard to do with an mde. Here is a utility. > Michael Kaplan pointed me here about 3 or 4 years ago for password cracks. > > MDE forms/reports extractor v2.2 MS Access 2000 add-in > This utility is designed to allow you to extract the forms, reports > and macros from an mde file to mdb (without the form/report class module > code). > It wont get the code behind the forms. > > http://accesstools.narod.ru/index.html > > Serge Gavrilov seems to be in your backyard. > > > Shamil Salakhetdinov wrote: > >>All, >> >>Here is a Friday puzzle on subject I suppose: >> >>Have a look at this screenshot >> >>http://www.code-vb.com/help/dlg_frmProcedure.htm >> >>and now on this one: >> >>http://www.smartvba.com/methods_builder.htm >> >>The first (http://www.code-vb.com/help/dlg_frmProcedure.htm) - was first >>time released in the beginning of the last year and the latter - in the >>end. >> >>These are not related companies. >> >>I know the history of the first and how it was created. >> >>Question: How it comes that the design of the latter company's software is >>sometimes literally the same? (and many other forms are like that). >> >>My guess: The designs of the first were replicated manually or >>decompiled (there is good VB6 decompiler - the info about it was >>published here) then adjusted and published by the second company. >> >>Anybody believes that designs can be so similar if the second company >>didn't >>know anything about the software products of the first? >>Am I getting paranoid? >> >>If not, then one who publishes MDE apps may expect to see their GUI >>designs (and good GUI designs is a lot of work) be published within other >>companies' software... >> >>Shamil >> From shamil at users.mns.ru Sat Feb 25 16:52:08 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 26 Feb 2006 01:52:08 +0300 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: <000901c63991$451541e0$0200a8c0@danwaters><003601c6399d$64caf870$6401a8c0@Nant> <001c01c63a11$9c4aa330$0302a8c0@pennp4> Message-ID: <006701c63a5e$2ade33e0$6401a8c0@Nant> <<< I'm still convinced I'll do a better job than some sorry hacker. >>> Penn, I'm not making tragedy with this special case - yes, no doubt, I can do better job than some sorry hackers, as you say - what I'm saying is: - this copycat case of MS Access/VB6 add-ins is an obvious impudent case I have never seen before; - MS Access/VB6 add-ins' customers are worldwide customers not customers like you mention and when a third party company uses copycat software with dumping prices this may undermine all the efforts and investments of the original software company and make it bankrupt; - when you program add-ins it's important to find a good selling idea and implement it - and these are big investments - when this is done and published copycatting would take 1/10th or less of the original efforts and when a big copycat company is dumping against a small hardworking team then this is bad to say the least because it spoils this World... Shamil ----- Original Message ----- From: "Penn White" To: "Access Developers discussion and problem solving" Sent: Saturday, February 25, 2006 4:44 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > All, > > I've had a little trouble following all of Shamil's links and logic but it > seems to boil down to a company (or multiple companies under the > same -hidden - ownership) is in the process of reverse engineering other > people's work. > > If I understand it correctly, it's nothing new and not unique to computer > programs. IMHO, everything released into the public domain will, sooner > or > later, be copied or even reverse engineered by somebody if it's good > enough. > > I beleive that the only way to combat this is to continue to improve the > program and market effectively and continually. If the reverse > engineers/copycats were so smart, they'd be producing their own work > instead > of copying everybody elses. > > This may not be the case in instances like China stealing our proprietary > missle development technology which saves them years of work and gives > them > access to things they don't have the resources yet to develop themselves. > But an Access or SQL Server database app like I develop is really pretty > simple to copy. > > What I have going for me is an established customer base and a head start > on > the competition. I've got over a year of development time in an app I am > currently marketing and it's far from finished the way I'd like it to be. > Sure, somebody can copy it and maybe even improve on it while they're at > it > but it will take them awhile and all that while, I'm selling more copies, > doing more development and fine tuning, and establishing a loyal group of > customers who trust me and know I'm responsive to their needs. They could > switch to somebody else, but why would they bother? A new customer could > buy a cheap knock-off of my program but ultimately, you get what you pay > for > and I'm still convinced I'll do a better job than some sorry hacker. > > My 2 cents. > > Penn > > > ----- Original Message ----- > From: "Shamil Salakhetdinov" > To: "Access Developers discussion and problem solving" > > Sent: Friday, February 24, 2006 6:51 PM > Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sat Feb 25 17:09:36 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 25 Feb 2006 15:09:36 -0800 Subject: [AccessD] Focus On Currrent Control After Update In-Reply-To: <000001c63a47$e0fe77a0$0200a8c0@danwaters> References: <000001c63a47$e0fe77a0$0200a8c0@danwaters> Message-ID: <4400E3B0.8030900@san.rr.com> Dan: Approach #1 worked. Thanks. Rocky Dan Waters wrote: > Hi Rocky, > > I have to deal with this all the time. > > The point is you can't set the focus to a control that already has the > focus. And, you sometimes don't know if that control already has the focus. > > > 1st Approach: > > If you have a control that is ALWAYS enabled, but you're SURE will not have > the focus, then you can do this: > > '-- Move focus > txtAlwaysEnabled.SetFocus > txtWantFocusHere.SetFocus > > > 2nd approach: > > First, make an unbound, visible, unlocked, enabled textbox with transparent > background and border. Call it txtSetFocusOnPurpose. > > '-- Move focus > txtSetFocusOnPurpose.SetFocus > txtWantFocusHere.SetFocus > > > 3rd Approach: (Which I never had much luck with) > > '-- Move focus > If Screen.ActiveControl.Name <> "txtWantFocusHere" Then > txtWantFocusHere.SetFocus > End If > > > Hope this is of some help! > > Dan > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Saturday, February 25, 2006 1:56 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Focus On Currrent Control After Update > > Dear List: > > I have the following module: > > Private Sub fldContainerCheck1_AfterUpdate() > If CheckTheCheck(fldContainerCheck1) = False Then > fldContainerCheck1 = "" > Me(Screen.ActiveControl.Name).SetFocus > End If > > End Sub > > if the function CheckTheCheck returns fasle then I want to set the focus > back on the field fldContainerCheck1. > > If I write Me(Screen.ActiveControl.Name).SetFocus or > Me.fldContainerCheck1.SetFocus the focus ends up on the next control in > tab order. > > If I write Me(Screen.PreviousControl.Name).SetFocus the focus ends up on > the previous control in tab order. > > How can I get the focus back on the field that has the problem? > > I tried If CheckTheCheck(fldContainerCheck1) = False Then > Me.fldContainerCheck1.Undo > > in both before and after update events but it didn't undo the entry. I > don't want to undo the entire record at this point, just blank the field > with the bad number and set the focus there. > > MTIA > > Rocky > > > SetFocus > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From carbonnb at gmail.com Sat Feb 25 19:10:48 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Sat, 25 Feb 2006 20:10:48 -0500 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: <006601c63a5e$2ab0e250$6401a8c0@Nant> References: <002701c63981$578360b0$6401a8c0@Nant> <4400A60C.7020006@shaw.ca> <006601c63a5e$2ab0e250$6401a8c0@Nant> Message-ID: On 2/25/06, Shamil Salakhetdinov wrote: > I have never announced this "knowledge" as a service or as an add-in. > Just in one case here I helped to get forms/reports designs when this > help was requested. And that time I used other technique, which needed much > more work than to just use mentioned above undocumented feature. > And this help was free. And it was for the author of the original software > who lost the sources. And I STILL thank you Shamil. You saved me a ton of work!! -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From boogieloogie at gmail.com Sun Feb 26 15:23:18 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Sun, 26 Feb 2006 17:23:18 -0400 Subject: [AccessD] Launching a dos program from Access 97 In-Reply-To: References: Message-ID: <3bf43ee90602261323i742e86eqfa6b4ba28e6cb430@mail.gmail.com> Hi Gustav I should have explained myself a bit better. The particular program will not fire by using Dim ProgLaunch ProgLaunch = Shell("C:\fmv\prethin.exe", 1) will crash it. For some reason certain files are not fired when starting this way. I have no access to the code nor the programmer of the dos program. Some how I have to fire c:\windows\system32\cmd.exe change to the fmv folder then launch prethin.exe from there. Any ideas? Thanks Tim I have to launch it from within the dos window. I do not know how to do this On 2/25/06, Gustav Brock wrote: > > Hi Tim > > Look up the Shell() function ... it is exactly for this purpose. > > Remember, if path contains spaces it must be wrapped in double-quotes, and > full filename must be used (.exe). > > /gustav > > >>> boogieloogie at gmail.com 25-02-2006 17:12 >>> > I have a client using an old DOS program called prethin.exe. It is in a > folder called fmv. I do not need to pass any variables to it. Just need it > to lauch after I feed data to the underlying dbf's. Is it possible to > launch > it with some vba code behind a button in Access 97? Anyone have a sample? > > Thanks > > Tim > > -- > 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 26 15:40:11 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 26 Feb 2006 22:40:11 +0100 Subject: [AccessD] Launching a dos program from Access 97 Message-ID: Hi Tim Just guessing ... create a batch file that will launch and run the application. You may need to use CD to make the folder of the app the current folder. When success with this, use Shell() to launch the batch file. If that fails, try with a shortcut or pif file. Also, you may try using Shell() with the START command. Type START /? on the command line for help on this. /gustav >>> boogieloogie at gmail.com 26-02-2006 22:23 >>> Hi Gustav I should have explained myself a bit better. The particular program will not fire by using Dim ProgLaunch ProgLaunch = Shell("C:\fmv\prethin.exe", 1) will crash it. For some reason certain files are not fired when starting this way. I have no access to the code nor the programmer of the dos program. Some how I have to fire c:\windows\system32\cmd.exe change to the fmv folder then launch prethin.exe from there. Any ideas? Thanks Tim I have to launch it from within the dos window. I do not know how to do this On 2/25/06, Gustav Brock wrote: > > Hi Tim > > Look up the Shell() function ... it is exactly for this purpose. > > Remember, if path contains spaces it must be wrapped in double-quotes, and > full filename must be used (.exe). > > /gustav > > >>> boogieloogie at gmail.com 25-02-2006 17:12 >>> > I have a client using an old DOS program called prethin.exe. It is in a > folder called fmv. I do not need to pass any variables to it. Just need it > to lauch after I feed data to the underlying dbf's. Is it possible to > launch > it with some vba code behind a button in Access 97? Anyone have a sample? > > Thanks > > Tim From newsgrps at dalyn.co.nz Sun Feb 26 23:07:11 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Mon, 27 Feb 2006 18:07:11 +1300 Subject: [AccessD] Sub Report not going into Two Columns Message-ID: <7.0.1.0.0.20060227175809.01acbe68@dalyn.co.nz> Cross Posted Access D, Access L Access XP. I have a report which is a long column of text boxes with the text entered into the control source. Because different printers format reports slightly differently I have made the boxes shorter than the text warrants and have set the can grow property on for all the text boxes. There are no records associated with this report. I have set the Page Setup .. Number of columns to 2 and when I view the report the text boxes flow over two columns. The full report is two pages long. However, when I use the report as a subreport for another main report then the text boxes remain in one column. I have checked help and it suggests changing the column order to across then down. I have tried this but it doesn't make any difference (I guess because there are no records). Apart from physically placing the text boxes in two columns, does anyone know how I can get them to flow properly? Regards David Emerson Dalyn Software Ltd 999 Moonshine Rd, RD 1 Judgeford, Porirua 6006 Phone (04) 235-6782 Fax (04) 235-6783 Mob (027) 280-9348 From wdhindman at bellsouth.net Mon Feb 27 01:18:16 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 27 Feb 2006 02:18:16 -0500 Subject: [AccessD] Sub Report not going into Two Columns References: <7.0.1.0.0.20060227175809.01acbe68@dalyn.co.nz> Message-ID: <001f01c63b6d$faee19a0$6101a8c0@50NM721> ...best guess is that the width of your design subreport area on the report is narrower than the width of the two columns in the subreport when the "can grow" is fully expanded at runtime ...try decreasing the font size of the columns to verify this is the problem ...or disable the "can grow" ...hth. William ----- Original Message ----- From: "David Emerson" To: ; Sent: Monday, February 27, 2006 12:07 AM Subject: [AccessD] Sub Report not going into Two Columns > Cross Posted Access D, Access L > > Access XP. > > I have a report which is a long column of text boxes with the text > entered into the control source. Because different printers format > reports slightly differently I have made the boxes shorter than the > text warrants and have set the can grow property on for all the text > boxes. There are no records associated with this report. > > I have set the Page Setup .. Number of columns to 2 and when I view > the report the text boxes flow over two columns. The full report is > two pages long. > > However, when I use the report as a subreport for another main report > then the text boxes remain in one column. I have checked help and it > suggests changing the column order to across then down. I have tried > this but it doesn't make any difference (I guess because there are no > records). > > Apart from physically placing the text boxes in two columns, does > anyone know how I can get them to flow properly? > > Regards > > David Emerson > Dalyn Software Ltd > 999 Moonshine Rd, RD 1 > Judgeford, Porirua 6006 > Phone (04) 235-6782 > Fax (04) 235-6783 > Mob (027) 280-9348 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From R.Griffiths at bury.gov.uk Mon Feb 27 04:46:19 2006 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Mon, 27 Feb 2006 10:46:19 -0000 Subject: [AccessD] Contract Message-ID: <200602271033.k1RAXkg14290@smarthost.yourcomms.net> Thanks to Dan, Kath, Marty for your contributions. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: 24 February 2006 18:04 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Contract Hi Richard, I'm having exactly this issue with a large customer I currently have. What we've worked out is this: If they are having trouble contacting me (or my company), they will send a registered letter to my legal address. If they don't hear from me in 30 days, then they have the right to claim ownership of the application by sending another registered letter making that claim. Their ownership obtained this way would be non-exclusive and non-transferable, so it won't affect your ability to continue your business as before, assuming you didn't lose the fight with the truck! Actually, they have a good point in wanting to work on this on their own if you can't or won't provide a timely response to their request for an update or modification. To cover this, I allow the IT department, by contract, to make any modifications they want at any time. Their working on this will not change any state of ownership. Of course, I won't warranty any problems caused by them. In practice, the IT department will probably prefer to not get involved in modifications to software that will continue to be maintained by an outside entity, so you should still get first crack at the modification work. You could consider having someone you trust as a developer to be your 'backup' if you're currently busy. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Friday, February 24, 2006 3:26 AM To: AccessD Subject: [AccessD] Contract Hi Group I am a stand alone software developer and have been asked by a client to add (a line/paragraph) into the contract (for a piece of off-the-shelf software I have written) something to ensure that should my business go bankrupt/fail the source code can be released to them for product support. I have no problem with this and understand their concerns. What I'm not sure about is the appropriate wording for this - does anyone have any advice/standard wording they use for this purpose. I have put something together myself but the contract will go to their contracts department (we are talking about a local government client here) for scrutiny. As I have said I am happy to release the source code should my business fail but I don't want to lose any copyright/ownership - also I am finding it difficult to cover what product support constitutes - I don't want to have to release the code if they demand enhancements that I do not want to develop at that time say. Equally I don't want to write a long protracted contract (the software only costs ?5000 so I'm not going to get legal advice or use Escrow) - I am looking for something simple and to the point. All contributions welcome. Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From boogieloogie at gmail.com Mon Feb 27 06:43:07 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Mon, 27 Feb 2006 08:43:07 -0400 Subject: [AccessD] Launching a dos program from Access 97 In-Reply-To: References: Message-ID: <3bf43ee90602270443n39039796ye9f91390f8e32136@mail.gmail.com> Thanks Gustav On 2/26/06, Gustav Brock wrote: > > Hi Tim > > Just guessing ... create a batch file that will launch and run the > application. > You may need to use CD to make the folder of the app the current folder. > When success with this, use Shell() to launch the batch file. > > If that fails, try with a shortcut or pif file. > Also, you may try using Shell() with the START command. Type START /? on > the command line for help on this. > > /gustav > > >>> boogieloogie at gmail.com 26-02-2006 22:23 >>> > Hi Gustav > > I should have explained myself a bit better. The particular program will > not > fire by using > > Dim ProgLaunch > ProgLaunch = Shell("C:\fmv\prethin.exe", 1) will crash it. For some reason > certain files are not fired when starting this way. I have no access to > the > code nor the programmer of the dos program. > > Some how I have to fire c:\windows\system32\cmd.exe change to the fmv > folder > then launch prethin.exe from there. > > Any ideas? > > Thanks > > Tim > > I have to launch it from within the dos window. I do not know how to do > this > On 2/25/06, Gustav Brock wrote: > > > > Hi Tim > > > > Look up the Shell() function ... it is exactly for this purpose. > > > > Remember, if path contains spaces it must be wrapped in double-quotes, > and > > full filename must be used (.exe). > > > > /gustav > > > > >>> boogieloogie at gmail.com 25-02-2006 17:12 >>> > > I have a client using an old DOS program called prethin.exe. It is in a > > folder called fmv. I do not need to pass any variables to it. Just need > it > > to lauch after I feed data to the underlying dbf's. Is it possible to > > launch > > it with some vba code behind a button in Access 97? Anyone have a > sample? > > > > Thanks > > > > Tim > > > -- > 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 27 06:52:30 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 27 Feb 2006 13:52:30 +0100 Subject: [AccessD] Launching a dos program from Access 97 Message-ID: Hi Tim You are welcome. But did you find a method? /gustav >>> boogieloogie at gmail.com 27-02-2006 13:43:07 >>> Thanks Gustav On 2/26/06, Gustav Brock wrote: > > Hi Tim > > Just guessing ... create a batch file that will launch and run the > application. > You may need to use CD to make the folder of the app the current folder. > When success with this, use Shell() to launch the batch file. > > If that fails, try with a shortcut or pif file. > Also, you may try using Shell() with the START command. Type START /? on > the command line for help on this. > > /gustav > > >>> boogieloogie at gmail.com 26-02-2006 22:23 >>> > Hi Gustav > > I should have explained myself a bit better. The particular program will > not > fire by using > > Dim ProgLaunch > ProgLaunch = Shell("C:\fmv\prethin.exe", 1) will crash it. For some reason > certain files are not fired when starting this way. I have no access to > the > code nor the programmer of the dos program. > > Some how I have to fire c:\windows\system32\cmd.exe change to the fmv > folder > then launch prethin.exe from there. > > Any ideas? > > Thanks > > Tim From boogieloogie at gmail.com Mon Feb 27 07:06:18 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Mon, 27 Feb 2006 09:06:18 -0400 Subject: [AccessD] Launching a dos program from Access 97 In-Reply-To: References: Message-ID: <3bf43ee90602270506h8c8d345m68a8f2951170c76e@mail.gmail.com> still working on it...on back burner for a couple of hours. I have deadline on something else right now. I will let you know how I do and post a working code here (If I get there from here) Thanks again. On 2/27/06, Gustav Brock wrote: > > Hi Tim > > You are welcome. But did you find a method? > > /gustav > > >>> boogieloogie at gmail.com 27-02-2006 13:43:07 >>> > Thanks Gustav > > On 2/26/06, Gustav Brock wrote: > > > > Hi Tim > > > > Just guessing ... create a batch file that will launch and run the > > application. > > You may need to use CD to make the folder of the app the current folder. > > When success with this, use Shell() to launch the batch file. > > > > If that fails, try with a shortcut or pif file. > > Also, you may try using Shell() with the START command. Type START /? on > > the command line for help on this. > > > > /gustav > > > > >>> boogieloogie at gmail.com 26-02-2006 22:23 >>> > > Hi Gustav > > > > I should have explained myself a bit better. The particular program will > > not > > fire by using > > > > Dim ProgLaunch > > ProgLaunch = Shell("C:\fmv\prethin.exe", 1) will crash it. For some > reason > > certain files are not fired when starting this way. I have no access to > > the > > code nor the programmer of the dos program. > > > > Some how I have to fire c:\windows\system32\cmd.exe change to the fmv > > folder > > then launch prethin.exe from there. > > > > Any ideas? > > > > Thanks > > > > Tim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jimdettman at earthlink.net Mon Feb 27 08:02:08 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 27 Feb 2006 09:02:08 -0500 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: <006601c63a5e$2ab0e250$6401a8c0@Nant> Message-ID: <> It's not even really undocumented. No where does it say you can't use OLE against a MDE (or course it doesn't say that either, so I suppose you might call it undocumented). Mike Gunderloy pointed this out many years ago. He was also the first (that I'm aware of) to point out that is was technically possible to de-tokenize VBA p-code from a MDE, just that no one had bothered to do it because of the size of the task vs. the worth. If it was simple as the one language I use (NPL), which has built in statements to do that ($Source and $Object) on the fly, we'd really be in trouble. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Shamil Salakhetdinov Sent: Saturday, February 25, 2006 5:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) Marty, I know how to do that with mde without Michael Kaplan's or Serge Gavrilov's utilities. In fact it's very easy and it can't be even called as hacking because it uses undocumented feature and not more than that. I did get on it occasionally while investigating MS Access internals trying to workaround its bugs/limitations. I have never announced this "knowledge" as a service or as an add-in. Just in one case here I helped to get forms/reports designs when this help was requested. And that time I used other technique, which needed much more work than to just use mentioned above undocumented feature. And this help was free. And it was for the author of the original software who lost the sources. And I have never used that knowledge to make copycat software. Yes, I know Serge Gavrilov by e-mail but his utilities/business with MDEs is his own business and his own responsibility - I can' t influence that. BTW, Serge is living in Tcheliabinsk, Urals and I'm in St.Petersburg - we are 2000+ km apart - not a distance in Internet times but it is not my backyard :) Shamil ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Saturday, February 25, 2006 9:46 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > It is not that hard to do with an mde. Here is a utility. > Michael Kaplan pointed me here about 3 or 4 years ago for password cracks. > > MDE forms/reports extractor v2.2 MS Access 2000 add-in > This utility is designed to allow you to extract the forms, reports > and macros from an mde file to mdb (without the form/report class module > code). > It wont get the code behind the forms. > > http://accesstools.narod.ru/index.html > > Serge Gavrilov seems to be in your backyard. > > > Shamil Salakhetdinov wrote: > >>All, >> >>Here is a Friday puzzle on subject I suppose: >> >>Have a look at this screenshot >> >>http://www.code-vb.com/help/dlg_frmProcedure.htm >> >>and now on this one: >> >>http://www.smartvba.com/methods_builder.htm >> >>The first (http://www.code-vb.com/help/dlg_frmProcedure.htm) - was first >>time released in the beginning of the last year and the latter - in the >>end. >> >>These are not related companies. >> >>I know the history of the first and how it was created. >> >>Question: How it comes that the design of the latter company's software is >>sometimes literally the same? (and many other forms are like that). >> >>My guess: The designs of the first were replicated manually or >>decompiled (there is good VB6 decompiler - the info about it was >>published here) then adjusted and published by the second company. >> >>Anybody believes that designs can be so similar if the second company >>didn't >>know anything about the software products of the first? >>Am I getting paranoid? >> >>If not, then one who publishes MDE apps may expect to see their GUI >>designs (and good GUI designs is a lot of work) be published within other >>companies' software... >> >>Shamil >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Mon Feb 27 09:31:08 2006 From: iggy at nanaimo.ark.com (Tony Septav) Date: Mon, 27 Feb 2006 07:31:08 -0800 Subject: [AccessD] Attach to Front End Message-ID: <44031B3C.9000805@nanaimo.ark.com> Hey All I have a program that allows a user (from the Front End Main program menu) to reattach "on the fly" to different data sets located in different project folders located on their local machine and/or on the network. There is a standard Back End mdb that resides in each folder and is used to record information for each project. In my testing the reattach "on the fly " everything seems to be working fine. My question is has anyone experienced any problems with reattaching to different Back Ends while remaining in the Front End. From bchacc at san.rr.com Mon Feb 27 09:43:01 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 27 Feb 2006 07:43:01 -0800 Subject: [AccessD] Attach to Front End In-Reply-To: <44031B3C.9000805@nanaimo.ark.com> References: <44031B3C.9000805@nanaimo.ark.com> Message-ID: <44031E05.8070800@san.rr.com> My manufacturing app supports multiple back end. I use Tribble's relinker with a few minor mods. Never had any trouble. However, since the opening form does a lot of housekeeping, loading globals and the like, and the user has to log in with a password, after relinking to a new back end I go to the opening form where they have to log in again. Rocky Tony Septav wrote: > Hey All > I have a program that allows a user (from the Front End Main program > menu) to reattach "on the fly" to different data sets located in > different project folders located on their local machine and/or on the > network. There is a standard Back End mdb that resides in each folder > and is used to record information for each project. In my testing the > reattach "on the fly " everything seems to be working fine. My question > is has anyone experienced any problems with reattaching to different > Back Ends while remaining in the Front End. > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Gustav at cactus.dk Mon Feb 27 09:57:03 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 27 Feb 2006 16:57:03 +0100 Subject: [AccessD] Attach to Front End Message-ID: Hi Tony No. That's standard procedure. Some (not me) even relink whenever the frontend is launched. /gustav >>> iggy at nanaimo.ark.com 27-02-2006 16:31:08 >>> .. has anyone experienced any problems with reattaching to different Back Ends while remaining in the Front End. From shamil at users.mns.ru Mon Feb 27 11:37:35 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Mon, 27 Feb 2006 20:37:35 +0300 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: Message-ID: <006901c63bc4$803b8150$6401a8c0@Nant> > It's not even really undocumented. No where does it say you can't use > OLE > against a MDE (or course it doesn't say that either, so I suppose you > might > call it undocumented). Jim, Unfortunately there is much easier way than OLE against running MDE... <<< > just that no one had bothered > to do it because of the size of the task vs. the worth >>> Somebody bothered to write VB6 decompiler mentioned here a while ago. Was writing this decompiler worth the trouble? There is no answer because they hide their coordinates. But they are making it better. And my guess it was used to copycat interfaces of the software, which I talked here about. VBA p-code can be easily extracted from mde. The unknowns who are developing VB6 decompiler know that for sure I think. They can succeed with VBA decompiler as they did with VB6 one. Shamil ----- Original Message ----- From: "Jim Dettman" To: "Access Developers discussion and problem solving" Sent: Monday, February 27, 2006 5:02 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > > < uses undocumented feature and not more than that.>> > > It's not even really undocumented. No where does it say you can't use > OLE > against a MDE (or course it doesn't say that either, so I suppose you > might > call it undocumented). Mike Gunderloy pointed this out many years ago. He > was also the first (that I'm aware of) to point out that is was > technically > possible to de-tokenize VBA p-code from a MDE, just that no one had > bothered > to do it because of the size of the task vs. the worth. > > If it was simple as the one language I use (NPL), which has built in > statements to do that ($Source and $Object) on the fly, we'd really be in > trouble. > > Jim. > <<< tail skipped >>> From Lambert.Heenan at AIG.com Mon Feb 27 11:33:17 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 27 Feb 2006 11:33:17 -0600 Subject: [AccessD] Launching a dos program from Access 97 Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1DDB1884@xlivmbx21.aig.com> This should be simple enough. Evidently prethin.exe needs to find files in the current folder (which needs to be C:\fmv), so all you really need is a batch file... @Echo Off C: CD \FMV Prethin ... The batch file above will take care of setting the current folder, and you would launch it like this... Dim strComspec as String Dim strBatch as string Dim nProgId as Long strComspec = Environ("COMSPEC") strBatch = "X:\SomeFolder\LaunchPrethin.BAT" nProgid = Shell(strComspec & "/C " & strBatch ) HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Boogie Loogie Sent: Monday, February 27, 2006 8:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Launching a dos program from Access 97 still working on it...on back burner for a couple of hours. I have deadline on something else right now. I will let you know how I do and post a working code here (If I get there from here) Thanks again. On 2/27/06, Gustav Brock wrote: > > Hi Tim > > You are welcome. But did you find a method? > > /gustav > > >>> boogieloogie at gmail.com 27-02-2006 13:43:07 >>> > Thanks Gustav > > On 2/26/06, Gustav Brock wrote: > > > > Hi Tim > > > > Just guessing ... create a batch file that will launch and run the > > application. You may need to use CD to make the folder of the app > > the current folder. When success with this, use Shell() to launch > > the batch file. > > > > If that fails, try with a shortcut or pif file. > > Also, you may try using Shell() with the START command. Type START > > /? on the command line for help on this. > > > > /gustav > > > > >>> boogieloogie at gmail.com 26-02-2006 22:23 >>> > > Hi Gustav > > > > I should have explained myself a bit better. The particular program > > will not fire by using > > > > Dim ProgLaunch > > ProgLaunch = Shell("C:\fmv\prethin.exe", 1) will crash it. For some > reason > > certain files are not fired when starting this way. I have no access > > to the code nor the programmer of the dos program. > > > > Some how I have to fire c:\windows\system32\cmd.exe change to the > > fmv folder then launch prethin.exe from there. > > > > Any ideas? > > > > Thanks > > > > Tim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Mon Feb 27 12:02:17 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Mon, 27 Feb 2006 13:02:17 -0500 Subject: [AccessD] Converting to 2003 Message-ID: <08F823FD83787D4BA0B99CA580AD3C7402DE681B@TTNEXCHCL2.hshhp.com> Thanks William. It's primarily that issue that prompted the question. The last reference I found on this list was that it was still an issue (an older message though). Are you sure it's been addressed? Not doubting, just verifying. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, February 24, 2006 4:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Converting to 2003 Jim ...now that the bloat in the post A2K format has been fixed, I've standardized on the A2K3 format whenever possible ...I no longer see any advantage in using the A2K format unless you're running in a mixed environment. William ----- Original Message ----- From: "Jim DeMarco" To: "AccessD (E-mail)" Sent: Friday, February 24, 2006 8:03 AM Subject: [AccessD] Converting to 2003 > We're moving our A97 apps to 2003. A2K3 defaults to 2000 version. Is > there any consensus on which format makes most sense for the upgraded apps > (2000 or 2003)? > > TIA > > Jim DeMarco > Director of Application Development > Hudson Health Plan > > > > ************************************************************************ *********** > "This electronic message is intended to be for the use only of the named > recipient, and may contain information from Hudson Health Plan (HHP) that > is confidential or privileged. If you are not the intended recipient, you > are hereby notified that any disclosure, copying, distribution or use of > the contents of this message is strictly prohibited. If you have received > this message in error or are not the named recipient, please notify us > immediately, either by contacting the sender at the electronic mail > address noted above or calling HHP at (914) 631-1611. If you are not the > intended recipient, please do not forward this email to anyone, and delete > and destroy all copies of this message. Thank You". > ************************************************************************ *********** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From newsgrps at dalyn.co.nz Mon Feb 27 16:03:04 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 28 Feb 2006 11:03:04 +1300 Subject: [AccessD] Sub Report not going into Two Columns In-Reply-To: <001f01c63b6d$faee19a0$6101a8c0@50NM721> References: <7.0.1.0.0.20060227175809.01acbe68@dalyn.co.nz> <001f01c63b6d$faee19a0$6101a8c0@50NM721> Message-ID: <7.0.1.0.0.20060228110128.01a53410@dalyn.co.nz> Thanks for the reply William. I tried all that with no joy. I might just have to go to fixed formatting. David At 27/02/2006, you wrote: >...best guess is that the width of your design subreport area on the report >is narrower than the width of the two columns in the subreport when the "can >grow" is fully expanded at runtime ...try decreasing the font size of the >columns to verify this is the problem ...or disable the "can grow" ...hth. > >William > >----- Original Message ----- >From: "David Emerson" >To: ; >Sent: Monday, February 27, 2006 12:07 AM >Subject: [AccessD] Sub Report not going into Two Columns > > > > Cross Posted Access D, Access L > > > > Access XP. > > > > I have a report which is a long column of text boxes with the text > > entered into the control source. Because different printers format > > reports slightly differently I have made the boxes shorter than the > > text warrants and have set the can grow property on for all the text > > boxes. There are no records associated with this report. > > > > I have set the Page Setup .. Number of columns to 2 and when I view > > the report the text boxes flow over two columns. The full report is > > two pages long. > > > > However, when I use the report as a subreport for another main report > > then the text boxes remain in one column. I have checked help and it > > suggests changing the column order to across then down. I have tried > > this but it doesn't make any difference (I guess because there are no > > records). > > > > Apart from physically placing the text boxes in two columns, does > > anyone know how I can get them to flow properly? > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > 999 Moonshine Rd, RD 1 > > Judgeford, Porirua 6006 > > Phone (04) 235-6782 > > Fax (04) 235-6783 > > Mob (027) 280-9348 > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Mon Feb 27 17:39:13 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 27 Feb 2006 18:39:13 -0500 Subject: [AccessD] Converting to 2003 References: <08F823FD83787D4BA0B99CA580AD3C7402DE681B@TTNEXCHCL2.hshhp.com> Message-ID: <004601c63bf7$0459e940$6101a8c0@50NM721> ...either its been fixed or Gustav blessed all my mdbs ...I don't particularly care which :) William ----- Original Message ----- From: "Jim DeMarco" To: "Access Developers discussion and problem solving" Sent: Monday, February 27, 2006 1:02 PM Subject: Re: [AccessD] Converting to 2003 > Thanks William. It's primarily that issue that prompted the question. > The last reference I found on this list was that it was still an issue > (an older message though). Are you sure it's been addressed? Not > doubting, just verifying. > > Jim D. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Friday, February 24, 2006 4:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Converting to 2003 > > Jim > > ...now that the bloat in the post A2K format has been fixed, I've > standardized on the A2K3 format whenever possible ...I no longer see any > advantage in using the A2K format unless you're running in a mixed > environment. > > William > > ----- Original Message ----- > From: "Jim DeMarco" > To: "AccessD (E-mail)" > Sent: Friday, February 24, 2006 8:03 AM > Subject: [AccessD] Converting to 2003 > > >> We're moving our A97 apps to 2003. A2K3 defaults to 2000 version. Is > >> there any consensus on which format makes most sense for the upgraded > apps >> (2000 or 2003)? >> >> TIA >> >> Jim DeMarco >> Director of Application Development >> Hudson Health Plan >> >> >> >> > ************************************************************************ > *********** >> "This electronic message is intended to be for the use only of the > named >> recipient, and may contain information from Hudson Health Plan (HHP) > that >> is confidential or privileged. If you are not the intended recipient, > you >> are hereby notified that any disclosure, copying, distribution or use > of >> the contents of this message is strictly prohibited. If you have > received >> this message in error or are not the named recipient, please notify us > >> immediately, either by contacting the sender at the electronic mail >> address noted above or calling HHP at (914) 631-1611. If you are not > the >> intended recipient, please do not forward this email to anyone, and > delete >> and destroy all copies of this message. Thank You". >> > ************************************************************************ > *********** >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 electronic message is intended to be for the use only of the named > recipient, and may contain information from Hudson Health Plan (HHP) that > is confidential or privileged. If you are not the intended recipient, you > are hereby notified that any disclosure, copying, distribution or use of > the contents of this message is strictly prohibited. If you have received > this message in error or are not the named recipient, please notify us > immediately, either by contacting the sender at the electronic mail > address noted above or calling HHP at (914) 631-1611. If you are not the > intended recipient, please do not forward this email to anyone, and delete > and destroy all copies of this message. Thank You". > *********************************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From boogieloogie at gmail.com Mon Feb 27 19:12:37 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Mon, 27 Feb 2006 21:12:37 -0400 Subject: [AccessD] Launching a dos program from Access 97 In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1DDB1884@xlivmbx21.aig.com> References: <1D7828CDB8350747AFE9D69E0E90DA1F1DDB1884@xlivmbx21.aig.com> Message-ID: <3bf43ee90602271712w2d90e4a2n297b08bba0a6ab53@mail.gmail.com> Thanks guys. I messed with for quite awhile but go it with the batch file as per Heenan. All is well in my world tonight...beer time. On 2/27/06, Heenan, Lambert wrote: > > This should be simple enough. Evidently prethin.exe needs to find files in > the current folder (which needs to be C:\fmv), so all you really need is a > batch file... > > @Echo Off > C: > CD \FMV > Prethin > > ... The batch file above will take care of setting the current folder, and > you would launch it like this... > > Dim strComspec as String > Dim strBatch as string > Dim nProgId as Long > > strComspec = Environ("COMSPEC") > strBatch = "X:\SomeFolder\LaunchPrethin.BAT" > nProgid = Shell(strComspec & "/C " & strBatch ) > > HTH > > Lambert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Boogie Loogie > Sent: Monday, February 27, 2006 8:06 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Launching a dos program from Access 97 > > > still working on it...on back burner for a couple of hours. I have > deadline > on something else right now. I will let you know how I do and post a > working > code here (If I get there from here) Thanks again. > > On 2/27/06, Gustav Brock wrote: > > > > Hi Tim > > > > You are welcome. But did you find a method? > > > > /gustav > > > > >>> boogieloogie at gmail.com 27-02-2006 13:43:07 >>> > > Thanks Gustav > > > > On 2/26/06, Gustav Brock wrote: > > > > > > Hi Tim > > > > > > Just guessing ... create a batch file that will launch and run the > > > application. You may need to use CD to make the folder of the app > > > the current folder. When success with this, use Shell() to launch > > > the batch file. > > > > > > If that fails, try with a shortcut or pif file. > > > Also, you may try using Shell() with the START command. Type START > > > /? on the command line for help on this. > > > > > > /gustav > > > > > > >>> boogieloogie at gmail.com 26-02-2006 22:23 >>> > > > Hi Gustav > > > > > > I should have explained myself a bit better. The particular program > > > will not fire by using > > > > > > Dim ProgLaunch > > > ProgLaunch = Shell("C:\fmv\prethin.exe", 1) will crash it. For some > > reason > > > certain files are not fired when starting this way. I have no access > > > to the code nor the programmer of the dos program. > > > > > > Some how I have to fire c:\windows\system32\cmd.exe change to the > > > fmv folder then launch prethin.exe from there. > > > > > > Any ideas? > > > > > > Thanks > > > > > > Tim > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AllSportsMarket - the NASDAQ of sports http://www.allsportsmarket.com/Index.asp?affiliate=3875 From Bruce.Bruen at railcorp.nsw.gov.au Mon Feb 27 22:02:03 2006 From: Bruce.Bruen at railcorp.nsw.gov.au (Bruen, Bruce) Date: Tue, 28 Feb 2006 15:02:03 +1100 Subject: [AccessD] Web designers. Why don't they stick with design? Message-ID: The really sad thing is that he is not only wrong about Access, but wrong about SQLServer as well. Finally, I even had a look at his .Net How To's and was amazed to find he is promoting totally unmanaged code approaches - but I suppose that's a bit like trying to program Access in T-SQL. I was tempted to feedback the word "idiot" but couldn't be bothered. bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, 24 January 2006 5:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Web designers. Why don't they stick with design? Charlotte, I was very tempted to respond, but given the depth and breath of his lack of knowledge, it seemed like such a waste of time. But I am glad you did. I was indirectly involved in an email fire-fight with Fabian Pascal, the self claimed SQL guru and fundamentalist. I understand, as I bailed early, that the fight went on for over a year and degenerated into just passing insults. (The standard battle over absolutely adherence to the laws of normalization versus database performance.) ...But Good work; someone just had to say something. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: January 23, 2006 8:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Web designers. Why don't they stick with design? I couldn't resist sending him some feedback on the more egregious errors (like the remark about Access 2000 only supporting simple stored procedures ...) and I'm sure his extreme spam filter will junk it, but it felt good to nail him on a couple of points anyhow, including the need to use different code for Access and SQL Server in .Net. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, January 21, 2006 7:21 AM To: accessd at databaseadvisors.com Subject: [AccessD] Web designers. Why don't they stick with design? Hi all, late Friday humour, sort of ... Look what I've found. This guy (I'll state his name just as a warning: Bill Gearhart) seems to be one in an endless row of web designers with no knowledge about how Access works, thus he doesn't know what he is talking about: http://www.aspemporium.com/aspEmporium/tutorials/dontUseMSAccess.asp No doubt, Access is not intended for use as backend database for high-volume web sites but this blurb is so full of factual errors and bad coding examples that it should be abandoned. /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 This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. From adtp at airtelbroadband.in Mon Feb 27 22:20:08 2006 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Tue, 28 Feb 2006 09:50:08 +0530 Subject: [AccessD] Sub Report not going into Two Columns References: <7.0.1.0.0.20060227175809.01acbe68@dalyn.co.nz><001f01c63b6d$fae e19a0$6101a8c0@50NM721> <7.0.1.0.0.20060228110128.01a53410@dalyn.co.nz> Message-ID: <008501c63c1e$63147b90$5540f63d@pcadt> David, It has been stated in your post that there are no records. Yet it is mentioned that when run as independent report, the two columns display nicely, filling up two pages. Could you please clarify this apparent contradiction? Various values as actually existing on Columns tab of page set up dialog box of the report may also please be furnished. If you are getting two column output in independent report mode, it can be ensured that you get similar display in subreport mode. With Across, then Down (A&D) layout, it is straightforward. However, in this case, there can be awkward white spaces if the contents of records across columns do not always measure up to same number of lines. Down, then Across (D&A) layout overcomes such drawback but routine adoption of this layout in a subreport puts everything into one column (even though the original report is designed for two columns). There is a solution for that too. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: David Emerson To: Access Developers discussion and problem solving Sent: Tuesday, February 28, 2006 03:33 Subject: Re: [AccessD] Sub Report not going into Two Columns Thanks for the reply William. I tried all that with no joy. I might just have to go to fixed formatting. David At 27/02/2006, you wrote: >...best guess is that the width of your design subreport area on the report is narrower than the width of the two columns in the subreport when the "can grow" is fully expanded at runtime ...try decreasing the font size of the columns to verify this is the problem ...or disable the "can grow" ...hth. > >William > >----- Original Message ----- >From: "David Emerson" >To: ; >Sent: Monday, February 27, 2006 12:07 AM >Subject: [AccessD] Sub Report not going into Two Columns> > > > Cross Posted Access D, Access L > > > > Access XP. > > > > I have a report which is a long column of text boxes with the text > > entered into the control source. Because different printers format > > reports slightly differently I have made the boxes shorter than the > > text warrants and have set the can grow property on for all the text > > boxes. There are no records associated with this report. > > > > I have set the Page Setup .. Number of columns to 2 and when I view the report the text boxes flow over two columns. The full report is two pages long. > > > > However, when I use the report as a subreport for another main report then the text boxes remain in one column. I have checked help and it suggests changing the column order to across then down. I have tried this but it doesn't make any difference (I guess because there are no records). > > > > Apart from physically placing the text boxes in two columns, does > > anyone know how I can get them to flow properly? > > > > Regards > > > > David Emerson > > Dalyn Software Ltd From dajomigo at tpg.com.au Mon Feb 27 22:57:21 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Tue, 28 Feb 2006 15:57:21 +1100 Subject: [AccessD] Help with combo box Message-ID: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> I have a combo box on a form that has quite a lot of code attached to it. Is there a way to run code when the user clicks on the drop-down arrow that won't interfere with other code that runs when the user double-clicks on the combo box? TIA David From bchacc at san.rr.com Tue Feb 28 00:11:14 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 27 Feb 2006 22:11:14 -0800 Subject: [AccessD] Help with combo box In-Reply-To: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> References: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> Message-ID: <4403E982.5080005@san.rr.com> What event is the current code attached to? Can you use the 'Got Focus' event to run your new code? Rocky David & Joanne Gould wrote: > I have a combo box on a form that has quite a lot of code attached to it. > > Is there a way to run code when the user clicks on the drop-down arrow that > won't interfere with other code that runs when the user double-clicks on > the combo box? > > TIA > > David > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dajomigo at tpg.com.au Tue Feb 28 00:33:08 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Tue, 28 Feb 2006 17:33:08 +1100 Subject: [AccessD] Help with combo box In-Reply-To: <4403E982.5080005@san.rr.com> References: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> <4403E982.5080005@san.rr.com> Message-ID: <6.2.1.2.2.20060228172601.01eefe80@mail.tpg.com.au> Thanks for your prompt response Rocky. At 05:11 PM 28/02/2006, you wrote: >What event is the current code attached to? >The database form is the Hiring form for a video library. There is >currently code attached to the "Before update" event, the "After Update" >event and the "On Double-click" event. The Double-click event allows the >user to add oir change the hiring code (overnight, weekly, etc). >Can you use the 'Got Focus' event to run your new code? The other issue I forgot to mention is it's on a continuous form. I have tried to make the combo box inactive if there is anything entered in it, but that just makes it inactive for all the records in the transaction (so I would only be able to enter one movie per sale). >Rocky > > >David & Joanne Gould wrote: > > I have a combo box on a form that has quite a lot of code attached to it. > > > > Is there a way to run code when the user clicks on the drop-down arrow > that > > won't interfere with other code that runs when the user double-clicks on > > the combo box? > > > > TIA > > > > David > > > > > > > >-- >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Feb 28 03:33:21 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 28 Feb 2006 10:33:21 +0100 Subject: [AccessD] Converting to 2003 Message-ID: Hi William "don't particularly care" ... well, that hurts - after all my efforts! Actually, we have two clients - both female, wonder why - who claim that more than once they have seen issues vanish just by calling me. I didn't do anything - no advice or problem solving - other than devoting my attention. And my middle name isn't Jesus. Maybe your mdbs have been on my mind too! /gustav >>> wdhindman at bellsouth.net 28-02-2006 00:39 >>> ...either its been fixed or Gustav blessed all my mdbs ...I don't particularly care which :) William From carbonnb at gmail.com Tue Feb 28 06:56:03 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 28 Feb 2006 07:56:03 -0500 Subject: [AccessD] Deconstructing Tables Message-ID: Does anyone know of any tool(s) that will go through the tables in and A2K MDB and return the DDL statement to build the table? What I'm trying to do is do a test port of an application that I have written in Access to OpenOffice.org Base and instead of rebuilding the tables by hand one by one, I thought I'd try the DDL route. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From mmattys at rochester.rr.com Tue Feb 28 07:24:09 2006 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Tue, 28 Feb 2006 08:24:09 -0500 Subject: [AccessD] Deconstructing Tables References: Message-ID: <02cf01c63c6a$43da2e90$6401a8c0@default> Sub DescribeAllTables() Dim db As DAO.Database, tdf As DAO.TableDef Dim test As String Set db = CurrentDb For Each tdf In db.TableDefs test = DescribeTbl(db, tdf.Name) Debug.Print tdf.Name & " " & test Next Set db = Nothing End Sub Private Function DescribeTbl(db As DAO.Database, tdfName As String) As String Dim tdf As DAO.TableDef, fld As DAO.Field, strSQL As String 'Set db = CurrentDb Set tdf = db.TableDefs(tdfName) If GetTableType(tdf.Attributes) <> "System Table" And GetTableType(tdf.Attributes) <> "Hidden(temporary)" Then 'Debug.Print tdf.Name & ": " & GetTableType(tdf.Attributes) For Each fld In tdf.Fields strSQL = strSQL & "[" & fld.Name & "] " & getPropertyTypeName(fld.Type) & ", " Next strSQL = Left(strSQL, Len(strSQL) - 2) End If 'Debug.Print strSQL DescribeTbl = strSQL Set fld = Nothing Set tdf = Nothing End Function Private Function GetTableType(T As Long) Select Case T '65536 Case dbAttachExclusive GetTableType = "Linked, Exclusive" '131072 Case dbAttachSavePWD GetTableType = "Saves UID,Pwd for linked table." '-2147483646 + 2 Case (dbSystemObject And 2), (dbSystemObject - 2) GetTableType = "System Table" '2147483646 + 1 Case (dbHiddenObject And 1) GetTableType = "Hidden(temporary)" '1073741824 Case dbAttachedTable GetTableType = "Linked, non-ODBC" '536870912 Case dbAttachedODBC GetTableType = "Linked, ODBC" End Select End Function Private Function getPropertyTypeName(T As Integer) 'Case "Parameter", "Property" Select Case T Case dbBigInt getPropertyTypeName = "Big Integer" Case dbBinary getPropertyTypeName = "Binary" Case dbBoolean getPropertyTypeName = "YesNo" Case dbByte getPropertyTypeName = "Byte" Case dbChar getPropertyTypeName = "Char" Case dbCurrency getPropertyTypeName = "Currency" Case dbDate getPropertyTypeName = "DateTime" Case dbDecimal getPropertyTypeName = "Decimal" Case dbDouble getPropertyTypeName = "Double" Case dbFloat getPropertyTypeName = "Float" Case dbGUID getPropertyTypeName = "Guid" Case dbInteger getPropertyTypeName = "Integer" Case dbLong getPropertyTypeName = "Long" Case dbLongBinary getPropertyTypeName = "Long Binary (OLE Object)" Case dbMemo getPropertyTypeName = "Memo" Case dbNumeric getPropertyTypeName = "Numeric" Case dbSingle getPropertyTypeName = "Single" Case dbText getPropertyTypeName = "Text" Case dbTime getPropertyTypeName = "Time" Case dbTimeStamp getPropertyTypeName = "Time Stamp" Case dbVarBinary getPropertyTypeName = "VarBinary" End Select End Function Michael R. Mattys MapPoint Developer www.mattysconsulting.com ----- Original Message ----- From: "Bryan Carbonnell" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 28, 2006 7:56 AM Subject: [AccessD] Deconstructing Tables > Does anyone know of any tool(s) that will go through the tables in and > A2K MDB and return the DDL statement to build the table? > > What I'm trying to do is do a test port of an application that I have > written in Access to OpenOffice.org Base and instead of rebuilding the > tables by hand one by one, I thought I'd try the DDL route. > > -- > Bryan Carbonnell - carbonnb at gmail.com > Life's journey is not to arrive at the grave safely in a well > preserved body, but rather to skid in sideways, totally worn out, > shouting "What a great ride!" > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From carbonnb at gmail.com Tue Feb 28 07:39:52 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 28 Feb 2006 08:39:52 -0500 Subject: [AccessD] Deconstructing Tables In-Reply-To: <02cf01c63c6a$43da2e90$6401a8c0@default> References: <02cf01c63c6a$43da2e90$6401a8c0@default> Message-ID: On 2/28/06, Michael R Mattys wrote: That's a great starting point for me. Thanks Michael. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From Gustav at cactus.dk Tue Feb 28 07:41:07 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 28 Feb 2006 14:41:07 +0100 Subject: [AccessD] Quartile Message-ID: Hi all Anyone having a need to calculate quartiles? The few methods I've found assumes calculation on one full table which I think doesn't mimic real life except if you create a temp table. Thus I have made the function below to take a filter argument which makes it much more versatile. I cannot find a way to do this fast as you need a function to browse the recordset. You can test this out with the Northwind demo base. First, create a query, qdyCustomerYearLineQuantity SELECT Country, Year([OrderDate]) AS OrderYear, Quantity FROM (Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID) INNER JOIN [Order Details] ON Orders.OrderID = [Order Details].OrderID; And another, qdyCustomerOrderYear: SELECT Country, Year([OrderDate]) AS OrderYear FROM Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID GROUP BY Country, Year([OrderDate]); Now create a query to calculate quartiles on quantity per customer's country: SELECT Country, OrderYear, Quartile5("qdyCustomerYearLineQuantity","Quantity",1,"Country='" & [Country] & "' And OrderYear=" & [OrderYear] & "") AS Quartile1, Quartile5("qdyCustomerYearLineQuantity","Quantity",2,"Country='" & [Country] & "' And OrderYear=" & [OrderYear] & "") AS Quartile2, Quartile5("qdyCustomerYearLineQuantity","Quantity",3,"Country='" & [Country] & "' And OrderYear=" & [OrderYear] & "") AS Quartile3, FROM qdyCustomerOrderYear; Country OrderYear Quartile1 Quartile2 Quartile3 Canada 1994 11,5 22 37 Canada 1995 15 20 42 Canada 1996 9 18 25 Denmark 1994 8,25 12 17,25 Denmark 1995 18 25 35 Denmark 1996 15 25 30 The function looks like this: Public Function Quartile5( _ ByVal strTable As String, _ ByVal strField As String, _ ByVal bytQuartile As Byte, _ Optional ByVal strFilter As String) _ As Double ' strTable : Name of the table/query to analyze. ' strField : Name of the field to analyze. ' bytQuartile: Which min/max or median/quartile to calculate. ' strFilter: Optional filter expression. ' ' Data must be in ascending order by strField. ' Constant values and return values mimic those of ' Excel's Quartile() function. ' ' Returns: ' Minimum, maximum, median or upper/lower quartile ' of strField of strTable filtered on strFilter. ' ' Reset function (clear Static dbs) by the call: ' Call Quartile5("", "", 0) ' ' 2006-02-27. Cactus Data ApS, CPH. ' Find median. Const cbytQuartMedian As Byte = 2 ' Find lower (first) quartile. Const cbytQuartLow As Byte = 1 ' Find upper (third) quartile. Const cbytQuartHigh As Byte = 3 ' Find minimum value. Const cbytQuartMinimum As Byte = 0 ' Find maximum value. Const cbytQuartMaximum As Byte = 4 ' Define default operation. Const cbytQuartDefault = cbytQuartMedian Static dbs As DAO.Database Dim rst As DAO.Recordset Dim strSQL As String Dim lngNumber As Long Dim dblPosition As Double Dim lngPosition As Long Dim dblInterpol As Double Dim dblValueOne As Double Dim dblValueTwo As Double Dim dblQuartile As Double ' Use default calculation if choice of calculation is outside range. If bytQuartile > 4 Then bytQuartile = cbytQuartDefault End If If dbs Is Nothing Then Set dbs = CurrentDb() End If If Len(strTable) > 0 And Len(strField) > 0 Then strSQL = "SELECT [" & strField & "] FROM [" & strTable & "] " strSQL = strSQL & "WHERE ([" & strField & "] Is Not Null) " If Len(strFilter) > 0 Then strSQL = strSQL & "AND (" & strFilter & ") " End If strSQL = strSQL & "ORDER BY [" & strField & "];" Set rst = dbs.OpenRecordset(strSQL) With rst If Not .EOF = True Then If bytQuartile = cbytQuartMinimum Then ' No need to count records. lngNumber = 1 Else ' Count records. .MoveLast lngNumber = .RecordCount End If Select Case bytQuartile Case cbytQuartMinimum ' Current record is first record. ' Read value of this record. Case cbytQuartMaximum ' Current record is last record. ' Read value of this record. Case cbytQuartMedian ' Locate position of median. dblPosition = (lngNumber + 1) / 2 Case cbytQuartLow dblPosition = (lngNumber + 3) / 4 Case cbytQuartHigh dblPosition = (3 * lngNumber + 1) / 4 End Select Select Case bytQuartile Case cbytQuartMinimum, cbytQuartMaximum ' Read current row. Case Else .MoveFirst ' Find position of first observation to retrieve. ' If lngPosition is 0, then upper position is first record. ' If lngPosition is not 0 and position is not an integer, then ' read the next observation too. lngPosition = Fix(dblPosition) dblInterpol = dblPosition - lngPosition If lngNumber = 1 Then ' Nowhere else to move. ElseIf lngPosition > 1 Then ' Move to record to read. .Move lngPosition - 1 End If End Select ' Retrieve value from first observation. dblValueOne = .Fields(0).Value Select Case bytQuartile Case cbytQuartMinimum, cbytQuartMaximum dblQuartile = dblValueOne Case Else If dblInterpol = 0 Then ' Only one observation to read. dblQuartile = dblValueOne Else .MoveNext ' Retrieve value from second observation. dblValueTwo = .Fields(0).Value ' For positive values interpolate between 0 and dblValueOne. ' For negative values interpolate between 2 * dblValueOne and dblValueOne. ' Calculate quartile using linear interpolation. dblQuartile = dblValueOne + dblInterpol * CDec(dblValueTwo - dblValueOne) End If End Select End If .Close End With Else ' Reset. Set dbs = Nothing End If Set rst = Nothing Quartile5 = dblQuartile End Function The function can easily be converted to ADO but that runs even slower. Comments are most welcome. /gustav From Gustav at cactus.dk Tue Feb 28 07:46:17 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 28 Feb 2006 14:46:17 +0100 Subject: [AccessD] Deconstructing Tables Message-ID: Hi Bryan How about DeZign, a full-scale tool: http://www.datanamic.com/dezign/factsheet.html I think Arthur has experience with this. /gustav >>> carbonnb at gmail.com 28-02-2006 13:56 >>> Does anyone know of any tool(s) that will go through the tables in and A2K MDB and return the DDL statement to build the table? What I'm trying to do is do a test port of an application that I have written in Access to OpenOffice.org Base and instead of rebuilding the tables by hand one by one, I thought I'd try the DDL route. From darrend at nimble.com.au Tue Feb 28 07:49:26 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 1 Mar 2006 00:49:26 +1100 Subject: [AccessD] Bit OT - Reporting Services Question Message-ID: <20060228134931.REND10380.omta04sl.mx.bigpond.com@DENZILLAP> Hello all In reporting services if I run the code below (from Lambert) I get the error message... "Wend statements are no longer supported . Use "End While" statements instead So If I replace wend with End while I don't get the desired result The desired result is From..... .C:\Program Files\Some Folder\some cool file.dll I want.....some cool file.dll But I am getting.....C:\Program Files\Some Folder any suggestions?? Many thanks Darren Code Start>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Function GetPath(aPath) As String Dim foo As Integer, aSlash As Integer aSlash = 0 foo = InStr(aPath, "\") While (foo > 0) aSlash = foo foo = InStr(aSlash + 1, aPath, "\") end while If aSlash > 0 Then GetPath = Left$(aPath, aSlash) Else GetPath = aPath End If End Function From mwp.reid at qub.ac.uk Tue Feb 28 07:55:22 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 28 Feb 2006 13:55:22 -0000 Subject: [AccessD] Tree View Control References: <20060228134931.REND10380.omta04sl.mx.bigpond.com@DENZILLAP> Message-ID: Anyone have an example of a Tree View control passing multiple values to a report. Cant get my head around it. Martin mwp.reid at qub.ac.uk From wdhindman at bellsouth.net Tue Feb 28 08:14:24 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 28 Feb 2006 09:14:24 -0500 Subject: [AccessD] Converting to 2003 References: Message-ID: <000701c63c71$47395af0$6101a8c0@50NM721> ...your blessing or MS actually fixing an Access bug ...both are miracles in my book :) William ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, February 28, 2006 4:33 AM Subject: Re: [AccessD] Converting to 2003 > Hi William > > "don't particularly care" ... well, that hurts - after all my efforts! > > Actually, we have two clients - both female, wonder why - who claim that > more than once they have seen issues vanish just by calling me. I didn't > do anything - no advice or problem solving - other than devoting my > attention. And my middle name isn't Jesus. Maybe your mdbs have been on my > mind too! > > /gustav > >>>> wdhindman at bellsouth.net 28-02-2006 00:39 >>> > ...either its been fixed or Gustav blessed all my mdbs ...I don't > particularly care which :) > > William > > > -- > 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 28 08:43:41 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 28 Feb 2006 08:43:41 -0600 Subject: [AccessD] Bit OT - Reporting Services Question In-Reply-To: <28451540.1141135083449.JavaMail.root@sniper13> Message-ID: <000201c63c75$5e979370$0200a8c0@danwaters> Darren, Can you use: Do While intCount < 10 . . . . intCount = intCount + 1 Loop I've used this instead of While - Wend for some time and it always work. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, February 28, 2006 7:49 AM To: AccessD Subject: [AccessD] Bit OT - Reporting Services Question Hello all In reporting services if I run the code below (from Lambert) I get the error message... "Wend statements are no longer supported . Use "End While" statements instead So If I replace wend with End while I don't get the desired result The desired result is From..... .C:\Program Files\Some Folder\some cool file.dll I want.....some cool file.dll But I am getting.....C:\Program Files\Some Folder any suggestions?? Many thanks Darren Code Start>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Function GetPath(aPath) As String Dim foo As Integer, aSlash As Integer aSlash = 0 foo = InStr(aPath, "\") While (foo > 0) aSlash = foo foo = InStr(aSlash + 1, aPath, "\") end while If aSlash > 0 Then GetPath = Left$(aPath, aSlash) Else GetPath = aPath End If End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Tue Feb 28 08:46:15 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 28 Feb 2006 09:46:15 -0500 Subject: [AccessD] Deconstructing Tables In-Reply-To: References: Message-ID: On 2/28/06, Gustav Brock wrote: > Hi Bryan > > How about DeZign, a full-scale tool: > > http://www.datanamic.com/dezign/factsheet.html Had a quick look at this, but too expensive for a 1 time deal. However it gave me some new google search terms to use which lead me to http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52267 which is a Python Recipie to do just what I was looking for. It worked great. Now all I've got to do is find time to work on the conversion :-) Thanks. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From Lambert.Heenan at AIG.com Tue Feb 28 08:47:11 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 28 Feb 2006 09:47:11 -0500 Subject: [AccessD] Bit OT - Reporting Services Question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1DDB1B07@xlivmbx21.aig.com> Where are you running this code? What version of Access? MS BASIC has supported While / Wend structures since way back in the 1980s (MS Basic for CP/M). I for one am confused! Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, February 28, 2006 8:49 AM To: AccessD Subject: [AccessD] Bit OT - Reporting Services Question Hello all In reporting services if I run the code below (from Lambert) I get the error message... "Wend statements are no longer supported . Use "End While" statements instead So If I replace wend with End while I don't get the desired result The desired result is From..... .C:\Program Files\Some Folder\some cool file.dll I want.....some cool file.dll But I am getting.....C:\Program Files\Some Folder any suggestions?? Many thanks Darren Code Start>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Function GetPath(aPath) As String Dim foo As Integer, aSlash As Integer aSlash = 0 foo = InStr(aPath, "\") While (foo > 0) aSlash = foo foo = InStr(aSlash + 1, aPath, "\") end while If aSlash > 0 Then GetPath = Left$(aPath, aSlash) Else GetPath = aPath End If End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Feb 28 10:22:06 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 28 Feb 2006 16:22:06 +0000 Subject: [AccessD] Math Functions Message-ID: Hello All, Anyone ever plot any math functions in Access ( lines, parabolas, etc)? Any ideas/direction would be great. Thanks, Mark From Lambert.Heenan at AIG.com Tue Feb 28 11:06:41 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 28 Feb 2006 12:06:41 -0500 Subject: [AccessD] Bit OT - Reporting Services Question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1DDB1C2C@xlivmbx21.aig.com> I agree that "Do While Condition Loop" is logically the equivalent of "While Condition Wend", but the fact remains that "While Wend" is still very much part of the language. Which why I asked Darren where the code was being run. Very curious! Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 28, 2006 9:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Bit OT - Reporting Services Question Darren, Can you use: Do While intCount < 10 . . . . intCount = intCount + 1 Loop I've used this instead of While - Wend for some time and it always work. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, February 28, 2006 7:49 AM To: AccessD Subject: [AccessD] Bit OT - Reporting Services Question Hello all In reporting services if I run the code below (from Lambert) I get the error message... "Wend statements are no longer supported . Use "End While" statements instead So If I replace wend with End while I don't get the desired result The desired result is From..... .C:\Program Files\Some Folder\some cool file.dll I want.....some cool file.dll But I am getting.....C:\Program Files\Some Folder any suggestions?? Many thanks Darren Code Start>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Function GetPath(aPath) As String Dim foo As Integer, aSlash As Integer aSlash = 0 foo = InStr(aPath, "\") While (foo > 0) aSlash = foo foo = InStr(aSlash + 1, aPath, "\") end while If aSlash > 0 Then GetPath = Left$(aPath, aSlash) Else GetPath = aPath End If End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Feb 28 11:22:24 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 28 Feb 2006 11:22:24 -0600 Subject: [AccessD] Math Functions In-Reply-To: <5470244.1141144284926.JavaMail.root@sniper16> Message-ID: <001101c63c8b$8a8ec190$0200a8c0@danwaters> Mark, You can do this using MS Graph. You get the same functionality that Excel has for creating charts and graphs. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, February 28, 2006 10:22 AM To: accessd at databaseadvisors.com Subject: [AccessD] Math Functions Hello All, Anyone ever plot any math functions in Access ( lines, parabolas, etc)? Any ideas/direction would be great. Thanks, Mark -- 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 28 12:02:58 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 13:02:58 -0500 Subject: [AccessD] Entering data in related tables in a single form Message-ID: <002e01c63c91$360612d0$647aa8c0@ColbyM6805> I need a quick and dirty form to enter data into a whole set of related data tables. Policy holder, policy, claim, claimant etc. Is this possible? Obviously I have relational integrity turned on so the PKs have to exist in the "parent" tables before they can be used to enter data into the child tables. I seem to remember trying this ages ago with less than stellar results. Has anyone here done something like this, and if so how? John W. Colby www.ColbyConsulting.com From jwcolby at ColbyConsulting.com Tue Feb 28 12:18:36 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 13:18:36 -0500 Subject: [AccessD] Assistance Message-ID: <002f01c63c93$65082710$647aa8c0@ColbyM6805> Folks, I am looking for a "junior level" person to assist me in getting some of my back log caught up. I need one person, able to: Read and program VBA, guru not required. Understands and can build Access tables, queries, forms and reports. Must understand data normalization and be able to correctly sort out what data goes where given a set of objects / attributes. Must be able to read, understand and build relationship diagrams in the relationship window in Access (the center of my universe). Has a few hours a day available (10-20 hours a week). Must be self starter, blah, blah, blah. If anyone out there thinks they might fit the bill, please respond OFFLINE - email a resume, and introduction email with required hourly wage to jwcolby at colbyconsulting.com. The more you know and are capable of the more work I have. Thanks, John W. Colby www.ColbyConsulting.com From shamil at users.mns.ru Tue Feb 28 12:35:57 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 28 Feb 2006 21:35:57 +0300 Subject: [AccessD] Entering data in related tables in a single form References: <002e01c63c91$360612d0$647aa8c0@ColbyM6805> Message-ID: <001601c63c95$d1d52bc0$6401a8c0@Nant> <<< > seem to remember trying this ages ago with > less than stellar results. >>> John, What issues do you mean? (It should work well in MS Access with properly organized forms (with subforms) and maybe with a few lines of code)... I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:02 PM Subject: [AccessD] Entering data in related tables in a single form >I need a quick and dirty form to enter data into a whole set of related >data > tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so the > PKs have to exist in the "parent" tables before they can be used to enter > data into the child tables. I seem to remember trying this ages ago with > less than stellar results. Has anyone here done something like this, and > if > so how? > > 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 Chester_Kaup at kindermorgan.com Tue Feb 28 12:31:26 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 28 Feb 2006 12:31:26 -0600 Subject: [AccessD] Normalize Data by date Message-ID: I have a table with 4 columns of data. The fields are Well_Number, Production_Date, Water_Volume and CO2_Volume. I need to normalize these back to the first volume date separately for Water_Volume and CO2_Volume. ie sum the first volumes data together regardless of date and through the rest of the records. Hope I am making sense. I am at a loss of where to start. Thanks. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From martyconnelly at shaw.ca Tue Feb 28 12:35:38 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 28 Feb 2006 10:35:38 -0800 Subject: [AccessD] Math Functions References: <001101c63c8b$8a8ec190$0200a8c0@danwaters> Message-ID: <440497FA.2050906@shaw.ca> ACC97: Microsoft Access 97 Sample Graphs Available in Download Center http://support.microsoft.com/Default.aspx?kbid=186855 However MS Graph is a bit limited Have a look at somethTeeGraph ActiveX http://www.teemach.com/products/teechart/ax/whatsnew.html Dan Waters wrote: >Mark, > >You can do this using MS Graph. You get the same functionality that Excel >has for creating charts and graphs. > >Dan > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Tuesday, February 28, 2006 10:22 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Math Functions > >Hello All, > >Anyone ever plot any math functions in Access ( lines, parabolas, etc)? Any > >ideas/direction would be great. > >Thanks, > >Mark > > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at ColbyConsulting.com Tue Feb 28 12:40:40 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 13:40:40 -0500 Subject: [AccessD] Entering data in related tables in a single form In-Reply-To: <001601c63c95$d1d52bc0$6401a8c0@Nant> Message-ID: <003001c63c96$7a66db80$647aa8c0@ColbyM6805> >I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) LOL, yea, given I am an unholy bounder, going unbound would not qualify as quick and dirty. I have discovered that as long as you include the PK/FK pairs, and populate the data in the parent/child order it seems to work. This is a moderately complex database, normalized, with lookup tables etc. and I need to get about 3 or 4 of the major tables populated with new claim / claimant / policy data from a ton of new claims on an "emergency" basis (2000 claims input in then next couple of days). John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, February 28, 2006 1:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Entering data in related tables in a single form <<< > seem to remember trying this ages ago with less than stellar results. >>> John, What issues do you mean? (It should work well in MS Access with properly organized forms (with subforms) and maybe with a few lines of code)... I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:02 PM Subject: [AccessD] Entering data in related tables in a single form >I need a quick and dirty form to enter data into a whole set of related >data > tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so the > PKs have to exist in the "parent" tables before they can be used to enter > data into the child tables. I seem to remember trying this ages ago with > less than stellar results. Has anyone here done something like this, and > if > so how? > > 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 Jim.Hale at FleetPride.com Tue Feb 28 12:56:19 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 28 Feb 2006 12:56:19 -0600 Subject: [AccessD] Entering data in related tables in a single form Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA49@corp-es01.fleetpride.com> Is the data on paper (and must be input by hand) or electronic forms (where maybe it could be parsed quickly with Monarch?) Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 28, 2006 12:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form >I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) LOL, yea, given I am an unholy bounder, going unbound would not qualify as quick and dirty. I have discovered that as long as you include the PK/FK pairs, and populate the data in the parent/child order it seems to work. This is a moderately complex database, normalized, with lookup tables etc. and I need to get about 3 or 4 of the major tables populated with new claim / claimant / policy data from a ton of new claims on an "emergency" basis (2000 claims input in then next couple of days). John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, February 28, 2006 1:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Entering data in related tables in a single form <<< > seem to remember trying this ages ago with less than stellar results. >>> John, What issues do you mean? (It should work well in MS Access with properly organized forms (with subforms) and maybe with a few lines of code)... I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:02 PM Subject: [AccessD] Entering data in related tables in a single form >I need a quick and dirty form to enter data into a whole set of related >data > tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so the > PKs have to exist in the "parent" tables before they can be used to enter > data into the child tables. I seem to remember trying this ages ago with > less than stellar results. Has anyone here done something like this, and > if > so how? > > 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 *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From shamil at users.mns.ru Tue Feb 28 14:12:58 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 28 Feb 2006 23:12:58 +0300 Subject: [AccessD] Entering data in related tables in a single form References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA49@corp-es01.fleetpride.com> Message-ID: <000601c63ca3$66971130$6401a8c0@Nant> Yes, John, what media are used for the source data to populate your "about 3 or 4 of the major tables"? Shamil ----- Original Message ----- From: "Hale, Jim" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:56 PM Subject: Re: [AccessD] Entering data in related tables in a single form > Is the data on paper (and must be input by hand) or electronic forms > (where > maybe it could be parsed quickly with Monarch?) > Jim Hale > > -----Original Message----- > From: John Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Tuesday, February 28, 2006 12:41 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Entering data in related tables in a single form > > >>I suppose your base is in "bounders camp" while looking for this "quick > and dirty form" solution :) > > LOL, yea, given I am an unholy bounder, going unbound would not qualify as > quick and dirty. > > I have discovered that as long as you include the PK/FK pairs, and > populate > the data in the parent/child order it seems to work. > > This is a moderately complex database, normalized, with lookup tables etc. > and I need to get about 3 or 4 of the major tables populated with new > claim > / claimant / policy data from a ton of new claims on an "emergency" basis > (2000 claims input in then next couple of days). > > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Tuesday, February 28, 2006 1:36 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Entering data in related tables in a single form > > <<< >> seem to remember trying this ages ago with less than stellar results. >>>> > John, > > What issues do you mean? (It should work well in MS Access with properly > organized forms (with subforms) and maybe with a few lines of code)... > > I suppose your base is in "bounders camp" while looking for this "quick > and > dirty form" solution :) > > Shamil > > ----- Original Message ----- > From: "John Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, February 28, 2006 9:02 PM > Subject: [AccessD] Entering data in related tables in a single form > > >>I need a quick and dirty form to enter data into a whole set of related >>data >> tables. Policy holder, policy, claim, claimant etc. >> >> Is this possible? Obviously I have relational integrity turned on so the >> PKs have to exist in the "parent" tables before they can be used to enter >> data into the child tables. I seem to remember trying this ages ago with >> less than stellar results. Has anyone here done something like this, and >> if >> so how? >> >> 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 > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at ColbyConsulting.com Tue Feb 28 14:13:26 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 15:13:26 -0500 Subject: [AccessD] Entering data in related tables in a single form In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA49@corp-es01.fleetpride.com> Message-ID: <003901c63ca3$706f3570$647aa8c0@ColbyM6805> These are papers in boxes. Beyond that I do not know. Since the total fields they intend to enter is about 20 or so, the client intends to just "key it in". John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, February 28, 2006 1:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form Is the data on paper (and must be input by hand) or electronic forms (where maybe it could be parsed quickly with Monarch?) Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 28, 2006 12:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form >I suppose your base is in "bounders camp" while looking for this >"quick and dirty form" solution :) LOL, yea, given I am an unholy bounder, going unbound would not qualify as quick and dirty. I have discovered that as long as you include the PK/FK pairs, and populate the data in the parent/child order it seems to work. This is a moderately complex database, normalized, with lookup tables etc. and I need to get about 3 or 4 of the major tables populated with new claim / claimant / policy data from a ton of new claims on an "emergency" basis (2000 claims input in then next couple of days). John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, February 28, 2006 1:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Entering data in related tables in a single form <<< > seem to remember trying this ages ago with less than stellar results. >>> John, What issues do you mean? (It should work well in MS Access with properly organized forms (with subforms) and maybe with a few lines of code)... I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:02 PM Subject: [AccessD] Entering data in related tables in a single form >I need a quick and dirty form to enter data into a whole set of related >data tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so > the PKs have to exist in the "parent" tables before they can be used > to enter data into the child tables. I seem to remember trying this > ages ago with less than stellar results. Has anyone here done > something like this, and if so how? > > 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 *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Tue Feb 28 14:53:20 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Tue, 28 Feb 2006 14:53:20 -0600 Subject: [AccessD] Entering data in related tables in a single form Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8520@cpixchng-1.cpiqpc.net> John, If it's just down and dirty you need, would just a series of append queries work? Enter the necessary info on a form, reference the necessary fields on the form from the append query and run them from code via a click of a save data button? Just wondering here, could this come up again? Meaning is it the same storm that several people were affected by? Would you want to setup a table of data pertaining to a certain incident (storm, fire, etc...) that would be the same for all entries, so in your data entry form you could select the incident, then your claimant info could be on a subform/continuous subform and as each claim is entered they click the save button and the append queries run. Rusty -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 28, 2006 2:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form These are papers in boxes. Beyond that I do not know. Since the total fields they intend to enter is about 20 or so, the client intends to just "key it in". John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, February 28, 2006 1:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form Is the data on paper (and must be input by hand) or electronic forms (where maybe it could be parsed quickly with Monarch?) Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 28, 2006 12:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form >I suppose your base is in "bounders camp" while looking for this >"quick and dirty form" solution :) LOL, yea, given I am an unholy bounder, going unbound would not qualify as quick and dirty. I have discovered that as long as you include the PK/FK pairs, and populate the data in the parent/child order it seems to work. This is a moderately complex database, normalized, with lookup tables etc. and I need to get about 3 or 4 of the major tables populated with new claim / claimant / policy data from a ton of new claims on an "emergency" basis (2000 claims input in then next couple of days). John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, February 28, 2006 1:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Entering data in related tables in a single form <<< > seem to remember trying this ages ago with less than stellar results. >>> John, What issues do you mean? (It should work well in MS Access with properly organized forms (with subforms) and maybe with a few lines of code)... I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:02 PM Subject: [AccessD] Entering data in related tables in a single form >I need a quick and dirty form to enter data into a whole set of related >data tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so > the PKs have to exist in the "parent" tables before they can be used > to enter data into the child tables. I seem to remember trying this > ages ago with less than stellar results. Has anyone here done > something like this, and if so how? > > 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 *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From darrend at nimble.com.au Tue Feb 28 16:19:04 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 1 Mar 2006 09:19:04 +1100 Subject: [AccessD] Bit OT - Reporting Services Question In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1DDB1C2C@xlivmbx21.aig.com> Message-ID: <20060228221910.BFIF1358.omta03sl.mx.bigpond.com@DENZILLAP> Hi Lambert It's in Reporting Services Reporting Services is a Microsoft report tool designer that sits inside Visual Studio The idea is to have an easy to use (Their words not mine) report tool that speaks with SQL dB's So technically - Not Access - hence the OT Subject thread - but Vb type code I posted this q to the DBA-SQLServer list too Stuart Mc had the right answer - As usual :-)) I was treating the code as 'ReturnFileName' code but of course The code was doing exactly what it was designed to do and that is 'ReturnPath' not filename What a dufus - Thanks Stuart and thanks Lambert Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, 1 March 2006 4:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Bit OT - Reporting Services Question I agree that "Do While Condition Loop" is logically the equivalent of "While Condition Wend", but the fact remains that "While Wend" is still very much part of the language. Which why I asked Darren where the code was being run. Very curious! Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 28, 2006 9:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Bit OT - Reporting Services Question Darren, Can you use: Do While intCount < 10 . . . . intCount = intCount + 1 Loop I've used this instead of While - Wend for some time and it always work. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, February 28, 2006 7:49 AM To: AccessD Subject: [AccessD] Bit OT - Reporting Services Question Hello all In reporting services if I run the code below (from Lambert) I get the error message... "Wend statements are no longer supported . Use "End While" statements instead So If I replace wend with End while I don't get the desired result The desired result is From..... .C:\Program Files\Some Folder\some cool file.dll I want.....some cool file.dll But I am getting.....C:\Program Files\Some Folder any suggestions?? Many thanks Darren Code Start>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Function GetPath(aPath) As String Dim foo As Integer, aSlash As Integer aSlash = 0 foo = InStr(aPath, "\") While (foo > 0) aSlash = foo foo = InStr(aSlash + 1, aPath, "\") end while If aSlash > 0 Then GetPath = Left$(aPath, aSlash) Else GetPath = aPath End If End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Tue Feb 28 16:44:20 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 01 Mar 2006 11:44:20 +1300 Subject: [AccessD] Sub Report not going into Two Columns In-Reply-To: <008501c63c1e$63147b90$5540f63d@pcadt> References: <7.0.1.0.0.20060227175809.01acbe68@dalyn.co.nz> <001f01c63b6d$fae e19a0$6101a8c0@50NM721> <7.0.1.0.0.20060228110128.01a53410@dalyn.co.nz> <008501c63c1e$63147b90$5540f63d@pcadt> Message-ID: <7.0.1.0.0.20060301113023.01a446c0@dalyn.co.nz> The report is a column of text boxes with the control source being set to a string (eg ="This is a sample string"). Because of the varying size of the strings, and different printers format report text slightly differently, I have set the text boxes to a height of 1, and set the Can Grow property to Yes. When the report is viewed itself the text boxes snake down the first column of the first page, then the second column of the first page, then to the first column of the second page. This is what I want. However, when I use the report as a sub report to another report (along with a number of other sub reports) it stays at one column. The main report page settings (Column Tab) is set to one column (because other reports are full width), column size width 19.5. The sub report page settings (Column tab) is set to 2 columns, row spacing 0, column spacing 0.3, column size width 9, column layout down then across. Changing to across then down has the effect of the sub report not snaking over two columns when run on its own, nor in the main report. David. At 28/02/2006, you wrote: >David, > > It has been stated in your post that there are no records. Yet > it is mentioned that when run as independent report, the two > columns display nicely, filling up two pages. Could you please > clarify this apparent contradiction? > > Various values as actually existing on Columns tab of page set > up dialog box of the report may also please be furnished. If you > are getting two column output in independent report mode, it can be > ensured that you get similar display in subreport mode. > > With Across, then Down (A&D) layout, it is straightforward. > However, in this case, there can be awkward white spaces if the > contents of records across columns do not always measure up to same > number of lines. Down, then Across (D&A) layout overcomes such > drawback but routine adoption of this layout in a subreport puts > everything into one column (even though the original report is > designed for two columns). There is a solution for that too. > >Best wishes, >A.D.Tejpal >--------------- > > ----- Original Message ----- > From: David Emerson > To: Access Developers discussion and problem solving > Sent: Tuesday, February 28, 2006 03:33 > Subject: Re: [AccessD] Sub Report not going into Two Columns > > > Thanks for the reply William. I tried all that with no joy. I might > just have to go to fixed formatting. > > David > > At 27/02/2006, you wrote: > >...best guess is that the width of your design subreport area on > the report is narrower than the width of the two columns in the > subreport when the "can grow" is fully expanded at runtime ...try > decreasing the font size of the columns to verify this is the > problem ...or disable the "can grow" ...hth. > > > >William > > > >----- Original Message ----- > >From: "David Emerson" > >To: ; > >Sent: Monday, February 27, 2006 12:07 AM > >Subject: [AccessD] Sub Report not going into Two Columns> > > > > > Cross Posted Access D, Access L > > > > > > Access XP. > > > > > > I have a report which is a long column of text boxes with the text > > > entered into the control source. Because different printers format > > > reports slightly differently I have made the boxes shorter than the > > > text warrants and have set the can grow property on for all the text > > > boxes. There are no records associated with this report. > > > > > > I have set the Page Setup .. Number of columns to 2 and when > I view the report the text boxes flow over two columns. The full > report is two pages long. > > > > > > However, when I use the report as a subreport for another > main report then the text boxes remain in one column. I have > checked help and it suggests changing the column order to across > then down. I have tried this but it doesn't make any difference (I > guess because there are no records). > > > > > > Apart from physically placing the text boxes in two columns, does > > > anyone know how I can get them to flow properly? > > > > > > Regards > > > > > > David Emerson > > > Dalyn Software Ltd >-- >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 28 17:18:16 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 28 Feb 2006 15:18:16 -0800 Subject: [AccessD] Quartile References: Message-ID: <4404DA38.8040809@shaw.ca> This code has excel limits, arrays limited to 64K but maybe the initial part using getrows on a recordset and moving the field into another array might help you or maybe faster. Don Celko had an SQL percentile method in "SQL for Smarties" but even he suggested using SAS or SPSS for large datasets or using OLAP. Function TestRecordset() Dim strConnect As String Dim arRs As Variant Dim strsql As String strsql = "SELECT DISTINCTROW Format([ShippedDate],""yyyy""),[Order Subtotals].Subtotal, Orders.OrderID " & _ "FROM Orders INNER JOIN [Order Subtotals] ON Orders.OrderID = [Order Subtotals].OrderID " & _ "WHERE (Orders.ShippedDate Is Not Null);" Debug.Print strsql strConnect = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=""C:\Program Files\Microsoft Office\Office\Samples\Copy of Northwind.mdb"";" Dim objCnn As Object Dim objRs As Object Set objCnn = CreateObject("ADODB.Connection") objCnn.Open strConnect Set objRs = CreateObject("ADODB.Recordset") objRs.Open strsql, objCnn If objRs.EOF = False Then arRs = objRs.GetRows Else arRs = "no results" End If Dim arRsT() As Double Dim myubnd As Long Dim mylbnd As Long myubnd = UBound(arRs, 2) mylbnd = LBound(arRs, 2) ReDim arRsT(mylbnd To myubnd) 'Excel arrays get confused unless this done ' with passed arrays and limits of 64K Dim i As Long 'stuff sql query field "subtotal" into a new array For i = 0 To UBound(arRs, 2) arRsT(i) = arRs(1, i) Next i Debug.Print Pctile(arRsT, 0.75) Debug.Print "1st quartile=" & quartile(arRsT, 1) Debug.Print "2nd quartile=" & quartile(arRsT, 2) Debug.Print "3'd quartile=" & quartile(arRsT, 3) Debug.Print "min " & quartile(arRsT, 0) Debug.Print "max " & quartile(arRsT, 4) Debug.Print "95% percentile " & Pctile(arRsT, 0.95) objRs.Close Set objRs = Nothing objCnn.Close Set objCnn = Nothing TestRecordset = arRs End Function Function Pctile(data, pct) As Double Dim objExcel As Object Set objExcel = CreateObject("Excel.Application") Pctile = objExcel.Application.percentile(data, pct) objExcel.Quit Set objExcel = Nothing End Function Function quartile(data, pct As Long) As Double Dim objExcel As Object Set objExcel = CreateObject("Excel.Application") quartile = objExcel.Application.quartile(data, pct) objExcel.Quit Set objExcel = Nothing End Function Gustav Brock wrote: >Hi all > >Anyone having a need to calculate quartiles? > >The few methods I've found assumes calculation on one full table which I think doesn't mimic real life except if you create a temp table. Thus I have made the function below to take a filter argument which makes it much more versatile. > >I cannot find a way to do this fast as you need a function to browse the recordset. > >You can test this out with the Northwind demo base. >First, create a query, qdyCustomerYearLineQuantity > > SELECT > Country, > Year([OrderDate]) AS OrderYear, > Quantity > FROM > (Customers > INNER JOIN > Orders > ON Customers.CustomerID = Orders.CustomerID) > INNER JOIN > [Order Details] > ON Orders.OrderID = [Order Details].OrderID; > >And another, qdyCustomerOrderYear: > > SELECT > Country, > Year([OrderDate]) AS OrderYear > FROM > Customers > INNER JOIN > Orders > ON Customers.CustomerID = Orders.CustomerID > GROUP BY > Country, > Year([OrderDate]); > >Now create a query to calculate quartiles on quantity per customer's country: > > SELECT > Country, > OrderYear, > Quartile5("qdyCustomerYearLineQuantity","Quantity",1,"Country='" & [Country] & "' And OrderYear=" & [OrderYear] & "") AS Quartile1, > Quartile5("qdyCustomerYearLineQuantity","Quantity",2,"Country='" & [Country] & "' And OrderYear=" & [OrderYear] & "") AS Quartile2, > Quartile5("qdyCustomerYearLineQuantity","Quantity",3,"Country='" & [Country] & "' And OrderYear=" & [OrderYear] & "") AS Quartile3, > FROM > qdyCustomerOrderYear; > >Country OrderYear Quartile1 Quartile2 Quartile3 >Canada 1994 11,5 22 37 >Canada 1995 15 20 42 >Canada 1996 9 18 25 >Denmark 1994 8,25 12 17,25 >Denmark 1995 18 25 35 >Denmark 1996 15 25 30 > >The function looks like this: > > > >Public Function Quartile5( _ > ByVal strTable As String, _ > ByVal strField As String, _ > ByVal bytQuartile As Byte, _ > Optional ByVal strFilter As String) _ > As Double > > ' strTable : Name of the table/query to analyze. > ' strField : Name of the field to analyze. > ' bytQuartile: Which min/max or median/quartile to calculate. > ' strFilter: Optional filter expression. > ' > ' Data must be in ascending order by strField. > ' Constant values and return values mimic those of > ' Excel's Quartile() function. > ' > ' Returns: > ' Minimum, maximum, median or upper/lower quartile > ' of strField of strTable filtered on strFilter. > ' > ' Reset function (clear Static dbs) by the call: > ' Call Quartile5("", "", 0) > ' > ' 2006-02-27. Cactus Data ApS, CPH. > > > ' Find median. > Const cbytQuartMedian As Byte = 2 > ' Find lower (first) quartile. > Const cbytQuartLow As Byte = 1 > ' Find upper (third) quartile. > Const cbytQuartHigh As Byte = 3 > ' Find minimum value. > Const cbytQuartMinimum As Byte = 0 > ' Find maximum value. > Const cbytQuartMaximum As Byte = 4 > > ' Define default operation. > Const cbytQuartDefault = cbytQuartMedian > > Static dbs As DAO.Database > Dim rst As DAO.Recordset > > Dim strSQL As String > Dim lngNumber As Long > Dim dblPosition As Double > Dim lngPosition As Long > Dim dblInterpol As Double > Dim dblValueOne As Double > Dim dblValueTwo As Double > Dim dblQuartile As Double > > ' Use default calculation if choice of calculation is outside range. > If bytQuartile > 4 Then > bytQuartile = cbytQuartDefault > End If > > If dbs Is Nothing Then > Set dbs = CurrentDb() > End If > > If Len(strTable) > 0 And Len(strField) > 0 Then > strSQL = "SELECT [" & strField & "] FROM [" & strTable & "] " > strSQL = strSQL & "WHERE ([" & strField & "] Is Not Null) " > If Len(strFilter) > 0 Then > strSQL = strSQL & "AND (" & strFilter & ") " > End If > strSQL = strSQL & "ORDER BY [" & strField & "];" > > Set rst = dbs.OpenRecordset(strSQL) > > With rst > If Not .EOF = True Then > If bytQuartile = cbytQuartMinimum Then > ' No need to count records. > lngNumber = 1 > Else > ' Count records. > .MoveLast > lngNumber = .RecordCount > End If > Select Case bytQuartile > Case cbytQuartMinimum > ' Current record is first record. > ' Read value of this record. > Case cbytQuartMaximum > ' Current record is last record. > ' Read value of this record. > Case cbytQuartMedian > ' Locate position of median. > dblPosition = (lngNumber + 1) / 2 > Case cbytQuartLow > dblPosition = (lngNumber + 3) / 4 > Case cbytQuartHigh > dblPosition = (3 * lngNumber + 1) / 4 > End Select > Select Case bytQuartile > Case cbytQuartMinimum, cbytQuartMaximum > ' Read current row. > Case Else > .MoveFirst > ' Find position of first observation to retrieve. > ' If lngPosition is 0, then upper position is first record. > ' If lngPosition is not 0 and position is not an integer, then > ' read the next observation too. > lngPosition = Fix(dblPosition) > dblInterpol = dblPosition - lngPosition > If lngNumber = 1 Then > ' Nowhere else to move. > ElseIf lngPosition > 1 Then > ' Move to record to read. > .Move lngPosition - 1 > End If > End Select > ' Retrieve value from first observation. > dblValueOne = .Fields(0).Value > > Select Case bytQuartile > Case cbytQuartMinimum, cbytQuartMaximum > dblQuartile = dblValueOne > Case Else > If dblInterpol = 0 Then > ' Only one observation to read. > dblQuartile = dblValueOne > Else > .MoveNext > ' Retrieve value from second observation. > dblValueTwo = .Fields(0).Value > ' For positive values interpolate between 0 and dblValueOne. > ' For negative values interpolate between 2 * dblValueOne and dblValueOne. > ' Calculate quartile using linear interpolation. > dblQuartile = dblValueOne + dblInterpol * CDec(dblValueTwo - dblValueOne) > End If > End Select > End If > .Close > End With > Else > ' Reset. > Set dbs = Nothing > End If > > Set rst = Nothing > > Quartile5 = dblQuartile > >End Function > > > >The function can easily be converted to ADO but that runs even slower. >Comments are most welcome. > >/gustav > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Tue Feb 28 17:41:07 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 28 Feb 2006 15:41:07 -0800 Subject: [AccessD] Entering data in related tables in a single form References: <002e01c63c91$360612d0$647aa8c0@ColbyM6805> Message-ID: <4404DF93.2080809@shaw.ca> I was going to suggest PureEdge from Victoria my hometown, they do this for US Army and Insurance Companies essentially you create a scanned form into a type of Wssiggy Editor, and it reproduces exactly the form on the screen This is important for old forms. It then creates XML files from the form. Really handy for sites with a multude of paper forms. You could then move the XML into Access or SQL databases or even directly into database. Went to look for it at www.pureedge.com and Gack I got redirected to http://www-142.ibm.com/software/workplace/products/product5.nsf/wdocs/formshome I guess IBM bought them out a few months back and added it to their Workplace Suite. They are getting as bad as Oracle. John Colby wrote: >I need a quick and dirty form to enter data into a whole set of related data >tables. Policy holder, policy, claim, claimant etc. > >Is this possible? Obviously I have relational integrity turned on so the >PKs have to exist in the "parent" tables before they can be used to enter >data into the child tables. I seem to remember trying this ages ago with >less than stellar results. Has anyone here done something like this, and if >so how? > >John W. Colby >www.ColbyConsulting.com > > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Tue Feb 28 20:14:59 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 18:14:59 -0800 Subject: [AccessD] Assistance In-Reply-To: <002f01c63c93$65082710$647aa8c0@ColbyM6805> References: <002f01c63c93$65082710$647aa8c0@ColbyM6805> Message-ID: <440503A3.7090808@san.rr.com> Bound or unbound forms? Rocky John Colby wrote: > Folks, > > I am looking for a "junior level" person to assist me in getting some of my > back log caught up. I need one person, able to: > > Read and program VBA, guru not required. > Understands and can build Access tables, queries, forms and reports. > Must understand data normalization and be able to correctly sort out what > data goes where given a set of objects / attributes. > Must be able to read, understand and build relationship diagrams in the > relationship window in Access (the center of my universe). > Has a few hours a day available (10-20 hours a week). > Must be self starter, blah, blah, blah. > > If anyone out there thinks they might fit the bill, please respond OFFLINE - > email a resume, and introduction email with required hourly wage to > jwcolby at colbyconsulting.com. The more you know and are capable of the more > work I have. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Tue Feb 28 20:18:48 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 18:18:48 -0800 Subject: [AccessD] Help with combo box In-Reply-To: <6.2.1.2.2.20060228172601.01eefe80@mail.tpg.com.au> References: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> <4403E982.5080005@san.rr.com> <6.2.1.2.2.20060228172601.01eefe80@mail.tpg.com.au> Message-ID: <44050488.1020808@san.rr.com> Sorry about the late response. I was out all day. Can you use the click event? What additional function are you trying to implement? Rocky David & Joanne Gould wrote: > Thanks for your prompt response Rocky. > > At 05:11 PM 28/02/2006, you wrote: > >> What event is the current code attached to? >> The database form is the Hiring form for a video library. There is >> currently code attached to the "Before update" event, the "After Update" >> event and the "On Double-click" event. The Double-click event allows the >> user to add oir change the hiring code (overnight, weekly, etc). >> > > >> Can you use the 'Got Focus' event to run your new code? >> > > The other issue I forgot to mention is it's on a continuous form. I have > tried to make the combo box inactive if there is anything entered in it, > but that just makes it inactive for all the records in the transaction (so > I would only be able to enter one movie per sale). > > > >> Rocky >> >> >> David & Joanne Gould wrote: >> >>> I have a combo box on a form that has quite a lot of code attached to it. >>> >>> Is there a way to run code when the user clicks on the drop-down arrow >>> >> that >> >>> won't interfere with other code that runs when the user double-clicks on >>> the combo box? >>> >>> TIA >>> >>> David >>> >>> >>> >>> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Tue Feb 28 20:23:25 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 18:23:25 -0800 Subject: [AccessD] Entering data in related tables in a single form In-Reply-To: <002e01c63c91$360612d0$647aa8c0@ColbyM6805> References: <002e01c63c91$360612d0$647aa8c0@ColbyM6805> Message-ID: <4405059D.5050508@san.rr.com> John: Can you force the user to create the parent record (at least as far as the insert event so you have a PK) by making the sub-forms bound to the child tables disabled until the parent record is created and you have the PK in hand? Is it one primary parent table with several one-to-many child tables? Rocky John Colby wrote: > I need a quick and dirty form to enter data into a whole set of related data > tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so the > PKs have to exist in the "parent" tables before they can be used to enter > data into the child tables. I seem to remember trying this ages ago with > less than stellar results. Has anyone here done something like this, and if > so how? > > John W. Colby > www.ColbyConsulting.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dajomigo at tpg.com.au Tue Feb 28 20:32:41 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Wed, 01 Mar 2006 13:32:41 +1100 Subject: [AccessD] Help with combo box In-Reply-To: <44050488.1020808@san.rr.com> References: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> <4403E982.5080005@san.rr.com> <6.2.1.2.2.20060228172601.01eefe80@mail.tpg.com.au> <44050488.1020808@san.rr.com> Message-ID: <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> Rocky The Double-click event is set to open another form to change the Rental Type for this movie title. What I was wondering was if there was a way to access the drop-down arrow on the combo box as a separate thing. This might separate the main part of the control where all the other code is connected. Can it be done? TIA David At 01:18 PM 1/03/2006, you wrote: >Sorry about the late response. I was out all day. Can you use the >click event? What additional function are you trying to implement? > >Rocky > > >David & Joanne Gould wrote: > > Thanks for your prompt response Rocky. > > > > At 05:11 PM 28/02/2006, you wrote: > > > >> What event is the current code attached to? > >> The database form is the Hiring form for a video library. There is > >> currently code attached to the "Before update" event, the "After Update" > >> event and the "On Double-click" event. The Double-click event allows the > >> user to add oir change the hiring code (overnight, weekly, etc). > >> > > > > > >> Can you use the 'Got Focus' event to run your new code? > >> > > > > The other issue I forgot to mention is it's on a continuous form. I have > > tried to make the combo box inactive if there is anything entered in it, > > but that just makes it inactive for all the records in the transaction (so > > I would only be able to enter one movie per sale). > > > > > > > >> Rocky > >> > >> > >> David & Joanne Gould wrote: > >> > >>> I have a combo box on a form that has quite a lot of code attached to it. > >>> > >>> Is there a way to run code when the user clicks on the drop-down arrow > >>> > >> that > >> > >>> won't interfere with other code that runs when the user double-clicks on > >>> the combo box? > >>> > >>> TIA > >>> > >>> David > >>> > >>> > >>> > >>> > >> -- > >> Rocky Smolin > >> Beach Access Software > >> 858-259-4334 > >> www.e-z-mrp.com > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > > >-- >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Tue Feb 28 20:45:07 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 28 Feb 2006 18:45:07 -0800 Subject: [AccessD] Entering data in related tables in a single form In-Reply-To: <003901c63ca3$706f3570$647aa8c0@ColbyM6805> Message-ID: <003301c63cda$26f9f3d0$6701a8c0@HPLaptop> John, I am doing this with forms and sub forms on a tab control? I can send it to you if you need. It is the project I have been nagging the list about. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, February 28, 2006 12:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form These are papers in boxes. Beyond that I do not know. Since the total fields they intend to enter is about 20 or so, the client intends to just "key it in". John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, February 28, 2006 1:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form Is the data on paper (and must be input by hand) or electronic forms (where maybe it could be parsed quickly with Monarch?) Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 28, 2006 12:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form >I suppose your base is in "bounders camp" while looking for this >"quick and dirty form" solution :) LOL, yea, given I am an unholy bounder, going unbound would not qualify as quick and dirty. I have discovered that as long as you include the PK/FK pairs, and populate the data in the parent/child order it seems to work. This is a moderately complex database, normalized, with lookup tables etc. and I need to get about 3 or 4 of the major tables populated with new claim / claimant / policy data from a ton of new claims on an "emergency" basis (2000 claims input in then next couple of days). John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, February 28, 2006 1:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Entering data in related tables in a single form <<< > seem to remember trying this ages ago with less than stellar results. >>> John, What issues do you mean? (It should work well in MS Access with properly organized forms (with subforms) and maybe with a few lines of code)... I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:02 PM Subject: [AccessD] Entering data in related tables in a single form >I need a quick and dirty form to enter data into a whole set of related >data tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so > the PKs have to exist in the "parent" tables before they can be used > to enter data into the child tables. I seem to remember trying this > ages ago with less than stellar results. Has anyone here done > something like this, and if so how? > > 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 ************************************************************ *********** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- 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 28 21:00:35 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 22:00:35 -0500 Subject: [AccessD] Entering data in related tables in a single form In-Reply-To: <4405059D.5050508@san.rr.com> Message-ID: <005b01c63cdc$50d0a300$647aa8c0@ColbyM6805> Rocky, There are a hand full of tables that this data will initially go into. There is a new table called "underwriter" which is "parent to" Policy (what insurance company wrote the policy). There is also policy holder (what company / individual owns the policy?). Then the policy table. There is a claimant table (who is filing the claim) and a Claim table (details about the claim). Claim is child to claimant as well as child to policy (kind of). There is actually a ProductType lookup which contains a "business block" name, and the policy is related to the claim through a M2M with this product type. Insurance is a strange duck. Lawyers write contracts (policies), which might be just short term disability, just long term disability or both. Thus the same policy could have claims against it for short term and long term and they are processed differently. There are in fact about 15 product types and counting. So Policy and Product type come together in a m2m and the PK of that is a FK in the claim table. THAT is the ugliest piece of this whole database. Well... Maybe not but you don't want to hear it. ;-) All of these tables potentially need data inserted. In fact tables like Underwriter have just perhaps a dozen insurance company names in it, which will then be selected by a combo in the policy form. Policy holder though already has several thousand records and will have an unknown number added from these files. So no, definitely not a simple structure here. 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: Tuesday, February 28, 2006 9:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Entering data in related tables in a single form John: Can you force the user to create the parent record (at least as far as the insert event so you have a PK) by making the sub-forms bound to the child tables disabled until the parent record is created and you have the PK in hand? Is it one primary parent table with several one-to-many child tables? Rocky John Colby wrote: > I need a quick and dirty form to enter data into a whole set of > related data tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so > the PKs have to exist in the "parent" tables before they can be used > to enter data into the child tables. I seem to remember trying this > ages ago with less than stellar results. Has anyone here done > something like this, and if so how? > > John W. Colby > www.ColbyConsulting.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at ColbyConsulting.com Tue Feb 28 21:14:06 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 22:14:06 -0500 Subject: [AccessD] Entering data in related tables in a single form In-Reply-To: <003301c63cda$26f9f3d0$6701a8c0@HPLaptop> Message-ID: <005c01c63cde$33d3c280$647aa8c0@ColbyM6805> In fact this is the approach I am leaning towards. It is not as fast (data entry) as a single form but makes the division of labor much cleaner. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, February 28, 2006 9:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form John, I am doing this with forms and sub forms on a tab control? I can send it to you if you need. It is the project I have been nagging the list about. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, February 28, 2006 12:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form These are papers in boxes. Beyond that I do not know. Since the total fields they intend to enter is about 20 or so, the client intends to just "key it in". John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, February 28, 2006 1:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form Is the data on paper (and must be input by hand) or electronic forms (where maybe it could be parsed quickly with Monarch?) Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 28, 2006 12:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form >I suppose your base is in "bounders camp" while looking for this >"quick and dirty form" solution :) LOL, yea, given I am an unholy bounder, going unbound would not qualify as quick and dirty. I have discovered that as long as you include the PK/FK pairs, and populate the data in the parent/child order it seems to work. This is a moderately complex database, normalized, with lookup tables etc. and I need to get about 3 or 4 of the major tables populated with new claim / claimant / policy data from a ton of new claims on an "emergency" basis (2000 claims input in then next couple of days). John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, February 28, 2006 1:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Entering data in related tables in a single form <<< > seem to remember trying this ages ago with less than stellar results. >>> John, What issues do you mean? (It should work well in MS Access with properly organized forms (with subforms) and maybe with a few lines of code)... I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:02 PM Subject: [AccessD] Entering data in related tables in a single form >I need a quick and dirty form to enter data into a whole set of related >data tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so > the PKs have to exist in the "parent" tables before they can be used > to enter data into the child tables. I seem to remember trying this > ages ago with less than stellar results. Has anyone here done > something like this, and if so how? > > 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 ************************************************************ *********** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Tue Feb 28 21:36:51 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 28 Feb 2006 22:36:51 -0500 Subject: [AccessD] Help with combo box In-Reply-To: <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> Message-ID: <000001c63ce1$61c1b230$cfb3d6d1@SUSANONE> Are you talking about the Dropdown property? Isn't there a Dropdown property that you can set to automatically open the list? Is that what you're after? Susan H. The Double-click event is set to open another form to change the Rental Type for this movie title. What I was wondering was if there was a way to access the drop-down arrow on the combo box as a separate thing. This might separate the main part of the control where all the other code is connected. Can it be done? From jwcolby at ColbyConsulting.com Tue Feb 28 21:46:29 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 22:46:29 -0500 Subject: [AccessD] Assistance In-Reply-To: <440503A3.7090808@san.rr.com> Message-ID: <005d01c63ce2$ba705fc0$647aa8c0@ColbyM6805> LOL, 99% of my forms are bound. 99% of my forms do some pretty "fancy" stuff via my framework as well. For example, I have a "REC_ID" text box on every form which is bound to the PK of the table the form collects data for. The REC_ID on the opening form is bound to the PK so it has information on the field name for the PK which I can use in building "move to" code. If a combo on another (child) form is displaying a record, the combo has the PK VALUE of a specific record in the parent table. If a user dbl clicks a combo box, my framework can cause a data entry form to open displaying data from the parent table that the combo is displaying. Since I know the PK from the combo that was double clicked, and I know the table and field of that PK from the REC_ID control, I can instruct the form to "find" that PK. I therefore have all the pieces needed to open the form and move to the record that the combo was displaying. If the combo back on the calling form was on the new record, it will NOT be displaying data. That is a signal to the opening form to move to a new record so that the user can enter data. I use the same basic logic for the "not-in-list" event of the combo to allow the user to automatically open the data entry form for a combo, move to the new record, and enter new data in the table. When the form closes, the combo requeries and now contains the newly entered data in the list table. That kind of stuff. My framework provides dozens of "behaviors" that are just there if I want to use them. In the OnOpen of a form, when I set up the form class, I can specify that "this combo is dependent on that combo". When the class for this combo is requeried, it automatically requeries all "dependent" object classes. I can have subforms, combos, list boxes etc. all "dependent on" a given object. As long as each of these dependent objects has a "requery" method, I can just iterate the colDependentObject collection of the class, requerying all dependent objects. The current event of a subform can cause the form class to requery all "dependent objects" dependent on that current record of the subform. Of course all dependent objects have to have feedback in the query that allows it to display different data depending on the current row of a form, or the selected item in a combo etc. But if you set it all up, and "inform" the framework (objects) that other objects are dependent on them, then they all get requeried when the master object is requeried. A combo can have a dependent combo, which can itself have a dependent combo. Change the first combo, it requeries the second combo. The second combo then requeries the third combo etc. The third combo could requery 5 subforms. Your imagination is the limit. This kind of stuff can make the creation of dependent combos and subforms a snap. Just one of dozens of behaviors built in to the framework. Yea, I use bound forms, I use autonumber PKs, I use a framework, and I make good use of all of the above. 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: Tuesday, February 28, 2006 9:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Assistance Bound or unbound forms? Rocky John Colby wrote: > Folks, > > I am looking for a "junior level" person to assist me in getting some > of my back log caught up. I need one person, able to: > > Read and program VBA, guru not required. > Understands and can build Access tables, queries, forms and reports. > Must understand data normalization and be able to correctly sort out > what data goes where given a set of objects / attributes. > Must be able to read, understand and build relationship diagrams in > the relationship window in Access (the center of my universe). > Has a few hours a day available (10-20 hours a week). > Must be self starter, blah, blah, blah. > > If anyone out there thinks they might fit the bill, please respond > OFFLINE - email a resume, and introduction email with required hourly > wage to jwcolby at colbyconsulting.com. The more you know and are > capable of the more work I have. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dajomigo at tpg.com.au Tue Feb 28 21:52:09 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Wed, 01 Mar 2006 14:52:09 +1100 Subject: [AccessD] Help with combo box In-Reply-To: <000001c63ce1$61c1b230$cfb3d6d1@SUSANONE> References: <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> <000001c63ce1$61c1b230$cfb3d6d1@SUSANONE> Message-ID: <6.2.1.2.2.20060301144836.01e78160@mail.tpg.com.au> Susan The only property list I can see is the property dialog box for the whole control. What I need to setup is a way that makes it impossible for the user to change their selection once they have made one (unless they delete the record first) but still lets them use the double-click event to open the form to change the rental type for the title. TIA David At 02:36 PM 1/03/2006, you wrote: >Are you talking about the Dropdown property? Isn't there a Dropdown property >that you can set to automatically open the list? Is that what you're after? > >Susan H. > >The Double-click event is set to open another form to change the Rental Type >for this movie title. What I was wondering was if there was a way to access >the drop-down arrow on the combo box as a separate thing. This might >separate the main part of the control where all the other code is connected. >Can it be done? > >-- >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 28 22:15:09 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 20:15:09 -0800 Subject: [AccessD] Assistance In-Reply-To: <005d01c63ce2$ba705fc0$647aa8c0@ColbyM6805> References: <005d01c63ce2$ba705fc0$647aa8c0@ColbyM6805> Message-ID: <44051FCD.8060007@san.rr.com> Well, thanks to you and your dictatorial methodology I find I am now completely unable to create a new table without defining an autonumber PK as the very first field. With ID as the suffix of the field name. Thanks a lot. And I mean that. Rocky John Colby wrote: > LOL, 99% of my forms are bound. 99% of my forms do some pretty "fancy" > stuff via my framework as well. > > For example, I have a "REC_ID" text box on every form which is bound to the > PK of the table the form collects data for. The REC_ID on the opening form > is bound to the PK so it has information on the field name for the PK which > I can use in building "move to" code. If a combo on another (child) form is > displaying a record, the combo has the PK VALUE of a specific record in the > parent table. If a user dbl clicks a combo box, my framework can cause a > data entry form to open displaying data from the parent table that the combo > is displaying. Since I know the PK from the combo that was double clicked, > and I know the table and field of that PK from the REC_ID control, I can > instruct the form to "find" that PK. I therefore have all the pieces > needed to open the form and move to the record that the combo was > displaying. If the combo back on the calling form was on the new record, it > will NOT be displaying data. That is a signal to the opening form to move > to a new record so that the user can enter data. I use the same basic logic > for the "not-in-list" event of the combo to allow the user to automatically > open the data entry form for a combo, move to the new record, and enter new > data in the table. When the form closes, the combo requeries and now > contains the newly entered data in the list table. > > That kind of stuff. > > My framework provides dozens of "behaviors" that are just there if I want to > use them. In the OnOpen of a form, when I set up the form class, I can > specify that "this combo is dependent on that combo". When the class for > this combo is requeried, it automatically requeries all "dependent" object > classes. I can have subforms, combos, list boxes etc. all "dependent on" a > given object. As long as each of these dependent objects has a "requery" > method, I can just iterate the colDependentObject collection of the class, > requerying all dependent objects. The current event of a subform can cause > the form class to requery all "dependent objects" dependent on that current > record of the subform. Of course all dependent objects have to have > feedback in the query that allows it to display different data depending on > the current row of a form, or the selected item in a combo etc. But if you > set it all up, and "inform" the framework (objects) that other objects are > dependent on them, then they all get requeried when the master object is > requeried. A combo can have a dependent combo, which can itself have a > dependent combo. Change the first combo, it requeries the second combo. > The second combo then requeries the third combo etc. The third combo could > requery 5 subforms. Your imagination is the limit. > > This kind of stuff can make the creation of dependent combos and subforms a > snap. > > Just one of dozens of behaviors built in to the framework. > > Yea, I use bound forms, I use autonumber PKs, I use a framework, and I make > good use of all of the above. > > 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: Tuesday, February 28, 2006 9:15 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Assistance > > Bound or unbound forms? > > Rocky > > > John Colby wrote: > >> Folks, >> >> I am looking for a "junior level" person to assist me in getting some >> of my back log caught up. I need one person, able to: >> >> Read and program VBA, guru not required. >> Understands and can build Access tables, queries, forms and reports. >> Must understand data normalization and be able to correctly sort out >> what data goes where given a set of objects / attributes. >> Must be able to read, understand and build relationship diagrams in >> the relationship window in Access (the center of my universe). >> Has a few hours a day available (10-20 hours a week). >> Must be self starter, blah, blah, blah. >> >> If anyone out there thinks they might fit the bill, please respond >> OFFLINE - email a resume, and introduction email with required hourly >> wage to jwcolby at colbyconsulting.com. The more you know and are >> capable of the more work I have. >> >> Thanks, >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Tue Feb 28 22:17:37 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 20:17:37 -0800 Subject: [AccessD] Help with combo box In-Reply-To: <6.2.1.2.2.20060301144836.01e78160@mail.tpg.com.au> References: <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> <000001c63ce1$61c1b230$cfb3d6d1@SUSANONE> <6.2.1.2.2.20060301144836.01e78160@mail.tpg.com.au> Message-ID: <44052061.40303@san.rr.com> David: So could you make the combo box enabled in the Current event (moving to a new record) and disable it after the user makes a selection? But that leads to another problem. People make mistakes. So you have to give them a way to back out of an erroneous selection. Rocky David & Joanne Gould wrote: > Susan > > The only property list I can see is the property dialog box for the whole > control. What I need to setup is a way that makes it impossible for the > user to change their selection once they have made one (unless they delete > the record first) but still lets them use the double-click event to open > the form to change the rental type for the title. > > TIA > > David > > At 02:36 PM 1/03/2006, you wrote: > >> Are you talking about the Dropdown property? Isn't there a Dropdown property >> that you can set to automatically open the list? Is that what you're after? >> >> Susan H. >> >> The Double-click event is set to open another form to change the Rental Type >> for this movie title. What I was wondering was if there was a way to access >> the drop-down arrow on the combo box as a separate thing. This might >> separate the main part of the control where all the other code is connected. >> Can it be done? >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Tue Feb 28 22:19:00 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 20:19:00 -0800 Subject: [AccessD] Help with combo box In-Reply-To: <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> References: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> <4403E982.5080005@san.rr.com> <6.2.1.2.2.20060228172601.01eefe80@mail.tpg.com.au> <44050488.1020808@san.rr.com> <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> Message-ID: <440520B4.7020907@san.rr.com> David: AFAIK, no, the down arrow is not a separately programmable part of the control. But AFAIK may not go all that far. Rocky David & Joanne Gould wrote: > Rocky > > The Double-click event is set to open another form to change the Rental > Type for this movie title. What I was wondering was if there was a way to > access the drop-down arrow on the combo box as a separate thing. This might > separate the main part of the control where all the other code is > connected. Can it be done? > > TIA > > David > > At 01:18 PM 1/03/2006, you wrote: > >> Sorry about the late response. I was out all day. Can you use the >> click event? What additional function are you trying to implement? >> >> Rocky >> >> >> David & Joanne Gould wrote: >> >>> Thanks for your prompt response Rocky. >>> >>> At 05:11 PM 28/02/2006, you wrote: >>> >>> >>>> What event is the current code attached to? >>>> The database form is the Hiring form for a video library. There is >>>> currently code attached to the "Before update" event, the "After Update" >>>> event and the "On Double-click" event. The Double-click event allows the >>>> user to add oir change the hiring code (overnight, weekly, etc). >>>> >>>> >>> >>>> Can you use the 'Got Focus' event to run your new code? >>>> >>>> >>> The other issue I forgot to mention is it's on a continuous form. I have >>> tried to make the combo box inactive if there is anything entered in it, >>> but that just makes it inactive for all the records in the transaction (so >>> I would only be able to enter one movie per sale). >>> >>> >>> >>> >>>> Rocky >>>> >>>> >>>> David & Joanne Gould wrote: >>>> >>>> >>>>> I have a combo box on a form that has quite a lot of code attached to it. >>>>> >>>>> Is there a way to run code when the user clicks on the drop-down arrow >>>>> >>>>> >>>> that >>>> >>>> >>>>> won't interfere with other code that runs when the user double-clicks on >>>>> the combo box? >>>>> >>>>> TIA >>>>> >>>>> David >>>>> >>>>> >>>>> >>>>> >>>>> >>>> -- >>>> Rocky Smolin >>>> Beach Access Software >>>> 858-259-4334 >>>> www.e-z-mrp.com >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> >>> >>> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Tue Feb 28 22:22:13 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 20:22:13 -0800 Subject: [AccessD] Entering data in related tables in a single form In-Reply-To: <005b01c63cdc$50d0a300$647aa8c0@ColbyM6805> References: <005b01c63cdc$50d0a300$647aa8c0@ColbyM6805> Message-ID: <44052175.7050402@san.rr.com> John: Is restructuring the tables and relationships an option? It would seem that policy number would be the primary piece of data in this whole scheme and a table of PolicyID (autonumber) and policy number could serve as the master parent table to which everything else would be related. Rocky John Colby wrote: > Rocky, > > There are a hand full of tables that this data will initially go into. > There is a new table called "underwriter" which is "parent to" Policy (what > insurance company wrote the policy). There is also policy holder (what > company / individual owns the policy?). Then the policy table. There is a > claimant table (who is filing the claim) and a Claim table (details about > the claim). Claim is child to claimant as well as child to policy (kind > of). > > There is actually a ProductType lookup which contains a "business block" > name, and the policy is related to the claim through a M2M with this product > type. Insurance is a strange duck. Lawyers write contracts (policies), > which might be just short term disability, just long term disability or > both. Thus the same policy could have claims against it for short term and > long term and they are processed differently. There are in fact about 15 > product types and counting. So Policy and Product type come together in a > m2m and the PK of that is a FK in the claim table. THAT is the ugliest > piece of this whole database. Well... Maybe not but you don't want to hear > it. ;-) > > All of these tables potentially need data inserted. In fact tables like > Underwriter have just perhaps a dozen insurance company names in it, which > will then be selected by a combo in the policy form. Policy holder though > already has several thousand records and will have an unknown number added > from these files. > > So no, definitely not a simple structure here. > > > 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: Tuesday, February 28, 2006 9:23 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Entering data in related tables in a single form > > John: > > Can you force the user to create the parent record (at least as far as the > insert event so you have a PK) by making the sub-forms bound to the child > tables disabled until the parent record is created and you have the PK in > hand? > > Is it one primary parent table with several one-to-many child tables? > > Rocky > > > John Colby wrote: > >> I need a quick and dirty form to enter data into a whole set of >> related data tables. Policy holder, policy, claim, claimant etc. >> >> Is this possible? Obviously I have relational integrity turned on so >> the PKs have to exist in the "parent" tables before they can be used >> to enter data into the child tables. I seem to remember trying this >> ages ago with less than stellar results. Has anyone here done >> something like this, and if so how? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dajomigo at tpg.com.au Tue Feb 28 22:36:17 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Wed, 01 Mar 2006 15:36:17 +1100 Subject: [AccessD] Help with combo box In-Reply-To: <440520B4.7020907@san.rr.com> References: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> <4403E982.5080005@san.rr.com> <6.2.1.2.2.20060228172601.01eefe80@mail.tpg.com.au> <44050488.1020808@san.rr.com> <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> <440520B4.7020907@san.rr.com> Message-ID: <6.2.1.2.2.20060301153607.01e77550@mail.tpg.com.au> Pity David At 03:19 PM 1/03/2006, you wrote: >David: > >AFAIK, no, the down arrow is not a separately programmable part of the >control. But AFAIK may not go all that far. > >Rocky > > >David & Joanne Gould wrote: > > Rocky > > > > The Double-click event is set to open another form to change the Rental > > Type for this movie title. What I was wondering was if there was a way to > > access the drop-down arrow on the combo box as a separate thing. This > might > > separate the main part of the control where all the other code is > > connected. Can it be done? > > > > TIA > > > > David > > > > At 01:18 PM 1/03/2006, you wrote: > > > >> Sorry about the late response. I was out all day. Can you use the > >> click event? What additional function are you trying to implement? > >> > >> Rocky > >> > >> > >> David & Joanne Gould wrote: > >> > >>> Thanks for your prompt response Rocky. > >>> > >>> At 05:11 PM 28/02/2006, you wrote: > >>> > >>> > >>>> What event is the current code attached to? > >>>> The database form is the Hiring form for a video library. There is > >>>> currently code attached to the "Before update" event, the "After Update" > >>>> event and the "On Double-click" event. The Double-click event allows the > >>>> user to add oir change the hiring code (overnight, weekly, etc). > >>>> > >>>> > >>> > >>>> Can you use the 'Got Focus' event to run your new code? > >>>> > >>>> > >>> The other issue I forgot to mention is it's on a continuous form. I have > >>> tried to make the combo box inactive if there is anything entered in it, > >>> but that just makes it inactive for all the records in the > transaction (so > >>> I would only be able to enter one movie per sale). > >>> > >>> > >>> > >>> > >>>> Rocky > >>>> > >>>> > >>>> David & Joanne Gould wrote: > >>>> > >>>> > >>>>> I have a combo box on a form that has quite a lot of code attached > to it. > >>>>> > >>>>> Is there a way to run code when the user clicks on the drop-down arrow > >>>>> > >>>>> > >>>> that > >>>> > >>>> > >>>>> won't interfere with other code that runs when the user > double-clicks on > >>>>> the combo box? > >>>>> > >>>>> TIA > >>>>> > >>>>> David > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>> -- > >>>> Rocky Smolin > >>>> Beach Access Software > >>>> 858-259-4334 > >>>> www.e-z-mrp.com > >>>> > >>>> -- > >>>> AccessD mailing list > >>>> AccessD at databaseadvisors.com > >>>> http://databaseadvisors.com/mailman/listinfo/accessd > >>>> Website: http://www.databaseadvisors.com > >>>> > >>>> > >>> > >>> > >> -- > >> Rocky Smolin > >> Beach Access Software > >> 858-259-4334 > >> www.e-z-mrp.com > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > > >-- >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From dajomigo at tpg.com.au Tue Feb 28 22:38:44 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Wed, 01 Mar 2006 15:38:44 +1100 Subject: [AccessD] Help with combo box In-Reply-To: <44052061.40303@san.rr.com> References: <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> <000001c63ce1$61c1b230$cfb3d6d1@SUSANONE> <6.2.1.2.2.20060301144836.01e78160@mail.tpg.com.au> <44052061.40303@san.rr.com> Message-ID: <6.2.1.2.2.20060301153631.01e77178@mail.tpg.com.au> Rocky I had a look but the combo box doesn't have a oncurrent event. If you meant for the form - the form is a continuous form and time I set the combo box to disabled it disables every instance of it. David At 03:17 PM 1/03/2006, you wrote: >David: > >So could you make the combo box enabled in the Current event (moving to >a new record) and disable it after the user makes a selection? > >But that leads to another problem. People make mistakes. So you have >to give them a way to back out of an erroneous selection. > >Rocky > > >David & Joanne Gould wrote: > > Susan > > > > The only property list I can see is the property dialog box for the whole > > control. What I need to setup is a way that makes it impossible for the > > user to change their selection once they have made one (unless they delete > > the record first) but still lets them use the double-click event to open > > the form to change the rental type for the title. > > > > TIA > > > > David > > > > At 02:36 PM 1/03/2006, you wrote: > > > >> Are you talking about the Dropdown property? Isn't there a Dropdown > property > >> that you can set to automatically open the list? Is that what you're > after? > >> > >> Susan H. > >> > >> The Double-click event is set to open another form to change the > Rental Type > >> for this movie title. What I was wondering was if there was a way to > access > >> the drop-down arrow on the combo box as a separate thing. This might > >> separate the main part of the control where all the other code is > connected. > >> Can it be done? > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > > >-- >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From darrend at nimble.com.au Tue Feb 28 22:47:08 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 1 Mar 2006 15:47:08 +1100 Subject: [AccessD] Help with combo box In-Reply-To: <6.2.1.2.2.20060301153607.01e77550@mail.tpg.com.au> Message-ID: <20060301044714.UNEW1358.omta03sl.mx.bigpond.com@DENZILLAP> Howdy The on Double click - by its very event - will also activate the 'Enter' (on first click) ,"Got Focus', 'Mouse Down', 'Mouse Up', Click and of course 'Double Click' SO if you've got code in nay of 'em - they get fired So - when it gets a bit too crowded like that I put a small button to the right hand side of the combo - I know it's not as nice To do whatever the double click code would have done See ya Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David & Joanne Gould Sent: Wednesday, 1 March 2006 3:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Help with combo box Pity David At 03:19 PM 1/03/2006, you wrote: >David: > >AFAIK, no, the down arrow is not a separately programmable part of the >control. But AFAIK may not go all that far. > >Rocky > > >David & Joanne Gould wrote: > > Rocky > > > > The Double-click event is set to open another form to change the > > Rental Type for this movie title. What I was wondering was if there > > was a way to access the drop-down arrow on the combo box as a > > separate thing. This > might > > separate the main part of the control where all the other code is > > connected. Can it be done? > > > > TIA > > > > David > > > > At 01:18 PM 1/03/2006, you wrote: > > > >> Sorry about the late response. I was out all day. Can you use the > >> click event? What additional function are you trying to implement? > >> > >> Rocky > >> > >> > >> David & Joanne Gould wrote: > >> > >>> Thanks for your prompt response Rocky. > >>> > >>> At 05:11 PM 28/02/2006, you wrote: > >>> > >>> > >>>> What event is the current code attached to? > >>>> The database form is the Hiring form for a video library. There > >>>> is currently code attached to the "Before update" event, the "After Update" > >>>> event and the "On Double-click" event. The Double-click event > >>>> allows the user to add oir change the hiring code (overnight, weekly, etc). > >>>> > >>>> > >>> > >>>> Can you use the 'Got Focus' event to run your new code? > >>>> > >>>> > >>> The other issue I forgot to mention is it's on a continuous form. > >>> I have tried to make the combo box inactive if there is anything > >>> entered in it, but that just makes it inactive for all the records > >>> in the > transaction (so > >>> I would only be able to enter one movie per sale). > >>> > >>> > >>> > >>> > >>>> Rocky > >>>> > >>>> > >>>> David & Joanne Gould wrote: > >>>> > >>>> > >>>>> I have a combo box on a form that has quite a lot of code > >>>>> attached > to it. > >>>>> > >>>>> Is there a way to run code when the user clicks on the drop-down > >>>>> arrow > >>>>> > >>>>> > >>>> that > >>>> > >>>> > >>>>> won't interfere with other code that runs when the user > double-clicks on > >>>>> the combo box? > >>>>> > >>>>> TIA > >>>>> > >>>>> David > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>> -- > >>>> Rocky Smolin > >>>> Beach Access Software > >>>> 858-259-4334 > >>>> www.e-z-mrp.com > >>>> > >>>> -- > >>>> AccessD mailing list > >>>> AccessD at databaseadvisors.com > >>>> http://databaseadvisors.com/mailman/listinfo/accessd > >>>> Website: http://www.databaseadvisors.com > >>>> > >>>> > >>> > >>> > >> -- > >> Rocky Smolin > >> Beach Access Software > >> 858-259-4334 > >> www.e-z-mrp.com > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > > >-- >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at ColbyConsulting.com Tue Feb 28 22:59:03 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 23:59:03 -0500 Subject: [AccessD] Assistance In-Reply-To: <44051FCD.8060007@san.rr.com> Message-ID: <005e01c63cec$dd004a50$647aa8c0@ColbyM6805> ROTFLMAO. Some things are just worth doing, always. Because of my dictatorial methods I am able to just look at my tables and see the relationships, know what tables a field is in etc. Works for me. Most of my subjects don't dare speak up anymore, knowing my "out the door, without a parachute" mentality. ;-) 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: Tuesday, February 28, 2006 11:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Assistance Well, thanks to you and your dictatorial methodology I find I am now completely unable to create a new table without defining an autonumber PK as the very first field. With ID as the suffix of the field name. Thanks a lot. And I mean that. Rocky John Colby wrote: > LOL, 99% of my forms are bound. 99% of my forms do some pretty "fancy" > stuff via my framework as well. > > For example, I have a "REC_ID" text box on every form which is bound > to the PK of the table the form collects data for. The REC_ID on the > opening form is bound to the PK so it has information on the field > name for the PK which I can use in building "move to" code. If a combo > on another (child) form is displaying a record, the combo has the PK > VALUE of a specific record in the parent table. If a user dbl clicks > a combo box, my framework can cause a data entry form to open > displaying data from the parent table that the combo is displaying. > Since I know the PK from the combo that was double clicked, and I know the table and field of that PK from the REC_ID control, I can > instruct the form to "find" that PK. I therefore have all the pieces > needed to open the form and move to the record that the combo was > displaying. If the combo back on the calling form was on the new > record, it will NOT be displaying data. That is a signal to the > opening form to move to a new record so that the user can enter data. > I use the same basic logic for the "not-in-list" event of the combo to > allow the user to automatically open the data entry form for a combo, > move to the new record, and enter new data in the table. When the > form closes, the combo requeries and now contains the newly entered data in the list table. > > That kind of stuff. > > My framework provides dozens of "behaviors" that are just there if I > want to use them. In the OnOpen of a form, when I set up the form > class, I can specify that "this combo is dependent on that combo". > When the class for this combo is requeried, it automatically requeries > all "dependent" object classes. I can have subforms, combos, list > boxes etc. all "dependent on" a given object. As long as each of these dependent objects has a "requery" > method, I can just iterate the colDependentObject collection of the > class, requerying all dependent objects. The current event of a > subform can cause the form class to requery all "dependent objects" > dependent on that current record of the subform. Of course all > dependent objects have to have feedback in the query that allows it to > display different data depending on the current row of a form, or the > selected item in a combo etc. But if you set it all up, and "inform" > the framework (objects) that other objects are dependent on them, then > they all get requeried when the master object is requeried. A combo > can have a dependent combo, which can itself have a dependent combo. Change the first combo, it requeries the second combo. > The second combo then requeries the third combo etc. The third combo > could requery 5 subforms. Your imagination is the limit. > > This kind of stuff can make the creation of dependent combos and > subforms a snap. > > Just one of dozens of behaviors built in to the framework. > > Yea, I use bound forms, I use autonumber PKs, I use a framework, and I > make good use of all of the above. > > 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: Tuesday, February 28, 2006 9:15 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Assistance > > Bound or unbound forms? > > Rocky From bchacc at san.rr.com Tue Feb 28 23:14:55 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 21:14:55 -0800 Subject: [AccessD] Help with combo box In-Reply-To: <6.2.1.2.2.20060301153631.01e77178@mail.tpg.com.au> References: <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> <000001c63ce1$61c1b230$cfb3d6d1@SUSANONE> <6.2.1.2.2.20060301144836.01e78160@mail.tpg.com.au> <44052061.40303@san.rr.com> <6.2.1.2.2.20060301153631.01e77178@mail.tpg.com.au> Message-ID: <44052DCF.5010205@san.rr.com> David: Sometimes, in a case like this, I will bind the field to a text box and put the unbound combo box behind it, not visible. In the click event of the text box I make the combo box visible. In the update event of the combo box I take the combo box value and put it into the bound text box., and make the combo box invisible again. In your case, if there is already a value in the bound text box, you wouldn't activate the combo box. So once they make a choice, they can't change it. Rocky David & Joanne Gould wrote: > Rocky > > I had a look but the combo box doesn't have a oncurrent event. If you meant > for the form - the form is a continuous form and time I set the combo box > to disabled it disables every instance of it. > > David > > At 03:17 PM 1/03/2006, you wrote: > >> David: >> >> So could you make the combo box enabled in the Current event (moving to >> a new record) and disable it after the user makes a selection? >> >> But that leads to another problem. People make mistakes. So you have >> to give them a way to back out of an erroneous selection. >> >> Rocky >> >> >> David & Joanne Gould wrote: >> >>> Susan >>> >>> The only property list I can see is the property dialog box for the whole >>> control. What I need to setup is a way that makes it impossible for the >>> user to change their selection once they have made one (unless they delete >>> the record first) but still lets them use the double-click event to open >>> the form to change the rental type for the title. >>> >>> TIA >>> >>> David >>> >>> At 02:36 PM 1/03/2006, you wrote: >>> >>> >>>> Are you talking about the Dropdown property? Isn't there a Dropdown >>>> >> property >> >>>> that you can set to automatically open the list? Is that what you're >>>> >> after? >> >>>> Susan H. >>>> >>>> The Double-click event is set to open another form to change the >>>> >> Rental Type >> >>>> for this movie title. What I was wondering was if there was a way to >>>> >> access >> >>>> the drop-down arrow on the combo box as a separate thing. This might >>>> separate the main part of the control where all the other code is >>>> >> connected. >> >>>> Can it be done? >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> >>> >>> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dajomigo at tpg.com.au Tue Feb 28 23:18:49 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Wed, 01 Mar 2006 16:18:49 +1100 Subject: [AccessD] Help with combo box In-Reply-To: <20060301044714.UNEW1358.omta03sl.mx.bigpond.com@DENZILLAP> References: <6.2.1.2.2.20060301153607.01e77550@mail.tpg.com.au> <20060301044714.UNEW1358.omta03sl.mx.bigpond.com@DENZILLAP> Message-ID: <6.2.1.2.2.20060301161727.01e766b0@mail.tpg.com.au> Thanks Darren. As you said, less elegant, but logic says its the only way to go. can't believe I didn't think of something like that. Again, thanks. David At 03:47 PM 1/03/2006, you wrote: >Howdy >The on Double click - by its very event - will also activate the 'Enter' (on >first click) ,"Got Focus', 'Mouse Down', 'Mouse Up', Click and of course >'Double >Click' >SO if you've got code in nay of 'em - they get fired >So - when it gets a bit too crowded like that I put a small button to the >right >hand side of the combo - I know it's not as nice >To do whatever the double click code would have done > >See ya > > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David & Joanne >Gould >Sent: Wednesday, 1 March 2006 3:36 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Help with combo box > >Pity > >David >At 03:19 PM 1/03/2006, you wrote: > >David: > > > >AFAIK, no, the down arrow is not a separately programmable part of the > >control. But AFAIK may not go all that far. > > > >Rocky > > > > > >David & Joanne Gould wrote: > > > Rocky > > > > > > The Double-click event is set to open another form to change the > > > Rental Type for this movie title. What I was wondering was if there > > > was a way to access the drop-down arrow on the combo box as a > > > separate thing. This > > might > > > separate the main part of the control where all the other code is > > > connected. Can it be done? > > > > > > TIA > > > > > > David > > > > > > At 01:18 PM 1/03/2006, you wrote: > > > > > >> Sorry about the late response. I was out all day. Can you use the > > >> click event? What additional function are you trying to implement? > > >> > > >> Rocky > > >> > > >> > > >> David & Joanne Gould wrote: > > >> > > >>> Thanks for your prompt response Rocky. > > >>> > > >>> At 05:11 PM 28/02/2006, you wrote: > > >>> > > >>> > > >>>> What event is the current code attached to? > > >>>> The database form is the Hiring form for a video library. There > > >>>> is currently code attached to the "Before update" event, the "After >Update" > > >>>> event and the "On Double-click" event. The Double-click event > > >>>> allows the user to add oir change the hiring code (overnight, weekly, >etc). > > >>>> > > >>>> > > >>> > > >>>> Can you use the 'Got Focus' event to run your new code? > > >>>> > > >>>> > > >>> The other issue I forgot to mention is it's on a continuous form. > > >>> I have tried to make the combo box inactive if there is anything > > >>> entered in it, but that just makes it inactive for all the records > > >>> in the > > transaction (so > > >>> I would only be able to enter one movie per sale). > > >>> > > >>> > > >>> > > >>> > > >>>> Rocky > > >>>> > > >>>> > > >>>> David & Joanne Gould wrote: > > >>>> > > >>>> > > >>>>> I have a combo box on a form that has quite a lot of code > > >>>>> attached > > to it. > > >>>>> > > >>>>> Is there a way to run code when the user clicks on the drop-down > > >>>>> arrow > > >>>>> > > >>>>> > > >>>> that > > >>>> > > >>>> > > >>>>> won't interfere with other code that runs when the user > > double-clicks on > > >>>>> the combo box? > > >>>>> > > >>>>> TIA > > >>>>> > > >>>>> David > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>> -- > > >>>> Rocky Smolin > > >>>> Beach Access Software > > >>>> 858-259-4334 > > >>>> www.e-z-mrp.com > > >>>> > > >>>> -- > > >>>> AccessD mailing list > > >>>> AccessD at databaseadvisors.com > > >>>> http://databaseadvisors.com/mailman/listinfo/accessd > > >>>> Website: http://www.databaseadvisors.com > > >>>> > > >>>> > > >>> > > >>> > > >> -- > > >> Rocky Smolin > > >> Beach Access Software > > >> 858-259-4334 > > >> www.e-z-mrp.com > > >> > > >> -- > > >> AccessD mailing list > > >> AccessD at databaseadvisors.com > > >> http://databaseadvisors.com/mailman/listinfo/accessd > > >> Website: http://www.databaseadvisors.com > > >> > > > > > > > > > > > > >-- > >Rocky Smolin > >Beach Access Software > >858-259-4334 > >www.e-z-mrp.com > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >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 1 02:58:16 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Feb 2006 09:58:16 +0100 Subject: [AccessD] =?iso-8859-1?q?InterSystems_Cach=E9_database_engine?= Message-ID: Hi all It's now out in version 5.1 with new goodies for the dot Net people: http://www.intersystems.com/cache/technology/cache51/whatsnew.html /gustav >>> Gustav Brock 14-10-2003 15:04 >>> Hi all Just had a talk with the local representative about developer's cost. Minimum is one license at EUR 240.00. Maintenance and support is optional at 22% pr. year of license fee or ~EUR 53.00 bringing a total for the first year of about EUR 293.00 which equals about USD 340.00. This may, of course, vary on the west side of the pond. If you sign an agreement as a software house you'll get a substantial discount on these prices including the licenses you may sell to your clients. To me this sounds so fair that only open source engines like Firebird, SAP DB (MaxDB) and MySQL can compete - and they'll only bring a fraction of the features of Cach?. I have no time to play around with the free test license at the moment but I hope I will in the near future. /gustav > Hi Anonymous > Here a simple end user license fee is EUR 240. > However, they offer alternative pricing schemes, like > Power Units (don't ask) > Value based > These are intended for OEM and embedded use of the engine. > Further, due to the diverted use of the engine, pricing should be > negotiable. This you will, of course, have to discuss with your local > contact. > How or if this covers a developer license for commercial use, I don't > know yet. > /gustav >> Anyone know the pricing? The site requires you to fill out a survey to >> get pricing ... If the price isn't on the site, for anything, it's >> ususally way too expensive. >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: Thursday, October 09, 2003 11:58 AM >> To: Access Developers discussion and problem solving >> Cc: accessdb2web at egroups.com >> Subject: Re: [AccessD] InterSystems Cach? database engine >> Hi group >> Well, today I went to this hands-on seminar, and I'm impressed. >> The core of the engine is an object oriented data store. You create as >> easy as in Access - in a very nice designer using a basic like language >> - classes for storing data. When compiled, these classes are at once >> compiled too - and represented - as tables via ODBC and JDBC, classes >> via C++, Java, ActiveX (COM), .net and XML, and you can access the data >> simultaneous via all interfaces. These layers are all highly efficient >> they claim is the main reason for the high speed of the engine next to >> the speed of the engine itself. >> Further, you can create CSP pages similar to ASP and JSP pages with a >> direct connection to the engine. An add-in for Dreamweaver is offered >> with wizards for creating web pages. These pages are interesting as they >> offer live update of presented data via either a server call or a hidden >> frame meaning that requery or repaint of the displayed page is avoided - >> this is in my opinion mandatory for anything serious application-like >> running in a browser. >> The best perspective of this, in my eyes, is that you can start using >> the engine and your proven tools whatever they might be (Access) while >> moving to or adding other interfaces like another language, a browser >> interface, XML or web services (SOAP). Rome was not built in one day, >> remember. >> The engine scales to shadowed servers, clusters and TB size with no more >> efforts than within reach of a developer (we are impatient and really >> have no time for this, you know), and it runs on close to anything >> including WinNT/200x/XP, Redhat/Suse Linux, Solaris, OpenVMS, Tru64, >> HP-UX, AIX, and Win ME/98 - even Win95 - and MacOX with the next release >> - requiring modest hardware only. >> /gustav >>>> Just noticed this option for a free developer license: >>>> http://www.intersystems.com/downloads/index.html >>>> Anyone having experience with this engine as a backend for Access or >>>> otherwise? >>>> The free license doesn't allow you to sell your apps. It is, however, >>>> not time limited. From darrend at nimble.com.au Wed Feb 1 04:57:11 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 1 Feb 2006 21:57:11 +1100 Subject: [AccessD] A2003: List of Tables in an SQL dB Message-ID: <20060201105728.XCXB17345.omta04ps.mx.bigpond.com@DENZILLAP> Hello all Given the IP address of a server and the Name of the SQL dB Is it possible to retrieve the whole list of tables in the that SQL dB? Many thanks in advance DD From Jdemarco at hudsonhealthplan.org Wed Feb 1 07:37:58 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 1 Feb 2006 08:37:58 -0500 Subject: [AccessD] Same form, different actions Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C44C1@TTNEXCHCL2.hshhp.com> Excellent point John and one that I cannot agree with more. I don't know how many times I've mentioned to other developers that all they have to do is use whatever class we may be discussing and not worry about the behind the scenes stuff. The reference I make the most is about a class I found on the web that let me read/write registry values. I did not care how it got or set values. I just needed to figure out what methods to use to access those values. Much better than the APIs it wrapped (and that's really the point of many class modules - to take complex processes and simplify them). Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Tuesday, January 31, 2006 9:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Same form, different actions Everyone, I want to point out that the entire point of classes (objects) is that you can just use them, you don't have to understand them. I know that some people want to learn how it works as well, but in the end, just start using it, THEN worry about digging in and seeing how it is programmed. Everything you use in Access as an object, and we don't have a clue how it works inside. Combos, text boxes, forms etc, all are objects that have methods and properties. You just use them, but don't know, nor care how it all happens inside the object. These classes I put out there, the SysVars classes, the openargs classes, the date picker class etc. all are things that you can just use yourself, even if you NEVER figure out how it works inside. And I might add , I am a consultant. If you have a project that needs this level of expertise, you can hire me to do it. 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: Monday, January 30, 2006 1:24 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Same form, different actions Man, I wish I got this just half as much as you do! This is going to take me some time to digest, but I think it is exactly what I need. Thanks for the help! John W. Clark >>> jwcolby at colbyconsulting.com 1/30/2006 12:29:53 PM >>> John, When you say "go there" what do you mean. If you open a form modal, then when you close the form you are right back in the calling form. If you are not opening it modal, you should STILL "go there" when you close the form unless the user has clicked on or opened some other form in the meantime. IOW, if the switchboard opens the form, then when the form closes, the switchboard should still be there. If you want the form to do something and then OPEN another form, then pass in the form name in the OpenArgs something like: strOpenArgs="FrmToOpen=frmThatIWantOpened;" Now somewhere in the form that you are opening with these openargs (perhaps in the close event?) do: Docmd.open acForm, lclsOpenArgs.OpenArg("FrmToOpen") You do have to make sure that the instance of lclsOpenArgs hasn't been destroyed already. I am not sure at what instance in the closing process that occurs so that part is up to you to figure out. So..... The demo has two levels of complexity. The first (and most complex) is that as you pass in openargs, it is possible to have the OpenArgs class set properties of the form that is using this instance of the OpenArgs class. That is handled automatically by clsOpenArgs. Pass in OpenArgs with names that match form properties and Voila, (assuming the properties are not read-only) the properties are set. That was demonstrated by the code in the buttons on the demo form opening the SAME state form in two different modes, plus setting the caption property of the state form. The second level of complexity is just using an OpenArg somehow, using code in the form to retrieve an OpenArg and use it. That was demonstrated by setting the label caption in code in the OnOpen event. In either case, the first thing to get comfortable with is having a form instantiate and initialize a class. In the code behind form of the frmState, we dimensioned a class variable in the header, then SET and initialized that variable in OnOpen. Private lclsOpenArgs As clsOpenArgs Private Sub Form_Open(Cancel As Integer) Set lclsOpenArgs = New clsOpenArgs lclsOpenArgs.mInit Me, True So the form now has a lclsOpenArgs instance that has parsed the OpenArgs string passed in and is waiting for your command. The next thing to become comfortable with is that you can now use the Openargs: lblDemoArg.Caption = lclsOpenArgs.OpenArg("LblText") In the OnOpen of the frmState, we initialized the class, and then used the class to pull out an openarg called "LblText" and used the value returned by the class to set the caption of a label - lblDemoArg.Caption. Go back to the button code that OPENED frmState and notice that the string with all the openargs contained an openarg with this "lblText" name (at the very end): strOpenArgs = "DataEntry=True;AllowEdits=True;AllowDeletions=False;Caption=My State Data Entry Form;LblText=My Data Entry Label;" ALL of the OpenArgs at the front of the string are for setting form properties. Their location in the string is irrelevant, it just happens that is where I placed them. IF you told frmStates to interpret the openargs as properties BY PASSING IN True as the second argument of the init: Private Sub Form_Open(Cancel As Integer) Set lclsOpenArgs = New clsOpenArgs lclsOpenArgs.mInit Me, True <<< Message-ID: <012701c62738$80db5ef0$657aa8c0@ColbyM6805> There are a LOT of classes that I "borrow" and never bother to figure out how they work. I found zip/unzip stuff that is waaaaaaay over my head, or at the very least I have no interest in figuring out. I don't care how compression works, I just need to use it. The same with the registry stuff you mention. I just use it. Many of my classes are not that difficult to figure out what they are doing. So if you folks want to know how it does the magic, by all means dig in. But please don't let the fact that you don't understand it prevent you from using it. Sysvars are a HUGE help in controlling your application, learn the concept and just start using them. Openargs can be a very valuable tool. Grab the class(es) and start using them. If you like what I have done why start from scratch? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, February 01, 2006 8:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Same form, different actions Excellent point John and one that I cannot agree with more. I don't know how many times I've mentioned to other developers that all they have to do is use whatever class we may be discussing and not worry about the behind the scenes stuff. The reference I make the most is about a class I found on the web that let me read/write registry values. I did not care how it got or set values. I just needed to figure out what methods to use to access those values. Much better than the APIs it wrapped (and that's really the point of many class modules - to take complex processes and simplify them). Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Tuesday, January 31, 2006 9:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Same form, different actions Everyone, I want to point out that the entire point of classes (objects) is that you can just use them, you don't have to understand them. I know that some people want to learn how it works as well, but in the end, just start using it, THEN worry about digging in and seeing how it is programmed. Everything you use in Access as an object, and we don't have a clue how it works inside. Combos, text boxes, forms etc, all are objects that have methods and properties. You just use them, but don't know, nor care how it all happens inside the object. These classes I put out there, the SysVars classes, the openargs classes, the date picker class etc. all are things that you can just use yourself, even if you NEVER figure out how it works inside. And I might add , I am a consultant. If you have a project that needs this level of expertise, you can hire me to do it. 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: Monday, January 30, 2006 1:24 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Same form, different actions Man, I wish I got this just half as much as you do! This is going to take me some time to digest, but I think it is exactly what I need. Thanks for the help! John W. Clark >>> jwcolby at colbyconsulting.com 1/30/2006 12:29:53 PM >>> John, When you say "go there" what do you mean. If you open a form modal, then when you close the form you are right back in the calling form. If you are not opening it modal, you should STILL "go there" when you close the form unless the user has clicked on or opened some other form in the meantime. IOW, if the switchboard opens the form, then when the form closes, the switchboard should still be there. If you want the form to do something and then OPEN another form, then pass in the form name in the OpenArgs something like: strOpenArgs="FrmToOpen=frmThatIWantOpened;" Now somewhere in the form that you are opening with these openargs (perhaps in the close event?) do: Docmd.open acForm, lclsOpenArgs.OpenArg("FrmToOpen") You do have to make sure that the instance of lclsOpenArgs hasn't been destroyed already. I am not sure at what instance in the closing process that occurs so that part is up to you to figure out. So..... The demo has two levels of complexity. The first (and most complex) is that as you pass in openargs, it is possible to have the OpenArgs class set properties of the form that is using this instance of the OpenArgs class. That is handled automatically by clsOpenArgs. Pass in OpenArgs with names that match form properties and Voila, (assuming the properties are not read-only) the properties are set. That was demonstrated by the code in the buttons on the demo form opening the SAME state form in two different modes, plus setting the caption property of the state form. The second level of complexity is just using an OpenArg somehow, using code in the form to retrieve an OpenArg and use it. That was demonstrated by setting the label caption in code in the OnOpen event. In either case, the first thing to get comfortable with is having a form instantiate and initialize a class. In the code behind form of the frmState, we dimensioned a class variable in the header, then SET and initialized that variable in OnOpen. Private lclsOpenArgs As clsOpenArgs Private Sub Form_Open(Cancel As Integer) Set lclsOpenArgs = New clsOpenArgs lclsOpenArgs.mInit Me, True So the form now has a lclsOpenArgs instance that has parsed the OpenArgs string passed in and is waiting for your command. The next thing to become comfortable with is that you can now use the Openargs: lblDemoArg.Caption = lclsOpenArgs.OpenArg("LblText") In the OnOpen of the frmState, we initialized the class, and then used the class to pull out an openarg called "LblText" and used the value returned by the class to set the caption of a label - lblDemoArg.Caption. Go back to the button code that OPENED frmState and notice that the string with all the openargs contained an openarg with this "lblText" name (at the very end): strOpenArgs = "DataEntry=True;AllowEdits=True;AllowDeletions=False;Caption=My State Data Entry Form;LblText=My Data Entry Label;" ALL of the OpenArgs at the front of the string are for setting form properties. Their location in the string is irrelevant, it just happens that is where I placed them. IF you told frmStates to interpret the openargs as properties BY PASSING IN True as the second argument of the init: Private Sub Form_Open(Cancel As Integer) Set lclsOpenArgs = New clsOpenArgs lclsOpenArgs.mInit Me, True <<< A potential distributor in France writes to me and asks: "I shall like asking you a question: Is it possible 'to migrate' E-Z MRP under Linux? There is an equivalent of Office Pro which is ' OpenSuite ' And in this Suite, there is a given compatible Access database. I think that it would be a good idea to supply one package (Free open distribution of Linux and OpenSuite +EZ?MRP) with a very competitive price." Does anyone know anything about porting an Access app to OpenSuite? MTIA, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From stuart at lexacorp.com.pg Wed Feb 1 08:20:32 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 02 Feb 2006 00:20:32 +1000 Subject: [AccessD] A2003: List of Tables in an SQL dB In-Reply-To: <20060201105728.XCXB17345.omta04ps.mx.bigpond.com@DENZILLAP> Message-ID: <43E15050.2844.10427F9C@stuart.lexacorp.com.pg> On 1 Feb 2006 at 21:57, Darren DICK wrote: > Hello all > Given the IP address of a server and the Name of the SQL dB > Is it possible to retrieve the whole list of tables in the that SQL dB? > Make sure that the SQL Server is configured to use TCP/IP (in Enterprise Manager, right click on the server, select Properties - General, Click on Network Configuration and ensure TCP/IP is enabled) Then try this (watch for linewrap!): Function ListTables() Dim strConection As String Dim con As New ADODB.Connection Dim cmd As New ADODB.Command Dim RS As ADODB.Recordset strConnection = "Driver={SQL Server};Server=10.10.10.10;Database=databasename;Uid=loginname;Pwd=password;" con.Open strConnection Set cmd.ActiveConnection = con cmd.CommandType = adCmdText cmd.CommandText = "SELECT name, type FROM sysobjects WHERE type = 'U'" Set RS = cmd.Execute While Not RS.EOF Debug.Print RS(0) RS.MoveNext Wend End Function -- Stuart From stuart at lexacorp.com.pg Wed Feb 1 08:26:36 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 02 Feb 2006 00:26:36 +1000 Subject: [AccessD] A2003: List of Tables in an SQL dB In-Reply-To: <43E15050.2844.10427F9C@stuart.lexacorp.com.pg> References: <20060201105728.XCXB17345.omta04ps.mx.bigpond.com@DENZILLAP> Message-ID: <43E151BC.24280.10480A6E@stuart.lexacorp.com.pg> On 2 Feb 2006 at 0:20, Stuart McLachlan wrote: > strConnection = "Driver={SQL > Server};Server=10.10.10.10;Database=databasename;Uid=loginname;Pwd=password;" If it doesn't work, you may need one extra parameter: Network=DBMSSOCN; -- Stuart From garykjos at gmail.com Wed Feb 1 08:32:16 2006 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 1 Feb 2006 08:32:16 -0600 Subject: [AccessD] OT: Linux, Open Suite and Access In-Reply-To: <43E0C354.4030001@san.rr.com> References: <43E0C354.4030001@san.rr.com> Message-ID: http://www.openoffice.org/product/base.html http://www.openoffice.org/FAQs/ms-access/ms-access.html Don't know about PORTING but that second link discusses accessing the Access databases via an ODBC data source Good luck! On 2/1/06, Rocky Smolin - Beach Access Software wrote: > A potential distributor in France writes to me and asks: > > "I shall like asking you a question: Is it possible 'to migrate' E-Z MRP > under Linux? There is an equivalent of Office Pro which is ' OpenSuite ' > And in this Suite, there is a given compatible Access database. I think > that it would be a good idea to supply one package (Free open > distribution of Linux and OpenSuite +EZ?MRP) with a very competitive price." > > Does anyone know anything about porting an Access app to OpenSuite? > > MTIA, > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From jwcolby at ColbyConsulting.com Wed Feb 1 09:51:22 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 1 Feb 2006 10:51:22 -0500 Subject: [AccessD] Manipulating Excel Cells Message-ID: <013701c62747$5a4aca50$657aa8c0@ColbyM6805> I'm baaaack. ;-) Here's the deal. I am working with a spreadsheet that has columns of systems and rows of documents. Therefore each cell represents a system-document. BTW, this was a "source" for me to build a pair of tables - tblSystem and tblDocument. I then added a field to tblDocument called SpreadsheetRow and a field to tblSystem called SpreadsheetColumn. We are tracking the receipt of these documents. The client now wants to see, back in his original spreadsheet, the "status" of a given system document using colors to express the status - white = not assigned, red = not received, yellow = partial receipt, green = received. So... I have to go "poke colors" out into the spreadsheet. I have discovered the "area" property which has a color attribute. What I need now is a translation from the column LETTERS to a column number since for some bizarre reason the columns have letter names but cells are referenced by column numbers. "Brain damaged children" as Bill Cosby would say. Does anyone have code for manipulating cells by cell(intRowNumbers, strColNames)? John W. Colby www.ColbyConsulting.com From Gustav at cactus.dk Wed Feb 1 10:19:10 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Feb 2006 17:19:10 +0100 Subject: [AccessD] Manipulating Excel Cells Message-ID: Hi John No, that is not so ... why should it be that complicated? To reference the value of a cell of a worksheet: .Worksheet.Cells(intRow, intColumn).Value = lngValue and so on for all the other properties of a cell. /gustav >>> jwcolby at ColbyConsulting.com 01-02-2006 16:51:22 >>> I'm baaaack. ;-) Here's the deal. I am working with a spreadsheet that has columns of systems and rows of documents. Therefore each cell represents a system-document. BTW, this was a "source" for me to build a pair of tables - tblSystem and tblDocument. I then added a field to tblDocument called SpreadsheetRow and a field to tblSystem called SpreadsheetColumn. We are tracking the receipt of these documents. The client now wants to see, back in his original spreadsheet, the "status" of a given system document using colors to express the status - white = not assigned, red = not received, yellow = partial receipt, green = received. So... I have to go "poke colors" out into the spreadsheet. I have discovered the "area" property which has a color attribute. What I need now is a translation from the column LETTERS to a column number since for some bizarre reason the columns have letter names but cells are referenced by column numbers. "Brain damaged children" as Bill Cosby would say. Does anyone have code for manipulating cells by cell(intRowNumbers, strColNames)? John W. Colby www.ColbyConsulting.com From bchacc at san.rr.com Wed Feb 1 10:20:56 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 01 Feb 2006 08:20:56 -0800 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: <013701c62747$5a4aca50$657aa8c0@ColbyM6805> References: <013701c62747$5a4aca50$657aa8c0@ColbyM6805> Message-ID: <43E0DFE8.1000006@san.rr.com> Can you use the old trick of recording a macro and looking at the code? Rocky John Colby wrote: > I'm baaaack. ;-) > > Here's the deal. I am working with a spreadsheet that has columns of > systems and rows of documents. Therefore each cell represents a > system-document. BTW, this was a "source" for me to build a pair of tables > - tblSystem and tblDocument. I then added a field to tblDocument called > SpreadsheetRow and a field to tblSystem called SpreadsheetColumn. > > > We are tracking the receipt of these documents. The client now wants to > see, back in his original spreadsheet, the "status" of a given system > document using colors to express the status - white = not assigned, red = > not received, yellow = partial receipt, green = received. > > So... I have to go "poke colors" out into the spreadsheet. I have > discovered the "area" property which has a color attribute. What I need now > is a translation from the column LETTERS to a column number since for some > bizarre reason the columns have letter names but cells are referenced by > column numbers. "Brain damaged children" as Bill Cosby would say. > > Does anyone have code for manipulating cells by cell(intRowNumbers, > strColNames)? > > John W. Colby > www.ColbyConsulting.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Jim.Hale at FleetPride.com Wed Feb 1 10:35:55 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 1 Feb 2006 10:35:55 -0600 Subject: [AccessD] Manipulating Excel Cells Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9D6@corp-es01.fleetpride.com> Is this what you are looking for? 'flip sign on vendor rebates '--------------------------- .Sheets("misc").Select For i = 6 To 11 .Cells(25, i) = -(.Cells(25, i)) Next i Or something like this? Jim Hale Function loadData_Excel(Dept As Integer, Co As Integer, ModelName As String, XcelWS As String, PlGroup As String, qryStr As String) Dim qdfTemp As QueryDef, dbs As Database, rs As Recordset Dim intRow As Integer, intBmonth As Integer, strWorksheet As String 'load data from recordset into spreadsheet Set dbs = CurrentDb Set qdfTemp = dbs.QueryDefs(qryStr) qdfTemp.Parameters("Deptnum") = Dept qdfTemp.Parameters("Co") = Co qdfTemp.Parameters("Model") = ModelName qdfTemp.Parameters("Worksheet") = XcelWS qdfTemp.Parameters("PlGroup") = PlGroup Set rs = qdfTemp.OpenRecordset() If Not (rs.BOF And rs.EOF) Then strWorksheet = rs("fldWorksheet") appexcel.Sheets(strWorksheet).Select Do While Not rs.EOF intBmonth = rs("Bmonth") + rs("fldColumnoffset") intRow = rs("fldRowno") appexcel.Cells(intRow, intBmonth) = rs("amt") rs.MoveNext Loop End If The_End: If Not (qdfTemp Is Nothing) Then qdfTemp.Close: Set qdfTemp = Nothing If Not (rs Is Nothing) Then rs.Close: Set rs = Nothing If Not (dbs Is Nothing) Then dbs.Close: Set dbs = Nothing End Function -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 01, 2006 9:51 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Manipulating Excel Cells I'm baaaack. ;-) Here's the deal. I am working with a spreadsheet that has columns of systems and rows of documents. Therefore each cell represents a system-document. BTW, this was a "source" for me to build a pair of tables - tblSystem and tblDocument. I then added a field to tblDocument called SpreadsheetRow and a field to tblSystem called SpreadsheetColumn. We are tracking the receipt of these documents. The client now wants to see, back in his original spreadsheet, the "status" of a given system document using colors to express the status - white = not assigned, red = not received, yellow = partial receipt, green = received. So... I have to go "poke colors" out into the spreadsheet. I have discovered the "area" property which has a color attribute. What I need now is a translation from the column LETTERS to a column number since for some bizarre reason the columns have letter names but cells are referenced by column numbers. "Brain damaged children" as Bill Cosby would say. Does anyone have code for manipulating cells by cell(intRowNumbers, strColNames)? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From accessd at shaw.ca Wed Feb 1 10:54:07 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 01 Feb 2006 08:54:07 -0800 Subject: [AccessD] =?iso-8859-1?q?InterSystems_Cach=E9_database_engine?= In-Reply-To: Message-ID: <000e01c62750$1de87b80$017ba8c0@xpserver> Gustav; thanks for that. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: February 1, 2006 12:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] InterSystems Cach? database engine Hi all It's now out in version 5.1 with new goodies for the dot Net people: http://www.intersystems.com/cache/technology/cache51/whatsnew.html /gustav >>> Gustav Brock 14-10-2003 15:04 >>> Hi all Just had a talk with the local representative about developer's cost. Minimum is one license at EUR 240.00. Maintenance and support is optional at 22% pr. year of license fee or ~EUR 53.00 bringing a total for the first year of about EUR 293.00 which equals about USD 340.00. This may, of course, vary on the west side of the pond. If you sign an agreement as a software house you'll get a substantial discount on these prices including the licenses you may sell to your clients. To me this sounds so fair that only open source engines like Firebird, SAP DB (MaxDB) and MySQL can compete - and they'll only bring a fraction of the features of Cach?. I have no time to play around with the free test license at the moment but I hope I will in the near future. /gustav > Hi Anonymous > Here a simple end user license fee is EUR 240. > However, they offer alternative pricing schemes, like > Power Units (don't ask) > Value based > These are intended for OEM and embedded use of the engine. > Further, due to the diverted use of the engine, pricing should be > negotiable. This you will, of course, have to discuss with your local > contact. > How or if this covers a developer license for commercial use, I don't > know yet. > /gustav >> Anyone know the pricing? The site requires you to fill out a survey to >> get pricing ... If the price isn't on the site, for anything, it's >> ususally way too expensive. >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >> Sent: Thursday, October 09, 2003 11:58 AM >> To: Access Developers discussion and problem solving >> Cc: accessdb2web at egroups.com >> Subject: Re: [AccessD] InterSystems Cach? database engine >> Hi group >> Well, today I went to this hands-on seminar, and I'm impressed. >> The core of the engine is an object oriented data store. You create as >> easy as in Access - in a very nice designer using a basic like language >> - classes for storing data. When compiled, these classes are at once >> compiled too - and represented - as tables via ODBC and JDBC, classes >> via C++, Java, ActiveX (COM), .net and XML, and you can access the data >> simultaneous via all interfaces. These layers are all highly efficient >> they claim is the main reason for the high speed of the engine next to >> the speed of the engine itself. >> Further, you can create CSP pages similar to ASP and JSP pages with a >> direct connection to the engine. An add-in for Dreamweaver is offered >> with wizards for creating web pages. These pages are interesting as they >> offer live update of presented data via either a server call or a hidden >> frame meaning that requery or repaint of the displayed page is avoided - >> this is in my opinion mandatory for anything serious application-like >> running in a browser. >> The best perspective of this, in my eyes, is that you can start using >> the engine and your proven tools whatever they might be (Access) while >> moving to or adding other interfaces like another language, a browser >> interface, XML or web services (SOAP). Rome was not built in one day, >> remember. >> The engine scales to shadowed servers, clusters and TB size with no more >> efforts than within reach of a developer (we are impatient and really >> have no time for this, you know), and it runs on close to anything >> including WinNT/200x/XP, Redhat/Suse Linux, Solaris, OpenVMS, Tru64, >> HP-UX, AIX, and Win ME/98 - even Win95 - and MacOX with the next release >> - requiring modest hardware only. >> /gustav >>>> Just noticed this option for a free developer license: >>>> http://www.intersystems.com/downloads/index.html >>>> Anyone having experience with this engine as a backend for Access or >>>> otherwise? >>>> The free license doesn't allow you to sell your apps. It is, however, >>>> not time limited. -- 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 1 10:57:15 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 01 Feb 2006 08:57:15 -0800 Subject: [AccessD] OT: Linux, Open Suite and Access In-Reply-To: <43E0C354.4030001@san.rr.com> Message-ID: <000f01c62750$8e055960$017ba8c0@xpserver> Hi Rocky: No, but my son-in-law does and I will pass it on to him. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: February 1, 2006 6:19 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Linux, Open Suite and Access A potential distributor in France writes to me and asks: "I shall like asking you a question: Is it possible 'to migrate' E-Z MRP under Linux? There is an equivalent of Office Pro which is ' OpenSuite ' And in this Suite, there is a given compatible Access database. I think that it would be a good idea to supply one package (Free open distribution of Linux and OpenSuite +EZ-MRP) with a very competitive price." Does anyone know anything about porting an Access app to OpenSuite? MTIA, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Robin at rolledgold.net Wed Feb 1 10:55:56 2006 From: Robin at rolledgold.net (Robin ) Date: Wed, 1 Feb 2006 16:55:56 -0000 Subject: [AccessD] Manipulating Excel Cells Message-ID: <560E2B80EC8F624B93A87B943B7A9CD542F945@rgiserv.rg.local> John, Is this any help http://www.devx.com/tips/Tip/14153 Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: 01 February 2006 15:51 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Manipulating Excel Cells I'm baaaack. ;-) Here's the deal. I am working with a spreadsheet that has columns of systems and rows of documents. Therefore each cell represents a system-document. BTW, this was a "source" for me to build a pair of tables - tblSystem and tblDocument. I then added a field to tblDocument called SpreadsheetRow and a field to tblSystem called SpreadsheetColumn. We are tracking the receipt of these documents. The client now wants to see, back in his original spreadsheet, the "status" of a given system document using colors to express the status - white = not assigned, red = not received, yellow = partial receipt, green = received. So... I have to go "poke colors" out into the spreadsheet. I have discovered the "area" property which has a color attribute. What I need now is a translation from the column LETTERS to a column number since for some bizarre reason the columns have letter names but cells are referenced by column numbers. "Brain damaged children" as Bill Cosby would say. Does anyone have code for manipulating cells by cell(intRowNumbers, strColNames)? 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 Gustav at cactus.dk Wed Feb 1 11:01:46 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Feb 2006 18:01:46 +0100 Subject: [AccessD] Manipulating Excel Cells Message-ID: Hi John Example for background colour: Worksheets(1).Cells(11,21).Interior.ColorIndex = 15 Can be 0 for none or 1 to 56 for some basic colours. /gustav >>> Gustav at cactus.dk 01-02-2006 17:19:10 >>> Hi John No, that is not so ... why should it be that complicated? To reference the value of a cell of a worksheet: .Worksheet.Cells(intRow, intColumn).Value = lngValue and so on for all the other properties of a cell. /gustav >>> jwcolby at ColbyConsulting.com 01-02-2006 16:51:22 >>> Does anyone have code for manipulating cells by cell(intRowNumbers, strColNames)? From Jim.Hale at FleetPride.com Wed Feb 1 11:03:00 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 1 Feb 2006 11:03:00 -0600 Subject: [AccessD] Manipulating Excel Cells Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9D7@corp-es01.fleetpride.com> When you think about it a cell location in Excel can be definitively described by knowing the workbook, worksheet, column and row in which it resides. When I need to place values in spreadsheet templates (other than bulk copy recordset pastes). I use a table that stores the 4 elements. I then use the value of the row and column that I have stored with the cell method to place the data in Excel. This works for templates that do not change. If the templates change maintenance with this method becomes prohibitive. In those cases the more sophisticated method is to store data (such as an acct number and column offset) in columns A & B of the spreadsheet. I then read col A & B of the spreadsheet and create a temp table with the acct number from column A, the column number from column B and the row number (which I can determine). This table is then joined with the data by account number creating a recordset with the data to be pasted and the row and column number in which to paste it. I then iterate through the recordset something like this: 'Load Data into Excel If Not (rstData.BOF And rstData.EOF) Then Do While Not rstData.EOF intBmonth = rstData(strMo) + rstData(strColOffset) intRow = rstData(strRowNo) wksUpl.Cells(intRow, intBmonth) = rstData(strAmt) rstData.MoveNext Loop HTH Jim Hale *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From jwcolby at ColbyConsulting.com Wed Feb 1 11:02:30 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 1 Feb 2006 12:02:30 -0500 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9D6@corp-es01.fleetpride.com> Message-ID: <014701c62751$4a3f1440$657aa8c0@ColbyM6805> Gustav, Jim, Nope, what I was looking for was .Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex In this case at least, strRange can be in the form "B23", referencing column B, row 23. I have a query that pulls the system column (a letter), the Document Row (a number) and the document status color index (a number) With my existing Excel class to open the spreadsheet, make a copy, and hand me back a worksheet, the entire code snippet runs in ~50 seconds, coloring 11783 cells - 91 systems with 159 documents. The code looks like: Function TestExcelColors() On Error GoTo Err_TestExcelColors Dim db As DAO.Database Dim rst As DAO.Recordset Dim strRange As String Dim lclsTimer As clsTimer Set lclsTimer = New clsTimer lclsTimer.StartTimer ' 'Get the recordset used to populate the colors in the spreadsheet ' Set db = CurrentDb Set rst = db.OpenRecordset("qDoc2ContractorBase") ExcelInit With cExc ' 'Get the spreadsheet and copy it to a new location ' .mXLWBOpen "X:\BuildingCommissioning\RFD\UpdateTopMatrixReported.xls", "X:\BuildingCommissioning\RFD\UpdateTopMatrix.xls", True rst.MoveFirst While Not rst.EOF ' 'Turn the column/row info into a string ' strRange = rst!SYS_SpreadsheetColumn & rst!DOC_SpreadsheetRow ' 'set the colorindex for that cell ' .cWS.Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex rst.MoveNext Wend End With Debug.Print "Time to Color Spreadsheet: " & lclsTimer.EndTimer Exit_TestExcelColors: Exit Function Err_TestExcelColors: MsgBox Err.Description, , "Error in Function basExcelInit.TestExcelColors" Resume Exit_TestExcelColors Resume 0 '.FOR TROUBLESHOOTING 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 Hale, Jim Sent: Wednesday, February 01, 2006 11:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells Is this what you are looking for? 'flip sign on vendor rebates '--------------------------- .Sheets("misc").Select For i = 6 To 11 .Cells(25, i) = -(.Cells(25, i)) Next i Or something like this? Jim Hale Function loadData_Excel(Dept As Integer, Co As Integer, ModelName As String, XcelWS As String, PlGroup As String, qryStr As String) Dim qdfTemp As QueryDef, dbs As Database, rs As Recordset Dim intRow As Integer, intBmonth As Integer, strWorksheet As String 'load data from recordset into spreadsheet Set dbs = CurrentDb Set qdfTemp = dbs.QueryDefs(qryStr) qdfTemp.Parameters("Deptnum") = Dept qdfTemp.Parameters("Co") = Co qdfTemp.Parameters("Model") = ModelName qdfTemp.Parameters("Worksheet") = XcelWS qdfTemp.Parameters("PlGroup") = PlGroup Set rs = qdfTemp.OpenRecordset() If Not (rs.BOF And rs.EOF) Then strWorksheet = rs("fldWorksheet") appexcel.Sheets(strWorksheet).Select Do While Not rs.EOF intBmonth = rs("Bmonth") + rs("fldColumnoffset") intRow = rs("fldRowno") appexcel.Cells(intRow, intBmonth) = rs("amt") rs.MoveNext Loop End If The_End: If Not (qdfTemp Is Nothing) Then qdfTemp.Close: Set qdfTemp = Nothing If Not (rs Is Nothing) Then rs.Close: Set rs = Nothing If Not (dbs Is Nothing) Then dbs.Close: Set dbs = Nothing End Function -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 01, 2006 9:51 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Manipulating Excel Cells I'm baaaack. ;-) Here's the deal. I am working with a spreadsheet that has columns of systems and rows of documents. Therefore each cell represents a system-document. BTW, this was a "source" for me to build a pair of tables - tblSystem and tblDocument. I then added a field to tblDocument called SpreadsheetRow and a field to tblSystem called SpreadsheetColumn. We are tracking the receipt of these documents. The client now wants to see, back in his original spreadsheet, the "status" of a given system document using colors to express the status - white = not assigned, red = not received, yellow = partial receipt, green = received. So... I have to go "poke colors" out into the spreadsheet. I have discovered the "area" property which has a color attribute. What I need now is a translation from the column LETTERS to a column number since for some bizarre reason the columns have letter names but cells are referenced by column numbers. "Brain damaged children" as Bill Cosby would say. Does anyone have code for manipulating cells by cell(intRowNumbers, strColNames)? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at outbaktech.com Wed Feb 1 11:06:43 2006 From: Jeff at outbaktech.com (Jeff Barrows) Date: Wed, 1 Feb 2006 11:06:43 -0600 Subject: [AccessD] Manipulating Excel Cells Message-ID: John, I have done something similar to this not too long ago. I will look for the specific code samples and send them to you as soon as possible (might not be able to send them till tomorrow). Jeff Barrows MCP, MCAD, MCSD Outbak Technologies, LLC Racine, WI jeff at outbaktech.com ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Rocky Smolin - Beach Access Software Sent: Wed 2/1/2006 10:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Manipulating Excel Cells Can you use the old trick of recording a macro and looking at the code? Rocky John Colby wrote: > I'm baaaack. ;-) > > Here's the deal. I am working with a spreadsheet that has columns of > systems and rows of documents. Therefore each cell represents a > system-document. BTW, this was a "source" for me to build a pair of tables > - tblSystem and tblDocument. I then added a field to tblDocument called > SpreadsheetRow and a field to tblSystem called SpreadsheetColumn. > > > We are tracking the receipt of these documents. The client now wants to > see, back in his original spreadsheet, the "status" of a given system > document using colors to express the status - white = not assigned, red = > not received, yellow = partial receipt, green = received. > > So... I have to go "poke colors" out into the spreadsheet. I have > discovered the "area" property which has a color attribute. What I need now > is a translation from the column LETTERS to a column number since for some > bizarre reason the columns have letter names but cells are referenced by > column numbers. "Brain damaged children" as Bill Cosby would say. > > Does anyone have code for manipulating cells by cell(intRowNumbers, > strColNames)? > > John W. Colby > www.ColbyConsulting.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Wed Feb 1 11:07:34 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 01 Feb 2006 11:07:34 -0600 Subject: [AccessD] IBM DB2 Express-C free to use In-Reply-To: References: Message-ID: <6.2.3.4.2.20060201110642.032c6388@pop3.highstream.net> 1.0 thru 8 :-) IBM makes a very good database. It has just been out of the reach of small developers. At 10:20 AM 2/1/2006, you wrote: >Date: Tue, 31 Jan 2006 19:55:50 +0100 >From: "Gustav Brock" >Subject: Re: [AccessD] IBM DB2 Express-C free to use >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Robert > >Any comments on it? Or was that prior to version 8.2? > >/gustav From rl_stewart at highstream.net Wed Feb 1 11:08:09 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 01 Feb 2006 11:08:09 -0600 Subject: [AccessD] IBM DB2 Express-C free to use In-Reply-To: References: Message-ID: <6.2.3.4.2.20060201110747.03339f50@pop3.highstream.net> I am in the process of downloading it now. At 10:20 AM 2/1/2006, you wrote: >Date: Tue, 31 Jan 2006 19:58:10 +0100 >From: "Gustav Brock" >Subject: Re: [AccessD] IBM DB2 Express-C free to use >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Robert > >I succeeded in the fourth attempt. >Be patient - it looks like the news are traveling across the world ... > >/gustav From bchacc at san.rr.com Wed Feb 1 11:17:34 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 01 Feb 2006 09:17:34 -0800 Subject: [AccessD] OT: Linux, Open Suite and Access In-Reply-To: <000f01c62750$8e055960$017ba8c0@xpserver> References: <000f01c62750$8e055960$017ba8c0@xpserver> Message-ID: <43E0ED2E.7040104@san.rr.com> Thanks, Jim. Rocky Jim Lawrence wrote: > Hi Rocky: > > No, but my son-in-law does and I will pass it on to him. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: February 1, 2006 6:19 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT: Linux, Open Suite and Access > > A potential distributor in France writes to me and asks: > > "I shall like asking you a question: Is it possible 'to migrate' E-Z MRP > under Linux? There is an equivalent of Office Pro which is ' OpenSuite ' > And in this Suite, there is a given compatible Access database. I think > that it would be a good idea to supply one package (Free open > distribution of Linux and OpenSuite +EZ-MRP) with a very competitive price." > > Does anyone know anything about porting an Access app to OpenSuite? > > MTIA, > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From rl_stewart at highstream.net Wed Feb 1 11:14:46 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 01 Feb 2006 11:14:46 -0600 Subject: [AccessD] InterSystems Cach? database engine In-Reply-To: References: Message-ID: <6.2.3.4.2.20060201111335.03320500@pop3.highstream.net> I filled everything out about a year ago. And you intuition is correct...very expensive. At least in my opinion. At 10:20 AM 2/1/2006, you wrote: > >> Anyone know the pricing? The site requires you to fill out a survey to > >> get pricing ... If the price isn't on the site, for anything, it's > >> ususally way too expensive. From Gustav at cactus.dk Wed Feb 1 11:26:06 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Feb 2006 18:26:06 +0100 Subject: [AccessD] Manipulating Excel Cells Message-ID: Hi John That can be done. So your problem is solved? /gustav >>> jwcolby at ColbyConsulting.com 01-02-2006 18:02:30 >>> Gustav, Jim, Nope, what I was looking for was .Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex In this case at least, strRange can be in the form "B23", referencing column B, row 23. From Jim.Hale at FleetPride.com Wed Feb 1 11:33:28 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 1 Feb 2006 11:33:28 -0600 Subject: [AccessD] Manipulating Excel Cells Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9D9@corp-es01.fleetpride.com> John, You do not have to reference columns by letters in a range object. Stmts like .Range(.Cells(2, intCopycol), .Cells(47, intCopycol)) work and can be used in loops. Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 01, 2006 11:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells Gustav, Jim, Nope, what I was looking for was .Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex In this case at least, strRange can be in the form "B23", referencing column B, row 23. I have a query that pulls the system column (a letter), the Document Row (a number) and the document status color index (a number) With my existing Excel class to open the spreadsheet, make a copy, and hand me back a worksheet, the entire code snippet runs in ~50 seconds, coloring 11783 cells - 91 systems with 159 documents. The code looks like: Function TestExcelColors() On Error GoTo Err_TestExcelColors Dim db As DAO.Database Dim rst As DAO.Recordset Dim strRange As String Dim lclsTimer As clsTimer Set lclsTimer = New clsTimer lclsTimer.StartTimer ' 'Get the recordset used to populate the colors in the spreadsheet ' Set db = CurrentDb Set rst = db.OpenRecordset("qDoc2ContractorBase") ExcelInit With cExc ' 'Get the spreadsheet and copy it to a new location ' .mXLWBOpen "X:\BuildingCommissioning\RFD\UpdateTopMatrixReported.xls", "X:\BuildingCommissioning\RFD\UpdateTopMatrix.xls", True rst.MoveFirst While Not rst.EOF ' 'Turn the column/row info into a string ' strRange = rst!SYS_SpreadsheetColumn & rst!DOC_SpreadsheetRow ' 'set the colorindex for that cell ' .cWS.Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex rst.MoveNext Wend End With Debug.Print "Time to Color Spreadsheet: " & lclsTimer.EndTimer Exit_TestExcelColors: Exit Function Err_TestExcelColors: MsgBox Err.Description, , "Error in Function basExcelInit.TestExcelColors" Resume Exit_TestExcelColors Resume 0 '.FOR TROUBLESHOOTING End Function John W. Colby www.ColbyConsulting.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Gustav at cactus.dk Wed Feb 1 11:34:53 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Feb 2006 18:34:53 +0100 Subject: [AccessD] IBM DB2 Express-C free to use Message-ID: Hi Robert Oh, so you are a true DB2 veteran! I played around a little with version 7 but had no real purpose for it, and anything DB2 sounded quite expensive, so ... But with this edition the picture has changed. /gustav >>> rl_stewart at highstream.net 01-02-2006 18:07:34 >>> 1.0 thru 8 :-) IBM makes a very good database. It has just been out of the reach of small developers. At 10:20 AM 2/1/2006, you wrote: >Date: Tue, 31 Jan 2006 19:55:50 +0100 >From: "Gustav Brock" >Subject: Re: [AccessD] IBM DB2 Express-C free to use >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Robert > >Any comments on it? Or was that prior to version 8.2? > >/gustav From martyconnelly at shaw.ca Wed Feb 1 12:33:14 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 01 Feb 2006 10:33:14 -0800 Subject: [AccessD] IBM DB2 Express-C free to use References: Message-ID: <43E0FEEA.9070905@shaw.ca> DB2 has been around since 1982. Actually there were two of them SQL/DS ran on the VSE and VM operating systems. It came to market in the early 1980s. A little later, IBM also introduced DB2, another SQL-based DBMS, this one for the MVS operating system. The two products have coexisted since then; however, SQL/DS was rebranded as "DB2 for VM and VSE" in the late 1990s. I have been a plebe Cobol programmer using DB2 in the late 90's, never allowed near the actual live or test databases. The DBA's all seemed to have British knighthood's like the GCMG; some people say the various levels of the Cross of Michael and St. George actually stands for CMG -call me god, KCMG kindly call me god: GCMG god calls me god. Gustav Brock wrote: >Hi Robert > >Oh, so you are a true DB2 veteran! > >I played around a little with version 7 but had no real purpose for it, and anything DB2 sounded quite expensive, so ... >But with this edition the picture has changed. > >/gustav > > > >>>>rl_stewart at highstream.net 01-02-2006 18:07:34 >>> >>>> >>>> >1.0 thru 8 :-) > >IBM makes a very good database. It has just been out of the reach of >small developers. > >At 10:20 AM 2/1/2006, you wrote: > > >>Date: Tue, 31 Jan 2006 19:55:50 +0100 >>From: "Gustav Brock" >>Subject: Re: [AccessD] IBM DB2 Express-C free to use >>To: >>Message-ID: >>Content-Type: text/plain; charset=US-ASCII >> >>Hi Robert >> >>Any comments on it? Or was that prior to version 8.2? >> >>/gustav >> >> > > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at ColbyConsulting.com Wed Feb 1 12:35:49 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 1 Feb 2006 13:35:49 -0500 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: Message-ID: <017d01c6275e$535ef920$657aa8c0@ColbyM6805> >So your problem is solved? Uhhhh yep. 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: Wednesday, February 01, 2006 12:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Manipulating Excel Cells Hi John That can be done. So your problem is solved? /gustav >>> jwcolby at ColbyConsulting.com 01-02-2006 18:02:30 >>> Gustav, Jim, Nope, what I was looking for was .Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex In this case at least, strRange can be in the form "B23", referencing column B, row 23. -- 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 1 12:41:13 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 1 Feb 2006 13:41:13 -0500 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9D9@corp-es01.fleetpride.com> Message-ID: <017e01c6275f$149085f0$657aa8c0@ColbyM6805> Jim, When you look in a spreadsheet you do not "SEE" column numbers, you see letters. I have columns e through CM or something like that. For some odd reason Z is not used, az,bz etc. No se por que. So what I was looking for (and found) was a syntax for using column letters instead of the silly cell(31,29). What column is 29? What "number" is column BA? Why do we "see" a column letter but address the cell with 31,22? And of course I know the answer to the last, so that they can be manipulated with counters in code, but in this case I have a column LETTER, not a column NUMBER. worksheet.Range(strRange) is the answer. I can use a string "B3" using that syntax. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Wednesday, February 01, 2006 12:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells John, You do not have to reference columns by letters in a range object. Stmts like .Range(.Cells(2, intCopycol), .Cells(47, intCopycol)) work and can be used in loops. Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 01, 2006 11:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells Gustav, Jim, Nope, what I was looking for was .Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex In this case at least, strRange can be in the form "B23", referencing column B, row 23. I have a query that pulls the system column (a letter), the Document Row (a number) and the document status color index (a number) With my existing Excel class to open the spreadsheet, make a copy, and hand me back a worksheet, the entire code snippet runs in ~50 seconds, coloring 11783 cells - 91 systems with 159 documents. The code looks like: Function TestExcelColors() On Error GoTo Err_TestExcelColors Dim db As DAO.Database Dim rst As DAO.Recordset Dim strRange As String Dim lclsTimer As clsTimer Set lclsTimer = New clsTimer lclsTimer.StartTimer ' 'Get the recordset used to populate the colors in the spreadsheet ' Set db = CurrentDb Set rst = db.OpenRecordset("qDoc2ContractorBase") ExcelInit With cExc ' 'Get the spreadsheet and copy it to a new location ' .mXLWBOpen "X:\BuildingCommissioning\RFD\UpdateTopMatrixReported.xls", "X:\BuildingCommissioning\RFD\UpdateTopMatrix.xls", True rst.MoveFirst While Not rst.EOF ' 'Turn the column/row info into a string ' strRange = rst!SYS_SpreadsheetColumn & rst!DOC_SpreadsheetRow ' 'set the colorindex for that cell ' .cWS.Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex rst.MoveNext Wend End With Debug.Print "Time to Color Spreadsheet: " & lclsTimer.EndTimer Exit_TestExcelColors: Exit Function Err_TestExcelColors: MsgBox Err.Description, , "Error in Function basExcelInit.TestExcelColors" Resume Exit_TestExcelColors Resume 0 '.FOR TROUBLESHOOTING End Function John W. Colby www.ColbyConsulting.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- 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 1 13:03:20 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 01 Feb 2006 20:03:20 +0100 Subject: [AccessD] IBM DB2 Express-C free to use Message-ID: Thanks Marty! Seems like one better start out with a modest DCMG (Don't Call Me God). /gustav >>> martyconnelly at shaw.ca 01-02-2006 19:33:14 >>> DB2 has been around since 1982. Actually there were two of them SQL/DS ran on the VSE and VM operating systems. It came to market in the early 1980s. A little later, IBM also introduced DB2, another SQL-based DBMS, this one for the MVS operating system. The two products have coexisted since then; however, SQL/DS was rebranded as "DB2 for VM and VSE" in the late 1990s. I have been a plebe Cobol programmer using DB2 in the late 90's, never allowed near the actual live or test databases. The DBA's all seemed to have British knighthood's like the GCMG; some people say the various levels of the Cross of Michael and St. George actually stands for CMG -call me god, KCMG kindly call me god: GCMG god calls me god. Gustav Brock wrote: >Hi Robert > >Oh, so you are a true DB2 veteran! > >I played around a little with version 7 but had no real purpose for it, and anything DB2 sounded quite expensive, so ... >But with this edition the picture has changed. From cfoust at infostatsystems.com Wed Feb 1 13:14:30 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 1 Feb 2006 11:14:30 -0800 Subject: [AccessD] Manipulating Excel Cells Message-ID: LOL! You must never have worked with MultiPlan, John. It took me forever to get used to column letters in Excel ... Especially when the macro language still used the numeric row and column designators! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 01, 2006 10:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells Jim, When you look in a spreadsheet you do not "SEE" column numbers, you see letters. I have columns e through CM or something like that. For some odd reason Z is not used, az,bz etc. No se por que. So what I was looking for (and found) was a syntax for using column letters instead of the silly cell(31,29). What column is 29? What "number" is column BA? Why do we "see" a column letter but address the cell with 31,22? And of course I know the answer to the last, so that they can be manipulated with counters in code, but in this case I have a column LETTER, not a column NUMBER. worksheet.Range(strRange) is the answer. I can use a string "B3" using that syntax. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Wednesday, February 01, 2006 12:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells John, You do not have to reference columns by letters in a range object. Stmts like .Range(.Cells(2, intCopycol), .Cells(47, intCopycol)) work and can be used in loops. Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 01, 2006 11:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells Gustav, Jim, Nope, what I was looking for was .Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex In this case at least, strRange can be in the form "B23", referencing column B, row 23. I have a query that pulls the system column (a letter), the Document Row (a number) and the document status color index (a number) With my existing Excel class to open the spreadsheet, make a copy, and hand me back a worksheet, the entire code snippet runs in ~50 seconds, coloring 11783 cells - 91 systems with 159 documents. The code looks like: Function TestExcelColors() On Error GoTo Err_TestExcelColors Dim db As DAO.Database Dim rst As DAO.Recordset Dim strRange As String Dim lclsTimer As clsTimer Set lclsTimer = New clsTimer lclsTimer.StartTimer ' 'Get the recordset used to populate the colors in the spreadsheet ' Set db = CurrentDb Set rst = db.OpenRecordset("qDoc2ContractorBase") ExcelInit With cExc ' 'Get the spreadsheet and copy it to a new location ' .mXLWBOpen "X:\BuildingCommissioning\RFD\UpdateTopMatrixReported.xls", "X:\BuildingCommissioning\RFD\UpdateTopMatrix.xls", True rst.MoveFirst While Not rst.EOF ' 'Turn the column/row info into a string ' strRange = rst!SYS_SpreadsheetColumn & rst!DOC_SpreadsheetRow ' 'set the colorindex for that cell ' .cWS.Range(strRange).Interior.ColorIndex = rst!DS_ExcelColorIndex rst.MoveNext Wend End With Debug.Print "Time to Color Spreadsheet: " & lclsTimer.EndTimer Exit_TestExcelColors: Exit Function Err_TestExcelColors: MsgBox Err.Description, , "Error in Function basExcelInit.TestExcelColors" Resume Exit_TestExcelColors Resume 0 '.FOR TROUBLESHOOTING End Function John W. Colby www.ColbyConsulting.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Wed Feb 1 14:19:51 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 1 Feb 2006 14:19:51 -0600 Subject: [AccessD] Manipulating Excel Cells Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9E0@corp-es01.fleetpride.com> Glad you got it working. BTW if you want to "see" numbers go and check R1C1 reference style. The spreadsheet column headings will become numbers. Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, February 01, 2006 12:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Manipulating Excel Cells Jim, When you look in a spreadsheet you do not "SEE" column numbers, you see letters. I have columns e through CM or something like that. For some odd reason Z is not used, az,bz etc. No se por que. So what I was looking for (and found) was a syntax for using column letters instead of the silly cell(31,29). What column is 29? What "number" is column BA? Why do we "see" a column letter but address the cell with 31,22? And of course I know the answer to the last, so that they can be manipulated with counters in code, but in this case I have a column LETTER, not a column NUMBER. worksheet.Range(strRange) is the answer. I can use a string "B3" using that syntax. John W. Colby www.ColbyConsulting.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From rl_stewart at highstream.net Wed Feb 1 16:04:42 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 01 Feb 2006 16:04:42 -0600 Subject: [AccessD] IBM DB2 Express-C free to use In-Reply-To: References: Message-ID: <6.2.3.4.2.20060201160339.03302730@pop3.highstream.net> I agree. That is why I downloaded it. I would not mind doing a small db with it to compare with SQL Express and see who wins the speed tests. :-) Robert At 12:00 PM 2/1/2006, you wrote: >Date: Wed, 01 Feb 2006 18:34:53 +0100 >From: "Gustav Brock" >Subject: Re: [AccessD] IBM DB2 Express-C free to use >To: >Message-ID: >Content-Type: text/plain; charset=US-ASCII > >Hi Robert > >Oh, so you are a true DB2 veteran! > >I played around a little with version 7 but had no real purpose for >it, and anything DB2 sounded quite expensive, so ... >But with this edition the picture has changed. > >/gustav From stuart at lexacorp.com.pg Wed Feb 1 16:49:07 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 02 Feb 2006 08:49:07 +1000 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: <017e01c6275f$149085f0$657aa8c0@ColbyM6805> References: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9D9@corp-es01.fleetpride.com> Message-ID: <43E1C783.11551.12141D6C@stuart.lexacorp.com.pg> On 1 Feb 2006 at 13:41, John Colby wrote: > > So what I was looking for (and found) was a syntax for using column letters > instead of the silly cell(31,29). What column is 29? What "number" is > column BA? In case you need it in future: Function ColNumToName(ColNum As Long) As String If ColNum < 27 Then ColNumToName = Chr$(ColNum + 64) Else ColNumToName = _ Chr$(Int((ColNum - 1) \ 26) + 64) _ + Chr$((ColNum - 1) Mod 26 + 65) End If End Function Function ColNameToNum(ColName As String) As Long If Len(ColName) = 1 Then ColNameToNum = Asc(UCase$(ColName)) - 64 Else ColNameToNum = 26 * (Asc(UCase$(Left$(ColName, 1))) _ - 64) + Asc(UCase$(Right$(ColName, 1))) - 64 End If End Function -- Stuart From jwcolby at ColbyConsulting.com Wed Feb 1 16:59:47 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 1 Feb 2006 17:59:47 -0500 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: <43E1C783.11551.12141D6C@stuart.lexacorp.com.pg> Message-ID: <019701c62783$33a5c9e0$657aa8c0@ColbyM6805> Yeeehaaaw! I found what appears to be an equivalent function out on the web but it was a full page of code. 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: Wednesday, February 01, 2006 5:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Manipulating Excel Cells On 1 Feb 2006 at 13:41, John Colby wrote: > > So what I was looking for (and found) was a syntax for using column > letters instead of the silly cell(31,29). What column is 29? What > "number" is column BA? In case you need it in future: Function ColNumToName(ColNum As Long) As String If ColNum < 27 Then ColNumToName = Chr$(ColNum + 64) Else ColNumToName = _ Chr$(Int((ColNum - 1) \ 26) + 64) _ + Chr$((ColNum - 1) Mod 26 + 65) End If End Function Function ColNameToNum(ColName As String) As Long If Len(ColName) = 1 Then ColNameToNum = Asc(UCase$(ColName)) - 64 Else ColNameToNum = 26 * (Asc(UCase$(Left$(ColName, 1))) _ - 64) + Asc(UCase$(Right$(ColName, 1))) - 64 End If End Function -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Wed Feb 1 18:11:13 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 1 Feb 2006 16:11:13 -0800 Subject: [AccessD] Automation error with Outlook 2003 In-Reply-To: <019701c62783$33a5c9e0$657aa8c0@ColbyM6805> Message-ID: <000001c6278d$2d8ec0c0$0200a8c0@murphyf3vdfepi> Folks, I have an app developed in Access 2002 that sends html formated e-mail using outlook automation. The app works fine on my computer; WindowsXP, and AccessXP Developer. The app runs fine on another computer we have with the same operating system and OfficeXP. Tested it on a computer with WindowsXP and Office 2003 and now I am getting an "error -2147024770(Automation Error. The specified module could not be found.)". My code uses late binding since I can not be sure what version of Outlook folks will have on their computers. The Code is as follows. ------------------------------------------------------ Dim oOut As Object Dim mItem As Object On Error GoTo WriteMessage_Error 'create new e-mailitem and display without sending Set oOut = CreateObject("Outlook.Application") Set mItem = oOut.CreateItem(0) --------------------------------------------- The error occurs on the line with CreateObject. I have done some searching on the web for this but can not find any specific causes. Any help greatfully appreciated. Doug From KIsmert at texassystems.com Wed Feb 1 19:21:39 2006 From: KIsmert at texassystems.com (Ken Ismert) Date: Wed, 1 Feb 2006 19:21:39 -0600 Subject: [AccessD] OT: Linux, Open Suite and Access Message-ID: Rocky, >> Does anyone know anything about porting an Access app to OpenSuite? Actually, I've been looking at OpenOffice, and its data component, Base. The Base application window looks something like the Access window (table, query, form and report designers). But the forms and reports aren't native objects, in the Access sense. These are handled as XML forms, and are hosted by Writer, Open Office's Word equivalent. There is broad scripting support: OpenOffice Basic, JavaScript and Python are supported. OpenOffice Basic looks a lot like VBA: http://api.openoffice.org/DevelopersGuide/DevelopersGuide.html Base uses HSQLDB ( http://hsqldb.org/ ) as its native backend. Let's just say it is very different from Jet. It seems to enjoy a good reputation, though. My initial reaction to Base: it is still very new, and not likely to support a sophisticated application like EZ-MRP without a lot of bleeding-edge development. You can easily link to Jet backend tables, but you would have to rebuild the front-end from scratch (all queries, forms, reports, underlying code, etc...) Base looks promising, and I've been impressed with the Writer program, and how well it interoperates with Word document files. Base is worthy of looking at and experimenting with, but I feel it would be far from an easy task to migrate a full-blown Access app to Base at its current stage of development. -Ken PS: Check out Koffice, another open source alternative to OpenOffice: http://www.koffice.org/ It has its own data component, Kexi: http://www.koffice.org/kexi/ My guess is that Kexi is not nearly as far along as Base is, but I will be checking it out, too, in the near future. From jwcolby at ColbyConsulting.com Wed Feb 1 20:23:58 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 1 Feb 2006 21:23:58 -0500 Subject: [AccessD] Automation error with Outlook 2003 In-Reply-To: <000001c6278d$2d8ec0c0$0200a8c0@murphyf3vdfepi> Message-ID: <019801c6279f$b9862f20$657aa8c0@ColbyM6805> It sounds like outlook is not installed on that computer, or is corrupted. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Wednesday, February 01, 2006 7:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automation error with Outlook 2003 Folks, I have an app developed in Access 2002 that sends html formated e-mail using outlook automation. The app works fine on my computer; WindowsXP, and AccessXP Developer. The app runs fine on another computer we have with the same operating system and OfficeXP. Tested it on a computer with WindowsXP and Office 2003 and now I am getting an "error -2147024770(Automation Error. The specified module could not be found.)". My code uses late binding since I can not be sure what version of Outlook folks will have on their computers. The Code is as follows. ------------------------------------------------------ Dim oOut As Object Dim mItem As Object On Error GoTo WriteMessage_Error 'create new e-mailitem and display without sending Set oOut = CreateObject("Outlook.Application") Set mItem = oOut.CreateItem(0) --------------------------------------------- The error occurs on the line with CreateObject. I have done some searching on the web for this but can not find any specific causes. Any help greatfully appreciated. Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Wed Feb 1 20:38:43 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 1 Feb 2006 21:38:43 -0500 Subject: [AccessD] OT: Linux, Open Suite and Access In-Reply-To: <43E0ED2E.7040104@san.rr.com> References: <000f01c62750$8e055960$017ba8c0@xpserver> <43E0ED2E.7040104@san.rr.com> Message-ID: On 01/02/06, Rocky Smolin - Beach Access Software wrote: > Thanks, Jim. If you want to read a bit about it, and how to create a simple 1 table app with the built in wizards in Base, there is an article in this month's Tux Magazine (free on-line Linux Magazine) available from: http://download3.ssc.com/tux/TUX_Issue10_Feb2006.pdf -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From carbonnb at gmail.com Wed Feb 1 20:41:24 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 1 Feb 2006 21:41:24 -0500 Subject: [AccessD] OT: Linux, Open Suite and Access In-Reply-To: References: Message-ID: On 01/02/06, Ken Ismert wrote: > PS: Check out Koffice, another open source alternative to OpenOffice: > > http://www.koffice.org/ > > It has its own data component, Kexi: > > http://www.koffice.org/kexi/ > > My guess is that Kexi is not nearly as far along as Base is, but I will > be checking it out, too, in the near future. the problem with KOffice is that it is only native to Linux, and the KDE Destop specifically. Yes you can run it on Windows with KDE Cygwin, but it's not a native windows app. Whereas OOo is. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From dw-murphy at cox.net Wed Feb 1 21:36:32 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 1 Feb 2006 19:36:32 -0800 Subject: [AccessD] Automation error with Outlook 2003 In-Reply-To: <019801c6279f$b9862f20$657aa8c0@ColbyM6805> Message-ID: <000701c627a9$dc40fa40$0200a8c0@murphyf3vdfepi> Hi John, That was the general thrust of most of the stuff I found on the web. I finally found a thread on one of the information lists that had the same error, code, etc and the guy said that he had a resoponse from MS $ per call help to modify the code as follows. Set oOut = CreateObject("Outlook.Application", "localhost") I tried this and it worked to the point where I found the real problem with Outlook. The problem was that Outlook was set to use Word as it e-mail editor and we have a Dimo printer installed on the lap top that puts hooks into all the Office programs. The Dimo macros were trying to fire when Outlook created the e-mail in Word. What a convoluted web MS allows us to create. Thank goodnes for the web and search engines. MS had nothing on any of this. I change the e-mail editor for Outlook to HTML and used the above code and all is well. Maybe this will save some one else the couple of hours I screwed with this. Thanks for your input. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 01, 2006 6:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation error with Outlook 2003 It sounds like outlook is not installed on that computer, or is corrupted. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Wednesday, February 01, 2006 7:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automation error with Outlook 2003 Folks, I have an app developed in Access 2002 that sends html formated e-mail using outlook automation. The app works fine on my computer; WindowsXP, and AccessXP Developer. The app runs fine on another computer we have with the same operating system and OfficeXP. Tested it on a computer with WindowsXP and Office 2003 and now I am getting an "error -2147024770(Automation Error. The specified module could not be found.)". My code uses late binding since I can not be sure what version of Outlook folks will have on their computers. The Code is as follows. ------------------------------------------------------ Dim oOut As Object Dim mItem As Object On Error GoTo WriteMessage_Error 'create new e-mailitem and display without sending Set oOut = CreateObject("Outlook.Application") Set mItem = oOut.CreateItem(0) --------------------------------------------- The error occurs on the line with CreateObject. I have done some searching on the web for this but can not find any specific causes. Any help greatfully appreciated. 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 bchacc at san.rr.com Wed Feb 1 21:47:33 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 01 Feb 2006 19:47:33 -0800 Subject: [AccessD] OT: Linux, Open Suite and Access In-Reply-To: References: Message-ID: <43E180D5.5010603@san.rr.com> Ken: "you would have to rebuild the front-end from scratch (all queries,forms, reports, underlying code, etc...) " That's what I was afraid of/needed to know. Thanks. Rocky Ken Ismert wrote: > Rocky, > > >>> Does anyone know anything about porting an Access app to OpenSuite? >>> > > Actually, I've been looking at OpenOffice, and its data component, Base. > > > The Base application window looks something like the Access window > (table, query, form and report designers). But the forms and reports > aren't native objects, in the Access sense. These are handled as XML > forms, and are hosted by Writer, Open Office's Word equivalent. > > There is broad scripting support: OpenOffice Basic, JavaScript and > Python are supported. OpenOffice Basic looks a lot like VBA: > > http://api.openoffice.org/DevelopersGuide/DevelopersGuide.html > > Base uses HSQLDB ( http://hsqldb.org/ ) as its native backend. Let's > just say it is very different from Jet. It seems to enjoy a good > reputation, though. > > My initial reaction to Base: it is still very new, and not likely to > support a sophisticated application like EZ-MRP without a lot of > bleeding-edge development. You can easily link to Jet backend tables, > but you would have to rebuild the front-end from scratch (all queries, > forms, reports, underlying code, etc...) > > Base looks promising, and I've been impressed with the Writer program, > and how well it interoperates with Word document files. Base is worthy > of looking at and experimenting with, but I feel it would be far from an > easy task to migrate a full-blown Access app to Base at its current > stage of development. > > -Ken > > PS: Check out Koffice, another open source alternative to OpenOffice: > > http://www.koffice.org/ > > It has its own data component, Kexi: > > http://www.koffice.org/kexi/ > > My guess is that Kexi is not nearly as far along as Base is, but I will > be checking it out, too, in the near future. > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jwcolby at ColbyConsulting.com Wed Feb 1 22:19:35 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 1 Feb 2006 23:19:35 -0500 Subject: [AccessD] Automation error with Outlook 2003 In-Reply-To: <000701c627a9$dc40fa40$0200a8c0@murphyf3vdfepi> Message-ID: <019f01c627af$e023cb00$657aa8c0@ColbyM6805> LOL. And why is a printer hooking office apps? Good catch! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Wednesday, February 01, 2006 10:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation error with Outlook 2003 Hi John, That was the general thrust of most of the stuff I found on the web. I finally found a thread on one of the information lists that had the same error, code, etc and the guy said that he had a resoponse from MS $ per call help to modify the code as follows. Set oOut = CreateObject("Outlook.Application", "localhost") I tried this and it worked to the point where I found the real problem with Outlook. The problem was that Outlook was set to use Word as it e-mail editor and we have a Dimo printer installed on the lap top that puts hooks into all the Office programs. The Dimo macros were trying to fire when Outlook created the e-mail in Word. What a convoluted web MS allows us to create. Thank goodnes for the web and search engines. MS had nothing on any of this. I change the e-mail editor for Outlook to HTML and used the above code and all is well. Maybe this will save some one else the couple of hours I screwed with this. Thanks for your input. Doug From john at winhaven.net Wed Feb 1 23:45:20 2006 From: john at winhaven.net (John Bartow) Date: Wed, 1 Feb 2006 23:45:20 -0600 Subject: [AccessD] Automation error with Outlook 2003 In-Reply-To: <019f01c627af$e023cb00$657aa8c0@ColbyM6805> Message-ID: <00fc01c627bb$dadecd00$7801a8c0@ScuzzPaq> Definitely a good catch! FYI: Dymo installs hooks into Outlook, Word and some other apps. This is a choice when installing and I think it defaults to yes for those two and no to the rest. Anyway it's a pretty neat little app if you do a lot of single labels for mailing or whatever. For instance in Outlook you click a contact and then the Dymo icon and you've got label printing. I also downloaded the QuickBooks add-in which works for QB vendor & customers the same as the Outlook add-in. In Word it will search for the addresses in a document and print them after confirmation. Or I think you can just select the address to save time. I will tell though. I do not use the Word add-in. It has caused me grief in the past. And if you don't print a lot of labels its better to not install any of them because it isn't that much extra work to open the Dymo software and copy and paste to it. I use my own Dymo modules for Access. They work superbly of course ;o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby LOL. And why is a printer hooking office apps? Good catch! John W. Colby www.ColbyConsulting.com From max at sherman.org.uk Thu Feb 2 02:10:36 2006 From: max at sherman.org.uk (Max Sherman) Date: Thu, 2 Feb 2006 08:10:36 -0000 Subject: [AccessD] OT:RAID and Access Projects In-Reply-To: <00fc01c627bb$dadecd00$7801a8c0@ScuzzPaq> Message-ID: <001101c627d0$291412a0$72f26051@server> Dear All, OT:RAID and Access Projects I have tons of projects, past and present, on my pc set up with 2xHD configured as Raid 1. This is causing me problems and I wish to remove it and revert back to 2 x HD. If I do this, will I loose all my data, programs and installations or will it just stop being a Raid and leave my systems and installations intact? I do not want to buy another HD just to have a temporary store and I definitely do not want to loose all my MS Access projects and associated setups. I would appreciate any advice on this please. Regards Max From Gustav at cactus.dk Thu Feb 2 03:08:56 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Feb 2006 10:08:56 +0100 Subject: [AccessD] Manipulating Excel Cells Message-ID: Hi John and Stuart But where would you need that? And if, one line of code will do: lngCol = 53 strCol = Left(wks.Columns(lngCol).Address(False, False), 1 + Sgn(lngCol \ 27)) strCol = "BA" lngCol = wks.Columns(strCol).Column /gustav >>> stuart at lexacorp.com.pg 01-02-2006 23:49:07 >>> On 1 Feb 2006 at 13:41, John Colby wrote: > > So what I was looking for (and found) was a syntax for using column letters > instead of the silly cell(31,29). What column is 29? What "number" is > column BA? In case you need it in future: Function ColNumToName(ColNum As Long) As String If ColNum < 27 Then ColNumToName = Chr$(ColNum + 64) Else ColNumToName = _ Chr$(Int((ColNum - 1) \ 26) + 64) _ + Chr$((ColNum - 1) Mod 26 + 65) End If End Function Function ColNameToNum(ColName As String) As Long If Len(ColName) = 1 Then ColNameToNum = Asc(UCase$(ColName)) - 64 Else ColNameToNum = 26 * (Asc(UCase$(Left$(ColName, 1))) _ - 64) + Asc(UCase$(Right$(ColName, 1))) - 64 End If End Function -- Stuart From stuart at lexacorp.com.pg Thu Feb 2 03:22:54 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 02 Feb 2006 19:22:54 +1000 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: Message-ID: <43E25C0E.31645.14585DAC@stuart.lexacorp.com.pg> On 2 Feb 2006 at 10:08, Gustav Brock wrote: > Hi John and Stuart > > But where would you need that? And if, one line of code will do: > > lngCol = 53 > strCol = Left(wks.Columns(lngCol).Address(False, False), 1 + Sgn(lngCol \ > 27)) > > strCol = "BA" > lngCol = wks.Columns(strCol).Column > Not really one line. You need to create "wks" -- Stuart From Erwin.Craps at ithelps.be Thu Feb 2 03:37:50 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 2 Feb 2006 10:37:50 +0100 Subject: [AccessD] OT:RAID and Access Projects Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B6322@stekelbes.ithelps.local> If software raid (windows) you will keep the data when splitting. If hardware raid, don't know for sure, I supose it depends on the card you are using. Check the card supplier support website. There is also a Technical mailing list on the database advisors. Better to scunscrbe to that list and do your post overhere... It is really of-of topic... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Sherman Sent: Thursday, February 02, 2006 9:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:RAID and Access Projects Dear All, OT:RAID and Access Projects I have tons of projects, past and present, on my pc set up with 2xHD configured as Raid 1. This is causing me problems and I wish to remove it and revert back to 2 x HD. If I do this, will I loose all my data, programs and installations or will it just stop being a Raid and leave my systems and installations intact? I do not want to buy another HD just to have a temporary store and I definitely do not want to loose all my MS Access projects and associated setups. I would appreciate any advice on this please. Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Robin at rolledgold.net Thu Feb 2 03:39:49 2006 From: Robin at rolledgold.net (Robin ) Date: Thu, 2 Feb 2006 09:39:49 -0000 Subject: [AccessD] OT:RAID and Access Projects Message-ID: <560E2B80EC8F624B93A87B943B7A9CD542F95B@rgiserv.rg.local> Max, Raid 1 - whether software or hardware should be able to unmirror the two discs then reconfigure the second as required, of course you'll lose the redundancy. Make sure you have a good backup !! - also I suggest you unmirror and boot from the first disk and check all is well before reconfiguring the second... Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Sherman Sent: 02 February 2006 08:11 To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:RAID and Access Projects Dear All, OT:RAID and Access Projects I have tons of projects, past and present, on my pc set up with 2xHD configured as Raid 1. This is causing me problems and I wish to remove it and revert back to 2 x HD. If I do this, will I loose all my data, programs and installations or will it just stop being a Raid and leave my systems and installations intact? I do not want to buy another HD just to have a temporary store and I definitely do not want to loose all my MS Access projects and associated setups. I would appreciate any advice on this please. Regards Max -- 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 2 03:46:50 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Feb 2006 10:46:50 +0100 Subject: [AccessD] OT:RAID and Access Projects Message-ID: Hi Max Sounds like you don't even have a backup! Buy an external USB harddrive and backup or copy all your stuff to this. As RAID1 is mirroring, the idea is that one drive could be lost without losing any data. Thus, you should be able to reconfigure your drive setup to not use RAID and only use one drive. When done and all is fine, reconfigure the other drive as to your liking. /gustav >>> max at sherman.org.uk 02-02-2006 09:10:36 >>> Dear All, OT:RAID and Access Projects I have tons of projects, past and present, on my pc set up with 2xHD configured as Raid 1. This is causing me problems and I wish to remove it and revert back to 2 x HD. If I do this, will I loose all my data, programs and installations or will it just stop being a Raid and leave my systems and installations intact? I do not want to buy another HD just to have a temporary store and I definitely do not want to loose all my MS Access projects and associated setups. I would appreciate any advice on this please. Regards Max From Gustav at cactus.dk Thu Feb 2 04:12:22 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Feb 2006 11:12:22 +0100 Subject: [AccessD] Manipulating Excel Cells Message-ID: Hi Stuart Well well, I hope everyone can see I used _two_ lines, still the essential code is one line. Also, I imagined that if you need this kind of code, you will be working in a worksheet, thus wks (or whatever you have chosen to call your worksheet object) will have been created previously. However, should that not be the case, and you cannot or will not manage the line of code for creating the worksheet object, you can follow this route: Worksheets(n).Columns( .. .. or even ActiveWorkbook.Worksheets(n).Columns( You will need to replace n with the index/name of the worksheet (1, 2, 3 etc. or "Sheet1" etc.) or - gosh - insert another line of code: n = 1 or n = "Sheet1" /gustav >>> stuart at lexacorp.com.pg 02-02-2006 10:22:54 >>> On 2 Feb 2006 at 10:08, Gustav Brock wrote: > Hi John and Stuart > > But where would you need that? And if, one line of code will do: > > lngCol = 53 > strCol = Left(wks.Columns(lngCol).Address(False, False), 1 + Sgn(lngCol \ > 27)) > > strCol = "BA" > lngCol = wks.Columns(strCol).Column > Not really one line. You need to create "wks" -- Stuart From accessd at shaw.ca Thu Feb 2 07:23:31 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 02 Feb 2006 05:23:31 -0800 Subject: [AccessD] OT:RAID and Access Projects In-Reply-To: <001101c627d0$291412a0$72f26051@server> Message-ID: <001301c627fb$dc850ee0$017ba8c0@xpserver> Hi Max: It depends on how your raid is configured. If it is raid 1, using hardware like 'Promise' technology then in theory the second drive is just a copy of the first. If you have used something like 'stripping' then the data is really spread evenly over the 2 drives. In both cases, I would 'Ghost' (if you have access to that Symantec's app) or image the drive(s) using any CD creator program (Nero, Roxy etc.) to a large external or connected drive (externals really cheap now... $150 CAD for 200GB USB drive) or attach the large new drive ($99.00 CAD) off your computer. (Most mother-boards support up to 3 drives per connector and all within the last 5 years have at least 2 and up to 6 connectors.) Then, either, depending on your configuration, if hardware Raid; set the jumper on the Motherboard or on the boot-up BIOS (that may be all there is to it if a Mirrored setup). After that just re-mage the saved image back to boot hard-drive or depending on how you have imaged/ghosted the old drive content to the new large drive, you may be able use the new drive as your start-up drive. Note; if you are re-building you original drive have a tested boot floppy or CD with the appropriate recovery tools. It sound wordy but it is a fairly straight forward process and it does depend on your current configuration. Further concerns would probably be better brought up on the DBA technology list or hardware supplier. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Sherman Sent: February 2, 2006 12:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:RAID and Access Projects Dear All, OT:RAID and Access Projects I have tons of projects, past and present, on my pc set up with 2xHD configured as Raid 1. This is causing me problems and I wish to remove it and revert back to 2 x HD. If I do this, will I loose all my data, programs and installations or will it just stop being a Raid and leave my systems and installations intact? I do not want to buy another HD just to have a temporary store and I definitely do not want to loose all my MS Access projects and associated setups. I would appreciate any advice on this please. Regards Max -- 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 2 08:36:03 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 03 Feb 2006 00:36:03 +1000 Subject: [AccessD] Manipulating Excel Cells In-Reply-To: Message-ID: <43E2A573.28874.15770DE3@stuart.lexacorp.com.pg> On 2 Feb 2006 at 11:12, Gustav Brock wrote: > Hi Stuart > > Well well, I hope everyone can see I used _two_ lines, still the essential > code is one line. If you *really* want one line, you can just this: strCol = iif(lngCol >26,Chr$(Int((lngCol- 1) \ 26) + 64),"") _ + Chr$((lngCol - 1) Mod 26 + 65) lngCol = iif(len(strCol)>1,26 * (Asc(UCase$(Left$(strCol, 1)))- 64),0) _ + Asc(UCase$(Right$(strCol, 1))) - 64 -- Stuart From Mike.W.Gowey at doc.state.or.us Thu Feb 2 09:21:32 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 2 Feb 2006 08:21:32 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780108EC@srciml1.ds.doc.state.or.us> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit From Gustav at cactus.dk Thu Feb 2 10:40:39 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Feb 2006 17:40:39 +0100 Subject: [AccessD] Post Card Printing Message-ID: Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit From jwcolby at ColbyConsulting.com Thu Feb 2 11:00:56 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Thu, 2 Feb 2006 12:00:56 -0500 Subject: [AccessD] How many rows populated in range Message-ID: <01e801c6281a$3c90ef70$657aa8c0@ColbyM6805> Does anyone know how to determine how many rows of a range are actually populated with data? I have a range with Doc DocDescr Otherstuff etc 1A Some Desce Etc Etc 1Ai Other Descr Etc Etc The range is potentially up to a hundred and some rows. Doc and DocDescr will always have data in it, but the other columns might not. Is there any property of the range that says what the last occupied row is? Are there iterators for ranges, i.e. "for each row in Range" kind of thing? John W. Colby www.ColbyConsulting.com From Mike.W.Gowey at doc.state.or.us Thu Feb 2 11:03:33 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 2 Feb 2006 10:03:33 -0700 Subject: [AccessD] Function Error Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBA9@srciml1.ds.doc.state.or.us> When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, January 27, 2006 11:40 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Function Error Hi Mike I suspect this to be the bad guy: Mid([inmates].[sid],(Len([inmates].[sid])-1),1) AS BinRowNum Try to replace it for a test with: '0' AS BinRowNum and run: SELECT SID FROM qryInmatesBinNumberUpdate WHERE BinRowNum = '0' I guess that could be replaced with: Val(Right([inmates].[sid],1)) AS BinRowNum and then it will be numeric, thus you could try: SELECT SID FROM qryInmatesBinNumberUpdate WHERE BinRowNum = 0 /gustav >>> Mike.W.Gowey at doc.state.or.us 27-01-2006 18:56:21 >>> This is the SQL of qryInmatesBinNumberUpdate: SELECT Mid([inmates].[sid],(Len([inmates].[sid])-1),1) AS BinRowNum, Inmates.SID, Inmates.Namef, Inmates.Namel, Inmates.Namem, Inmates.DOB, Inmates.Cell, Inmates.Race, Inmates.Custody, Inmates.Age, Inmates.HasBlues FROM Inmates WHERE (((Inmates.Cell) Not Like "DS*" And (Inmates.Cell) Not Like "IM*" And (Inmates.Cell) Not Like "IN*" And (Inmates.Cell) Not Like "M-*" And (Inmates.Cell) Not Like "S-*" And (Inmates.Cell)<>"") AND ((Exists (SELECT SID FROM FTLaun WHERE FTLaun.SID = Inmates.SID))=False) AND ((Exists (SELECT SID FROM BinNumSIDAssign WHERE BinNumSIDAssign.SID = Inmates.SID))=False)) ORDER BY Mid([inmates].[sid],(Len([inmates].[sid])-1),1), Inmates.SID; -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, January 27, 2006 10:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Function Error Hi Mike So what is the SQL of qryInmatesBinNumberUpdate? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Thu Feb 2 11:10:09 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 2 Feb 2006 10:10:09 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBAA@srciml1.ds.doc.state.or.us> Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- 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 2 11:09:53 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Feb 2006 18:09:53 +0100 Subject: [AccessD] Function Error Message-ID: Hi Mike No, I mean for each card. Otherwise you have no way to both sort and identify them. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:03:33 >>> When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? From Jdemarco at hudsonhealthplan.org Thu Feb 2 11:15:09 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 2 Feb 2006 12:15:09 -0500 Subject: [AccessD] How many rows populated in range Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C44EB@TTNEXCHCL2.hshhp.com> There's a COUNTBLANK function that might help you. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Thursday, February 02, 2006 12:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How many rows populated in range Does anyone know how to determine how many rows of a range are actually populated with data? I have a range with Doc DocDescr Otherstuff etc 1A Some Desce Etc Etc 1Ai Other Descr Etc Etc The range is potentially up to a hundred and some rows. Doc and DocDescr will always have data in it, but the other columns might not. Is there any property of the range that says what the last occupied row is? Are there iterators for ranges, i.e. "for each row in Range" kind of thing? 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 electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Lambert.Heenan at AIG.com Thu Feb 2 11:24:35 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 2 Feb 2006 12:24:35 -0500 Subject: [AccessD] How many rows populated in range Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1C786C5F@xlivmbx21.aig.com> This is a situation where you can use the Select method of a Range object. E.g. Assuming xlSheet is an initialized Excel.Worksheet object, and "A1" is within your block of data... With xlSheet .Range("A1").Select strRange = .Range("A1").CurrentRegion.Address End With ... After that strRange will have the address of the whole range, like "$A$1:$D$144", from which you can derive your row count. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Thursday, February 02, 2006 12:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How many rows populated in range Does anyone know how to determine how many rows of a range are actually populated with data? I have a range with Doc DocDescr Otherstuff etc 1A Some Desce Etc Etc 1Ai Other Descr Etc Etc The range is potentially up to a hundred and some rows. Doc and DocDescr will always have data in it, but the other columns might not. Is there any property of the range that says what the last occupied row is? Are there iterators for ranges, i.e. "for each row in Range" kind of thing? 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 Jim.Hale at FleetPride.com Thu Feb 2 11:31:00 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 2 Feb 2006 11:31:00 -0600 Subject: [AccessD] How many rows populated in range Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9F0@corp-es01.fleetpride.com> y = appXcel.WorksheetFunction.CountA(wksUpl.Range("A:A")) counts the of cells that are not empty in the specified range. This works great assuming the indicated column does not have empty cells interspersed. Btw way why not use dynamic ranges? Ie the range names in Excel automatically change depending on their size. See http://www.ozgrid.com/Excel/DynamicRanges.htm Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, February 02, 2006 11:01 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How many rows populated in range Does anyone know how to determine how many rows of a range are actually populated with data? I have a range with Doc DocDescr Otherstuff etc 1A Some Desce Etc Etc 1Ai Other Descr Etc Etc The range is potentially up to a hundred and some rows. Doc and DocDescr will always have data in it, but the other columns might not. Is there any property of the range that says what the last occupied row is? Are there iterators for ranges, i.e. "for each row in Range" kind of thing? John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Gustav at cactus.dk Thu Feb 2 11:30:38 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 02 Feb 2006 18:30:38 +0100 Subject: [AccessD] How many rows populated in range Message-ID: Hi John To find the last filled cell (row) in a column, this is a simple method: lngRow = Worksheets(1).Columns("K").Find("*",,,,,0).Row A range can be part of or derived from another range, thus a column can be a range as well. You can iterate a range as you like (row by column or vice versa) and evaluate IsEmpty(rng.Value) for each cell (a cell can be a range as well). Ranges call for great fun! /gustav >>> jwcolby at ColbyConsulting.com 02-02-2006 18:00:56 >>> Does anyone know how to determine how many rows of a range are actually populated with data? I have a range with Doc DocDescr Otherstuff etc 1A Some Desce Etc Etc 1Ai Other Descr Etc Etc The range is potentially up to a hundred and some rows. Doc and DocDescr will always have data in it, but the other columns might not. Is there any property of the range that says what the last occupied row is? Are there iterators for ranges, i.e. "for each row in Range" kind of thing? John W. Colby www.ColbyConsulting.com From Mike.W.Gowey at doc.state.or.us Thu Feb 2 11:32:48 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 2 Feb 2006 10:32:48 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBAC@srciml1.ds.doc.state.or.us> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Feb 2 11:26:08 2006 From: KIsmert at texassystems.com (Ken Ismert) Date: Thu, 2 Feb 2006 11:26:08 -0600 Subject: [AccessD] OT: Linux, Open Suite and Access Message-ID: Bryan, >>the problem with KOffice is that it is only native to Linux... Oops... But for a hypothetical Free OS/Free Office Suite/EZ-MRP bundle, that would be OK. I looked at the Koffice web site, and found out these things about Kexi: * Native MySQL/PostgreSQL support * No ODBC support * Uses SQLite as its native engine * Native Forms, in the Access sense * Conversion of Access Data to native format (early beta, though) * No Reports yet. That last bit is a kicker. No reports = not yet ready for primetime. -Ken From tony.x.yeatman at jpmorgan.com Thu Feb 2 12:02:31 2006 From: tony.x.yeatman at jpmorgan.com (tony.x.yeatman at jpmorgan.com) Date: Thu, 2 Feb 2006 18:02:31 +0000 Subject: [AccessD] SQL String - Executed against Oracle by ADO Message-ID: I am issuing the following SQL string against an Oracle 9i database, and it is erroring because of the Null. strSQL is equal to: INSERT INTO TBLLOADDATA (LOADFILEID, A01, A02, A03, A04, A05, A06, A07, A08, A09, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29, A30) VALUES ('83','CCC','N','8642378','2663099','8642378','2663099','AAAAAA','BBBBB','26630990','SP','317','20060201',Null,'0','0','1.212200000','20060203','VVV', 'B','YYY','150000.000000000','ZZZ','181830.000000000','1.212200000','.000000000','1.212200000','.000000000','.000000000','20060201','0 ') If in Immediate window I issue strSQL = "INSERT.... " etc (effectively resetting the variable) it runs just fine I do have a function that is returning the Null as a string (I have also tried as a variant) Does anyone know how I could do the same through code ? Thank you for any help you can give. Tony This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates From lmrazek at lcm-res.com Thu Feb 2 12:32:41 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Thu, 2 Feb 2006 12:32:41 -0600 Subject: [AccessD] Hide Page Header on Report Footer In-Reply-To: <6.2.3.4.2.20060131124112.030dacd8@pop3.highstream.net> Message-ID: <050901c62827$0da23e50$036fa8c0@hplaptop> Hi: I'm trying to hide the Page Header section of a report on the Report Footer section. I thought I had a solution, but it won't work when the Report Footer > 1 page long. Basically, I added this to the the OnFormat property of the Page Header: If page=pages then Me.Section(3).Visible = False End If Any hints would be much appreciated. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 From JHewson at karta.com Thu Feb 2 12:44:21 2006 From: JHewson at karta.com (Jim Hewson) Date: Thu, 2 Feb 2006 12:44:21 -0600 Subject: [AccessD] Post Card Printing Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C03BAF861@karta-exc-int.Karta.com> Mike, Maybe I'm being too simplistic, but... Gustav's solution will work. But, in your original note, you stated "when you flip the card stock over the first record in at the bottom of the page instead of top." It seems to me that could rotate the card stock 180 degrees and get the results you want. Will that not work? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Thursday, February 02, 2006 11:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 2 12:49:58 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 2 Feb 2006 19:49:58 +0100 Subject: [AccessD] SQL String - Executed against Oracle by ADO Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B633D@stekelbes.ithelps.local> Maybe try "" -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens tony.x.yeatman at jpmorgan.com Verzonden: donderdag 2 februari 2006 19:03 Aan: Access Developers discussion and problem solving Onderwerp: [AccessD] SQL String - Executed against Oracle by ADO I am issuing the following SQL string against an Oracle 9i database, and it is erroring because of the Null. strSQL is equal to: INSERT INTO TBLLOADDATA (LOADFILEID, A01, A02, A03, A04, A05, A06, A07, A08, A09, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29, A30) VALUES ('83','CCC','N','8642378','2663099','8642378','2663099','AAAAAA','BBBBB' ,'26630990','SP','317','20060201',Null,'0','0','1.212200000','20060203', 'VVV', 'B','YYY','150000.000000000','ZZZ','181830.000000000','1.212200000','.00 0000000','1.212200000','.000000000','.000000000','20060201','0 ') If in Immediate window I issue strSQL = "INSERT.... " etc (effectively resetting the variable) it runs just fine I do have a function that is returning the Null as a string (I have also tried as a variant) Does anyone know how I could do the same through code ? Thank you for any help you can give. Tony This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Thu Feb 2 13:03:07 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 2 Feb 2006 12:03:07 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBAD@srciml1.ds.doc.state.or.us> I think it will work, I was just lost on how to make the first part of his solution work. The temp table creation and the sequential idea stuff. -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Thursday, February 02, 2006 11:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Mike, Maybe I'm being too simplistic, but... Gustav's solution will work. But, in your original note, you stated "when you flip the card stock over the first record in at the bottom of the page instead of top." It seems to me that could rotate the card stock 180 degrees and get the results you want. Will that not work? Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Thursday, February 02, 2006 11:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max at sherman.org.uk Thu Feb 2 13:16:08 2006 From: max at sherman.org.uk (Max Sherman) Date: Thu, 2 Feb 2006 19:16:08 -0000 Subject: [AccessD] OT:RAID and Access Projects In-Reply-To: <001301c627fb$dc850ee0$017ba8c0@xpserver> Message-ID: <001301c6282d$20755e80$72f26051@server> Many thank to all those who responded. Looks like my weekend is going to be spoken for. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 02 February 2006 13:24 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:RAID and Access Projects Hi Max: It depends on how your raid is configured. If it is raid 1, using hardware like 'Promise' technology then in theory the second drive is just a copy of the first. If you have used something like 'stripping' then the data is really spread evenly over the 2 drives. In both cases, I would 'Ghost' (if you have access to that Symantec's app) or image the drive(s) using any CD creator program (Nero, Roxy etc.) to a large external or connected drive (externals really cheap now... $150 CAD for 200GB USB drive) or attach the large new drive ($99.00 CAD) off your computer. (Most mother-boards support up to 3 drives per connector and all within the last 5 years have at least 2 and up to 6 connectors.) Then, either, depending on your configuration, if hardware Raid; set the jumper on the Motherboard or on the boot-up BIOS (that may be all there is to it if a Mirrored setup). After that just re-mage the saved image back to boot hard-drive or depending on how you have imaged/ghosted the old drive content to the new large drive, you may be able use the new drive as your start-up drive. Note; if you are re-building you original drive have a tested boot floppy or CD with the appropriate recovery tools. It sound wordy but it is a fairly straight forward process and it does depend on your current configuration. Further concerns would probably be better brought up on the DBA technology list or hardware supplier. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Sherman Sent: February 2, 2006 12:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT:RAID and Access Projects Dear All, OT:RAID and Access Projects I have tons of projects, past and present, on my pc set up with 2xHD configured as Raid 1. This is causing me problems and I wish to remove it and revert back to 2 x HD. If I do this, will I loose all my data, programs and installations or will it just stop being a Raid and leave my systems and installations intact? I do not want to buy another HD just to have a temporary store and I definitely do not want to loose all my MS Access projects and associated setups. I would appreciate any advice on this please. Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From billmorrill at comcast.net Thu Feb 2 13:22:53 2006 From: billmorrill at comcast.net (Bill Morrill) Date: Thu, 2 Feb 2006 12:22:53 -0700 Subject: [AccessD] Hide Page Header on Report Footer In-Reply-To: <050901c62827$0da23e50$036fa8c0@hplaptop> References: <6.2.3.4.2.20060131124112.030dacd8@pop3.highstream.net> <050901c62827$0da23e50$036fa8c0@hplaptop> Message-ID: How about in the Properties for the report under Page Header property using pull down make it Not with Rpt Ftr. Bill M On 2/2/06, Lawrence Mrazek wrote: > > Hi: > > I'm trying to hide the Page Header section of a report on the Report > Footer > section. I thought I had a solution, but it won't work when the Report > Footer > 1 page long. > > Basically, I added this to the the OnFormat property of the Page Header: > If page=pages then > Me.Section(3).Visible = False > End If > > Any hints would be much appreciated. > > Larry Mrazek > LCM Research, Inc. > www.lcm-res.com > lmrazek at lcm-res.com > ph. 314-432-5886 > fx. 314-432-3304 > > > > -- > 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 2 13:38:01 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 02 Feb 2006 11:38:01 -0800 Subject: [AccessD] Post Card Printing In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF48607780108EC@srciml1.ds.doc.state.or.us> Message-ID: <000c01c62830$2df1a430$017ba8c0@xpserver> HI Mike: I had a similar printing problem with printing ID cards. The picture, ID and name were printed on the front and the disclaimer, name and place for signature were printed on the back. The pictures and name/signature had to line as there could be up to 60 printed at one time. Simply print the first side, then prompt the user to place the half completed cards flipped over in the card bin. Then the back would print. The trick was the same recordset/report was being used but on the second pass, the report was re-set to the first record, all the 'front' information was being turn-off/hidden and the 'back' information was being turned-on/unhidden. (All the code was in the single Access report.) It worked great. I could send you the report and its imbedded code but it used an odd 4 colour film printer/driver and you may have difficulty getting it to display. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: February 2, 2006 7:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Post Card Printing I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- 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 2 14:02:58 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 02 Feb 2006 12:02:58 -0800 Subject: [AccessD] SQL String - Executed against Oracle by ADO In-Reply-To: Message-ID: <000d01c62833$aa480e90$017ba8c0@xpserver> Hi Tony: You could either set the initial values by adding an empty value to it: varOne = null varOne = varOne + "" ... now it is an empty or '' or if the shown value is 'null' could not the 'VALUES' be placed in a string and the 'Replace' function be used to replace the value with either a zero or empty? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of tony.x.yeatman at jpmorgan.com Sent: February 2, 2006 10:03 AM To: Access Developers discussion and problem solving Subject: [AccessD] SQL String - Executed against Oracle by ADO I am issuing the following SQL string against an Oracle 9i database, and it is erroring because of the Null. strSQL is equal to: INSERT INTO TBLLOADDATA (LOADFILEID, A01, A02, A03, A04, A05, A06, A07, A08, A09, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, A23, A24, A25, A26, A27, A28, A29, A30) VALUES ('83','CCC','N','8642378','2663099','8642378','2663099','AAAAAA','BBBBB','26 630990','SP','317','20060201',Null,'0','0','1.212200000','20060203','VVV', 'B','YYY','150000.000000000','ZZZ','181830.000000000','1.212200000','.000000 000','1.212200000','.000000000','.000000000','20060201','0 ') If in Immediate window I issue strSQL = "INSERT.... " etc (effectively resetting the variable) it runs just fine I do have a function that is returning the Null as a string (I have also tried as a variant) Does anyone know how I could do the same through code ? Thank you for any help you can give. Tony This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Thu Feb 2 14:13:42 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 2 Feb 2006 13:13:42 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBAE@srciml1.ds.doc.state.or.us> Thanks Jim, but I don't think that would work for me, I'm printing 4 post cards to a page and trying to line them up with each other once you flip the pages over. -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Thursday, February 02, 2006 12:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Post Card Printing HI Mike: I had a similar printing problem with printing ID cards. The picture, ID and name were printed on the front and the disclaimer, name and place for signature were printed on the back. The pictures and name/signature had to line as there could be up to 60 printed at one time. Simply print the first side, then prompt the user to place the half completed cards flipped over in the card bin. Then the back would print. The trick was the same recordset/report was being used but on the second pass, the report was re-set to the first record, all the 'front' information was being turn-off/hidden and the 'back' information was being turned-on/unhidden. (All the code was in the single Access report.) It worked great. I could send you the report and its imbedded code but it used an odd 4 colour film printer/driver and you may have difficulty getting it to display. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: February 2, 2006 7:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Post Card Printing I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Feb 2 14:29:13 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 2 Feb 2006 15:29:13 -0500 Subject: [AccessD] Hide Page Header on Report Footer In-Reply-To: <050901c62827$0da23e50$036fa8c0@hplaptop> Message-ID: Larry, So your report footer doesn't always start on the last page...hum Ok here's what you do: 1. Place a hidden text box on the report and reference the .pages property. If you're already doing that some place else, then don't do this step. 2. In the report footer OnFormat event, save the current page number to a variable or a table. 3. In the Page Header OnFormat If >= Me.page then Me.Section(3).Visible = False End If Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lawrence Mrazek Sent: Thursday, February 02, 2006 1:33 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Hide Page Header on Report Footer Hi: I'm trying to hide the Page Header section of a report on the Report Footer section. I thought I had a solution, but it won't work when the Report Footer > 1 page long. Basically, I added this to the the OnFormat property of the Page Header: If page=pages then Me.Section(3).Visible = False End If Any hints would be much appreciated. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 2 14:37:42 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 12:37:42 -0800 Subject: [AccessD] Report Preview Question Message-ID: <007b01c62838$84d46730$6701a8c0@HPLaptop> I have reports that I have code to maximize on opening. Does anyone know the code to set the preview size automatically to 100% Thanks Joe Hecht jmhecht at earthlink.net From Patricia.O'Connor at otda.state.ny.us Thu Feb 2 14:50:17 2006 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Thu, 2 Feb 2006 15:50:17 -0500 Subject: [AccessD] OT - software for file management - new employment position Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8016B23CA@EXCNYSM0A1AI.nysemail.nyenet> This is pretty important - we just began reviewing resumes and getting ready to start interviewing applicants. Below is link to AD We are hiring a person to work on doing file management and organization. Develop several server folders in which some will have high security and limited usage. Others would be open to 3 units with differing security limits depending on categorization. What types of software would be good and how do we rank knowledge amongst applicants. Also what other expertise should we look hard for? http://412.careersite.com/candidate/processcandviewjob?docid=A0040-17C5& source=search Thanks Patti ************************************************** * Patricia O'Connor * Associate Computer Programmer Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (w) mailto:aa1160 at otda.state.ny.us ************************************************** -------------------------------------------------------- This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. From Lambert.Heenan at AIG.com Thu Feb 2 14:50:46 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 2 Feb 2006 14:50:46 -0600 Subject: [AccessD] Report Preview Question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1C786D6A@xlivmbx21.aig.com> This will do it... After opening the report in preview mode... DoCmd.SelectObject acReport, "Some Report Name" DoCmd.RunCommand acCmdZoom100 Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 02, 2006 3:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Report Preview Question I have reports that I have code to maximize on opening. Does anyone know the code to set the preview size automatically to 100% Thanks Joe Hecht jmhecht at earthlink.net -- 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 2 14:56:21 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 02 Feb 2006 12:56:21 -0800 Subject: [AccessD] Report Preview Question In-Reply-To: <007b01c62838$84d46730$6701a8c0@HPLaptop> Message-ID: <000e01c6283b$1f25f2c0$017ba8c0@xpserver> Hi Joe: In the reports' built in method. Private Sub Report_Open(Cancel As Integer) DoCmd.Maximize End Sub HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: February 2, 2006 12:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Report Preview Question I have reports that I have code to maximize on opening. Does anyone know the code to set the preview size automatically to 100% Thanks Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Thu Feb 2 15:10:58 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 2 Feb 2006 16:10:58 -0500 Subject: [AccessD] OT: Linux, Open Suite and Access In-Reply-To: References: Message-ID: On 02/02/06, Ken Ismert wrote: > > Bryan, > > >>the problem with KOffice is that it is only native to Linux... > > Oops... But for a hypothetical Free OS/Free Office Suite/EZ-MRP bundle, > that would be OK. You know, I really need to read the whole thread carefully. The question WAS about it being on Linux. Doh!! What I like about OOo is that once its written on one platform, it *should* work on all the platforms that support OOo. > I looked at the Koffice web site, and found out these things about Kexi: > > * Native MySQL/PostgreSQL support Nice. > * No ODBC support Not a biggie for me. > * Uses SQLite as its native engine Cool. > * Native Forms, in the Access sense Cool. > * Conversion of Access Data to native format (early beta, though) I'd be interested in seeing how this works on some fairly hefty apps I've got. > * No Reports yet. > > That last bit is a kicker. No reports = not yet ready for primetime. Doh!! The knock out punch. Althoug, depending on the complexity I wonder if pushing the data to a KWord document might work out fine in the short run. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From stuart at lexacorp.com.pg Thu Feb 2 15:43:19 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 03 Feb 2006 07:43:19 +1000 Subject: [AccessD] Post Card Printing In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF48607780579BBAE@srciml1.ds.doc.state.or.us> Message-ID: <43E30997.27368.16FE3C67@stuart.lexacorp.com.pg> On 2 Feb 2006 at 13:13, Gowey Mike W wrote: > Thanks Jim, but I don't think that would work for me, I'm printing 4 > post cards to a page and trying to line them up with each other once you > flip the pages over. > The problem with the proposed solutions is that they tend to be printer specific. Different printers have different paper paths and stack the output in different ways. You have to determine a solution to suit your specific printer and report layout. The principle is to include a sequential number in the query that the report is based on (search the archives for various solutions to this) and sort the report for the back on a numeric function applied to the sequential number. The specific function will depend on the output stack order and the layout of the records on the page. -- Stuart From jmhecht at earthlink.net Thu Feb 2 15:45:41 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 13:45:41 -0800 Subject: [AccessD] Report Preview Question In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1C786D6A@xlivmbx21.aig.com> Message-ID: <000001c62842$03ef8820$6701a8c0@HPLaptop> Lambert I tried your code on the open, activate and page header events. I got an error saying you can not use select object while it is printing. Any Ideas? Thanks -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, February 02, 2006 12:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Report Preview Question This will do it... After opening the report in preview mode... DoCmd.SelectObject acReport, "Some Report Name" DoCmd.RunCommand acCmdZoom100 Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 02, 2006 3:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Report Preview Question I have reports that I have code to maximize on opening. Does anyone know the code to set the preview size automatically to 100% Thanks Joe Hecht jmhecht 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 martyconnelly at shaw.ca Thu Feb 2 15:59:53 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 02 Feb 2006 13:59:53 -0800 Subject: [AccessD] OT: Linux, Open Suite and Access References: Message-ID: <43E280D9.6040606@shaw.ca> You might get away with using Mono or Grasshopper to run an Net IDE app on Linux Visual Studio .NET IDE for Linux http://www.codeproject.com/showcase/Mainsoft_grasshopper.asp Grasshopper Sample for running Northwind SQL http://dev.mainsoft.com/Default.aspx?tabid=45 Mono Project http://www.mono-project.com/Main_Page An Access MDE might require the Samba filesystem on Linux. This is all a little esoteric right now. Bryan Carbonnell wrote: >On 02/02/06, Ken Ismert wrote: > > >>Bryan, >> >> >> >>>>the problem with KOffice is that it is only native to Linux... >>>> >>>> >>Oops... But for a hypothetical Free OS/Free Office Suite/EZ-MRP bundle, >>that would be OK. >> >> > >You know, I really need to read the whole thread carefully. The >question WAS about it being on Linux. Doh!! > >What I like about OOo is that once its written on one platform, it >*should* work on all the platforms that support OOo. > > > >>I looked at the Koffice web site, and found out these things about Kexi: >> >>* Native MySQL/PostgreSQL support >> >> > >Nice. > > > >>* No ODBC support >> >> > >Not a biggie for me. > > > >>* Uses SQLite as its native engine >> >> > >Cool. > > > >>* Native Forms, in the Access sense >> >> > >Cool. > > > >>* Conversion of Access Data to native format (early beta, though) >> >> > >I'd be interested in seeing how this works on some fairly hefty apps I've got. > > > >>* No Reports yet. >> >>That last bit is a kicker. No reports = not yet ready for primetime. >> >> > >Doh!! The knock out punch. Althoug, depending on the complexity I >wonder if pushing the data to a KWord document might work out fine in >the short run. > >-- >Bryan Carbonnell - carbonnb at gmail.com >Life's journey is not to arrive at the grave safely in a well >preserved body, but rather to skid in sideways, totally worn out, >shouting "What a great ride!" > > -- Marty Connelly Victoria, B.C. Canada From Lambert.Heenan at AIG.com Thu Feb 2 16:02:58 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 2 Feb 2006 17:02:58 -0500 Subject: [AccessD] Report Preview Question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1C786DC0@xlivmbx21.aig.com> Sorry, I was none too clear. You make the call after the report is previewed, from the code routine that opened the report, not from within the report's module. So... DoCmd.OpenReport "SomeReport", acViewPreview DoCmd.SelectObject acReport, "SomeReport" DoCmd.RunCommand acCmdZoom100 Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 02, 2006 4:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Report Preview Question Lambert I tried your code on the open, activate and page header events. I got an error saying you can not use select object while it is printing. Any Ideas? Thanks -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, February 02, 2006 12:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Report Preview Question This will do it... After opening the report in preview mode... DoCmd.SelectObject acReport, "Some Report Name" DoCmd.RunCommand acCmdZoom100 Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 02, 2006 3:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Report Preview Question I have reports that I have code to maximize on opening. Does anyone know the code to set the preview size automatically to 100% Thanks Joe Hecht jmhecht 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 lmrazek at lcm-res.com Thu Feb 2 16:31:29 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Thu, 2 Feb 2006 16:31:29 -0600 Subject: [AccessD] Hide Page Header on Report Footer In-Reply-To: Message-ID: <056a01c62848$69e3c910$036fa8c0@hplaptop> Yes, thanks! I knew I was missing something simple! Thank you! Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Thursday, February 02, 2006 1:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide Page Header on Report Footer How about in the Properties for the report under Page Header property using pull down make it Not with Rpt Ftr. Bill M On 2/2/06, Lawrence Mrazek wrote: > > Hi: > > I'm trying to hide the Page Header section of a report on the Report > Footer section. I thought I had a solution, but it won't work when the > Report Footer > 1 page long. > > Basically, I added this to the the OnFormat property of the Page Header: > If page=pages then > Me.Section(3).Visible = False > End If > > Any hints would be much appreciated. > > Larry Mrazek > LCM Research, Inc. > www.lcm-res.com > lmrazek at lcm-res.com > ph. 314-432-5886 > fx. 314-432-3304 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 2 17:26:03 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 15:26:03 -0800 Subject: [AccessD] Report Preview Question In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1C786DC0@xlivmbx21.aig.com> Message-ID: <000701c62850$091d07b0$6701a8c0@HPLaptop> Are you saying on the click event of the button that opens the report? Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, February 02, 2006 2:03 PM To: 'Access Developers discussion and problem solving' Cc: 'Joe Hecht' Subject: Re: [AccessD] Report Preview Question Sorry, I was none too clear. You make the call after the report is previewed, from the code routine that opened the report, not from within the report's module. So... DoCmd.OpenReport "SomeReport", acViewPreview DoCmd.SelectObject acReport, "SomeReport" DoCmd.RunCommand acCmdZoom100 Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 02, 2006 4:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Report Preview Question Lambert I tried your code on the open, activate and page header events. I got an error saying you can not use select object while it is printing. Any Ideas? Thanks -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, February 02, 2006 12:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Report Preview Question This will do it... After opening the report in preview mode... DoCmd.SelectObject acReport, "Some Report Name" DoCmd.RunCommand acCmdZoom100 Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 02, 2006 3:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Report Preview Question I have reports that I have code to maximize on opening. Does anyone know the code to set the preview size automatically to 100% Thanks Joe Hecht jmhecht 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 bill_Patten at earthlink.net Thu Feb 2 19:54:30 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Thu, 2 Feb 2006 17:54:30 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard Message-ID: <00fc01c62864$c68bf720$6501a8c0@BPCS> Using the Office XP Developer packaging wizard, I tell it to run shrtcut.bat after completing the install. This creates a line in the setup.lst file that looks like this. [RunCommands] Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat This works fine in Win98 the short cut runs as expected. In Windows XP how ever it doesn't Changing to this Command1=0,1,$(AppPath),$(AppPath)\License.txt Works in both Win 98 and Win XP, note pad opens the file. Double clicking on the batch file works in both. It appears that batch files won't work from the install program, any ideas.??? I've searched the web but have found very little about the [RunCommands] item nor where to look for it. Thanks Bill From jmhecht at earthlink.net Thu Feb 2 20:04:05 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 18:04:05 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard In-Reply-To: <00fc01c62864$c68bf720$6501a8c0@BPCS> Message-ID: <000001c62866$1ea91310$6701a8c0@HPLaptop> Bill, What is & where did you get the packaging wizard? Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 5:55 PM To: accessd at databaseadvisors.com Subject: [AccessD] OFFXPDEV Packaging Wizard Using the Office XP Developer packaging wizard, I tell it to run shrtcut.bat after completing the install. This creates a line in the setup.lst file that looks like this. [RunCommands] Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat This works fine in Win98 the short cut runs as expected. In Windows XP how ever it doesn't Changing to this Command1=0,1,$(AppPath),$(AppPath)\License.txt Works in both Win 98 and Win XP, note pad opens the file. Double clicking on the batch file works in both. It appears that batch files won't work from the install program, any ideas.??? I've searched the web but have found very little about the [RunCommands] item nor where to look for it. Thanks Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_Patten at earthlink.net Thu Feb 2 20:11:15 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Thu, 2 Feb 2006 18:11:15 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard References: <000001c62866$1ea91310$6701a8c0@HPLaptop> Message-ID: <010001c62867$1d4dd360$6501a8c0@BPCS> Hi Joe, It came with the Office XP Developer Kit. ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 02, 2006 6:04 PM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Bill, What is & where did you get the packaging wizard? Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 5:55 PM To: accessd at databaseadvisors.com Subject: [AccessD] OFFXPDEV Packaging Wizard Using the Office XP Developer packaging wizard, I tell it to run shrtcut.bat after completing the install. This creates a line in the setup.lst file that looks like this. [RunCommands] Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat This works fine in Win98 the short cut runs as expected. In Windows XP how ever it doesn't Changing to this Command1=0,1,$(AppPath),$(AppPath)\License.txt Works in both Win 98 and Win XP, note pad opens the file. Double clicking on the batch file works in both. It appears that batch files won't work from the install program, any ideas.??? I've searched the web but have found very little about the [RunCommands] item nor where to look for it. Thanks Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 2 20:27:49 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 18:27:49 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard In-Reply-To: <010001c62867$1d4dd360$6501a8c0@BPCS> Message-ID: <000401c62869$6dd41310$6701a8c0@HPLaptop> Did not know they were making a developer kit any more. Thought it was VSTO Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 6:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Hi Joe, It came with the Office XP Developer Kit. ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 02, 2006 6:04 PM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Bill, What is & where did you get the packaging wizard? dabaseadvisors.com From bill_Patten at earthlink.net Thu Feb 2 20:36:34 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Thu, 2 Feb 2006 18:36:34 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard References: <000401c62869$6dd41310$6701a8c0@HPLaptop> Message-ID: <010801c6286a$a6b87a30$6501a8c0@BPCS> I think that is for Access 2003, I have that too, but I don't believe that 2003 runtime will run in Windows 98, so I think I'm stuck with 2002. ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 02, 2006 6:27 PM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Did not know they were making a developer kit any more. Thought it was VSTO Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 6:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Hi Joe, It came with the Office XP Developer Kit. ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 02, 2006 6:04 PM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Bill, What is & where did you get the packaging wizard? dabaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 2 20:46:17 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 18:46:17 -0800 Subject: [AccessD] Brain Melt Link New table in BE to FE Message-ID: <000e01c6286c$02063ca0$6701a8c0@HPLaptop> I realized I missed a making a table for my project. I built in my BE. How do I make the FE see it? Look around for my can of brain unmelter. TIA Joe Hecht jmhecht at earthlink.net From jmhecht at earthlink.net Thu Feb 2 20:49:36 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 18:49:36 -0800 Subject: [AccessD] Link Table Question Never Mind Message-ID: <001301c6286c$792191e0$6701a8c0@HPLaptop> Found brain unmelter File /Get External Data/ Link. Doh... Joe Hecht jmhecht at earthlink.net From bill_Patten at earthlink.net Thu Feb 2 20:54:50 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Thu, 2 Feb 2006 18:54:50 -0800 Subject: [AccessD] Link Table Question Never Mind References: <001301c6286c$792191e0$6701a8c0@HPLaptop> Message-ID: <010f01c6286d$34102f20$6501a8c0@BPCS> Some days are like that, course with me they stretch into months.... ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 02, 2006 6:49 PM Subject: [AccessD] Link Table Question Never Mind Found brain unmelter File /Get External Data/ Link. Doh... Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 2 22:34:31 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 20:34:31 -0800 Subject: [AccessD] sql help please Message-ID: <000001c6287b$212689a0$6701a8c0@HPLaptop> I am having 1 issue with the statement below. I have confirmed 20_stb_Loc_Wather_Road does indeed have data in it so we are not looking at null messing me up. ( I think) When I run the query no data from the table 20_stb_Loc_Wather_Road is populating the query. I tried splitting the query into a second query with everything except the 20_stb_Loc_Wather_Road on one side and the 20_stb_Loc_Wather_Road fields as the second query source and I still had the same problem. I will check in morning. Bed time for me now. SELECT [10_tbl_PersonelMasterData].MyEmpNumb, [20_tblAIMaster].ACCIDENT, [20_tblAIMaster].MyAccidnetRecordNumber, [20_tblAIMaster].CLAIM AS ClaimNumber, [20_tblAIMaster].COMPANY, [20_tblAIMaster].AccidentDATE, [20_stblAccDayInfo].AccidentTime, [20_stblAccDayInfo].AccidentDayofWeek, [20_tblAIMaster].DRIV_NUM, [20_tblAIMaster].REP_DATE, [20_tblAIMaster].STATUS, [50_ltblTerminal].TRMNL_DESC, [10_stblEmpCompInfo].START_DATE, [20_tblAIMaster].OPEN_CLAIM, [last_NAME] & ", " & [First_Name] & " " & [Middle_Name] AS FName, [10_tbl_PersonelMasterData].DOB, [20_stb_Loc_Wather_Road].RoadCondition, [20_stb_Loc_Wather_Road].ROAD_TYPE, [20_stb_Loc_Wather_Road].WEATHER, [20_stb_Loc_Wather_Road].Loc_type, [20_stb_Loc_Wather_Road].Acc_type, [20_stb_Loc_Wather_Road].CHARGABIL FROM (50_ltblTerminal RIGHT JOIN (10_tbl_PersonelMasterData INNER JOIN 10_stblEmpCompInfo ON [10_tbl_PersonelMasterData].MyEmpNumb = [10_stblEmpCompInfo].MyEmpNumb) ON [50_ltblTerminal].TRMNL_CODE = [10_stblEmpCompInfo].TERMINAL) INNER JOIN (20_stb_Loc_Wather_Road RIGHT JOIN ((20_tblAIMaster INNER JOIN 20_stblAccDayInfo ON [20_tblAIMaster].MyAccidnetRecordNumber = [20_stblAccDayInfo].MyAccidnetRecordNumber) INNER JOIN 20_stblAIPaidExpences ON [20_tblAIMaster].MyAccidnetRecordNumber = [20_stblAIPaidExpences].MyAccidnetRecordNumber) ON [20_stb_Loc_Wather_Road].MyAccidnetRecordNumber = [20_tblAIMaster].MyAccidnetRecordNumber) ON ([10_tbl_PersonelMasterData].DRIV_NUM = [20_tblAIMaster].DRIV_NUM) AND ([10_tbl_PersonelMasterData].DRIV_NUM = [20_tblAIMaster].DRIV_NUM); TIA Joe Hecht jmhecht at earthlink.net From reuben at gfconsultants.com Thu Feb 2 22:43:53 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 2 Feb 2006 23:43:53 -0500 Subject: [AccessD] A2K - Duplex Printing In-Reply-To: <000101c626f2$5b26ac00$7400a8c0@HPLaptop> Message-ID: The printer is duplex and duplexing is turned on. Do I need my report to be designed as a single page, set to a custom paper size, and then load the printer with said custom paper size? Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht > Sent: Wednesday, February 01, 2006 12:43 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Duplex Printing > > > Is your printer duplex? > > Joe Hecht > jmhecht at earthlink.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Reuben Cummings > Sent: Tuesday, January 31, 2006 9:06 AM > To: AccessD > Subject: [AccessD] A2K - Duplex Printing > > I need to print a report on both sides of the paper. > > One record will be one page - both sides. Each new record > will have it's > own piece of paper. > > So 10 records will be 10 papers printed on both sides (20 > pages total). > > Any suggestions? > > Thanks. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jmhecht at earthlink.net Thu Feb 2 22:55:44 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 2 Feb 2006 20:55:44 -0800 Subject: [AccessD] A2K - Duplex Printing In-Reply-To: Message-ID: <000001c6287e$17763150$6701a8c0@HPLaptop> I am not sure about that. I just know if your printer is not duplex, there is nothing easy to do. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Thursday, February 02, 2006 8:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Duplex Printing The printer is duplex and duplexing is turned on. Do I need my report to be designed as a single page, set to a custom paper size, and then load the printer with said custom paper size? Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht > Sent: Wednesday, February 01, 2006 12:43 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Duplex Printing > > > Is your printer duplex? > > Joe Hecht > jmhecht at earthlink.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Reuben Cummings > Sent: Tuesday, January 31, 2006 9:06 AM > To: AccessD > Subject: [AccessD] A2K - Duplex Printing > > I need to print a report on both sides of the paper. > > One record will be one page - both sides. Each new record > will have it's > own piece of paper. > > So 10 records will be 10 papers printed on both sides (20 > pages total). > > Any suggestions? > > Thanks. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Feb 3 04:49:08 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Feb 2006 11:49:08 +0100 Subject: [AccessD] Report Preview Question Message-ID: Hi Joe If you prefer the report handles this "by itself", we dealt with the topic back in 2002: > OK, never say never, here's how you can achieve this. > > As several have noted, no event of the report is fired after the report > has been formatted and displayed. Thus you'll have to make your own > event. > This can be done with a hidden timer form which is opened by the report, > adjusts the zoom level and closes automatically. > > First create a simple no-nonsense form. > Named it frmReportZoom. > Set its TimerInterval to 1. > > Add this code to the Timer event: > > > > Private Sub Form_Timer() > > Static lngZoomFactor As Long > Static strReportName As String > Static booResized As Boolean > > Dim lngReport As Long > > If lngZoomFactor = 0 Then > strReportName = Nz(Me.OpenArgs, vbNullString) > If Len(strReportName) > 0 Then > ' Extract zoom constant and report name. > lngZoomFactor = Val(strReportName) > strReportName = Mid(strReportName, Len(CStr(lngZoomFactor)) + 1) > End If > If Len(strReportName) = 0 Then > ' Nothing to do. > booResized = True > Else > ' Validate zoom constant. > Select Case lngZoomFactor > Case _ > acCmdZoom10, _ > acCmdZoom25, _ > acCmdZoom50, _ > acCmdZoom75, _ > acCmdZoom100, _ > acCmdZoom150, _ > acCmdZoom200, _ > acCmdFitToWindow > ' Zoom factor/method accepted. > Case Else > ' Zoom constant cannot be used. > ' Nothing to do. > booResized = True > End Select > End If > End If > > If booResized = False Then > On Error Resume Next > lngReport = Reports.Count > If lngReport = 0 Then > ' No reports are open. > ' The report may have been printed without a preview. > booResized = True > ElseIf Reports(lngReport - 1).Name = strReportName Then > ' The report is open. Resize it. > DoCmd.SelectObject acReport, strReportName > DoCmd.RunCommand lngZoomFactor > If Err = 0 Then > ' The report has be "rezoomed". > booResized = True > Else > ' Try to resize the report at next timer event. > End If > End If > On Error GoTo 0 > End If > > If booResized = True Then > ' Report has been resized or is gone. > DoCmd.Close acForm, Me.Name > End If > > End Sub > > > > Armed with this, add this code in your report's Page event: > > > > Private Sub Report_Page() > > ' Specify requested zoom level (percent). > ' Useful values are from 10 to 200 percent. > ' Specify zero if report shall fit to window. > Const clngZoomLevel As Long = 0 > ' Name of timer form which will resize this report. > Const cstrFormName As String = "frmReportZoom" > > Dim lngZoomLevel As Long > Dim strOpenArgs As String > > ' Adjust zoom level at first page view only. > If Me.Page = 1 Then > ' Wrap zoom level into a valid constant. > Select Case clngZoomLevel > Case Is <= 0 > lngZoomLevel = acCmdFitToWindow > Case Is <= 10 > lngZoomLevel = acCmdZoom10 > Case Is <= 25 > lngZoomLevel = acCmdZoom25 > Case Is <= 50 > lngZoomLevel = acCmdZoom50 > Case Is <= 75 > lngZoomLevel = acCmdZoom75 > Case Is <= 100 > lngZoomLevel = acCmdZoom100 > Case Is <= 150 > lngZoomLevel = acCmdZoom150 > Case Is <= 200 > lngZoomLevel = acCmdZoom200 > Case Else > lngZoomLevel = acCmdZoom200 > End Select > ' Concatenate zoom constant and report name to > ' one string variable to be passed to the form. > strOpenArgs = CStr(lngZoomLevel) & Me.Name > ' Open the form hidden. > DoCmd.OpenForm cstrFormName, acNormal, , , , acHidden, strOpenArgs > Else > ' In preview mode, cstrFormName has closed itself now. > ' In print mode, cstrFormName will be closed at page 2. > DoCmd.Close acForm, cstrFormName, acSaveNo > End If > > End Sub > > > > Open the report and it will "rezoom" instantly. /gustav >>> jmhecht at earthlink.net 02-02-2006 21:37:42 >>> I have reports that I have code to maximize on opening. Does anyone know the code to set the preview size automatically to 100% Joe Hecht jmhecht at earthlink.net From Gustav at cactus.dk Fri Feb 3 05:46:50 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Feb 2006 12:46:50 +0100 Subject: [AccessD] Post Card Printing Message-ID: Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit From dwaters at usinternet.com Fri Feb 3 08:09:36 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 3 Feb 2006 08:09:36 -0600 Subject: [AccessD] A2K - Duplex Printing In-Reply-To: <5629146.1138942044648.JavaMail.root@sniper13> Message-ID: <000401c628cb$7720d3b0$0200a8c0@danwaters> Reuben, Will this printer print both sides on a document from another application? Try making a 2 page document in Word and send it to the printer. If that still gets you two pages then Access is not the issue. Duplex printing does not requires custom paper sizes. Dan -------------------------------------------------------------------------- The printer is duplex and duplexing is turned on. Do I need my report to be designed as a single page, set to a custom paper size, and then load the printer with said custom paper size? Reuben Cummings GFC, LLC 812.523.1017 From reuben at gfconsultants.com Fri Feb 3 08:33:19 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 3 Feb 2006 09:33:19 -0500 Subject: [AccessD] A2K - Duplex Printing In-Reply-To: <000401c628cb$7720d3b0$0200a8c0@danwaters> Message-ID: After I had driven about 1.5 hours back toward home I thought about that, Dan. I sure wish I would have tried it. I can have them do it. So, assuming the printer is working, how is the best way to setup an Access Report for this? One long report or the same report with a page break in it? Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters > Sent: Friday, February 03, 2006 9:10 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Duplex Printing > > > Reuben, > > Will this printer print both sides on a document from another application? > Try making a 2 page document in Word and send it to the printer. If that > still gets you two pages then Access is not the issue. > > Duplex printing does not requires custom paper sizes. > > Dan > > > -------------------------------------------------------------------------- > > The printer is duplex and duplexing is turned on. > > Do I need my report to be designed as a single page, set to a custom paper > size, and then load the printer with said custom paper size? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > 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 3 08:51:25 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 03 Feb 2006 09:51:25 -0500 Subject: [AccessD] Missing records Message-ID: We got a call from a department that has a small Access 2K db. "Something" has happened, and they are missing about a quarter of their records. This was being investigated by a technician and I was just asked the following question: If a PC is "hard-booted" can an Access DB lose records w/out showing signs of corruption (i.e. the db still runs)?" I really don't know the answer to this question. I have had nearly no experience w/db corruption, since starting with Access 5 years ago. I used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs hanging around actually...and corruption was a huge problem w/them. Anyone got any tips on this? Thanks! John W Clark From Mike.W.Gowey at doc.state.or.us Fri Feb 3 08:56:57 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Fri, 3 Feb 2006 07:56:57 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBB7@srciml1.ds.doc.state.or.us> Thanks Gustav I got it working like a charm. -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Feb 3 09:06:00 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Feb 2006 16:06:00 +0100 Subject: [AccessD] Post Card Printing Message-ID: Hi Mike How nice! /gustav >>> Mike.W.Gowey at doc.state.or.us 03-02-2006 15:56:57 >>> Thanks Gustav I got it working like a charm. From garykjos at gmail.com Fri Feb 3 09:11:53 2006 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 3 Feb 2006 09:11:53 -0600 Subject: [AccessD] Missing records In-Reply-To: References: Message-ID: We had something similar happen here a while back. I was able to import the missing records from a backup into the compacted and repaired current copy - the first thing I did when they said things were not working right was compact and repair - so that they didn't lose other updates and adds since the backup had been done two nights before. I created a third database and linked the main transaction tables from both versions and did an outer join to see what was in the old that was not in the new and then created a temporary table of those missing records which I then reviewed to be sure they should be readded and then finally did an append to put them into the current table. Fortunately this database is pretty much denormalized so most everything is in a single table and only that table was missing anything. We blamed network issues but really didn't have a "for sure that is what happened" explanation. It hadn't happened before or since. GK On 2/3/06, John Clark wrote: > We got a call from a department that has a small Access 2K db. > "Something" has happened, and they are missing about a quarter of their > records. This was being investigated by a technician and I was just > asked the following question: > > If a PC is "hard-booted" can an Access DB lose records w/out showing > signs of corruption (i.e. the db still runs)?" > > I really don't know the answer to this question. I have had nearly no > experience w/db corruption, since starting with Access 5 years ago. I > used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs > hanging around actually...and corruption was a huge problem w/them. > > Anyone got any tips on this? > > Thanks! > > John W Clark > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From Jdemarco at hudsonhealthplan.org Fri Feb 3 09:15:40 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 3 Feb 2006 10:15:40 -0500 Subject: [AccessD] Missing records Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C44FB@TTNEXCHCL2.hshhp.com> We had missing recordsin an app here a while back. We never really figured out what happened but one possibility we found was the user(s) may have pressed Ctrl + A to select all data in a record (displayed on a form). Well Ctrl + A really selects all records in a form's recordset (A97 at least). If they pressed Delete and ingnored the warning goodbye data. We've since disabled that key combination. Good luck, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark Sent: Friday, February 03, 2006 9:51 AM To: accessd at databaseadvisors.com Subject: [AccessD] Missing records We got a call from a department that has a small Access 2K db. "Something" has happened, and they are missing about a quarter of their records. This was being investigated by a technician and I was just asked the following question: If a PC is "hard-booted" can an Access DB lose records w/out showing signs of corruption (i.e. the db still runs)?" I really don't know the answer to this question. I have had nearly no experience w/db corruption, since starting with Access 5 years ago. I used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs hanging around actually...and corruption was a huge problem w/them. Anyone got any tips on this? Thanks! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From jwcolby at ColbyConsulting.com Fri Feb 3 09:33:46 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 10:33:46 -0500 Subject: [AccessD] Missing records In-Reply-To: Message-ID: <023001c628d7$3994f1a0$657aa8c0@ColbyM6805> John, The first thing to do is examine the relationships for the tables missing records. If "cascade delete" is turned on (a NO-NO in my humble opinion) then deleting a single record (such as a customer) will (after a warning of course) delete ALL child/grandchild/...greatgreatgreat records. Let's say that a client has invoices and invoice line items. Yep, all gone. Repair service calls / line items? Yep, all gone. Payments? Yep, all gone. Cascade delete of a single (for example) customer record WILL delete all child records, however far down they go. Potentially dozens or even thousands of records, all gone because the user was "just deleting a single customer record". I pretty much design my databases to never turn on Cascade delete, and then build delete queries tied to buttons which only supervisors can see/click. 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 03, 2006 9:51 AM To: accessd at databaseadvisors.com Subject: [AccessD] Missing records We got a call from a department that has a small Access 2K db. "Something" has happened, and they are missing about a quarter of their records. This was being investigated by a technician and I was just asked the following question: If a PC is "hard-booted" can an Access DB lose records w/out showing signs of corruption (i.e. the db still runs)?" I really don't know the answer to this question. I have had nearly no experience w/db corruption, since starting with Access 5 years ago. I used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs hanging around actually...and corruption was a huge problem w/them. Anyone got any tips on this? Thanks! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Fri Feb 3 09:47:40 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 3 Feb 2006 10:47:40 -0500 Subject: [AccessD] Missing records In-Reply-To: <023001c628d7$3994f1a0$657aa8c0@ColbyM6805> Message-ID: I think John nailed it. Check all relations to this table. Just yesterday I had to restore about 14,000 expense records because she had deleted an employee rather than "terminating" (which means enter the date the employee was terminated) that employee. Cascade Delete is very powerful, which makes it very scary. I now have two things to change in my app - a relation property and to not allow deletes of employees. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby > Sent: Friday, February 03, 2006 10:34 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing records > > > John, > > The first thing to do is examine the relationships for the tables missing > records. If "cascade delete" is turned on (a NO-NO in my humble opinion) > then deleting a single record (such as a customer) will (after a > warning of > course) delete ALL child/grandchild/...greatgreatgreat records. > > Let's say that a client has invoices and invoice line items. > Yep, all gone. > Repair service calls / line items? Yep, all gone. Payments? Yep, all > gone. > > Cascade delete of a single (for example) customer record WILL delete all > child records, however far down they go. Potentially dozens or even > thousands of records, all gone because the user was "just > deleting a single > customer record". > > I pretty much design my databases to never turn on Cascade > delete, and then > build delete queries tied to buttons which only supervisors can see/click. > > 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 03, 2006 9:51 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Missing records > > We got a call from a department that has a small Access 2K db. > "Something" has happened, and they are missing about a quarter of their > records. This was being investigated by a technician and I was just asked > the following question: > > If a PC is "hard-booted" can an Access DB lose records w/out showing signs > of corruption (i.e. the db still runs)?" > > I really don't know the answer to this question. I have had nearly no > experience w/db corruption, since starting with Access 5 years ago. I used > to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs > hanging around > actually...and corruption was a huge problem w/them. > > Anyone got any tips on this? > > Thanks! > > John W Clark > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Fri Feb 3 09:56:51 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 3 Feb 2006 07:56:51 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard Message-ID: If the bat file runs when you double click it in explorer then you may need to reference the command executable in the run command. It's been years since I used the packaging wizard and crotchets like that are one of the key reasons I don't. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 5:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] OFFXPDEV Packaging Wizard Using the Office XP Developer packaging wizard, I tell it to run shrtcut.bat after completing the install. This creates a line in the setup.lst file that looks like this. [RunCommands] Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat This works fine in Win98 the short cut runs as expected. In Windows XP how ever it doesn't Changing to this Command1=0,1,$(AppPath),$(AppPath)\License.txt Works in both Win 98 and Win XP, note pad opens the file. Double clicking on the batch file works in both. It appears that batch files won't work from the install program, any ideas.??? I've searched the web but have found very little about the [RunCommands] item nor where to look for it. Thanks Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Feb 3 10:00:35 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Feb 2006 17:00:35 +0100 Subject: [AccessD] Missing records Message-ID: Hi John Oh no, why are you beating this horse again? Cascade delete is a very powerful and useful feature. However - just like fire - implement it only when you know what you are doing. Your example with invoices is bad. You never delete an invoice, and if you do (it might be a draft only) you will wish to delete all its invoice lines too. If you don't, you will have orphaned invoice lines, or you will have to bother the user with deleting line by line until the draft is empty and can be deleted. You may program your own routines to be fired at a click of the supervisor's button, but doing so is somewhat similar to building unbound forms in Access. As I wrote last time: You know all about this - normalization, relations and so on - so why be so scared? /gustav >>> jwcolby at ColbyConsulting.com 03-02-2006 16:33:46 >>> John, The first thing to do is examine the relationships for the tables missing records. If "cascade delete" is turned on (a NO-NO in my humble opinion) then deleting a single record (such as a customer) will (after a warning of course) delete ALL child/grandchild/...greatgreatgreat records. Let's say that a client has invoices and invoice line items. Yep, all gone. Repair service calls / line items? Yep, all gone. Payments? Yep, all gone. Cascade delete of a single (for example) customer record WILL delete all child records, however far down they go. Potentially dozens or even thousands of records, all gone because the user was "just deleting a single customer record". I pretty much design my databases to never turn on Cascade delete, and then build delete queries tied to buttons which only supervisors can see/click. John W. Colby www.ColbyConsulting.com From Gustav at cactus.dk Fri Feb 3 10:08:27 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Feb 2006 17:08:27 +0100 Subject: [AccessD] Missing records Message-ID: Hi Reuben Well, you didn't do your homework ... But as you note, it is very easy to correct: Enforce Referential Integrity and turn OFF Cascade Delete between Employee and Employee Journals (or whatever the details are). This way you don't need to do anything else. If a journal exists, the Employee of that can not be deleted no matter what the user do - not even if he/she has table level access. Very powerful. /gustav >>> reuben at gfconsultants.com 03-02-2006 16:47:40 >>> I think John nailed it. Check all relations to this table. Just yesterday I had to restore about 14,000 expense records because she had deleted an employee rather than "terminating" (which means enter the date the employee was terminated) that employee. Cascade Delete is very powerful, which makes it very scary. I now have two things to change in my app - a relation property and to not allow deletes of employees. Reuben Cummings GFC, LLC 812.523.1017 From bheid at appdevgrp.com Fri Feb 3 10:16:02 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 3 Feb 2006 11:16:02 -0500 Subject: [AccessD] A2K - Duplex Printing In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3B6E6@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34EE7@ADGSERVER> Have not done this to set the values, but I have read the values. Try something like this before creating the MDE or before sending out an MDB (air code and no error checking): Dim rpt As Report 'const acPRDPSimplex as long=1 'const acPRDPHorizontal as long=2 'const acPRDPVertical as long=3 ;open report in design view and hidden DoCmd.OpenReport "NameOfYourReport", acViewDesign, , , acHidden Set rpt = Reports("NameOfYourReport") 'valid values for duplex are acPRDPSimplex, acPRDPVertical,acPRDPHorizontal 'normal is acPRDPSimplex. In our app, reports that are landscape and print 'duplex use the acPRDPHorizontal constant. rpt.Printer.Duplex= acPRDPHorizontal DoCmd.Close acReport, .Name, acSaveYes set rpt=nothing Note that lots of times, I print duplex while testing and the duplex setting sticks. SO try that first. Let us know if this works for you. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, February 03, 2006 9:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Duplex Printing After I had driven about 1.5 hours back toward home I thought about that, Dan. I sure wish I would have tried it. I can have them do it. So, assuming the printer is working, how is the best way to setup an Access Report for this? One long report or the same report with a page break in it? Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters > Sent: Friday, February 03, 2006 9:10 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2K - Duplex Printing > > > Reuben, > > Will this printer print both sides on a document from another application? > Try making a 2 page document in Word and send it to the printer. If that > still gets you two pages then Access is not the issue. > > Duplex printing does not requires custom paper sizes. > > Dan > > > -------------------------------------------------------------------------- > > The printer is duplex and duplexing is turned on. > > Do I need my report to be designed as a single page, set to a custom paper > size, and then load the printer with said custom paper size? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 3 10:19:31 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 3 Feb 2006 08:19:31 -0800 Subject: [AccessD] Missing records Message-ID: I have to agree with you, Gustav. Cascading deletes are definitely not for DIY users but properly implemented, they save a lot of code! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 03, 2006 8:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing records Hi John Oh no, why are you beating this horse again? Cascade delete is a very powerful and useful feature. However - just like fire - implement it only when you know what you are doing. Your example with invoices is bad. You never delete an invoice, and if you do (it might be a draft only) you will wish to delete all its invoice lines too. If you don't, you will have orphaned invoice lines, or you will have to bother the user with deleting line by line until the draft is empty and can be deleted. You may program your own routines to be fired at a click of the supervisor's button, but doing so is somewhat similar to building unbound forms in Access. As I wrote last time: You know all about this - normalization, relations and so on - so why be so scared? /gustav >>> jwcolby at ColbyConsulting.com 03-02-2006 16:33:46 >>> John, The first thing to do is examine the relationships for the tables missing records. If "cascade delete" is turned on (a NO-NO in my humble opinion) then deleting a single record (such as a customer) will (after a warning of course) delete ALL child/grandchild/...greatgreatgreat records. Let's say that a client has invoices and invoice line items. Yep, all gone. Repair service calls / line items? Yep, all gone. Payments? Yep, all gone. Cascade delete of a single (for example) customer record WILL delete all child records, however far down they go. Potentially dozens or even thousands of records, all gone because the user was "just deleting a single customer record". I pretty much design my databases to never turn on Cascade delete, and then build delete queries tied to buttons which only supervisors can see/click. 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 John.Clark at niagaracounty.com Fri Feb 3 10:17:58 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 03 Feb 2006 11:17:58 -0500 Subject: [AccessD] Missing records Message-ID: Ha...backups...haha. It turns out that this program is backed up, or so they are telling me, once a month...yeah, I know. Apparently the data hasn't been altered since September...lost? me too...and the furthest backkup is exactly the same size, w/exactly the same number of records. I found out the program is called from my server, and we get a nightly backup from this server, but I don't manage the backups, so I'm not sure how far back I can go on this. I think I am going to get a little more involved on this one. I'm going to call the user myself...I'm beginning to wonder if they really are missing anything. It wouldn't be the first time something was over-reported initially, and the problem's scope actually changes to something totally different. I just thought of something...if the record count remains the same, but records were altered, will the file size change? I seem to remember, in another thread, that each record is x amount of bytes, no matter what you put in them...i.e. their structure actually takes the space. If this is correct, there could be changes. Monthly backups...indeed! ;<( >>> garykjos at gmail.com 2/3/2006 10:11 AM >>> We had something similar happen here a while back. I was able to import the missing records from a backup into the compacted and repaired current copy - the first thing I did when they said things were not working right was compact and repair - so that they didn't lose other updates and adds since the backup had been done two nights before. I created a third database and linked the main transaction tables from both versions and did an outer join to see what was in the old that was not in the new and then created a temporary table of those missing records which I then reviewed to be sure they should be readded and then finally did an append to put them into the current table. Fortunately this database is pretty much denormalized so most everything is in a single table and only that table was missing anything. We blamed network issues but really didn't have a "for sure that is what happened" explanation. It hadn't happened before or since. GK On 2/3/06, John Clark wrote: > We got a call from a department that has a small Access 2K db. > "Something" has happened, and they are missing about a quarter of their > records. This was being investigated by a technician and I was just > asked the following question: > > If a PC is "hard-booted" can an Access DB lose records w/out showing > signs of corruption (i.e. the db still runs)?" > > I really don't know the answer to this question. I have had nearly no > experience w/db corruption, since starting with Access 5 years ago. I > used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs > hanging around actually...and corruption was a huge problem w/them. > > Anyone got any tips on this? > > Thanks! > > John W Clark > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Fri Feb 3 10:27:00 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 03 Feb 2006 11:27:00 -0500 Subject: [AccessD] Same form, different actions Message-ID: Thank you for this John. I always feel bad, if I don't understand code...it is a respect thing with me. You, and many others on this list, have helped me in so many ways, so many times, and it feels like I am "stealing" when I don't take the time to learn, at least somewhat, what you have done in your code. I suspect that many of you "higher-level" members...the ones that help more than get helped...are doing this because you have some "mentor gene." And, learning the code is my way to show respect...and I don't want to keep asking the same questions. I appreciate this and it WILL definitely help me. My employer is WAY too cheap to allow me to pay for help...most of the time. They would watch me splash around in the water for way too long, before throwing me any lifesaver ;) By the way, I would also like to take this time to thank Darren Dick to helped me our recently. I didn't even realize how much he had helped at first. Thank you Darren. John W. Clark >>> jwcolby at colbyconsulting.com 1/31/2006 9:08 AM >>> Everyone, I want to point out that the entire point of classes (objects) is that you can just use them, you don't have to understand them. I know that some people want to learn how it works as well, but in the end, just start using it, THEN worry about digging in and seeing how it is programmed. Everything you use in Access as an object, and we don't have a clue how it works inside. Combos, text boxes, forms etc, all are objects that have methods and properties. You just use them, but don't know, nor care how it all happens inside the object. These classes I put out there, the SysVars classes, the openargs classes, the date picker class etc. all are things that you can just use yourself, even if you NEVER figure out how it works inside. And I might add , I am a consultant. If you have a project that needs this level of expertise, you can hire me to do it. John W. Colby www.ColbyConsulting.com From reuben at gfconsultants.com Fri Feb 3 11:14:44 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 3 Feb 2006 12:14:44 -0500 Subject: [AccessD] Missing records In-Reply-To: Message-ID: Honestly, I'm not sold on Cascade Delete being off. It makes it much easier to work if it's on when record does require deletion (like your invoice example). I really prefer to control it at the form by not allowing deletes there. If they can't delete it at the form level then Cascade Deletes never becomes an issue. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Friday, February 03, 2006 11:08 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Missing records > > > Hi Reuben > > Well, you didn't do your homework ... > > But as you note, it is very easy to correct: Enforce Referential > Integrity and turn OFF Cascade Delete between Employee and > Employee Journals (or whatever the details are). > This way you don't need to do anything else. If a journal exists, > the Employee of that can not be deleted no matter what the user > do - not even if he/she has table level access. Very powerful. > > /gustav > > >>> reuben at gfconsultants.com 03-02-2006 16:47:40 >>> > I think John nailed it. Check all relations to this table. > > Just yesterday I had to restore about 14,000 expense records > because she had > deleted an employee rather than "terminating" (which means enter the date > the employee was terminated) that employee. > > Cascade Delete is very powerful, which makes it very scary. > > I now have two things to change in my app - a relation property and to not > allow deletes of employees. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bill_Patten at earthlink.net Fri Feb 3 11:33:08 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Fri, 3 Feb 2006 09:33:08 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard References: Message-ID: <000501c628e7$e6712910$6501a8c0@BPCS> Thanks Charlotte, I presume you are suggesting something like Command1=0,1,$(AppPath),$(AppPath)\cmd.exe shrtCut.bat if so that didn't work either. Do you know if there is a way to use VSTO with Access XP Runtime? Bill ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 03, 2006 7:56 AM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard If the bat file runs when you double click it in explorer then you may need to reference the command executable in the run command. It's been years since I used the packaging wizard and crotchets like that are one of the key reasons I don't. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 5:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] OFFXPDEV Packaging Wizard Using the Office XP Developer packaging wizard, I tell it to run shrtcut.bat after completing the install. This creates a line in the setup.lst file that looks like this. [RunCommands] Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat This works fine in Win98 the short cut runs as expected. In Windows XP how ever it doesn't Changing to this Command1=0,1,$(AppPath),$(AppPath)\License.txt Works in both Win 98 and Win XP, note pad opens the file. Double clicking on the batch file works in both. It appears that batch files won't work from the install program, any ideas.??? I've searched the web but have found very little about the [RunCommands] item nor where to look for it. Thanks Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Fri Feb 3 11:37:01 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Fri, 03 Feb 2006 10:37:01 -0700 Subject: [AccessD] Missing records In-Reply-To: Message-ID: I disallow deletions from forms and restrict access to the database window. Forms have a delete button that marks a record deleted. I believe John uses a similar approach as I think I've heard it dicussed here before. There is also an undelete. If for example, if one of several contractors associated to a master estimate record is deleted and a user attempts to add the contrator again, that would violate an index restriction (Estimate PK and Contractor PK duplication), the user is notified that the contractor record on the subform exists as a deleted record, please undelete. If a parent record is deleted, I iterate the subform recordsetclone.eofs and advise of related records that will be marked deleted and prompt the user. The undelete 'cascades' in the same fashion, and the user has a warning about specific categories of related records. Each parent and each level of subform has its own delete button. Every form recordsource has a where condition 'Deleted = False" unless in undelete mode. That and daily daily backups plus many full copies at various times of the day on many laptops. So far this approach has proved almost infallible. Almost, because users have occasionally 'reused' a record by changing a record (perhaps 'natural key' information) from one to another rather than deleting. I now store a time stamp and UserID history for edits and adds and keep the last month's data so we can track who is responsible for the most common data errors in order that we can provide a bit of education and assistance (no Colby Mexico solution allowed here). Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Gustav Brock" > >Hi John > >Oh no, why are you beating this horse again? > >Cascade delete is a very powerful and useful feature. >However - just like fire - implement it only when you know what you are >doing. > >Your example with invoices is bad. You never delete an invoice, and if you >do (it might be a draft only) you will wish to delete all its invoice lines >too. If you don't, you will have orphaned invoice lines, or you will have >to bother the user with deleting line by line until the draft is empty and >can be deleted. > >You may program your own routines to be fired at a click of the >supervisor's button, but doing so is somewhat similar to building unbound >forms in Access. > >As I wrote last time: You know all about this - normalization, relations >and so on - so why be so scared? > >/gustav > > >>> jwcolby at ColbyConsulting.com 03-02-2006 16:33:46 >>> >John, > >The first thing to do is examine the relationships for the tables missing >records. If "cascade delete" is turned on (a NO-NO in my humble opinion) >then deleting a single record (such as a customer) will (after a warning of >course) delete ALL child/grandchild/...greatgreatgreat records. > >Let's say that a client has invoices and invoice line items. Yep, all >gone. >Repair service calls / line items? Yep, all gone. Payments? Yep, all >gone. > >Cascade delete of a single (for example) customer record WILL delete all >child records, however far down they go. Potentially dozens or even >thousands of records, all gone because the user was "just deleting a single >customer record". > >I pretty much design my databases to never turn on Cascade delete, and then >build delete queries tied to buttons which only supervisors can see/click. > >John W. Colby >www.ColbyConsulting.com From cfoust at infostatsystems.com Fri Feb 3 11:51:34 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 3 Feb 2006 09:51:34 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard Message-ID: Then I don't know what to suggest. I do know that trying to use the packaging wizard to install consistently on different versions of Windows is enough to drive you to drink! I have never tried the VSTO packager, even though I have it on my machine, because in that version, I'm working with .Net rather than Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Friday, February 03, 2006 9:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Thanks Charlotte, I presume you are suggesting something like Command1=0,1,$(AppPath),$(AppPath)\cmd.exe shrtCut.bat if so that didn't work either. Do you know if there is a way to use VSTO with Access XP Runtime? Bill ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 03, 2006 7:56 AM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard If the bat file runs when you double click it in explorer then you may need to reference the command executable in the run command. It's been years since I used the packaging wizard and crotchets like that are one of the key reasons I don't. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 5:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] OFFXPDEV Packaging Wizard Using the Office XP Developer packaging wizard, I tell it to run shrtcut.bat after completing the install. This creates a line in the setup.lst file that looks like this. [RunCommands] Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat This works fine in Win98 the short cut runs as expected. In Windows XP how ever it doesn't Changing to this Command1=0,1,$(AppPath),$(AppPath)\License.txt Works in both Win 98 and Win XP, note pad opens the file. Double clicking on the batch file works in both. It appears that batch files won't work from the install program, any ideas.??? I've searched the web but have found very little about the [RunCommands] item nor where to look for it. Thanks Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at ColbyConsulting.com Fri Feb 3 12:20:52 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 13:20:52 -0500 Subject: [AccessD] Missing records In-Reply-To: Message-ID: <024201c628ee$919e3570$657aa8c0@ColbyM6805> >Cascading deletes are definitely not for DIY users but properly implemented, they save a lot of code! ROTFL, yes they do. OF course who are the intended target of Access if not DIY users? And if (large chunks of) records are disappearing, what ONE item can rip the guts out of your database? I am not talking one record here and there, I am talking about dozens, Hundreds, even THOUSANDS of records from dozens of tables. IMPROPERLY IMPLEMENTED cascade deletes can TRASH the database. All to "save a lot of code". Hmmmm..... I am not scared, I just know that users ignore prompts. Gustav, I have sat looking over my users shoulders as they hit a prompt and just click "yes". I ask them what they just did and they always say "I don't know". I am not talking to you Gustav, but you always get up in arms as if I were. I keep reminding people of this because too many developers just ROUTINELY set a relationship and then set cascade delete true. Then wonder why, when a user, knowingly or unknowingly, deletes a record and doesn't even read the "are you sure" prompt but just clicks yes, loses half his database. Many perfectly competent developers just create a relationship and set cascade delete as a natural part of the relationship. After all, you must make sure you don't have orphans, right? The bottom line is that if I set a cascade delete true, then a user can delete those child records without understanding that they are doing so. A power user can write a query to delete an client and all the child items are gone. And then don't understand how records disappear! The answer is simple, in the hands of the majority of users, cascade deletes spell disaster. If I do NOT set that cascade delete, then the power user writes his query and when he tries to delete the client, he is told no, he has to go delete the invoices and service records, and shipping records etc. He now KNOWS what the consequences of deleting an client are. He can still delete them, but he has to do so intentionally, child table by child table. Suddenly he understands that it is also shipping he is affecting, the service department, and so forth. So Gustav, and Charlotte, and anyone else out there that wants to use cascade deletes, have fun, and keep your backups handy. 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: Friday, February 03, 2006 11:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records I have to agree with you, Gustav. Cascading deletes are definitely not for DIY users but properly implemented, they save a lot of code! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 03, 2006 8:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing records Hi John Oh no, why are you beating this horse again? Cascade delete is a very powerful and useful feature. However - just like fire - implement it only when you know what you are doing. Your example with invoices is bad. You never delete an invoice, and if you do (it might be a draft only) you will wish to delete all its invoice lines too. If you don't, you will have orphaned invoice lines, or you will have to bother the user with deleting line by line until the draft is empty and can be deleted. You may program your own routines to be fired at a click of the supervisor's button, but doing so is somewhat similar to building unbound forms in Access. As I wrote last time: You know all about this - normalization, relations and so on - so why be so scared? /gustav >>> jwcolby at ColbyConsulting.com 03-02-2006 16:33:46 >>> John, The first thing to do is examine the relationships for the tables missing records. If "cascade delete" is turned on (a NO-NO in my humble opinion) then deleting a single record (such as a customer) will (after a warning of course) delete ALL child/grandchild/...greatgreatgreat records. Let's say that a client has invoices and invoice line items. Yep, all gone. Repair service calls / line items? Yep, all gone. Payments? Yep, all gone. Cascade delete of a single (for example) customer record WILL delete all child records, however far down they go. Potentially dozens or even thousands of records, all gone because the user was "just deleting a single customer record". I pretty much design my databases to never turn on Cascade delete, and then build delete queries tied to buttons which only supervisors can see/click. 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 jwcolby at ColbyConsulting.com Fri Feb 3 12:30:37 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 13:30:37 -0500 Subject: [AccessD] Missing records In-Reply-To: Message-ID: <024301c628ef$ee20ce60$657aa8c0@ColbyM6805> >Just yesterday I had to restore about 14,000 expense records because she had deleted an employee rather than "terminating" (which means enter the date the employee was terminated) that employee. Now imagine that this occurred a year ago? How do you find the backup? People aren't always aware that what they did was a mistake. It can be months before some vice president generates a report somewhere and says "hmmm... Something doesn't look right here". You were lucky and discovered the error immediately. Long ago I designed an active/trash system for my databases. A user clicks "delete", I intercept the error from Jet saying that there are child records and set the trash flag and clear the active flag. Requery the form, and since only active records are displayed, the "deleted" record disappears. I can't tell you how many times I have "undeleted" a record. Very satisfying actually. If the record actually is trash, a periodic process reports all the trash records and a supervisor can decide whether to actually delete the records. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, February 03, 2006 10:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records I think John nailed it. Check all relations to this table. Just yesterday I had to restore about 14,000 expense records because she had deleted an employee rather than "terminating" (which means enter the date the employee was terminated) that employee. Cascade Delete is very powerful, which makes it very scary. I now have two things to change in my app - a relation property and to not allow deletes of employees. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby > Sent: Friday, February 03, 2006 10:34 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing records > > > John, > > The first thing to do is examine the relationships for the tables > missing records. If "cascade delete" is turned on (a NO-NO in my > humble opinion) then deleting a single record (such as a customer) > will (after a warning of > course) delete ALL child/grandchild/...greatgreatgreat records. > > Let's say that a client has invoices and invoice line items. > Yep, all gone. > Repair service calls / line items? Yep, all gone. Payments? Yep, > all gone. > > Cascade delete of a single (for example) customer record WILL delete > all child records, however far down they go. Potentially dozens or > even thousands of records, all gone because the user was "just > deleting a single customer record". > > I pretty much design my databases to never turn on Cascade delete, and > then build delete queries tied to buttons which only supervisors can > see/click. > > 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 03, 2006 9:51 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Missing records > > We got a call from a department that has a small Access 2K db. > "Something" has happened, and they are missing about a quarter of > their records. This was being investigated by a technician and I was > just asked the following question: > > If a PC is "hard-booted" can an Access DB lose records w/out showing > signs of corruption (i.e. the db still runs)?" > > I really don't know the answer to this question. I have had nearly no > experience w/db corruption, since starting with Access 5 years ago. I > used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs > hanging around actually...and corruption was a huge problem w/them. > > Anyone got any tips on this? > > Thanks! > > John W Clark > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Fri Feb 3 12:46:19 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 3 Feb 2006 13:46:19 -0500 Subject: [AccessD] Missing records In-Reply-To: <024301c628ef$ee20ce60$657aa8c0@ColbyM6805> Message-ID: I'm fortunate in that most of my clients use my very own Zip and Send feature to send zipped copies of their databases to me on a fairly regular schedule. I had a reasonably recent copy of the db here and could find the missing records before going on site. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby > Sent: Friday, February 03, 2006 1:31 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing records > > > >Just yesterday I had to restore about 14,000 expense records because she > had deleted an employee rather than "terminating" (which means enter the > date the employee was terminated) that employee. > > Now imagine that this occurred a year ago? How do you find the backup? > People aren't always aware that what they did was a mistake. It can be > months before some vice president generates a report somewhere and says > "hmmm... Something doesn't look right here". You were lucky and > discovered > the error immediately. > > Long ago I designed an active/trash system for my databases. A > user clicks > "delete", I intercept the error from Jet saying that there are > child records > and set the trash flag and clear the active flag. Requery the form, and > since only active records are displayed, the "deleted" record > disappears. I > can't tell you how many times I have "undeleted" a record. > > Very satisfying actually. > > If the record actually is trash, a periodic process reports all the trash > records and a supervisor can decide whether to actually delete > the records. > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, February 03, 2006 10:48 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing records > > I think John nailed it. Check all relations to this table. > > Just yesterday I had to restore about 14,000 expense records > because she had > deleted an employee rather than "terminating" (which means enter the date > the employee was terminated) that employee. > > Cascade Delete is very powerful, which makes it very scary. > > I now have two things to change in my app - a relation property and to not > allow deletes of employees. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby > > Sent: Friday, February 03, 2006 10:34 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Missing records > > > > > > John, > > > > The first thing to do is examine the relationships for the tables > > missing records. If "cascade delete" is turned on (a NO-NO in my > > humble opinion) then deleting a single record (such as a customer) > > will (after a warning of > > course) delete ALL child/grandchild/...greatgreatgreat records. > > > > Let's say that a client has invoices and invoice line items. > > Yep, all gone. > > Repair service calls / line items? Yep, all gone. Payments? Yep, > > all gone. > > > > Cascade delete of a single (for example) customer record WILL delete > > all child records, however far down they go. Potentially dozens or > > even thousands of records, all gone because the user was "just > > deleting a single customer record". > > > > I pretty much design my databases to never turn on Cascade delete, and > > then build delete queries tied to buttons which only supervisors can > > see/click. > > > > 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 03, 2006 9:51 AM > > To: accessd at databaseadvisors.com > > Subject: [AccessD] Missing records > > > > We got a call from a department that has a small Access 2K db. > > "Something" has happened, and they are missing about a quarter of > > their records. This was being investigated by a technician and I was > > just asked the following question: > > > > If a PC is "hard-booted" can an Access DB lose records w/out showing > > signs of corruption (i.e. the db still runs)?" > > > > I really don't know the answer to this question. I have had nearly no > > experience w/db corruption, since starting with Access 5 years ago. I > > used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs > > hanging around actually...and corruption was a huge problem w/them. > > > > Anyone got any tips on this? > > > > Thanks! > > > > John W Clark > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at ColbyConsulting.com Fri Feb 3 12:54:47 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 13:54:47 -0500 Subject: [AccessD] Missing records In-Reply-To: Message-ID: <024a01c628f3$4e785230$657aa8c0@ColbyM6805> >I really prefer to control it at the form by not allowing deletes there. If they can't delete it at the form level then Cascade Deletes never becomes an issue. And so I design a new form and forget to.... I am a VP and remoting in from home and build a query and... I am the power user and manage to get to the database window and... Your job is to outsmart the idiots. God's job is to design better idiots. Who has been on the job longer? The database engine has these things for a reason. You can't delete my client record I don't care WHAT you do, without deleting all child records first, in all child tables. Again, I don't care if you use them, I just care that you UNDERSTAND the consequences of using them. Lord knows if you don't have time to build a delete query and a button that only supervisors can get to, you don't have time to design an Active / trash system. Whatever you do, do NOT believe that backups can always rescue your young *ss. If some particularly smart idiot has been unknowingly deleting things over the last year, you will NEVER get all the records out of all the backup tapes. Understand the consequences, then make an informed decision. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, February 03, 2006 12:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records Honestly, I'm not sold on Cascade Delete being off. It makes it much easier to work if it's on when record does require deletion (like your invoice example). I really prefer to control it at the form by not allowing deletes there. If they can't delete it at the form level then Cascade Deletes never becomes an issue. Reuben Cummings GFC, LLC 812.523.1017 From jwcolby at ColbyConsulting.com Fri Feb 3 12:57:03 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 13:57:03 -0500 Subject: [AccessD] Missing records In-Reply-To: Message-ID: <024b01c628f3$9fb7e1b0$657aa8c0@ColbyM6805> >Forms have a delete button that marks a record deleted. I believe John uses a similar approach as I think I've heard it dicussed here before. I actually trap the error that Jet generates when a parent record delete fails because child records exist and cascade delete is off. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J??rgen Welz Sent: Friday, February 03, 2006 12:37 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing records I disallow deletions from forms and restrict access to the database window. Forms have a delete button that marks a record deleted. I believe John uses a similar approach as I think I've heard it dicussed here before. There is also an undelete. If for example, if one of several contractors associated to a master estimate record is deleted and a user attempts to add the contrator again, that would violate an index restriction (Estimate PK and Contractor PK duplication), the user is notified that the contractor record on the subform exists as a deleted record, please undelete. If a parent record is deleted, I iterate the subform recordsetclone.eofs and advise of related records that will be marked deleted and prompt the user. The undelete 'cascades' in the same fashion, and the user has a warning about specific categories of related records. Each parent and each level of subform has its own delete button. Every form recordsource has a where condition 'Deleted = False" unless in undelete mode. That and daily daily backups plus many full copies at various times of the day on many laptops. So far this approach has proved almost infallible. Almost, because users have occasionally 'reused' a record by changing a record (perhaps 'natural key' information) from one to another rather than deleting. I now store a time stamp and UserID history for edits and adds and keep the last month's data so we can track who is responsible for the most common data errors in order that we can provide a bit of education and assistance (no Colby Mexico solution allowed here). Ciao J|rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Gustav Brock" > >Hi John > >Oh no, why are you beating this horse again? > >Cascade delete is a very powerful and useful feature. >However - just like fire - implement it only when you know what you are >doing. > >Your example with invoices is bad. You never delete an invoice, and if >you do (it might be a draft only) you will wish to delete all its >invoice lines too. If you don't, you will have orphaned invoice lines, >or you will have to bother the user with deleting line by line until >the draft is empty and can be deleted. > >You may program your own routines to be fired at a click of the >supervisor's button, but doing so is somewhat similar to building >unbound forms in Access. > >As I wrote last time: You know all about this - normalization, >relations and so on - so why be so scared? > >/gustav > > >>> jwcolby at ColbyConsulting.com 03-02-2006 16:33:46 >>> >John, > >The first thing to do is examine the relationships for the tables >missing records. If "cascade delete" is turned on (a NO-NO in my >humble opinion) then deleting a single record (such as a customer) will >(after a warning of >course) delete ALL child/grandchild/...greatgreatgreat records. > >Let's say that a client has invoices and invoice line items. Yep, all >gone. >Repair service calls / line items? Yep, all gone. Payments? Yep, all >gone. > >Cascade delete of a single (for example) customer record WILL delete >all child records, however far down they go. Potentially dozens or >even thousands of records, all gone because the user was "just deleting >a single customer record". > >I pretty much design my databases to never turn on Cascade delete, and >then build delete queries tied to buttons which only supervisors can see/click. > >John W. Colby >www.ColbyConsulting.com From Gustav at cactus.dk Fri Feb 3 13:01:47 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 03 Feb 2006 20:01:47 +0100 Subject: [AccessD] Missing records Message-ID: Hi John I doubt that. Cascade delete is not marked as default. If you - as a developer - just put marks around here and there without knowing what the consequences could be, you are in trouble. The ultimate method to avoid all this worry is to use an append-only database backend. An interesting approach worth considering given the high availability and low cost of storage these days ... /gustav >>> jwcolby at ColbyConsulting.com 03-02-2006 19:20 >>> I keep reminding people of this because too many developers just ROUTINELY set a relationship and then set cascade delete true. Then wonder why, when a user, knowingly or unknowingly, deletes a record and doesn't even read the "are you sure" prompt but just clicks yes, loses half his database. Many perfectly competent developers just create a relationship and set cascade delete as a natural part of the relationship. After all, you must make sure you don't have orphans, right? From KIsmert at texassystems.com Fri Feb 3 13:26:41 2006 From: KIsmert at texassystems.com (Ken Ismert) Date: Fri, 3 Feb 2006 13:26:41 -0600 Subject: [AccessD] OT: Linux, Open Suite and Access Message-ID: Brian, >> (Ken) I ... found out these things about Kexi: >> * No Reports yet. >> (Brian) Doh!! The knock out punch ... I wonder if pushing the data >> to a KWord document might work ... Funny you should mention that. They are in fact thinking of basing the Kexi reporting component on Kword: http://www.kexi-project.org/wiki/wikiview/index.php?Reporting Also, I looked for Open-Source Reporting engines, and found these links: PHP-Based ========= Agata Report http://www.agata.org.br/us/index.php?file=home.php RLIB http://rlib.sicompos.com/ SpoolTemplate http://www.andrioli.com/en/sptpl.html Java-Based ========== DataVision http://datavision.sourceforge.net/ JasperReports http://jasperreports.sourceforge.net/ xReporter http://cocoondev.org/xreporter/index.html JFreeChart http://www.jfree.org/jfreechart/index.php JFreeReport -- Active? http://www.object-refinery.com/jfreereport/ -Ken From John.Clark at niagaracounty.com Fri Feb 3 13:25:57 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 03 Feb 2006 14:25:57 -0500 Subject: [AccessD] Missing records Message-ID: John, I just read this quote, out loud, to my office mates. It is early, but so far I think you've obtained "quote of the year." They want me to print this out, so that we never forget it...the words that is, the sentiment we can't escape! Do you want recognition, or should I list "anonymous?" We've got a local quote that won a couple of years ago, and still hangs in our department. One of our legislators uttered the words, "This is not a political matter. It is a serious matter." >>> jwcolby at colbyconsulting.com 2/3/2006 1:54:47 PM >>> "Your job is to outsmart the idiots. God's job is to design better idiots. Who has been on the job longer?" From wdhindman at bellsouth.net Fri Feb 3 13:58:45 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 3 Feb 2006 14:58:45 -0500 Subject: [AccessD] OFFXPDEV Packaging Wizard References: Message-ID: <001901c628fc$3dbddb00$1801a8c0@50NM721> ...there is apparently a difference in how '98 and XPSP2 handles .bat files ...'98 just runs them ...XPSP2 sees them as "system" files and "may" require admin priviledges unless your group policies are fudged. William ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 03, 2006 10:56 AM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard > If the bat file runs when you double click it in explorer then you may > need to reference the command executable in the run command. It's been > years since I used the packaging wizard and crotchets like that are one > of the key reasons I don't. > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten > Sent: Thursday, February 02, 2006 5:54 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OFFXPDEV Packaging Wizard > > > Using the Office XP Developer packaging wizard, I tell it to run > shrtcut.bat after completing the install. This creates a line in the > setup.lst file that looks like this. [RunCommands] > Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat > > This works fine in Win98 the short cut runs as expected. In Windows XP > how ever it doesn't Changing to this > Command1=0,1,$(AppPath),$(AppPath)\License.txt > Works in both Win 98 and Win XP, note pad opens the file. Double > clicking on the batch file works in both. It appears that batch files > won't work from the install program, any ideas.??? I've searched the web > but have found very little about the [RunCommands] item nor where to > look for it. > > > Thanks > > Bill > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Fri Feb 3 14:10:10 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 3 Feb 2006 14:10:10 -0600 Subject: [AccessD] A2K - Duplex Printing In-Reply-To: <29354903.1138977654525.JavaMail.root@sniper19> Message-ID: <000001c628fd$d63a26d0$0200a8c0@danwaters> Hi Reuben, Sorry about the long trip! I just tried out my printer for the first time with an Access report. When in the printing dialog box, I set the printer properties for duplex printing, and my Access report happily printed on both sides. I did not change anything in the report itself. The code listed in Heidi's response looks like it will make sure that a report is printed in duplex without the user having to set the printer's properties to duplex prior to actually printing. This is good because I need to actually check duplex in the printer properties window each time I restart my PC - the setting doesn't 'stick'. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Friday, February 03, 2006 8:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K - Duplex Printing After I had driven about 1.5 hours back toward home I thought about that, Dan. I sure wish I would have tried it. I can have them do it. So, assuming the printer is working, how is the best way to setup an Access Report for this? One long report or the same report with a page break in it? Reuben Cummings GFC, LLC 812.523.1017 From reuben at gfconsultants.com Fri Feb 3 14:10:13 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 3 Feb 2006 15:10:13 -0500 Subject: [AccessD] Missing records In-Reply-To: <024a01c628f3$4e785230$657aa8c0@ColbyM6805> Message-ID: > >I really prefer to control it at the form by not allowing deletes there. > If they can't delete it at the form level then Cascade Deletes > never becomes > an issue. Not true. Cascade Delete could still be used. It would simply require a different method of initiating the deletion of the parent record. For example, I may not allow deletes on the form. However, I could allow the user to select that record for deletion in some other manner and delete it thru a function. I understand the potential consequences of both methods and don't really care who uses what method. I think everyone here is smart enough to determine which way is best for them in any particular app. I happened to overlook a property in one form and a ladt deleted 14,000 records. I recovered those records and have since corrected the form. Everyone makes mistakes. Fortunately, as humans we have an amazing ability to quickly learn from those mistakes. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby > Sent: Friday, February 03, 2006 1:55 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing records > > > >I really prefer to control it at the form by not allowing deletes there. > If they can't delete it at the form level then Cascade Deletes > never becomes > an issue. > > And so I design a new form and forget to.... I am a VP and > remoting in from > home and build a query and... I am the power user and manage to > get to the > database window and... > > Your job is to outsmart the idiots. God's job is to design better idiots. > Who has been on the job longer? > > The database engine has these things for a reason. You can't delete my > client record I don't care WHAT you do, without deleting all child records > first, in all child tables. > > Again, I don't care if you use them, I just care that you UNDERSTAND the > consequences of using them. Lord knows if you don't have time to build a > delete query and a button that only supervisors can get to, you don't have > time to design an Active / trash system. > > Whatever you do, do NOT believe that backups can always rescue your young > *ss. If some particularly smart idiot has been unknowingly > deleting things > over the last year, you will NEVER get all the records out of all > the backup > tapes. > > Understand the consequences, then make an informed decision. > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, February 03, 2006 12:15 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing records > > Honestly, I'm not sold on Cascade Delete being off. It makes it > much easier > to work if it's on when record does require deletion (like your invoice > example). > > I really prefer to control it at the form by not allowing deletes > there. If > they can't delete it at the form level then Cascade Deletes never > becomes an > issue. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > -- > 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 3 14:14:06 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 15:14:06 -0500 Subject: [AccessD] Missing records In-Reply-To: Message-ID: <024f01c628fe$63368740$657aa8c0@ColbyM6805> ROTFL I just paraphrased something I read somewhere. 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 03, 2006 2:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing records John, I just read this quote, out loud, to my office mates. It is early, but so far I think you've obtained "quote of the year." They want me to print this out, so that we never forget it...the words that is, the sentiment we can't escape! Do you want recognition, or should I list "anonymous?" We've got a local quote that won a couple of years ago, and still hangs in our department. One of our legislators uttered the words, "This is not a political matter. It is a serious matter." >>> jwcolby at colbyconsulting.com 2/3/2006 1:54:47 PM >>> "Your job is to outsmart the idiots. God's job is to design better idiots. Who has been on the job longer?" -- 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 3 14:30:20 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 03 Feb 2006 12:30:20 -0800 Subject: [AccessD] Missing records In-Reply-To: Message-ID: <002901c62900$a72386e0$017ba8c0@xpserver> Hi Rueben: It is so system dependant on the way records are handled. When it comes to POS and Accounting systems, records can simply not be removed as there would be no way to follow the course of transactions or perform a forensic audit. If Access had a cascading record de-activation as well as a delete that would save a lot of coding. My two cents worth. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: February 3, 2006 9:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records Honestly, I'm not sold on Cascade Delete being off. It makes it much easier to work if it's on when record does require deletion (like your invoice example). I really prefer to control it at the form by not allowing deletes there. If they can't delete it at the form level then Cascade Deletes never becomes an issue. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Friday, February 03, 2006 11:08 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Missing records > > > Hi Reuben > > Well, you didn't do your homework ... > > But as you note, it is very easy to correct: Enforce Referential > Integrity and turn OFF Cascade Delete between Employee and > Employee Journals (or whatever the details are). > This way you don't need to do anything else. If a journal exists, > the Employee of that can not be deleted no matter what the user > do - not even if he/she has table level access. Very powerful. > > /gustav > > >>> reuben at gfconsultants.com 03-02-2006 16:47:40 >>> > I think John nailed it. Check all relations to this table. > > Just yesterday I had to restore about 14,000 expense records > because she had > deleted an employee rather than "terminating" (which means enter the date > the employee was terminated) that employee. > > Cascade Delete is very powerful, which makes it very scary. > > I now have two things to change in my app - a relation property and to not > allow deletes of employees. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_Patten at earthlink.net Fri Feb 3 14:44:58 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Fri, 3 Feb 2006 12:44:58 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard References: <001901c628fc$3dbddb00$1801a8c0@50NM721> Message-ID: <004e01c62902$b2e20c70$6501a8c0@BPCS> Thanks for the reply, William, On the machine I am testing I do have admin privileges, so that's not it. In fact the batch file runs fine if you double click on it in XP. I was really just trying to copy the shortcut from the start menu/programs to the desktop, since it works in 98 I'll leave it and give them Win XP users the option on the opening menu of the app when it runs. It may turn out that we have few 98 users in which case I can switch to 2003 and it already has the option to put the short cut on the desk top. Bill ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Friday, February 03, 2006 11:58 AM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard ...there is apparently a difference in how '98 and XPSP2 handles .bat files ...'98 just runs them ...XPSP2 sees them as "system" files and "may" require admin priviledges unless your group policies are fudged. William ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 03, 2006 10:56 AM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard > If the bat file runs when you double click it in explorer then you may > need to reference the command executable in the run command. It's been > years since I used the packaging wizard and crotchets like that are one > of the key reasons I don't. > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten > Sent: Thursday, February 02, 2006 5:54 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OFFXPDEV Packaging Wizard > > > Using the Office XP Developer packaging wizard, I tell it to run > shrtcut.bat after completing the install. This creates a line in the > setup.lst file that looks like this. [RunCommands] > Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat > > This works fine in Win98 the short cut runs as expected. In Windows XP > how ever it doesn't Changing to this > Command1=0,1,$(AppPath),$(AppPath)\License.txt > Works in both Win 98 and Win XP, note pad opens the file. Double > clicking on the batch file works in both. It appears that batch files > won't work from the install program, any ideas.??? I've searched the web > but have found very little about the [RunCommands] item nor where to > look for it. > > > Thanks > > Bill > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_Patten at earthlink.net Fri Feb 3 14:45:41 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Fri, 3 Feb 2006 12:45:41 -0800 Subject: [AccessD] OFFXPDEV Packaging Wizard References: Message-ID: <005201c62902$ccd54480$6501a8c0@BPCS> Thanks for trying Charlotte, I guess there is no easy way. Bill ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 03, 2006 9:51 AM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Then I don't know what to suggest. I do know that trying to use the packaging wizard to install consistently on different versions of Windows is enough to drive you to drink! I have never tried the VSTO packager, even though I have it on my machine, because in that version, I'm working with .Net rather than Access. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Friday, February 03, 2006 9:33 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OFFXPDEV Packaging Wizard Thanks Charlotte, I presume you are suggesting something like Command1=0,1,$(AppPath),$(AppPath)\cmd.exe shrtCut.bat if so that didn't work either. Do you know if there is a way to use VSTO with Access XP Runtime? Bill ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 03, 2006 7:56 AM Subject: Re: [AccessD] OFFXPDEV Packaging Wizard If the bat file runs when you double click it in explorer then you may need to reference the command executable in the run command. It's been years since I used the packaging wizard and crotchets like that are one of the key reasons I don't. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Thursday, February 02, 2006 5:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] OFFXPDEV Packaging Wizard Using the Office XP Developer packaging wizard, I tell it to run shrtcut.bat after completing the install. This creates a line in the setup.lst file that looks like this. [RunCommands] Command1=0,1,$(AppPath),$(AppPath)\shrtCut.bat This works fine in Win98 the short cut runs as expected. In Windows XP how ever it doesn't Changing to this Command1=0,1,$(AppPath),$(AppPath)\License.txt Works in both Win 98 and Win XP, note pad opens the file. Double clicking on the batch file works in both. It appears that batch files won't work from the install program, any ideas.??? I've searched the web but have found very little about the [RunCommands] item nor where to look for it. Thanks Bill -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Fri Feb 3 15:22:31 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 3 Feb 2006 15:22:31 -0600 Subject: [AccessD] Missing records Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9F9@corp-es01.fleetpride.com> or be awarded the Darwin award posthumously....... Jim Hale -----Original Message----- From: Reuben Cummings [mailto:reuben at gfconsultants.com] Sent: Friday, February 03, 2006 2:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records > >I really prefer to control it at the form by not allowing deletes there. > If they can't delete it at the form level then Cascade Deletes > never becomes > an issue. Not true. Cascade Delete could still be used. It would simply require a different method of initiating the deletion of the parent record. For example, I may not allow deletes on the form. However, I could allow the user to select that record for deletion in some other manner and delete it thru a function. I understand the potential consequences of both methods and don't really care who uses what method. I think everyone here is smart enough to determine which way is best for them in any particular app. I happened to overlook a property in one form and a ladt deleted 14,000 records. I recovered those records and have since corrected the form. Everyone makes mistakes. Fortunately, as humans we have an amazing ability to quickly learn from those mistakes. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby > Sent: Friday, February 03, 2006 1:55 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Missing records > > > >I really prefer to control it at the form by not allowing deletes there. > If they can't delete it at the form level then Cascade Deletes > never becomes > an issue. > > And so I design a new form and forget to.... I am a VP and > remoting in from > home and build a query and... I am the power user and manage to > get to the > database window and... > > Your job is to outsmart the idiots. God's job is to design better idiots. > Who has been on the job longer? > > The database engine has these things for a reason. You can't delete my > client record I don't care WHAT you do, without deleting all child records > first, in all child tables. > > Again, I don't care if you use them, I just care that you UNDERSTAND the > consequences of using them. Lord knows if you don't have time to build a > delete query and a button that only supervisors can get to, you don't have > time to design an Active / trash system. > > Whatever you do, do NOT believe that backups can always rescue your young > *ss. If some particularly smart idiot has been unknowingly > deleting things > over the last year, you will NEVER get all the records out of all > the backup > tapes. > > Understand the consequences, then make an informed decision. > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings > Sent: Friday, February 03, 2006 12:15 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Missing records > > Honestly, I'm not sold on Cascade Delete being off. It makes it > much easier > to work if it's on when record does require deletion (like your invoice > example). > > I really prefer to control it at the form by not allowing deletes > there. If > they can't delete it at the form level then Cascade Deletes never > becomes an > issue. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Jim.Hale at FleetPride.com Fri Feb 3 15:33:57 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 3 Feb 2006 15:33:57 -0600 Subject: [AccessD] Missing records Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9FA@corp-es01.fleetpride.com> but I thought you were god??!! Oh well, another belief system shot down the tubes..... Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Friday, February 03, 2006 2:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing records ROTFL I just paraphrased something I read somewhere. 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 03, 2006 2:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Missing records John, I just read this quote, out loud, to my office mates. It is early, but so far I think you've obtained "quote of the year." They want me to print this out, so that we never forget it...the words that is, the sentiment we can't escape! Do you want recognition, or should I list "anonymous?" We've got a local quote that won a couple of years ago, and still hangs in our department. One of our legislators uttered the words, "This is not a political matter. It is a serious matter." >>> jwcolby at colbyconsulting.com 2/3/2006 1:54:47 PM >>> "Your job is to outsmart the idiots. God's job is to design better idiots. Who has been on the job longer?" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From jwelz at hotmail.com Fri Feb 3 16:05:13 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Fri, 03 Feb 2006 15:05:13 -0700 Subject: [AccessD] Missing records In-Reply-To: <024a01c628f3$4e785230$657aa8c0@ColbyM6805> Message-ID: One trick is not to forget to remove deletion capability. I have a series of routines that are run when an update is released to users. The update 'cannot' be distributed without running the update procedure that moves the update to the users' folders. One of the sub routines called prior to the file copy sub routine is: Public Sub RemoveDeletionCapabilitiesFromAllForms() On Error GoTo ErrorHandler Dim dbs As DAO.Database Dim ctr As Container Dim doc As Document Set dbs = CurrentDb Set ctr = dbs.Containers!Forms For Each doc In ctr.Documents DoCmd.OpenForm doc.Name, acDesign Forms(doc.Name).AllowDeletions = False DoCmd.Close acForm, doc.Name, acSaveYes DoEvents Next doc ExitRoutine: On Error Resume Next Set doc = Nothing Set ctr = Nothing Set dbs = Nothing Exit Sub ErrorHandler: With Err Select Case .Number Case Else MsgBox .Number & vbCrLf & .Description, vbInformation, "Error - RemoveDeletionCapabilitiesFromAllForms" End Select End With 'Resume 0 Resume ExitRoutine End Sub I could copy files manually and skip using the FE distribution procedure, but I have not done this once in the past 5 years because it is simpler and faster to run the code that handles updating the users. I don't allow deletes. PERIOD. Cascades on or off. Makes no difference. If I want to cascade "marked deleted', I have to do it in code. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "John Colby" > > >I really prefer to control it at the form by not allowing deletes there. >If they can't delete it at the form level then Cascade Deletes never >becomes >an issue. > >And so I design a new form and forget to.... I am a VP and remoting in from >home and build a query and... I am the power user and manage to get to the >database window and... > >Your job is to outsmart the idiots. God's job is to design better idiots. >Who has been on the job longer? > >The database engine has these things for a reason. You can't delete my >client record I don't care WHAT you do, without deleting all child records >first, in all child tables. > >Again, I don't care if you use them, I just care that you UNDERSTAND the >consequences of using them. Lord knows if you don't have time to build a >delete query and a button that only supervisors can get to, you don't have >time to design an Active / trash system. > >Whatever you do, do NOT believe that backups can always rescue your young >*ss. If some particularly smart idiot has been unknowingly deleting things >over the last year, you will NEVER get all the records out of all the >backup >tapes. > >Understand the consequences, then make an informed decision. > >John W. Colby >www.ColbyConsulting.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings >Sent: Friday, February 03, 2006 12:15 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Missing records > >Honestly, I'm not sold on Cascade Delete being off. It makes it much >easier >to work if it's on when record does require deletion (like your invoice >example). > >I really prefer to control it at the form by not allowing deletes there. >If >they can't delete it at the form level then Cascade Deletes never becomes >an >issue. > >Reuben Cummings >GFC, LLC >812.523.1017 From jwcolby at ColbyConsulting.com Fri Feb 3 16:08:09 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 17:08:09 -0500 Subject: [AccessD] Missing records In-Reply-To: <002901c62900$a72386e0$017ba8c0@xpserver> Message-ID: <025301c6290e$517e4af0$657aa8c0@ColbyM6805> That is a good point. How critical is the data? If it is accounting data for a vets office, then you better treat it differently than if it is a recipe database for your wife. The bottom line is that controlling deletes at the form level simply isn't very secure at all. As a professional I can get around that at will. I (some programmer) might very well be HIRED INTENTIONALLY to build a completely different application or FE that talks to your tables. The fact that you prevent these deletes in YOUR app doesn't mean I am preventing them in mine! Even a non professional can often "find" a way", usually accidentally. I have never seen anyone find a way around JET (or SQL Server) when cascade deletes were turned off, other than deleting the records from child table up, intentionally and with forethought and malice. I gave up on preventing hackers from doing their damage. I am very successful preventing accidental damage, and my success comes from using the tools that Jet (or the database engine) gives me, free of charge. My (the programmer's) convenience should not be the issue here. 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 Sent: Friday, February 03, 2006 3:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing records Hi Rueben: It is so system dependant on the way records are handled. When it comes to POS and Accounting systems, records can simply not be removed as there would be no way to follow the course of transactions or perform a forensic audit. If Access had a cascading record de-activation as well as a delete that would save a lot of coding. My two cents worth. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: February 3, 2006 9:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records Honestly, I'm not sold on Cascade Delete being off. It makes it much easier to work if it's on when record does require deletion (like your invoice example). I really prefer to control it at the form by not allowing deletes there. If they can't delete it at the form level then Cascade Deletes never becomes an issue. Reuben Cummings GFC, LLC 812.523.1017 From accessd at shaw.ca Fri Feb 3 17:25:32 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 03 Feb 2006 15:25:32 -0800 Subject: [AccessD] Missing records In-Reply-To: <025301c6290e$517e4af0$657aa8c0@ColbyM6805> Message-ID: <003f01c62919$20b45c10$017ba8c0@xpserver> John; Excellent points... programming is not supposed to be easy, on the Programmer but easy on the Client. I handle service agreement as if they were insurance policies. Just as mountain climbing may void your life insurance so may not doing backups void your service agreement or at least cost you more. It is pointless for the insurer to wreak their own policy but writing bad code which the client should not be expected to pay for... like leaving the cascading delete on and praying nothing happens. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: February 3, 2006 2:08 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing records That is a good point. How critical is the data? If it is accounting data for a vets office, then you better treat it differently than if it is a recipe database for your wife. The bottom line is that controlling deletes at the form level simply isn't very secure at all. As a professional I can get around that at will. I (some programmer) might very well be HIRED INTENTIONALLY to build a completely different application or FE that talks to your tables. The fact that you prevent these deletes in YOUR app doesn't mean I am preventing them in mine! Even a non professional can often "find" a way", usually accidentally. I have never seen anyone find a way around JET (or SQL Server) when cascade deletes were turned off, other than deleting the records from child table up, intentionally and with forethought and malice. I gave up on preventing hackers from doing their damage. I am very successful preventing accidental damage, and my success comes from using the tools that Jet (or the database engine) gives me, free of charge. My (the programmer's) convenience should not be the issue here. 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 Sent: Friday, February 03, 2006 3:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Missing records Hi Rueben: It is so system dependant on the way records are handled. When it comes to POS and Accounting systems, records can simply not be removed as there would be no way to follow the course of transactions or perform a forensic audit. If Access had a cascading record de-activation as well as a delete that would save a lot of coding. My two cents worth. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: February 3, 2006 9:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records Honestly, I'm not sold on Cascade Delete being off. It makes it much easier to work if it's on when record does require deletion (like your invoice example). I really prefer to control it at the form by not allowing deletes there. If they can't delete it at the form level then Cascade Deletes never becomes an issue. Reuben Cummings GFC, LLC 812.523.1017 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Fri Feb 3 20:57:10 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Fri, 3 Feb 2006 18:57:10 -0800 Subject: [AccessD] FW: sql help please Message-ID: <000001c62936$b1d077c0$6701a8c0@HPLaptop> No takers so I am asking again. Joe Hecht jmhecht at earthlink.net _____ From: Joe Hecht [mailto:jmhecht at earthlink.net] Sent: Thursday, February 02, 2006 8:35 PM To: 'Access Developers discussion and problem solving' Subject: sql help please I am having 1 issue with the statement below. I have confirmed 20_stb_Loc_Wather_Road does indeed have data in it so we are not looking at null messing me up. ( I think) When I run the query no data from the table 20_stb_Loc_Wather_Road is populating the query. I tried splitting the query into a second query with everything except the 20_stb_Loc_Wather_Road on one side and the 20_stb_Loc_Wather_Road fields as the second query source and I still had the same problem. I will check in morning. Bed time for me now. SELECT [10_tbl_PersonelMasterData].MyEmpNumb, [20_tblAIMaster].ACCIDENT, [20_tblAIMaster].MyAccidnetRecordNumber, [20_tblAIMaster].CLAIM AS ClaimNumber, [20_tblAIMaster].COMPANY, [20_tblAIMaster].AccidentDATE, [20_stblAccDayInfo].AccidentTime, [20_stblAccDayInfo].AccidentDayofWeek, [20_tblAIMaster].DRIV_NUM, [20_tblAIMaster].REP_DATE, [20_tblAIMaster].STATUS, [50_ltblTerminal].TRMNL_DESC, [10_stblEmpCompInfo].START_DATE, [20_tblAIMaster].OPEN_CLAIM, [last_NAME] & ", " & [First_Name] & " " & [Middle_Name] AS FName, [10_tbl_PersonelMasterData].DOB, [20_stb_Loc_Wather_Road].RoadCondition, [20_stb_Loc_Wather_Road].ROAD_TYPE, [20_stb_Loc_Wather_Road].WEATHER, [20_stb_Loc_Wather_Road].Loc_type, [20_stb_Loc_Wather_Road].Acc_type, [20_stb_Loc_Wather_Road].CHARGABIL FROM (50_ltblTerminal RIGHT JOIN (10_tbl_PersonelMasterData INNER JOIN 10_stblEmpCompInfo ON [10_tbl_PersonelMasterData].MyEmpNumb = [10_stblEmpCompInfo].MyEmpNumb) ON [50_ltblTerminal].TRMNL_CODE = [10_stblEmpCompInfo].TERMINAL) INNER JOIN (20_stb_Loc_Wather_Road RIGHT JOIN ((20_tblAIMaster INNER JOIN 20_stblAccDayInfo ON [20_tblAIMaster].MyAccidnetRecordNumber = [20_stblAccDayInfo].MyAccidnetRecordNumber) INNER JOIN 20_stblAIPaidExpences ON [20_tblAIMaster].MyAccidnetRecordNumber = [20_stblAIPaidExpences].MyAccidnetRecordNumber) ON [20_stb_Loc_Wather_Road].MyAccidnetRecordNumber = [20_tblAIMaster].MyAccidnetRecordNumber) ON ([10_tbl_PersonelMasterData].DRIV_NUM = [20_tblAIMaster].DRIV_NUM) AND ([10_tbl_PersonelMasterData].DRIV_NUM = [20_tblAIMaster].DRIV_NUM); TIA Joe Hecht jmhecht at earthlink.net From jwcolby at ColbyConsulting.com Fri Feb 3 22:23:11 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 3 Feb 2006 23:23:11 -0500 Subject: [AccessD] Shelling to dos Message-ID: <000001c62942$b5e85380$647aa8c0@ColbyM6805> Does a shell to dos run in its own thread, i.e. will the shell command return instantly, leaving the Dos process running? I need to Xcopy a directory from here to there. Rather than doing that from inside of Access and tying up my program, I thought I would run a batch file that does an Xcopy with a ton of switches that copies subdirs, sets the archive bit etc. This only really helps if the shell returns once it gets the xcopy running, but Xcopy must continue to run after the shell command returns. John W. Colby www.ColbyConsulting.com From martyconnelly at shaw.ca Fri Feb 3 23:49:12 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 03 Feb 2006 21:49:12 -0800 Subject: [AccessD] Shelling to dos References: <000001c62942$b5e85380$647aa8c0@ColbyM6805> Message-ID: <43E44058.5070603@shaw.ca> The Shell process flails around on its own, If you need to know when the process ends http://vbnet.mvps.org/code/faq/getexitcprocess.htm get a return code if it sends one from ShellEx Shamil had a couple of posts on this about 2 or 3 months back If the Shell function successfully executes the named file, it returns the task ID of the started program. The task ID is a unique number that identifies the running program. If the Shell function can't start the named program, an error occurs. Note The Shell function runs other programs asynchronously. This means that a program started with Shell might not finish executing before the statements following the Shell function are executed. John Colby wrote: >Does a shell to dos run in its own thread, i.e. will the shell command >return instantly, leaving the Dos process running? > >I need to Xcopy a directory from here to there. Rather than doing that from >inside of Access and tying up my program, I thought I would run a batch file >that does an Xcopy with a ton of switches that copies subdirs, sets the >archive bit etc. This only really helps if the shell returns once it gets >the xcopy running, but Xcopy must continue to run after the shell command >returns. > >John W. Colby >www.ColbyConsulting.com > > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Sat Feb 4 00:14:31 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 03 Feb 2006 22:14:31 -0800 Subject: [AccessD] FW: sql help please In-Reply-To: <000001c62936$b1d077c0$6701a8c0@HPLaptop> References: <000001c62936$b1d077c0$6701a8c0@HPLaptop> Message-ID: <43E44647.4010507@san.rr.com> I would copy the SQL of this query into the SQL view of a new query, then switch to design view. A lot of times for me that shows up the error in my SQL statement. Rocky Joe Hecht wrote: > > > No takers so I am asking again. > > Joe Hecht > > jmhecht at earthlink.net > > _____ > > From: Joe Hecht [mailto:jmhecht at earthlink.net] > Sent: Thursday, February 02, 2006 8:35 PM > To: 'Access Developers discussion and problem solving' > Subject: sql help please > > > > I am having 1 issue with the statement below. > > > > I have confirmed 20_stb_Loc_Wather_Road does indeed have > data in it so we are not looking at null messing me up. ( I > think) > > > > When I run the query no data from the table > 20_stb_Loc_Wather_Road is populating the query. I tried > splitting the query into a second query with everything > except the 20_stb_Loc_Wather_Road on one side and the > 20_stb_Loc_Wather_Road fields as the second query source and > I still had the same problem. > > > > I will check in morning. Bed time for me now. > > > > > > > > SELECT [10_tbl_PersonelMasterData].MyEmpNumb, > [20_tblAIMaster].ACCIDENT, > [20_tblAIMaster].MyAccidnetRecordNumber, > [20_tblAIMaster].CLAIM AS ClaimNumber, > [20_tblAIMaster].COMPANY, [20_tblAIMaster].AccidentDATE, > [20_stblAccDayInfo].AccidentTime, > [20_stblAccDayInfo].AccidentDayofWeek, > [20_tblAIMaster].DRIV_NUM, [20_tblAIMaster].REP_DATE, > [20_tblAIMaster].STATUS, [50_ltblTerminal].TRMNL_DESC, > [10_stblEmpCompInfo].START_DATE, > [20_tblAIMaster].OPEN_CLAIM, [last_NAME] & ", " & > [First_Name] & " " & [Middle_Name] AS FName, > [10_tbl_PersonelMasterData].DOB, > [20_stb_Loc_Wather_Road].RoadCondition, > [20_stb_Loc_Wather_Road].ROAD_TYPE, > [20_stb_Loc_Wather_Road].WEATHER, > [20_stb_Loc_Wather_Road].Loc_type, > [20_stb_Loc_Wather_Road].Acc_type, > [20_stb_Loc_Wather_Road].CHARGABIL > > > > FROM (50_ltblTerminal RIGHT JOIN (10_tbl_PersonelMasterData > INNER JOIN 10_stblEmpCompInfo ON > [10_tbl_PersonelMasterData].MyEmpNumb = > [10_stblEmpCompInfo].MyEmpNumb) ON > [50_ltblTerminal].TRMNL_CODE = > [10_stblEmpCompInfo].TERMINAL) INNER JOIN > (20_stb_Loc_Wather_Road RIGHT JOIN ((20_tblAIMaster INNER > JOIN 20_stblAccDayInfo ON > [20_tblAIMaster].MyAccidnetRecordNumber = > [20_stblAccDayInfo].MyAccidnetRecordNumber) INNER JOIN > 20_stblAIPaidExpences ON > [20_tblAIMaster].MyAccidnetRecordNumber = > [20_stblAIPaidExpences].MyAccidnetRecordNumber) ON > [20_stb_Loc_Wather_Road].MyAccidnetRecordNumber = > [20_tblAIMaster].MyAccidnetRecordNumber) ON > ([10_tbl_PersonelMasterData].DRIV_NUM = > [20_tblAIMaster].DRIV_NUM) AND > ([10_tbl_PersonelMasterData].DRIV_NUM = > [20_tblAIMaster].DRIV_NUM); > > > > > > TIA > > > > Joe Hecht > > jmhecht at earthlink.net > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Gustav at cactus.dk Sat Feb 4 05:29:38 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 04 Feb 2006 12:29:38 +0100 Subject: [AccessD] Missing records Message-ID: Hi J?rgen Setting AllowDeletions to False is a nice tip as in many forms the user is not supposed to delete anything. /gustav >>> jwelz at hotmail.com 03-02-2006 23:05:13 >>> One trick is not to forget to remove deletion capability. .. From DorisH3 at aol.com Sat Feb 4 09:23:40 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Sat, 4 Feb 2006 10:23:40 EST Subject: [AccessD] Conversion Message-ID: <208.11fd4365.311620fc@aol.com> Does anyone know if an Access database using VB modules can be converted to Japanese or Chinese? If it can be what is the process? Doris From jwcolby at ColbyConsulting.com Sat Feb 4 10:08:03 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Sat, 4 Feb 2006 11:08:03 -0500 Subject: [AccessD] Shelling to dos In-Reply-To: <43E44058.5070603@shaw.ca> Message-ID: <000901c629a5$2df34c60$647aa8c0@ColbyM6805> That is perfect. I need it to just go do it's thing. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Saturday, February 04, 2006 12:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Shelling to dos The Shell process flails around on its own, If you need to know when the process ends http://vbnet.mvps.org/code/faq/getexitcprocess.htm get a return code if it sends one from ShellEx Shamil had a couple of posts on this about 2 or 3 months back If the Shell function successfully executes the named file, it returns the task ID of the started program. The task ID is a unique number that identifies the running program. If the Shell function can't start the named program, an error occurs. Note The Shell function runs other programs asynchronously. This means that a program started with Shell might not finish executing before the statements following the Shell function are executed. John Colby wrote: >Does a shell to dos run in its own thread, i.e. will the shell command >return instantly, leaving the Dos process running? > >I need to Xcopy a directory from here to there. Rather than doing that from >inside of Access and tying up my program, I thought I would run a batch file >that does an Xcopy with a ton of switches that copies subdirs, sets the >archive bit etc. This only really helps if the shell returns once it gets >the xcopy running, but Xcopy must continue to run after the shell command >returns. > >John W. Colby >www.ColbyConsulting.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 harkinsss at bellsouth.net Sat Feb 4 10:11:10 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sat, 4 Feb 2006 11:11:10 -0500 Subject: [AccessD] FW: sql help please In-Reply-To: <43E44647.4010507@san.rr.com> Message-ID: <004301c629a5$9e933cf0$aeb3d6d1@SUSANONE> Also, break it down into individual queries -- and combine one at a time -- at least you'll know which statement is the problem -- might not give you the exact problem, but you'll be closer. If you're not getting an error, just an empty recordset, that in itself offer s a few clues -- I'd begin my search with the criteria expression and then move on to the joins. Susan H. I would copy the SQL of this query into the SQL view of a new query, then switch to design view. A lot of times for me that shows up the error in my SQL statement. From jwcolby at ColbyConsulting.com Sat Feb 4 10:16:50 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Sat, 4 Feb 2006 11:16:50 -0500 Subject: [AccessD] OT: Coding to Outlook Message-ID: <003301c629a6$6809f1f0$647aa8c0@ColbyM6805> Does anyone out there code in outlook directly? I use BlueSecurity.com http://members.bluesecurity.com/cwa/users/welcome.do To report my spam. Just a personal "feels good to do this" thing. It requires sending an email to BlueSecurity when I get enough in the spam box to make it worthwhile. It would be nice to have a button on my Outlook bar that opens an email to BlueSecurity, attaches the spam emails to the opened email, sends the email, then deletes the emails in the spam folder. It only takes me about 1 minute to do this manually but doing it daily gets old after awhile. Spam filtering is so good now that I probably have less than 1 in 50 things that hit the spam folder that should not be there. By keeping the spam folder cleaned out daily it makes it easier to ensure that any non-spam items get removed from the spam folder before I report the spam. I have tried writing the code myself but for some reason the code is telling me that there are no emails in the spam folder when I can see that there are. John W. Colby www.ColbyConsulting.com From accessd at shaw.ca Sat Feb 4 11:54:46 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 04 Feb 2006 09:54:46 -0800 Subject: [AccessD] Conversion In-Reply-To: <208.11fd4365.311620fc@aol.com> Message-ID: <004301c629b4$15fad510$017ba8c0@xpserver> Hi Doris: Rocky would be the man to help you out as he has gone through a similar process a year or so ago with one of his products. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DorisH3 at aol.com Sent: February 4, 2006 7:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Conversion Does anyone know if an Access database using VB modules can be converted to Japanese or Chinese? If it can be what is the process? Doris -- 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 4 11:58:57 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 04 Feb 2006 12:58:57 -0500 Subject: [AccessD] Missing records References: Message-ID: <43E4EB61.7000404@torchlake.com> Okay, what does DIY mean? T Charlotte Foust wrote: >I have to agree with you, Gustav. Cascading deletes are definitely not >for DIY users but properly implemented, they save a lot of code! > >Charlotte Foust > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Friday, February 03, 2006 8:01 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Missing records > > >Hi John > >Oh no, why are you beating this horse again? > >Cascade delete is a very powerful and useful feature. >However - just like fire - implement it only when you know what you are >doing. > >Your example with invoices is bad. You never delete an invoice, and if >you do (it might be a draft only) you will wish to delete all its >invoice lines too. If you don't, you will have orphaned invoice lines, >or you will have to bother the user with deleting line by line until the >draft is empty and can be deleted. > >You may program your own routines to be fired at a click of the >supervisor's button, but doing so is somewhat similar to building >unbound forms in Access. > >As I wrote last time: You know all about this - normalization, relations >and so on - so why be so scared? > >/gustav > > > >>>>jwcolby at ColbyConsulting.com 03-02-2006 16:33:46 >>> >>>> >>>> >John, > >The first thing to do is examine the relationships for the tables >missing records. If "cascade delete" is turned on (a NO-NO in my humble >opinion) then deleting a single record (such as a customer) will (after >a warning of >course) delete ALL child/grandchild/...greatgreatgreat records. > >Let's say that a client has invoices and invoice line items. Yep, all >gone. Repair service calls / line items? Yep, all gone. Payments? >Yep, all gone. > >Cascade delete of a single (for example) customer record WILL delete all >child records, however far down they go. Potentially dozens or even >thousands of records, all gone because the user was "just deleting a >single customer record". > >I pretty much design my databases to never turn on Cascade delete, and >then build delete queries tied to buttons which only supervisors can >see/click. > >John W. Colby >www.ColbyConsulting.com > > > From martyconnelly at shaw.ca Sat Feb 4 12:13:17 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 04 Feb 2006 10:13:17 -0800 Subject: [AccessD] Missing records References: <43E4EB61.7000404@torchlake.com> Message-ID: <43E4EEBD.2030305@shaw.ca> DIY (Do It Yourself ) especially with regard to car or home repair, they tend to congregate in hospital emergency rooms on saturday afternoons. Tina Norris Fields wrote: >Okay, what does DIY mean? >T > >Charlotte Foust wrote: > > > >>I have to agree with you, Gustav. Cascading deletes are definitely not >>for DIY users but properly implemented, they save a lot of code! >> >>Charlotte Foust >> >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >>Sent: Friday, February 03, 2006 8:01 AM >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] Missing records >> >> >>Hi John >> >>Oh no, why are you beating this horse again? >> >>Cascade delete is a very powerful and useful feature. >>However - just like fire - implement it only when you know what you are >>doing. >> >>Your example with invoices is bad. You never delete an invoice, and if >>you do (it might be a draft only) you will wish to delete all its >>invoice lines too. If you don't, you will have orphaned invoice lines, >>or you will have to bother the user with deleting line by line until the >>draft is empty and can be deleted. >> >>You may program your own routines to be fired at a click of the >>supervisor's button, but doing so is somewhat similar to building >>unbound forms in Access. >> >>As I wrote last time: You know all about this - normalization, relations >>and so on - so why be so scared? >> >>/gustav >> >> >> >> >> >>>>>jwcolby at ColbyConsulting.com 03-02-2006 16:33:46 >>> >>>>> >>>>> >>>>> >>>>> >>John, >> >>The first thing to do is examine the relationships for the tables >>missing records. If "cascade delete" is turned on (a NO-NO in my humble >>opinion) then deleting a single record (such as a customer) will (after >>a warning of >>course) delete ALL child/grandchild/...greatgreatgreat records. >> >>Let's say that a client has invoices and invoice line items. Yep, all >>gone. Repair service calls / line items? Yep, all gone. Payments? >>Yep, all gone. >> >>Cascade delete of a single (for example) customer record WILL delete all >>child records, however far down they go. Potentially dozens or even >>thousands of records, all gone because the user was "just deleting a >>single customer record". >> >>I pretty much design my databases to never turn on Cascade delete, and >>then build delete queries tied to buttons which only supervisors can >>see/click. >> >>John W. Colby >>www.ColbyConsulting.com >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From DorisH3 at aol.com Sat Feb 4 12:18:28 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Sat, 4 Feb 2006 13:18:28 EST Subject: [AccessD] Conversion Message-ID: <254.5d32358.311649f4@aol.com> In a message dated 2/4/2006 12:57:35 PM Eastern Standard Time, accessd at shaw.ca writes: Hi Doris: Rocky would be the man to help you out as he has gone through a similar process a year or so ago with one of his products. Jim How do I contact Rocky? From spikee at oatlandspark.org.uk Sat Feb 4 12:06:15 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Sat, 4 Feb 2006 18:06:15 -0000 Subject: [AccessD] Missing records In-Reply-To: <43E4EB61.7000404@torchlake.com> Message-ID: <200602041828.k14IScC11538@databaseadvisors.com> Tina DIY - Do It Yourself HTH Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: 04 February 2006 17:59 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Missing records Okay, what does DIY mean? T Charlotte Foust wrote: >I have to agree with you, Gustav. Cascading deletes are definitely not >for DIY users but properly implemented, they save a lot of code! > >Charlotte Foust From garykjos at gmail.com Sat Feb 4 13:13:40 2006 From: garykjos at gmail.com (Gary Kjos) Date: Sat, 4 Feb 2006 13:13:40 -0600 Subject: [AccessD] Conversion In-Reply-To: <254.5d32358.311649f4@aol.com> References: <254.5d32358.311649f4@aol.com> Message-ID: He is a subscriber and frequent contributor to this list. According to his website, http://www.e-z-mrp.com/ His e-mail is bchacc at san.rr.com if you want to contact him directly. Gary On 2/4/06, DorisH3 at aol.com wrote: > In a message dated 2/4/2006 12:57:35 PM Eastern Standard Time, > accessd at shaw.ca writes: > Hi Doris: > > Rocky would be the man to help you out as he has gone through a similar > process a year or so ago with one of his products. > > Jim > How do I contact Rocky? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From tinanfields at torchlake.com Sat Feb 4 13:13:49 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 04 Feb 2006 14:13:49 -0500 Subject: [AccessD] Missing records References: <200602041828.k14IScC11538@databaseadvisors.com> Message-ID: <43E4FCED.5060705@torchlake.com> Thanks to Chris and Marty - Hilarious! T Chris Foote (Spike) wrote: > >Tina DIY - Do It Yourself > >HTH >Chris Foote > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris >Fields >Sent: 04 February 2006 17:59 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Missing records > >Okay, what does DIY mean? >T > >Charlotte Foust wrote: > > > >>I have to agree with you, Gustav. Cascading deletes are definitely not >>for DIY users but properly implemented, they save a lot of code! >> >>Charlotte Foust >> >> > > > > From accessd at shaw.ca Sat Feb 4 13:26:43 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 04 Feb 2006 11:26:43 -0800 Subject: [AccessD] Conversion In-Reply-To: <254.5d32358.311649f4@aol.com> Message-ID: <004701c629c0$ef300880$017ba8c0@xpserver> Hi Doris: Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com bchacc at san.rr.com HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DorisH3 at aol.com Sent: February 4, 2006 10:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Conversion In a message dated 2/4/2006 12:57:35 PM Eastern Standard Time, accessd at shaw.ca writes: Hi Doris: Rocky would be the man to help you out as he has gone through a similar process a year or so ago with one of his products. Jim How do I contact Rocky? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sat Feb 4 13:28:50 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 04 Feb 2006 11:28:50 -0800 Subject: [AccessD] Conversion In-Reply-To: <254.5d32358.311649f4@aol.com> References: <254.5d32358.311649f4@aol.com> Message-ID: <43E50072.9080301@san.rr.com> Hi! :-P Rocky DorisH3 at aol.com wrote: > In a message dated 2/4/2006 12:57:35 PM Eastern Standard Time, > accessd at shaw.ca writes: > Hi Doris: > > Rocky would be the man to help you out as he has gone through a similar > process a year or so ago with one of his products. > > Jim > How do I contact Rocky? > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jwcolby at ColbyConsulting.com Sat Feb 4 18:44:14 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Sat, 4 Feb 2006 19:44:14 -0500 Subject: [AccessD] OT: Coding to Outlook In-Reply-To: <003301c629a6$6809f1f0$647aa8c0@ColbyM6805> Message-ID: <002001c629ed$4a011250$647aa8c0@ColbyM6805> Well, I figured it out. The junk mail folder isn't under the inbox (on my machine anyway) and while it appeared to be returning a folder under the inbox in fact it wasn't valid or something. Once I changed my reference to get it from the right place it went without a hitch. For anyone interested BlueSecurity.com http://members.bluesecurity.com/cwa/users/welcome.do Is a company that works to put spammers in their place. I am a member and while I cannot say with any certainty that it helps, I am convinced that they are for real and recommend that anyone interested in helping to fight spam join. In order to make reporting my own spam easier, I created a macro inside of outlook to do the reporting. It is now "pushbutton". Pushbutton is good! In order to use this program, you need to create a macro in Outlook, create a toolbar with a button, and click the button. To create the code macro that will send the email: 1) From inside of outlook click Tools in the main menu 2) Click Macros / Visual Basic Editor. You will now be in the visual basic editor. 3) Click Insert / Module 4) Cut and paste the code below into the editor and save it. 4a) Set YOUR EMAIL ADDRESS with Blue Security in the very first line of the program in "MyUserName at reports.bluesecurity.com" 5) Click Save and close the editor To create a toolbar and a button to allow you to use the macro to send your spam to Blue Security: 6) Right click in the Outlook toolbar area at the top. 7) Click Customize / Toolbars / New. This will create a new toolbar. 8) Type in the name of your new toolbar - Blue Frog and click OK 9) You will now see a small blank toolbar. 10) In the "Customize" dialog click the "Commands" tab. 11) Click Macros. In the right hand pane of the dialog you should now see a macro named something like "project1.BlueFrogSecurityEmail" 12) Click-Hold-Drag and drop that macro onto your new toolbar 13) Close the "customize" dialog box 14) Drag the new toolbar up to the toolbars area of Outlook and dock it. To use the macro: All you need to do is make sure that your spam is in the Junk E-Mail folder in Outlook. If you use Spam Bayes or some other non-native junk mail processor it may have it's own folder that it places email in. If that is the case, you will need to drag and drop the junk mail from that folder into Outlook's "Junk E-Mail" folder. My macro only process email in that folder. If you have mail in the "Junk E-Mail" folder which is NOT JUNK, you need to get it out before you use the button because I delete all messages in the "Junk E-Mail" folder when I have finished sending the email. To send your junk email to Blue Security, set YOUR EMAIL ADDRESS with Blue Security in the very first line of the program. You have to be set up and have an account with Blue Security in order to have such an email address, ad if you are, you should know what your email address is with them. To actually send email, just click the button in your new toolbar. Any email in the "Junk E-Mail" folder in Outlook will be attached to an email and sent to Blue Security. All email in that folder will then be deleted. CHECK THE FOLDER FIRST to make sure that no letters from mom, your bank, etc are sitting in the junk mail folder. '*************************************************** 'THIS IS THE CODE: '*************************************************** Const cstrBlueSecurityEmailAddress As String = "MyUserName at reports.bluesecurity.com" Sub BlueFrogSecurityEmail() SendBlueSecurityEmail cstrBlueSecurityEmailAddress End Sub Function SendBlueSecurityEmail(strRecipient As String, Optional ProfileName) On Error GoTo Err_SendBlueSecurityEmail Dim myOlApp As Outlook.Application Dim myOLItem As Object Dim fldrJunk As Outlook.MAPIFolder Dim msg As Outlook.MailItem Set myOlApp = OpenOL(ProfileName) Set fldrJunk = myOlApp.GetNamespace("MAPI").GetDefaultFolder(olFolderJunk) If (fldrJunk.Items.Count > 0) Then Set myOLItem = myOlApp.CreateItem(olMailItem) With myOLItem .To = strRecipient For Each msg In fldrJunk.Items Debug.Print "SendBlueSecurityEmail - Processing message: " & msg .Attachments.Add msg Next msg End With myOLItem.Send ' 'Delete the items from the spam folder ' While fldrJunk.Items.Count > 0 fldrJunk.Items.Remove (1) Wend End If Exit_SendBlueSecurityEmail: Exit Function Err_SendBlueSecurityEmail: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function dclsOutlook.SendBlueSecurityEmail" Resume Exit_SendBlueSecurityEmail End Select Resume 0 '.FOR TROUBLESHOOTING End Function Private Function OpenOL(Optional ProfileName) As Outlook.Application On Error GoTo Err_OpenOL Dim objOL As Outlook.Application On Error Resume Next Set objOL = GetObject(, "Outlook.Application") If objOL Is Nothing Then Set objOL = CreateObject("Outlook.Application") objOL.Session.Logon ProfileName, , False, True End If Set OpenOL = objOL Set objOL = Nothing Exit_OpenOL: Exit Function Err_OpenOL: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function dclsOutlook.OpenOL" Resume Exit_OpenOL End Select Resume 0 '.FOR TROUBLESHOOTING 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 John Colby Sent: Saturday, February 04, 2006 11:17 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Coding to Outlook Does anyone out there code in outlook directly? I use BlueSecurity.com http://members.bluesecurity.com/cwa/users/welcome.do To report my spam. Just a personal "feels good to do this" thing. It requires sending an email to BlueSecurity when I get enough in the spam box to make it worthwhile. It would be nice to have a button on my Outlook bar that opens an email to BlueSecurity, attaches the spam emails to the opened email, sends the email, then deletes the emails in the spam folder. It only takes me about 1 minute to do this manually but doing it daily gets old after awhile. Spam filtering is so good now that I probably have less than 1 in 50 things that hit the spam folder that should not be there. By keeping the spam folder cleaned out daily it makes it easier to ensure that any non-spam items get removed from the spam folder before I report the spam. I have tried writing the code myself but for some reason the code is telling me that there are no emails in the spam folder when I can see that there are. 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 nick at frasiervan.com Sat Feb 4 18:57:10 2006 From: nick at frasiervan.com (Nick) Date: Sat, 4 Feb 2006 18:57:10 -0600 Subject: [AccessD] FW: sql help please In-Reply-To: <000001c62936$b1d077c0$6701a8c0@HPLaptop> Message-ID: <004601c629ef$187485d0$6600a8c0@NickLaptop> That's a big nasty query. Two items just looking at it. Is this field name correct? [20_tblAIMaster].MyAccidnetRecordNumber You have a join to 20_stblAIPaidExpences but are not viewing any fields, nor needing any field in this table for an implied relationship. Previous advice applies, build this query step by step and figure out at which stage of rebuilding it doesn't work. From: Joe Hecht [mailto:jmhecht at earthlink.net] Sent: Thursday, February 02, 2006 8:35 PM To: 'Access Developers discussion and problem solving' Subject: sql help please I am having 1 issue with the statement below. I have confirmed 20_stb_Loc_Wather_Road does indeed have data in it so we are not looking at null messing me up. ( I think) When I run the query no data from the table 20_stb_Loc_Wather_Road is populating the query. I tried splitting the query into a second query with everything except the 20_stb_Loc_Wather_Road on one side and the 20_stb_Loc_Wather_Road fields as the second query source and I still had the same problem. I will check in morning. Bed time for me now. SELECT [10_tbl_PersonelMasterData].MyEmpNumb, [20_tblAIMaster].ACCIDENT, [20_tblAIMaster].MyAccidnetRecordNumber, [20_tblAIMaster].CLAIM AS ClaimNumber, [20_tblAIMaster].COMPANY, [20_tblAIMaster].AccidentDATE, [20_stblAccDayInfo].AccidentTime, [20_stblAccDayInfo].AccidentDayofWeek, [20_tblAIMaster].DRIV_NUM, [20_tblAIMaster].REP_DATE, [20_tblAIMaster].STATUS, [50_ltblTerminal].TRMNL_DESC, [10_stblEmpCompInfo].START_DATE, [20_tblAIMaster].OPEN_CLAIM, [last_NAME] & ", " & [First_Name] & " " & [Middle_Name] AS FName, [10_tbl_PersonelMasterData].DOB, [20_stb_Loc_Wather_Road].RoadCondition, [20_stb_Loc_Wather_Road].ROAD_TYPE, [20_stb_Loc_Wather_Road].WEATHER, [20_stb_Loc_Wather_Road].Loc_type, [20_stb_Loc_Wather_Road].Acc_type, [20_stb_Loc_Wather_Road].CHARGABIL FROM (50_ltblTerminal RIGHT JOIN (10_tbl_PersonelMasterData INNER JOIN 10_stblEmpCompInfo ON [10_tbl_PersonelMasterData].MyEmpNumb = [10_stblEmpCompInfo].MyEmpNumb) ON [50_ltblTerminal].TRMNL_CODE = [10_stblEmpCompInfo].TERMINAL) INNER JOIN (20_stb_Loc_Wather_Road RIGHT JOIN ((20_tblAIMaster INNER JOIN 20_stblAccDayInfo ON [20_tblAIMaster].MyAccidnetRecordNumber = [20_stblAccDayInfo].MyAccidnetRecordNumber) INNER JOIN 20_stblAIPaidExpences ON [20_tblAIMaster].MyAccidnetRecordNumber = [20_stblAIPaidExpences].MyAccidnetRecordNumber) ON [20_stb_Loc_Wather_Road].MyAccidnetRecordNumber = [20_tblAIMaster].MyAccidnetRecordNumber) ON ([10_tbl_PersonelMasterData].DRIV_NUM = [20_tblAIMaster].DRIV_NUM) AND ([10_tbl_PersonelMasterData].DRIV_NUM = [20_tblAIMaster].DRIV_NUM); TIA Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accma at sympatico.ca Sat Feb 4 19:21:00 2006 From: accma at sympatico.ca (Annie Courchesne, cma) Date: Sat, 4 Feb 2006 20:21:00 -0500 Subject: [AccessD] Error loading DLL Message-ID: Hi everyone, I have a database running under A2K runtime on three computers. I use a code to send email using Outlook. On two computers, it works great. On the third, it does not work. After testing, I see that the error shown is "Error Loading DLL". Anyone had any problem like this? I think it may be a problem with Outlook on this computer. Should I reinstall it? Can I just replace a problem DLL? Thanks! Annie Courchesne, CMA From dw-murphy at cox.net Sat Feb 4 19:26:06 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Sat, 4 Feb 2006 17:26:06 -0800 Subject: [AccessD] Error loading DLL In-Reply-To: Message-ID: <000501c629f3$22efa400$0200a8c0@murphyf3vdfepi> What is the error number? How are you using access to send e-mail; SendObject? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie Courchesne, cma Sent: Saturday, February 04, 2006 5:21 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error loading DLL Hi everyone, I have a database running under A2K runtime on three computers. I use a code to send email using Outlook. On two computers, it works great. On the third, it does not work. After testing, I see that the error shown is "Error Loading DLL". Anyone had any problem like this? I think it may be a problem with Outlook on this computer. Should I reinstall it? Can I just replace a problem DLL? Thanks! Annie Courchesne, CMA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accma at sympatico.ca Sat Feb 4 19:36:54 2006 From: accma at sympatico.ca (Annie Courchesne, cma) Date: Sat, 4 Feb 2006 20:36:54 -0500 Subject: [AccessD] Error loading DLL In-Reply-To: <000501c629f3$22efa400$0200a8c0@murphyf3vdfepi> Message-ID: Hi, The error code number is 48. I use the following code to send a email : ---- Dim OutlookApp As Outlook.Application, OutlookFile As Outlook.Attachment Dim OutlookMsg As Outlook.MailItem, OutlookRecip As Outlook.Recipient Public Sub OpenMsgOutlook(EMail As String, PathFile As String) On Error GoTo err_OpenMsgOutlook Set OutlookApp = CreateObject("Outlook.Application") Set OutlookMsg = OutlookApp.CreateItem(olMailItem) With OutlookMsg Set OutlookRecip = .Recipients.add(EMail) Set OutlookFile = .Attachments.add(PathFile) OutlookRecip.Type = olTo .Display End With Exit Sub err_OpenMsgOutlook: Resume Next End Sub ---- Depending on what needs to be sent I use this code or another one (the only difference is the .display that is being changed to .send). It always worked great in the past and I don't know why I'm having problem with this one computer!!! Thanks! Annie Courchesne, CMA -----Message d'origine----- De?: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] De la part de Doug Murphy Envoy??: 4 f?vrier 2006 20:26 ??: 'Access Developers discussion and problem solving' Objet?: Re: [AccessD] Error loading DLL What is the error number? How are you using access to send e-mail; SendObject? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie Courchesne, cma Sent: Saturday, February 04, 2006 5:21 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error loading DLL Hi everyone, I have a database running under A2K runtime on three computers. I use a code to send email using Outlook. On two computers, it works great. On the third, it does not work. After testing, I see that the error shown is "Error Loading DLL". Anyone had any problem like this? I think it may be a problem with Outlook on this computer. Should I reinstall it? Can I just replace a problem DLL? Thanks! Annie Courchesne, CMA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Sat Feb 4 20:57:20 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 4 Feb 2006 20:57:20 -0600 Subject: [AccessD] Lotus Notes Email Message-ID: <000001c629ff$e26643f0$0200a8c0@danwaters> Has anyone used access to send email via Lotus Notes? I've never used Lotus Notes for email or anything else, but a potential customer does, and I'd like to tell him that I can connect to his email system. Thanks! Dan From DorisH3 at aol.com Sat Feb 4 21:05:30 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Sat, 4 Feb 2006 22:05:30 EST Subject: [AccessD] Conversion Message-ID: <1a8.47c4af68.3116c57a@aol.com> Thanks for the info...Doris From DorisH3 at aol.com Sat Feb 4 21:08:38 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Sat, 4 Feb 2006 22:08:38 EST Subject: [AccessD] Conversion Message-ID: <1fb.198cc663.3116c636@aol.com> Hi Rocky, I understand you have been through a conversion to another language other than English...can an Access database using VB modules be converted to Japanese or Chinese? If it can be what is the process? I appreciate any light that you can throw my way...I have a client who is dealing with clients in Japan and China and they want to be able to use the same Access database. Doris From bchacc at san.rr.com Sat Feb 4 22:30:50 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 04 Feb 2006 20:30:50 -0800 Subject: [AccessD] Conversion In-Reply-To: <1fb.198cc663.3116c636@aol.com> References: <1fb.198cc663.3116c636@aol.com> Message-ID: <43E57F7A.60109@san.rr.com> Doris: When I converted E-Z-MRP (www.e-z-mrp.com) to Access from a DOS platform, I anticipated having foreign language versions and so I put all of the text - command button captions, labels, error messages into tables. The first column of the table (after the autonumber key, of course) is the form name; the second field is the control name; third field is the English. To make another language then, I just add a field to the record. In the case of Chinese, I had to add two fields - one for traditional the other for simplified Chinese. I then sent the tables (one table for controls, one for messages) to my Chinese distributor who simply entered the translation in the appropriate column. I recently added a column for French and a dealer in France has just made the translations. In a Preferences form of the application front end, the user can specify the language they want to see. The preference is stored int he front end so that one user can be looking at the app in one language, another user can see the same data but in a different language. Of course, any back end data they enter, such a part description, appears only in the language they entered it in originally. At form or report load time I call one of several translate routines which go to the tables, find the control in questions and replace the caption or whatever with the field from the record is specified by the user's language preference. To do Asian languages I had only to load the Eastern Asian Language support in Windows and, walla!, up it came in Chinese. (Of course I have no earthly idea what it says, I have to trust the translator.) The translate routine did need to accommodate Unicode, because I guess that's what Chinese characters are stored in. I think it's a double word for each character. But you don't have to use the table approach if you want to have just a hard coded front end in a different language. Turns out to be quite easy, but then you have two or more versions to support. With the table approach, you have only one version. That's just the Cliff notes version. Let me know what further questions this generates. Best, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com DorisH3 at aol.com wrote: > > Hi Rocky, > > I understand you have been through a conversion to another language other > than English...can an Access database using VB modules be converted to Japanese > or Chinese? If it can be what is the process? > > I appreciate any light that you can throw my way...I have a client who is > dealing with clients in Japan and China and they want to be able to use the same > Access database. > > Doris > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From stuart at lexacorp.com.pg Sun Feb 5 01:16:48 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 05 Feb 2006 17:16:48 +1000 Subject: [AccessD] Lotus Notes Email In-Reply-To: <000001c629ff$e26643f0$0200a8c0@danwaters> Message-ID: <43E63300.21293.4C2A469@stuart.lexacorp.com.pg> On 4 Feb 2006 at 20:57, Dan Waters wrote: > Has anyone used access to send email via Lotus Notes? I've never used Lotus > Notes for email or anything else, but a potential customer does, and I'd > like to tell him that I can connect to his email system. > Lotus is MAPI complaint so Docmd.SendObject works. -- Stuart From BarbaraRyan at cox.net Sun Feb 5 07:02:58 2006 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Sun, 5 Feb 2006 08:02:58 -0500 Subject: [AccessD] Lotus Notes Email References: <000001c629ff$e26643f0$0200a8c0@danwaters> Message-ID: <002601c62a54$7cf22020$0d00a8c0@desktop> Dan...Yes --- here's some sample code http://www.fabalou.com/VBandVBA/lotusnotesmail.asp Barb Ryan ----- Original Message ----- From: "Dan Waters" To: "AccessD" Sent: Saturday, February 04, 2006 9:57 PM Subject: [AccessD] Lotus Notes Email > Has anyone used access to send email via Lotus Notes? I've never used Lotus > Notes for email or anything else, but a potential customer does, and I'd > like to tell him that I can connect to his email system. > > Thanks! > > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Sun Feb 5 09:38:02 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sun, 5 Feb 2006 10:38:02 -0500 Subject: [AccessD] Conversion In-Reply-To: <43E57F7A.60109@san.rr.com> Message-ID: <001c01c62a6a$2702c230$a5b3d6d1@SUSANONE> How do you tell the forms, controls, etc. which language to use? Are there many routines, or just one? Susan H. Doris: At form or report load time I call one of several translate routines which go to the tables, find the control in questions and replace the caption or whatever with the field from the record is specified by the user's language preference. To do Asian languages I had only to load the Eastern Asian Language support in Windows and, walla!, up it came in Chinese. (Of course I have no earthly idea what it says, I have to trust the translator.) The translate routine did need to accommodate Unicode, because I guess that's what Chinese characters are stored in. I think it's a double word for each character. From bill_Patten at earthlink.net Sun Feb 5 10:10:31 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Sun, 5 Feb 2006 08:10:31 -0800 Subject: [AccessD] Error loading DLL References: Message-ID: <000901c62a6e$b0908bf0$6501a8c0@BPCS> Annie, Since no one has responded that knows, including me by the way, I did Google search and found several questions like your and most were not answered. One guy did say he reinstalled Outlook and that fixed the problem, for what ever that is worth. HTH Bill ----- Original Message ----- From: "Annie Courchesne, cma" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 04, 2006 5:21 PM Subject: [AccessD] Error loading DLL Hi everyone, I have a database running under A2K runtime on three computers. I use a code to send email using Outlook. On two computers, it works great. On the third, it does not work. After testing, I see that the error shown is "Error Loading DLL". Anyone had any problem like this? I think it may be a problem with Outlook on this computer. Should I reinstall it? Can I just replace a problem DLL? Thanks! Annie Courchesne, CMA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Sun Feb 5 10:21:03 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Sun, 5 Feb 2006 08:21:03 -0800 Subject: [AccessD] Conversion In-Reply-To: <43E57F7A.60109@san.rr.com> Message-ID: <001601c62a70$295f6820$6701a8c0@HPLaptop> Rocky & Others, How do you think of stuff like this? I never would have come up with a solution like this. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Saturday, February 04, 2006 8:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Conversion Doris: When I converted E-Z-MRP (www.e-z-mrp.com) to Access from a DOS platform, I anticipated having foreign language versions and so I put all of the text - command button captions, labels, error messages into tables. The first column of the table (after the autonumber key, of course) is the form name; the second field is the control name; third field is the English. To make another language then, I just add a field to the record. In the case of Chinese, I had to add two fields - one for traditional the other for simplified Chinese. I then sent the tables (one table for controls, one for messages) to my Chinese distributor who simply entered the translation in the appropriate column. I recently added a column for French and a dealer in France has just made the translations. In a Preferences form of the application front end, the user can specify the language they want to see. The preference is stored int he front end so that one user can be looking at the app in one language, another user can see the same data but in a different language. Of course, any back end data they enter, such a part description, appears only in the language they entered it in originally. At form or report load time I call one of several translate routines which go to the tables, find the control in questions and replace the caption or whatever with the field from the record is specified by the user's language preference. To do Asian languages I had only to load the Eastern Asian Language support in Windows and, walla!, up it came in Chinese. (Of course I have no earthly idea what it says, I have to trust the translator.) The translate routine did need to accommodate Unicode, because I guess that's what Chinese characters are stored in. I think it's a double word for each character. But you don't have to use the table approach if you want to have just a hard coded front end in a different language. Turns out to be quite easy, but then you have two or more versions to support. With the table approach, you have only one version. That's just the Cliff notes version. Let me know what further questions this generates. Best, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com DorisH3 at aol.com wrote: > > Hi Rocky, > > I understand you have been through a conversion to another language other > than English...can an Access database using VB modules be converted to Japanese > or Chinese? If it can be what is the process? > > I appreciate any light that you can throw my way...I have a client who is > dealing with clients in Japan and China and they want to be able to use the same > Access database. > > Doris > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sun Feb 5 11:15:56 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 05 Feb 2006 09:15:56 -0800 Subject: [AccessD] Conversion In-Reply-To: <001c01c62a6a$2702c230$a5b3d6d1@SUSANONE> References: <001c01c62a6a$2702c230$a5b3d6d1@SUSANONE> Message-ID: <43E632CC.2070400@san.rr.com> The field names in the language tables have the language name embedded in them: fldLanguageChineseComplex, fldLanguageChineseSimple, fldLanguageFrench. When the user selects their language preference from the preferences form in the utilities menu, I save the field name in the Preferences table. They also have the option to check a Unicode box. Figuring out how to handle Unicode was the trickiest part of it for me. I have 8 translate routines because the translate thing developed over some time solving different little problems. It could probably be reduced to a couple but since it's working well I didn't have the motivation to go back and polish it up. There are some special differences for sub-forms and sub-reports. The basic form or report translate routine gets the form or report name passed to it. The code cycles through all of the control on the form or report checking to see if that control name is in the table. If so, it gets the appropriate translation and changes the control - mostly the caption property. The translate routine for the message boxes runs the same way, only I pass the name of the message to the translation routine. Rocky Susan Harkins wrote: > How do you tell the forms, controls, etc. which language to use? Are there > many routines, or just one? > > Susan H. > > Doris: > > At form or report load time I call one of several translate routines which > go to the tables, find the control in questions and replace the caption or > whatever with the field from the record is specified by the user's language > preference. To do Asian languages I had only to load the Eastern Asian > Language support in Windows and, walla!, up it came in Chinese. (Of course I > have no earthly idea what it says, I have to trust the translator.) The > translate routine did need to accommodate Unicode, because I guess that's > what Chinese characters are stored in. I think it's a double word for each > character. > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Sun Feb 5 11:16:42 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 05 Feb 2006 09:16:42 -0800 Subject: [AccessD] Conversion In-Reply-To: <001601c62a70$295f6820$6701a8c0@HPLaptop> References: <001601c62a70$295f6820$6701a8c0@HPLaptop> Message-ID: <43E632FA.6030005@san.rr.com> Beat's me. :-P Rocky Joe Hecht wrote: > Rocky & Others, > > How do you think of stuff like this? I never would have come > up with a solution like this. > > > > Joe Hecht > jmhecht at earthlink.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin - Beach Access Software > Sent: Saturday, February 04, 2006 8:31 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Conversion > > Doris: > > When I converted E-Z-MRP (www.e-z-mrp.com) to Access from a > DOS > platform, I anticipated having foreign language versions and > so I put > all of the text - command button captions, labels, error > messages into > tables. The first column of the table (after the autonumber > key, of > course) is the form name; the second field is the control > name; third > field is the English. To make another language then, I just > add a field > to the record. In the case of Chinese, I had to add two > fields - one > for traditional the other for simplified Chinese. I then > sent the > tables (one table for controls, one for messages) to my > Chinese > distributor who simply entered the translation in the > appropriate > column. I recently added a column for French and a dealer > in France has > just made the translations. > > In a Preferences form of the application front end, the user > can specify > the language they want to see. The preference is stored int > he front > end so that one user can be looking at the app in one > language, another > user can see the same data but in a different language. Of > course, any > back end data they enter, such a part description, appears > only in the > language they entered it in originally. > > At form or report load time I call one of several translate > routines > which go to the tables, find the control in questions and > replace the > caption or whatever with the field from the record is > specified by the > user's language preference. To do Asian languages I had > only to load > the Eastern Asian Language support in Windows and, walla!, > up it came in > Chinese. (Of course I have no earthly idea what it says, I > have to trust > the translator.) The translate routine did need to > accommodate Unicode, > because I guess that's what Chinese characters are stored > in. I think > it's a double word for each character. > > But you don't have to use the table approach if you want to > have just a > hard coded front end in a different language. Turns out to > be quite > easy, but then you have two or more versions to support. > With the table > approach, you have only one version. > > That's just the Cliff notes version. Let me know what > further questions > this generates. > > Best, > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > > > > > DorisH3 at aol.com wrote: > >> >> Hi Rocky, >> >> I understand you have been through a conversion to another >> > language other > >> than English...can an Access database using VB modules be >> > converted to Japanese > >> or Chinese? If it can be what is the process? >> >> I appreciate any light that you can throw my way...I have >> > a client who is > >> dealing with clients in Japan and China and they want to >> > be able to use the same > >> Access database. >> >> Doris >> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dwaters at usinternet.com Sun Feb 5 11:28:27 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 5 Feb 2006 11:28:27 -0600 Subject: [AccessD] Lotus Notes Email - Thanks! In-Reply-To: <21385411.1139144876949.JavaMail.root@sniper22> Message-ID: <000401c62a79$9530ca90$0200a8c0@danwaters> Barb & Stuart! Thanks for this help. This is one of those 'could make the difference' items! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Sunday, February 05, 2006 7:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lotus Notes Email Dan...Yes --- here's some sample code http://www.fabalou.com/VBandVBA/lotusnotesmail.asp Barb Ryan ----- Original Message ----- From: "Dan Waters" To: "AccessD" Sent: Saturday, February 04, 2006 9:57 PM Subject: [AccessD] Lotus Notes Email > Has anyone used access to send email via Lotus Notes? I've never used Lotus > Notes for email or anything else, but a potential customer does, and I'd > like to tell him that I can connect to his email system. > > Thanks! > > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Sun Feb 5 11:31:46 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sun, 5 Feb 2006 12:31:46 -0500 Subject: [AccessD] Conversion In-Reply-To: <43E632CC.2070400@san.rr.com> Message-ID: <005401c62a7a$0a486090$a5b3d6d1@SUSANONE> Is this time consuming? Do you see a hit in performance? Does this routine get called just once and then everything's saved someplace or does it run every time the form/report is viewed? Susan H. The basic form or report translate routine gets the form or report name passed to it. The code cycles through all of the control on the form or report checking to see if that control name is in the table. If so, it gets the appropriate translation and changes the control - mostly the caption property. The translate routine for the message boxes runs the same way, only I pass the name of the message to the translation routine. From bchacc at san.rr.com Sun Feb 5 11:46:45 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 05 Feb 2006 09:46:45 -0800 Subject: [AccessD] Conversion In-Reply-To: <005401c62a7a$0a486090$a5b3d6d1@SUSANONE> References: <005401c62a7a$0a486090$a5b3d6d1@SUSANONE> Message-ID: <43E63A05.3070005@san.rr.com> No performance hit because it's all front end stuff. I open the translate tables (using DAO) when the app opens and keep them open. The translate routines use .FindFirst. The Controls table has 2261 records and the messages table has 384, so it goes real fast. There is a small but perceptible delay translating a form with a lot of controls but its very acceptable - way under a second. OF course I'm using a fast pretty machine - 2GHz but that's not unusual these days. It seems to go just as fast on my P3 machine which, I think, is 800MHz, but can't remember. Rocky Rocky Susan Harkins wrote: > Is this time consuming? Do you see a hit in performance? Does this routine > get called just once and then everything's saved someplace or does it run > every time the form/report is viewed? > > Susan H. > > > The basic form or report translate routine gets the form or report name > passed to it. The code cycles through all of the control on the form or > report checking to see if that control name is in the table. If so, it gets > the appropriate translation and changes the control - mostly the caption > property. The translate routine for the message boxes runs the same way, > only I pass the name of the message to the translation routine. > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From erbachs at gmail.com Sun Feb 5 11:47:22 2006 From: erbachs at gmail.com (Steve Erbach) Date: Sun, 5 Feb 2006 11:47:22 -0600 Subject: [AccessD] sql help please In-Reply-To: <000001c6287b$212689a0$6701a8c0@HPLaptop> References: <000001c6287b$212689a0$6701a8c0@HPLaptop> Message-ID: <39cb22f30602050947j51832aa2o86f5f04eb4e121b3@mail.gmail.com> Joe, First I gave aliases to each table to make it easier to follow: SELECT M.MyEmpNumb, A.ACCIDENT, A.MyAccidnetRecordNumber, A.CLAIM AS ClaimNumber, A.COMPANY, A.AccidentDATE, D.AccidentTime, D.AccidentDayofWeek, A.DRIV_NUM, A.REP_DATE, A.STATUS, T.TRMNL_DESC, C.START_DATE, A.OPEN_CLAIM, [last_NAME] & ", " & [First_Name] & " " & [Middle_Name] AS FName, M.DOB, W.RoadCondition, W.ROAD_TYPE, W.WEATHER, W.Loc_type, W.Acc_type, W.CHARGABIL FROM (50_ltblTerminal AS T RIGHT JOIN (10_tbl_PersonelMasterData AS M INNER JOIN 10_stblEmpCompInfo AS C ON M.MyEmpNumb = C.MyEmpNumb) ON T.TRMNL_CODE = C.TERMINAL) INNER JOIN (20_stb_Loc_Wather_Road AS W RIGHT JOIN ((20_tblAIMaster AS A INNER JOIN 20_stblAccDayInfo AS D ON A.MyAccidnetRecordNumber = D.MyAccidnetRecordNumber) INNER JOIN 20_stblAIPaidExpences AS X ON A.MyAccidnetRecordNumber = X.MyAccidnetRecordNumber) ON W.MyAccidnetRecordNumber = A.MyAccidnetRecordNumber) ON (M.DRIV_NUM = A.DRIV_NUM) AND (M.DRIV_NUM = A.DRIV_NUM); Second, I noticed that the MyAccidnetRecordNumber field contained in 4 different tables is misspelled. Do you get Access query prompts when you run this query asking you to enter a value for MyAccidnetRecordNumber? If that's the case, then it looks to me like the misspelling is the problem. Third, I noticed that the clause (M.DRIV_NUM = A.DRIV_NUM) is shown twice at the end. I went to the trouble of creating your 7 tables with enough fields to make the query work. I noticed that by removing the clause "AND (M.DRIV_NUM = A.DRIV_NUM)" from the end the query was still valid. Might that be your problem? The table joins look straightforward enough. You're associating employees with accident reports. Each accident report has an employee code. Accident reports must have data in both the 20_stblAIPaidExpences and 20_stblAccDayInfo tables, but data from the 20_stb_Loc_Wather_Road is optional. I see that there are no fields SELECTed from the 20_stblAIPaidExpences table. Might that be a problem? That is, no data in that table causing no other data to be displayed? Hope this helps. Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security On 2/2/06, Joe Hecht wrote: > I am having 1 issue with the statement below. > > > > I have confirmed 20_stb_Loc_Wather_Road does indeed have > data in it so we are not looking at null messing me up. ( I > think) > > > > When I run the query no data from the table > 20_stb_Loc_Wather_Road is populating the query. I tried > splitting the query into a second query with everything > except the 20_stb_Loc_Wather_Road on one side and the > 20_stb_Loc_Wather_Road fields as the second query source and > I still had the same problem. > > > > I will check in morning. Bed time for me now. > > > > > > > > SELECT [10_tbl_PersonelMasterData].MyEmpNumb, > [20_tblAIMaster].ACCIDENT, > [20_tblAIMaster].MyAccidnetRecordNumber, > [20_tblAIMaster].CLAIM AS ClaimNumber, > [20_tblAIMaster].COMPANY, [20_tblAIMaster].AccidentDATE, > [20_stblAccDayInfo].AccidentTime, > [20_stblAccDayInfo].AccidentDayofWeek, > [20_tblAIMaster].DRIV_NUM, [20_tblAIMaster].REP_DATE, > [20_tblAIMaster].STATUS, [50_ltblTerminal].TRMNL_DESC, > [10_stblEmpCompInfo].START_DATE, > [20_tblAIMaster].OPEN_CLAIM, [last_NAME] & ", " & > [First_Name] & " " & [Middle_Name] AS FName, > [10_tbl_PersonelMasterData].DOB, > [20_stb_Loc_Wather_Road].RoadCondition, > [20_stb_Loc_Wather_Road].ROAD_TYPE, > [20_stb_Loc_Wather_Road].WEATHER, > [20_stb_Loc_Wather_Road].Loc_type, > [20_stb_Loc_Wather_Road].Acc_type, > [20_stb_Loc_Wather_Road].CHARGABIL > > FROM (50_ltblTerminal RIGHT JOIN (10_tbl_PersonelMasterData > INNER JOIN 10_stblEmpCompInfo ON > [10_tbl_PersonelMasterData].MyEmpNumb = > [10_stblEmpCompInfo].MyEmpNumb) ON > [50_ltblTerminal].TRMNL_CODE = > [10_stblEmpCompInfo].TERMINAL) INNER JOIN > (20_stb_Loc_Wather_Road RIGHT JOIN ((20_tblAIMaster INNER > JOIN 20_stblAccDayInfo ON > [20_tblAIMaster].MyAccidnetRecordNumber = > [20_stblAccDayInfo].MyAccidnetRecordNumber) INNER JOIN > 20_stblAIPaidExpences ON > [20_tblAIMaster].MyAccidnetRecordNumber = > [20_stblAIPaidExpences].MyAccidnetRecordNumber) ON > [20_stb_Loc_Wather_Road].MyAccidnetRecordNumber = > [20_tblAIMaster].MyAccidnetRecordNumber) ON > ([10_tbl_PersonelMasterData].DRIV_NUM = > [20_tblAIMaster].DRIV_NUM) AND > ([10_tbl_PersonelMasterData].DRIV_NUM = > [20_tblAIMaster].DRIV_NUM); > > > > > > TIA > > > > Joe Hecht > From martyconnelly at shaw.ca Sun Feb 5 17:38:15 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 05 Feb 2006 15:38:15 -0800 Subject: [AccessD] Error loading DLL References: Message-ID: <43E68C67.1080001@shaw.ca> INFO: Using Early Binding and Late Binding in Automation http://support.microsoft.com/?id=245115 If you have delclared OutlookApplication object as Outlook.Application, then it is still early binding as it requires a reference to object library. The difference is the way it is created at runtime. So you maybe getting a conflict in the references especially if more than one version of outlook on machine. So try this for late binding, you can use the other method if you need to debug or use intelisense Dim OutlookApp As Object Dim OutlookFile As Object Dim OutlookMsg As Object Dim OutlookRecip As Object If it objects ;) to Object try Variant. Annie Courchesne, cma wrote: >Hi, > >The error code number is 48. > >I use the following code to send a email : > >---- >Dim OutlookApp As Outlook.Application, OutlookFile As Outlook.Attachment >Dim OutlookMsg As Outlook.MailItem, OutlookRecip As Outlook.Recipient > >Public Sub OpenMsgOutlook(EMail As String, PathFile As String) > >On Error GoTo err_OpenMsgOutlook >Set OutlookApp = CreateObject("Outlook.Application") >Set OutlookMsg = OutlookApp.CreateItem(olMailItem) >With OutlookMsg > Set OutlookRecip = .Recipients.add(EMail) > Set OutlookFile = .Attachments.add(PathFile) > OutlookRecip.Type = olTo > .Display >End With >Exit Sub > >err_OpenMsgOutlook: > Resume Next > >End Sub >---- > >Depending on what needs to be sent I use this code or another one (the only >difference is the .display that is being changed to .send). > >It always worked great in the past and I don't know why I'm having problem >with this one computer!!! > >Thanks! > > >Annie Courchesne, CMA > > >-----Message d'origine----- >De : accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] De la part de Doug Murphy >Envoy? : 4 f?vrier 2006 20:26 >? : 'Access Developers discussion and problem solving' >Objet : Re: [AccessD] Error loading DLL > >What is the error number? How are you using access to send e-mail; >SendObject? > >Doug > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Annie Courchesne, >cma >Sent: Saturday, February 04, 2006 5:21 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Error loading DLL > > >Hi everyone, > > > >I have a database running under A2K runtime on three computers. I use a >code to send email using Outlook. On two computers, it works great. On the >third, it does not work. After testing, I see that the error shown is >"Error Loading DLL". > > > >Anyone had any problem like this? I think it may be a problem with Outlook >on this computer. Should I reinstall it? Can I just replace a problem DLL? > > > >Thanks! > > > > > >Annie Courchesne, CMA > > > > > -- Marty Connelly Victoria, B.C. Canada From harkinsss at bellsouth.net Sun Feb 5 17:57:14 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sun, 5 Feb 2006 18:57:14 -0500 Subject: [AccessD] Conversion In-Reply-To: <43E63A05.3070005@san.rr.com> Message-ID: <000e01c62aaf$e3f167d0$c0b3d6d1@SUSANONE> There is a small but perceptible delay translating a form with a lot of controls but its very acceptable - way under a second. OF course I'm using a fast pretty machine - 2GHz but that's not unusual these days. It seems to go just as fast on my P3 machine which, I think, is 800MHz, but can't remember. ======And I suppose in a really huge application, you could always load and hide, then unhide forms as needed to avoid any hits -- but that'd have to be a pretty busy form I guess. ;) Rocky, we should write about this sometime. :) Susan H. From bchacc at san.rr.com Sun Feb 5 18:20:00 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 05 Feb 2006 16:20:00 -0800 Subject: [AccessD] Conversion In-Reply-To: <000e01c62aaf$e3f167d0$c0b3d6d1@SUSANONE> References: <000e01c62aaf$e3f167d0$c0b3d6d1@SUSANONE> Message-ID: <43E69630.1040703@san.rr.com> Serious? For what publication? Rocky Susan Harkins wrote: > There is a small but perceptible delay translating a form with a lot of > controls but its very acceptable - way under a second. OF course I'm using > a fast pretty machine - 2GHz but that's not unusual these days. It seems to > go just as fast on my P3 machine which, I think, is 800MHz, but can't > remember. > > ======And I suppose in a really huge application, you could always load and > hide, then unhide forms as needed to avoid any hits -- but that'd have to be > a pretty busy form I guess. ;) > > Rocky, we should write about this sometime. :) > > Susan H. > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From KP at sdsonline.net Sun Feb 5 18:36:21 2006 From: KP at sdsonline.net (Kath Pelletti) Date: Mon, 6 Feb 2006 11:36:21 +1100 Subject: [AccessD] Missing records References: Message-ID: <00c801c62ab5$5a961430$6501a8c0@user> John - this happened to one of my clients recently. I doubt this will be your solution, but they had a database where they *could* run queries through the query window. (not a system I had written). Anyway, records were disappearing all the of the time - turned out it was as simple as a new staff member not knowing that after running a query you DON'T delete the recs returned in the dynaset. Ah, well - you get what you pay for , eh? :) Kath ----- Original Message ----- From: John Clark To: accessd at databaseadvisors.com Sent: Saturday, February 04, 2006 1:51 AM Subject: [AccessD] Missing records We got a call from a department that has a small Access 2K db. "Something" has happened, and they are missing about a quarter of their records. This was being investigated by a technician and I was just asked the following question: If a PC is "hard-booted" can an Access DB lose records w/out showing signs of corruption (i.e. the db still runs)?" I really don't know the answer to this question. I have had nearly no experience w/db corruption, since starting with Access 5 years ago. I used to use FoxPro...there are still some old FoxPro 2.6 (DOS) dbs hanging around actually...and corruption was a huge problem w/them. Anyone got any tips on this? Thanks! John W Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Sun Feb 5 18:49:36 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sun, 5 Feb 2006 19:49:36 -0500 Subject: [AccessD] Missing records In-Reply-To: <00c801c62ab5$5a961430$6501a8c0@user> Message-ID: <001d01c62ab7$34a33210$c0b3d6d1@SUSANONE> Anyway, records were disappearing all the of the time - turned out it was as simple as a new staff member not knowing that after running a query you DON'T delete the recs returned in the dynaset. ========I am ashamed to admit that I actually did this one -- I wasn't trying to update anything, I was simply creating a quick "list" -- and when I deleted a few of the records that weren't appropriate -- ZAP! I knew instantly how stupid I'd been... And I have no excuse. I was copying to Word and I just plain lost track of where I was and what I was doing. :( Susan H. From KP at sdsonline.net Sun Feb 5 19:18:39 2006 From: KP at sdsonline.net (Kath Pelletti) Date: Mon, 6 Feb 2006 12:18:39 +1100 Subject: [AccessD] Missing records References: <001d01c62ab7$34a33210$c0b3d6d1@SUSANONE> Message-ID: <000f01c62abb$43a67070$6501a8c0@user> .....you needed more coffee that day........or maybe a residual braindrain effect from working with your Microsoft beta software!! :) Kath ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Monday, February 06, 2006 11:49 AM Subject: Re: [AccessD] Missing records Anyway, records were disappearing all the of the time - turned out it was as simple as a new staff member not knowing that after running a query you DON'T delete the recs returned in the dynaset. ========I am ashamed to admit that I actually did this one -- I wasn't trying to update anything, I was simply creating a quick "list" -- and when I deleted a few of the records that weren't appropriate -- ZAP! I knew instantly how stupid I'd been... And I have no excuse. I was copying to Word and I just plain lost track of where I was and what I was doing. :( Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Sun Feb 5 19:21:25 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sun, 5 Feb 2006 20:21:25 -0500 Subject: [AccessD] Missing records In-Reply-To: <000f01c62abb$43a67070$6501a8c0@user> Message-ID: <004401c62abb$a66a67c0$c0b3d6d1@SUSANONE> or maybe a residual braindrain effect from working with your Microsoft beta software!! =======THAT was definitely it! ;) Susan H. From accessd at shaw.ca Sun Feb 5 19:55:25 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 05 Feb 2006 17:55:25 -0800 Subject: [AccessD] OT: Print to Document file In-Reply-To: <43E68C67.1080001@shaw.ca> Message-ID: <005501c62ac0$66213ea0$017ba8c0@xpserver> OT: Hi All: Has anyone used or can recommend a print to Word document file Printer add on? TIA Jim From stuart at lexacorp.com.pg Sun Feb 5 20:16:02 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 06 Feb 2006 12:16:02 +1000 Subject: [AccessD] OT: Print to Document file In-Reply-To: <005501c62ac0$66213ea0$017ba8c0@xpserver> References: <43E68C67.1080001@shaw.ca> Message-ID: <43E73E02.26627.8D5A562@stuart.lexacorp.com.pg> On 5 Feb 2006 at 17:55, Jim Lawrence wrote: > OT: > > Hi All: > > Has anyone used or can recommend a print to Word document file Printer add > on? > For queries and reports? I just "Export" them to RTF. Word installs itself as the default handler for RTF files. You can use the "Tools-Office Link-Publish It with Microsoft Word" or the "File-Export" menu items. In code you can use: DoCmd.OutputTo acOutputReport, "rptMyReport", acFormatRTF, "MyReport.rtf" -- Stuart From DorisH3 at aol.com Sun Feb 5 20:57:04 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Sun, 5 Feb 2006 21:57:04 EST Subject: [AccessD] Conversion Message-ID: <278.4559085.31181500@aol.com> In a message dated 2/5/2006 6:59:20 PM Eastern Standard Time, harkinsss at bellsouth.net writes: Rocky, we should write about this sometime. :) Susan I agree along with a small sample database....Doris From jmhecht at earthlink.net Sun Feb 5 21:54:29 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Sun, 5 Feb 2006 19:54:29 -0800 Subject: [AccessD] sql help please In-Reply-To: <39cb22f30602050947j51832aa2o86f5f04eb4e121b3@mail.gmail.com> Message-ID: <001901c62ad1$086a8d50$6701a8c0@HPLaptop> Steve, Thank you for all the time you put into this. You know a sql statement is too big if the creator does not fully understand it all. For brevity I removed the sql statement but please see my comments in line. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Sunday, February 05, 2006 9:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] sql help please I noticed that the MyAccidnetRecordNumber field contained in 4 different tables is misspelled. Do you get Access query prompts when you run this query asking you to enter a value for MyAccidnetRecordNumber? If that's the case, then it looks to me like the misspelling is the problem. [Joe Hecht] Are you saying that I spelled them differently in each table? Big Dumb for me. I am not getting any prompts for the query. I noticed that the clause (M.DRIV_NUM = A.DRIV_NUM) is shown twice at the end. [Joe Hecht] How did I do that? I work almost exclusively in design mode. Are you able to see what is causing that? I sure did not type that. The table joins look straightforward enough. [Joe Hecht] Some of the join issues you wrote look wrong to me. (The joins, not your comments.) I see that there are no fields SELECTed from the 20_stblAIPaidExpences Table [Joe Hecht] I had not gotten around to dropping them in. Hope this helps. [Joe Hecht] It does. Thank you. I am going to try your query or rebuild this beast up from multiple queries. Thanks again, Joe From bchacc at san.rr.com Sun Feb 5 21:59:47 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 05 Feb 2006 19:59:47 -0800 Subject: [AccessD] OT: Print to Document file In-Reply-To: <43E73E02.26627.8D5A562@stuart.lexacorp.com.pg> References: <43E68C67.1080001@shaw.ca> <43E73E02.26627.8D5A562@stuart.lexacorp.com.pg> Message-ID: <43E6C9B3.9010708@san.rr.com> RTF didn't work for me because I lost too much formatting. I used a program that installs a printer called Print To Picture that prints each page to a jpg which can be dropped into a Word doc. A bit awkward, but OK for one-shots like the user manual I had to write where I wanted to reprint Access reports. For PDF format Primo PDF installs as a printer and outputs an Access report to a PDF file. HTH Rocky Stuart McLachlan wrote: > On 5 Feb 2006 at 17:55, Jim Lawrence wrote: > > >> OT: >> >> Hi All: >> >> Has anyone used or can recommend a print to Word document file Printer add >> on? >> >> > > For queries and reports? > > I just "Export" them to RTF. Word installs itself as the default handler > for RTF files. > > You can use the "Tools-Office Link-Publish It with Microsoft Word" or the > "File-Export" menu items. In code you can use: > DoCmd.OutputTo acOutputReport, "rptMyReport", acFormatRTF, "MyReport.rtf" > > > > > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jmhecht at earthlink.net Sun Feb 5 22:13:05 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Sun, 5 Feb 2006 20:13:05 -0800 Subject: [AccessD] sql help please (Related question to thread.) Message-ID: <001f01c62ad3$a1bc0e00$6701a8c0@HPLaptop> Is it possible a table con look fine but somehow be corrupt and be killing the query? I am rebuilding my beast but the one same table keeps killing it? Joe Hecht jmhecht at earthlink.net From jimdettman at earthlink.net Mon Feb 6 05:37:16 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 6 Feb 2006 06:37:16 -0500 Subject: [AccessD] Lotus Notes Email In-Reply-To: <000001c629ff$e26643f0$0200a8c0@danwaters> Message-ID: Dan, If you need more, I've got some code that I use to directly work with the Notes object model. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dan Waters Sent: Saturday, February 04, 2006 9:57 PM To: AccessD Subject: [AccessD] Lotus Notes Email Has anyone used access to send email via Lotus Notes? I've never used Lotus Notes for email or anything else, but a potential customer does, and I'd like to tell him that I can connect to his email system. Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From erbachs at gmail.com Mon Feb 6 06:31:41 2006 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 6 Feb 2006 06:31:41 -0600 Subject: [AccessD] sql help please In-Reply-To: <001901c62ad1$086a8d50$6701a8c0@HPLaptop> References: <39cb22f30602050947j51832aa2o86f5f04eb4e121b3@mail.gmail.com> <001901c62ad1$086a8d50$6701a8c0@HPLaptop> Message-ID: <39cb22f30602060431i2f33302dgdcf72b5e52fa453d@mail.gmail.com> Joe, ? Thank you for all the time you put into this. ? It was fun, actually. I did it so that I could SEE the relationships. But you're welcome! ? Are you saying that I spelled them differently in each table? Big Dumb for me. I am not getting any prompts for the query. ? I didn't explain myself properly. Some of the fields in your query have the word Accident spelled correctly: AccidentDATE, AccidentTime, and AccidentDayofWeek. It was just the key fields (I presume) in those four tables that ALL had the name MyAccidnetRecordNumber. The key field names were not different in each of the tables; they were all consistently misspelled. That's what I meant. One more thing about the joins: when I'd finished creating the mock tables to enable me to look at the query in design mode, I noticed that there was no direct JOIN statement linking 10_tbl_PersonelMasterData (M) to 20_tblAIMaster (A), just those two clauses at the end of your query. So I thought that I'd remove all the links and then re-link them "manually" in the Design window. I highlighted the connecting line between M and A and right-clicked on it to get the context menu, I then clicked on Delete...but the connecting line was still there. I checked the SQL code and found that the final AND (M.DRIV_NUM = A.DRIV_NUM) had been removed leaving just the ON (M.DRIV_NUM = A.DRIV_NUM) clause. I then deleted the second connecting line and then all the rest, and re-linked them to match the original design. Here's the New and Improved FROM clause: FROM (((((10_tbl_PersonelMasterData AS M INNER JOIN 10_stblEmpCompInfo AS C ON M.MyEmpNumb = C.MyEmpNumb) LEFT JOIN 50_ltblTerminal AS T ON C.TERMINAL = T.TRMNL_CODE) INNER JOIN 20_tblAIMaster AS A ON M.DRIV_NUM = A.DRIV_NUM) INNER JOIN 20_stblAccDayInfo AS D ON A.MyAccidnetRecordNumber = D.MyAccidnetRecordNumber) INNER JOIN 20_stblAIPaidExpences AS X ON A.MyAccidnetRecordNumber = X.MyAccidnetRecordNumber) LEFT JOIN 20_stb_Loc_Wather_Road AS W ON A.MyAccidnetRecordNumber = W.MyAccidnetRecordNumber; I wonder if that reference to M.DRIV_NUM = A.DRIV_NUM might have been the remains of a WHERE clause that just happened NOT to cause a syntax error in the query. Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security On 2/5/06, Joe Hecht wrote: > Steve, > > Thank you for all the time you put into this. You know a sql > statement is too big if the creator does not fully > understand it all. > > For brevity I removed the sql statement but please see my > comments in line. > > Joe Hecht > jmhecht at earthlink.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Steve Erbach > Sent: Sunday, February 05, 2006 9:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] sql help please > > > > I noticed that the MyAccidnetRecordNumber field contained in > 4 different tables is misspelled. Do you get Access query > prompts when you run this query asking you to enter a value > for MyAccidnetRecordNumber? If that's the case, then it > looks to me like the misspelling is the problem. > > [Joe Hecht] Are you saying that I spelled them differently > in each table? Big Dumb for me. I am not getting any prompts > for the query. > > > I noticed that the clause (M.DRIV_NUM = A.DRIV_NUM) is shown > twice at the end. > > [Joe Hecht] How did I do that? I work almost exclusively in > design mode. Are you able to see what is causing that? I > sure did not type that. > > The table joins look straightforward enough. > > [Joe Hecht] Some of the join issues you wrote look wrong to > me. (The joins, not your comments.) > > > I see that there are no fields SELECTed from the > 20_stblAIPaidExpences > Table > > > [Joe Hecht] I had not gotten around to dropping them in. > > Hope this helps. > [Joe Hecht] > It does. Thank you. I am going to try your query or rebuild > this beast up from multiple queries. > > Thanks again, > > Joe > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- From erbachs at gmail.com Mon Feb 6 06:35:23 2006 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 6 Feb 2006 06:35:23 -0600 Subject: [AccessD] sql help please (Related question to thread.) In-Reply-To: <001f01c62ad3$a1bc0e00$6701a8c0@HPLaptop> References: <001f01c62ad3$a1bc0e00$6701a8c0@HPLaptop> Message-ID: <39cb22f30602060435p6a2513c3t9f3c1194c7b6da4b@mail.gmail.com> Joe, Why don't you try exporting the data from the suspect table to, say, an Excel file or a CSV file, rename the existing table, and then import the data back into Access. Check the table structure that results and re-create your key field and adjust the field properties. Then try the query again. Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security Blog: http://TheTownCrank.blogspot.com On 2/5/06, Joe Hecht wrote: > Is it possible a table con look fine but somehow be corrupt > and be killing the query? > > > > I am rebuilding my beast but the one same table keeps > killing it? > > > > > > Joe Hecht > > jmhecht at earthlink.net > > > > -- > 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 6 06:53:44 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 06 Feb 2006 04:53:44 -0800 Subject: [AccessD] Conversion In-Reply-To: <278.4559085.31181500@aol.com> References: <278.4559085.31181500@aol.com> Message-ID: <43E746D8.80509@san.rr.com> Doris: Did you get what you needed from all that rambling? Rocky DorisH3 at aol.com wrote: > > In a message dated 2/5/2006 6:59:20 PM Eastern Standard Time, > harkinsss at bellsouth.net writes: > > Rocky, we should write about this sometime. :) > > > Susan > > I agree along with a small sample database....Doris > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jeffrey.demulling at usbank.com Mon Feb 6 08:39:27 2006 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Mon, 6 Feb 2006 08:39:27 -0600 Subject: [AccessD] Lotus Notes Email - Thanks! In-Reply-To: <000401c62a79$9530ca90$0200a8c0@danwaters> Message-ID: Dan, Here is some more code samples that may be of use for you. Make sure you set the references for Lotus Domino Objects and Lotus Notes Automation Classes. '--------------------------------------------------------------------------------------- ' Module : mdlSendLotusNotesMail ' DateTime : 2004-Mar-23 11:48 ' Author : Jeffrey F. Demulling ' Purpose : Used to send email via Lotus Notes. ' Notes : Orginal Code can be found at: http://www.fabalou.com/VBandVBA/lotusnotesmail.asp ' '--------------------------------------------------------------------------------------- Option Compare Database 'Public Sub SendNotesMail(Subject as string, attachment as string, 'recipient as string, bodytext as string,saveit as Boolean) 'This public sub will send a mail and attachment if neccessary to the 'recipient including the body text. 'Requires that notes client is installed on the system. Public Sub SendCTConnectionViaNotes(Subject As String, myrecipient As String, mySaveFlag As Boolean, mySendFromFlag As Integer) '--------------------------------------------------------------------------------------- ' Procedure : SendCTConnectionViaNotes ' DateTime : 2005-Apr-08 13:43 13:43 ' Author : Jeffrey F. Demulling ' Purpose : '--------------------------------------------------------------------------------------- ' 'Set up the objects required for Automation into lotus notes Dim maildb As NotesDatabase Dim MailDbName As String 'THe current users notes mail database name Dim MailDoc As NotesDocument Dim AttachME As Object 'The attachment richtextfile object Dim session As New NotesSession Dim MailDbDir As NotesDbDirectory Dim EmbedObj As Object 'The embedded object (Attachment) Dim strBodyText As String Dim db As DAO.Database Dim rst As DAO.Recordset Dim cmdtext As String Dim mysendfile As Variant Dim myServer As String Dim myFile As String Dim mymessage As String On Error GoTo SendCTConnectionViaNotes_Error 'Open the mail database in notes Select Case mySendFromFlag Case 2 myServer = GetPropertyValue("MarketingSharedEmailServer", setconnection) myFile = GetPropertyValue("MarketingSharedEmailFile", setconnection) session.Initialize Set maildb = session.GetDatabase(myServer, myFile) Case Else session.Initialize Set MailDbDir = session.GetDbDirectory("") Set maildb = MailDbDir.OpenMailDatabase() End Select If maildb.ISOPEN = True Then 'Already open for mail Else maildb.OPENMAIL End If 'Set up the new mail document Set MailDoc = maildb.CreateDocument MailDoc.ReplaceItemValue "Form", "Memo" MailDoc.ReplaceItemValue "Subject", Subject MailDoc.ReplaceItemValue "SendTo", myrecipient Select Case mySendFromFlag Case 2 'CT Shared MailDoc.ReplaceItemValue "Principal", GetPropertyValue("MarketingSharedEmailPrincipal", setconnection) 'MarketingSharedEmailPrincipal MailDoc.ReplaceItemValue "$INetPrincipal", GetPropertyValue("MarketingSharedEmail$INetPrincipal", setconnection) 'MarketingSharedEmail$INetPrincipal MailDoc.ReplaceItemValue "DisplayFrom", GetPropertyValue("MarketingSharedEmailDisplayFrom", setconnection) 'MarketingSharedEmailDisplayFrom MailDoc.ReplaceItemValue "DisplayFrom Preview", GetPropertyValue("MarketingSharedEmailDisplayFromPreview", setconnection) 'MarketingSharedEmailDisplayFromPreview Case Else 'Users 'Do Nothing End Select strBodyText = "Thank you for requesting that we send you the Corporate Trust Connection electronically. We are" strBodyText = strBodyText & " certain you will enjoy this edition. If you have any comments or future article" strBodyText = strBodyText & " suggestions, please respond to:" & vbCrLf & vbCrLf strBodyText = strBodyText & "marketing.corporatetrust at usbank.com" & vbCrLf & vbCrLf strBodyText = strBodyText & "NOTE: If you wish to remove your email address from this mailing, please reply to:" & cbCrLf strBodyText = strBodyText & " marketing.corporatetrust at usbank.com, including your name, organization and email address." strBodyText = strBodyText & " Please write REMOVE in the subject line." & vbCrLf & vbCrLf Set Body = MailDoc.CreateRichTextItem("Body") Body.AppendText strBodyText 'Place Attachments cmdtext = "SELECT" cmdtext = cmdtext & " TempFileList.FileName" cmdtext = cmdtext & " FROM" cmdtext = cmdtext & " TempFileList" cmdtext = cmdtext & " ORDER BY" cmdtext = cmdtext & " TempFileList.FileName;" Set db = CurrentDb Set rst = db.OpenRecordset(cmdtext) If Not rst.BOF And Not rst.EOF Then rst.MoveFirst Do Until rst.EOF mysendfile = rst.Fields("FileName") Set EmbedObj = Body.EmbedObject(EMBED_ATTACHMENT, "", mysendfile) rst.MoveNext Loop End If 'Send the document Select Case mySaveFlag Case True MailDoc.SaveMessageOnSend = True MailDoc.ReplaceItemValue "PostedDate", Now() MailDoc.Send (False) Case False MailDoc.SaveMessageOnSend = False MailDoc.Send (False) End Select 'Clean Up Set maildb = Nothing Set MailDoc = Nothing Set AttachME = Nothing Set session = Nothing Set MailDbDir = Nothing Set EmbedObj = Nothing On Error GoTo 0 Exit Sub SendCTConnectionViaNotes_Error: Select Case Err.Number Case -2147217504 mymessage = "Emails have not been sent for one of the following reasons:" & Chr(13) & Chr(10) mymessage = mymessage & "1: User canceled sending of email by canceling Lotus Notes password promt" & Chr(13) & Chr(10) mymessage = mymessage & "2: User is not an authorized user of the 'Marketing - Corporate Trust Shared' email box" MsgBox mymessage, vbCritical, "Action Cancelled" End Case Else MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure SendCTConnectionViaNotes of Module mdlSendCTConnectionViaNotes" End Select End Sub Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "'Access Developers discussion and accessd-bounces at d problem solving'" atabaseadvisors.c om cc Subject 02/05/2006 11:28 Re: [AccessD] Lotus Notes Email - AM Thanks! Please respond to "Access Developers discussion and problem solving" Barb & Stuart! Thanks for this help. This is one of those 'could make the difference' items! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Barbara Ryan Sent: Sunday, February 05, 2006 7:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lotus Notes Email Dan...Yes --- here's some sample code http://www.fabalou.com/VBandVBA/lotusnotesmail.asp Barb Ryan ----- Original Message ----- From: "Dan Waters" To: "AccessD" Sent: Saturday, February 04, 2006 9:57 PM Subject: [AccessD] Lotus Notes Email > Has anyone used access to send email via Lotus Notes? I've never used Lotus > Notes for email or anything else, but a potential customer does, and I'd > like to tell him that I can connect to his email system. > > Thanks! > > Dan > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== From tinanfields at torchlake.com Mon Feb 6 09:23:05 2006 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Mon, 06 Feb 2006 10:23:05 -0500 Subject: [AccessD] Adding "All" to Combo List Message-ID: <43E769D9.4060504@torchlake.com> Hi, I know I saw something about how to do this discussed on this list. How do I add the "All" indication at the top of a combobox list? Thanks. Tina From Erwin.Craps at ithelps.be Mon Feb 6 09:50:06 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 6 Feb 2006 16:50:06 +0100 Subject: [AccessD] Adding "All" to Combo List Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B634E@stekelbes.ithelps.local> Via VBA code, but I supose you mean using a SQL UNION query like this SELECT -9999 AS Product_LID, "All" AS ProductDescription FROM PROD_Main UNION SELECT Product_LID, ProductDescription FROM PROD_Main; Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Monday, February 06, 2006 4:23 PM To: accessd at databaseadvisors.com Subject: [AccessD] Adding "All" to Combo List Hi, I know I saw something about how to do this discussed on this list. How do I add the "All" indication at the top of a combobox list? Thanks. Tina -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Mon Feb 6 09:59:13 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 6 Feb 2006 10:59:13 -0500 Subject: [AccessD] Adding "All" to Combo List In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3B9A8@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F05@ADGSERVER> One way is something like this : SELECT ID, Descr FROM Project UNION SELECT 0 as t1,'(All)' as t2 FROM Project " & _ "ORDER BY Descr ASC;" The UNION statement is the key here. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Monday, February 06, 2006 10:23 AM To: accessd at databaseadvisors.com Subject: [AccessD] Adding "All" to Combo List Hi, I know I saw something about how to do this discussed on this list. How do I add the "All" indication at the top of a combobox list? Thanks. Tina From DorisH3 at aol.com Mon Feb 6 10:01:12 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Mon, 6 Feb 2006 11:01:12 EST Subject: [AccessD] Conversion Message-ID: <190.50b2cca4.3118ccc8@aol.com> Yes, I understand that it can be done, how specifically I'm not sure...I guess I will need to experiment...Doris From bchacc at san.rr.com Mon Feb 6 10:13:34 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 06 Feb 2006 08:13:34 -0800 Subject: [AccessD] Conversion In-Reply-To: <190.50b2cca4.3118ccc8@aol.com> References: <190.50b2cca4.3118ccc8@aol.com> Message-ID: <43E775AE.7040106@san.rr.com> Let me know if I can help. Rocky DorisH3 at aol.com wrote: > Yes, I understand that it can be done, how specifically I'm not sure...I > guess I will need to experiment...Doris > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Jim.Hale at FleetPride.com Mon Feb 6 11:16:01 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 6 Feb 2006 11:16:01 -0600 Subject: [AccessD] Conversion Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DD9FE@corp-es01.fleetpride.com> Do you run into control/text box/label sizing issues to hold the translations? ie. since the number of characters to be displayed vary, one size fits all doesn't always work for controls? If so how did you deal with them? Jim Hale -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Monday, February 06, 2006 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Conversion Let me know if I can help. Rocky DorisH3 at aol.com wrote: > Yes, I understand that it can be done, how specifically I'm not sure...I > guess I will need to experiment...Doris > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Mike.W.Gowey at doc.state.or.us Mon Feb 6 12:01:06 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Mon, 6 Feb 2006 11:01:06 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF486077808115B0D@srciml1.ds.doc.state.or.us> Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- 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 6 12:51:45 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 6 Feb 2006 12:51:45 -0600 Subject: [AccessD] Long to String and vice versa Message-ID: <17724746D360394AA3BFE5B8D40A9C1BD6AA@main2.marlow.com> Just something I put together on Friday, for one of my projects. I don't know if anyone on the list will find it useful. In this particular project, I'm sending data through winsock controls, and I need to make sure the data gets put through. There are several levels to it. In Access, text fields are prefaced by a byte that represents the length of the text in the field. So if the text is 'HELLO', that's 5 characters, so the field will have 6 bytes, the first byte being Chr(5) the rest being Chr(72) chr(69) Chr(76) Chr(76) Chr(79). In my 'Data Protocol' class, I link a collection of strings by prefacing the string with it's length. If I wanted to be limited to 255 characters per string, I could just use: Dim i Dim strCombined For i=1 to DataStrings.Count strCombined=strCombined & Chr(len(DataStrings(i))) & DataStrings(i) Next i Now I have a string that I can seperate no matter what characters are used in the strings within the DataStrings collection. However, what if some of those strings are longer then 255 characters? Then a 2 byte preface would work. That gets you to 64k characters. The four functions I am posting at the end of this will convert an Integer or a Long into a string, and back again. So if you are using a Long, and you send it 6, you'll get Chr(6), Chr(0),Chr(0),Chr(0) as the string that is returned. I was using a process that relied on math, to get 2 digits, and wanted something a little faster. These functions scream, because they are simply copying memory back and forth, doing 'forced' conversions. (1234 converted to a string is "1234", which is NOT the binary represenation of the number 1234. Converting 123 to a string would be "123", 3 characters long, therefore not a very good 'length pointer'. Converted to Chr(123) Chr(0) Chr(0) Chr(0), that is four characters, and thus you know exactly how much of your string to 'read' to get the length of the actual string. Anyhow, I hope someone finds a use for this, I thought it was too neat to not pass along: Option Explicit Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long) Function LongToString(intLong As Long) As String Dim byteArray(0 To 3) As Byte CopyMemory byteArray(0), ByVal VarPtr(intLong), 4 LongToString = StrConv(byteArray, vbUnicode) End Function Function StringToLong(strString As String) As Long Dim byteArray(0 To 3) As Byte Dim intTemp As Long CopyMemory byteArray(0), ByVal strString, 4 CopyMemory ByVal VarPtr(intTemp), byteArray(0), 4 StringToLong = intTemp End Function Function IntegerToString(intInteger As Integer) As String Dim byteArray(0 To 1) As Byte CopyMemory byteArray(0), ByVal VarPtr(intInteger), 2 IntegerToString = StrConv(byteArray, vbUnicode) End Function Function StringToInteger(strString As String) As Integer Dim byteArray(0 To 1) As Byte Dim intTemp As Integer CopyMemory byteArray(0), ByVal strString, 2 CopyMemory ByVal VarPtr(intTemp), byteArray(0), 2 StringToInteger = intTemp End Function From jwelz at hotmail.com Mon Feb 6 13:41:26 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Mon, 06 Feb 2006 12:41:26 -0700 Subject: [AccessD] Basic Query Design In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF486077808115B0D@srciml1.ds.doc.state.or.us> Message-ID: I'm drawing a blank today so I thought I'd throw out a question. I provide search forms allowing users to filter data on multiple criteria and they work fine but, I can't help but think there is something I am missing. For example, I have an Employee table and a table of Courses taken by Employees that serves as a junction between the Employee table and a table of Course. Among other things, my search form provides a multiselect listbox with a hidden 1st column (CourseID) and a visible 2nd column (CourseName) where a user may select one or more (or no) course. As a user selects or unselects a course, a list box of search hits is populated with a hidden 1st column (EmployeeID) and a concatenated 2nd column (FirstName & ' ' & LastName). The purpose of the search is to provide a user a list of employees who have a particular combination of certifications. A typical scenario is that we would like to find an employee who has taken Suncor/Syncrude Orientation, has First Aid and Boom Forklift certifications. The code generates a series of subqueries and dynamically sets the hit list rowsource SQL, but I can't help but think there must be an easier way. Here is the SQL for the example (without restrictions on Employee category, union/non-union, employiing division, regional office, and skipping IsActive and restrictions on Deleted courses and Employees...........) SELECT tblEmployee.EmployeeID, FirstName & ' ' & LastName FROM tblEmployee WHERE tblEmployee.EmployeeID In (Select tblEmployee.EmployeeID FROM tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.EmployeeID = tblEmployeeCourse.EmployeeID Where tblEmployee.EmployeeID In (Select tblEmployee.EmployeeID FROM tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.EmployeeID = tblEmployeeCourse.EmployeeID Where tblEmployee.EmployeeID In (Select tblEmployee.EmployeeID FROM tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.EmployeeID = tblEmployeeCourse.EmployeeID Where CourseID = 14) And CourseID = 1) And CourseID = 12) ORDER BY FirstName & ' ' & LastName There is nothing wrong with the way it currently works but I can't help but think that there is a better way to do this, especially should we port to a SQL Server BE. Surely there is a better way to pass 'AND' (Exclusive) parameters along the lines of an 'OR' (Inclusive ie, IN(list) style) parameter. Anyone? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com From stuart at lexacorp.com.pg Mon Feb 6 16:13:48 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 07 Feb 2006 08:13:48 +1000 Subject: [AccessD] Basic Query Design In-Reply-To: References: <05EBB8A3BEB95B4F8216BE4EF486077808115B0D@srciml1.ds.doc.state.or.us> Message-ID: <43E856BC.18973.D1E3C40@stuart.lexacorp.com.pg> On 6 Feb 2006 at 12:41, J??rgen Welz wrote: > There is nothing wrong with the way it currently works but I can't help but > think that there is a better way to do this, especially should we port to a > SQL Server BE. Surely there is a better way to pass 'AND' (Exclusive) > parameters along the lines of an 'OR' (Inclusive ie, IN(list) style) > parameter. Anyone? > > How about something like (aircode - may not run as is) Select tblEmployee.EmployeeID, FirstName & ' ' & LastName from tblEmployee inner join (select distinct EmployeeID, Count(EmployeeID) from tblEmployeeCourse where CourseID In (1,4,7) and Count(EmployeeID) = 3 Group By EmployeeID) on tblEmploye.EmployeeID = tblEmployeeCourse.EmployeeID That should return only the employees who have all three courses. You can also get the employees who have done two of the three courses etc if you can't find anyone with all three :-) -- Stuart From jwelz at hotmail.com Mon Feb 6 16:59:40 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Mon, 06 Feb 2006 15:59:40 -0700 Subject: [AccessD] Basic Query Design In-Reply-To: <43E856BC.18973.D1E3C40@stuart.lexacorp.com.pg> Message-ID: Stuart: That certainly generates a shorter SQL string for the example raised, and of course, even more so as the number of course selections increases. The concept of using a count in an aggregate query certainly returns the desired results without nesting a series of subqueries the way I was doing things. Following your lead, with 4 items picked from the list: SELECT tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName FROM tblEmployeeCourse INNER JOIN tblEmployee ON tblEmployeeCourse.EmployeeID = tblEmployee.EmployeeID WHERE CourseID In (1,2,4,5) GROUP BY tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName HAVING Count(tblEmployee.EmployeeID) = 4 ORDER BY FirstName & ' ' & LastName This should run much faster, though speed hasn't been a problem with the 1700 Employee records and 30 Course records (about 2500 junction table records). Thanks for pointing out the approach. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Stuart McLachlan" > >On 6 Feb 2006 at 12:41, J??rgen Welz wrote: > > > There is nothing wrong with the way it currently works but I can't help >but > > think that there is a better way to do this, especially should we port >to a > > SQL Server BE. Surely there is a better way to pass 'AND' (Exclusive) > > parameters along the lines of an 'OR' (Inclusive ie, IN(list) style) > > parameter. Anyone? > > > > > >How about something like (aircode - may not run as is) > >Select tblEmployee.EmployeeID, FirstName & ' ' & LastName from >tblEmployee inner join >(select distinct EmployeeID, Count(EmployeeID) > from tblEmployeeCourse > where CourseID In (1,4,7) and Count(EmployeeID) = 3 >Group By EmployeeID) >on tblEmploye.EmployeeID = tblEmployeeCourse.EmployeeID > >That should return only the employees who have all three courses. >You can also get the employees who have done two of the three courses etc >if you can't find anyone with all three :-) > > > > > > >-- >Stuart From accessd at shaw.ca Mon Feb 6 19:54:12 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 06 Feb 2006 17:54:12 -0800 Subject: [AccessD] DBA web site update In-Reply-To: Message-ID: <009201c62b89$64ab2710$017ba8c0@xpserver> Hi All: A new article, 'Array Performance', as well as some minor changes has been added to the DBA web site (www.ddatabaseadvisors.com). Jim From erbachs at gmail.com Mon Feb 6 20:06:43 2006 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 6 Feb 2006 20:06:43 -0600 Subject: [AccessD] Basic Query Design In-Reply-To: References: <05EBB8A3BEB95B4F8216BE4EF486077808115B0D@srciml1.ds.doc.state.or.us> Message-ID: <39cb22f30602061806p54f48b87p9d996ddec7e417d4@mail.gmail.com> J?rgen, I've been working on this off-and-on today. Your query reminded me that a database I used to work with, Paradox, contained set operations for this very thing: Which employees have taken every one of the following list of courses? I thought at first that the ALL keyword might do the trick in SQL, but no such luck. It doesn't look like there's a straightforward set-oriented way to perform this query in SQL. It would have to be something like what Stuart showed you. Only thing I wonder about with that query is if an employee took one of the courses more than once but skipped one of the ones you're looking for. The COUNT would be the same, but your criteria would not be met. Steve Erbach Neenah, WI On 2/6/06, J?rgen Welz wrote: > I'm drawing a blank today so I thought I'd throw out a question. > > I provide search forms allowing users to filter data on multiple criteria > and they work fine but, I can't help but think there is something I am > missing. For example, I have an Employee table and a table of Courses taken > by Employees that serves as a junction between the Employee table and a > table of Course. > > Among other things, my search form provides a multiselect listbox with a > hidden 1st column (CourseID) and a visible 2nd column (CourseName) where a > user may select one or more (or no) course. As a user selects or unselects > a course, a list box of search hits is populated with a hidden 1st column > (EmployeeID) and a concatenated 2nd column (FirstName & ' ' & LastName). > The purpose of the search is to provide a user a list of employees who have > a particular combination of certifications. A typical scenario is that we > would like to find an employee who has taken Suncor/Syncrude Orientation, > has First Aid and Boom Forklift certifications. From martyconnelly at shaw.ca Mon Feb 6 19:55:26 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 06 Feb 2006 17:55:26 -0800 Subject: [AccessD] Conversion References: <190.50b2cca4.3118ccc8@aol.com> Message-ID: <43E7FE0E.8060709@shaw.ca> Have a look around this portal for general Internationalizing info http:// www.microsoft.com/global There are a lot of little things that will drive you daffy, make sure you understand that VBA and VB6 internal routines sometimes only work with ANSI strings and not full Unicode strings. Also certain things in the IDE will only work with ANSI strings. I just had to rename some filenames into Arabic from fields in an Access Unicode Table I thought I just had to do Name "c:\oldname.txt as "c:\" & RS!ArabicField & ".txt" But this only works on ANSI strings and is restricted to my WinXP Canadian codepage. the VBA "Name" function "helps" you by translating your original Unicode to Ansi Any illegal Ansi characters appear as "?" or something weird. So I can only use the 256 characters for ISO-8859-1 which covers some western european languages rather than the 64K characters for Unicode. Even google missed this sort of thing in some of their first versions of xml output from their desktop search engine. To get it to rename an English file to a Unicode Filename using suitable VBA Unicode functions Sub RenameFileToUnicode(strTheOriginalFile As String, strChineseUnicode As String) Dim filesys As Object Set filesys = CreateObject("Scripting.FileSystemObject") 'add a file extension like jpeg or txt filesys.GetFile(strTheOriginalFile).Name = strChineseUnicode & ".txt" Set filesys = Nothing End Sub Also make sure, if you are doing multi-language translations, it can only be done with US MS Office and it's downloadable MUI Language Packs. It is nearly impossible with Localized version of Office like a French Office version. see Options for Using Office 2003 Editions in Multiple Languages http://www.microsoft.com/office/editions/prodinfo/language/choosing.mspx Smart Access article- How to create a multi-language application in Access http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmart04/html/sa04g1.asp Set up Office 2000 and your computer to work in another language http://office.microsoft.com/en-ca/assistance/HA010549991033.aspx Michael Kaplan's blog He also has an out of print book that is useful on VB6 Internationalization. Technical Lead from Globalization, Infrastructure, Fonts, and Tools at Microsoft. http://209.34.241.67/michkap/archive/category/8717.aspx DorisH3 at aol.com wrote: >Yes, I understand that it can be done, how specifically I'm not sure...I >guess I will need to experiment...Doris > > -- Marty Connelly Victoria, B.C. Canada From kathryn at bassett.net Mon Feb 6 20:49:52 2006 From: kathryn at bassett.net (Kathryn Bassett) Date: Mon, 6 Feb 2006 18:49:52 -0800 Subject: [AccessD] DBA web site update In-Reply-To: <009201c62b89$64ab2710$017ba8c0@xpserver> Message-ID: <20060206184958.23A69447@dm16.mta.everyone.net> And of course everyone needs to notice that Jim type in to many d's in www.databaseadvisors.com Kathryn > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence > Sent: 06 Feb 2006 5:54 pm > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] DBA web site update > > Hi All: > > A new article, 'Array Performance', as well as some minor > changes has been added to the DBA web site > (www.ddatabaseadvisors.com). > > Jim > > -- > 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 6 21:45:20 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Mon, 6 Feb 2006 22:45:20 -0500 Subject: [AccessD] PDF printer driver and SDK Message-ID: <002001c62b98$ebc3aa10$647aa8c0@ColbyM6805> Folks, I just discovered this: http://www.neevia.com/ Cheap at $19 for the cheapest printer driver (per machine I think) and $30 for the SDK to write VB code to drive it. I printed my first Access document 15 minutes after discovering the web site, through free downloads of the driver and SDK. Of course the free driver places "printed by Docuprinter SDK" in every page of the printed doc, which I assume goes away when you buy the $30 license which I will be doing tonight I think. The Access report looks identical, down to the fonts, colors etc. Looks VERY good to me. The SDK has dozens of methods (it is a library that you reference in Access) that can do stuff that I don't even understand, as well as stuff that sounds logical to do. Not being a PDF expert of course I don't know what most of the stuff is but it's there if you need it. Take a look if you are doing this kind of thing, particularly if you are doing a "server" kind of program, as I am. John W. Colby www.ColbyConsulting.com From accessd at shaw.ca Mon Feb 6 21:49:09 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 06 Feb 2006 19:49:09 -0800 Subject: [AccessD] DBA web site update In-Reply-To: <20060206184958.23A69447@dm16.mta.everyone.net> Message-ID: <009d01c62b99$73b1a350$017ba8c0@xpserver> Thanks for catching Kathryn. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kathryn Bassett Sent: February 6, 2006 6:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] DBA web site update And of course everyone needs to notice that Jim type in to many d's in www.databaseadvisors.com Kathryn > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence > Sent: 06 Feb 2006 5:54 pm > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] DBA web site update > > Hi All: > > A new article, 'Array Performance', as well as some minor > changes has been added to the DBA web site > (www.ddatabaseadvisors.com). > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Mon Feb 6 21:49:31 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Mon, 06 Feb 2006 20:49:31 -0700 Subject: [AccessD] Basic Query Design In-Reply-To: <39cb22f30602061806p54f48b87p9d996ddec7e417d4@mail.gmail.com> Message-ID: Hey Steve: The actual query is a bit more complex than posted as it takes into account certification expiry dates and may mix in numerous additional Inclusive and Exclusionary conditions, several driven by multi select list boxes (1 through 8 regional offices, 1 or more of several categories of employee...). The question I posed was to address one aspect of a search that I provide for every major form. I won't have a problem with dupliicate courses in my 'count'. If I mapped bit flags to categories I'd have no trouble dynamically setting query by join SQL and denormalizing everything to the Employee table with a few external lookups. But I digress. Getting back to how one would integrate this with a SQL Server BE; the SQL string rowsource for a hit list may join anywhere from 0 to 8 additional tables in any combination, an In(list) may require a list of values subquery or nested subqueries and require in/exclusive conditions on the main table or any of the related tables. How does anyone to something like this without resorting to dynamic SQL? Do you have 60 stored parameter stored procedures that you substitute in as the rowsource as required? Stuart's posted solution provides a reasonable approach to cleaning up the string generation code I have been using to find matches for meeting 'every one' in a list on a single field. I have yet to run some performance tests but expect to do so over the next couple of days. Anyone else have an idea of another way of doing this before I run some testing? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Steve Erbach > >J?rgen, > >I've been working on this off-and-on today. Your query reminded me >that a database I used to work with, Paradox, contained set operations >for this very thing: Which employees have taken every one of the >following list of courses? > >I thought at first that the ALL keyword might do the trick in SQL, but >no such luck. It doesn't look like there's a straightforward >set-oriented way to perform this query in SQL. It would have to be >something like what Stuart showed you. Only thing I wonder about with >that query is if an employee took one of the courses more than once >but skipped one of the ones you're looking for. The COUNT would be >the same, but your criteria would not be met. > >Steve Erbach >Neenah, WI > >On 2/6/06, J?rgen Welz wrote: > > I'm drawing a blank today so I thought I'd throw out a question. > > > > I provide search forms allowing users to filter data on multiple >criteria > > and they work fine but, I can't help but think there is something I am > > missing. For example, I have an Employee table and a table of Courses >taken > > by Employees that serves as a junction between the Employee table and a > > table of Course. > > > > Among other things, my search form provides a multiselect listbox with a > > hidden 1st column (CourseID) and a visible 2nd column (CourseName) where >a > > user may select one or more (or no) course. As a user selects or >unselects > > a course, a list box of search hits is populated with a hidden 1st >column > > (EmployeeID) and a concatenated 2nd column (FirstName & ' ' & LastName). > > The purpose of the search is to provide a user a list of employees who >have > > a particular combination of certifications. A typical scenario is that >we > > would like to find an employee who has taken Suncor/Syncrude >Orientation, > > has First Aid and Boom Forklift certifications. From jmhecht at earthlink.net Mon Feb 6 21:52:06 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Mon, 6 Feb 2006 19:52:06 -0800 Subject: [AccessD] PDF printer driver and SDK In-Reply-To: <002001c62b98$ebc3aa10$647aa8c0@ColbyM6805> Message-ID: <000001c62b99$dda693b0$6601a8c0@HPLaptop> Glad to see someone is making progress tonight. I just deleted the wrong form and have lots of work to redo. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Monday, February 06, 2006 7:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] PDF printer driver and SDK Folks, I just discovered this: http://www.neevia.com/ Cheap at $19 for the cheapest printer driver (per machine I think) and $30 for the SDK to write VB code to drive it. I printed my first Access document 15 minutes after discovering the web site, through free downloads of the driver and SDK. Of course the free driver places "printed by Docuprinter SDK" in every page of the printed doc, which I assume goes away when you buy the $30 license which I will be doing tonight I think. The Access report looks identical, down to the fonts, colors etc. Looks VERY good to me. The SDK has dozens of methods (it is a library that you reference in Access) that can do stuff that I don't even understand, as well as stuff that sounds logical to do. Not being a PDF expert of course I don't know what most of the stuff is but it's there if you need it. Take a look if you are doing this kind of thing, particularly if you are doing a "server" kind of program, as I am. 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 bchacc at san.rr.com Mon Feb 6 22:36:39 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 06 Feb 2006 20:36:39 -0800 Subject: [AccessD] PDF printer driver and SDK In-Reply-To: <002001c62b98$ebc3aa10$647aa8c0@ColbyM6805> References: <002001c62b98$ebc3aa10$647aa8c0@ColbyM6805> Message-ID: <43E823D7.6020200@san.rr.com> Did you try PrimoPDF. Free. Installs as a printer. Makes a PDF file from an Access report. But I don't know if it does what you need. Rocky John Colby wrote: > Folks, > > I just discovered this: > > http://www.neevia.com/ > > Cheap at $19 for the cheapest printer driver (per machine I think) and $30 > for the SDK to write VB code to drive it. I printed my first Access > document 15 minutes after discovering the web site, through free downloads > of the driver and SDK. Of course the free driver places "printed by > Docuprinter SDK" in every page of the printed doc, which I assume goes away > when you buy the $30 license which I will be doing tonight I think. > > The Access report looks identical, down to the fonts, colors etc. > > Looks VERY good to me. The SDK has dozens of methods (it is a library that > you reference in Access) that can do stuff that I don't even understand, as > well as stuff that sounds logical to do. Not being a PDF expert of course I > don't know what most of the stuff is but it's there if you need it. > > Take a look if you are doing this kind of thing, particularly if you are > doing a "server" kind of program, as I am. > > John W. Colby > www.ColbyConsulting.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From wdhindman at bellsouth.net Tue Feb 7 04:57:27 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 7 Feb 2006 05:57:27 -0500 Subject: [AccessD] PDF printer driver and SDK References: <002001c62b98$ebc3aa10$647aa8c0@ColbyM6805> Message-ID: <001501c62bd5$48ddc640$1801a8c0@50NM721> ...what functionality does it provide that isn't available in Leban's free code? http://www.lebans.com/reporttopdf.htm William ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 06, 2006 10:45 PM Subject: [AccessD] PDF printer driver and SDK > Folks, > > I just discovered this: > > http://www.neevia.com/ > > Cheap at $19 for the cheapest printer driver (per machine I think) and $30 > for the SDK to write VB code to drive it. I printed my first Access > document 15 minutes after discovering the web site, through free downloads > of the driver and SDK. Of course the free driver places "printed by > Docuprinter SDK" in every page of the printed doc, which I assume goes > away > when you buy the $30 license which I will be doing tonight I think. > > The Access report looks identical, down to the fonts, colors etc. > > Looks VERY good to me. The SDK has dozens of methods (it is a library > that > you reference in Access) that can do stuff that I don't even understand, > as > well as stuff that sounds logical to do. Not being a PDF expert of course > I > don't know what most of the stuff is but it's there if you need it. > > Take a look if you are doing this kind of thing, particularly if you are > doing a "server" kind of program, as I am. > > 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 Gustav at cactus.dk Tue Feb 7 07:01:45 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Feb 2006 14:01:45 +0100 Subject: [AccessD] DBA web site update Message-ID: Thanks Jim! /gustav >>> accessd at shaw.ca 07-02-2006 02:54:12 >>> Hi All: A new article, 'Array Performance', as well as some minor changes has been added to the DBA web site (www.ddatabaseadvisors.com). Jim From jwelz at hotmail.com Tue Feb 7 07:46:04 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 07 Feb 2006 06:46:04 -0700 Subject: [AccessD] DBA web site update In-Reply-To: <009201c62b89$64ab2710$017ba8c0@xpserver> Message-ID: I've been able to implement the concepts discussed at the link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnovba00/html/LightningStrings.asp for sorting two dimensional string arrays as this approach only requires the use of available libraries. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Jim Lawrence > >Hi All: > >A new article, 'Array Performance', as well as some minor changes has been >added to the DBA web site (www.ddatabaseadvisors.com). > >Jim From erbachs at gmail.com Tue Feb 7 09:03:32 2006 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 7 Feb 2006 09:03:32 -0600 Subject: [AccessD] Basic Query Design In-Reply-To: References: <39cb22f30602061806p54f48b87p9d996ddec7e417d4@mail.gmail.com> Message-ID: <39cb22f30602070703u7ac1207an60403a41819064ee@mail.gmail.com> J?rgen, ? How does anyone do something like this without resorting to dynamic SQL? Do you have 60 stored parameter stored procedures that you substitute in as the rowsource as required? ? A fair question. My hope was to find a set-oriented approach like the old Paradox queries I mentioned. There the concept of a SET of records meeting several conditions (in your case, several different courses) is built into the query by example system. To tell you the truth, I used Paradox first to create a query that would do what you asked for using data I have that has similar relationships. The query took up very little space and modifying it dynamically would be a piece of cake. I had hoped that Paradox's ability to generate a SQL version of the query would help me answer your question. Alas! Paradox had no way to translate its native SET operations into SQL code. There is no comparable capability. Thus Stuart's solution looks to be the most compact and elegant one. I've read some of your posts about bit flags so your digression was not unexpected nor unwelcome. Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security On 2/6/06, J?rgen Welz wrote: > Hey Steve: > > The actual query is a bit more complex than posted as it takes into account > certification expiry dates and may mix in numerous additional Inclusive and > Exclusionary conditions, several driven by multi select list boxes (1 > through 8 regional offices, 1 or more of several categories of employee...). > The question I posed was to address one aspect of a search that I provide > for every major form. I won't have a problem with dupliicate courses in my > 'count'. If I mapped bit flags to categories I'd have no trouble > dynamically setting query by join SQL and denormalizing everything to the > Employee table with a few external lookups. But I digress. > > Getting back to how one would integrate this with a SQL Server BE; the SQL > string rowsource for a hit list may join anywhere from 0 to 8 additional > tables in any combination, an In(list) may require a list of values subquery > or nested subqueries and require in/exclusive conditions on the main table > or any of the related tables. How does anyone to something like this > without resorting to dynamic SQL? Do you have 60 stored parameter stored > procedures that you substitute in as the rowsource as required? > > Stuart's posted solution provides a reasonable approach to cleaning up the > string generation code I have been using to find matches for meeting 'every > one' in a list on a single field. I have yet to run some performance tests > but expect to do so over the next couple of days. > > Anyone else have an idea of another way of doing this before I run some > testing? > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com From Gustav at cactus.dk Tue Feb 7 09:20:09 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Feb 2006 16:20:09 +0100 Subject: [AccessD] DBA web site update Message-ID: Hi J?rgen Interesting. However, the task I was working with and the small test we made only read an wrote integers. But I will certainly give CopyMemory a closer look. /gustav >>> jwelz at hotmail.com 07-02-2006 14:46:04 >>> I've been able to implement the concepts discussed at the link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnovba00/html/LightningStrings.asp for sorting two dimensional string arrays as this approach only requires the use of available libraries. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Jim Lawrence > >Hi All: > >A new article, 'Array Performance', as well as some minor changes has been >added to the DBA web site (www.ddatabaseadvisors.com). > >Jim From jwcolby at ColbyConsulting.com Tue Feb 7 10:04:46 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 7 Feb 2006 11:04:46 -0500 Subject: [AccessD] PDF printer driver and SDK In-Reply-To: <001501c62bd5$48ddc640$1801a8c0@50NM721> Message-ID: <005b01c62c00$37e08140$647aa8c0@ColbyM6805> >...what functionality does it provide that isn't available in Leban's free code? #1 and MOST important, placement in Google's search engine. You have to find it before you can evaluate it. After that... #2 a 57 page users manual #3 The following functionality (if you need it - taken from their table of content): Properties 12 DocumentOutputFolder 12 DocumentOutputName 12 DocumentOutputFormat 12 DocumentResolution 12 PDF Specific Properties 13 DocumentTitle 13 DocumentAuthor 13 DocumentSubject 13 DocumentKeywords 13 OptimizePDFfor 14 PDFLinearized 14 PDFCompatibilityLevel 15 PDFAutoRotatePage 15 PDFEmbedAllFonts 15 PDFProcessColorModel 15 PDFCompressPages 16 PDFSubsetFonts 16 PDFFontsMaxSubset 16 ConvertCMYKImagesToRGB 16 CompressColorImages 16 CompressGrayImages 17 CompressMonoImages 17 ColorCompressMethod 17 GrayCompressMethod 17 MonoCompressMethod 18 ColorImageResolution 18 GrayImageResolution 18 MonoImageResolution 18 DownsampleColorImages 18 DownsampleGrayImages 19 DownsampleMonoImages 19 ColorImageDownsampleType 19 GrayImageDownsampleType 19 MonoImageDownsampleType 20 MaxInlineImageSize 20 PDF Encryption Properties 21 PDFEncryption 21 PDFEncryptionType 21 PDFUserPassword 21 PDFOwnerPassword 21 PDFNoCopyPermission 22 PDFNoPrintPermission 22 PDFNoChangePermission 22 PDFNoAddPermission 22 PDFContentAccess 23 PDFAllowExtraction 23 PDFChangesAllowed 23 PDFPrintingPermissions 24 PDF Viewer specific properties 25 HideToolBar 25 HideMenuBar 25 HideMainWindow 25 PDFOpenView 25 PDFOpenAtPage 25 PDFOpenMagnification 26 PDFPageLayout 26 Watermark and Stationery Properties 27 StampFontName 27 StampFontColor 27 StampFontSize 27 StampMessage 27 PlaceStampOnPages 27 StampX 28 StampY 28 StationeryFile 28 PlaceStationeryOnPages 28 Image specific properties 29 ImageType 29 JPEGImageQuality 30 MultipageTiff 30 TiffFillOrder 30 TextAplhaBits 30 GraphicsAplhaBits 31 UseCIEColor 31 Interpolate 31 UseWTS 31 FileMask 32 User Interface specific properties 33 HideSaveAsWindow 33 HideWatermarkButton 33 HideConfigureButton 33 HideEmailCheckBox 33 HideViewCheckBox 33 DefaultAction 34 ViewDocumentAfterConversion 34 EmailDocumentAfterConversion 34 Methods 35 NewGUID 35 GetDefaultPrinter 35 SetDefaultPrinter 35 ApplySettings 35 Create 35 TrueTypeFontDownloadOption 36 FileDelete 36 FileInUse 36 FileExists 36 FileCopy 36 docuPrinter Word macro 37 Properties 37 CHBookmarks 37 CInternetLink 37 CCrosRef 37 CCrosDoc 37 LinkFootEnd 38 CWordTextBox 38 CDocInfo 38 LinkType 38 LinkHighlight 38 LinkColor 39 LinkStyle 39 CBookNameDest 39 BookmarkDepth 39 BookmarkMagn 39 CFormFields 40 RenameFormFields 40 HideTextInputBorder 40 HideCheckBoxBorder 40 HideDropDownBorder 40 CComNotes 40 Methods 41 ConvertActiveDocument 41 docuPrinter PowerPoint macro 46 Properties 46 CTransition 46 CHBookmarks 46 CInternetLink 46 CDocInfo 46 LinkType 47 LinkHighlight 48 LinkColor 48 LinkStyle 48 BookmarkDepth 48 BookmarkMagn 48 BlackAndWhitePrinting 49 Methods 49 ConvertActiveDocument 49 Examples 50 Example 1 Create a PDF file from Visual Basic 50 Example 2 Convert a MS Word document into PDF from Visual Basic 51 Example 3 Convert a MS Word document into PDF from Visual Basic (using the docuPrinter MS Word Macro) 52 Example 4 Convert a MS Excel document into PDF from Visual Basic 53 Example 5 Convert a MS PowerPoint document into PDF from Visual Basic 54 Example 6 Convert a PowerPoint document into PDF from Visual Basic (using the docuPrinter PowerPoint Macro) 55 Example 7 Convert a MS Access report into PDF from Visual Basic 56 Example 8 Convert an URL / HTML into PDF from Visual Basic 57 In short, a fully documented SDK that allows you to do a ton of stuff from VBA. So... What does Leban's free code do? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 07, 2006 5:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] PDF printer driver and SDK ...what functionality does it provide that isn't available in Leban's free code? http://www.lebans.com/reporttopdf.htm William From Gustav at cactus.dk Tue Feb 7 10:46:49 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Feb 2006 17:46:49 +0100 Subject: [AccessD] PDF printer driver and SDK Message-ID: Hi William and John They are very different. The neevia thingy prints to an installed neevia printer object, which can output in many other format than PDF (could be very useful), while Leban's dlls generate PDF files directly from the report or from a snapshot file. This neevia example: Example 7 Convert a MS Access report into PDF from Visual Basic 56 does nothing more than open Access, change the default printer to the special printer, choose PDF format, print the report, set back the default printer. No matter how small the license is, it can cause issues at clients regarding approval and administration. Thus, we mostly use the free PDF printer from: http://freepdfxp.de/fpxp.htm Note the Administration Manual and the (small) resource kit. It uses the Apple Postscript driver and Ghostscript to produce high-quality output. For more specialized purposes, Leban's dlls are worth a look. /gustav >>> wdhindman at bellsouth.net 07-02-2006 11:57:27 >>> ...what functionality does it provide that isn't available in Leban's free code? http://www.lebans.com/reporttopdf.htm William ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 06, 2006 10:45 PM Subject: [AccessD] PDF printer driver and SDK > Folks, > > I just discovered this: > > http://www.neevia.com/ > > Cheap at $19 for the cheapest printer driver (per machine I think) and $30 > for the SDK to write VB code to drive it. I printed my first Access > document 15 minutes after discovering the web site, through free downloads > of the driver and SDK. Of course the free driver places "printed by > Docuprinter SDK" in every page of the printed doc, which I assume goes > away > when you buy the $30 license which I will be doing tonight I think. From jeffrey.demulling at usbank.com Tue Feb 7 10:57:17 2006 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Tue, 7 Feb 2006 10:57:17 -0600 Subject: [AccessD] PDF printer driver and SDK In-Reply-To: Message-ID: Gustav, Is there an English version of the website? I would like to look into this but do not read German. A Spanish site would be fine also. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 email: jeffrey.demulling at usbank.com accessd-bounces at databaseadvisors.com wrote on 02/07/2006 10:46:49 AM: > Hi William and John > > They are very different. > > The neevia thingy prints to an installed neevia printer object, > which can output in many other format than PDF (could be very > useful), while Leban's dlls generate PDF files directly from the > report or from a snapshot file. > > This neevia example: > Example 7 Convert a MS Access report into PDF from Visual Basic 56 > does nothing more than open Access, change the default printer to > the special printer, choose PDF format, print the report, set back > the default printer. > > No matter how small the license is, it can cause issues at clients > regarding approval and administration. Thus, we mostly use the free > PDF printer from: > > http://freepdfxp.de/fpxp.htm > > Note the Administration Manual and the (small) resource kit. > It uses the Apple Postscript driver and Ghostscript to produce high- > quality output. > > For more specialized purposes, Leban's dlls are worth a look. > /gustav > > > >>> wdhindman at bellsouth.net 07-02-2006 11:57:27 >>> > ...what functionality does it provide that isn't available in Leban's free > code? > http://www.lebans.com/reporttopdf.htm > > William > > ----- Original Message ----- > From: "John Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, February 06, 2006 10:45 PM > Subject: [AccessD] PDF printer driver and SDK > > > > Folks, > > > > I just discovered this: > > > > http://www.neevia.com/ > > > > Cheap at $19 for the cheapest printer driver (per machine I think) and $30 > > for the SDK to write VB code to drive it. I printed my first Access > > document 15 minutes after discovering the web site, through free downloads > > of the driver and SDK. Of course the free driver places "printed by > > Docuprinter SDK" in every page of the printed doc, which I assume goes > > away > > when you buy the $30 license which I will be doing tonight I think. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== From BarbaraRyan at cox.net Tue Feb 7 11:08:09 2006 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Tue, 7 Feb 2006 12:08:09 -0500 Subject: [AccessD] Faxing from Access 2002 using Windows XP Fax Message-ID: <00f501c62c09$120ff000$0d00a8c0@desktop> I am currently faxing a report snapshot file (.snp), using the Sendobject command in an Access 2002 application. For this to happen, Microsoft Outlook is must be active (as well as ClickYes, third-party software that automatically responds to the security dialog box that pops up from Outlook). My client is now asking if Outlook is really necessary for this process (they do not want ANY mail client installed on this computer). Also, they do not want to purchase any third party Fax software. Does anyone know of a way to fax a snapshot file from Access without using Outlook or any third party Fax software? Thanks, Barb Ryan From bheid at appdevgrp.com Tue Feb 7 11:15:24 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 7 Feb 2006 12:15:24 -0500 Subject: [AccessD] [SPAM SUSPECT] Re: PDF printer driver and SDK In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3BB31@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F19@ADGSERVER> I got Google to do it at: http://tinyurl.com/7tk87 http://translate.google.com/translate?hl=en&sl=de&u=http://freepdfxp.de/fpxp .htm&prev=/search%3Fq%3Dhttp://freepdfxp.de/fpxp.htm%26num%3D50%26hl%3Den%26 lr%3D%26safe%3Doff%26sa%3DG Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jeffrey.demulling at usbank.com Sent: Tuesday, February 07, 2006 11:57 AM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] PDF printer driver and SDK Importance: Low Gustav, Is there an English version of the website? I would like to look into this but do not read German. A Spanish site would be fine also. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 email: jeffrey.demulling at usbank.com accessd-bounces at databaseadvisors.com wrote on 02/07/2006 10:46:49 AM: > Hi William and John > > They are very different. > > The neevia thingy prints to an installed neevia printer object, > which can output in many other format than PDF (could be very > useful), while Leban's dlls generate PDF files directly from the > report or from a snapshot file. > > This neevia example: > Example 7 Convert a MS Access report into PDF from Visual Basic 56 > does nothing more than open Access, change the default printer to > the special printer, choose PDF format, print the report, set back > the default printer. > > No matter how small the license is, it can cause issues at clients > regarding approval and administration. Thus, we mostly use the free > PDF printer from: > > http://freepdfxp.de/fpxp.htm > > Note the Administration Manual and the (small) resource kit. > It uses the Apple Postscript driver and Ghostscript to produce high- > quality output. > > For more specialized purposes, Leban's dlls are worth a look. > /gustav > > > >>> wdhindman at bellsouth.net 07-02-2006 11:57:27 >>> > ...what functionality does it provide that isn't available in Leban's free > code? > http://www.lebans.com/reporttopdf.htm > > William > > ----- Original Message ----- > From: "John Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, February 06, 2006 10:45 PM > Subject: [AccessD] PDF printer driver and SDK > > > > Folks, > > > > I just discovered this: > > > > http://www.neevia.com/ > > > > Cheap at $19 for the cheapest printer driver (per machine I think) and $30 > > for the SDK to write VB code to drive it. I printed my first Access > > document 15 minutes after discovering the web site, through free downloads > > of the driver and SDK. Of course the free driver places "printed by > > Docuprinter SDK" in every page of the printed doc, which I assume goes > > away > > when you buy the $30 license which I will be doing tonight I think. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ---------------------------------------------------------------------------- -- Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================ == -- 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 7 11:18:29 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 07 Feb 2006 09:18:29 -0800 Subject: [AccessD] Access and Camcorder drivers In-Reply-To: <00f501c62c09$120ff000$0d00a8c0@desktop> Message-ID: <00c101c62c0a$839430a0$017ba8c0@xpserver> Hi All: Has anyone had experience or information with using a camcorder with Access? TIA Jim From Gustav at cactus.dk Tue Feb 7 11:21:18 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Feb 2006 18:21:18 +0100 Subject: [AccessD] Binding to an ado recordset Message-ID: This link has changed: http://support.microsoft.com/default.aspx?scid=kb;en-us;281998 /gustav >>> shamil at users.mns.ru 20-12-2005 18:39:36 >>> John, Here is MS KB article: How to bind Microsoft Access forms to ADO recordsets - http://support.microsoft.com/kb/281998 Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Monday, December 19, 2005 11:45 PM Subject: [AccessD] Binding to an ado recordset > Is this possible in Access 2002? 2003 and above? Where did this kick in? > > John W. Colby > www.ColbyConsulting.com From jwelz at hotmail.com Tue Feb 7 11:25:39 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 07 Feb 2006 10:25:39 -0700 Subject: [AccessD] DBA web site update In-Reply-To: Message-ID: Hi Gustav: My purposes were to be able to work with disconnected data in the days of DAO using getrows and callbacks for populating lists and combos. A single one row table of timestamps was read to determine wheter the data needed to be refreshed. Users are able to choose which column on which to sort and a sort direction just like the Windows Explorer window in detail view. In the days before we moved to Terminal Server, this saved tremendously on LAN traffic and was much faster than requerying with a different sort order. . Everything you can return by way of getrows converts well to string and nothing can be swapped faster on a 32 bit OS than a long. Much database data requiring this kind of sorting begins as string format so I settled on strings as a lowest common denominator for array work. As yet I still lack the clout to install any DLLs or third party software on our systems so the memory copy routines proved to be the best solution I could provide that addressed all situations. I haven't played much with real disconnected recordsets to determine whether they offer any advantages over working with arrays. I once clocked the difference between setting the sorted property true vs sorting my data before running the .additem in VB6 and found that sorting the data yourself with memory copy was faster. Of course, not all data originates from recordsets. In my case, I do a fair bit of work with the file system and never go through the intermediate step of placing the data into a table or recordset. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Gustav Brock" > >Hi J?rgen > >Interesting. However, the task I was working with and the small test we >made only read an wrote integers. >But I will certainly give CopyMemory a closer look. > >/gustav > > >>> jwelz at hotmail.com 07-02-2006 14:46:04 >>> >I've been able to implement the concepts discussed at the link: > >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnovba00/html/LightningStrings.asp > > >for sorting two dimensional string arrays as this approach only >requires the >use of available libraries. > >Ciao >J?rgen Welz >Edmonton, Alberta >jwelz at hotmail.com From wdhindman at bellsouth.net Tue Feb 7 11:28:46 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 7 Feb 2006 12:28:46 -0500 Subject: [AccessD] PDF printer driver and SDK References: Message-ID: <001201c62c0b$f36df590$1801a8c0@50NM721> Gustav/JC ...I tried using Ghostscript a few years back when I was experimenting with pdf conversion and it had some serious flaws at the time that made me remove it from my system ...I never tried it again ...before Lebans put out his dlls and code, I used a few different freeware pdf printers with varying quality in the conversion ...since converting to Lebans dlls I've not had any problems and the conversion quality has been excellent as long as you follow his rules ...and his dlls require no money, no registry entrys, no referencing, and have no versioning or licensing issues which endears them to me for client distribution and maintenance. ...as for what it will do compared to JC's list I don't know since a straight conversion is all I've ever required ...since I own Accrobat, I've always used it to make any pdf edits I need ...the dll functions do handle compression level and passwording but beyond that I've not had a need ...and since I no longer use VB (VB.NET is driving me nuts though) that functionality is also beyond my needs or expertise. ...each of us has his own way of doing things ...lately I've even started using some unbound forms because they let me address some multi-user issues that I just couldn't solve with bound ones ...much as it pains me to say so :) William ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, February 07, 2006 11:46 AM Subject: Re: [AccessD] PDF printer driver and SDK > Hi William and John > > They are very different. > > The neevia thingy prints to an installed neevia printer object, which can > output in many other format than PDF (could be very useful), while Leban's > dlls generate PDF files directly from the report or from a snapshot file. > > This neevia example: > Example 7 Convert a MS Access report into PDF from Visual Basic 56 > does nothing more than open Access, change the default printer to the > special printer, choose PDF format, print the report, set back the default > printer. > > No matter how small the license is, it can cause issues at clients > regarding approval and administration. Thus, we mostly use the free PDF > printer from: > > http://freepdfxp.de/fpxp.htm > > Note the Administration Manual and the (small) resource kit. > It uses the Apple Postscript driver and Ghostscript to produce > high-quality output. > > For more specialized purposes, Leban's dlls are worth a look. > /gustav > > >>>> wdhindman at bellsouth.net 07-02-2006 11:57:27 >>> > ...what functionality does it provide that isn't available in Leban's free > code? > http://www.lebans.com/reporttopdf.htm > > William > > ----- Original Message ----- > From: "John Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, February 06, 2006 10:45 PM > Subject: [AccessD] PDF printer driver and SDK > > >> Folks, >> >> I just discovered this: >> >> http://www.neevia.com/ >> >> Cheap at $19 for the cheapest printer driver (per machine I think) and >> $30 >> for the SDK to write VB code to drive it. I printed my first Access >> document 15 minutes after discovering the web site, through free >> downloads >> of the driver and SDK. Of course the free driver places "printed by >> Docuprinter SDK" in every page of the printed doc, which I assume goes >> away >> when you buy the $30 license which I will be doing tonight I think. > > > -- > 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 7 11:33:10 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 07 Feb 2006 09:33:10 -0800 Subject: [AccessD] DBA web site update In-Reply-To: Message-ID: <00c801c62c0c$90b21f20$017ba8c0@xpserver> Hi J?rgen: That article is a fine demonstration how technique and method can dramatically enhance performance. Would you be able to send a code sample so that it would be able to be added into the DBA article on Array performance? The speed will not be able to surpass C++ but it might be able to close the speed gap between C# and VB.Net.(?) If methods like Quick or Lightning sort were implemented with this technique would there be yet again any sort speed increase? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J??rgen Welz Sent: February 7, 2006 5:46 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] DBA web site update I've been able to implement the concepts discussed at the link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnovba00/ht ml/LightningStrings.asp for sorting two dimensional string arrays as this approach only requires the use of available libraries. Ciao J|rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Jim Lawrence > >Hi All: > >A new article, 'Array Performance', as well as some minor changes has been >added to the DBA web site (www.ddatabaseadvisors.com). > >Jim From Gustav at cactus.dk Tue Feb 7 11:12:46 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 07 Feb 2006 18:12:46 +0100 Subject: [AccessD] PDF printer driver and SDK Message-ID: Hi Jeffrey The manual (e) is in English. The driver itself it multi-language. /gustav >>> jeffrey.demulling at usbank.com 07-02-2006 17:57:17 >>> Gustav, Is there an English version of the website? I would like to look into this but do not read German. A Spanish site would be fine also. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 email: jeffrey.demulling at usbank.com accessd-bounces at databaseadvisors.com wrote on 02/07/2006 10:46:49 AM: > Hi William and John > > They are very different. > > The neevia thingy prints to an installed neevia printer object, > which can output in many other format than PDF (could be very > useful), while Leban's dlls generate PDF files directly from the > report or from a snapshot file. > > This neevia example: > Example 7 Convert a MS Access report into PDF from Visual Basic 56 > does nothing more than open Access, change the default printer to > the special printer, choose PDF format, print the report, set back > the default printer. > > No matter how small the license is, it can cause issues at clients > regarding approval and administration. Thus, we mostly use the free > PDF printer from: > > http://freepdfxp.de/fpxp.htm > > Note the Administration Manual and the (small) resource kit. > It uses the Apple Postscript driver and Ghostscript to produce high- > quality output. > > For more specialized purposes, Leban's dlls are worth a look. > /gustav > > > >>> wdhindman at bellsouth.net 07-02-2006 11:57:27 >>> > ...what functionality does it provide that isn't available in Leban's free > code? > http://www.lebans.com/reporttopdf.htm > > William > > ----- Original Message ----- > From: "John Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, February 06, 2006 10:45 PM > Subject: [AccessD] PDF printer driver and SDK > > > > Folks, > > > > I just discovered this: > > > > http://www.neevia.com/ > > > > Cheap at $19 for the cheapest printer driver (per machine I think) and $30 > > for the SDK to write VB code to drive it. I printed my first Access > > document 15 minutes after discovering the web site, through free downloads > > of the driver and SDK. Of course the free driver places "printed by > > Docuprinter SDK" in every page of the printed doc, which I assume goes > > away > > when you buy the $30 license which I will be doing tonight I think. From accessd at shaw.ca Tue Feb 7 12:04:44 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 07 Feb 2006 10:04:44 -0800 Subject: [AccessD] Binding to an ado recordset In-Reply-To: Message-ID: <00c901c62c10$f9817e70$017ba8c0@xpserver> Gustav: Isn't that ADP Access DB? ... Microsoft Access is using for the SQL Server database currently open in an Access project (ADP) file... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: February 7, 2006 9:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Binding to an ado recordset This link has changed: http://support.microsoft.com/default.aspx?scid=kb;en-us;281998 /gustav >>> shamil at users.mns.ru 20-12-2005 18:39:36 >>> John, Here is MS KB article: How to bind Microsoft Access forms to ADO recordsets - http://support.microsoft.com/kb/281998 Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Monday, December 19, 2005 11:45 PM Subject: [AccessD] Binding to an ado recordset > Is this possible in Access 2002? 2003 and above? Where did this kick in? > > 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 itsame2000 at sbcglobal.net Tue Feb 7 13:55:59 2006 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Tue, 7 Feb 2006 11:55:59 -0800 (PST) Subject: [AccessD] VBA and DOS Question Message-ID: <20060207195559.5201.qmail@web81510.mail.mud.yahoo.com> I hope somebody can shed some light on this. Sometimes, I'll create and launch batch files on the fly. I worked around the problem of Access running over the batch files before they completed by creating a completion.txt file which my Access database polled for so it knew that the process finished. That was a less than desirable solution. I found a small piece of code that makes an API call to figure out when DOS is complete before Access procedes. It works great. I'm just curious as to why the subroutine is private. I don't want to replicate this in each module I use this API call. Does anybody know why this should be private? Here is the site I code I found. Thanks, Jeremy Toves http://visualbasic.about.com/od/learnvb6/l/bldykvb6dosa.htm?terms=vb+script+close+window Private Declare Function OpenProcess _ Lib "kernel32" ( _ ByVal dwDesiredAccess As Long, _ ByVal bInheritHandle As Long, _ ByVal dwProcessId As Long) _ As Long Private Declare Function WaitForSingleObject _ Lib "kernel32" ( _ ByVal hHandle As Long, _ ByVal dwMilliseconds As Long) _ As Long Private Declare Function CloseHandle _ Lib "kernel32" ( _ ByVal hObject As Long) _ As Long Private Const SYNCHRONIZE = &H100000 Private Const INFINITE = &HFFFF Sub Main() ShellAndWait ("C:\WINDOWS\system32\ping.EXE www.google.com") End Sub Private Sub ShellAndWait(CommandLine As String) Dim ShellId As Long Dim ShellHandle As Long ShellId = Shell(CommandLine, vbNormalFocus) ShellHandle = OpenProcess(SYNCHRONIZE, 0, ShellId) If ShellHandle <> 0 Then WaitForSingleObject ShellHandle, INFINITE CloseHandle ShellHandle End If End Sub From jwelz at hotmail.com Tue Feb 7 14:12:58 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 07 Feb 2006 13:12:58 -0700 Subject: [AccessD] DBA web site update In-Reply-To: <00c801c62c0c$90b21f20$017ba8c0@xpserver> Message-ID: I'll have to generalize my routine a bit. It is essentially a class module without being a class module(properties & method and a call that sets and initializes properties such as sort column and direction (so as not to have to pass them in with recursive calls used by a quick sort algorithm) and it may erase upon exit with the final return from recursion, depending on the purpose. The more generic VB6 version I used also runs in Access but I have that at home on a USB drive. Perhaps setting it up as a class module that will accept recordsets and arrays will be the better solution. I'll have a closer look this evening as I'm taking some safety supervisor training today. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Jim Lawrence > >Hi J?rgen: > >That article is a fine demonstration how technique and method can >dramatically enhance performance. Would you be able to send a code sample >so >that it would be able to be added into the DBA article on Array >performance? >The speed will not be able to surpass C++ but it might be able to close the >speed gap between C# and VB.Net.(?) > >If methods like Quick or Lightning sort were implemented with this >technique >would there be yet again any sort speed increase? > >Jim > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J??rgen Welz >Sent: February 7, 2006 5:46 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] DBA web site update > >I've been able to implement the concepts discussed at the link: > >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnovba00/ht >ml/LightningStrings.asp > >for sorting two dimensional string arrays as this approach only requires >the > >use of available libraries. > >Ciao >J|rgen Welz >Edmonton, Alberta >jwelz at hotmail.com > > > > > > >From: Jim Lawrence > > > >Hi All: > > > >A new article, 'Array Performance', as well as some minor changes has >been > >added to the DBA web site (www.ddatabaseadvisors.com). > > > >Jim > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Tue Feb 7 14:14:57 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 7 Feb 2006 15:14:57 -0500 Subject: [AccessD] [SPAM SUSPECT] VBA and DOS Question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3BB8D@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F2B@ADGSERVER> There should be no reason that you can't make it public. Usually, the way that I program is to make a needed function public, and any helper functions that the function needs (that are not needed elsewhere) private. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Tuesday, February 07, 2006 2:56 PM To: AccessD Subject: [SPAM SUSPECT] [AccessD] VBA and DOS Question Importance: Low I hope somebody can shed some light on this. Sometimes, I'll create and launch batch files on the fly. I worked around the problem of Access running over the batch files before they completed by creating a completion.txt file which my Access database polled for so it knew that the process finished. That was a less than desirable solution. I found a small piece of code that makes an API call to figure out when DOS is complete before Access procedes. It works great. I'm just curious as to why the subroutine is private. I don't want to replicate this in each module I use this API call. Does anybody know why this should be private? Here is the site I code I found. Thanks, Jeremy Toves http://visualbasic.about.com/od/learnvb6/l/bldykvb6dosa.htm?terms=vb+script+ close+window Private Declare Function OpenProcess _ Lib "kernel32" ( _ ByVal dwDesiredAccess As Long, _ ByVal bInheritHandle As Long, _ ByVal dwProcessId As Long) _ As Long Private Declare Function WaitForSingleObject _ Lib "kernel32" ( _ ByVal hHandle As Long, _ ByVal dwMilliseconds As Long) _ As Long Private Declare Function CloseHandle _ Lib "kernel32" ( _ ByVal hObject As Long) _ As Long Private Const SYNCHRONIZE = &H100000 Private Const INFINITE = &HFFFF Sub Main() ShellAndWait ("C:\WINDOWS\system32\ping.EXE www.google.com") End Sub Private Sub ShellAndWait(CommandLine As String) Dim ShellId As Long Dim ShellHandle As Long ShellId = Shell(CommandLine, vbNormalFocus) ShellHandle = OpenProcess(SYNCHRONIZE, 0, ShellId) If ShellHandle <> 0 Then WaitForSingleObject ShellHandle, INFINITE CloseHandle ShellHandle End If End Sub From accessd at shaw.ca Tue Feb 7 14:17:13 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 07 Feb 2006 12:17:13 -0800 Subject: [AccessD] VBA and DOS Question In-Reply-To: <20060207195559.5201.qmail@web81510.mail.mud.yahoo.com> Message-ID: <00d401c62c23$7c133970$017ba8c0@xpserver> Hi Jeremy: These routines are generally called from a local (in the same module) function or subroutine that is public. Assuming that all this code is in an Access Module by just changing one line this routine can be accessed from any Form or Report. 'Public Sub ShellAndWait(CommandLine As String) ' HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: February 7, 2006 11:56 AM To: AccessD Subject: [AccessD] VBA and DOS Question I hope somebody can shed some light on this. Sometimes, I'll create and launch batch files on the fly. I worked around the problem of Access running over the batch files before they completed by creating a completion.txt file which my Access database polled for so it knew that the process finished. That was a less than desirable solution. I found a small piece of code that makes an API call to figure out when DOS is complete before Access procedes. It works great. I'm just curious as to why the subroutine is private. I don't want to replicate this in each module I use this API call. Does anybody know why this should be private? Here is the site I code I found. Thanks, Jeremy Toves http://visualbasic.about.com/od/learnvb6/l/bldykvb6dosa.htm?terms=vb+script+ close+window Private Declare Function OpenProcess _ Lib "kernel32" ( _ ByVal dwDesiredAccess As Long, _ ByVal bInheritHandle As Long, _ ByVal dwProcessId As Long) _ As Long Private Declare Function WaitForSingleObject _ Lib "kernel32" ( _ ByVal hHandle As Long, _ ByVal dwMilliseconds As Long) _ As Long Private Declare Function CloseHandle _ Lib "kernel32" ( _ ByVal hObject As Long) _ As Long Private Const SYNCHRONIZE = &H100000 Private Const INFINITE = &HFFFF Sub Main() ShellAndWait ("C:\WINDOWS\system32\ping.EXE www.google.com") End Sub Private Sub ShellAndWait(CommandLine As String) Dim ShellId As Long Dim ShellHandle As Long ShellId = Shell(CommandLine, vbNormalFocus) ShellHandle = OpenProcess(SYNCHRONIZE, 0, ShellId) If ShellHandle <> 0 Then WaitForSingleObject ShellHandle, INFINITE CloseHandle ShellHandle End If End Sub -- 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 7 14:19:24 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 07 Feb 2006 12:19:24 -0800 Subject: [AccessD] DBA web site update In-Reply-To: Message-ID: <00db01c62c23$c9946160$017ba8c0@xpserver> Hi J?rgen: Any help would be greatly appreciated. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J??rgen Welz Sent: February 7, 2006 12:13 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] DBA web site update I'll have to generalize my routine a bit. It is essentially a class module without being a class module(properties & method and a call that sets and initializes properties such as sort column and direction (so as not to have to pass them in with recursive calls used by a quick sort algorithm) and it may erase upon exit with the final return from recursion, depending on the purpose. The more generic VB6 version I used also runs in Access but I have that at home on a USB drive. Perhaps setting it up as a class module that will accept recordsets and arrays will be the better solution. I'll have a closer look this evening as I'm taking some safety supervisor training today. Ciao J|rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Jim Lawrence > >Hi J|rgen: > >That article is a fine demonstration how technique and method can >dramatically enhance performance. Would you be able to send a code sample >so >that it would be able to be added into the DBA article on Array >performance? >The speed will not be able to surpass C++ but it might be able to close the >speed gap between C# and VB.Net.(?) > >If methods like Quick or Lightning sort were implemented with this >technique >would there be yet again any sort speed increase? > >Jim > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JCSent: February 7, 2006 5:46 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] DBA web site update > >I've been able to implement the concepts discussed at the link: > >http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnovba00/h t >ml/LightningStrings.asp > >for sorting two dimensional string arrays as this approach only requires >the > >use of available libraries. > >Ciao >J|rgen Welz >Edmonton, Alberta >jwelz at hotmail.com > > > > > > >From: Jim Lawrence > > > >Hi All: > > > >A new article, 'Array Performance', as well as some minor changes has >been > >added to the DBA web site (www.ddatabaseadvisors.com). > > > >Jim > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From itsame2000 at sbcglobal.net Tue Feb 7 14:20:22 2006 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Tue, 7 Feb 2006 12:20:22 -0800 (PST) Subject: [AccessD] VBA and DOS Question In-Reply-To: <00d401c62c23$7c133970$017ba8c0@xpserver> Message-ID: <20060207202022.29345.qmail@web81508.mail.mud.yahoo.com> Thanks for all those who replied. It seems like there is no reason I can't make it public. Jeremy Jim Lawrence wrote: Hi Jeremy: These routines are generally called from a local (in the same module) function or subroutine that is public. Assuming that all this code is in an Access Module by just changing one line this routine can be accessed from any Form or Report. 'Public Sub ShellAndWait(CommandLine As String) ' HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: February 7, 2006 11:56 AM To: AccessD Subject: [AccessD] VBA and DOS Question I hope somebody can shed some light on this. Sometimes, I'll create and launch batch files on the fly. I worked around the problem of Access running over the batch files before they completed by creating a completion.txt file which my Access database polled for so it knew that the process finished. That was a less than desirable solution. I found a small piece of code that makes an API call to figure out when DOS is complete before Access procedes. It works great. I'm just curious as to why the subroutine is private. I don't want to replicate this in each module I use this API call. Does anybody know why this should be private? Here is the site I code I found. Thanks, Jeremy Toves http://visualbasic.about.com/od/learnvb6/l/bldykvb6dosa.htm?terms=vb+script+ close+window Private Declare Function OpenProcess _ Lib "kernel32" ( _ ByVal dwDesiredAccess As Long, _ ByVal bInheritHandle As Long, _ ByVal dwProcessId As Long) _ As Long Private Declare Function WaitForSingleObject _ Lib "kernel32" ( _ ByVal hHandle As Long, _ ByVal dwMilliseconds As Long) _ As Long Private Declare Function CloseHandle _ Lib "kernel32" ( _ ByVal hObject As Long) _ As Long Private Const SYNCHRONIZE = &H100000 Private Const INFINITE = &HFFFF Sub Main() ShellAndWait ("C:\WINDOWS\system32\ping.EXE www.google.com") End Sub Private Sub ShellAndWait(CommandLine As String) Dim ShellId As Long Dim ShellHandle As Long ShellId = Shell(CommandLine, vbNormalFocus) ShellHandle = OpenProcess(SYNCHRONIZE, 0, ShellId) If ShellHandle <> 0 Then WaitForSingleObject ShellHandle, INFINITE CloseHandle ShellHandle End If End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Tue Feb 7 14:22:16 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 07 Feb 2006 13:22:16 -0700 Subject: [AccessD] VBA and DOS Question In-Reply-To: <20060207195559.5201.qmail@web81510.mail.mud.yahoo.com> Message-ID: Jeremy: No need for the procedure to be private. As long as the API calls are in the same module as your wrapper function, the API declares can remain private. This is typical VB usage with a routine named 'Main' and is scoped to work only within the example routine. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Jeremy Toves > >I hope somebody can shed some light on this. Sometimes, I'll create and >launch batch files on the fly. I worked around the problem of Access >running over the batch files before they completed by creating a >completion.txt file which my Access database polled for so it knew that the >process finished. That was a less than desirable solution. > >I found a small piece of code that makes an API call to figure out when DOS >is complete before Access procedes. It works great. I'm just curious as >to why the subroutine is private. I don't want to replicate this in each >module I use this API call. Does anybody know why this should be private? >Here is the site I code I found. > > Thanks, >Jeremy Toves > > >http://visualbasic.about.com/od/learnvb6/l/bldykvb6dosa.htm?terms=vb+script+close+window > > Private Declare Function OpenProcess _ > Lib "kernel32" ( _ > ByVal dwDesiredAccess As Long, _ > ByVal bInheritHandle As Long, _ > ByVal dwProcessId As Long) _ > As Long >Private Declare Function WaitForSingleObject _ > Lib "kernel32" ( _ > ByVal hHandle As Long, _ > ByVal dwMilliseconds As Long) _ > As Long >Private Declare Function CloseHandle _ > Lib "kernel32" ( _ > ByVal hObject As Long) _ > As Long >Private Const SYNCHRONIZE = &H100000 >Private Const INFINITE = &HFFFF > > Sub Main() > ShellAndWait ("C:\WINDOWS\system32\ping.EXE www.google.com") >End Sub > > Private Sub ShellAndWait(CommandLine As String) > Dim ShellId As Long > Dim ShellHandle As Long > ShellId = Shell(CommandLine, vbNormalFocus) > ShellHandle = OpenProcess(SYNCHRONIZE, 0, ShellId) > If ShellHandle <> 0 Then > WaitForSingleObject ShellHandle, INFINITE > CloseHandle ShellHandle > End If >End Sub From Jdemarco at hudsonhealthplan.org Tue Feb 7 14:49:44 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 7 Feb 2006 15:49:44 -0500 Subject: [AccessD] Signing code A2K3 Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C4550@TTNEXCHCL2.hshhp.com> List, Is anyone signing their code in A2K3? We're about to rollout this version (from A97) and although converting and testing our apps in the upgraded version is clear cut I'm not quite sure how to deal with code signing. Some questions for you: Will our users be constantly presented with the message box warning them about unsigned code if we don't use a signing mechanism? Do I really have to pay VeriSign (or someone else) to use our own apps? Does this affect how multiple developers share a project? TIA, Jim DeMarco Director of Application Development Hudson Health Plan *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From itsame2000 at sbcglobal.net Tue Feb 7 15:00:44 2006 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Tue, 7 Feb 2006 13:00:44 -0800 (PST) Subject: [AccessD] API Reference Message-ID: <20060207210044.57840.qmail@web81504.mail.mud.yahoo.com> I'm finding API calls more and more useful lately. Does anybody know of a good online reference? Thanks, Jeremy Toves From Jim.Hale at FleetPride.com Tue Feb 7 15:19:06 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 7 Feb 2006 15:19:06 -0600 Subject: [AccessD] API Reference Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA01@corp-es01.fleetpride.com> Try http://www.mentalis.org/apilist/apilist.php Jim Hale -----Original Message----- From: Jeremy Toves [mailto:itsame2000 at sbcglobal.net] Sent: Tuesday, February 07, 2006 3:01 PM To: AccessD Subject: [AccessD] API Reference I'm finding API calls more and more useful lately. Does anybody know of a good online reference? Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From martyconnelly at shaw.ca Tue Feb 7 15:49:44 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 07 Feb 2006 13:49:44 -0800 Subject: [AccessD] Faxing from Access 2002 using Windows XP Fax References: <00f501c62c09$120ff000$0d00a8c0@desktop> Message-ID: <43E915F8.1020404@shaw.ca> If have initialized the WinFAX printer driver in the Printer and Faxes WinXP control panel applet. You should be able to send a normal report print just as you would to any other printer so you could skip the snp format . On first trying to print to this driver you fill in basic info in Fax configuaration wizard like your phone number email for cover page etc. I haven't looked at changing phone numbers from VBA code, not sure exactly how. This driver converts various files to a Fax Tiff image format and has a cover page editor installed under Programs --> Accessories --> Communications --> Faxes assume you have a phone line connected to the machine It will bring up a Fax connection form displaying the sending info and dialing retries 'see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxlegacyvb_9tb3.asp ' for added methods and properties like sender name phone blah blah. Here is another really basic method and doesn't track faxes or whether sent properly that is why you buy 3'd party packages, lots of fiddley things to consider here. You could write extra code to track faxes It is not particulary fast. ' FaxServer method 'this Win 2000 legacy method should work on Win2000 and winXP 'It assumes you have initialized the WinFAX printer driver in ' the Printer and Faxes WinXP control panel applet. This driver converts various files ' to a Fax Tiff image format and has a cover page editor installed under ' Programs --> Accessories --> Communications --> Faxes 'and you have a phone line connected. ' It will bring up a Fax connection form displaying the sending info and dialing retries 'see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxlegacyvb_9tb3.asp ' for added methods and properties like sender name phone blah blah. Sub testfax() Dim strPDFFileName As String Dim strPNumber As String Dim lSaveAs As Long Dim y As Long lSaveAs = 999 strPNumber = "1-250-555-1212" strPDFFileName = "C:\temp\UserGuide.pdf" Dim fs As Object Set fs = CreateObject("FaxServer.FaxServer") Dim Servername As String 'this is your computer machine name Servername = "Martin" fs.Connect (Servername) fs.retries = 5 '# of retries + 1 fs.retrydelay = 1 'in minutes Dim FD As Object Set FD = fs.createdocument(strPDFFileName) 'strPDFFilename is the path and filename of the document FD.DisplayName = "CheckScale #" & lSaveAs 'lSaveAs is just the document # FD.faxnumber = strPNumber 'Faxnumber to dial, including code for outside line, et all... FD.FileName = strPDFFileName y = FD.send() fs.Disconnect Set FD = Nothing Set fs = Nothing End Sub In this process, the fax is sent from within the application. The printing application directly renders the image to be printed (faxed) and no further conversion is required. The fax printer driver saves the rendered image as a temporary TIFF file and sends it to the fax service for queuing and transmission. The fax send wizard is displayed so the user can provide specific fax transmission data. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxabout_18s3.asp may be able to script something (using e.g. VBScript): Fax Service Client API Visual Basic Reference http://msdn.microsoft.com/library/en-us/fax/faxlegacyvb_4r6t.asp I guess you will find some examples in this Google newsgroup search: http://groups.google.com/groups?q=createobject+FaxServer.FaxServer The fax service for WinXP introduces a new set of COM dual interfaces as well, the Fax Service Extended COM application programming interface (API) About the Fax Service Extended COM API http://msdn.microsoft.com/library/en-us/fax/faxabout_699l.asp and http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxabout_18s3.asp Fax Service Extended COM Samples (Visual Basic) http://msdn.microsoft.com/library/en-us/fax/faxabout_2ckz.asp Barbara Ryan wrote: >I am currently faxing a report snapshot file (.snp), using the Sendobject command in an Access 2002 application. For this to happen, Microsoft Outlook is must be active (as well as ClickYes, third-party software that automatically responds to the security dialog box that pops up from Outlook). > >My client is now asking if Outlook is really necessary for this process (they do not want ANY mail client installed on this computer). Also, they do not want to purchase any third party Fax software. > >Does anyone know of a way to fax a snapshot file from Access without using Outlook or any third party Fax software? > >Thanks, >Barb Ryan > > > -- Marty Connelly Victoria, B.C. Canada From jwelz at hotmail.com Tue Feb 7 15:54:13 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 07 Feb 2006 14:54:13 -0700 Subject: [AccessD] Duplicate AutoNumbers In-Reply-To: <20060207210044.57840.qmail@web81504.mail.mud.yahoo.com> Message-ID: Trouble call from users: Enter a name in search combo and a record from 3 years ago with a different name shows up. Have a look at the table. I have 30 records duplicating the Autonumber PK. She's gone back a bit over 3 years. AN was at 17,000 and is now duplicating rows from 7474 after a corrupt record with AN 2759985. Corrupt record has text with characters I've never seen before and several foreign keys showing 7474 and one showing 1677749760 (normal range of values from 0 through 3). Several of these duplicate records are subsequent to our last compact/repair. Now I must fix the records and divide the child records between the proper parents. Good thing there are lots of backups so I can match the related records to the original parents. What a waste of time. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com From wdhindman at bellsouth.net Tue Feb 7 16:16:45 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 7 Feb 2006 17:16:45 -0500 Subject: [AccessD] Duplicate AutoNumbers References: Message-ID: <019201c62c34$2e713350$1801a8c0@50NM721> ...huh? ...how are you getting DUPLICATE autonumber pk's ...does the field not require a unique an? ...I know that a corrupt mdb can restart an's on unused numbers which is one reason why you can't trust them where audit sequences are required ...but duplicates are new ...and damn scary :( William ----- Original Message ----- From: "J??rgen Welz" To: Sent: Tuesday, February 07, 2006 4:54 PM Subject: [AccessD] Duplicate AutoNumbers > Trouble call from users: > > Enter a name in search combo and a record from 3 years ago with a > different > name shows up. > Have a look at the table. I have 30 records duplicating the Autonumber > PK. > She's gone back a bit over 3 years. AN was at 17,000 and is now > duplicating > rows from 7474 after a corrupt record with AN 2759985. Corrupt record has > text with characters I've never seen before and several foreign keys > showing > 7474 and one showing 1677749760 (normal range of values from 0 through 3). > > Several of these duplicate records are subsequent to our last > compact/repair. Now I must fix the records and divide the child records > between the proper parents. Good thing there are lots of backups so I can > match the related records to the original parents. What a waste of time. > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > > -------------------------------------------------------------------------------- > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From itsame2000 at sbcglobal.net Tue Feb 7 16:25:40 2006 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Tue, 7 Feb 2006 14:25:40 -0800 (PST) Subject: [AccessD] API Reference In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA01@corp-es01.fleetpride.com> Message-ID: <20060207222540.43234.qmail@web81501.mail.mud.yahoo.com> Thanks! This looks good. Jeremy Toves "Hale, Jim" wrote: Try http://www.mentalis.org/apilist/apilist.php Jim Hale -----Original Message----- From: Jeremy Toves [mailto:itsame2000 at sbcglobal.net] Sent: Tuesday, February 07, 2006 3:01 PM To: AccessD Subject: [AccessD] API Reference I'm finding API calls more and more useful lately. Does anybody know of a good online reference? Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From itsame2000 at sbcglobal.net Tue Feb 7 16:24:39 2006 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Tue, 7 Feb 2006 14:24:39 -0800 (PST) Subject: [AccessD] API Reference In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA01@corp-es01.fleetpride.com> Message-ID: <20060207222444.18878.qmail@web81505.mail.mud.yahoo.com> Thanks! This looks good. Jeremy Toves "Hale, Jim" wrote: Try http://www.mentalis.org/apilist/apilist.php Jim Hale -----Original Message----- From: Jeremy Toves [mailto:itsame2000 at sbcglobal.net] Sent: Tuesday, February 07, 2006 3:01 PM To: AccessD Subject: [AccessD] API Reference I'm finding API calls more and more useful lately. Does anybody know of a good online reference? Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From itsame2000 at sbcglobal.net Tue Feb 7 16:25:37 2006 From: itsame2000 at sbcglobal.net (Jeremy Toves) Date: Tue, 7 Feb 2006 14:25:37 -0800 (PST) Subject: [AccessD] API Reference In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA01@corp-es01.fleetpride.com> Message-ID: <20060207222537.18992.qmail@web81505.mail.mud.yahoo.com> Thanks! This looks good. Jeremy Toves "Hale, Jim" wrote: Try http://www.mentalis.org/apilist/apilist.php Jim Hale -----Original Message----- From: Jeremy Toves [mailto:itsame2000 at sbcglobal.net] Sent: Tuesday, February 07, 2006 3:01 PM To: AccessD Subject: [AccessD] API Reference I'm finding API calls more and more useful lately. Does anybody know of a good online reference? Thanks, Jeremy Toves -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Feb 7 16:47:46 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 7 Feb 2006 16:47:46 -0600 Subject: [AccessD] Duplicate AutoNumbers Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1CD03209@xlivmbx21.aig.com> I had something similar a couple of weeks ago, new records were being assigned AutoNumber values that already existed. However the unique index of the field still kicked in and threw a duplicate value error, so I was able to spot exactly when it happened and fix it. The cure was to get everyone out of the front-end and Compact/Repair the back-end. Now how your app is managing to accept the duplicate values is another question. Sounds like the index is so corrupt that it's lost it's Unique setting too. I'd try the compacting method first. Then open the table directly in the back end and add a new record, just to see what the AutoNumber value looks like. Oh and William regarding your comment " which is one reason why you can't trust them where audit sequences are required"... Tut Tut!!! Autonumbers are not supposed to be used for audit sequences, that would be assigning a meaning to them instead of just using them to identify a row in the table, yada, yada, yada. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 07, 2006 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Duplicate AutoNumbers ...huh? ...how are you getting DUPLICATE autonumber pk's ...does the field not require a unique an? ...I know that a corrupt mdb can restart an's on unused numbers which is one reason why you can't trust them where audit sequences are required ...but duplicates are new ...and damn scary :( William ----- Original Message ----- From: "J??rgen Welz" To: Sent: Tuesday, February 07, 2006 4:54 PM Subject: [AccessD] Duplicate AutoNumbers > Trouble call from users: > > Enter a name in search combo and a record from 3 years ago with a > different > name shows up. > Have a look at the table. I have 30 records duplicating the Autonumber > PK. > She's gone back a bit over 3 years. AN was at 17,000 and is now > duplicating > rows from 7474 after a corrupt record with AN 2759985. Corrupt record has > text with characters I've never seen before and several foreign keys > showing > 7474 and one showing 1677749760 (normal range of values from 0 through 3). > > Several of these duplicate records are subsequent to our last > compact/repair. Now I must fix the records and divide the child > records between the proper parents. Good thing there are lots of > backups so I can match the related records to the original parents. > What a waste of time. > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz 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 From bchacc at san.rr.com Tue Feb 7 18:36:28 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 07 Feb 2006 16:36:28 -0800 Subject: [AccessD] Faxing from Access 2002 using Windows XP Fax In-Reply-To: <00f501c62c09$120ff000$0d00a8c0@desktop> References: <00f501c62c09$120ff000$0d00a8c0@desktop> Message-ID: <43E93D0C.1010600@san.rr.com> Barbara: I have a WinFax routine. It's 3rd party but if all else fails, I could send that to you. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com Barbara Ryan wrote: > I am currently faxing a report snapshot file (.snp), using the Sendobject command in an Access 2002 application. For this to happen, Microsoft Outlook is must be active (as well as ClickYes, third-party software that automatically responds to the security dialog box that pops up from Outlook). > > My client is now asking if Outlook is really necessary for this process (they do not want ANY mail client installed on this computer). Also, they do not want to purchase any third party Fax software. > > Does anyone know of a way to fax a snapshot file from Access without using Outlook or any third party Fax software? > > Thanks, > Barb Ryan > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jwcolby at ColbyConsulting.com Tue Feb 7 19:08:35 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 7 Feb 2006 20:08:35 -0500 Subject: [AccessD] Duplicate AutoNumbers In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1CD03209@xlivmbx21.aig.com> Message-ID: <00d601c62c4c$30316d00$647aa8c0@ColbyM6805> It can accept the "duplicate" if the original was deleted, i.e. if there is a "hole" in the sequence. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, February 07, 2006 5:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Duplicate AutoNumbers I had something similar a couple of weeks ago, new records were being assigned AutoNumber values that already existed. However the unique index of the field still kicked in and threw a duplicate value error, so I was able to spot exactly when it happened and fix it. The cure was to get everyone out of the front-end and Compact/Repair the back-end. Now how your app is managing to accept the duplicate values is another question. Sounds like the index is so corrupt that it's lost it's Unique setting too. I'd try the compacting method first. Then open the table directly in the back end and add a new record, just to see what the AutoNumber value looks like. Oh and William regarding your comment " which is one reason why you can't trust them where audit sequences are required"... Tut Tut!!! Autonumbers are not supposed to be used for audit sequences, that would be assigning a meaning to them instead of just using them to identify a row in the table, yada, yada, yada. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, February 07, 2006 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Duplicate AutoNumbers ...huh? ...how are you getting DUPLICATE autonumber pk's ...does the field not require a unique an? ...I know that a corrupt mdb can restart an's on unused numbers which is one reason why you can't trust them where audit sequences are required ...but duplicates are new ...and damn scary :( William ----- Original Message ----- From: "J??rgen Welz" To: Sent: Tuesday, February 07, 2006 4:54 PM Subject: [AccessD] Duplicate AutoNumbers > Trouble call from users: > > Enter a name in search combo and a record from 3 years ago with a > different > name shows up. > Have a look at the table. I have 30 records duplicating the Autonumber > PK. > She's gone back a bit over 3 years. AN was at 17,000 and is now > duplicating > rows from 7474 after a corrupt record with AN 2759985. Corrupt record has > text with characters I've never seen before and several foreign keys > showing > 7474 and one showing 1677749760 (normal range of values from 0 through 3). > > Several of these duplicate records are subsequent to our last > compact/repair. Now I must fix the records and divide the child > records between the proper parents. Good thing there are lots of > backups so I can match the related records to the original parents. > What a waste of time. > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Tue Feb 7 20:05:59 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 07 Feb 2006 19:05:59 -0700 Subject: [AccessD] Duplicate AutoNumbers In-Reply-To: <00d601c62c4c$30316d00$647aa8c0@ColbyM6805> Message-ID: John No holes. If you sort on the AN PK field, they sit there in nice neat pairs somewhere below the middle of the table. I ran a: CurrentDb.Execute ("Insert Into tblEstimate (ID, EstimateID) Values (16876, 16876)") from the immediate window to correctly set the AN and verified that new records are added with subsequent AN's. I had two fields, both indexed unique for the purposes of a custom replication system that used a global offset number depending on the machine where the record was edited or added. When records are added, the 2nd value is the PK plus an offset to determine which machine the record was added/edited from. There are no duplications in the offset field, only the AN field. What's really annoying is, a person will enter a new record (not in list) and when they attempt to look it up with the same combo, it displays the record from three years ago with the same AN PK. The new record displays in the search combo and looks up the value in the hidden 1st column in the combo. I use single record recordsets. In the after update of the search combo, code sets the form recordsource to: "Select * From tblEstimate Where EstimateID = " & Me.cboLookup Both the old and new Names of the estimates appear in the search combo, but both display the first record matching the duplicated value in the combo. Oh well. I'll fix the data tonight once everyone gets out of the database. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "John Colby" > >It can accept the "duplicate" if the original was deleted, i.e. if there is >a "hole" in the sequence. > > >John W. Colby >www.ColbyConsulting.com > > >-----Original Message----- > >I had something similar a couple of weeks ago, new records were being >assigned AutoNumber values that already existed. However the unique index >of the field still kicked in and threw a duplicate value error, so I was >able to spot exactly when it happened and fix it. The cure was to get >everyone out of the front-end and Compact/Repair the back-end. > >Now how your app is managing to accept the duplicate values is another >question. Sounds like the index is so corrupt that it's lost it's Unique >setting too. I'd try the compacting method first. Then open the table >directly in the back end and add a new record, just to see what the >AutoNumber value looks like. > >Oh and William regarding your comment " which is one reason why you can't >trust them where audit sequences are required"... > >Tut Tut!!! Autonumbers are not supposed to be used for audit sequences, >that >would be assigning a meaning to them instead of just using them to identify >a row in the table, yada, yada, yada. > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman >Sent: Tuesday, February 07, 2006 5:17 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Duplicate AutoNumbers > > >...huh? ...how are you getting DUPLICATE autonumber pk's ...does the field >not require a unique an? ...I know that a corrupt mdb can restart an's on >unused numbers which is one reason why you can't trust them where audit >sequences are required ...but duplicates are new ...and damn scary :( > >William > >----- Original Message ----- >From: "J??rgen Welz" >To: >Sent: Tuesday, February 07, 2006 4:54 PM >Subject: [AccessD] Duplicate AutoNumbers > > > > Trouble call from users: > > > > Enter a name in search combo and a record from 3 years ago with a > > different > > name shows up. > > Have a look at the table. I have 30 records duplicating the Autonumber > > PK. > > She's gone back a bit over 3 years. AN was at 17,000 and is now > > duplicating > > rows from 7474 after a corrupt record with AN 2759985. Corrupt record >has > > text with characters I've never seen before and several foreign keys > > showing > > 7474 and one showing 1677749760 (normal range of values from 0 through >3). > > > > Several of these duplicate records are subsequent to our last > > compact/repair. Now I must fix the records and divide the child > > records between the proper parents. Good thing there are lots of > > backups so I can match the related records to the original parents. > > What a waste of time. > > > > Ciao > > J?rgen Welz > > Edmonton, Alberta > > jwelz 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 >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 7 20:32:16 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 7 Feb 2006 21:32:16 -0500 Subject: [AccessD] Duplicate AutoNumbers In-Reply-To: Message-ID: <00dd01c62c57$e10b7840$647aa8c0@ColbyM6805> Is it an autonumber or just an incrementing long? And if you look in the indexes, is there an index called PK and is that index Unique (yes, no duplicates)? Is this field plainly marked as the PK with the little key symbol? Or are you saying that a combination of two fields is the PK? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J??rgen Welz Sent: Tuesday, February 07, 2006 9:06 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Duplicate AutoNumbers John No holes. If you sort on the AN PK field, they sit there in nice neat pairs somewhere below the middle of the table. I ran a: CurrentDb.Execute ("Insert Into tblEstimate (ID, EstimateID) Values (16876, 16876)") from the immediate window to correctly set the AN and verified that new records are added with subsequent AN's. I had two fields, both indexed unique for the purposes of a custom replication system that used a global offset number depending on the machine where the record was edited or added. When records are added, the 2nd value is the PK plus an offset to determine which machine the record was added/edited from. There are no duplications in the offset field, only the AN field. What's really annoying is, a person will enter a new record (not in list) and when they attempt to look it up with the same combo, it displays the record from three years ago with the same AN PK. The new record displays in the search combo and looks up the value in the hidden 1st column in the combo. I use single record recordsets. In the after update of the search combo, code sets the form recordsource to: "Select * From tblEstimate Where EstimateID = " & Me.cboLookup Both the old and new Names of the estimates appear in the search combo, but both display the first record matching the duplicated value in the combo. Oh well. I'll fix the data tonight once everyone gets out of the database. Ciao J|rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "John Colby" > >It can accept the "duplicate" if the original was deleted, i.e. if >there is a "hole" in the sequence. > > >John W. Colby >www.ColbyConsulting.com > > >-----Original Message----- > >I had something similar a couple of weeks ago, new records were being >assigned AutoNumber values that already existed. However the unique >index of the field still kicked in and threw a duplicate value error, >so I was able to spot exactly when it happened and fix it. The cure was >to get everyone out of the front-end and Compact/Repair the back-end. > >Now how your app is managing to accept the duplicate values is another >question. Sounds like the index is so corrupt that it's lost it's >Unique setting too. I'd try the compacting method first. Then open the >table directly in the back end and add a new record, just to see what >the AutoNumber value looks like. > >Oh and William regarding your comment " which is one reason why you >can't trust them where audit sequences are required"... > >Tut Tut!!! Autonumbers are not supposed to be used for audit sequences, >that would be assigning a meaning to them instead of just using them to >identify a row in the table, yada, yada, yada. > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >Hindman >Sent: Tuesday, February 07, 2006 5:17 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Duplicate AutoNumbers > > >...huh? ...how are you getting DUPLICATE autonumber pk's ...does the >field not require a unique an? ...I know that a corrupt mdb can restart >an's on unused numbers which is one reason why you can't trust them >where audit sequences are required ...but duplicates are new ...and >damn scary :( > >William > >----- Original Message ----- >From: "J??rgen Welz" >To: >Sent: Tuesday, February 07, 2006 4:54 PM >Subject: [AccessD] Duplicate AutoNumbers > > > > Trouble call from users: > > > > Enter a name in search combo and a record from 3 years ago with a > > different name shows up. > > Have a look at the table. I have 30 records duplicating the > > Autonumber PK. > > She's gone back a bit over 3 years. AN was at 17,000 and is now > > duplicating rows from 7474 after a corrupt record with AN 2759985. > > Corrupt record >has > > text with characters I've never seen before and several foreign keys > > showing > > 7474 and one showing 1677749760 (normal range of values from 0 > > through >3). > > > > Several of these duplicate records are subsequent to our last > > compact/repair. Now I must fix the records and divide the child > > records between the proper parents. Good thing there are lots of > > backups so I can match the related records to the original parents. > > What a waste of time. > > > > Ciao > > J|rgen Welz > > Edmonton, Alberta > > jwelz 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 >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From jwelz at hotmail.com Tue Feb 7 21:45:06 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 07 Feb 2006 20:45:06 -0700 Subject: [AccessD] Duplicate AutoNumbers In-Reply-To: <00dd01c62c57$e10b7840$647aa8c0@ColbyM6805> Message-ID: Index Name: PrimaryKey Field Name: EstimateID Sort Order: Ascending Properties: Primary: Yes Unique: Yes Ignore Nulls: No The field I mentioned named 'ID' is my replication synch field and is also indexed unique, no duplicates and is equal to the AN plus an offset. A2k3 using A2k type BE. This database survived a compact & repair leaving dupes. I had to reseed the AN at a higher number using the line of code I quoted in an earlier post. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "John Colby" >Is it an autonumber or just an incrementing long? And if you look in the >indexes, is there an index called PK and is that index Unique (yes, no >duplicates)? > >Is this field plainly marked as the PK with the little key symbol? Or are >you saying that a combination of two fields is the PK? > >John W. Colby >www.ColbyConsulting.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J??rgen Welz >Sent: Tuesday, February 07, 2006 9:06 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Duplicate AutoNumbers > >John > >No holes. If you sort on the AN PK field, they sit there in nice neat >pairs >somewhere below the middle of the table. I ran a: > >CurrentDb.Execute ("Insert Into tblEstimate (ID, EstimateID) Values (16876, >16876)") > >from the immediate window to correctly set the AN and verified that new >records are added with subsequent AN's. I had two fields, both indexed >unique for the purposes of a custom replication system that used a global >offset number depending on the machine where the record was edited or >added. > > When records are added, the 2nd value is the PK plus an offset to >determine which machine the record was added/edited from. There are no >duplications in the offset field, only the AN field. > >What's really annoying is, a person will enter a new record (not in list) >and when they attempt to look it up with the same combo, it displays the >record from three years ago with the same AN PK. The new record displays >in >the search combo and looks up the value in the hidden 1st column in the >combo. I use single record recordsets. In the after update of the search >combo, code sets the form recordsource to: > >"Select * From tblEstimate Where EstimateID = " & Me.cboLookup > >Both the old and new Names of the estimates appear in the search combo, but >both display the first record matching the duplicated value in the combo. > >Oh well. I'll fix the data tonight once everyone gets out of the database. > >Ciao >J|rgen Welz >Edmonton, Alberta >jwelz at hotmail.com > > > > >From: "John Colby" > > > >It can accept the "duplicate" if the original was deleted, i.e. if > >there is a "hole" in the sequence. > > > > > >John W. Colby > >www.ColbyConsulting.com > > > > > >-----Original Message----- > > > >I had something similar a couple of weeks ago, new records were being > >assigned AutoNumber values that already existed. However the unique > >index of the field still kicked in and threw a duplicate value error, > >so I was able to spot exactly when it happened and fix it. The cure was > >to get everyone out of the front-end and Compact/Repair the back-end. > > > >Now how your app is managing to accept the duplicate values is another > >question. Sounds like the index is so corrupt that it's lost it's > >Unique setting too. I'd try the compacting method first. Then open the > >table directly in the back end and add a new record, just to see what > >the AutoNumber value looks like. > > > >Oh and William regarding your comment " which is one reason why you > >can't trust them where audit sequences are required"... > > > >Tut Tut!!! Autonumbers are not supposed to be used for audit sequences, > >that would be assigning a meaning to them instead of just using them to > >identify a row in the table, yada, yada, yada. > > > >Lambert > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > >Hindman > >Sent: Tuesday, February 07, 2006 5:17 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Duplicate AutoNumbers > > > > > >...huh? ...how are you getting DUPLICATE autonumber pk's ...does the > >field not require a unique an? ...I know that a corrupt mdb can restart > >an's on unused numbers which is one reason why you can't trust them > >where audit sequences are required ...but duplicates are new ...and > >damn scary :( > > > >William > > > >----- Original Message ----- > >From: "J??rgen Welz" > >To: > >Sent: Tuesday, February 07, 2006 4:54 PM > >Subject: [AccessD] Duplicate AutoNumbers > > > > > > > Trouble call from users: > > > > > > Enter a name in search combo and a record from 3 years ago with a > > > different name shows up. > > > Have a look at the table. I have 30 records duplicating the > > > Autonumber PK. > > > She's gone back a bit over 3 years. AN was at 17,000 and is now > > > duplicating rows from 7474 after a corrupt record with AN 2759985. > > > Corrupt record > >has > > > text with characters I've never seen before and several foreign keys > > > showing > > > 7474 and one showing 1677749760 (normal range of values from 0 > > > through > >3). > > > > > > Several of these duplicate records are subsequent to our last > > > compact/repair. Now I must fix the records and divide the child > > > records between the proper parents. Good thing there are lots of > > > backups so I can match the related records to the original parents. > > > What a waste of time. > > > > > > Ciao > > > J|rgen Welz > > > Edmonton, Alberta > > > jwelz 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 > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >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 7 22:22:18 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 7 Feb 2006 23:22:18 -0500 Subject: [AccessD] Duplicate AutoNumbers In-Reply-To: Message-ID: <000f01c62c67$40166160$647aa8c0@ColbyM6805> You might want to copy the table out to an independent container, strip off the additional fields, test to see if it still happens, and if so, send to MS to analyze. Likely after moving out of the current BE it will work just fine, but you never know. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of J??rgen Welz Sent: Tuesday, February 07, 2006 10:45 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Duplicate AutoNumbers Index Name: PrimaryKey Field Name: EstimateID Sort Order: Ascending Properties: Primary: Yes Unique: Yes Ignore Nulls: No The field I mentioned named 'ID' is my replication synch field and is also indexed unique, no duplicates and is equal to the AN plus an offset. A2k3 using A2k type BE. This database survived a compact & repair leaving dupes. I had to reseed the AN at a higher number using the line of code I quoted in an earlier post. Ciao J|rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "John Colby" Is it an autonumber or >just an incrementing long? And if you look in the indexes, is there an >index called PK and is that index Unique (yes, no duplicates)? > >Is this field plainly marked as the PK with the little key symbol? Or >are you saying that a combination of two fields is the PK? > >John W. Colby >www.ColbyConsulting.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JCSent: Tuesday, February 07, 2006 9:06 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Duplicate AutoNumbers > >John > >No holes. If you sort on the AN PK field, they sit there in nice neat >pairs somewhere below the middle of the table. I ran a: > >CurrentDb.Execute ("Insert Into tblEstimate (ID, EstimateID) Values >(16876, >16876)") > >from the immediate window to correctly set the AN and verified that new >records are added with subsequent AN's. I had two fields, both indexed >unique for the purposes of a custom replication system that used a >global offset number depending on the machine where the record was >edited or added. > > When records are added, the 2nd value is the PK plus an offset to >determine which machine the record was added/edited from. There are no >duplications in the offset field, only the AN field. > >What's really annoying is, a person will enter a new record (not in >list) and when they attempt to look it up with the same combo, it >displays the record from three years ago with the same AN PK. The new >record displays in the search combo and looks up the value in the >hidden 1st column in the combo. I use single record recordsets. In >the after update of the search combo, code sets the form recordsource >to: > >"Select * From tblEstimate Where EstimateID = " & Me.cboLookup > >Both the old and new Names of the estimates appear in the search combo, >but both display the first record matching the duplicated value in the combo. > >Oh well. I'll fix the data tonight once everyone gets out of the database. > >Ciao >J|rgen Welz >Edmonton, Alberta >jwelz at hotmail.com > > > > >From: "John Colby" > > > >It can accept the "duplicate" if the original was deleted, i.e. if > >there is a "hole" in the sequence. > > > > > >John W. Colby > >www.ColbyConsulting.com > > > > > >-----Original Message----- > > > >I had something similar a couple of weeks ago, new records were being > >assigned AutoNumber values that already existed. However the unique > >index of the field still kicked in and threw a duplicate value error, > >so I was able to spot exactly when it happened and fix it. The cure > >was to get everyone out of the front-end and Compact/Repair the back-end. > > > >Now how your app is managing to accept the duplicate values is > >another question. Sounds like the index is so corrupt that it's lost > >it's Unique setting too. I'd try the compacting method first. Then > >open the table directly in the back end and add a new record, just to > >see what the AutoNumber value looks like. > > > >Oh and William regarding your comment " which is one reason why you > >can't trust them where audit sequences are required"... > > > >Tut Tut!!! Autonumbers are not supposed to be used for audit > >sequences, that would be assigning a meaning to them instead of just > >using them to identify a row in the table, yada, yada, yada. > > > >Lambert > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > >Hindman > >Sent: Tuesday, February 07, 2006 5:17 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Duplicate AutoNumbers > > > > > >...huh? ...how are you getting DUPLICATE autonumber pk's ...does the > >field not require a unique an? ...I know that a corrupt mdb can > >restart an's on unused numbers which is one reason why you can't > >trust them where audit sequences are required ...but duplicates are > >new ...and damn scary :( > > > >William > > > >----- Original Message ----- > >From: "J??rgen Welz" > >To: > >Sent: Tuesday, February 07, 2006 4:54 PM > >Subject: [AccessD] Duplicate AutoNumbers > > > > > > > Trouble call from users: > > > > > > Enter a name in search combo and a record from 3 years ago with a > > > different name shows up. > > > Have a look at the table. I have 30 records duplicating the > > > Autonumber PK. > > > She's gone back a bit over 3 years. AN was at 17,000 and is now > > > duplicating rows from 7474 after a corrupt record with AN 2759985. > > > Corrupt record > >has > > > text with characters I've never seen before and several foreign > > > keys showing > > > 7474 and one showing 1677749760 (normal range of values from 0 > > > through > >3). > > > > > > Several of these duplicate records are subsequent to our last > > > compact/repair. Now I must fix the records and divide the child > > > records between the proper parents. Good thing there are lots of > > > backups so I can match the related records to the original parents. > > > What a waste of time. > > > > > > Ciao > > > J|rgen Welz > > > Edmonton, Alberta > > > jwelz 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 > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From tom.p at piedpiper.com.au Tue Feb 7 23:09:06 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Wed, 8 Feb 2006 13:09:06 +0800 Subject: [AccessD] Problem With Ageing Function References: <000f01c62c67$40166160$647aa8c0@ColbyM6805> Message-ID: <003001c62c6d$c98e6e50$2900a8c0@TOMNEW> Hi All.... I havent posted for a long time....shows I must be learning SOMETHING but I have a problem now I have written the function below to work out ageing in accounts but it does not seem to work properly.....am I missing something stupid? Is it to do with Access date formatting (we in Oz use dd/mm/yyyy) Any help would be apprec iated The Variable (Dte) is of course the date of the transaction calling the function Function Ageing(Dte) Dim D D = Date Dim Curr As Date Curr = DateSerial(Year(D), Month(D), (0)) 'Debug.Print Curr Dim Day30 As Date Day30 = DateSerial(Year(D), Month(D) - 1, (0) + 1) 'Debug.Print Day30 Dim Day60 As Date Day60 = DateSerial(Year(D), Month(D) - 2, (0) + 1) 'Debug.Print Day60 Dim Over As Date Over = DateSerial(Year(D), Month(D) - 1, (0)) 'Debug.Print Over 'Ageing function...... 'Using Todays date as 15/04/2006 then '( 0)Current should be > 31/03/2006 '(30)30Days 1/03/2006 to 31/03/2006 '(60)60Days 1/02/2006 to 28/02/2006 '(90)Over 60Days < 1/02/2006 Select Case Dte Case Is > Curr 'CURRENT AMOUNT Ageing = 0 Case Day30 To Curr ' 30 Days Ageing = 30 Case Day60 To Over ' 60 Days Ageing = 60 Case Is < Over Ageing = 90 Case Else End Select End Function Regards Tom Keatley From stuart at lexacorp.com.pg Wed Feb 8 00:04:55 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 08 Feb 2006 16:04:55 +1000 Subject: [AccessD] Problem With Ageing Function In-Reply-To: <003001c62c6d$c98e6e50$2900a8c0@TOMNEW> Message-ID: <43EA16A7.26632.13F3E92E@stuart.lexacorp.com.pg> What's not working, it seems to work fine for me (using dd/mm/yy here). I put D = DateValue("15/04/2006") in place of D = Date and it gave the correct responses to dates in the ranges set out below. On 8 Feb 2006 at 13:09, Tom Keatley wrote: > Hi All.... > > I havent posted for a long time....shows I must be learning SOMETHING > but I have a problem now > > I have written the function below to work out ageing in accounts but it does > not seem to work properly.....am I missing something stupid? > > Is it to do with Access date formatting (we in Oz use dd/mm/yyyy) > > Any help would be apprec iated > > The Variable (Dte) is of course the date of the transaction calling the > function > > Function Ageing(Dte) > Dim D > D = Date > Dim Curr As Date > Curr = DateSerial(Year(D), Month(D), (0)) > 'Debug.Print Curr > > Dim Day30 As Date > Day30 = DateSerial(Year(D), Month(D) - 1, (0) + 1) > 'Debug.Print Day30 > > Dim Day60 As Date > Day60 = DateSerial(Year(D), Month(D) - 2, (0) + 1) > 'Debug.Print Day60 > > Dim Over As Date > Over = DateSerial(Year(D), Month(D) - 1, (0)) > 'Debug.Print Over > > 'Ageing function...... > 'Using Todays date as 15/04/2006 then > '( 0)Current should be > 31/03/2006 > > '(30)30Days 1/03/2006 to 31/03/2006 > '(60)60Days 1/02/2006 to 28/02/2006 > '(90)Over 60Days < 1/02/2006 > > Select Case Dte > Case Is > Curr 'CURRENT AMOUNT > Ageing = 0 > Case Day30 To Curr ' 30 Days > Ageing = 30 > Case Day60 To Over ' 60 Days > Ageing = 60 > Case Is < Over > Ageing = 90 > Case Else > End Select > > End Function > > Regards > > Tom Keatley > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From pcs at azizaz.com Wed Feb 8 06:45:23 2006 From: pcs at azizaz.com (Borge Hansen) Date: Wed, 8 Feb 2006 22:45:23 +1000 Subject: [AccessD] Email - User interface for the runtime version of Total Access Emailer References: <43EA16A7.26632.13F3E92E@stuart.lexacorp.com.pg> Message-ID: <016901c62cad$87a96db0$fa10a8c0@Albatross> Hi all.... I am looking into the runtime version features of Total Access Emailer (2002/2003).... A lot of the features available in the interactive (full) version is not available in the runtime... Has anyone hand rolled a user interface that replicates some or most of the interactive features of the full version? I am going down the path of using TAE as I need the ready made features of merging fields from the source dataset into the master HTML email, in order to produce 'personalized' HTML emails... Thanks to all who helped me out with various issues last year.... Regards borge gold coast, australia From dw-murphy at cox.net Wed Feb 8 11:49:40 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 8 Feb 2006 09:49:40 -0800 Subject: [AccessD] Email - User interface for the runtime version of TotalAccess Emailer In-Reply-To: <016901c62cad$87a96db0$fa10a8c0@Albatross> Message-ID: <000001c62cd8$0aa85580$0200a8c0@murphyf3vdfepi> Borge, Have not used TAE, but did build my own e-mail functionality using some ideas I got from Erwin Craps a couple of weeks ago on this list. The functionality depends on Outlook being on the users machine since it uses automation. I set it up using late binding and have tested it on several machines with different versions of Office in runtime configuration. Worked well. Look in the archives under "Outlook automation - use a template for a message" Hope that helps. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen Sent: Wednesday, February 08, 2006 4:45 AM To: Access Developers discussion and problem solving Subject: [AccessD] Email - User interface for the runtime version of TotalAccess Emailer Hi all.... I am looking into the runtime version features of Total Access Emailer (2002/2003).... A lot of the features available in the interactive (full) version is not available in the runtime... Has anyone hand rolled a user interface that replicates some or most of the interactive features of the full version? I am going down the path of using TAE as I need the ready made features of merging fields from the source dataset into the master HTML email, in order to produce 'personalized' HTML emails... Thanks to all who helped me out with various issues last year.... Regards borge gold coast, australia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Wed Feb 8 12:53:16 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 8 Feb 2006 10:53:16 -0800 Subject: [AccessD] Field Entry question Message-ID: <000a01c62ce0$ee3dc5c0$6701a8c0@HPLaptop> I have a subform based on the following sql statement SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, Left([Memo_Key],5) AS IncNum FROM 20ACCTEXT; When I try to enter a new record I get an error saying IncNum (a hidden field used as link to parent records) is an expression and con not be edited. If I manually clear the two errors generated everything continues ok. Is there a way to suppress the two errors. Thanks Joe Hecht jmhecht at earthlink.net From cfoust at infostatsystems.com Wed Feb 8 13:38:04 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 8 Feb 2006 11:38:04 -0800 Subject: [AccessD] Field Entry question Message-ID: You mention two errors but only describe one. IncNum *is* a calculated field on the subform, so how are you using it exactly that triggers the error? How is memo_key getting populated? Since you've defined IncNum as the left 5 characters of Memo_key (which had better have at least 5 chars or you're in trouble), Memo_key has to be populated before you can work with IncNum. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 10:53 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Field Entry question I have a subform based on the following sql statement SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, Left([Memo_Key],5) AS IncNum FROM 20ACCTEXT; When I try to enter a new record I get an error saying IncNum (a hidden field used as link to parent records) is an expression and con not be edited. If I manually clear the two errors generated everything continues ok. Is there a way to suppress the two errors. Thanks Joe Hecht jmhecht at earthlink.net -- 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 8 13:43:29 2006 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 8 Feb 2006 11:43:29 -0800 (PST) Subject: [AccessD] Field Entry question In-Reply-To: <000a01c62ce0$ee3dc5c0$6701a8c0@HPLaptop> Message-ID: <20060208194329.41265.qmail@web33103.mail.mud.yahoo.com> Change the SQL of the form to SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, [Memo_Key] FROM 20ACCTEXT; Then on your subform add a text box and add set the Control Source property to Left([Memo_Key],5) and set the caption of this text box's lable to IncNum Joe Hecht wrote: I have a subform based on the following sql statement SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, Left([Memo_Key],5) AS IncNum FROM 20ACCTEXT; When I try to enter a new record I get an error saying IncNum (a hidden field used as link to parent records) is an expression and con not be edited. If I manually clear the two errors generated everything continues ok. Is there a way to suppress the two errors. Thanks Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! From Gustav at cactus.dk Wed Feb 8 13:47:14 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 08 Feb 2006 20:47:14 +0100 Subject: [AccessD] Problem With Ageing Function Message-ID: Hi Tom Try: Function Ageing(Dte As Date) and pass a variable of datatype DateTime or specify US format: #m/d/yyyy# lngResult = Ageing(#4/15/2006#) /gustav >>> tom.p at piedpiper.com.au 08-02-2006 06:09:06 >>> Hi All.... I havent posted for a long time....shows I must be learning SOMETHING but I have a problem now I have written the function below to work out ageing in accounts but it does not seem to work properly.....am I missing something stupid? Is it to do with Access date formatting (we in Oz use dd/mm/yyyy) Any help would be apprec iated The Variable (Dte) is of course the date of the transaction calling the function Function Ageing(Dte) Dim D D = Date Dim Curr As Date Curr = DateSerial(Year(D), Month(D), (0)) 'Debug.Print Curr Dim Day30 As Date Day30 = DateSerial(Year(D), Month(D) - 1, (0) + 1) 'Debug.Print Day30 Dim Day60 As Date Day60 = DateSerial(Year(D), Month(D) - 2, (0) + 1) 'Debug.Print Day60 Dim Over As Date Over = DateSerial(Year(D), Month(D) - 1, (0)) 'Debug.Print Over 'Ageing function...... 'Using Todays date as 15/04/2006 then '( 0)Current should be > 31/03/2006 '(30)30Days 1/03/2006 to 31/03/2006 '(60)60Days 1/02/2006 to 28/02/2006 '(90)Over 60Days < 1/02/2006 Select Case Dte Case Is > Curr 'CURRENT AMOUNT Ageing = 0 Case Day30 To Curr ' 30 Days Ageing = 30 Case Day60 To Over ' 60 Days Ageing = 60 Case Is < Over Ageing = 90 Case Else End Select End Function Regards Tom Keatley From bheid at appdevgrp.com Wed Feb 8 13:50:08 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 8 Feb 2006 14:50:08 -0500 Subject: [AccessD] [SPAM SUSPECT] Field Entry question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3BD1E@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F44@ADGSERVER> Just see what the error number(s) are and in your error handler so a "resume next" if the err.number is one of those values. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [SPAM SUSPECT] [AccessD] Field Entry question Importance: Low I have a subform based on the following sql statement SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, Left([Memo_Key],5) AS IncNum FROM 20ACCTEXT; When I try to enter a new record I get an error saying IncNum (a hidden field used as link to parent records) is an expression and con not be edited. If I manually clear the two errors generated everything continues ok. Is there a way to suppress the two errors. Thanks Joe Hecht jmhecht at earthlink.net From jmhecht at earthlink.net Wed Feb 8 13:53:48 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 8 Feb 2006 11:53:48 -0800 Subject: [AccessD] [SPAM SUSPECT] Field Entry question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D34F44@ADGSERVER> Message-ID: <001001c62ce9$61443560$6701a8c0@HPLaptop> Bobby, I do not think the error number shows. How can I get it? Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, February 08, 2006 11:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [SPAM SUSPECT] Field Entry question Just see what the error number(s) are and in your error handler so a "resume next" if the err.number is one of those values. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [SPAM SUSPECT] [AccessD] Field Entry question Importance: Low I have a subform based on the following sql statement SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, Left([Memo_Key],5) AS IncNum FROM 20ACCTEXT; When I try to enter a new record I get an error saying IncNum (a hidden field used as link to parent records) is an expression and con not be edited. If I manually clear the two errors generated everything continues ok. Is there a way to suppress the two errors. Thanks Joe Hecht jmhecht at earthlink.net -- 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 8 13:55:08 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 08 Feb 2006 20:55:08 +0100 Subject: [AccessD] Binding to an ado recordset Message-ID: Hi Jim Oh, I didn't watch that close - it was just the fact if such a form would be updatable I was looking for, and I found that MS had moved the page. I never use ADP files. /gustav >>> accessd at shaw.ca 07-02-2006 19:04:44 >>> Gustav: Isn't that ADP Access DB? ... Microsoft Access is using for the SQL Server database currently open in an Access project (ADP) file... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: February 7, 2006 9:21 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Binding to an ado recordset This link has changed: http://support.microsoft.com/default.aspx?scid=kb;en-us;281998 /gustav >>> shamil at users.mns.ru 20-12-2005 18:39:36 >>> John, Here is MS KB article: How to bind Microsoft Access forms to ADO recordsets - http://support.microsoft.com/kb/281998 Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Monday, December 19, 2005 11:45 PM Subject: [AccessD] Binding to an ado recordset > Is this possible in Access 2002? 2003 and above? Where did this kick in? > > John W. Colby > www.ColbyConsulting.com From jmhecht at earthlink.net Wed Feb 8 14:03:35 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 8 Feb 2006 12:03:35 -0800 Subject: [AccessD] Field Entry question In-Reply-To: Message-ID: <001101c62cea$beccf3b0$6701a8c0@HPLaptop> Charlotte, Memo key for new fields is manually entered. When I try to add a new record as I type in the first character I get the first error. Error 1:Field can not be updated. Error 2: Defines the problem as IncNum can not update. Neither error returns a number to write code around. Joe Hecht jmhecht 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 08, 2006 11:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Field Entry question You mention two errors but only describe one. IncNum *is* a calculated field on the subform, so how are you using it exactly that triggers the error? How is memo_key getting populated? Since you've defined IncNum as the left 5 characters of Memo_key (which had better have at least 5 chars or you're in trouble), Memo_key has to be populated before you can work with IncNum. Charlotte Foust Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Wed Feb 8 14:15:01 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 8 Feb 2006 12:15:01 -0800 Subject: [AccessD] Help with Syntax error Message-ID: <001201c62cec$5793b600$6701a8c0@HPLaptop> The idea here is get the difference in years between 2 dates. This is a global module. Public Sub yearcalc(date1 As Date, date2 As Date) = int(Datediff("m", date1,date2)/12) End Sub =int line returns syntax error This is the code I want to call the above Private Sub Form_BeforeUpdate(Cancel As Integer) Dim DOB As Date Dim txtIDATE As Date Set DOB = date1 Set txtIDATE = date2 Call yearcalc Thanks Joe Hecht jmhecht at earthlink.net From bheid at appdevgrp.com Wed Feb 8 14:33:03 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 8 Feb 2006 15:33:03 -0500 Subject: [AccessD] [SPAM SUSPECT] Help with Syntax error In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3BD47@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F46@ADGSERVER> Joe, Firstly, yearcalc needs to be a function that returns a long (I assume that is what you would want). Public Function yearcalc(date1 As Date, date2 As Date) as long dim lDiff as long ldiff = clng((Datediff("m", date1,date2)/12)) yearcalc=ldiff End Sub The calling code would need to be something like: dim lRet as long lRet=yearcalc(date1,date2) Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 3:15 PM To: 'Access Developers discussion and problem solving' Subject: [SPAM SUSPECT] [AccessD] Help with Syntax error Importance: Low The idea here is get the difference in years between 2 dates. This is a global module. Public Sub yearcalc(date1 As Date, date2 As Date) = int(Datediff("m", date1,date2)/12) End Sub =int line returns syntax error This is the code I want to call the above Private Sub Form_BeforeUpdate(Cancel As Integer) Dim DOB As Date Dim txtIDATE As Date Set DOB = date1 Set txtIDATE = date2 Call yearcalc Thanks Joe Hecht jmhecht at earthlink.net From bheid at appdevgrp.com Wed Feb 8 14:35:48 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 8 Feb 2006 15:35:48 -0500 Subject: [AccessD] [SPAM SUSPECT] Field Entry question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3BD3D@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F47@ADGSERVER> Set a breakpoint in your error handler. Then go to the immediate window (ctl-g) and enter ? err.number and press enter. Or you could add the err.number value to your error handler error message like: msgbox "Error: " & err.number & " - " & err.description & " has occurred.",vbokonly+vbexclamation Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 2:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [SPAM SUSPECT] Field Entry question Bobby, I do not think the error number shows. How can I get it? Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, February 08, 2006 11:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [SPAM SUSPECT] Field Entry question Just see what the error number(s) are and in your error handler so a "resume next" if the err.number is one of those values. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 1:53 PM To: 'Access Developers discussion and problem solving' Subject: [SPAM SUSPECT] [AccessD] Field Entry question Importance: Low I have a subform based on the following sql statement SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, Left([Memo_Key],5) AS IncNum FROM 20ACCTEXT; When I try to enter a new record I get an error saying IncNum (a hidden field used as link to parent records) is an expression and con not be edited. If I manually clear the two errors generated everything continues ok. Is there a way to suppress the two errors. Thanks Joe Hecht jmhecht 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 DorisH3 at aol.com Wed Feb 8 15:16:31 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Wed, 8 Feb 2006 16:16:31 EST Subject: [AccessD] Need help Message-ID: I apologize ahead of time but I am fairly new to Access and desperately need help. I have a text field called Event number I need to remove the text from position 3 thru 6 and place it into a date field on a form?.can anyone tell me how I can accomplish this task. Thanks for any help extended my way?..D From Lambert.Heenan at AIG.com Wed Feb 8 15:25:07 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 8 Feb 2006 15:25:07 -0600 Subject: [AccessD] Need help Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0359B@xlivmbx21.aig.com> Extracting the text in positions 3 through 6 is easy... txtSomeTextVariableOrSomeTextControl = Mid([Event Number],3,6) But how those four characters translate to a date is another matter. Can you show us some examples of the data that appears in [Event Number]? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DorisH3 at aol.com Sent: Wednesday, February 08, 2006 4:17 PM To: accessd at databaseadvisors.com Subject: [AccessD] Need help I apologize ahead of time but I am fairly new to Access and desperately need help. I have a text field called Event number I need to remove the text from position 3 thru 6 and place it into a date field on a form....can anyone tell me how I can accomplish this task. Thanks for any help extended my way.....D -- 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 8 15:36:53 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 09 Feb 2006 07:36:53 +1000 Subject: [AccessD] Need help In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0359B@xlivmbx21.aig.com> Message-ID: <43EAF115.20992.17492604@stuart.lexacorp.com.pg> On 8 Feb 2006 at 15:25, Heenan, Lambert wrote: > Extracting the text in positions 3 through 6 is easy... > > txtSomeTextVariableOrSomeTextControl = Mid([Event Number],3,6) > Of course you meant to say "Mid([Event Number],3,4)" and just mistyped it :-) -- Stuart From Lambert.Heenan at AIG.com Wed Feb 8 15:49:59 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 8 Feb 2006 16:49:59 -0500 Subject: [AccessD] Need help Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1CD035B5@xlivmbx21.aig.com> Doh!!!! Of course I did! :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, February 08, 2006 4:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Need help On 8 Feb 2006 at 15:25, Heenan, Lambert wrote: > Extracting the text in positions 3 through 6 is easy... > > txtSomeTextVariableOrSomeTextControl = Mid([Event Number],3,6) > Of course you meant to say "Mid([Event Number],3,4)" and just mistyped it :-) -- Stuart -- 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 8 15:50:20 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Wed, 8 Feb 2006 16:50:20 -0500 Subject: [AccessD] Need help In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0359B@xlivmbx21.aig.com> Message-ID: wouldn't it be Mid([Event Number],3,4)? The first number is where to start and the second is how many to take. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, > Lambert > Sent: Wednesday, February 08, 2006 4:25 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Need help > > > Extracting the text in positions 3 through 6 is easy... > > txtSomeTextVariableOrSomeTextControl = Mid([Event Number],3,6) > > But how those four characters translate to a date is another > matter. Can you > show us some examples of the data that appears in [Event Number]? > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DorisH3 at aol.com > Sent: Wednesday, February 08, 2006 4:17 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Need help > > > > > I apologize ahead of time but I am fairly new to Access and desperately > need > help. > I have a text field called Event number I need to remove the text from > position 3 thru 6 and place it into a date field on a form....can anyone > tell me how > I can accomplish this task. Thanks for any help extended my way.....D > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tom.p at piedpiper.com.au Wed Feb 8 17:47:06 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Thu, 9 Feb 2006 07:47:06 +0800 Subject: [AccessD] Problem With Ageing Function Further to..... References: <43EA16A7.26632.13F3E92E@stuart.lexacorp.com.pg> Message-ID: <00a101c62d09$f7fac440$2900a8c0@TOMNEW> Thanks for the replies Stuart and Gustav..... Of course you were right Stuart it WAS working ...After your reply I tried it again with one difference ...I put the date as a string (as you did) "01/01/2006" instead of a date #01/01/2006# and it worked fine .....I havent tried again as a date so I dont know whether that was a problem or maybe the moon was in the wrong plain or my coffee supply was too low . I actually have a suspicion that the test data I was using was all 12 months old which would probably explain why all my ageing came out at 90 days.... as I said .......stupid So now my function works exactly as it should but now brings another problem....... I am using the function in an update query to update the customers transaction file aging wise on the fly as he is accessed, the result is then displayed in a list box on my customer form and also will be used in a statement report once I build it. The UNFORSEEN problem I now have is ...... Say a customer owes a total of $400 which has been incurred over the last 4 months so current = $100 30day = $100 60day = $100 90day = $100 He now pays his account in total in the current month so.... current = $-300 30day = $100 60day = $100 90day = $100 My transaction file is simply invoices as positive amounts and cheques and payments as negative amounts so that the total result is what is owing. How would you normally handle a situation like this. the result is actually accurate but of course this is not how you would display it..... As usual any help is appreciated Regards Tom Keatley From stuart at lexacorp.com.pg Wed Feb 8 18:20:37 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 09 Feb 2006 10:20:37 +1000 Subject: [AccessD] Problem With Ageing Function Further to..... In-Reply-To: <00a101c62d09$f7fac440$2900a8c0@TOMNEW> Message-ID: <43EB1775.27272.17DF0F84@stuart.lexacorp.com.pg> On 9 Feb 2006 at 7:47, Tom Keatley wrote: > Thanks for the replies Stuart and Gustav..... > > Of course you were right Stuart it WAS working ...After your reply I tried > it again with one difference ...I put the date as a string (as you did) > "01/01/2006" instead of a date #01/01/2006# and it worked fine .....I havent > tried again as a date so I dont know whether that was a problem or maybe the > moon was in the wrong plain or my coffee supply was too low . You never know what is going to happen when you use variants for everything. It can really turn around and bite you. 1. Make it a rule to explicitly type ALL variables. 2. It is much easier to keep track if you DIM all the variables in a Sub or Function at the start. 3. Using a naming convention so that you can tell a variables type from its name also makes code a lot easier to follow/debug/modify a year later :-) IN this case, you are using Year(D) and Month(D) multiple times, so for efficiency, I would calculate it once and store it in a variable I would recommend you change your original code to be more like: Function Ageing(Dte as Date) as Long Dim dteD as Date Dim dteCurr As Date Dim dteDay30 As Date Dim dteDay60 As Date Dim dteOver As Date Dimj lngYear as Long Dim lngMonth as Long lngYear = year(Date) lngMonth = month(Date) dteCurr = DateSerial(lngYear, lngMonth, 0) dteDay30 = DateSerial(lngYear, lngMonth - 1, 1) dteDay60 = DateSerial(lngYear, lngMonth - 2, 1) dteOver = DateSerial(lngYear, lngMonth - 1, 0) 'Ageing function...... 'Using Todays date as 15/04/2006 then '( 0)Current should be > 31/03/2006 '(30)30Days 1/03/2006 to 31/03/2006 '(60)60Days 1/02/2006 to 28/02/2006 '(90)Over 60Days < 1/02/2006 Select Case Dte Case Is > dteCurr 'CURRENT AMOUNT Ageing = 0 Case dteDay30 To dteCurr ' 30 Days Ageing = 30 Case dteDay60 To dteOver ' 60 Days Ageing = 60 Case Is < dteOver Ageing = 90 Case Else End Select End Function > > I am using the function in an update query to update the customers > transaction file aging wise on the fly as he is accessed, the result is then > displayed in a list box on my customer form and also will be used in a > statement report once I build it. The UNFORSEEN problem I now have is ...... > > Say a customer owes a total of $400 which has been incurred over the last 4 > months so current = $100 30day = $100 60day = $100 90day = $100 > > He now pays his account in total in the current month so.... > current = $-300 > 30day = $100 > 60day = $100 > 90day = $100 > > My transaction file is simply invoices as positive amounts and cheques and > payments as negative amounts so that the total result is what is owing. How > would you normally handle a situation like this. the result is actually > accurate but of course this is not how you would display it..... > To deal with short payments, payments over multiple periods etc, you need store "Balance Outstanding" against each Invoice. At the time you create the invoice, the balance outstanding is equal to the invoice amount. When you process a payment, you need to credit invoices up to the amount of the payment, starting with the oldest invoice. Then run your aging routine on Balance Outstanding only on invoices with a balance and ignore payment records. -- Stuart From erbachs at gmail.com Wed Feb 8 20:36:21 2006 From: erbachs at gmail.com (Steve Erbach) Date: Wed, 8 Feb 2006 20:36:21 -0600 Subject: [AccessD] Basic Query Design In-Reply-To: References: <39cb22f30602061806p54f48b87p9d996ddec7e417d4@mail.gmail.com> Message-ID: <39cb22f30602081836k3516ccd0vd9262671041bc089@mail.gmail.com> J?rgen, The answer is: relational division. I went over to SQL Server Central and asked a basic question about how to accomplish the type of query you wanted, and Joe Celko, author of SQL for Smarties, suggested that I look up relational division in the discussion forums and elsewhere. One resource I found ( http://www.cs.arizona.edu/people/mccann/research/divpresentation.pdf ) presented this method: SELECT tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName FROM tblEmployeeCourse INNER JOIN tblEmployee ON tblEmployeeCourse.EmployeeID = tblEmployee.EmployeeID WHERE CourseID In (1,2,4,5) GROUP BY tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName HAVING Count(tblEmployee.EmployeeID) = 4 ORDER BY FirstName & ' ' & LastName SELECT DISTINCT EmployeeID FROM tblEmployeeCourse AS EC1 WHERE NOT EXISTS ( SELECT CourseID FROM tblCourse WHERE CourseID In (1,2,4,5) AND NOT EXISTS ( SELECT * FROM tblEmployeeCourse AS EC2 WHERE EC2.CourseID = tblCourse.CourseID AND EC2.EmployeeID = EC1.EmployeeID)) Kind of a double-negative. I'm assuming that your Course table is called tblCourse. One of the other three methods mentioned in the PDF file is along the same COUNT lines as the solution Stuart suggested to you. Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security On 2/6/06, J?rgen Welz wrote: > Hey Steve: > > The actual query is a bit more complex than posted as it takes into account > certification expiry dates and may mix in numerous additional Inclusive and > Exclusionary conditions, several driven by multi select list boxes (1 > through 8 regional offices, 1 or more of several categories of employee...). > The question I posed was to address one aspect of a search that I provide > for every major form. I won't have a problem with dupliicate courses in my > 'count'. If I mapped bit flags to categories I'd have no trouble > dynamically setting query by join SQL and denormalizing everything to the > Employee table with a few external lookups. But I digress. > > Getting back to how one would integrate this with a SQL Server BE; the SQL > string rowsource for a hit list may join anywhere from 0 to 8 additional > tables in any combination, an In(list) may require a list of values subquery > or nested subqueries and require in/exclusive conditions on the main table > or any of the related tables. How does anyone to something like this > without resorting to dynamic SQL? Do you have 60 stored parameter stored > procedures that you substitute in as the rowsource as required? > > Stuart's posted solution provides a reasonable approach to cleaning up the > string generation code I have been using to find matches for meeting 'every > one' in a list on a single field. I have yet to run some performance tests > but expect to do so over the next couple of days. > > Anyone else have an idea of another way of doing this before I run some > testing? > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > > > >From: Steve Erbach > > > >J?rgen, > > > >I've been working on this off-and-on today. Your query reminded me > >that a database I used to work with, Paradox, contained set operations > >for this very thing: Which employees have taken every one of the > >following list of courses? > > > >I thought at first that the ALL keyword might do the trick in SQL, but > >no such luck. It doesn't look like there's a straightforward > >set-oriented way to perform this query in SQL. It would have to be > >something like what Stuart showed you. Only thing I wonder about with > >that query is if an employee took one of the courses more than once > >but skipped one of the ones you're looking for. The COUNT would be > >the same, but your criteria would not be met. > > > >Steve Erbach > >Neenah, WI From stuart at lexacorp.com.pg Wed Feb 8 21:04:11 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 09 Feb 2006 13:04:11 +1000 Subject: [AccessD] Basic Query Design In-Reply-To: <39cb22f30602081836k3516ccd0vd9262671041bc089@mail.gmail.com> References: Message-ID: <43EB3DCB.1966.1874CDCE@stuart.lexacorp.com.pg> On 8 Feb 2006 at 20:36, Steve Erbach wrote: > SELECT DISTINCT EmployeeID > FROM tblEmployeeCourse AS EC1 > WHERE NOT EXISTS > ( SELECT CourseID FROM tblCourse > WHERE CourseID In (1,2,4,5) AND NOT EXISTS > ( SELECT * FROM tblEmployeeCourse AS EC2 > WHERE EC2.CourseID = tblCourse.CourseID > AND EC2.EmployeeID = EC1.EmployeeID)) > Ouch! My head hurts! -- Stuart From DorisH3 at aol.com Wed Feb 8 21:20:28 2006 From: DorisH3 at aol.com (DorisH3 at aol.com) Date: Wed, 8 Feb 2006 22:20:28 EST Subject: [AccessD] Need help Message-ID: <1ea.4c6b3723.311c0efc@aol.com> The event number field would look like this 22110906 A....I need to extract 110906 and place it into a date field which would be a short date 11/09/2006. D From stuart at lexacorp.com.pg Wed Feb 8 21:30:26 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 09 Feb 2006 13:30:26 +1000 Subject: [AccessD] Need help In-Reply-To: <1ea.4c6b3723.311c0efc@aol.com> Message-ID: <43EB43F2.5330.188CD7AD@stuart.lexacorp.com.pg> On 8 Feb 2006 at 22:20, DorisH3 at aol.com wrote: > The event number field would look like this 22110906 A....I need to extract > 110906 and place it into a date field which would be a short date > 11/09/2006. > Assuming 110906 is mmddyy, the safest way would be txtEventDate = DateSerial(Val(Right$([Event Number],2)), _ Val(Left$([Event Number],2)), _ Val(Mid$([Event Number],3,2))) Then you can format txtEvent as "mm/dd/yy" or any other format you want. -- Stuart From bchacc at san.rr.com Wed Feb 8 21:36:09 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 08 Feb 2006 19:36:09 -0800 Subject: [AccessD] [Fwd: Project Notification] Message-ID: <43EAB8A9.8030204@san.rr.com> Any body work with Guru.com? Anybody have any success with it? Are we competing with programmers in India, Russia, and China? Rocky -------- Original Message -------- Subject: Project Notification Date: Wed, 08 Feb 2006 01:19:26 -0500 (EST) From: Guru.com To: bchacc at san.rr.com Guru.com : Project Notification ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dear Rocky: Within the last 24 hours, employers posted one or more projects that match your profile(s). How to find the below project(s): ---Sign in to your professional account: http://www.guru.com/pro/login.cfm ---On the My Admin page, click the "Project Notifications" link. Want to stop receiving Project Notification emails? Learn how here: http://www.guru.com/help/pro/invites.cfm#turn_off --------------------------------------------------- Profile ID: 611628 matches... Project ID: 192572 Title: Commission Calculation program Category: Programming / Software / Database Development Description: We are a mortgage company where we hire Loan Agents on commission, based on funded loans. We need a system that will calculate our loan agent's commission according to percentage, deductions, fees, etc., We need to maintain a database of all Loan Agents and their earned commission. We need to maintance a database of all loans funded. We need to be able to generate reports on specific loan commissions on particular time frame. --------------------------------------------------- --------------------------------------------------- Profile ID: 611628 matches... Project ID: 192628 Title: VBA/Access Function Category: Programming / Software / Database Development Description: I need an VBA function to be used in an Access database that will compare two strings. If the strings are match with only a two character difference the function should return "True". If the strings vary by more than a two character difference the function should return false. The strings will have no punctuation or spaces. I NEED THIS NO LATER THAN 02/08/2006 5pm CST. Examples: Smith101MainStreet & Smiht101MainStreet = True Smit101MainStreet & Smith101MainStreet = True Smith10111MainStreet & Smith101MainStreet = True Smit101ManStreet & Smith101MainStreet = True Smith222MainStreet & Smith101MainStreet = False Smith101MaintainStreet & Smith101MainStreet = False Smoth101ManyStreet & Smith101MainStreet = False I will pay $45 for this function. I also have a large amount of similar work and Access development that I would happily give to someone that can show me quality and on time results. --------------------------------------------------- _______________________________________________________ This Project Notification will be deleted from your account in two weeks. Avoid deletion, and save a copy to your Watch List. - Sign in to your professional account: http://www.guru.com/pro/login.cfm - On the My Admin page, click the "Project Notifications" link. - Click the "Add to Watch List" button. _______________________________________________________ Payment Protection Tip: Always remember to complete your transactions on Guru.com. It's the safest way to sell services. We offer two levels of payment protection through our mandatory SafePay payment system-- Escrow and Invoicing. PAY PROTECTION LEVEL----PAYMENT OPTION ---------------------------------------------- Highest Protection------SafePay Escrow High Protection---------SafePay Invoicing Because getting paid outside of SafePay is a high-risk transaction, it is a violation of our Terms of Service. All payments from employers on Guru.com must go through either SafePay Escrow or Invoicing. In addition, receiving payment through SafePay is the only way to build money-earned and feedback statistics, which attract future employers. *** More SafePay Information: http://www.guru.com/help/pro/invoice.cfm _______________________________________________________ Project Bidding Tips: - How to determine a time and cost estimate: http://www.guru.com/resources/pro/fair_estimate.cfm - View a sample proposal: http://www.guru.com/resources/pro/sample_proposal.cfm _______________________________________________________ Tips on How to Protect Yourself: - Smart Working Tips (PDF): http://www.guru.com/resources/pro/pdf/smart_working.pdf - How to identify and avoid fraudulent employers: http://www.guru.com/help/pro/selection.cfm#beaware _______________________________________________________ Want to receive SafePay payments fast? Sign up for our free Direct Deposit payment service now! More info: http://www.guru.com/help/pro/payment.cfm#gurupay_dd Sincerely, Guru.com Team Please do not reply to this email. This mailbox is not monitored and you will not receive a response. For assistance, please refer to our Help Center (http://www.guru.com/help/pro/professionals.cfm) or our Contact Us page (http://www.guru.com/pro/contact.cfm). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Want to sign in? http://www.guru.com/pro/login.cfm Forgot your Username and/or Password? http://www.guru.com/pro/login_lostpassword.cfm Need assistance? http://www.guru.com/pro/contact.cfm -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jwcolby at ColbyConsulting.com Wed Feb 8 21:58:22 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 8 Feb 2006 22:58:22 -0500 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: <43EAB8A9.8030204@san.rr.com> Message-ID: <002501c62d2d$14d80f00$647aa8c0@ColbyM6805> Rocky, I do work with them. I have one client that I got through them, but I suspect only because they wanted to actually meet to discuss it and they were down on the coast. I have actually bid on perhaps 50 projects and landed exactly one. However if you watch what goes by on that site you can get a good laugh. "I need a spider to scan the major bookseller web sites, looking for my books. I need it to find the lowest price, then bid one cent below that lowest price. Email me the results. And the total cost for this project must be $75 or less". Uhhhh... OK. Idiot. Unfortunately quite typical. So yes, we are competing with India, Russia and China. OTOH, we also probably have list members in India, and Shamil is in Russia. China is less likely. Guru.com claim that less than 30% of all the contracts go overseas, but you have heard the old saw about "liars, damned liars, and statisticians". My guess is that less than 40% of all contracts even get awarded, with 75% of them going overseas. 75% of 40% = 30%. And in spite of it all, I still respond if they sound like they have a clue (which isn't all THAT often). 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 08, 2006 10:36 PM To: Access Developers discussion and problem solving Subject: [AccessD] [Fwd: Project Notification] Any body work with Guru.com? Anybody have any success with it? Are we competing with programmers in India, Russia, and China? Rocky -------- Original Message -------- Subject: Project Notification Date: Wed, 08 Feb 2006 01:19:26 -0500 (EST) From: Guru.com To: bchacc at san.rr.com Guru.com : Project Notification ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dear Rocky: Within the last 24 hours, employers posted one or more projects that match your profile(s). How to find the below project(s): ---Sign in to your professional account: http://www.guru.com/pro/login.cfm ---On the My Admin page, click the "Project Notifications" link. Want to stop receiving Project Notification emails? Learn how here: http://www.guru.com/help/pro/invites.cfm#turn_off --------------------------------------------------- Profile ID: 611628 matches... Project ID: 192572 Title: Commission Calculation program Category: Programming / Software / Database Development Description: We are a mortgage company where we hire Loan Agents on commission, based on funded loans. We need a system that will calculate our loan agent's commission according to percentage, deductions, fees, etc., We need to maintain a database of all Loan Agents and their earned commission. We need to maintance a database of all loans funded. We need to be able to generate reports on specific loan commissions on particular time frame. --------------------------------------------------- --------------------------------------------------- Profile ID: 611628 matches... Project ID: 192628 Title: VBA/Access Function Category: Programming / Software / Database Development Description: I need an VBA function to be used in an Access database that will compare two strings. If the strings are match with only a two character difference the function should return "True". If the strings vary by more than a two character difference the function should return false. The strings will have no punctuation or spaces. I NEED THIS NO LATER THAN 02/08/2006 5pm CST. Examples: Smith101MainStreet & Smiht101MainStreet = True Smit101MainStreet & Smith101MainStreet = True Smith10111MainStreet & Smith101MainStreet = True Smit101ManStreet & Smith101MainStreet = True Smith222MainStreet & Smith101MainStreet = False Smith101MaintainStreet & Smith101MainStreet = False Smoth101ManyStreet & Smith101MainStreet = False I will pay $45 for this function. I also have a large amount of similar work and Access development that I would happily give to someone that can show me quality and on time results. --------------------------------------------------- _______________________________________________________ This Project Notification will be deleted from your account in two weeks. Avoid deletion, and save a copy to your Watch List. - Sign in to your professional account: http://www.guru.com/pro/login.cfm - On the My Admin page, click the "Project Notifications" link. - Click the "Add to Watch List" button. _______________________________________________________ Payment Protection Tip: Always remember to complete your transactions on Guru.com. It's the safest way to sell services. We offer two levels of payment protection through our mandatory SafePay payment system-- Escrow and Invoicing. PAY PROTECTION LEVEL----PAYMENT OPTION ---------------------------------------------- Highest Protection------SafePay Escrow High Protection---------SafePay Invoicing Because getting paid outside of SafePay is a high-risk transaction, it is a violation of our Terms of Service. All payments from employers on Guru.com must go through either SafePay Escrow or Invoicing. In addition, receiving payment through SafePay is the only way to build money-earned and feedback statistics, which attract future employers. *** More SafePay Information: http://www.guru.com/help/pro/invoice.cfm _______________________________________________________ Project Bidding Tips: - How to determine a time and cost estimate: http://www.guru.com/resources/pro/fair_estimate.cfm - View a sample proposal: http://www.guru.com/resources/pro/sample_proposal.cfm _______________________________________________________ Tips on How to Protect Yourself: - Smart Working Tips (PDF): http://www.guru.com/resources/pro/pdf/smart_working.pdf - How to identify and avoid fraudulent employers: http://www.guru.com/help/pro/selection.cfm#beaware _______________________________________________________ Want to receive SafePay payments fast? Sign up for our free Direct Deposit payment service now! More info: http://www.guru.com/help/pro/payment.cfm#gurupay_dd Sincerely, Guru.com Team Please do not reply to this email. This mailbox is not monitored and you will not receive a response. For assistance, please refer to our Help Center (http://www.guru.com/help/pro/professionals.cfm) or our Contact Us page (http://www.guru.com/pro/contact.cfm). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Want to sign in? http://www.guru.com/pro/login.cfm Forgot your Username and/or Password? http://www.guru.com/pro/login_lostpassword.cfm Need assistance? http://www.guru.com/pro/contact.cfm -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Feb 8 22:36:13 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 08 Feb 2006 20:36:13 -0800 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: <002501c62d2d$14d80f00$647aa8c0@ColbyM6805> References: <002501c62d2d$14d80f00$647aa8c0@ColbyM6805> Message-ID: <43EAC6BD.9000409@san.rr.com> Makes sense. The numbers sound right. I can't even compete with programmers in this country let alone overseas where the wage rate is so much lower. Most of the ones I look at are so vaguely worded that I wonder how you can make a reasonable estimate of cost. Rocky John Colby wrote: > Rocky, > > I do work with them. I have one client that I got through them, but I > suspect only because they wanted to actually meet to discuss it and they > were down on the coast. I have actually bid on perhaps 50 projects and > landed exactly one. > > However if you watch what goes by on that site you can get a good laugh. > > "I need a spider to scan the major bookseller web sites, looking for my > books. I need it to find the lowest price, then bid one cent below that > lowest price. Email me the results. And the total cost for this project > must be $75 or less". > > Uhhhh... OK. Idiot. Unfortunately quite typical. > > So yes, we are competing with India, Russia and China. OTOH, we also > probably have list members in India, and Shamil is in Russia. China is less > likely. > > Guru.com claim that less than 30% of all the contracts go overseas, but you > have heard the old saw about "liars, damned liars, and statisticians". My > guess is that less than 40% of all contracts even get awarded, with 75% of > them going overseas. 75% of 40% = 30%. > > And in spite of it all, I still respond if they sound like they have a clue > (which isn't all THAT often). > > 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 08, 2006 10:36 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] [Fwd: Project Notification] > > Any body work with Guru.com? Anybody have any success with it? Are we > competing with programmers in India, Russia, and China? > > Rocky > > > -------- Original Message -------- > Subject: Project Notification > Date: Wed, 08 Feb 2006 01:19:26 -0500 (EST) > From: Guru.com > To: bchacc at san.rr.com > > > > > Guru.com : Project Notification > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Dear Rocky: > > Within the last 24 hours, employers posted one or more projects that match > your profile(s). > > How to find the below project(s): > ---Sign in to your professional account: http://www.guru.com/pro/login.cfm > ---On the My Admin page, click the "Project Notifications" link. > > Want to stop receiving Project Notification emails? > Learn how here: http://www.guru.com/help/pro/invites.cfm#turn_off > --------------------------------------------------- > Profile ID: 611628 matches... > Project ID: 192572 > Title: Commission Calculation program > Category: Programming / Software / Database Development > Description: > We are a mortgage company where we hire Loan Agents on commission, based on > funded loans. > > We need a system that will calculate our loan agent's commission according > to percentage, deductions, fees, etc., > > We need to maintain a database of all Loan Agents and their earned > commission. We need to maintance a database of all loans funded. > > We need to be able to generate reports on specific loan commissions on > particular time frame. > > --------------------------------------------------- > > --------------------------------------------------- > Profile ID: 611628 matches... > Project ID: 192628 > Title: VBA/Access Function > Category: Programming / Software / Database Development > Description: > I need an VBA function to be used in an Access database that will compare > two strings. If the strings are match with only a two character difference > the function should return "True". If the strings vary by more than a two > character difference the function should return false. The strings will > have no punctuation or spaces. I NEED THIS NO LATER THAN 02/08/2006 5pm > CST. > > Examples: > Smith101MainStreet & Smiht101MainStreet = True Smit101MainStreet & > Smith101MainStreet = True Smith10111MainStreet & Smith101MainStreet = True > Smit101ManStreet & Smith101MainStreet = True > > Smith222MainStreet & Smith101MainStreet = False Smith101MaintainStreet & > Smith101MainStreet = False Smoth101ManyStreet & Smith101MainStreet = False > > I will pay $45 for this function. I also have a large amount of similar > work and Access development that I would happily give to someone that can > show me quality and on time results. > > --------------------------------------------------- > > _______________________________________________________ > > This Project Notification will be deleted from your account in two weeks. > Avoid deletion, and save a copy to your Watch List. > - Sign in to your professional account: http://www.guru.com/pro/login.cfm > - On the My Admin page, click the "Project Notifications" link. > - Click the "Add to Watch List" button. > > _______________________________________________________ > > Payment Protection Tip: > > Always remember to complete your transactions on Guru.com. It's the safest > way to sell services. > We offer two levels of payment protection through our mandatory SafePay > payment system-- Escrow and Invoicing. > > PAY PROTECTION LEVEL----PAYMENT OPTION > ---------------------------------------------- > Highest Protection------SafePay Escrow > High Protection---------SafePay Invoicing > > Because getting paid outside of SafePay is a high-risk transaction, it is a > violation of our Terms of Service. All payments from employers on Guru.com > must go through either SafePay Escrow or Invoicing. In addition, receiving > payment through SafePay is the only way to build money-earned and feedback > statistics, which attract future employers. *** More SafePay Information: > http://www.guru.com/help/pro/invoice.cfm > _______________________________________________________ > > Project Bidding Tips: > > - How to determine a time and cost estimate: > http://www.guru.com/resources/pro/fair_estimate.cfm > - View a sample proposal: > http://www.guru.com/resources/pro/sample_proposal.cfm > _______________________________________________________ > > Tips on How to Protect Yourself: > > - Smart Working Tips (PDF): > http://www.guru.com/resources/pro/pdf/smart_working.pdf > - How to identify and avoid fraudulent employers: > http://www.guru.com/help/pro/selection.cfm#beaware > _______________________________________________________ > > > Want to receive SafePay payments fast? Sign up for our free Direct Deposit > payment service now! More info: > http://www.guru.com/help/pro/payment.cfm#gurupay_dd > > > Sincerely, > Guru.com Team > > Please do not reply to this email. This mailbox is not monitored and you > will not receive a response. For assistance, please refer to our Help Center > (http://www.guru.com/help/pro/professionals.cfm) or our Contact Us page > (http://www.guru.com/pro/contact.cfm). > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Want to sign in? http://www.guru.com/pro/login.cfm Forgot your Username > and/or Password? http://www.guru.com/pro/login_lostpassword.cfm > Need assistance? http://www.guru.com/pro/contact.cfm > > > > > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dmcafee at pacbell.net Wed Feb 8 22:59:21 2006 From: dmcafee at pacbell.net (David McAfee) Date: Wed, 8 Feb 2006 20:59:21 -0800 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: <002501c62d2d$14d80f00$647aa8c0@ColbyM6805> Message-ID: I couldn't have said it better myself John. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Wednesday, February 08, 2006 7:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] Rocky, I do work with them. I have one client that I got through them, but I suspect only because they wanted to actually meet to discuss it and they were down on the coast. I have actually bid on perhaps 50 projects and landed exactly one. However if you watch what goes by on that site you can get a good laugh. "I need a spider to scan the major bookseller web sites, looking for my books. I need it to find the lowest price, then bid one cent below that lowest price. Email me the results. And the total cost for this project must be $75 or less". Uhhhh... OK. Idiot. Unfortunately quite typical. So yes, we are competing with India, Russia and China. OTOH, we also probably have list members in India, and Shamil is in Russia. China is less likely. Guru.com claim that less than 30% of all the contracts go overseas, but you have heard the old saw about "liars, damned liars, and statisticians". My guess is that less than 40% of all contracts even get awarded, with 75% of them going overseas. 75% of 40% = 30%. And in spite of it all, I still respond if they sound like they have a clue (which isn't all THAT often). 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 08, 2006 10:36 PM To: Access Developers discussion and problem solving Subject: [AccessD] [Fwd: Project Notification] Any body work with Guru.com? Anybody have any success with it? Are we competing with programmers in India, Russia, and China? Rocky -------- Original Message -------- Subject: Project Notification Date: Wed, 08 Feb 2006 01:19:26 -0500 (EST) From: Guru.com To: bchacc at san.rr.com Guru.com : Project Notification ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dear Rocky: Within the last 24 hours, employers posted one or more projects that match your profile(s). How to find the below project(s): ---Sign in to your professional account: http://www.guru.com/pro/login.cfm ---On the My Admin page, click the "Project Notifications" link. Want to stop receiving Project Notification emails? Learn how here: http://www.guru.com/help/pro/invites.cfm#turn_off --------------------------------------------------- Profile ID: 611628 matches... Project ID: 192572 Title: Commission Calculation program Category: Programming / Software / Database Development Description: We are a mortgage company where we hire Loan Agents on commission, based on funded loans. We need a system that will calculate our loan agent's commission according to percentage, deductions, fees, etc., We need to maintain a database of all Loan Agents and their earned commission. We need to maintance a database of all loans funded. We need to be able to generate reports on specific loan commissions on particular time frame. --------------------------------------------------- --------------------------------------------------- Profile ID: 611628 matches... Project ID: 192628 Title: VBA/Access Function Category: Programming / Software / Database Development Description: I need an VBA function to be used in an Access database that will compare two strings. If the strings are match with only a two character difference the function should return "True". If the strings vary by more than a two character difference the function should return false. The strings will have no punctuation or spaces. I NEED THIS NO LATER THAN 02/08/2006 5pm CST. Examples: Smith101MainStreet & Smiht101MainStreet = True Smit101MainStreet & Smith101MainStreet = True Smith10111MainStreet & Smith101MainStreet = True Smit101ManStreet & Smith101MainStreet = True Smith222MainStreet & Smith101MainStreet = False Smith101MaintainStreet & Smith101MainStreet = False Smoth101ManyStreet & Smith101MainStreet = False I will pay $45 for this function. I also have a large amount of similar work and Access development that I would happily give to someone that can show me quality and on time results. --------------------------------------------------- _______________________________________________________ This Project Notification will be deleted from your account in two weeks. Avoid deletion, and save a copy to your Watch List. - Sign in to your professional account: http://www.guru.com/pro/login.cfm - On the My Admin page, click the "Project Notifications" link. - Click the "Add to Watch List" button. _______________________________________________________ Payment Protection Tip: Always remember to complete your transactions on Guru.com. It's the safest way to sell services. We offer two levels of payment protection through our mandatory SafePay payment system-- Escrow and Invoicing. PAY PROTECTION LEVEL----PAYMENT OPTION ---------------------------------------------- Highest Protection------SafePay Escrow High Protection---------SafePay Invoicing Because getting paid outside of SafePay is a high-risk transaction, it is a violation of our Terms of Service. All payments from employers on Guru.com must go through either SafePay Escrow or Invoicing. In addition, receiving payment through SafePay is the only way to build money-earned and feedback statistics, which attract future employers. *** More SafePay Information: http://www.guru.com/help/pro/invoice.cfm _______________________________________________________ Project Bidding Tips: - How to determine a time and cost estimate: http://www.guru.com/resources/pro/fair_estimate.cfm - View a sample proposal: http://www.guru.com/resources/pro/sample_proposal.cfm _______________________________________________________ Tips on How to Protect Yourself: - Smart Working Tips (PDF): http://www.guru.com/resources/pro/pdf/smart_working.pdf - How to identify and avoid fraudulent employers: http://www.guru.com/help/pro/selection.cfm#beaware _______________________________________________________ Want to receive SafePay payments fast? Sign up for our free Direct Deposit payment service now! More info: http://www.guru.com/help/pro/payment.cfm#gurupay_dd Sincerely, Guru.com Team Please do not reply to this email. This mailbox is not monitored and you will not receive a response. For assistance, please refer to our Help Center (http://www.guru.com/help/pro/professionals.cfm) or our Contact Us page (http://www.guru.com/pro/contact.cfm). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Want to sign in? http://www.guru.com/pro/login.cfm Forgot your Username and/or Password? http://www.guru.com/pro/login_lostpassword.cfm Need assistance? http://www.guru.com/pro/contact.cfm -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at ColbyConsulting.com Wed Feb 8 23:33:11 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Thu, 9 Feb 2006 00:33:11 -0500 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: <43EAC6BD.9000409@san.rr.com> Message-ID: <002b01c62d3a$51e14a30$647aa8c0@ColbyM6805> >Most of the ones I look at are so vaguely worded that I wonder how you can make a reasonable estimate of cost. And the answer is, I don't make an estimate of cost, I quote my hourly rate plus expenses, with a disclaimer that their spec is so vaguely worded that a fixed quote is not possible. Of course my hourly rate is about 5-10 times that of an Indian responding so if these companies are inclined to do that I can't compete. I actually got a phone call the other night from a company in India, quoting me $12 / hour for all kinds of offshoring work. 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 08, 2006 11:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] Makes sense. The numbers sound right. I can't even compete with programmers in this country let alone overseas where the wage rate is so much lower. Most of the ones I look at are so vaguely worded that I wonder how you can make a reasonable estimate of cost. Rocky John Colby wrote: > Rocky, > > I do work with them. I have one client that I got through them, but I > suspect only because they wanted to actually meet to discuss it and > they were down on the coast. I have actually bid on perhaps 50 > projects and landed exactly one. > > However if you watch what goes by on that site you can get a good laugh. > > "I need a spider to scan the major bookseller web sites, looking for > my books. I need it to find the lowest price, then bid one cent below > that lowest price. Email me the results. And the total cost for this > project must be $75 or less". > > Uhhhh... OK. Idiot. Unfortunately quite typical. > > So yes, we are competing with India, Russia and China. OTOH, we also > probably have list members in India, and Shamil is in Russia. China > is less likely. > > Guru.com claim that less than 30% of all the contracts go overseas, > but you have heard the old saw about "liars, damned liars, and > statisticians". My guess is that less than 40% of all contracts even > get awarded, with 75% of them going overseas. 75% of 40% = 30%. > > And in spite of it all, I still respond if they sound like they have a > clue (which isn't all THAT often). > > 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 08, 2006 10:36 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] [Fwd: Project Notification] > > Any body work with Guru.com? Anybody have any success with it? Are > we competing with programmers in India, Russia, and China? > > Rocky > > > -------- Original Message -------- > Subject: Project Notification > Date: Wed, 08 Feb 2006 01:19:26 -0500 (EST) > From: Guru.com > To: bchacc at san.rr.com > > > > > Guru.com : Project Notification > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Dear Rocky: > > Within the last 24 hours, employers posted one or more projects that > match your profile(s). > > How to find the below project(s): > ---Sign in to your professional account: > http://www.guru.com/pro/login.cfm ---On the My Admin page, click the "Project Notifications" link. > > Want to stop receiving Project Notification emails? > Learn how here: http://www.guru.com/help/pro/invites.cfm#turn_off > --------------------------------------------------- > Profile ID: 611628 matches... > Project ID: 192572 > Title: Commission Calculation program > Category: Programming / Software / Database Development > Description: > We are a mortgage company where we hire Loan Agents on commission, > based on funded loans. > > We need a system that will calculate our loan agent's commission > according to percentage, deductions, fees, etc., > > We need to maintain a database of all Loan Agents and their earned > commission. We need to maintance a database of all loans funded. > > We need to be able to generate reports on specific loan commissions on > particular time frame. > > --------------------------------------------------- > > --------------------------------------------------- > Profile ID: 611628 matches... > Project ID: 192628 > Title: VBA/Access Function > Category: Programming / Software / Database Development > Description: > I need an VBA function to be used in an Access database that will > compare two strings. If the strings are match with only a two > character difference the function should return "True". If the > strings vary by more than a two character difference the function > should return false. The strings will have no punctuation or spaces. > I NEED THIS NO LATER THAN 02/08/2006 5pm CST. > > Examples: > Smith101MainStreet & Smiht101MainStreet = True Smit101MainStreet & > Smith101MainStreet = True Smith10111MainStreet & Smith101MainStreet = > True Smit101ManStreet & Smith101MainStreet = True > > Smith222MainStreet & Smith101MainStreet = False Smith101MaintainStreet > & Smith101MainStreet = False Smoth101ManyStreet & Smith101MainStreet = > False > > I will pay $45 for this function. I also have a large amount of > similar work and Access development that I would happily give to > someone that can show me quality and on time results. > > --------------------------------------------------- > > _______________________________________________________ > > This Project Notification will be deleted from your account in two weeks. > Avoid deletion, and save a copy to your Watch List. > - Sign in to your professional account: > http://www.guru.com/pro/login.cfm > - On the My Admin page, click the "Project Notifications" link. > - Click the "Add to Watch List" button. > > _______________________________________________________ > > Payment Protection Tip: > > Always remember to complete your transactions on Guru.com. It's the > safest way to sell services. > We offer two levels of payment protection through our mandatory > SafePay payment system-- Escrow and Invoicing. > > PAY PROTECTION LEVEL----PAYMENT OPTION > ---------------------------------------------- > Highest Protection------SafePay Escrow High Protection---------SafePay > Invoicing > > Because getting paid outside of SafePay is a high-risk transaction, it > is a violation of our Terms of Service. All payments from employers on > Guru.com must go through either SafePay Escrow or Invoicing. In > addition, receiving payment through SafePay is the only way to build > money-earned and feedback statistics, which attract future employers. *** More SafePay Information: > http://www.guru.com/help/pro/invoice.cfm > _______________________________________________________ > > Project Bidding Tips: > > - How to determine a time and cost estimate: > http://www.guru.com/resources/pro/fair_estimate.cfm > - View a sample proposal: > http://www.guru.com/resources/pro/sample_proposal.cfm > _______________________________________________________ > > Tips on How to Protect Yourself: > > - Smart Working Tips (PDF): > http://www.guru.com/resources/pro/pdf/smart_working.pdf > - How to identify and avoid fraudulent employers: > http://www.guru.com/help/pro/selection.cfm#beaware > _______________________________________________________ > > > Want to receive SafePay payments fast? Sign up for our free Direct > Deposit payment service now! More info: > http://www.guru.com/help/pro/payment.cfm#gurupay_dd > > > Sincerely, > Guru.com Team > > Please do not reply to this email. This mailbox is not monitored and > you will not receive a response. For assistance, please refer to our > Help Center > (http://www.guru.com/help/pro/professionals.cfm) or our Contact Us > page (http://www.guru.com/pro/contact.cfm). > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Want to sign in? http://www.guru.com/pro/login.cfm Forgot your > Username and/or Password? > http://www.guru.com/pro/login_lostpassword.cfm > Need assistance? http://www.guru.com/pro/contact.cfm > > > > > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 9 00:52:40 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 8 Feb 2006 22:52:40 -0800 Subject: [AccessD] Field Entry question In-Reply-To: Message-ID: <000001c62d45$6c33b840$7800a8c0@HPLaptop> So any way, I go to my friend's house who is teaching me how to write more code and we are trying to figure this out. As we go through the query which is the data source I deleted a couple of test rows that are empty. Now we can't duplicate the error. Joe Hecht jmhecht at earthlink.net You mention two errors but only describe one. IncNum *is* a calculated field on the subform, so how are you using it exactly that triggers the error? How is memo_key getting populated? Since you've defined IncNum as the left 5 characters of Memo_key (which had better have at least 5 chars or you're in trouble), Memo_key has to be populated before you can work with IncNum. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 10:53 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Field Entry question I have a subform based on the following sql statement SELECT [20ACCTEXT].MEMO_KEY, [20ACCTEXT].MEMO_LINE, Left([Memo_Key],5) AS IncNum FROM 20ACCTEXT; When I try to enter a new record I get an error saying IncNum (a hidden field used as link to parent records) is an expression and con not be edited. If I manually clear the two errors generated everything continues ok. Is there a way to suppress the two errors. Thanks Joe Hecht jmhecht 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 Gustav at cactus.dk Thu Feb 9 05:17:50 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 09 Feb 2006 12:17:50 +0100 Subject: [AccessD] Problem With Ageing Function Further to..... Message-ID: Hi Tom Don't do that. Always handle dates as date/time values if at all possible. As we both have told you, change your code to use date/time and not variant. /gustav >>> tom.p at piedpiper.com.au 09-02-2006 00:47:06 >>> ...I put the date as a string (as you did) "01/01/2006" instead of a date #01/01/2006# and it worked fine ... From bheid at appdevgrp.com Thu Feb 9 06:19:31 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 9 Feb 2006 07:19:31 -0500 Subject: [AccessD] [SPAM SUSPECT] Help with Syntax error In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D3BD50@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F49@ADGSERVER> Joe, Also, you do know that you can get the difference in years with datediff, don't you? ldiff = Datediff("y", date1,date2) Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, February 08, 2006 3:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [SPAM SUSPECT] Help with Syntax error Joe, Firstly, yearcalc needs to be a function that returns a long (I assume that is what you would want). Public Function yearcalc(date1 As Date, date2 As Date) as long dim lDiff as long ldiff = clng((Datediff("m", date1,date2)/12)) yearcalc=ldiff End Sub The calling code would need to be something like: dim lRet as long lRet=yearcalc(date1,date2) Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, February 08, 2006 3:15 PM To: 'Access Developers discussion and problem solving' Subject: [SPAM SUSPECT] [AccessD] Help with Syntax error Importance: Low The idea here is get the difference in years between 2 dates. This is a global module. Public Sub yearcalc(date1 As Date, date2 As Date) = int(Datediff("m", date1,date2)/12) End Sub =int line returns syntax error This is the code I want to call the above Private Sub Form_BeforeUpdate(Cancel As Integer) Dim DOB As Date Dim txtIDATE As Date Set DOB = date1 Set txtIDATE = date2 Call yearcalc Thanks Joe Hecht jmhecht at earthlink.net From erbachs at gmail.com Thu Feb 9 09:35:51 2006 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 9 Feb 2006 09:35:51 -0600 Subject: [AccessD] Basic Query Design In-Reply-To: <43EB3DCB.1966.1874CDCE@stuart.lexacorp.com.pg> References: <39cb22f30602081836k3516ccd0vd9262671041bc089@mail.gmail.com> <43EB3DCB.1966.1874CDCE@stuart.lexacorp.com.pg> Message-ID: <39cb22f30602090735v1ab16d32l7d6f55a9b4817b71@mail.gmail.com> Stuart, Hah! The guy that came up with it is a professor in the Computer Science Dept. at UW-Parkside in Kenosha, WI...right in my neck of the woods. After showing this method and explaining how it's derived in detail, he wrote, "Imagine presenting this to undergrads who have just a lecture or two of SQL under their belts. You DO get the chance to talk about scoping of aliases..." Steve Erbach Scientific Marketing Neenah, WI http://TheTownCrank.blogspot.com On 2/8/06, Stuart McLachlan wrote: > On 8 Feb 2006 at 20:36, Steve Erbach wrote: > > > SELECT DISTINCT EmployeeID > > FROM tblEmployeeCourse AS EC1 > > WHERE NOT EXISTS > > ( SELECT CourseID FROM tblCourse > > WHERE CourseID In (1,2,4,5) AND NOT EXISTS > > ( SELECT * FROM tblEmployeeCourse AS EC2 > > WHERE EC2.CourseID = tblCourse.CourseID > > AND EC2.EmployeeID = EC1.EmployeeID)) > > > > Ouch! My head hurts! > > -- > Stuart > From Mike.W.Gowey at doc.state.or.us Thu Feb 9 10:04:48 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 9 Feb 2006 09:04:48 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBE1@srciml1.ds.doc.state.or.us> Gustav, Any idea on this? -----Original Message----- From: Gowey Mike W Sent: Monday, February 06, 2006 11:01 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Post Card Printing Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- 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 9 10:10:35 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Feb 2006 08:10:35 -0800 Subject: [AccessD] [Fwd: Project Notification] Message-ID: ROTFL Wow! A whole $12 and hour?? You've hit the big time! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 08, 2006 9:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] >Most of the ones I look at are so vaguely worded that I wonder how you >can make a reasonable estimate of cost. And the answer is, I don't make an estimate of cost, I quote my hourly rate plus expenses, with a disclaimer that their spec is so vaguely worded that a fixed quote is not possible. Of course my hourly rate is about 5-10 times that of an Indian responding so if these companies are inclined to do that I can't compete. I actually got a phone call the other night from a company in India, quoting me $12 / hour for all kinds of offshoring work. 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 08, 2006 11:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] Makes sense. The numbers sound right. I can't even compete with programmers in this country let alone overseas where the wage rate is so much lower. Most of the ones I look at are so vaguely worded that I wonder how you can make a reasonable estimate of cost. Rocky John Colby wrote: > Rocky, > > I do work with them. I have one client that I got through them, but I > suspect only because they wanted to actually meet to discuss it and > they were down on the coast. I have actually bid on perhaps 50 > projects and landed exactly one. > > However if you watch what goes by on that site you can get a good > laugh. > > "I need a spider to scan the major bookseller web sites, looking for > my books. I need it to find the lowest price, then bid one cent below > that lowest price. Email me the results. And the total cost for this > project must be $75 or less". > > Uhhhh... OK. Idiot. Unfortunately quite typical. > > So yes, we are competing with India, Russia and China. OTOH, we also > probably have list members in India, and Shamil is in Russia. China > is less likely. > > Guru.com claim that less than 30% of all the contracts go overseas, > but you have heard the old saw about "liars, damned liars, and > statisticians". My guess is that less than 40% of all contracts even > get awarded, with 75% of them going overseas. 75% of 40% = 30%. > > And in spite of it all, I still respond if they sound like they have a > clue (which isn't all THAT often). > > 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 08, 2006 10:36 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] [Fwd: Project Notification] > > Any body work with Guru.com? Anybody have any success with it? Are > we competing with programmers in India, Russia, and China? > > Rocky > > > -------- Original Message -------- > Subject: Project Notification > Date: Wed, 08 Feb 2006 01:19:26 -0500 (EST) > From: Guru.com > To: bchacc at san.rr.com > > > > > Guru.com : Project Notification > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Dear Rocky: > > Within the last 24 hours, employers posted one or more projects that > match your profile(s). > > How to find the below project(s): > ---Sign in to your professional account: > http://www.guru.com/pro/login.cfm ---On the My Admin page, click the "Project Notifications" link. > > Want to stop receiving Project Notification emails? > Learn how here: http://www.guru.com/help/pro/invites.cfm#turn_off > --------------------------------------------------- > Profile ID: 611628 matches... > Project ID: 192572 > Title: Commission Calculation program > Category: Programming / Software / Database Development > Description: > We are a mortgage company where we hire Loan Agents on commission, > based on funded loans. > > We need a system that will calculate our loan agent's commission > according to percentage, deductions, fees, etc., > > We need to maintain a database of all Loan Agents and their earned > commission. We need to maintance a database of all loans funded. > > We need to be able to generate reports on specific loan commissions on > particular time frame. > > --------------------------------------------------- > > --------------------------------------------------- > Profile ID: 611628 matches... > Project ID: 192628 > Title: VBA/Access Function > Category: Programming / Software / Database Development > Description: > I need an VBA function to be used in an Access database that will > compare two strings. If the strings are match with only a two > character difference the function should return "True". If the > strings vary by more than a two character difference the function > should return false. The strings will have no punctuation or spaces. > I NEED THIS NO LATER THAN 02/08/2006 5pm CST. > > Examples: > Smith101MainStreet & Smiht101MainStreet = True Smit101MainStreet & > Smith101MainStreet = True Smith10111MainStreet & Smith101MainStreet = > True Smit101ManStreet & Smith101MainStreet = True > > Smith222MainStreet & Smith101MainStreet = False Smith101MaintainStreet > & Smith101MainStreet = False Smoth101ManyStreet & Smith101MainStreet = > False > > I will pay $45 for this function. I also have a large amount of > similar work and Access development that I would happily give to > someone that can show me quality and on time results. > > --------------------------------------------------- > > _______________________________________________________ > > This Project Notification will be deleted from your account in two > weeks. Avoid deletion, and save a copy to your Watch List. > - Sign in to your professional account: > http://www.guru.com/pro/login.cfm > - On the My Admin page, click the "Project Notifications" link. > - Click the "Add to Watch List" button. > > _______________________________________________________ > > Payment Protection Tip: > > Always remember to complete your transactions on Guru.com. It's the > safest way to sell services. > We offer two levels of payment protection through our mandatory > SafePay payment system-- Escrow and Invoicing. > > PAY PROTECTION LEVEL----PAYMENT OPTION > ---------------------------------------------- > Highest Protection------SafePay Escrow High Protection---------SafePay > Invoicing > > Because getting paid outside of SafePay is a high-risk transaction, it > is a violation of our Terms of Service. All payments from employers on > Guru.com must go through either SafePay Escrow or Invoicing. In > addition, receiving payment through SafePay is the only way to build > money-earned and feedback statistics, which attract future employers. *** More SafePay Information: > http://www.guru.com/help/pro/invoice.cfm > _______________________________________________________ > > Project Bidding Tips: > > - How to determine a time and cost estimate: > http://www.guru.com/resources/pro/fair_estimate.cfm > - View a sample proposal: > http://www.guru.com/resources/pro/sample_proposal.cfm > _______________________________________________________ > > Tips on How to Protect Yourself: > > - Smart Working Tips (PDF): > http://www.guru.com/resources/pro/pdf/smart_working.pdf > - How to identify and avoid fraudulent employers: > http://www.guru.com/help/pro/selection.cfm#beaware > _______________________________________________________ > > > Want to receive SafePay payments fast? Sign up for our free Direct > Deposit payment service now! More info: > http://www.guru.com/help/pro/payment.cfm#gurupay_dd > > > Sincerely, > Guru.com Team > > Please do not reply to this email. This mailbox is not monitored and > you will not receive a response. For assistance, please refer to our > Help Center > (http://www.guru.com/help/pro/professionals.cfm) or our Contact Us > page (http://www.guru.com/pro/contact.cfm). > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Want to sign in? http://www.guru.com/pro/login.cfm Forgot your > Username and/or Password? > http://www.guru.com/pro/login_lostpassword.cfm > Need assistance? http://www.guru.com/pro/contact.cfm > > > > > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 9 10:12:46 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Feb 2006 08:12:46 -0800 Subject: [AccessD] Basic Query Design Message-ID: LOL Try the SQL for shaped recordsets sometime if you want to cause headaches! ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Thursday, February 09, 2006 7:36 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Basic Query Design Stuart, Hah! The guy that came up with it is a professor in the Computer Science Dept. at UW-Parkside in Kenosha, WI...right in my neck of the woods. After showing this method and explaining how it's derived in detail, he wrote, "Imagine presenting this to undergrads who have just a lecture or two of SQL under their belts. You DO get the chance to talk about scoping of aliases..." Steve Erbach Scientific Marketing Neenah, WI http://TheTownCrank.blogspot.com On 2/8/06, Stuart McLachlan wrote: > On 8 Feb 2006 at 20:36, Steve Erbach wrote: > > > SELECT DISTINCT EmployeeID > > FROM tblEmployeeCourse AS EC1 > > WHERE NOT EXISTS > > ( SELECT CourseID FROM tblCourse > > WHERE CourseID In (1,2,4,5) AND NOT EXISTS > > ( SELECT * FROM tblEmployeeCourse AS EC2 > > WHERE EC2.CourseID = tblCourse.CourseID > > AND EC2.EmployeeID = EC1.EmployeeID)) > > > > Ouch! My head hurts! > > -- > Stuart > -- 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 9 10:32:23 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 09 Feb 2006 17:32:23 +0100 Subject: [AccessD] Post Card Printing Message-ID: Hi Mike Oh, missed that. I'll have a look ... /gustav >>> Mike.W.Gowey at doc.state.or.us 09-02-2006 17:04:48 >>> Gustav, Any idea on this? From jwcolby at ColbyConsulting.com Thu Feb 9 11:55:04 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Thu, 9 Feb 2006 12:55:04 -0500 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: Message-ID: <005b01c62da1$f55c4f90$647aa8c0@ColbyM6805> LOL, no I could hire THEM for $12 / hour. 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: Thursday, February 09, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] ROTFL Wow! A whole $12 and hour?? You've hit the big time! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 08, 2006 9:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] >Most of the ones I look at are so vaguely worded that I wonder how you >can make a reasonable estimate of cost. And the answer is, I don't make an estimate of cost, I quote my hourly rate plus expenses, with a disclaimer that their spec is so vaguely worded that a fixed quote is not possible. Of course my hourly rate is about 5-10 times that of an Indian responding so if these companies are inclined to do that I can't compete. I actually got a phone call the other night from a company in India, quoting me $12 / hour for all kinds of offshoring work. John W. Colby www.ColbyConsulting.com From markamatte at hotmail.com Thu Feb 9 11:55:38 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 09 Feb 2006 17:55:38 +0000 Subject: [AccessD] Post Card Printing In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF48607780579BBE1@srciml1.ds.doc.state.or.us> Message-ID: Mike, I did this exact thing a few years ago. I'll send you a small db offline...let me know if you have any questions. Thanks, Mark A. Matte >From: "Gowey Mike W" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Post Card Printing >Date: Thu, 9 Feb 2006 09:04:48 -0700 > > >Gustav, > >Any idea on this? > >-----Original Message----- >From: Gowey Mike W >Sent: Monday, February 06, 2006 11:01 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Post Card Printing > > >Gustav, > >One problem I have run into on this, it works great as long as you have >a record count that is divisable by 4. If the record count is not >divisible by 4 the last page that prints when you turn over the post >card prints incorrectly because of the order, so if you have a record >count of 14 than the first 3 pages print great, but the last page that >only has 2 records on it will print on the opposite side of the page. > >Any ideas on maybe how to correct this or how to insert blank records >when not divisible by 4? > >Thanks, > >Mike > >-----Original Message----- >From: Gustav Brock [mailto:Gustav at cactus.dk] >Sent: Friday, February 03, 2006 4:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Post Card Printing > >Hi Mike > >For the first run you sort by sequence ID. >To be sorted properly for the second run, they have to be ordered into >another sequence, four by four (page) and two by two (column). > >If the first run is printed column by column, a page will be printed >like this: > > 1 3 > 2 4 > >where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. >To print correctly on the other side of the page, the second run must be >printed this way: > > 3 1 > 4 2 > >thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. > >The first query pulls the records in sequential order as well as the >corresponding values for page and column to allow for the alternative >ordering for the second run. As you need four cards to be printed on >page 1 you need to compensate by passing an offset which equals the >negative value of the first ID. > >Without an offset (=0) and a first CardID of 1 you would only get three >cards on the first page: > >Page4 Column2 CardID >0 0 1 >0 1 2 >0 1 3 >1 0 4 >1 0 5 >1 1 6 >1 1 7 >2 0 8 > >With an offset of -1 the pages will be filled correctly: > >Page4 Column2 CardID >0 0 1 >0 0 2 >0 1 3 >0 1 4 >1 0 5 >1 0 6 >1 1 7 >1 1 8 > >To retrieve the records for the first run, you really don't need to sort >on anything else than the CardID: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > CardID; > >For the second run, however, you need the other sorting on page and >column as well: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2 DESC, > CardID; > >This will return: > >Page4 Column2 CardID >0 1 3 >0 1 4 >0 0 1 >0 0 2 >1 1 7 >1 1 8 >1 0 5 >1 0 6 > >which is what you need. > >Use these two queries as the basis for the queries for pulling the >records to print first and second run respectively. > >The temp table is only needed if you can't get the sorting right for the >second run; sometimes Access refuses to sort on derived values. > >If you don't have a sequential ID, look up the subject "Sequence number >in query" from 2006-01-22 or write all the data you need to print to >another temp table with an AutoNumber field. > >/gustav > > >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> > >Sorry Gustav I am lost on the first part on creating the temp table with >the Offset and ID part. > >-----Original Message----- >From: Gowey Mike W >Sent: Thursday, February 02, 2006 10:10 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Post Card Printing > >Sorry replied to the wrong post. > > >When you say sequential ID for the records do you mean within the >customer table? I do have a unique customer ID for each customer within >the customer table, will that work? > >-----Original Message----- >From: Gustav Brock [mailto:Gustav at cactus.dk] >Sent: Thursday, February 02, 2006 9:41 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Post Card Printing > >Hi Mike > >You will need a sequential ID for the records. >Then create a query to write a temp table: > > SELECT > ([Offset]+[ID])\4 AS Page4, > (([Offset]+[ID])\2) Mod 2 AS Column2, > ID AS CardID > INTO > tblCardID > FROM > tblYourTable; > >Use parameter Offset to adjust the sequence for full pages by setting it >to the negative value of the first ID. If this is 67, set Offset to -67. >You could retrieve that value first or by an in-line subquery, but I'll >leave that to you. > >If you set up columns to go down and then across, you can use this >method. >Read and sort the table for printing the front side of the cards: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2, > CardID; > >and sort this way for the rear side of the cards: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2 DESC, > CardID; > >Put this code into two queries and create inner join to your original >table and pull the fields you need from this to print the cards. > >You may be able to skip the temp table and sort directly but it does not >always work. >Also, you may later reduce the queries like this: > > SELECT > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2 DESC, > CardID; > >By adjusting the sorting and the across/down sequence you can create >other printing sequences. > >/gustav > > > >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> > > >I'm wondering if any one knows of a way that I can get post cards to >print from the database. Here is what I am attempting to do but it is >not working. I print the front of the card with the return address and >the address of the customer (4 per page). Than what I want to be able >to do is flip the card stock over and print the customer billing data on >the back. Currently the columns are set up to go across and than down >for printing. Is there a way that I can get the columns to print across >the bottom and than up? The problem is when I turn over the card stock >than the names and detail do not match up, they are backwards, because >of course when you flip the card stock over the first record is at the >bottom of the page instead of the top. > >Anybody have any ideas? > >Thanks in advance for any ideas, > > >Mike Gowey MCSA, MCDST, A+, LME, NET+ >Team Leader - SouthEast Region >Information Systems Unit > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 9 11:59:22 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Feb 2006 09:59:22 -0800 Subject: [AccessD] [Fwd: Project Notification] Message-ID: Ooooooohhhh! ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Thursday, February 09, 2006 9:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] LOL, no I could hire THEM for $12 / hour. 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: Thursday, February 09, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] ROTFL Wow! A whole $12 and hour?? You've hit the big time! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 08, 2006 9:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] >Most of the ones I look at are so vaguely worded that I wonder how you >can make a reasonable estimate of cost. And the answer is, I don't make an estimate of cost, I quote my hourly rate plus expenses, with a disclaimer that their spec is so vaguely worded that a fixed quote is not possible. Of course my hourly rate is about 5-10 times that of an Indian responding so if these companies are inclined to do that I can't compete. I actually got a phone call the other night from a company in India, quoting me $12 / hour for all kinds of offshoring work. 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 Mike.W.Gowey at doc.state.or.us Thu Feb 9 12:01:10 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 9 Feb 2006 11:01:10 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBE3@srciml1.ds.doc.state.or.us> Thanks Mark that would be great. -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Thursday, February 09, 2006 10:56 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Mike, I did this exact thing a few years ago. I'll send you a small db offline...let me know if you have any questions. Thanks, Mark A. Matte >From: "Gowey Mike W" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Post Card Printing >Date: Thu, 9 Feb 2006 09:04:48 -0700 > > >Gustav, > >Any idea on this? > >-----Original Message----- >From: Gowey Mike W >Sent: Monday, February 06, 2006 11:01 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Post Card Printing > > >Gustav, > >One problem I have run into on this, it works great as long as you have >a record count that is divisable by 4. If the record count is not >divisible by 4 the last page that prints when you turn over the post >card prints incorrectly because of the order, so if you have a record >count of 14 than the first 3 pages print great, but the last page that >only has 2 records on it will print on the opposite side of the page. > >Any ideas on maybe how to correct this or how to insert blank records >when not divisible by 4? > >Thanks, > >Mike > >-----Original Message----- >From: Gustav Brock [mailto:Gustav at cactus.dk] >Sent: Friday, February 03, 2006 4:47 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Post Card Printing > >Hi Mike > >For the first run you sort by sequence ID. >To be sorted properly for the second run, they have to be ordered into >another sequence, four by four (page) and two by two (column). > >If the first run is printed column by column, a page will be printed >like this: > > 1 3 > 2 4 > >where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. >To print correctly on the other side of the page, the second run must >be printed this way: > > 3 1 > 4 2 > >thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. > >The first query pulls the records in sequential order as well as the >corresponding values for page and column to allow for the alternative >ordering for the second run. As you need four cards to be printed on >page 1 you need to compensate by passing an offset which equals the >negative value of the first ID. > >Without an offset (=0) and a first CardID of 1 you would only get three >cards on the first page: > >Page4 Column2 CardID >0 0 1 >0 1 2 >0 1 3 >1 0 4 >1 0 5 >1 1 6 >1 1 7 >2 0 8 > >With an offset of -1 the pages will be filled correctly: > >Page4 Column2 CardID >0 0 1 >0 0 2 >0 1 3 >0 1 4 >1 0 5 >1 0 6 >1 1 7 >1 1 8 > >To retrieve the records for the first run, you really don't need to >sort on anything else than the CardID: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > CardID; > >For the second run, however, you need the other sorting on page and >column as well: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2 DESC, > CardID; > >This will return: > >Page4 Column2 CardID >0 1 3 >0 1 4 >0 0 1 >0 0 2 >1 1 7 >1 1 8 >1 0 5 >1 0 6 > >which is what you need. > >Use these two queries as the basis for the queries for pulling the >records to print first and second run respectively. > >The temp table is only needed if you can't get the sorting right for >the second run; sometimes Access refuses to sort on derived values. > >If you don't have a sequential ID, look up the subject "Sequence number >in query" from 2006-01-22 or write all the data you need to print to >another temp table with an AutoNumber field. > >/gustav > > >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> > >Sorry Gustav I am lost on the first part on creating the temp table >with the Offset and ID part. > >-----Original Message----- >From: Gowey Mike W >Sent: Thursday, February 02, 2006 10:10 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Post Card Printing > >Sorry replied to the wrong post. > > >When you say sequential ID for the records do you mean within the >customer table? I do have a unique customer ID for each customer >within the customer table, will that work? > >-----Original Message----- >From: Gustav Brock [mailto:Gustav at cactus.dk] >Sent: Thursday, February 02, 2006 9:41 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Post Card Printing > >Hi Mike > >You will need a sequential ID for the records. >Then create a query to write a temp table: > > SELECT > ([Offset]+[ID])\4 AS Page4, > (([Offset]+[ID])\2) Mod 2 AS Column2, > ID AS CardID > INTO > tblCardID > FROM > tblYourTable; > >Use parameter Offset to adjust the sequence for full pages by setting >it to the negative value of the first ID. If this is 67, set Offset to -67. >You could retrieve that value first or by an in-line subquery, but I'll >leave that to you. > >If you set up columns to go down and then across, you can use this >method. >Read and sort the table for printing the front side of the cards: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2, > CardID; > >and sort this way for the rear side of the cards: > > SELECT > Page4, > Column2, > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2 DESC, > CardID; > >Put this code into two queries and create inner join to your original >table and pull the fields you need from this to print the cards. > >You may be able to skip the temp table and sort directly but it does >not always work. >Also, you may later reduce the queries like this: > > SELECT > CardID > FROM > tblCardID > ORDER BY > Page4, > Column2 DESC, > CardID; > >By adjusting the sorting and the across/down sequence you can create >other printing sequences. > >/gustav > > > >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> > > >I'm wondering if any one knows of a way that I can get post cards to >print from the database. Here is what I am attempting to do but it is >not working. I print the front of the card with the return address and >the address of the customer (4 per page). Than what I want to be able >to do is flip the card stock over and print the customer billing data >on the back. Currently the columns are set up to go across and than >down for printing. Is there a way that I can get the columns to print >across the bottom and than up? The problem is when I turn over the >card stock than the names and detail do not match up, they are >backwards, because of course when you flip the card stock over the >first record is at the bottom of the page instead of the top. > >Anybody have any ideas? > >Thanks in advance for any ideas, > > >Mike Gowey MCSA, MCDST, A+, LME, NET+ >Team Leader - SouthEast Region >Information Systems Unit > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 9 12:00:30 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 09 Feb 2006 19:00:30 +0100 Subject: [AccessD] Post Card Printing Message-ID: Hi Mike After you have (re)created the tblCardID table for sorting, you will need to run a second query which appends missing records to tblCardID up to a multiplum of four. If the last page has one card, it will add records for three empty cards, if two is present, then two cards are added, etc. Thus your two printing queries will always return full pages of four cards. This is the query (watch out, guru code): INSERT INTO tblCardID ( Page4, Column2, CardID ) SELECT TOP 4 [Page4]+1 AS PageMax, Column2, [CardID]+4 AS Card1 FROM tblCardID WHERE (([CardID]+4) Not In (Select Top 4 CardID From tblCardID Order By CardID DESC;)) AND ([Page4]= (Select Max(Page4)-1 From tblCardID;)) ORDER BY Page4 DESC, Column2 DESC, CardID DESC; /gustav >>> Mike.W.Gowey at doc.state.or.us 06-02-2006 19:01:06 >>> Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit From jmhecht at earthlink.net Thu Feb 9 12:03:22 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 9 Feb 2006 10:03:22 -0800 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: <005b01c62da1$f55c4f90$647aa8c0@ColbyM6805> Message-ID: <001701c62da3$1eaab160$0a01a8c0@desktop> Wish I could get hired @ $12.00 an hour -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Thursday, February 09, 2006 9:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] LOL, no I could hire THEM for $12 / hour. 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: Thursday, February 09, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] ROTFL Wow! A whole $12 and hour?? You've hit the big time! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 08, 2006 9:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] >Most of the ones I look at are so vaguely worded that I wonder how you >can make a reasonable estimate of cost. And the answer is, I don't make an estimate of cost, I quote my hourly rate plus expenses, with a disclaimer that their spec is so vaguely worded that a fixed quote is not possible. Of course my hourly rate is about 5-10 times that of an Indian responding so if these companies are inclined to do that I can't compete. I actually got a phone call the other night from a company in India, quoting me $12 / hour for all kinds of offshoring work. John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Feb 9 12:24:58 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 9 Feb 2006 10:24:58 -0800 Subject: [AccessD] [Fwd: Project Notification] Message-ID: Keep trying, Joe. Maybe one day you too can do offshore programming! I just do off-the-wall programming myself. ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 09, 2006 10:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] Wish I could get hired @ $12.00 an hour -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Thursday, February 09, 2006 9:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] LOL, no I could hire THEM for $12 / hour. 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: Thursday, February 09, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] ROTFL Wow! A whole $12 and hour?? You've hit the big time! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 08, 2006 9:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] >Most of the ones I look at are so vaguely worded that I wonder how you >can make a reasonable estimate of cost. And the answer is, I don't make an estimate of cost, I quote my hourly rate plus expenses, with a disclaimer that their spec is so vaguely worded that a fixed quote is not possible. Of course my hourly rate is about 5-10 times that of an Indian responding so if these companies are inclined to do that I can't compete. I actually got a phone call the other night from a company in India, quoting me $12 / hour for all kinds of offshoring work. 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 jwcolby at ColbyConsulting.com Thu Feb 9 13:10:48 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Thu, 9 Feb 2006 14:10:48 -0500 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: Message-ID: <006101c62dac$8a2652b0$647aa8c0@ColbyM6805> He lives in Los Angeles IIRC. One big earthquake and he will be doing "offshore programming". 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: Thursday, February 09, 2006 1:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] Keep trying, Joe. Maybe one day you too can do offshore programming! I just do off-the-wall programming myself. ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 09, 2006 10:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] Wish I could get hired @ $12.00 an hour -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Thursday, February 09, 2006 9:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] LOL, no I could hire THEM for $12 / hour. John W. Colby www.ColbyConsulting.com From jmhecht at earthlink.net Thu Feb 9 13:28:35 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 9 Feb 2006 11:28:35 -0800 Subject: [AccessD] [Fwd: Project Notification] In-Reply-To: <006101c62dac$8a2652b0$647aa8c0@ColbyM6805> Message-ID: <001801c62daf$05acb850$0a01a8c0@desktop> John, You do rc. One good shake and my whole world is off shore. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Thursday, February 09, 2006 11:11 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] He lives in Los Angeles IIRC. One big earthquake and he will be doing "offshore programming". 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: Thursday, February 09, 2006 1:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Project Notification] Keep trying, Joe. Maybe one day you too can do offshore programming! I just do off-the-wall programming myself. ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 09, 2006 10:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] Wish I could get hired @ $12.00 an hour -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Thursday, February 09, 2006 9:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [Fwd: Project Notification] LOL, no I could hire THEM for $12 / hour. 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 Mike.W.Gowey at doc.state.or.us Thu Feb 9 13:31:06 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 9 Feb 2006 12:31:06 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBE4@srciml1.ds.doc.state.or.us> Gustav, I have been trying this and it seems to always insert 4 records into the table. I've been going through it line by line to see why but not much luck. -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 09, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike After you have (re)created the tblCardID table for sorting, you will need to run a second query which appends missing records to tblCardID up to a multiplum of four. If the last page has one card, it will add records for three empty cards, if two is present, then two cards are added, etc. Thus your two printing queries will always return full pages of four cards. This is the query (watch out, guru code): INSERT INTO tblCardID ( Page4, Column2, CardID ) SELECT TOP 4 [Page4]+1 AS PageMax, Column2, [CardID]+4 AS Card1 FROM tblCardID WHERE (([CardID]+4) Not In (Select Top 4 CardID From tblCardID Order By CardID DESC;)) AND ([Page4]= (Select Max(Page4)-1 From tblCardID;)) ORDER BY Page4 DESC, Column2 DESC, CardID DESC; /gustav >>> Mike.W.Gowey at doc.state.or.us 06-02-2006 19:01:06 >>> Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Thu Feb 9 13:57:10 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 9 Feb 2006 22:57:10 +0300 Subject: [AccessD] OT: where can I get HTML tags and atributes list in software readable form? Message-ID: <002a01c62db3$08458ed0$6501a8c0@Nant> Hi All, Where can I get the list of HTML 4.x's tags and their (at least specific) attributes, which I can import into, say MS Access tables, without programming? Thank you in advance for any info! Shamil P.S. I guess Marty knows the answer for sure :) -- Web: http://smsconsulting.spb.ru/shamil_s From Mike.W.Gowey at doc.state.or.us Thu Feb 9 13:59:42 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 9 Feb 2006 12:59:42 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBE5@srciml1.ds.doc.state.or.us> Never mind Gustav I parsed through it and I now have it working. Thanks again you are a life saver. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 09, 2006 12:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Gustav, I have been trying this and it seems to always insert 4 records into the table. I've been going through it line by line to see why but not much luck. -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 09, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike After you have (re)created the tblCardID table for sorting, you will need to run a second query which appends missing records to tblCardID up to a multiplum of four. If the last page has one card, it will add records for three empty cards, if two is present, then two cards are added, etc. Thus your two printing queries will always return full pages of four cards. This is the query (watch out, guru code): INSERT INTO tblCardID ( Page4, Column2, CardID ) SELECT TOP 4 [Page4]+1 AS PageMax, Column2, [CardID]+4 AS Card1 FROM tblCardID WHERE (([CardID]+4) Not In (Select Top 4 CardID From tblCardID Order By CardID DESC;)) AND ([Page4]= (Select Max(Page4)-1 From tblCardID;)) ORDER BY Page4 DESC, Column2 DESC, CardID DESC; /gustav >>> Mike.W.Gowey at doc.state.or.us 06-02-2006 19:01:06 >>> Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Thu Feb 9 14:04:58 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 9 Feb 2006 15:04:58 -0500 Subject: [AccessD] OT: where can I get HTML tags and atributes list in software readable form? Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0389E@xlivmbx21.aig.com> Office XP includes a help file HTMLREF.CHM which might fit the bill. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, February 09, 2006 2:57 PM To: !DBA-MAIN Subject: [AccessD] OT: where can I get HTML tags and atributes list in software readable form? Hi All, Where can I get the list of HTML 4.x's tags and their (at least specific) attributes, which I can import into, say MS Access tables, without programming? Thank you in advance for any info! Shamil P.S. I guess Marty knows the answer for sure :) -- Web: http://smsconsulting.spb.ru/shamil_s -- 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 9 14:23:58 2006 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 9 Feb 2006 12:23:58 -0800 (PST) Subject: [AccessD] Consulting Contracts Message-ID: <20060209202358.13437.qmail@web33107.mail.mud.yahoo.com> Does anyone know of a website that has very generic software consulting contracts you can download? May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. From shamil at users.mns.ru Thu Feb 9 14:32:11 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 9 Feb 2006 23:32:11 +0300 Subject: [AccessD] OT: where can I get HTML tags and atributes list in software readable form? References: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0389E@xlivmbx21.aig.com> Message-ID: <002f01c62db8$44508d80$6501a8c0@Nant> Thank you Lambert! HTMLRef.chm seems to be also a plug-in to HTML-Kit (http://www.chami.com/html-kit/plugins/info/hkh_htmlref/), I have just found also good lists(tables) ready to import here: Index of HTML elements http://www.w3.org/TR/html401/index/elements.html Index of HTML attributes http://www.w3.org/TR/html401/index/attributes.html I should have looked there in the W3 specs first of all.... Does anybody know better formatted, having more info, easily manipulated HTML tags and attributes lists? Shamil ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" Sent: Thursday, February 09, 2006 11:04 PM Subject: Re: [AccessD] OT: where can I get HTML tags and atributes list in software readable form? > Office XP includes a help file HTMLREF.CHM which might fit the bill. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Thursday, February 09, 2006 2:57 PM > To: !DBA-MAIN > Subject: [AccessD] OT: where can I get HTML tags and atributes list in > software readable form? > > > Hi All, > > Where can I get the list of HTML 4.x's tags and their (at least specific) > attributes, which I can import into, say MS Access tables, without > programming? > > Thank you in advance for any info! > > Shamil > > P.S. I guess Marty knows the answer for sure :) > > -- > Web: http://smsconsulting.spb.ru/shamil_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 carbonnb at gmail.com Thu Feb 9 14:36:57 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 9 Feb 2006 15:36:57 -0500 Subject: [AccessD] OT: where can I get HTML tags and atributes list in software readable form? In-Reply-To: <002f01c62db8$44508d80$6501a8c0@Nant> References: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0389E@xlivmbx21.aig.com> <002f01c62db8$44508d80$6501a8c0@Nant> Message-ID: On 09/02/06, Shamil Salakhetdinov wrote: > Thank you Lambert! > > HTMLRef.chm seems to be also a plug-in to HTML-Kit > (http://www.chami.com/html-kit/plugins/info/hkh_htmlref/), > > I have just found also good lists(tables) ready to import here: > > Index of HTML elements > http://www.w3.org/TR/html401/index/elements.html > > Index of HTML attributes > http://www.w3.org/TR/html401/index/attributes.html > > I should have looked there in the W3 specs first of all.... > > Does anybody know better formatted, having more info, easily manipulated > HTML tags and attributes lists? Here are a couple of pages that may be of use as well: http://www.w3schools.com/tags/default.asp (no attributes, just tags but tags are links to details pages including attributes) http://www.nic.fi/~tapio1/HTMLKit/AttributesHTML40.php3 and this one is probably the best: http://www.nic.fi/~tapio1/HTMLKit/AttributesHTML40.php3 -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From carbonnb at gmail.com Thu Feb 9 15:02:56 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 9 Feb 2006 16:02:56 -0500 Subject: [AccessD] OT: where can I get HTML tags and atributes list in software readable form? In-Reply-To: References: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0389E@xlivmbx21.aig.com> <002f01c62db8$44508d80$6501a8c0@Nant> Message-ID: On 09/02/06, Bryan Carbonnell wrote: > On 09/02/06, Shamil Salakhetdinov wrote: > > Thank you Lambert! > > > > HTMLRef.chm seems to be also a plug-in to HTML-Kit > > (http://www.chami.com/html-kit/plugins/info/hkh_htmlref/), Found one more: http://wdvl.internet.com/Authoring/HTML/4/Tags/Tags.html -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From shamil at users.mns.ru Thu Feb 9 15:26:55 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 10 Feb 2006 00:26:55 +0300 Subject: [AccessD] OT: where can I get HTML tags and atributes list insoftware readable form? References: <1D7828CDB8350747AFE9D69E0E90DA1F1CD0389E@xlivmbx21.aig.com><002f01c62db8$44508d80$6501a8c0@Nant> Message-ID: <001401c62dbf$8e30e3d0$6501a8c0@Nant> Thank you, Bryan! That's even more than I expect to find! Very much appreciated, very useful for the task I'm doing here! Thank you, Shamil ----- Original Message ----- From: "Bryan Carbonnell" To: "Access Developers discussion and problem solving" Sent: Friday, February 10, 2006 12:02 AM Subject: Re: [AccessD] OT: where can I get HTML tags and atributes list insoftware readable form? > On 09/02/06, Bryan Carbonnell wrote: >> On 09/02/06, Shamil Salakhetdinov wrote: >> > Thank you Lambert! >> > >> > HTMLRef.chm seems to be also a plug-in to HTML-Kit >> > (http://www.chami.com/html-kit/plugins/info/hkh_htmlref/), > > Found one more: > http://wdvl.internet.com/Authoring/HTML/4/Tags/Tags.html > > -- > Bryan Carbonnell - carbonnb at gmail.com > Life's journey is not to arrive at the grave safely in a well > preserved body, but rather to skid in sideways, totally worn out, > shouting "What a great ride!" > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Feb 9 15:27:56 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 09 Feb 2006 13:27:56 -0800 Subject: [AccessD] Consulting Contracts References: <20060209202358.13437.qmail@web33107.mail.mud.yahoo.com> Message-ID: <43EBB3DC.6050300@shaw.ca> http://techrepublic.com.com/5138-6337-730174.html?tag=nl.e053 Don't forget to have a lawyer look at it and your O&E insurance is uptodate There are probably some Nolo Press Legal books that cover this. Lonnie Johnson wrote: >Does anyone know of a website that has very generic software consulting contracts you can download? > > >May God bless you beyond your imagination! >Lonnie Johnson >ProDev, Professional Development of MS Access Databases >Visit me at ==> http://www.prodev.us > > > > > > > > > > > > >--------------------------------- > Yahoo! Mail > Use Photomail to share photos without annoying attachments. > > -- Marty Connelly Victoria, B.C. Canada From erbachs at gmail.com Thu Feb 9 15:48:06 2006 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 9 Feb 2006 15:48:06 -0600 Subject: [AccessD] Basic Query Design In-Reply-To: References: Message-ID: <39cb22f30602091348sb94348exbb8ee1a21060e6fd@mail.gmail.com> Charlotte, Right you are! I used them for a fancy report in an ASP project I did last year. Very interesting capability. Hard to tell whether it's worth the effort versus multiple queries to form those mutliple recordsets. Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security Blog: http://TheTownCrank.blogspot.com On 2/9/06, Charlotte Foust wrote: > LOL Try the SQL for shaped recordsets sometime if you want to cause > headaches! ;o> > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, February 09, 2006 7:36 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Basic Query Design > > > Stuart, > > Hah! The guy that came up with it is a professor in the Computer > Science Dept. at UW-Parkside in Kenosha, WI...right in my neck of the > woods. After showing this method and explaining how it's derived in > detail, he wrote, "Imagine presenting this to undergrads who have just a > lecture or two of SQL under their belts. You DO get the chance to talk > about scoping of aliases..." > > Steve Erbach > Scientific Marketing > Neenah, WI > http://TheTownCrank.blogspot.com From Mike.W.Gowey at doc.state.or.us Thu Feb 9 16:28:36 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 9 Feb 2006 15:28:36 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF486077808115B10@srciml1.ds.doc.state.or.us> Gustav, Sorry to be such a pest, when I create the tblCardID table it keeps putting at the top the Page4 number that has the least amount of records. For Example: Page4 Column2 CardID 17 0 69 17 1 70 17 1 71 18 0 72 18 0 73 18 1 74 18 1 75 19 0 76 19 0 77 19 1 78 19 1 79 20 0 80 20 0 81 20 1 82 20 1 83 So when I apply the query below to add records if needed if does not find any because the top records are 20 and already has 4 records but 17 has only 3 records. Any Idea why it does that? Thanks again -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 09, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike After you have (re)created the tblCardID table for sorting, you will need to run a second query which appends missing records to tblCardID up to a multiplum of four. If the last page has one card, it will add records for three empty cards, if two is present, then two cards are added, etc. Thus your two printing queries will always return full pages of four cards. This is the query (watch out, guru code): INSERT INTO tblCardID ( Page4, Column2, CardID ) SELECT TOP 4 [Page4]+1 AS PageMax, Column2, [CardID]+4 AS Card1 FROM tblCardID WHERE (([CardID]+4) Not In (Select Top 4 CardID From tblCardID Order By CardID DESC;)) AND ([Page4]= (Select Max(Page4)-1 From tblCardID;)) ORDER BY Page4 DESC, Column2 DESC, CardID DESC; /gustav >>> Mike.W.Gowey at doc.state.or.us 06-02-2006 19:01:06 >>> Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Thu Feb 9 20:17:28 2006 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 10 Feb 2006 13:17:28 +1100 Subject: [AccessD] SQL Server 2005 book Message-ID: <000e01c62de8$2509ce20$6501a8c0@user> Is Mike Gunderloy still on this list? I am getting a bit frustrated finding any decent resources to help me learn SQL Server 2005. I know Mike has a new book coming out "Mastering Microsoft SQL Server 2005" but I can't get it here (Australia) until July. I would love to find an early copy - it's just too hard to use the SQL 2000 books when so much terminology has changed and it's all new. Meanwhile I am using the new Books Online feature but I am one of those people who like to have a book. Or does anyone have any other books they would recommend? Kath From darrend at nimble.com.au Thu Feb 9 20:26:39 2006 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 10 Feb 2006 13:26:39 +1100 Subject: [AccessD] SQL Server 2005 book In-Reply-To: <000e01c62de8$2509ce20$6501a8c0@user> Message-ID: <20060210022641.DZST18661.omta02sl.mx.bigpond.com@DENZILLAP> Hi Kath Address it to Susan (Sales Harkins) as well Both Susan and Mike are co-writing it Susan is 'more than a lurker' on these pages Susan...oh Susan - are you there?? Hope it's all going well for you Kath See ya Darren ------------------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Friday, 10 February 2006 1:17 PM To: AccessD at databaseadvisors.com; dba-sqlserver at databaseadvisors.com Subject: [AccessD] SQL Server 2005 book Is Mike Gunderloy still on this list? I am getting a bit frustrated finding any decent resources to help me learn SQL Server 2005. I know Mike has a new book coming out "Mastering Microsoft SQL Server 2005" but I can't get it here (Australia) until July. I would love to find an early copy - it's just too hard to use the SQL 2000 books when so much terminology has changed and it's all new. Meanwhile I am using the new Books Online feature but I am one of those people who like to have a book. Or does anyone have any other books they would recommend? Kath -- 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 10 00:53:32 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 09 Feb 2006 22:53:32 -0800 Subject: [AccessD] OT: Affiliate Program Message-ID: <43EC386C.1090509@san.rr.com> Dear List: I have a web site where we are selling The Sleep Advisor (www.thesleepadvisor.com). Someone with an alternative health site has proposed to promote The Sleep Advisor on her site and send folks to our site. She asks if we have an affiliate program. Which we ain't. I looked into it a bit and it doesn't look trivial. Basically we need a way to know if someone visiting our site and buying The Sleep Advisor originated from her site. We're hosted by Affinity and have Urchin statistics but I don't see anything there that would be helpful right off. Does anyone know a slick, quick way to do this? MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From accessd at shaw.ca Fri Feb 10 03:09:55 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 10 Feb 2006 01:09:55 -0800 Subject: [AccessD] Basic Query Design In-Reply-To: <43EB3DCB.1966.1874CDCE@stuart.lexacorp.com.pg> Message-ID: <001f01c62e21$c2472a00$017ba8c0@xpserver> One note: Would this query allow the user to go for coffee while waiting for the results? 'Sub queries' and 'not exists' has certain reputations? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: February 8, 2006 7:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Basic Query Design On 8 Feb 2006 at 20:36, Steve Erbach wrote: > SELECT DISTINCT EmployeeID > FROM tblEmployeeCourse AS EC1 > WHERE NOT EXISTS > ( SELECT CourseID FROM tblCourse > WHERE CourseID In (1,2,4,5) AND NOT EXISTS > ( SELECT * FROM tblEmployeeCourse AS EC2 > WHERE EC2.CourseID = tblCourse.CourseID > AND EC2.EmployeeID = EC1.EmployeeID)) > Ouch! My head hurts! -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Feb 10 03:21:54 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 10 Feb 2006 12:21:54 +0300 Subject: [AccessD] OT: Affiliate Program References: <43EC386C.1090509@san.rr.com> Message-ID: <001e01c62e23$70d5ca30$6501a8c0@Nant> Rocky, Internet servers are usually able to keep raw logs of HTTP requests - these are seperate ASCII files and their records are well formatted and look like the sample log records from my site's today HTTP requests log in the P.S. of this message. I did plan for quite some time to write code to parse these records and to put them into database for further analysis but I didn't have good reasons to that for myself. Now, if nobody here will point on a ready to use solution then we can write, test and use such TCP/IP log parser together and when well done make it available on AccessD site for download... How about this idea? I can write some code for starters on weekend... Shamil P.S. HTTP requests sample log: 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET /robots.txt HTTP/1.1" 404 297 "-" "findlinks/1.1.1-a1 (+http://wortschatz.uni-leipzig.de/findlinks/)" 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD /shamil_s HTTP/1.1" 301 - "-" "LWP::Simple/5.803" 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD /shamil_s/ HTTP/1.1" 200 - "-" "LWP::Simple/5.803" 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s HTTP/1.1" 301 334 "http://www.jaja-jak-globusy.com/" "Poirot" ... 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET /shamil_s/pics/pole2.gif HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" ... 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET /robots.txt HTTP/1.0" 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" ... ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Friday, February 10, 2006 9:53 AM Subject: [AccessD] OT: Affiliate Program > Dear List: > > I have a web site where we are selling The Sleep Advisor > (www.thesleepadvisor.com). Someone with an alternative health site has > proposed to promote The Sleep Advisor on her site and send folks to our > site. She asks if we have an affiliate program. Which we ain't. > > I looked into it a bit and it doesn't look trivial. Basically we need a > way to know if someone visiting our site and buying The Sleep Advisor > originated from her site. We're hosted by Affinity and have Urchin > statistics but I don't see anything there that would be helpful right off. > > Does anyone know a slick, quick way to do this? > > MTIA > > Rocky > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Fri Feb 10 03:57:06 2006 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Fri, 10 Feb 2006 09:57:06 -0000 Subject: [AccessD] OT: Affiliate Program Message-ID: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk> Interesting project! I too had considered such a project in the past, but was daunted by the complexity. My web hosting company (DSVR) supports a product called Webalizer. This is a server-side (PERL?) jobbie that analyses log files. Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . Regards! Chris Foote > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Shamil > Salakhetdinov > Sent: Friday, February 10, 2006 9:22 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Affiliate Program > > > Rocky, > > Internet servers are usually able to keep raw logs of HTTP > requests - these > are seperate ASCII files and their records are well formatted > and look like > the sample log records from my site's today HTTP requests > log in the P.S. > of this message. > > I did plan for quite some time to write code to parse these > records and to > put them into database for further analysis but I didn't have > good reasons > to that for myself. > > Now, if nobody here will point on a ready to use solution > then we can write, > test and use such TCP/IP log parser together and when well done make > it available on AccessD site for download... > > How about this idea? I can write some code for starters on weekend... > > Shamil > > P.S. HTTP requests sample log: > > 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET > /robots.txt HTTP/1.1" 404 > 297 "-" "findlinks/1.1.1-a1 > (+http://wortschatz.uni-leipzig.de/findlinks/)" > > 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD > /shamil_s HTTP/1.1" > 301 - "-" "LWP::Simple/5.803" > > 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD > /shamil_s/ HTTP/1.1" > 200 - "-" "LWP::Simple/5.803" > > 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s > HTTP/1.1" 301 > 334 "http://www.jaja-jak-globusy.com/" "Poirot" > > ... > > 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET > /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 > "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 > (compatible; MSIE 6.0; > Windows NT 5.1; SV1; .NET CLR 1.1.4322)" > > 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET > /shamil_s/pics/pole2.gif > HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 > (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" > > ... > > 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET > /robots.txt HTTP/1.0" > 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; > http://help.yahoo.com/help/us/ysearch/slurp)" > > 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET > /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 > (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" ... From Gustav at cactus.dk Fri Feb 10 04:38:02 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Feb 2006 11:38:02 +0100 Subject: [AccessD] Post Card Printing Message-ID: Hi Mike That will happen if you don't use the right value for Offset. The right value will ensure that the first page is full having two Column2 of 0 followed by two of 1. Please read the explanation on this (below, from the original post). For your example data, it seems Offset should be -69. By second thought, you could easily pull this value automatically. This is the revised query doing that: SELECT ([ID]-[Offset])\4 AS Page4, (([ID]-[Offset])\2) Mod 2 AS Column2, ID AS CardID, (SELECT MIN(deliveryid) FROM tblYourTable;) AS Offset INTO tblCardID FROM tblYourTable; /gustav >>> Mike.W.Gowey at doc.state.or.us 09-02-2006 23:28:36 >>> Gustav, Sorry to be such a pest, when I create the tblCardID table it keeps putting at the top the Page4 number that has the least amount of records. For Example: Page4 Column2 CardID 17 0 69 17 1 70 17 1 71 18 0 72 18 0 73 18 1 74 18 1 75 19 0 76 19 0 77 19 1 78 19 1 79 20 0 80 20 0 81 20 1 82 20 1 83 So when I apply the query below to add records if needed if does not find any because the top records are 20 and already has 4 records but 17 has only 3 records. Any Idea why it does that? Thanks again -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 09, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike After you have (re)created the tblCardID table for sorting, you will need to run a second query which appends missing records to tblCardID up to a multiplum of four. If the last page has one card, it will add records for three empty cards, if two is present, then two cards are added, etc. Thus your two printing queries will always return full pages of four cards. This is the query (watch out, guru code): INSERT INTO tblCardID ( Page4, Column2, CardID ) SELECT TOP 4 [Page4]+1 AS PageMax, Column2, [CardID]+4 AS Card1 FROM tblCardID WHERE (([CardID]+4) Not In (Select Top 4 CardID From tblCardID Order By CardID DESC;)) AND ([Page4]= (Select Max(Page4)-1 From tblCardID;)) ORDER BY Page4 DESC, Column2 DESC, CardID DESC; /gustav >>> Mike.W.Gowey at doc.state.or.us 06-02-2006 19:01:06 >>> Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit From John.Clark at niagaracounty.com Fri Feb 10 06:34:06 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 10 Feb 2006 07:34:06 -0500 Subject: [AccessD] Possible or No? Message-ID: I use the code at the bottom to automatically come up with the next number in a series...in this case the next available indictment number. It works great, and I've used it in other programs...I wish I remembered who helped me with this...I've got it in one of my books somewhere, but I recently moved to a new office and I think it is packed somewhere...buuuuuut...they have thrown a wrench into the works. It works for standard, straightforward indictment numbers, but apparently they do a couple of different things, in different situations. One of these is, when multiple people are indicted on a crime (i.e. co-defendants) they would share the "main" indictment number, but a suffix would be added for each subsequent member, after the first entry. For example: Tom, Dick, and Harry get indicted on racketeering charges. Tom is entered first and is assigned the next available number, which is 2006-043. Then Dick is entered, but he doesn't get 2006-044; instead they want to give him 2006-043-1. They then want Harry to get 2006-043-2. There are also instances where there is a lowercase "a" assigned to it...I believe this is something about multiple indictments. I have found current numbers encompassing both these scenarios (2005-043a-1), which really musses things up. And a scenario where it designates handed down from fed court, which isn't a problem...I've just added a field for this and append it...it doesn't really affect the number. Whattaya think? While I was there I discovered that this number system is not anything mandated by the state, and one woman there refuses to follow this procedure, and instead creates a new indictment number for each defendant. This would actually be quite a bit easier on me...I'd be nearly done, with some minor work left. This tells me though, that maybe there needs to be a policy change rather than building the code, if it is possible to being with. Also, if I go through this trouble, and the "rebel" lady still ignores their process of doing things, there really isn't any way to force her through code...there is no way to recognize these people, before they are designated in the program. I'm thinking...depending on what y'all say...of giving them a call and asking about the possibility of changing this procedurally. I probably would have already, but it is one of those clients (department for me) that treats you real good, and you just want to give them whatever they want...you know they'll appreciate it. *** CODE BELOW *** Function NewControlNum() As String Dim strSQL As String Dim strNewID As String Dim rst As Recordset '"Right(Year(Now()),2)" & _ ...this line was in the code strSQL = "SELECT nz(Max(Mid([tblIndictment]![IndictmentNumber],6)),0)+1 AS lngMaxID," & _ "Year(Now())" & _ "& '-' & [lngMaxID] AS lngNewID " & _ "FROM tblIndictment " & _ "WHERE (((Left([tblIndictment]![IndictmentNumber],4))=Right(Year(Now()),4)));" Set rst = CodeDb.OpenRecordset(strSQL) With rst strNewID = rst!lngNewID rst.Close Set rst = Nothing End With NewControlNum = strNewID Rem *************************************************************************** Select Case Len(NewControlNum) Case 6 NewControlNum = Left(NewControlNum, 5) & "00" & Right(NewControlNum, 1) Case 7 NewControlNum = Left(NewControlNum, 5) & "0" & Right(NewControlNum, 2) End Select End Function From Gustav at cactus.dk Fri Feb 10 07:00:16 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Feb 2006 14:00:16 +0100 Subject: [AccessD] Possible or No? Message-ID: Hi John That is a dirty road. 2006-043 represented a person. Now it would represent a crime while persons would be 2006-043-0, 2006-043-1, 2006-043-2 etc. Not to comment on the "a" suffix ... A true mess. /gustav From Mike.W.Gowey at doc.state.or.us Fri Feb 10 08:51:30 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Fri, 10 Feb 2006 07:51:30 -0700 Subject: [AccessD] Post Card Printing Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BBE7@srciml1.ds.doc.state.or.us> Thanks Gustav I thought I was getting the right Offset cause it would work sometimes, but this way works much better. Works everytime now. Thanks again, I can finally put this part to rest and concentrate on the rest of the program. -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 10, 2006 3:38 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike That will happen if you don't use the right value for Offset. The right value will ensure that the first page is full having two Column2 of 0 followed by two of 1. Please read the explanation on this (below, from the original post). For your example data, it seems Offset should be -69. By second thought, you could easily pull this value automatically. This is the revised query doing that: SELECT ([ID]-[Offset])\4 AS Page4, (([ID]-[Offset])\2) Mod 2 AS Column2, ID AS CardID, (SELECT MIN(deliveryid) FROM tblYourTable;) AS Offset INTO tblCardID FROM tblYourTable; /gustav >>> Mike.W.Gowey at doc.state.or.us 09-02-2006 23:28:36 >>> Gustav, Sorry to be such a pest, when I create the tblCardID table it keeps putting at the top the Page4 number that has the least amount of records. For Example: Page4 Column2 CardID 17 0 69 17 1 70 17 1 71 18 0 72 18 0 73 18 1 74 18 1 75 19 0 76 19 0 77 19 1 78 19 1 79 20 0 80 20 0 81 20 1 82 20 1 83 So when I apply the query below to add records if needed if does not find any because the top records are 20 and already has 4 records but 17 has only 3 records. Any Idea why it does that? Thanks again -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 09, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike After you have (re)created the tblCardID table for sorting, you will need to run a second query which appends missing records to tblCardID up to a multiplum of four. If the last page has one card, it will add records for three empty cards, if two is present, then two cards are added, etc. Thus your two printing queries will always return full pages of four cards. This is the query (watch out, guru code): INSERT INTO tblCardID ( Page4, Column2, CardID ) SELECT TOP 4 [Page4]+1 AS PageMax, Column2, [CardID]+4 AS Card1 FROM tblCardID WHERE (([CardID]+4) Not In (Select Top 4 CardID From tblCardID Order By CardID DESC;)) AND ([Page4]= (Select Max(Page4)-1 From tblCardID;)) ORDER BY Page4 DESC, Column2 DESC, CardID DESC; /gustav >>> Mike.W.Gowey at doc.state.or.us 06-02-2006 19:01:06 >>> Gustav, One problem I have run into on this, it works great as long as you have a record count that is divisable by 4. If the record count is not divisible by 4 the last page that prints when you turn over the post card prints incorrectly because of the order, so if you have a record count of 14 than the first 3 pages print great, but the last page that only has 2 records on it will print on the opposite side of the page. Any ideas on maybe how to correct this or how to insert blank records when not divisible by 4? Thanks, Mike -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, February 03, 2006 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike For the first run you sort by sequence ID. To be sorted properly for the second run, they have to be ordered into another sequence, four by four (page) and two by two (column). If the first run is printed column by column, a page will be printed like this: 1 3 2 4 where the CardIDs are sequential: 1 2 3 4, 5 6 7 8, etc. To print correctly on the other side of the page, the second run must be printed this way: 3 1 4 2 thus the CardIDs must be ordered: 3 4 1 2, 7 8 5 6, etc. The first query pulls the records in sequential order as well as the corresponding values for page and column to allow for the alternative ordering for the second run. As you need four cards to be printed on page 1 you need to compensate by passing an offset which equals the negative value of the first ID. Without an offset (=0) and a first CardID of 1 you would only get three cards on the first page: Page4 Column2 CardID 0 0 1 0 1 2 0 1 3 1 0 4 1 0 5 1 1 6 1 1 7 2 0 8 With an offset of -1 the pages will be filled correctly: Page4 Column2 CardID 0 0 1 0 0 2 0 1 3 0 1 4 1 0 5 1 0 6 1 1 7 1 1 8 To retrieve the records for the first run, you really don't need to sort on anything else than the CardID: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY CardID; For the second run, however, you need the other sorting on page and column as well: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; This will return: Page4 Column2 CardID 0 1 3 0 1 4 0 0 1 0 0 2 1 1 7 1 1 8 1 0 5 1 0 6 which is what you need. Use these two queries as the basis for the queries for pulling the records to print first and second run respectively. The temp table is only needed if you can't get the sorting right for the second run; sometimes Access refuses to sort on derived values. If you don't have a sequential ID, look up the subject "Sequence number in query" from 2006-01-22 or write all the data you need to print to another temp table with an AutoNumber field. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 18:32:48 >>> Sorry Gustav I am lost on the first part on creating the temp table with the Offset and ID part. -----Original Message----- From: Gowey Mike W Sent: Thursday, February 02, 2006 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Post Card Printing Sorry replied to the wrong post. When you say sequential ID for the records do you mean within the customer table? I do have a unique customer ID for each customer within the customer table, will that work? -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, February 02, 2006 9:41 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Post Card Printing Hi Mike You will need a sequential ID for the records. Then create a query to write a temp table: SELECT ([Offset]+[ID])\4 AS Page4, (([Offset]+[ID])\2) Mod 2 AS Column2, ID AS CardID INTO tblCardID FROM tblYourTable; Use parameter Offset to adjust the sequence for full pages by setting it to the negative value of the first ID. If this is 67, set Offset to -67. You could retrieve that value first or by an in-line subquery, but I'll leave that to you. If you set up columns to go down and then across, you can use this method. Read and sort the table for printing the front side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2, CardID; and sort this way for the rear side of the cards: SELECT Page4, Column2, CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; Put this code into two queries and create inner join to your original table and pull the fields you need from this to print the cards. You may be able to skip the temp table and sort directly but it does not always work. Also, you may later reduce the queries like this: SELECT CardID FROM tblCardID ORDER BY Page4, Column2 DESC, CardID; By adjusting the sorting and the across/down sequence you can create other printing sequences. /gustav >>> Mike.W.Gowey at doc.state.or.us 02-02-2006 16:21:32 >>> I'm wondering if any one knows of a way that I can get post cards to print from the database. Here is what I am attempting to do but it is not working. I print the front of the card with the return address and the address of the customer (4 per page). Than what I want to be able to do is flip the card stock over and print the customer billing data on the back. Currently the columns are set up to go across and than down for printing. Is there a way that I can get the columns to print across the bottom and than up? The problem is when I turn over the card stock than the names and detail do not match up, they are backwards, because of course when you flip the card stock over the first record is at the bottom of the page instead of the top. Anybody have any ideas? Thanks in advance for any ideas, Mike Gowey MCSA, MCDST, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lmrazek at lcm-res.com Fri Feb 10 09:10:08 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Fri, 10 Feb 2006 09:10:08 -0600 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <43EC386C.1090509@san.rr.com> Message-ID: <029d01c62e54$14e5c190$036fa8c0@hplaptop> Hi Rocky: If she is constructing the links, could she add a query string to the URL (EX: http://www.thesleepadvisor.com/index.asp?AffiliateID=1)? Depending on your server model, then you could add code to automatically detect the query string and log it to a database/session variable/cookie (using server side code). Then on a successful order, your system looks for the db value/session variable/cookie and adds it to the order record. Hope this helps. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -----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 10, 2006 12:54 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Affiliate Program Dear List: I have a web site where we are selling The Sleep Advisor (www.thesleepadvisor.com). Someone with an alternative health site has proposed to promote The Sleep Advisor on her site and send folks to our site. She asks if we have an affiliate program. Which we ain't. I looked into it a bit and it doesn't look trivial. Basically we need a way to know if someone visiting our site and buying The Sleep Advisor originated from her site. We're hosted by Affinity and have Urchin statistics but I don't see anything there that would be helpful right off. Does anyone know a slick, quick way to do this? MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Feb 10 09:15:33 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 07:15:33 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <001e01c62e23$70d5ca30$6501a8c0@Nant> References: <43EC386C.1090509@san.rr.com> <001e01c62e23$70d5ca30$6501a8c0@Nant> Message-ID: <43ECAE15.8010609@san.rr.com> Shamil: I wrote a crude app to parse the log files from my E-Z-MRP web site. I put it up on www.e-z-mrp.com/ftpguest for you to download and take a look. Maybe it will help. My purpose was just to do page counts and if you look at the query 'qryCountsofMajorPagesByMonth' you'll see what I'm using this app for. My log files look like the same format as yours. I always wondered what those extra fields were for. Can they be used somehow to track sales? What we need is a way to know if someone went to our site from her site, ended up on the order page and placed an order. You can download the product from our site but most people place an order for it to be shipped to them. Some of the info I've seen on affiliate programs seems to indicate that they work with downloadable products versus shippable. An alternative I was thinking about was to put some kind of coupon or discount code on her site where people can link to us and have a place on our order page where the buyer can key in the coupon or discount code and modify the code to give the discount. This way we could set up discount codes for different affiliates or put a discount coupon as an insert in a publication. New territory for me. Hope the list will tolerate this bit of OT for a few days. Thanks for the help. Regards, Rocky Shamil Salakhetdinov wrote: > Rocky, > > Internet servers are usually able to keep raw logs of HTTP requests - these > are seperate ASCII files and their records are well formatted and look like > the sample log records from my site's today HTTP requests log in the P.S. > of this message. > > I did plan for quite some time to write code to parse these records and to > put them into database for further analysis but I didn't have good reasons > to that for myself. > > Now, if nobody here will point on a ready to use solution then we can write, > test and use such TCP/IP log parser together and when well done make > it available on AccessD site for download... > > How about this idea? I can write some code for starters on weekend... > > Shamil > > P.S. HTTP requests sample log: > > 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET /robots.txt HTTP/1.1" 404 > 297 "-" "findlinks/1.1.1-a1 (+http://wortschatz.uni-leipzig.de/findlinks/)" > > 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD /shamil_s HTTP/1.1" > 301 - "-" "LWP::Simple/5.803" > > 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD /shamil_s/ HTTP/1.1" > 200 - "-" "LWP::Simple/5.803" > > 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s HTTP/1.1" 301 > 334 "http://www.jaja-jak-globusy.com/" "Poirot" > > ... > > 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET > /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 > "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 (compatible; MSIE 6.0; > Windows NT 5.1; SV1; .NET CLR 1.1.4322)" > > 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET /shamil_s/pics/pole2.gif > HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 > (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" > > ... > > 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET /robots.txt HTTP/1.0" > 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; > http://help.yahoo.com/help/us/ysearch/slurp)" > > 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET > /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 > (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" > > 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET > /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 > (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" > > ... > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: "Access Developers discussion and problem solving" > > Sent: Friday, February 10, 2006 9:53 AM > Subject: [AccessD] OT: Affiliate Program > > > >> Dear List: >> >> I have a web site where we are selling The Sleep Advisor >> (www.thesleepadvisor.com). Someone with an alternative health site has >> proposed to promote The Sleep Advisor on her site and send folks to our >> site. She asks if we have an affiliate program. Which we ain't. >> >> I looked into it a bit and it doesn't look trivial. Basically we need a >> way to know if someone visiting our site and buying The Sleep Advisor >> originated from her site. We're hosted by Affinity and have Urchin >> statistics but I don't see anything there that would be helpful right off. >> >> Does anyone know a slick, quick way to do this? >> >> MTIA >> >> Rocky >> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Gustav at cactus.dk Fri Feb 10 09:14:56 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Feb 2006 16:14:56 +0100 Subject: [AccessD] Post Card Printing Message-ID: Hi Mike Great. Have a nice weekend! /gustav >>> Mike.W.Gowey at doc.state.or.us 10-02-2006 15:51:30 >>> Thanks Gustav I thought I was getting the right Offset cause it would work sometimes, but this way works much better. Works everytime now. Thanks again, I can finally put this part to rest and concentrate on the rest of the program. From shamil at users.mns.ru Fri Feb 10 09:27:07 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 10 Feb 2006 18:27:07 +0300 Subject: [AccessD] OT: Affiliate Program References: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk> Message-ID: <002801c62e56$758b81e0$6501a8c0@Nant> <<< > Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . >>> Yes, Chris my ISP collects/presents similar statistics for my site: http://www.smsconsulting.spb.ru/acclogs/hourly_usage_200601.png http://www.smsconsulting.spb.ru/acclogs/daily_usage_200601.png http://www.smsconsulting.spb.ru/acclogs/usage_200601.html8 But Rocky needs raw information to analyze his site activity generated by his affilate sites - I think such information can be extracted from HTTP log records but I don't know how this HTTP logging works in details. My guess is that the first entry via affilate site should have this site's identifier in URL, which can be extracted and linked with all the following activity of the IP address presented as the first element of the entry log record... Shamil ----- Original Message ----- From: "Foote, Chris" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 10, 2006 12:57 PM Subject: Re: [AccessD] OT: Affiliate Program > Interesting project! > > I too had considered such a project in the past, but was daunted by the > complexity. > > My web hosting company (DSVR) supports a product called Webalizer. This is > a > server-side (PERL?) jobbie that analyses log files. > > Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . > > Regards! > Chris Foote > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Shamil >> Salakhetdinov >> Sent: Friday, February 10, 2006 9:22 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] OT: Affiliate Program >> >> >> Rocky, >> >> Internet servers are usually able to keep raw logs of HTTP >> requests - these >> are seperate ASCII files and their records are well formatted >> and look like >> the sample log records from my site's today HTTP requests >> log in the P.S. >> of this message. >> >> I did plan for quite some time to write code to parse these >> records and to >> put them into database for further analysis but I didn't have >> good reasons >> to that for myself. >> >> Now, if nobody here will point on a ready to use solution >> then we can write, >> test and use such TCP/IP log parser together and when well done make >> it available on AccessD site for download... >> >> How about this idea? I can write some code for starters on weekend... >> >> Shamil >> >> P.S. HTTP requests sample log: >> >> 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET >> /robots.txt HTTP/1.1" 404 >> 297 "-" "findlinks/1.1.1-a1 >> (+http://wortschatz.uni-leipzig.de/findlinks/)" >> >> 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD >> /shamil_s HTTP/1.1" >> 301 - "-" "LWP::Simple/5.803" >> >> 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD >> /shamil_s/ HTTP/1.1" >> 200 - "-" "LWP::Simple/5.803" >> >> 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s >> HTTP/1.1" 301 >> 334 "http://www.jaja-jak-globusy.com/" "Poirot" >> >> ... >> >> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >> /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 >> "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >> (compatible; MSIE 6.0; >> Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >> >> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >> /shamil_s/pics/pole2.gif >> HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >> (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >> >> ... >> >> 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET >> /robots.txt HTTP/1.0" >> 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; >> http://help.yahoo.com/help/us/ysearch/slurp)" >> >> 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET >> /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 >> (compatible; Yahoo! Slurp; > http://help.yahoo.com/help/us/ysearch/slurp)" > > 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET > /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 > (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" > > ... > -- > 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 10 09:43:46 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 07:43:46 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <029d01c62e54$14e5c190$036fa8c0@hplaptop> References: <029d01c62e54$14e5c190$036fa8c0@hplaptop> Message-ID: <43ECB4B2.6020209@san.rr.com> Larry: We use PayPal for ordering. When they click on the Order Button they go to the paypal page where they may or may not complete the order. Does this make the cookie approach problematical? TIA Rocky Lawrence Mrazek wrote: > Hi Rocky: > > If she is constructing the links, could she add a query string to the URL > (EX: http://www.thesleepadvisor.com/index.asp?AffiliateID=1)? Depending on > your server model, then you could add code to automatically detect the query > string and log it to a database/session variable/cookie (using server side > code). Then on a successful order, your system looks for the db > value/session variable/cookie and adds it to the order record. > > Hope this helps. > > Larry Mrazek > LCM Research, Inc. > www.lcm-res.com > lmrazek at lcm-res.com > ph. 314-432-5886 > fx. 314-432-3304 > > -----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 10, 2006 12:54 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT: Affiliate Program > > Dear List: > > I have a web site where we are selling The Sleep Advisor > (www.thesleepadvisor.com). Someone with an alternative health site has > proposed to promote The Sleep Advisor on her site and send folks to our > site. She asks if we have an affiliate program. Which we ain't. > > I looked into it a bit and it doesn't look trivial. Basically we need a way > to know if someone visiting our site and buying The Sleep Advisor originated > from her site. We're hosted by Affinity and have Urchin statistics but I > don't see anything there that would be helpful right off. > > Does anyone know a slick, quick way to do this? > > MTIA > > Rocky > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Fri Feb 10 09:46:21 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 07:46:21 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <002801c62e56$758b81e0$6501a8c0@Nant> References: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk> <002801c62e56$758b81e0$6501a8c0@Nant> Message-ID: <43ECB54D.20105@san.rr.com> Shamil: More than that I need to know where a sale came from (actually, knowing the number of visitors generated from an affiliate would be interesting but not really necessary). And since our order button links to PayPal, this may be a problem. They may or may not complete the order there. Rocky Shamil Salakhetdinov wrote: > <<< > >> Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . >> > Yes, Chris my ISP collects/presents similar statistics for my site: > > http://www.smsconsulting.spb.ru/acclogs/hourly_usage_200601.png > http://www.smsconsulting.spb.ru/acclogs/daily_usage_200601.png > http://www.smsconsulting.spb.ru/acclogs/usage_200601.html8 > > But Rocky needs raw information to analyze his site activity generated by > his affilate sites - I think such information can be extracted from HTTP log > records but I don't know how this HTTP logging works in details. My guess is > that the first entry via affilate site should have this site's identifier in > URL, which can be extracted and linked with all the following activity of > the IP address presented as the first element of the entry log record... > > Shamil > > ----- Original Message ----- > From: "Foote, Chris" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, February 10, 2006 12:57 PM > Subject: Re: [AccessD] OT: Affiliate Program > > > >> Interesting project! >> >> I too had considered such a project in the past, but was daunted by the >> complexity. >> >> My web hosting company (DSVR) supports a product called Webalizer. This is >> a >> server-side (PERL?) jobbie that analyses log files. >> >> Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . >> >> Regards! >> Chris Foote >> >> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Shamil >>> Salakhetdinov >>> Sent: Friday, February 10, 2006 9:22 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] OT: Affiliate Program >>> >>> >>> Rocky, >>> >>> Internet servers are usually able to keep raw logs of HTTP >>> requests - these >>> are seperate ASCII files and their records are well formatted >>> and look like >>> the sample log records from my site's today HTTP requests >>> log in the P.S. >>> of this message. >>> >>> I did plan for quite some time to write code to parse these >>> records and to >>> put them into database for further analysis but I didn't have >>> good reasons >>> to that for myself. >>> >>> Now, if nobody here will point on a ready to use solution >>> then we can write, >>> test and use such TCP/IP log parser together and when well done make >>> it available on AccessD site for download... >>> >>> How about this idea? I can write some code for starters on weekend... >>> >>> Shamil >>> >>> P.S. HTTP requests sample log: >>> >>> 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET >>> /robots.txt HTTP/1.1" 404 >>> 297 "-" "findlinks/1.1.1-a1 >>> (+http://wortschatz.uni-leipzig.de/findlinks/)" >>> >>> 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD >>> /shamil_s HTTP/1.1" >>> 301 - "-" "LWP::Simple/5.803" >>> >>> 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD >>> /shamil_s/ HTTP/1.1" >>> 200 - "-" "LWP::Simple/5.803" >>> >>> 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s >>> HTTP/1.1" 301 >>> 334 "http://www.jaja-jak-globusy.com/" "Poirot" >>> >>> ... >>> >>> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >>> /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 >>> "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >>> (compatible; MSIE 6.0; >>> Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >>> >>> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >>> /shamil_s/pics/pole2.gif >>> HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >>> (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >>> >>> ... >>> >>> 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET >>> /robots.txt HTTP/1.0" >>> 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; >>> http://help.yahoo.com/help/us/ysearch/slurp)" >>> >>> 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET >>> /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 >>> (compatible; Yahoo! Slurp; >>> >> http://help.yahoo.com/help/us/ysearch/slurp)" >> >> 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET >> /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 >> (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" >> >> ... >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From darsant at gmail.com Fri Feb 10 09:57:08 2006 From: darsant at gmail.com (Josh McFarlane) Date: Fri, 10 Feb 2006 09:57:08 -0600 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <43ECB54D.20105@san.rr.com> References: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk> <002801c62e56$758b81e0$6501a8c0@Nant> <43ECB54D.20105@san.rr.com> Message-ID: <53c8e05a0602100757g719bbc28ta1a8d4738adfb50@mail.gmail.com> On 2/10/06, Rocky Smolin - Beach Access Software wrote: > Shamil: > > More than that I need to know where a sale came from (actually, knowing > the number of visitors generated from an affiliate would be interesting > but not really necessary). And since our order button links to PayPal, > this may be a problem. They may or may not complete the order there. > > Rocky May be a sort of pain, but if you changed your ordering process so they ordered it from your website first, and then the final step to complete the transaction was to go through paypal, you could tag the orders created on your site with the Affiliate ID. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From bchacc at san.rr.com Fri Feb 10 10:02:12 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 08:02:12 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <53c8e05a0602100757g719bbc28ta1a8d4738adfb50@mail.gmail.com> References: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk> <002801c62e56$758b81e0$6501a8c0@Nant> <43ECB54D.20105@san.rr.com> <53c8e05a0602100757g719bbc28ta1a8d4738adfb50@mail.gmail.com> Message-ID: <43ECB904.60808@san.rr.com> If they got to the PayPal site (where they actually put in their credit card) and bailed at that point would we have registered a sale to that affiliate but not made the sale? Rocky Josh McFarlane wrote: > On 2/10/06, Rocky Smolin - Beach Access Software wrote: > >> Shamil: >> >> More than that I need to know where a sale came from (actually, knowing >> the number of visitors generated from an affiliate would be interesting >> but not really necessary). And since our order button links to PayPal, >> this may be a problem. They may or may not complete the order there. >> >> Rocky >> > > May be a sort of pain, but if you changed your ordering process so > they ordered it from your website first, and then the final step to > complete the transaction was to go through paypal, you could tag the > orders created on your site with the Affiliate ID. > > -- > Josh McFarlane > > "Peace cannot be kept by force. It can only be achieved by understanding." > -Albert Einstein > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From carbonnb at gmail.com Fri Feb 10 10:10:51 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 10 Feb 2006 11:10:51 -0500 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <43ECB904.60808@san.rr.com> References: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk> <002801c62e56$758b81e0$6501a8c0@Nant> <43ECB54D.20105@san.rr.com> <53c8e05a0602100757g719bbc28ta1a8d4738adfb50@mail.gmail.com> <43ECB904.60808@san.rr.com> Message-ID: On 10/02/06, Rocky Smolin - Beach Access Software wrote: > If they got to the PayPal site (where they actually put in their credit > card) and bailed at that point would we have registered a sale to that > affiliate but not made the sale? Does PayPal give the purchaser a spot to add comments or referal/coupon codes? Maybe use that, and trust the user to enter it? -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From cfoust at infostatsystems.com Fri Feb 10 10:11:43 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Feb 2006 08:11:43 -0800 Subject: [AccessD] Basic Query Design Message-ID: It is when you're using them to populate a datagrid. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Thursday, February 09, 2006 1:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Basic Query Design Charlotte, Right you are! I used them for a fancy report in an ASP project I did last year. Very interesting capability. Hard to tell whether it's worth the effort versus multiple queries to form those mutliple recordsets. Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security Blog: http://TheTownCrank.blogspot.com On 2/9/06, Charlotte Foust wrote: > LOL Try the SQL for shaped recordsets sometime if you want to cause > headaches! ;o> > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > Erbach > Sent: Thursday, February 09, 2006 7:36 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Basic Query Design > > > Stuart, > > Hah! The guy that came up with it is a professor in the Computer > Science Dept. at UW-Parkside in Kenosha, WI...right in my neck of the > woods. After showing this method and explaining how it's derived in > detail, he wrote, "Imagine presenting this to undergrads who have just > a lecture or two of SQL under their belts. You DO get the chance to > talk about scoping of aliases..." > > Steve Erbach > Scientific Marketing > Neenah, WI > http://TheTownCrank.blogspot.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Feb 10 10:22:04 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 10 Feb 2006 19:22:04 +0300 Subject: [AccessD] OT: Affiliate Program References: <43EC386C.1090509@san.rr.com> <001e01c62e23$70d5ca30$6501a8c0@Nant> <43ECAE15.8010609@san.rr.com> Message-ID: <000801c62e5e$253bd700$6501a8c0@Nant> Rocky, I just made a simple test - created simple HTML page on one of my test sites: http://4auto.biz/apps/testAffilate.htm And from this web page made a link to http://www.smsconsulting.spb.ru/affilates/test.htm?ID=1 When I went through this test route I found the following HTTP log record in my logs: 10.1.1.181 - - [10/Feb/2006:18:28:57 +0300] "GET /affilates/test.htm?ID=1 HTTP/1.1" 304 - "http://4auto.biz/apps/testAffilate.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)" where: - 10.1.1.181 is my PC's IP address in the LAN of my ISP provider; - http://4auto.biz/apps/testAffilate.htm - the URL of the page, which generated this HTTP log record (for you it will be your affilate's URL); - GET /affilates/test.htm?ID=1 HTTP/1.1 - is the HTTP request generated by previous URL Now you have 10.1.1.181 linked to the info that it came from http://4auto.biz/apps/testAffilate.htm with ID=1 (ID defines your different products, which an affilate can sell from their site). The entered page on your site (/affilates/test.htm?ID=1 in my sample) should be a dynamic Web page generating the URL to follow with affilate and product Id and unique coupon ID as parameters to track your customer's activity until they order your software/service entering coupon Id on last step (the coupon ID could be also static and corresponding HTML page aslo static - then this coupon would be a unique ID for a given affilate/your software product.service pair)... You can then automatically analyze the activity of 10.1.1.181 in your HTTP log records and find that it will result in opening your order page and placing order for your software or getting subscription to your service using unique/fixed coupon Id - then you can pay your affilates for bringing a paying customer to your site... Maybe it can be done simpler - it is new territory for me too - I'm just thinking how it can be done... Shamil ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Cc: "rubin Naiman" Sent: Friday, February 10, 2006 6:15 PM Subject: Re: [AccessD] OT: Affiliate Program > Shamil: > > I wrote a crude app to parse the log files from my E-Z-MRP web site. I > put it up on www.e-z-mrp.com/ftpguest for you to download and take a > look. Maybe it will help. My purpose was just to do page counts and if > you look at the query 'qryCountsofMajorPagesByMonth' you'll see what I'm > using this app for. My log files look like the same format as yours. > > I always wondered what those extra fields were for. Can they be used > somehow to track sales? What we need is a way to know if someone went > to our site from her site, ended up on the order page and placed an > order. You can download the product from our site but most people place > an order for it to be shipped to them. Some of the info I've seen on > affiliate programs seems to indicate that they work with downloadable > products versus shippable. > > An alternative I was thinking about was to put some kind of coupon or > discount code on her site where people can link to us and have a place > on our order page where the buyer can key in the coupon or discount code > and modify the code to give the discount. This way we could set up > discount codes for different affiliates or put a discount coupon as an > insert in a publication. > > New territory for me. Hope the list will tolerate this bit of OT for a > few days. > > Thanks for the help. > > Regards, > > Rocky > > Shamil Salakhetdinov wrote: >> Rocky, >> >> Internet servers are usually able to keep raw logs of HTTP requests - >> these >> are seperate ASCII files and their records are well formatted and look >> like >> the sample log records from my site's today HTTP requests log in the >> P.S. >> of this message. >> >> I did plan for quite some time to write code to parse these records and >> to >> put them into database for further analysis but I didn't have good >> reasons >> to that for myself. >> >> Now, if nobody here will point on a ready to use solution then we can >> write, >> test and use such TCP/IP log parser together and when well done make >> it available on AccessD site for download... >> >> How about this idea? I can write some code for starters on weekend... >> >> Shamil >> >> P.S. HTTP requests sample log: >> >> 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET /robots.txt HTTP/1.1" >> 404 >> 297 "-" "findlinks/1.1.1-a1 >> (+http://wortschatz.uni-leipzig.de/findlinks/)" >> >> 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD /shamil_s HTTP/1.1" >> 301 - "-" "LWP::Simple/5.803" >> >> 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD /shamil_s/ HTTP/1.1" >> 200 - "-" "LWP::Simple/5.803" >> >> 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s HTTP/1.1" >> 301 >> 334 "http://www.jaja-jak-globusy.com/" "Poirot" >> >> ... >> >> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >> /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 >> "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 (compatible; MSIE >> 6.0; >> Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >> >> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >> /shamil_s/pics/pole2.gif >> HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >> (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >> >> ... >> >> 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET /robots.txt HTTP/1.0" >> 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; >> http://help.yahoo.com/help/us/ysearch/slurp)" >> >> 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET >> /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 >> (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" >> >> 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET >> /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 >> (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" >> >> ... >> >> ----- Original Message ----- >> From: "Rocky Smolin - Beach Access Software" >> To: "Access Developers discussion and problem solving" >> >> Sent: Friday, February 10, 2006 9:53 AM >> Subject: [AccessD] OT: Affiliate Program >> >> >> >>> Dear List: >>> >>> I have a web site where we are selling The Sleep Advisor >>> (www.thesleepadvisor.com). Someone with an alternative health site has >>> proposed to promote The Sleep Advisor on her site and send folks to our >>> site. She asks if we have an affiliate program. Which we ain't. >>> >>> I looked into it a bit and it doesn't look trivial. Basically we need a >>> way to know if someone visiting our site and buying The Sleep Advisor >>> originated from her site. We're hosted by Affinity and have Urchin >>> statistics but I don't see anything there that would be helpful right >>> off. >>> >>> Does anyone know a slick, quick way to do this? >>> >>> MTIA >>> >>> Rocky >>> >>> -- >>> Rocky Smolin >>> Beach Access Software >>> 858-259-4334 >>> www.e-z-mrp.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Feb 10 10:26:32 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 10 Feb 2006 19:26:32 +0300 Subject: [AccessD] OT: Affiliate Program References: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk><002801c62e56$758b81e0$6501a8c0@Nant> <43ECB54D.20105@san.rr.com> Message-ID: <001701c62e5e$c2a562e0$6501a8c0@Nant> <<< They may or may not complete the order there. >>> Yes, Rocky, but if the order coupon/Id (fixed for affilate/product pair or generated when customers enter your page via affilate's site) will be put in the next page after entry page URL as parameter and then entered when order is placed then you can use it to join HTTP log and your/paypal order database info.... Shamil ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Friday, February 10, 2006 6:46 PM Subject: Re: [AccessD] OT: Affiliate Program > Shamil: > > More than that I need to know where a sale came from (actually, knowing > the number of visitors generated from an affiliate would be interesting > but not really necessary). And since our order button links to PayPal, > this may be a problem. They may or may not complete the order there. > > Rocky > > > Shamil Salakhetdinov wrote: >> <<< >> >>> Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . >>> >> Yes, Chris my ISP collects/presents similar statistics for my site: >> >> http://www.smsconsulting.spb.ru/acclogs/hourly_usage_200601.png >> http://www.smsconsulting.spb.ru/acclogs/daily_usage_200601.png >> http://www.smsconsulting.spb.ru/acclogs/usage_200601.html8 >> >> But Rocky needs raw information to analyze his site activity generated by >> his affilate sites - I think such information can be extracted from HTTP >> log >> records but I don't know how this HTTP logging works in details. My guess >> is >> that the first entry via affilate site should have this site's identifier >> in >> URL, which can be extracted and linked with all the following activity of >> the IP address presented as the first element of the entry log record... >> >> Shamil >> >> ----- Original Message ----- >> From: "Foote, Chris" >> To: "'Access Developers discussion and problem solving'" >> >> Sent: Friday, February 10, 2006 12:57 PM >> Subject: Re: [AccessD] OT: Affiliate Program >> >> >> >>> Interesting project! >>> >>> I too had considered such a project in the past, but was daunted by the >>> complexity. >>> >>> My web hosting company (DSVR) supports a product called Webalizer. This >>> is >>> a >>> server-side (PERL?) jobbie that analyses log files. >>> >>> Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . >>> >>> Regards! >>> Chris Foote >>> >>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Shamil >>>> Salakhetdinov >>>> Sent: Friday, February 10, 2006 9:22 AM >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] OT: Affiliate Program >>>> >>>> >>>> Rocky, >>>> >>>> Internet servers are usually able to keep raw logs of HTTP >>>> requests - these >>>> are seperate ASCII files and their records are well formatted >>>> and look like >>>> the sample log records from my site's today HTTP requests >>>> log in the P.S. >>>> of this message. >>>> >>>> I did plan for quite some time to write code to parse these >>>> records and to >>>> put them into database for further analysis but I didn't have >>>> good reasons >>>> to that for myself. >>>> >>>> Now, if nobody here will point on a ready to use solution >>>> then we can write, >>>> test and use such TCP/IP log parser together and when well done make >>>> it available on AccessD site for download... >>>> >>>> How about this idea? I can write some code for starters on weekend... >>>> >>>> Shamil >>>> >>>> P.S. HTTP requests sample log: >>>> >>>> 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET >>>> /robots.txt HTTP/1.1" 404 >>>> 297 "-" "findlinks/1.1.1-a1 >>>> (+http://wortschatz.uni-leipzig.de/findlinks/)" >>>> >>>> 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD >>>> /shamil_s HTTP/1.1" >>>> 301 - "-" "LWP::Simple/5.803" >>>> >>>> 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD >>>> /shamil_s/ HTTP/1.1" >>>> 200 - "-" "LWP::Simple/5.803" >>>> >>>> 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s >>>> HTTP/1.1" 301 >>>> 334 "http://www.jaja-jak-globusy.com/" "Poirot" >>>> >>>> ... >>>> >>>> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >>>> /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 >>>> "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >>>> (compatible; MSIE 6.0; >>>> Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >>>> >>>> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >>>> /shamil_s/pics/pole2.gif >>>> HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >>>> (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >>>> >>>> ... >>>> >>>> 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET >>>> /robots.txt HTTP/1.0" >>>> 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; >>>> http://help.yahoo.com/help/us/ysearch/slurp)" >>>> >>>> 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET >>>> /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 >>>> (compatible; Yahoo! Slurp; >>>> >>> http://help.yahoo.com/help/us/ysearch/slurp)" >>> >>> 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET >>> /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 >>> (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" >>> >>> ... >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Feb 10 10:31:52 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 08:31:52 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: References: <7303A459C921B5499AF732CCEEAD2B7F3E6BA5@craws161660.int.rdel.co.uk> <002801c62e56$758b81e0$6501a8c0@Nant> <43ECB54D.20105@san.rr.com> <53c8e05a0602100757g719bbc28ta1a8d4738adfb50@mail.gmail.com> <43ECB904.60808@san.rr.com> Message-ID: <43ECBFF8.2040406@san.rr.com> That's what I'm thinking now. Free first class mail shipping or maybe $5 discount. Rocky Bryan Carbonnell wrote: > On 10/02/06, Rocky Smolin - Beach Access Software wrote: > >> If they got to the PayPal site (where they actually put in their credit >> card) and bailed at that point would we have registered a sale to that >> affiliate but not made the sale? >> > > Does PayPal give the purchaser a spot to add comments or referal/coupon codes? > > Maybe use that, and trust the user to enter it? > > -- > Bryan Carbonnell - carbonnb at gmail.com > Life's journey is not to arrive at the grave safely in a well > preserved body, but rather to skid in sideways, totally worn out, > shouting "What a great ride!" > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dwaters at usinternet.com Fri Feb 10 10:32:05 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 10 Feb 2006 10:32:05 -0600 Subject: [AccessD] Case Is = Null ?? Message-ID: <000401c62e5f$8766a620$0200a8c0@danwaters> I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan From bchacc at san.rr.com Fri Feb 10 10:37:31 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 08:37:31 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <000801c62e5e$253bd700$6501a8c0@Nant> References: <43EC386C.1090509@san.rr.com> <001e01c62e23$70d5ca30$6501a8c0@Nant> <43ECAE15.8010609@san.rr.com> <000801c62e5e$253bd700$6501a8c0@Nant> Message-ID: <43ECC14B.9050001@san.rr.com> Shamil: Will this work for non-static IP addresses? (Is that the right question?) My IP address on someone else's web site is actually my ISP's. I think. Second, we don't have our own order page. We use PayPal and avoided the whole gateway company interface thing. (PayPal takes about the same cut as a gateway company). So would this create a problem? I'm leaning now towards a coupon or discount code that we can save in the sales record which would give free shipping or $5 off and that would enable us to link a specific sale to an affiliate and also support multiple affiliates with different codes plus a unique discount code if we ran an ad or put a flyer into some publication. Rocky Shamil Salakhetdinov wrote: > Rocky, > > I just made a simple test - created simple HTML page on one of my test > sites: > > http://4auto.biz/apps/testAffilate.htm > > And from this web page made a link to > > http://www.smsconsulting.spb.ru/affilates/test.htm?ID=1 > > When I went through this test route I found the following HTTP log record in > my logs: > > 10.1.1.181 - - [10/Feb/2006:18:28:57 +0300] "GET /affilates/test.htm?ID=1 > HTTP/1.1" 304 - "http://4auto.biz/apps/testAffilate.htm" "Mozilla/4.0 > (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR > 2.0.50727)" > > where: > > - 10.1.1.181 is my PC's IP address in the LAN of my ISP provider; > - http://4auto.biz/apps/testAffilate.htm - the URL of the page, which > generated this HTTP log record (for you it will be your affilate's URL); > - GET /affilates/test.htm?ID=1 HTTP/1.1 - is the HTTP request generated by > previous URL > > Now you have 10.1.1.181 linked to the info that it came from > http://4auto.biz/apps/testAffilate.htm with ID=1 (ID defines your different > products, which an affilate can sell from their site). > > The entered page on your site (/affilates/test.htm?ID=1 in my sample) should > be a dynamic Web page generating the URL to follow with affilate and product > Id and unique coupon ID as parameters to track your customer's activity > until they order your software/service entering coupon Id on last step (the > coupon ID could be also static and corresponding HTML page aslo static - > then this coupon would be a unique ID for a given affilate/your software > product.service pair)... > > You can then automatically analyze the activity of 10.1.1.181 in your HTTP > log records and find that it will result in opening your order page and > placing order for your software or getting subscription to your service > using unique/fixed coupon Id - then you can pay your affilates for bringing > a paying customer to your site... > > Maybe it can be done simpler - it is new territory for me too - I'm just > thinking how it can be done... > > Shamil > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: "Access Developers discussion and problem solving" > > Cc: "rubin Naiman" > Sent: Friday, February 10, 2006 6:15 PM > Subject: Re: [AccessD] OT: Affiliate Program > > > >> Shamil: >> >> I wrote a crude app to parse the log files from my E-Z-MRP web site. I >> put it up on www.e-z-mrp.com/ftpguest for you to download and take a >> look. Maybe it will help. My purpose was just to do page counts and if >> you look at the query 'qryCountsofMajorPagesByMonth' you'll see what I'm >> using this app for. My log files look like the same format as yours. >> >> I always wondered what those extra fields were for. Can they be used >> somehow to track sales? What we need is a way to know if someone went >> to our site from her site, ended up on the order page and placed an >> order. You can download the product from our site but most people place >> an order for it to be shipped to them. Some of the info I've seen on >> affiliate programs seems to indicate that they work with downloadable >> products versus shippable. >> >> An alternative I was thinking about was to put some kind of coupon or >> discount code on her site where people can link to us and have a place >> on our order page where the buyer can key in the coupon or discount code >> and modify the code to give the discount. This way we could set up >> discount codes for different affiliates or put a discount coupon as an >> insert in a publication. >> >> New territory for me. Hope the list will tolerate this bit of OT for a >> few days. >> >> Thanks for the help. >> >> Regards, >> >> Rocky >> >> Shamil Salakhetdinov wrote: >> >>> Rocky, >>> >>> Internet servers are usually able to keep raw logs of HTTP requests - >>> these >>> are seperate ASCII files and their records are well formatted and look >>> like >>> the sample log records from my site's today HTTP requests log in the >>> P.S. >>> of this message. >>> >>> I did plan for quite some time to write code to parse these records and >>> to >>> put them into database for further analysis but I didn't have good >>> reasons >>> to that for myself. >>> >>> Now, if nobody here will point on a ready to use solution then we can >>> write, >>> test and use such TCP/IP log parser together and when well done make >>> it available on AccessD site for download... >>> >>> How about this idea? I can write some code for starters on weekend... >>> >>> Shamil >>> >>> P.S. HTTP requests sample log: >>> >>> 139.18.2.214 - - [10/Feb/2006:00:04:09 +0300] "GET /robots.txt HTTP/1.1" >>> 404 >>> 297 "-" "findlinks/1.1.1-a1 >>> (+http://wortschatz.uni-leipzig.de/findlinks/)" >>> >>> 70.85.193.178 - - [10/Feb/2006:00:05:57 +0300] "HEAD /shamil_s HTTP/1.1" >>> 301 - "-" "LWP::Simple/5.803" >>> >>> 70.85.193.178 - - [10/Feb/2006:00:06:00 +0300] "HEAD /shamil_s/ HTTP/1.1" >>> 200 - "-" "LWP::Simple/5.803" >>> >>> 70.85.193.178 - - [10/Feb/2006:00:06:03 +0300] "GET /shamil_s HTTP/1.1" >>> 301 >>> 334 "http://www.jaja-jak-globusy.com/" "Poirot" >>> >>> ... >>> >>> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >>> /shamil_s/pics/clearday.jpg HTTP/1.1" 200 5675 >>> "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 (compatible; MSIE >>> 6.0; >>> Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >>> >>> 70.78.74.47 - - [10/Feb/2006:05:33:36 +0300] "GET >>> /shamil_s/pics/pole2.gif >>> HTTP/1.1" 200 226 "http://smsconsulting.spb.ru/shamil_s/" "Mozilla/4.0 >>> (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" >>> >>> ... >>> >>> 68.142.249.46 - - [10/Feb/2006:11:31:19 +0300] "GET /robots.txt HTTP/1.0" >>> 404 297 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; >>> http://help.yahoo.com/help/us/ysearch/slurp)" >>> >>> 68.142.251.104 - - [10/Feb/2006:11:31:20 +0300] "GET >>> /.net/tutorials/vb.net/ncm.htm HTTP/1.0" 200 37707 "-" "Mozilla/5.0 >>> (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" >>> >>> 68.142.250.147 - - [10/Feb/2006:11:34:21 +0300] "GET >>> /shamil_s/topics/tstmodex.htm HTTP/1.0" 200 3088 "-" "Mozilla/5.0 >>> (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)" >>> >>> ... >>> >>> ----- Original Message ----- >>> From: "Rocky Smolin - Beach Access Software" >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Friday, February 10, 2006 9:53 AM >>> Subject: [AccessD] OT: Affiliate Program >>> >>> >>> >>> >>>> Dear List: >>>> >>>> I have a web site where we are selling The Sleep Advisor >>>> (www.thesleepadvisor.com). Someone with an alternative health site has >>>> proposed to promote The Sleep Advisor on her site and send folks to our >>>> site. She asks if we have an affiliate program. Which we ain't. >>>> >>>> I looked into it a bit and it doesn't look trivial. Basically we need a >>>> way to know if someone visiting our site and buying The Sleep Advisor >>>> originated from her site. We're hosted by Affinity and have Urchin >>>> statistics but I don't see anything there that would be helpful right >>>> off. >>>> >>>> Does anyone know a slick, quick way to do this? >>>> >>>> MTIA >>>> >>>> Rocky >>>> >>>> -- >>>> Rocky Smolin >>>> Beach Access Software >>>> 858-259-4334 >>>> www.e-z-mrp.com >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> >>> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From spikee at oatlandspark.org.uk Fri Feb 10 10:44:09 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Fri, 10 Feb 2006 16:44:09 -0000 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <002801c62e56$758b81e0$6501a8c0@Nant> Message-ID: <200602101644.k1AGi8C01301@databaseadvisors.com> Absolutely Shamil, but if you look at one of the link pages for the months, say > http://emmajohnstoneceramics.com/usage/usage_200602.html towards the bottom, there's a table of "Referrers". As this is plain HTML, this could be extracted. Regards! Chris F -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: 10 February 2006 15:27 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Affiliate Program <<< > Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . >>> Yes, Chris my ISP collects/presents similar statistics for my site: http://www.smsconsulting.spb.ru/acclogs/hourly_usage_200601.png http://www.smsconsulting.spb.ru/acclogs/daily_usage_200601.png http://www.smsconsulting.spb.ru/acclogs/usage_200601.html8 But Rocky needs raw information to analyze his site activity generated by his affilate sites - I think such information can be extracted from HTTP log records but I don't know how this HTTP logging works in details. My guess is that the first entry via affilate site should have this site's identifier in URL, which can be extracted and linked with all the following activity of the IP address presented as the first element of the entry log record... Shamil ----- Original Message ----- From: "Foote, Chris" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 10, 2006 12:57 PM Subject: Re: [AccessD] OT: Affiliate Program > Interesting project! > > I too had considered such a project in the past, but was daunted by the > complexity. > > My web hosting company (DSVR) supports a product called Webalizer. This is > a > server-side (PERL?) jobbie that analyses log files. > > Feel free to have a look at http://emmajohnstoneceramics.com/usage/ . > > Regards! > Chris Foote From jeffrey.demulling at usbank.com Fri Feb 10 10:40:54 2006 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Fri, 10 Feb 2006 10:40:54 -0600 Subject: [AccessD] Case Is = Null ?? In-Reply-To: <000401c62e5f$8766a620$0200a8c0@danwaters> Message-ID: Case IsNull or Case Is Null ' not sure which one. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] Case Is = Null ?? 02/10/2006 10:32 AM Please respond to "Access Developers discussion and problem solving" I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== From jwcolby at ColbyConsulting.com Fri Feb 10 10:47:22 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Fri, 10 Feb 2006 11:47:22 -0500 Subject: [AccessD] Inserting text in a word document Message-ID: <005101c62e61$aa66d850$647aa8c0@ColbyM6805> Does anyone have code to insert lines of text in a word document at a bookmark? John W. Colby www.ColbyConsulting.com From andy at minstersystems.co.uk Fri Feb 10 10:49:05 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 10 Feb 2006 16:49:05 +0000 Subject: [AccessD] Case Is = Null ?? Message-ID: <20060210164902.68DE62593A4@smtp.nildram.co.uk> Hi Dan I'm probably about to be proved wrong but I don't know that you can handle a Null within a Case statement. I'd handle it outside, ie If IsNull(var) then Else Select Case var .. Be interested to see if anyone knows otherwise. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "AccessD" Subject: [AccessD] Case Is = Null ?? Date: 10/02/06 16:34 I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From Gustav at cactus.dk Fri Feb 10 10:52:55 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Feb 2006 17:52:55 +0100 Subject: [AccessD] Case Is = Null ?? Message-ID: Hi Dan Move it to the Case Else section: Select Case varTest Case n Case y Case Else If IsNull(varTest) Then ' Null Else ' Not Null End If End Select /gustav >>> dwaters at usinternet.com 10-02-2006 17:32:05 >>> I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan From jimdettman at earthlink.net Fri Feb 10 10:54:32 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 10 Feb 2006 11:54:32 -0500 Subject: [AccessD] Inserting text in a word document In-Reply-To: <005101c62e61$aa66d850$647aa8c0@ColbyM6805> Message-ID: John The code snippets below insert data from a record set. Jim. Const pelFldWWBookmark = 0 Const pelFldAccessField = 1 Const pelFldWWFont = 2 Const pelFldWWPoints = 3 Const pelFldWWBold = 4 Const pelFldWWItalics = 5 Const pelFldWWUnderline = 6 Const pelWordMacroRun = 1 Const pelWordFileCloseNoSave = 2 ' Begin Automation conversation with Word ' Don't need to intialize mobjWord if it already points to Word If mobjWord Is Nothing Then On Error Resume Next Set mobjWord = GetObject(, "Word.Application") If Err <> 0 Then Err = 0 Set mobjWord = CreateObject("Word.Application") End If If Err <> 0 Then MsgBox "Error: Word Automation object could not be created.", vbCritical + vbOKOnly, strProc GoTo AutomateWordDone End If On Error GoTo AutomateWordErr End If ' Create a new document for each data record. Do While Not rstData.EOF mobjWord.WordBasic.FileOpen varDocAndPath ' Send data, if any, over to document and format it If varSendFields Then ' Move through tblAutoFields row by row ' and send over data to document For intJ = 0 To intFieldsRecLim - 1 ' Jump to bookmark mobjWord.Selection.GoTo What:=wdGoToBookmark, Name:=avarFields(pelFldWWBookmark, intJ) ' Format the font per field specification mobjWord.WordBasic.FormatFont avarFields(pelFldWWPoints, intJ), IIf(avarFields(pelFldWWUnderline, intJ), 1, 0), , , , , , , , , , , , , , avarFields(pelFldWWFont, intJ), IIf(avarFields(pelFldWWBold, intJ), 1, 0), IIf(avarFields(pelFldWWItalics, intJ), 1, 0) ' Insert the data at the bookmark mobjWord.WordBasic.INSERT pelNullToZLS(rstData(avarFields(pelFldAccessField, intJ))) Next intJ End If ' varSendFields Debug.Print "Loaded and formatted data for " & rstData.[Name] ' Print the document, if required ' Otherwise shift focus to document for user edit If varDocPrint Then ' Print the document if required ' Use a Print Macro if one has been specified DoEvents If IsNull(varDocMacroPrint) Then mobjWord.WordBasic.FilePrint , , , , , , , pelNullToZLS(varCopies) Else mobjWord.WordBasic.ToolsMacro varDocMacroPrint, pelWordMacroRun End If Debug.Print "Printed document" End If DoEvents DoEvents If varDocPrint Then mobjWord.WordBasic.FileClose pelWordFileCloseNoSave Debug.Print "Executed File Close" DoEvents DoEvents End If ' If requested as one record only, ' it's time to bail out! If fOneRec Then Exit Do Else rstData.MoveNext End If Loop rstData.Close Set rstData = Nothing -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Friday, February 10, 2006 11:47 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Inserting text in a word document Does anyone have code to insert lines of text in a word document at a bookmark? 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 andy at minstersystems.co.uk Fri Feb 10 10:58:56 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 10 Feb 2006 16:58:56 +0000 Subject: [AccessD] Case Is = Null ?? Message-ID: <20060210165853.42DDB2542D0@smtp.nildram.co.uk> Neither of those works, and nor does Case Is = Null. Simple test function. Function CaseNull() Dim var As Variant var = Null Select Case var Case Is = Null 'The line in question MsgBox "Null" Case Else MsgBox "Not Null" End Select End Function I can't find anything to put in the line in question that gives me a message of "Null". IsNull and Is Null both error. Is = Null just doesn't work. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Case Is = Null ?? Date: 10/02/06 16:45 Case IsNull or Case Is Null ' not sure which one. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] Case Is = Null ?? 02/10/2006 10:32 AM Please respond to "Access Developers discussion and problem solving" I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== -- 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 Fri Feb 10 11:06:44 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Feb 2006 09:06:44 -0800 Subject: [AccessD] Case Is = Null ?? Message-ID: You cannot do comparisons with Null. NOTHING is equal to null. You could do a Select Case Isnull(var) with True and Else cases and then handle the situations within each branch. Select Case Isnull(var) Case True Msgbox "Null Case Else Msgbox "Not Null" End Select Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, February 10, 2006 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? Neither of those works, and nor does Case Is = Null. Simple test function. Function CaseNull() Dim var As Variant var = Null Select Case var Case Is = Null 'The line in question MsgBox "Null" Case Else MsgBox "Not Null" End Select End Function I can't find anything to put in the line in question that gives me a message of "Null". IsNull and Is Null both error. Is = Null just doesn't work. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Case Is = Null ?? Date: 10/02/06 16:45 Case IsNull or Case Is Null ' not sure which one. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] Case Is = Null ?? 02/10/2006 10:32 AM Please respond to "Access Developers discussion and problem solving" I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------ ------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ======================================================================== ====== -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lmrazek at lcm-res.com Fri Feb 10 11:17:37 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Fri, 10 Feb 2006 11:17:37 -0600 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <43ECB4B2.6020209@san.rr.com> Message-ID: <02ce01c62e65$e3f1ff60$036fa8c0@hplaptop> Rocky: Are you using "classic" PayPal or PayPal Payments Pro? If you're using classic, then this is a bit of a problem, since not everyone clicks on the "return to store" button to return to your site (you could have the handling code on your landing page). Do you generate an order or customer record before going to PayPal? If so, then you could update the record before they go to PayPal. Have you checked out other payment gateways such as Authorize.Net? I've seen some resellers advertise them at 25/month + trans fees ... Their advantage is that your customer stays on your site. PayPal Pro Payments is similar in price and capabilities, but is much harder to implement AND they have an extemely strict validation routine, which occassionally reject valid CC's because of problems with the address (str instead of Street for example). Let me know if you have any questions. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -----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 10, 2006 9:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Affiliate Program Larry: We use PayPal for ordering. When they click on the Order Button they go to the paypal page where they may or may not complete the order. Does this make the cookie approach problematical? TIA Rocky Lawrence Mrazek wrote: > Hi Rocky: > > If she is constructing the links, could she add a query string to the > URL > (EX: http://www.thesleepadvisor.com/index.asp?AffiliateID=1)? > Depending on your server model, then you could add code to > automatically detect the query string and log it to a database/session > variable/cookie (using server side code). Then on a successful order, > your system looks for the db value/session variable/cookie and adds it to the order record. > > Hope this helps. > > Larry Mrazek > LCM Research, Inc. > www.lcm-res.com > lmrazek at lcm-res.com > ph. 314-432-5886 > fx. 314-432-3304 > > -----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 10, 2006 12:54 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT: Affiliate Program > > Dear List: > > I have a web site where we are selling The Sleep Advisor > (www.thesleepadvisor.com). Someone with an alternative health site > has proposed to promote The Sleep Advisor on her site and send folks > to our site. She asks if we have an affiliate program. Which we ain't. > > I looked into it a bit and it doesn't look trivial. Basically we need > a way to know if someone visiting our site and buying The Sleep > Advisor originated from her site. We're hosted by Affinity and have > Urchin statistics but I don't see anything there that would be helpful right off. > > Does anyone know a slick, quick way to do this? > > MTIA > > Rocky > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Feb 10 11:37:57 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 09:37:57 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <02ce01c62e65$e3f1ff60$036fa8c0@hplaptop> References: <02ce01c62e65$e3f1ff60$036fa8c0@hplaptop> Message-ID: <43ECCF75.9080708@san.rr.com> Larry: I actually don't know which version we're using. I'll find out. We almost went with Affinity but PayPal seemed so much easier. Rocky Lawrence Mrazek wrote: > Rocky: > > Are you using "classic" PayPal or PayPal Payments Pro? If you're using > classic, then this is a bit of a problem, since not everyone clicks on the > "return to store" button to return to your site (you could have the handling > code on your landing page). > > Do you generate an order or customer record before going to PayPal? If so, > then you could update the record before they go to PayPal. > > Have you checked out other payment gateways such as Authorize.Net? I've seen > some resellers advertise them at 25/month + trans fees ... Their advantage > is that your customer stays on your site. PayPal Pro Payments is similar in > price and capabilities, but is much harder to implement AND they have an > extemely strict validation routine, which occassionally reject valid CC's > because of problems with the address (str instead of Street for example). > > Let me know if you have any questions. > > Larry Mrazek > LCM Research, Inc. > www.lcm-res.com > lmrazek at lcm-res.com > ph. 314-432-5886 > fx. 314-432-3304 > > -----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 10, 2006 9:44 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Affiliate Program > > Larry: > > We use PayPal for ordering. When they click on the Order Button they go to > the paypal page where they may or may not complete the order. Does this > make the cookie approach problematical? > > TIA > > Rocky > > > Lawrence Mrazek wrote: > >> Hi Rocky: >> >> If she is constructing the links, could she add a query string to the >> URL >> (EX: http://www.thesleepadvisor.com/index.asp?AffiliateID=1)? >> Depending on your server model, then you could add code to >> automatically detect the query string and log it to a database/session >> variable/cookie (using server side code). Then on a successful order, >> your system looks for the db value/session variable/cookie and adds it to >> > the order record. > >> Hope this helps. >> >> Larry Mrazek >> LCM Research, Inc. >> www.lcm-res.com >> lmrazek at lcm-res.com >> ph. 314-432-5886 >> fx. 314-432-3304 >> >> -----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 10, 2006 12:54 AM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] OT: Affiliate Program >> >> Dear List: >> >> I have a web site where we are selling The Sleep Advisor >> (www.thesleepadvisor.com). Someone with an alternative health site >> has proposed to promote The Sleep Advisor on her site and send folks >> to our site. She asks if we have an affiliate program. Which we ain't. >> >> I looked into it a bit and it doesn't look trivial. Basically we need >> a way to know if someone visiting our site and buying The Sleep >> Advisor originated from her site. We're hosted by Affinity and have >> Urchin statistics but I don't see anything there that would be helpful >> > right off. > >> Does anyone know a slick, quick way to do this? >> >> MTIA >> >> Rocky >> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dwaters at usinternet.com Fri Feb 10 11:45:06 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 10 Feb 2006 11:45:06 -0600 Subject: [AccessD] Case Is = Null ?? - Answered! In-Reply-To: <5017987.1139591729644.JavaMail.root@sniper14> Message-ID: <000401c62e69$bb3abb30$0200a8c0@danwaters> Thanks to everyone! Charlotte - your suggestion looks good! I can nest another Select Case when the expression is not null. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? You cannot do comparisons with Null. NOTHING is equal to null. You could do a Select Case Isnull(var) with True and Else cases and then handle the situations within each branch. Select Case Isnull(var) Case True Msgbox "Null Case Else Msgbox "Not Null" End Select Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, February 10, 2006 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? Neither of those works, and nor does Case Is = Null. Simple test function. Function CaseNull() Dim var As Variant var = Null Select Case var Case Is = Null 'The line in question MsgBox "Null" Case Else MsgBox "Not Null" End Select End Function I can't find anything to put in the line in question that gives me a message of "Null". IsNull and Is Null both error. Is = Null just doesn't work. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Case Is = Null ?? Date: 10/02/06 16:45 Case IsNull or Case Is Null ' not sure which one. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] Case Is = Null ?? 02/10/2006 10:32 AM Please respond to "Access Developers discussion and problem solving" I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------ ------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ======================================================================== ====== -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Fri Feb 10 12:19:35 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 10 Feb 2006 13:19:35 -0500 Subject: [AccessD] Inserting text in a word document In-Reply-To: References: <005101c62e61$aa66d850$647aa8c0@ColbyM6805> Message-ID: On 10/02/06, Jim Dettman wrote: > mobjWord.WordBasic.INSERT > pelNullToZLS(rstData(avarFields(pelFldAccessField, intJ))) Ick!!! WordBasic!!!! John, Here is a little chunk that should do it for you: Dim doc As Word.Document Dim rng As Word.Range Set rng = doc.Bookmarks("MyBookmarkName").Range rng.InsertAfter "This text gets inserted after the bookmark" -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From Lambert.Heenan at AIG.com Fri Feb 10 12:23:50 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 10 Feb 2006 13:23:50 -0500 Subject: [AccessD] Case Is = Null ?? - Answered! Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1D2883D6@xlivmbx21.aig.com> Or, you can do this... Select Case var & "" ' above line adds an empty string to our variant variable. This will turn Nulls in to empty strings, which you can test for. Case "" ' do whatever you need for a Null Case "AnotherValue" ' code Case "YetAnotherValue" ' more code End Select So only one Select Case statement needed. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 10, 2006 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Thanks to everyone! Charlotte - your suggestion looks good! I can nest another Select Case when the expression is not null. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? You cannot do comparisons with Null. NOTHING is equal to null. You could do a Select Case Isnull(var) with True and Else cases and then handle the situations within each branch. Select Case Isnull(var) Case True Msgbox "Null Case Else Msgbox "Not Null" End Select Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, February 10, 2006 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? Neither of those works, and nor does Case Is = Null. Simple test function. Function CaseNull() Dim var As Variant var = Null Select Case var Case Is = Null 'The line in question MsgBox "Null" Case Else MsgBox "Not Null" End Select End Function I can't find anything to put in the line in question that gives me a message of "Null". IsNull and Is Null both error. Is = Null just doesn't work. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Case Is = Null ?? Date: 10/02/06 16:45 Case IsNull or Case Is Null ' not sure which one. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] Case Is = Null ?? 02/10/2006 10:32 AM Please respond to "Access Developers discussion and problem solving" I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------ ------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ======================================================================== ====== -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Feb 10 12:29:18 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Feb 2006 10:29:18 -0800 Subject: [AccessD] Case Is = Null ?? - Answered! Message-ID: But that doesn't tell you if the variable was null, only that it could have been either null or a zero length string to start with. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 10, 2006 10:24 AM To: 'Access Developers discussion and problem solving' Cc: 'Dan Waters' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Or, you can do this... Select Case var & "" ' above line adds an empty string to our variant variable. This will turn Nulls in to empty strings, which you can test for. Case "" ' do whatever you need for a Null Case "AnotherValue" ' code Case "YetAnotherValue" ' more code End Select So only one Select Case statement needed. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 10, 2006 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Thanks to everyone! Charlotte - your suggestion looks good! I can nest another Select Case when the expression is not null. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? You cannot do comparisons with Null. NOTHING is equal to null. You could do a Select Case Isnull(var) with True and Else cases and then handle the situations within each branch. Select Case Isnull(var) Case True Msgbox "Null Case Else Msgbox "Not Null" End Select Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, February 10, 2006 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? Neither of those works, and nor does Case Is = Null. Simple test function. Function CaseNull() Dim var As Variant var = Null Select Case var Case Is = Null 'The line in question MsgBox "Null" Case Else MsgBox "Not Null" End Select End Function I can't find anything to put in the line in question that gives me a message of "Null". IsNull and Is Null both error. Is = Null just doesn't work. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Case Is = Null ?? Date: 10/02/06 16:45 Case IsNull or Case Is Null ' not sure which one. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] Case Is = Null ?? 02/10/2006 10:32 AM Please respond to "Access Developers discussion and problem solving" I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------ ------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ======================================================================== ====== -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From boogieloogie at gmail.com Fri Feb 10 12:56:20 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Fri, 10 Feb 2006 14:56:20 -0400 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <43EC386C.1090509@san.rr.com> References: <43EC386C.1090509@san.rr.com> Message-ID: <3bf43ee90602101056i72b440dbk4bb0fb7040d435f8@mail.gmail.com> try http://www.softservice.org/products_affiliatepro.html There is an online demo and it costs $49.00 BL On 2/10/06, Rocky Smolin - Beach Access Software wrote: > > Dear List: > > I have a web site where we are selling The Sleep Advisor > (www.thesleepadvisor.com). Someone with an alternative health site has > proposed to promote The Sleep Advisor on her site and send folks to our > site. She asks if we have an affiliate program. Which we ain't. > > I looked into it a bit and it doesn't look trivial. Basically we need a > way to know if someone visiting our site and buying The Sleep Advisor > originated from her site. We're hosted by Affinity and have Urchin > statistics but I don't see anything there that would be helpful right off. > > Does anyone know a slick, quick way to do this? > > MTIA > > Rocky > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwelz at hotmail.com Fri Feb 10 13:02:40 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Fri, 10 Feb 2006 12:02:40 -0700 Subject: [AccessD] Inserting text in a word document In-Reply-To: Message-ID: Ditto on WordBasic I often protect documents for formfields so insertafter doesn't work if you set the bookmark property for a Word textbox field. This lets me set default values in a form. owdDoc.Bookmarks("ProjectName").Select owdApp.Selection.Text = strProjectName where owdDoc is an object variable pointing to a Word.Document and owdApp is an object variable pointing to an instance of Word in which the Document is open. My system sends a collection of data elements from one or more recordsets using a key matching the first portion of the bookmark name up to a delimiter. The balance of the bookmark name determines formatting properties. A second delimited part of the bookmark name allows bookmarks drawing from the same data collection item to write to multiple bookmarks (you can't have more than one bookmark with the same name in a document). This way, the document controls the formatting of the data. In some documents you may want "Wednesday, the 4th day of September) where as other documents are fine with "9/4/2006". Also, if a field, like a person's name appears more than once, "John;", "John;1" and "John;2" can all pull the collecion 'John' item. I iterate the Document's bookmark collection and throw the matching collection item at the bookmark. Generally I use a recordset's field name or alias as the collection key. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Bryan Carbonnell >On 10/02/06, Jim Dettman wrote: > > > mobjWord.WordBasic.INSERT > > pelNullToZLS(rstData(avarFields(pelFldAccessField, intJ))) > > >Ick!!! WordBasic!!!! > >John, > >Here is a little chunk that should do it for you: > >Dim doc As Word.Document >Dim rng As Word.Range > >Set rng = doc.Bookmarks("MyBookmarkName").Range > >rng.InsertAfter "This text gets inserted after the bookmark" > >-- >Bryan Carbonnell - carbonnb at gmail.com From jwelz at hotmail.com Fri Feb 10 13:06:05 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Fri, 10 Feb 2006 12:06:05 -0700 Subject: [AccessD] Basic Query Design In-Reply-To: <001f01c62e21$c2472a00$017ba8c0@xpserver> Message-ID: Thanks Steve/Stuart I'll run some performance testing this weekend on my original method and the two alternate solutions. I'll post results Monday. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Jim Lawrence > >One note: Would this query allow the user to go for coffee while waiting >for >the results? 'Sub queries' and 'not exists' has certain reputations? > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan >Sent: February 8, 2006 7:04 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Basic Query Design > >On 8 Feb 2006 at 20:36, Steve Erbach wrote: > > > SELECT DISTINCT EmployeeID > > FROM tblEmployeeCourse AS EC1 > > WHERE NOT EXISTS > > ( SELECT CourseID FROM tblCourse > > WHERE CourseID In (1,2,4,5) AND NOT EXISTS > > ( SELECT * FROM tblEmployeeCourse AS EC2 > > WHERE EC2.CourseID = tblCourse.CourseID > > AND EC2.EmployeeID = EC1.EmployeeID)) > > > >Ouch! My head hurts! > >-- >Stuart From erbachs at gmail.com Fri Feb 10 13:27:52 2006 From: erbachs at gmail.com (Steve Erbach) Date: Fri, 10 Feb 2006 13:27:52 -0600 Subject: [AccessD] Basic Query Design In-Reply-To: References: Message-ID: <39cb22f30602101127j33881a7dm88286d10147d3676@mail.gmail.com> Charlotte, Well, of course, now that you say that, it makes perfect sense. Why redo multiple "hierarchical" queries to generate recordsets in a loop...when you can do one SHAPE query and get all the data at once? Steve Erbach Neenah, WI On 2/10/06, Charlotte Foust wrote: > It is when you're using them to populate a datagrid. > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, February 09, 2006 1:48 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Basic Query Design > > > Charlotte, > > Right you are! I used them for a fancy report in an ASP project I did > last year. Very interesting capability. Hard to tell whether it's > worth the effort versus multiple queries to form those mutliple > recordsets. > > Regards, > > Steve Erbach From bchacc at san.rr.com Fri Feb 10 13:30:39 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 10 Feb 2006 11:30:39 -0800 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <3bf43ee90602101056i72b440dbk4bb0fb7040d435f8@mail.gmail.com> References: <43EC386C.1090509@san.rr.com> <3bf43ee90602101056i72b440dbk4bb0fb7040d435f8@mail.gmail.com> Message-ID: <43ECE9DF.7080904@san.rr.com> BL: I looked at that and it looked good. Do you have any experience with it? Something that I was uncertain about with that program is that we need to record sales, not page hits, and we're using PayPal for payment and so paypal would have to 'talk' to this package to tell it when it made a sale and who it came from. TIA Rocky Boogie Loogie wrote: > try > > http://www.softservice.org/products_affiliatepro.html > > There is an online demo and it costs $49.00 > > BL > > On 2/10/06, Rocky Smolin - Beach Access Software wrote: > >> Dear List: >> >> I have a web site where we are selling The Sleep Advisor >> (www.thesleepadvisor.com). Someone with an alternative health site has >> proposed to promote The Sleep Advisor on her site and send folks to our >> site. She asks if we have an affiliate program. Which we ain't. >> >> I looked into it a bit and it doesn't look trivial. Basically we need a >> way to know if someone visiting our site and buying The Sleep Advisor >> originated from her site. We're hosted by Affinity and have Urchin >> statistics but I don't see anything there that would be helpful right off. >> >> Does anyone know a slick, quick way to do this? >> >> MTIA >> >> Rocky >> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jimdettman at earthlink.net Fri Feb 10 13:30:08 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 10 Feb 2006 14:30:08 -0500 Subject: [AccessD] Inserting text in a word document In-Reply-To: Message-ID: It's old code. First did that back in Access 2.0. Still works in everything that I use so... Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Friday, February 10, 2006 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Inserting text in a word document On 10/02/06, Jim Dettman wrote: > mobjWord.WordBasic.INSERT > pelNullToZLS(rstData(avarFields(pelFldAccessField, intJ))) Ick!!! WordBasic!!!! John, Here is a little chunk that should do it for you: Dim doc As Word.Document Dim rng As Word.Range Set rng = doc.Bookmarks("MyBookmarkName").Range rng.InsertAfter "This text gets inserted after the bookmark" -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Fri Feb 10 14:05:53 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 10 Feb 2006 15:05:53 -0500 Subject: [AccessD] Inserting text in a word document In-Reply-To: References: Message-ID: On 10/02/06, Jim Dettman wrote: > It's old code. First did that back in Access 2.0. Still works in > everything that I use so... Since it's legacy code, I'll forgive you :-)) -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From Lambert.Heenan at AIG.com Fri Feb 10 14:05:36 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 10 Feb 2006 14:05:36 -0600 Subject: [AccessD] Case Is = Null ?? - Answered! Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1D288473@xlivmbx21.aig.com> True, but in my experience -limited though it may be :) - if a field holds a null or an empty string, you often need to do the same thing - report it out as an exception for instance. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 1:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? - Answered! But that doesn't tell you if the variable was null, only that it could have been either null or a zero length string to start with. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 10, 2006 10:24 AM To: 'Access Developers discussion and problem solving' Cc: 'Dan Waters' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Or, you can do this... Select Case var & "" ' above line adds an empty string to our variant variable. This will turn Nulls in to empty strings, which you can test for. Case "" ' do whatever you need for a Null Case "AnotherValue" ' code Case "YetAnotherValue" ' more code End Select So only one Select Case statement needed. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, February 10, 2006 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Thanks to everyone! Charlotte - your suggestion looks good! I can nest another Select Case when the expression is not null. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 11:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? You cannot do comparisons with Null. NOTHING is equal to null. You could do a Select Case Isnull(var) with True and Else cases and then handle the situations within each branch. Select Case Isnull(var) Case True Msgbox "Null Case Else Msgbox "Not Null" End Select Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, February 10, 2006 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? Neither of those works, and nor does Case Is = Null. Simple test function. Function CaseNull() Dim var As Variant var = Null Select Case var Case Is = Null 'The line in question MsgBox "Null" Case Else MsgBox "Not Null" End Select End Function I can't find anything to put in the line in question that gives me a message of "Null". IsNull and Is Null both error. Is = Null just doesn't work. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Case Is = Null ?? Date: 10/02/06 16:45 Case IsNull or Case Is Null ' not sure which one. Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 Pager: 888-732-3909 Text Messaging: 8887323909 at my2way.com email: jeffrey.demulling at usbank.com "Dan Waters" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] Case Is = Null ?? 02/10/2006 10:32 AM Please respond to "Access Developers discussion and problem solving" I need to do a Select Case where one of the value could be null. I thought that Case Is = Null is the correct syntax, but is ignored when the value is null. What's the correct way to do this? Thanks, Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------ ------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ======================================================================== ====== -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Feb 10 14:18:38 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 10 Feb 2006 15:18:38 -0500 Subject: [AccessD] Inserting text in a word document In-Reply-To: Message-ID: I guess next time I'll make sure to issue a disclaimer Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Friday, February 10, 2006 3:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Inserting text in a word document On 10/02/06, Jim Dettman wrote: > It's old code. First did that back in Access 2.0. Still works in > everything that I use so... Since it's legacy code, I'll forgive you :-)) -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Feb 10 14:23:13 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 10 Feb 2006 21:23:13 +0100 Subject: [AccessD] Case Is = Null ?? - Answered! Message-ID: Hi Charlotte and Lambert But why all this Nz trouble and a clumsy Select Case for a simple If-Then, when Case Else neatly catches a Null as shown ... /gustav >>> Lambert.Heenan at AIG.com 10-02-2006 21:05:36 >>> True, but in my experience -limited though it may be :) - if a field holds a null or an empty string, you often need to do the same thing - report it out as an exception for instance. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 1:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? - Answered! But that doesn't tell you if the variable was null, only that it could have been either null or a zero length string to start with. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 10, 2006 10:24 AM To: 'Access Developers discussion and problem solving' Cc: 'Dan Waters' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Or, you can do this... Select Case var & "" ' above line adds an empty string to our variant variable. This will turn Nulls in to empty strings, which you can test for. Case "" ' do whatever you need for a Null Case "AnotherValue" ' code Case "YetAnotherValue" ' more code End Select So only one Select Case statement needed. Lambert From Lambert.Heenan at AIG.com Fri Feb 10 14:28:05 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 10 Feb 2006 15:28:05 -0500 Subject: [AccessD] Case Is = Null ?? - Answered! Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1D288495@xlivmbx21.aig.com> Because it's Friday (most places), and we all have silly ideas on Fridays! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 10, 2006 3:23 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Case Is = Null ?? - Answered! Hi Charlotte and Lambert But why all this Nz trouble and a clumsy Select Case for a simple If-Then, when Case Else neatly catches a Null as shown ... /gustav >>> Lambert.Heenan at AIG.com 10-02-2006 21:05:36 >>> True, but in my experience -limited though it may be :) - if a field holds a null or an empty string, you often need to do the same thing - report it out as an exception for instance. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 1:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? - Answered! But that doesn't tell you if the variable was null, only that it could have been either null or a zero length string to start with. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 10, 2006 10:24 AM To: 'Access Developers discussion and problem solving' Cc: 'Dan Waters' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Or, you can do this... Select Case var & "" ' above line adds an empty string to our variant variable. This will turn Nulls in to empty strings, which you can test for. Case "" ' do whatever you need for a Null Case "AnotherValue" ' code Case "YetAnotherValue" ' more code End Select So only one Select Case statement needed. Lambert -- 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 10 14:54:08 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Fri, 10 Feb 2006 13:54:08 -0700 Subject: [AccessD] Basic Query Design: Results In-Reply-To: <39cb22f30602101127j33881a7dm88286d10147d3676@mail.gmail.com> Message-ID: Had to try the speed comparisons between the three approaches to querying "Every Employee who has taken all of the following 4 courses". Tables are tblEmployee, tblEmployeeCourse (junction table) and tblCourse. There are 1700 employees, about 2000 EmployeeCourse records and 18 course records. 1. Using Count: qryTestCount SELECT tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName AS Estimator FROM tblEmployeeCourse INNER JOIN tblEmployee ON tblEmployeeCourse.EmployeeID = tblEmployee.ContactID WHERE (((tblEmployeeCourse.CourseID) In (1,2,4,5))) GROUP BY tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName HAVING (((Count(tblEmployee.ContactID)) = 4)) ORDER BY FirstName & ' ' & LastName; 2. Nested Selects: qryTestNestedIn SELECT DISTINCT ContactID, FirstName & ' ' & LastName FROM tblEmployeeEmployeeType RIGHT JOIN tblEmployee ON tblEmployeeEmployeeType.EmployeeID = tblEmployee.ContactID WHERE tblEmployee.ContactID > 0 And tblEmployee.Deleted = False And FirstName > '' And LastName > '' And ContactID In (Select ContactID FROM tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = tblEmployeeCourse.EmployeeID Where CourseID = 1) And CourseID = 2) And CourseID = 5) And CourseID = 4) ORDER BY FirstName & ' ' & LastName; 3. Relational Division: qryTestRelationalDiv SELECT DISTINCT EC1.EmployeeID, [FirstName] & " " & [LastName] AS Expr1 FROM tblEmployeeCourse AS EC1 INNER JOIN tblEmployee ON EC1.EmployeeID = tblEmployee.ContactID WHERE (((Exists (SELECT CourseID FROM tblCourse WHERE CourseID In (1,2,4,5) AND NOT EXISTS ( SELECT * FROM tblEmployeeCourse AS EC2 WHERE EC2.CourseID = tblCourse.CourseID AND EC2.EmployeeID = EC1.EmployeeID)))=False)) ORDER BY [FirstName] & " " & [LastName]; The following subroutine was used to open each query in sequence and report to the debug window: Public Declare Function timeGetTime Lib "Winmm" () As Long Sub testQuerySpeed() Dim r As DAO.Recordset Dim db As DAO.Database Dim lngi As Long Dim t As Long Set db = CurrentDb t = timeGetTime For lngi = 0 To 50 Set r = db.OpenRecordset("qryTestCount") Next Debug.Print "Using Count " & timeGetTime - t t = timeGetTime For lngi = 0 To 50 Set r = db.OpenRecordset("qryTestNestedIn") Next Debug.Print "Using Nested Join " & timeGetTime - t t = timeGetTime For lngi = 0 To 50 Set r = db.OpenRecordset("qryTestRelationalDiv") Next Debug.Print "Using RelationalDivision " & timeGetTime - t r.Close Set r = Nothing End Sub The results in the immediate window (in milliseconds), run 5 minutes apart speak for themselves: Using Count 5219 Using Nested Join 34796 Using RelationalDivision 13563 Using Count 7750 Using Nested Join 53625 Using RelationalDivision 17000 Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com From dwaters at usinternet.com Fri Feb 10 14:59:19 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 10 Feb 2006 14:59:19 -0600 Subject: [AccessD] Case Is = Null ?? - Answered! In-Reply-To: <25695332.1139603158719.JavaMail.root@sniper20> Message-ID: <000601c62e84$dce0f950$0200a8c0@danwaters> Gustav, Null was one of many possibilities, but needed to be handled uniquely. A second possible value needed to be handled a certain way. And then everything else (and they weren't null), all needed to be handled the same way. I ended up using: If IsNull(xx) Then ElseIf Else End If Dan PS - I guess I said Answered too soon! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 10, 2006 2:23 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Case Is = Null ?? - Answered! Hi Charlotte and Lambert But why all this Nz trouble and a clumsy Select Case for a simple If-Then, when Case Else neatly catches a Null as shown ... /gustav >>> Lambert.Heenan at AIG.com 10-02-2006 21:05:36 >>> True, but in my experience -limited though it may be :) - if a field holds a null or an empty string, you often need to do the same thing - report it out as an exception for instance. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 1:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? - Answered! But that doesn't tell you if the variable was null, only that it could have been either null or a zero length string to start with. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 10, 2006 10:24 AM To: 'Access Developers discussion and problem solving' Cc: 'Dan Waters' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Or, you can do this... Select Case var & "" ' above line adds an empty string to our variant variable. This will turn Nulls in to empty strings, which you can test for. Case "" ' do whatever you need for a Null Case "AnotherValue" ' code Case "YetAnotherValue" ' more code End Select So only one Select Case statement needed. Lambert -- 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 10 15:28:55 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Fri, 10 Feb 2006 14:28:55 -0700 Subject: [AccessD] Basic Query Design: Results In-Reply-To: Message-ID: Of course, after I posted, I had to try another method. The query is: SELECT tblEmployee.ContactID, [FirstName] & ' ' & [LastName] AS Expr1 FROM (((tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = tblEmployeeCourse.EmployeeID) INNER JOIN tblEmployeeCourse AS tblEmployeeCourse_1 ON tblEmployeeCourse.EmployeeID = tblEmployeeCourse_1.EmployeeID) INNER JOIN tblEmployeeCourse AS tblEmployeeCourse_2 ON tblEmployeeCourse.EmployeeID = tblEmployeeCourse_2.EmployeeID) INNER JOIN tblEmployeeCourse AS tblEmployeeCourse_3 ON tblEmployeeCourse.EmployeeID = tblEmployeeCourse_3.EmployeeID WHERE (((tblEmployeeCourse.CourseID)=1) AND ((tblEmployeeCourse_1.CourseID)=2) AND ((tblEmployeeCourse_2.CourseID)=4) AND ((tblEmployeeCourse_3.CourseID)=5)) ORDER BY [FirstName] & ' ' & [LastName]; This is functionally equivalent to creating a query select where CourseID =1, another where CourseID = 2, a third where CouseID = 4 and a 4th where course ID = 5 and then joining them all on the ContactID. A few runs of the time test adding this as a 4th test item result in a time that is 2nd fastest but consistently 70% slower than the fastest method that uses the count. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "J??rgen Welz" > >Had to try the speed comparisons between the three approaches to querying >"Every Employee who has taken all of the following 4 courses". Tables are >tblEmployee, tblEmployeeCourse (junction table) and tblCourse. There are >1700 employees, about 2000 EmployeeCourse records and 18 course records. > >1. Using Count: qryTestCount > >SELECT tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName AS >Estimator >FROM tblEmployeeCourse INNER JOIN tblEmployee ON >tblEmployeeCourse.EmployeeID = tblEmployee.ContactID >WHERE (((tblEmployeeCourse.CourseID) In (1,2,4,5))) >GROUP BY tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName >HAVING (((Count(tblEmployee.ContactID)) = 4)) >ORDER BY FirstName & ' ' & LastName; > >2. Nested Selects: qryTestNestedIn > >SELECT DISTINCT ContactID, FirstName & ' ' & LastName >FROM tblEmployeeEmployeeType RIGHT JOIN tblEmployee ON >tblEmployeeEmployeeType.EmployeeID = tblEmployee.ContactID >WHERE tblEmployee.ContactID > 0 And tblEmployee.Deleted = False And >FirstName > '' And LastName > '' And ContactID In (Select ContactID FROM >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = >tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = >tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = >tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = >tblEmployeeCourse.EmployeeID Where CourseID = 1) And CourseID = 2) And >CourseID = 5) And CourseID = 4) >ORDER BY FirstName & ' ' & LastName; > >3. Relational Division: qryTestRelationalDiv > >SELECT DISTINCT EC1.EmployeeID, [FirstName] & " " & [LastName] AS Expr1 >FROM tblEmployeeCourse AS EC1 INNER JOIN tblEmployee ON EC1.EmployeeID = >tblEmployee.ContactID >WHERE (((Exists (SELECT CourseID FROM tblCourse WHERE CourseID In >(1,2,4,5) AND NOT EXISTS ( SELECT * FROM tblEmployeeCourse AS EC2 > WHERE EC2.CourseID = tblCourse.CourseID AND EC2.EmployeeID = >EC1.EmployeeID)))=False)) >ORDER BY [FirstName] & " " & [LastName]; > >The following subroutine was used to open each query in sequence and report >to the debug window: > >Public Declare Function timeGetTime Lib "Winmm" () As Long > >Sub testQuerySpeed() > Dim r As DAO.Recordset > Dim db As DAO.Database > Dim lngi As Long > Dim t As Long > > Set db = CurrentDb > t = timeGetTime > For lngi = 0 To 50 > Set r = db.OpenRecordset("qryTestCount") > Next > Debug.Print "Using Count " & timeGetTime - t > t = timeGetTime > For lngi = 0 To 50 > Set r = db.OpenRecordset("qryTestNestedIn") > Next > Debug.Print "Using Nested Join " & timeGetTime - t > t = timeGetTime > For lngi = 0 To 50 > Set r = db.OpenRecordset("qryTestRelationalDiv") > Next > Debug.Print "Using RelationalDivision " & timeGetTime - t > r.Close > Set r = Nothing >End Sub > >The results in the immediate window (in milliseconds), run 5 minutes apart >speak for themselves: > >Using Count 5219 >Using Nested Join 34796 >Using RelationalDivision 13563 > >Using Count 7750 >Using Nested Join 53625 >Using RelationalDivision 17000 > >Ciao >J?rgen Welz >Edmonton, Alberta >jwelz at hotmail.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 10 15:50:44 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 10 Feb 2006 13:50:44 -0800 Subject: [AccessD] Case Is = Null ?? - Answered! Message-ID: I didn't say I would necessarily do it that way, Gustav. I was just answering the question asked on using a Select Case. :o} I often use Case Else, but if there is a reason for knowing explicitly that the value of the variable was null, a Case Else might not be specific enough. Depends on what you want/need to do. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, February 10, 2006 12:23 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Case Is = Null ?? - Answered! Hi Charlotte and Lambert But why all this Nz trouble and a clumsy Select Case for a simple If-Then, when Case Else neatly catches a Null as shown ... /gustav >>> Lambert.Heenan at AIG.com 10-02-2006 21:05:36 >>> True, but in my experience -limited though it may be :) - if a field holds a null or an empty string, you often need to do the same thing - report it out as an exception for instance. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 10, 2006 1:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Case Is = Null ?? - Answered! But that doesn't tell you if the variable was null, only that it could have been either null or a zero length string to start with. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, February 10, 2006 10:24 AM To: 'Access Developers discussion and problem solving' Cc: 'Dan Waters' Subject: Re: [AccessD] Case Is = Null ?? - Answered! Or, you can do this... Select Case var & "" ' above line adds an empty string to our variant variable. This will turn Nulls in to empty strings, which you can test for. Case "" ' do whatever you need for a Null Case "AnotherValue" ' code Case "YetAnotherValue" ' more code End Select So only one Select Case statement needed. Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at texassystems.com Fri Feb 10 17:44:52 2006 From: KIsmert at texassystems.com (Ken Ismert) Date: Fri, 10 Feb 2006 17:44:52 -0600 Subject: [AccessD] Project Notification Message-ID: >> OTOH, we also probably have list members in India, >> and Shamil is in Russia. China is less likely. Don't forget our ever-helpful colleague, A.D. Tejpal ... -Ken From dw-murphy at cox.net Fri Feb 10 18:21:05 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 10 Feb 2006 16:21:05 -0800 Subject: [AccessD] OutputTo In-Reply-To: Message-ID: <000001c62ea1$0ca35180$0200a8c0@murphyf3vdfepi> Folks, This is an FYI. Maybe it will save some one some time or one of you can explain the cause. I use the snapshot functionality in Access so folks can send formated copies of reports (Yes I am converting to a built in pdf creator, but for now snapshots work and I don't have to buy anything) Have had good luck with the snapshots since we convereted our runtime to Access 2002. Today a customer called that we did a customization for to say that the output report as snapshot was giving an error of "The report snapshot was not created because you don't have enough free disk space .....". I can creat the error on my development machine. Checked the usual problems of faulty path, illegal characters, etc, and not satisfaction. I then started playing with the length of the file path. Turns out if the path length, including the snapshot file name and extension is longer than 126 characters you get the error. If the length is 126 or less it works as advertised. Weird! If anyone has a reason for this behavior I'd appreciate your thoughts. Doug From dwaters at usinternet.com Fri Feb 10 19:13:31 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 10 Feb 2006 19:13:31 -0600 Subject: [AccessD] OutputTo In-Reply-To: <31579880.1139617417746.JavaMail.root@sniper19> Message-ID: <000001c62ea8$5fb552e0$0200a8c0@danwaters> Doug, I came across this a couple of months ago. And yes it's a pain. I called Microsoft Help after convincing myself it was truly a bug. Lo and Behold, they have fixed this in Access 2003! No plans to fix for Access 2002. Wish my news was better! Dan PS - Because this was truly a bug, MS did not charge me for the call. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Friday, February 10, 2006 6:21 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OutputTo Folks, This is an FYI. Maybe it will save some one some time or one of you can explain the cause. I use the snapshot functionality in Access so folks can send formated copies of reports (Yes I am converting to a built in pdf creator, but for now snapshots work and I don't have to buy anything) Have had good luck with the snapshots since we convereted our runtime to Access 2002. Today a customer called that we did a customization for to say that the output report as snapshot was giving an error of "The report snapshot was not created because you don't have enough free disk space .....". I can creat the error on my development machine. Checked the usual problems of faulty path, illegal characters, etc, and not satisfaction. I then started playing with the length of the file path. Turns out if the path length, including the snapshot file name and extension is longer than 126 characters you get the error. If the length is 126 or less it works as advertised. Weird! If anyone has a reason for this behavior I'd appreciate your thoughts. Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max at sherman.org.uk Sat Feb 11 03:53:34 2006 From: max at sherman.org.uk (Max Sherman) Date: Sat, 11 Feb 2006 09:53:34 -0000 Subject: [AccessD] Email using SMTP In-Reply-To: <43DEF374.7010807@shaw.ca> Message-ID: <004901c62ef1$06bd67b0$8bf31452@server> Hi All, I found the code posted by Marty et al to be very useful and now have this working from within Access. Does anybody have anything similar that will work from within Access to retrieve POP3 emails from a server (bypassing Outlook etc). Preferably with the option to leave a copy on the server. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: 31 January 2006 05:20 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email using SMTP Now if you wanted to get really fancy;) Here is how to execute a vbs script with CDO that sends an email but it is executed from within an SQL Stored Procedure that you could call from Access http://www.sqlservercentral.com/columnists/aloera/sqlserverscriptingandwmi.a sp Barbara Ryan wrote: >Thanks, Steve and Marty.... It's nice to know that I have several options. >I learn something new every day......Barb > > >----- Original Message ----- >From: "MartyConnelly" >To: "Access Developers discussion and problem solving" > >Sent: Monday, January 30, 2006 4:10 PM >Subject: Re: [AccessD] Email using SMTP > > > > >>Here is another method of using CDO similar to Steves but doesn't >>require a userid password. >>Requires WinXP or Win2000 >>This method may only work inside a domain ie you have a online node via >>a cable modem >>but not on a dial up. >> >> >>'The example code is using CDOSYS (CDO for Windows 2000 or XP). >>'I dont think I would want to go back to CDONTS for earlier systems >>'It does not depend on MAPI or CDO or Outlook >>'It does not use your mailbox to send email. >>' So you can send mail without a mail program or mail account >>' This code builds the message and drops it into a pickup directory, >>' and the SMTP service running on the machine >>' picks it up and send it out to the internet. >> >>'So why use CDO code instead of Outlook automation or >>Application.SendMail in VBA. >>' It doesn't matter what Mail program you are using (It uses the SMTP >>server). >>' It doesn't matter what Office version you are using. >>' supposedly you can send an object or file in the body of the mail >>(some mail programs cant do this) >>' haven't verified this >>' You can send any file attachment you like. >>' No Outlook Security warning so no need for Redemption >> >>' You probably wont have your mail server full expanded smtp address >>'If you go into netscape mail or outlook and look for the smtp name >>'It will look like mine, "shawmail" or "shawnews" this dns resolves >>'to "shawmail.cg.shawcable.net" CDO doesn't resolve this short name so >>'The quickest way to get this actual address without using registry et al. >>'is run cmd and ping "shawmail" to return full qualified smtp address. >>'This code wont run exactly unless you are on cable and signed on in the >>Shaw domain >> >>Sub SendCDO() >>' This example use late binding of CDOSys, you don't have to set a >> >> >reference > > >>' You must be online to net when you run the sub >>' You must be running WinXP or Win2000 >>Dim cdoMessage As Object >>Dim objCDOMail As Object >>Dim strschema As String >>On Error GoTo ErrorHandler ' Enable error-handling routine. >>' >>Set cdoMessage = CreateObject("CDO.Message") >>Set objCDOMail = CreateObject("CDO.Configuration") >>strschema = "http://schemas.microsoft.com/cdo/configuration/" >>objCDOMail.Load -1 ' CDO Source Default >>'If you have illegal or wrong smtp address here it will run for 30-60 >>seconds and finally give transport error >>With objCDOMail.Fields >>.Item(strschema & "sendusing") = 2 ' cdoSendUsingPort >>.Item(strschema & "smtpserver") = "shawmail.cg.shawcable.net" ' "Your >>SMTP server address here" >>.Item(strschema & "smtpserverport") = 25 'specify port number >>.Update >>End With >> >>With cdoMessage >>Set .Configuration = objCDOMail >>.to = "martyconnelly at gmail.com" >>.From = "Winnie The Pooh " >>.CC = "" >>.BCC = "" >>.Subject = "This is another test from marty" >>.TextBody = "This is the text in the body just cdo defaults" >>.AddAttachment "C:\temp2\rptSampleCount.rtf" >>.AddAttachment "C:\temp2\frontimage.jpeg" >>.send >>End With >> >>Set cdoMessage = Nothing >>Set objCDOMail = Nothing >>Exit Sub ' Exit to avoid handler. >>ErrorHandler: ' Error-handling routine. >>Debug.Print Err.Number & "-" & Err.Description >>Set cdoMessage = Nothing >>Set objCDOMail = Nothing >>Exit Sub >>End Sub >> >> >> >>Barbara Ryan wrote: >> >> >> >>>I've found some SMTP components on the web that allow you to email >>> >>> >directly from Access using SMTP. > > >>>Does anyone know of any VBA code (e.g., using SMTP "commands") that I >>> >>> >could use WITHOUT using a component (as well as NOT using any electronic >mail application) > > >>>Thanks, >>>Barb Ryan >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >> >> >> > > -- 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 Sat Feb 11 04:02:27 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 11 Feb 2006 02:02:27 -0800 Subject: [AccessD] web site access tracker In-Reply-To: Message-ID: <006001c62ef2$442ef810$017ba8c0@xpserver> Hi All: Does anyone know of or has made a web site access tracking program that we can install into the DBA web site. (We had one before but the app supplier started adding pop-up ads.) I am not sure of all the languages that are supported by our web site provider but they do support ASP and ASP.Net (and probably PHP and Perl would be my guess.) We have an operational MS SQL server where details can be stored. TIA Jim From Gustav at cactus.dk Sat Feb 11 07:08:34 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 11 Feb 2006 14:08:34 +0100 Subject: [AccessD] Case Is = Null ?? - Answered! Message-ID: Hi Dan and Charlotte OK, I just read your previous messages as suggestions for a final suggestion. /gustav >>> dwaters at usinternet.com 10-02-2006 21:59:19 >>> Gustav, Null was one of many possibilities, but needed to be handled uniquely. A second possible value needed to be handled a certain way. And then everything else (and they weren't null), all needed to be handled the same way. I ended up using: If IsNull(xx) Then ElseIf Else End If Dan PS - I guess I said Answered too soon! From dwaters at usinternet.com Sat Feb 11 10:04:19 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 11 Feb 2006 10:04:19 -0600 Subject: [AccessD] (OT) VB Express + SQL Server Express ?? Message-ID: <000001c62f24$d1003e20$0200a8c0@danwaters> I've downloaded VB Express to get a look at the features. I've never developed with VB before (just Access), and I remember reading that subforms/subreports aren't available in VB. I looked through the list of controls for forms, and didn't find any reference to subforms/subreports. Also, VB doesn't have a reporting feature like Access. SS 2005 has Reporting Services, but SS Express doesn't. So, is the idea of using VB Express with SQL Server Express for business applications not feasible? Does anyone have experience using these products yet? Dan From harkinsss at bellsouth.net Sat Feb 11 10:33:22 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sat, 11 Feb 2006 11:33:22 -0500 Subject: [AccessD] (OT) VB Express + SQL Server Express ?? In-Reply-To: <000001c62f24$d1003e20$0200a8c0@danwaters> Message-ID: <001701c62f28$e03c8de0$b5b3d6d1@SUSANONE> Also, VB doesn't have a reporting feature like Access. SS 2005 has Reporting Services, but SS Express doesn't. So, is the idea of using VB Express with SQL Server Express for business applications not feasible? =========MS does the usual song and dance that Express products are for amateurs, students, etc -- not business. Does anyone have experience using these products yet? =========Some, and I find them both excellent tools for the right jobs. It'll give an awful lot of power and choices to the average user -- VB Express writes all the code for you -- it's a great tool for the right people. I don't think it's appropriate for heavy design/developers -- but I would certainly consider it -- and then upgrade when necessary, if necessary. I think that small business and small developers are going to find a lot of use for the Express products -- despite MS's insistence that they're toys. On the MS side, I think they know exactly what they're doing -- making this stuff free will ultimately send a lot of people looking for and purchasing more -- eventually. And, it stops the open source critics -- kind of. Susan H. From jwelz at hotmail.com Sat Feb 11 11:16:07 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Sat, 11 Feb 2006 10:16:07 -0700 Subject: [AccessD] (OT) VB Express + SQL Server Express ?? In-Reply-To: <000001c62f24$d1003e20$0200a8c0@danwaters> Message-ID: Although I have no experience with VB Express, I dabbled a bit in VB6 a little while back and found that a lot of what you do with Access with subforms can be done with control arrays and grids. You don't get the automatic filtering of data in the grids, but if you work with single record recordsets and use just in time data retrieval for subforms in Access, the process is analagous in VB6. What I missed most in VB6 were the list and combo features you had in Access. Sure I wrote an autocomplete and not in list routine for VB combos (wasn't a property to be enabled), and multi column data mandated grids, but you were required to gain a modicum of control. In VB6 you could do more with drag and drop and you were required to do a bit more work but you had more control in exchange. I'm curious about the capabilities of VB Express controls. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Dan Waters" > >I've downloaded VB Express to get a look at the features. I've never >developed with VB before (just Access), and I remember reading that >subforms/subreports aren't available in VB. I looked through the list of >controls for forms, and didn't find any reference to subforms/subreports. > >Also, VB doesn't have a reporting feature like Access. SS 2005 has >Reporting Services, but SS Express doesn't. > >So, is the idea of using VB Express with SQL Server Express for business >applications not feasible? > >Does anyone have experience using these products yet? > >Dan From martyconnelly at shaw.ca Sat Feb 11 13:37:35 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 11 Feb 2006 11:37:35 -0800 Subject: [AccessD] Email using SMTP References: <004901c62ef1$06bd67b0$8bf31452@server> Message-ID: <43EE3CFF.5090503@shaw.ca> You could try the POPX control from Mabry, but may not be able to use within another ActiveX control MAIL/X CONTROLS - Internet SMTP and POP ActiveX Controls and COM Obj http://www.mabry.com/mailx/index.htm IDS Mail version works with Access now assurx.com http://www.intuitive-data.com/idsmail.htm You can use the winsock control (already present on your machine) or the Winsock API's . You just have to know what ports to connect to for SMTP and for POP3 http://www.vbip.com/winsock/winsock_simple_sender.asp Max Sherman wrote: >Hi All, >I found the code posted by Marty et al to be very useful and now have this >working from within Access. > >Does anybody have anything similar that will work from within Access to >retrieve POP3 emails from a server (bypassing Outlook etc). Preferably with >the option to leave a copy on the server. > >Regards >Max > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: 31 January 2006 05:20 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Email using SMTP > >Now if you wanted to get really fancy;) >Here is how to execute a vbs script with CDO that sends an email but it >is executed from within an SQL Stored Procedure >that you could call from Access > >http://www.sqlservercentral.com/columnists/aloera/sqlserverscriptingandwmi.a >sp > >Barbara Ryan wrote: > > > >>Thanks, Steve and Marty.... It's nice to know that I have several options. >>I learn something new every day......Barb >> >> >>----- Original Message ----- >>From: "MartyConnelly" >>To: "Access Developers discussion and problem solving" >> >>Sent: Monday, January 30, 2006 4:10 PM >>Subject: Re: [AccessD] Email using SMTP >> >> >> >> >> >> >>>Here is another method of using CDO similar to Steves but doesn't >>>require a userid password. >>>Requires WinXP or Win2000 >>>This method may only work inside a domain ie you have a online node via >>>a cable modem >>>but not on a dial up. >>> >>> >>>'The example code is using CDOSYS (CDO for Windows 2000 or XP). >>>'I dont think I would want to go back to CDONTS for earlier systems >>>'It does not depend on MAPI or CDO or Outlook >>>'It does not use your mailbox to send email. >>>' So you can send mail without a mail program or mail account >>>' This code builds the message and drops it into a pickup directory, >>>' and the SMTP service running on the machine >>>' picks it up and send it out to the internet. >>> >>>'So why use CDO code instead of Outlook automation or >>>Application.SendMail in VBA. >>>' It doesn't matter what Mail program you are using (It uses the SMTP >>>server). >>>' It doesn't matter what Office version you are using. >>>' supposedly you can send an object or file in the body of the mail >>>(some mail programs cant do this) >>>' haven't verified this >>>' You can send any file attachment you like. >>>' No Outlook Security warning so no need for Redemption >>> >>>' You probably wont have your mail server full expanded smtp address >>>'If you go into netscape mail or outlook and look for the smtp name >>>'It will look like mine, "shawmail" or "shawnews" this dns resolves >>>'to "shawmail.cg.shawcable.net" CDO doesn't resolve this short name so >>>'The quickest way to get this actual address without using registry et al. >>>'is run cmd and ping "shawmail" to return full qualified smtp address. >>>'This code wont run exactly unless you are on cable and signed on in the >>>Shaw domain >>> >>>Sub SendCDO() >>>' This example use late binding of CDOSys, you don't have to set a >>> >>> >>> >>> >>reference >> >> >> >> >>>' You must be online to net when you run the sub >>>' You must be running WinXP or Win2000 >>>Dim cdoMessage As Object >>>Dim objCDOMail As Object >>>Dim strschema As String >>>On Error GoTo ErrorHandler ' Enable error-handling routine. >>>' >>>Set cdoMessage = CreateObject("CDO.Message") >>>Set objCDOMail = CreateObject("CDO.Configuration") >>>strschema = "http://schemas.microsoft.com/cdo/configuration/" >>>objCDOMail.Load -1 ' CDO Source Default >>>'If you have illegal or wrong smtp address here it will run for 30-60 >>>seconds and finally give transport error >>>With objCDOMail.Fields >>>.Item(strschema & "sendusing") = 2 ' cdoSendUsingPort >>>.Item(strschema & "smtpserver") = "shawmail.cg.shawcable.net" ' "Your >>>SMTP server address here" >>>.Item(strschema & "smtpserverport") = 25 'specify port number >>>.Update >>>End With >>> >>>With cdoMessage >>>Set .Configuration = objCDOMail >>>.to = "martyconnelly at gmail.com" >>>.From = "Winnie The Pooh " >>>.CC = "" >>>.BCC = "" >>>.Subject = "This is another test from marty" >>>.TextBody = "This is the text in the body just cdo defaults" >>>.AddAttachment "C:\temp2\rptSampleCount.rtf" >>>.AddAttachment "C:\temp2\frontimage.jpeg" >>>.send >>>End With >>> >>>Set cdoMessage = Nothing >>>Set objCDOMail = Nothing >>>Exit Sub ' Exit to avoid handler. >>>ErrorHandler: ' Error-handling routine. >>>Debug.Print Err.Number & "-" & Err.Description >>>Set cdoMessage = Nothing >>>Set objCDOMail = Nothing >>>Exit Sub >>>End Sub >>> >>> >>> >>>Barbara Ryan wrote: >>> >>> >>> >>> >>> >>>>I've found some SMTP components on the web that allow you to email >>>> >>>> >>>> >>>> >>directly from Access using SMTP. >> >> >> >> >>>>Does anyone know of any VBA code (e.g., using SMTP "commands") that I >>>> >>>> >>>> >>>> >>could use WITHOUT using a component (as well as NOT using any electronic >>mail application) >> >> >> >> >>>>Thanks, >>>>Barb Ryan >>>> >>>> >>>> >>>> >>>> >>>> >>>-- >>>Marty Connelly >>>Victoria, B.C. >>>Canada >>> >>> >>> >>> >>> >>> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Sat Feb 11 15:00:47 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 11 Feb 2006 13:00:47 -0800 Subject: [AccessD] (OT) VB Express + SQL Server Express ?? References: <000001c62f24$d1003e20$0200a8c0@danwaters> Message-ID: <43EE507F.3070005@shaw.ca> Why not just call Access Reports from VB.Net You will need either the Microsoft Office XP or 2003 Primary Interop Assemblies (PIAs). Microsoft Office XP primary interop assemblies (PIAs) are available for download XP http://support.microsoft.com/kb/328912/EN-US/ 2003 http://support.microsoft.com/kb/897646/ Then How To Automate Microsoft Access From Visual Basic .NET http://support.microsoft.com/default.aspx?scid=kb;en-us;317113 or more general http://support.microsoft.com/kb/311452/ http://msdn.microsoft.com/office/default.aspx?pull=/library/en-us/odc_of2003_bk/html/officeinteroperabilitych2_part1.asp you may have to reference the Microsoft.Office.Interop.Excel namespace through an alias, like so: using Excel = Microsoft.Office.Interop.Excel; simple access vb.net access program Developing Office 2003 solutions with .NET http://builder.com.com/5100-6373_14-5315974.html#Listing%20A Dan Waters wrote: >I've downloaded VB Express to get a look at the features. I've never >developed with VB before (just Access), and I remember reading that >subforms/subreports aren't available in VB. I looked through the list of >controls for forms, and didn't find any reference to subforms/subreports. > >Also, VB doesn't have a reporting feature like Access. SS 2005 has >Reporting Services, but SS Express doesn't. > >So, is the idea of using VB Express with SQL Server Express for business >applications not feasible? > >Does anyone have experience using these products yet? > >Dan > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Sat Feb 11 15:08:05 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 11 Feb 2006 13:08:05 -0800 Subject: [AccessD] (OT) VB Express + SQL Server Express ?? In-Reply-To: <43EE507F.3070005@shaw.ca> Message-ID: <007201c62f4f$4046c720$017ba8c0@xpserver> Hi Marty: That is brilliant.... have been about to start a search on relevant reporting for a VB.Net project. Excellent mind reading! :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: February 11, 2006 1:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] (OT) VB Express + SQL Server Express ?? Why not just call Access Reports from VB.Net You will need either the Microsoft Office XP or 2003 Primary Interop Assemblies (PIAs). Microsoft Office XP primary interop assemblies (PIAs) are available for download XP http://support.microsoft.com/kb/328912/EN-US/ 2003 http://support.microsoft.com/kb/897646/ Then How To Automate Microsoft Access From Visual Basic .NET http://support.microsoft.com/default.aspx?scid=kb;en-us;317113 or more general http://support.microsoft.com/kb/311452/ http://msdn.microsoft.com/office/default.aspx?pull=/library/en-us/odc_of2003 _bk/html/officeinteroperabilitych2_part1.asp you may have to reference the Microsoft.Office.Interop.Excel namespace through an alias, like so: using Excel = Microsoft.Office.Interop.Excel; simple access vb.net access program Developing Office 2003 solutions with .NET http://builder.com.com/5100-6373_14-5315974.html#Listing%20A Dan Waters wrote: >I've downloaded VB Express to get a look at the features. I've never >developed with VB before (just Access), and I remember reading that >subforms/subreports aren't available in VB. I looked through the list of >controls for forms, and didn't find any reference to subforms/subreports. > >Also, VB doesn't have a reporting feature like Access. SS 2005 has >Reporting Services, but SS Express doesn't. > >So, is the idea of using VB Express with SQL Server Express for business >applications not feasible? > >Does anyone have experience using these products yet? > >Dan > > > -- 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 carbonnb at gmail.com Sat Feb 11 21:01:10 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Sat, 11 Feb 2006 22:01:10 -0500 Subject: [AccessD] web site access tracker In-Reply-To: <006001c62ef2$442ef810$017ba8c0@xpserver> References: <006001c62ef2$442ef810$017ba8c0@xpserver> Message-ID: On 11/02/06, Jim Lawrence wrote: > Does anyone know of or has made a web site access tracking program that we > can install into the DBA web site. (We had one before but the app supplier > started adding pop-up ads.) > > I am not sure of all the languages that are supported by our web site > provider but they do support ASP and ASP.Net (and probably PHP and Perl > would be my guess.) > > We have an operational MS SQL server where details can be stored. Jim, If you have access to the IIS log, then have a look at AWStats (http://awstats.sourceforge.net/). It will parse the IIS logfile and make pretty graphs and stats. Best part, it's free. :) -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jmhecht at earthlink.net Sat Feb 11 22:52:24 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Sat, 11 Feb 2006 20:52:24 -0800 Subject: [AccessD] A little Null Help Please Message-ID: <000001c62f90$1dd237b0$6701a8c0@HPLaptop> I have a situation where for some records there is no DOB for an entry. The details are messy but trying to be a good programmer I am trying to code around it. If DOB = Null Then txtAgeThisDay.Value = "No Dob" Else txtAgeThisDay = yearcalc(DOB, txTaCCIDENT_dATE) 'Calc Age on Event Day End If I have tested a record and know the DOB is null. txtAgeThisDay.Value = "No Dob" is not triggering. Could some one please tell me why? TIA Joe Hecht jmhecht at earthlink.net From jmhecht at earthlink.net Sat Feb 11 23:50:24 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Sat, 11 Feb 2006 21:50:24 -0800 Subject: [AccessD] OT: Compare 2 directories Message-ID: <000001c62f98$39fd8bd0$6701a8c0@HPLaptop> Any one have or know a tool where you can compare two directories and synchronize them. Thanks Joe Hecht jmhecht at earthlink.net From bchacc at san.rr.com Sun Feb 12 00:10:25 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 11 Feb 2006 22:10:25 -0800 Subject: [AccessD] A little Null Help Please In-Reply-To: <000001c62f90$1dd237b0$6701a8c0@HPLaptop> References: <000001c62f90$1dd237b0$6701a8c0@HPLaptop> Message-ID: <43EED151.5040506@san.rr.com> Just guessing here. Try If IsNull(DOB) Then or the wildly inelegant If Nz(DOB) = "" Rocky Joe Hecht wrote: > I have a situation where for some records there is no DOB > for an entry. > > > > The details are messy but trying to be a good programmer I > am trying to code around it. > > > > If DOB = Null Then > > txtAgeThisDay.Value = "No Dob" > > Else > > txtAgeThisDay = yearcalc(DOB, txTaCCIDENT_dATE) 'Calc > Age on Event Day > > End If > > > > > > I have tested a record and know the DOB is null. > > > > txtAgeThisDay.Value = "No Dob" is not triggering. > > > > Could some one please tell me why? > > > > TIA > > > > Joe Hecht > > jmhecht at earthlink.net > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jwelz at hotmail.com Sun Feb 12 01:22:23 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Sun, 12 Feb 2006 00:22:23 -0700 Subject: [AccessD] OT: Compare 2 directories In-Reply-To: <000001c62f98$39fd8bd0$6701a8c0@HPLaptop> Message-ID: I wrote a little ditty that synchronizes files between laptop and server. There is a function that returns the logged in user name not included here, but it opens a table that determines which tables to synch. For each table, there is a folder with the name of the table. For each record that has files, there is a subfolder beneath the table folder named with the PK. For example, if a user synchs Company correspondence as indicated by that users settings in the Synch table, the routine opens the table of Companies, walks the AN PK field and checks to see if a folder exists for that PK, ie if AN PK = 12365, it looks in the base path (hard coded in the procedure as 'C:\GOM\') to see if any files exist at C:\GOM\tblCompany\12365\ and every other PK number below ...\tblCompany\ Each table also has a field(0) named like the name of the table, without the 'tbl' prefix and an suffix of 'ID'. tblCompany has a pk named 'CompanyID'. tblEmployee has a pk named 'EmployeeID'.... If a folder exists and any file exists in a folder, it checks to see if it exists in the server folder (base path 'S:\GOM\...') and if it doesn't, it copies it over. If the path doesn't exist, it creates the path and then copies the file. It also copies (and creates folders) in the opposite direction. The synch routine does not check for file modified date, but it can be easily modified to notify users of which files have disparate sizes or modified dates hence requiring user intervention to decide which to keep, or work on a preset rule. The routine begins with a call to 'SynchFiles'. A users record might contain the following string in the 'Synch' field: Project;Estimate;Employee and will synch the files beneath tblProject, tblEstimate and tblEmployee for each record that has files. The routine was used to get every file for every active record from the server to the laptop. If any file was created on a laptop while out of the office, that file was synched to the server when the routine ran. If any file was created on the server while a laptop was out of the office, that made its way to the laptop. One downside was that it was difficult to delete files. For example, if a file had been synched to one laptop and the server copy was deleted, the file from the laptop would find its way back to the server and on subsequent laptops. I wound up building a hierarchy of folders where files marked for deletion were kept and these were excluded from the synch. These files had to be maintained for a month or more since, if a laptop was out of service for a day longer, the files that remained on the laptop would show up again. We wound up deleteing all table related files from the laptops periodically and letting the synch run as files were marked inactive (no longer employed with us, project completed, estimate bid declined) just to cut down on the number of outdated files on the laptops as we were otherwise synching a couple gigs of files. Once an initial synch ran (typically 30 minutes), the subsequent maintenance synchs ran in a few minutes. I used arrays to store file and path information where some might use collections. Party on. If you are just comparing a pair of directories, this might be a bit of overkill..... Without futher ado: Option Compare Database Option Explicit Private Declare Function CopyFileA Lib "kernel32" (ByVal ExistingFileName As String, _ ByVal NewFileName As String, ByVal FailIfExists As Long) As Long Dim mLapFile() As String 'array of files matching criteria and path on Local drive Dim mSrvFile() As String 'array of files matching criteria and path on Server drive Dim mstrLapPath As String 'path of files to synch on Local drive Dim mstrSrvPath As String 'path of files to synch on Server drive Dim mstrFileCrit As String 'set to \*.* Dim gDb As DAO.Database Dim gstrSrvPath As String Public Sub SynchFiles() On Error GoTo ErrorHandler Dim ar() As String Dim lngI As Long Dim r As DAO.Recordset Dim strSql As String Dim strActive As String DoCmd.Hourglass True Set gDb = CurrentDb mstrFileCrit = "\*.*" strSql = "Select Synch From usysUser Where LoginName = '" & fnUserName & "'" Set r = gDb.OpenRecordset(strSql) If Len(Nz(r!Synch, "")) Then If InStr(r!Synch, "Project") Then ReDim Preserve ar(lngI) ar(lngI) = "Project" lngI = lngI + 1 End If If InStr(r!Synch, "Company") Then ReDim Preserve ar(lngI) ar(lngI) = "Company" lngI = lngI + 1 End If If InStr(r!Synch, "Contact") Then ReDim Preserve ar(lngI) ar(lngI) = "Contact" lngI = lngI + 1 End If If InStr(r!Synch, "Employee") Then ReDim Preserve ar(lngI) ar(lngI) = "Employee" lngI = lngI + 1 End If If InStr(r!Synch, "Estimate") Then ReDim Preserve ar(lngI) ar(lngI) = "Estimate" lngI = lngI + 1 End If For lngI = 0 To UBound(ar) Set r = gDb.OpenRecordset("Select " & ar(lngI) & "ID From tbl" & ar(lngI) & _ " Where Deleted = False And IsActive = True") If Not r.EOF Then gstrLocalPath = "C:\GOM\" gstrSrvPath = "S:\GOM\" mstrLapPath = gstrLocalPath & "tbl" & ar(lngI) & "\" mstrSrvPath = gstrSERVERPATH & "tbl" & ar(lngI) & "\" GetFileList r, "tbl" & ar(lngI) End If Next End If ExitRoutine: On Error Resume Next DoCmd.Hourglass False r.Close Set r = Nothing Exit Sub ErrorHandler: With Err Select Case .Number Case Else MsgBox .Number & vbCrLf & .Description, vbInformation, "Error - SynchFiles" End Select End With 'Resume 0 Resume ExitRoutine End Sub Private Sub GetFileList(r As DAO.Recordset, strTable As String) On Error GoTo ErrorHandler Dim lngI As Long Dim lngJ As Long Dim lngC As Long Dim strFileName As String Dim strFilPthNm As String Dim strSubFolder As String ReDim mLapFile(0) ReDim mSrvFile(0) lngI = 1 lngJ = 1 r.MoveLast r.MoveFirst SysCmd acSysCmdInitMeter, "Getting Local and Server " & strTable & " File Lists", r.RecordCount Do Until r.EOF strSubFolder = r(0) If Len(Dir(mstrLapPath & strSubFolder, vbDirectory)) = 0 Then If Len(Dir(mstrSrvPath & strSubFolder, vbDirectory)) Then If Len(Dir(mstrSrvPath & strSubFolder & mstrFileCrit)) Then MkDir (mstrLapPath & strSubFolder) End If End If Else strFilPthNm = mstrLapPath & strSubFolder & mstrFileCrit strFileName = Dir(strFilPthNm) Do While Len(strFileName) ReDim Preserve mLapFile(lngI) mLapFile(lngI) = strSubFolder & "\" & strFileName strFileName = Dir lngI = lngI + 1 Loop End If If Len(Dir(mstrSrvPath & strSubFolder, vbDirectory)) = 0 Then If Len(Dir(mstrLapPath & strSubFolder, vbDirectory)) Then If Len(Dir(mstrLapPath & strSubFolder & mstrFileCrit)) Then MkDir (mstrSrvPath & strSubFolder) End If End If Else strFilPthNm = mstrSrvPath & strSubFolder & mstrFileCrit strFileName = Dir(strFilPthNm) Do While Len(strFileName) ReDim Preserve mSrvFile(lngJ) mSrvFile(lngJ) = strSubFolder & "\" & strFileName strFileName = Dir lngJ = lngJ + 1 Loop End If r.MoveNext lngC = lngC + 1 SysCmd acSysCmdUpdateMeter, lngC Loop WalkFileList ExitRoutine: On Error Resume Next Exit Sub ErrorHandler: With Err Select Case .Number Case 75, 76 If fnCreateBasePath(mstrLapPath & strSubFolder) And fnCreateBasePath(mstrSrvPath & strSubFolder) Then Resume Next Case Else MsgBox .Number & vbCrLf & .Description, vbInformation, "Error - GetFileList" End Select End With 'Resume 0 Resume ExitRoutine End Sub Private Sub WalkFileList() On Error GoTo ErrorHandler Dim blnFound As Boolean Dim lngI As Long Dim lngJ As Long blnFound = False If UBound(mLapFile) > 0 Then For lngI = 1 To UBound(mLapFile) If UBound(mSrvFile) < 1 Then blnFound = False Else For lngJ = 1 To UBound(mSrvFile) If mLapFile(lngI) = mSrvFile(lngJ) Then blnFound = True Exit For End If blnFound = False Next End If If Not blnFound Then DoFileCopy mstrLapPath & mLapFile(lngI), mstrSrvPath & mLapFile(lngI), "Server", 1 End If Next End If blnFound = False If UBound(mSrvFile) > 0 Then For lngJ = 1 To UBound(mSrvFile) If UBound(mLapFile) < 1 Then blnFound = False Else For lngI = 1 To UBound(mLapFile) If mSrvFile(lngJ) = mLapFile(lngI) Then blnFound = True Exit For End If blnFound = False Next End If If Not blnFound Then DoFileCopy mstrSrvPath & mSrvFile(lngJ), mstrLapPath & mSrvFile(lngJ), "Laptop", 1 End If Next End If ExitRoutine: On Error Resume Next SysCmd acSysCmdRemoveMeter Exit Sub ErrorHandler: With Err Select Case .Number Case Else MsgBox .Number & vbCrLf & .Description, vbInformation, "Error - WalkFileList" End Select End With 'Resume 0 Resume ExitRoutine End Sub Private Sub DoFileCopy(Source As String, Dest As String, Orig As String, ByVal intC As Integer) On Error GoTo ExitRoutine SysCmd acSysCmdInitMeter, "Copying " & Source & " to " & Orig, intC Copy Source, Dest ExitRoutine: Exit Sub If Err = 70 Then MsgBox "File " & Source & " is open. Can't Copy. Press OK to continue file " & _ "Synchronization." Else MsgBox Err.Description & Err.Number Err = 0 End If End Sub Private Function fnCreateBasePath(strCreatePath As String) As Boolean On Error GoTo ErrorHandler Dim strPath As String Dim lngPos As Long strCreatePath = Trim$(strCreatePath) If Right$(strCreatePath, 1) <> "\" Then strCreatePath = strCreatePath & "\" lngPos = 7 Do Until lngPos = 1 lngPos = InStr(lngPos + 1, strCreatePath, "\") If lngPos Then strPath = Left$(strCreatePath, lngPos - 1) If Not Len(Dir(strPath, vbDirectory)) > 0 Then MkDir strPath End If End If lngPos = lngPos + 1 Loop fnCreateBasePath = True ExitRoutine: On Error Resume Next Exit Function ErrorHandler: With Err Select Case .Number Case Else MsgBox .Number & vbCrLf & .Description & vbCrLf & vbCrLf & _ " Error in creating Folder: '" & strCreatePath & "'", _ vbInformation, "Error - fnCreateBasePath" End Select End With 'Resume 0 Resume ExitRoutine End Function Private Function Copy(FileSrc As String, FileDst As String, Optional NoOverWrite As Boolean = True) _ As Boolean On Error GoTo ErrorHandler Copy = CopyFileA(FileSrc, FileDst, NoOverWrite) = 1 ExitRoutine: On Error Resume Next Exit Function ErrorHandler: With Err Select Case .Number Case Else MsgBox .Number & vbCrLf & .Description, vbInformation, "Error - Copy" End Select End With 'Resume 0 Resume ExitRoutine End Function Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Joe Hecht" >Any one have or know a tool where you can compare two >directories and synchronize them. > > > >Thanks > > > >Joe Hecht > >jmhecht at earthlink.net From vchas at comcast.net Sun Feb 12 01:46:45 2006 From: vchas at comcast.net (Vinnie Chas) Date: Sat, 11 Feb 2006 23:46:45 -0800 Subject: [AccessD] A little Null Help Please In-Reply-To: <000001c62f90$1dd237b0$6701a8c0@HPLaptop> Message-ID: <001301c62fa8$792a3be0$014bbd43@flagg> Joe Try this If isnull(DOB) then txtAgeThisDay.Value = "No Dob" Else txtAgeThisDay = yearcalc(DOB, txTaCCIDENT_dATE) 'Calc Age on Event Day End If HTH Vinnie Chas www.vinniechas.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Saturday, February 11, 2006 8:52 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A little Null Help Please I have a situation where for some records there is no DOB for an entry. The details are messy but trying to be a good programmer I am trying to code around it. If DOB = Null Then txtAgeThisDay.Value = "No Dob" Else txtAgeThisDay = yearcalc(DOB, txTaCCIDENT_dATE) 'Calc Age on Event Day End If I have tested a record and know the DOB is null. txtAgeThisDay.Value = "No Dob" is not triggering. Could some one please tell me why? TIA Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.6/257 - Release Date: 2/10/2006 From stuart at lexacorp.com.pg Sun Feb 12 03:32:52 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 12 Feb 2006 19:32:52 +1000 Subject: [AccessD] OT: Compare 2 directories In-Reply-To: <000001c62f98$39fd8bd0$6701a8c0@HPLaptop> Message-ID: <43EF8D64.32598.94511FB@stuart.lexacorp.com.pg> On 11 Feb 2006 at 21:50, Joe Hecht wrote: > Any one have or know a tool where you can compare two > directories and synchronize them. > I wrote a little utility a few years ago to merge directories. It may be of use. You can find it at http://www.lexacorp.com.pg click on the "free software button" -- Stuart From stuart at lexacorp.com.pg Sun Feb 12 03:37:08 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 12 Feb 2006 19:37:08 +1000 Subject: [AccessD] A little Null Help Please In-Reply-To: <000001c62f90$1dd237b0$6701a8c0@HPLaptop> Message-ID: <43EF8E64.21238.948F6CE@stuart.lexacorp.com.pg> On 11 Feb 2006 at 20:52, Joe Hecht wrote: > > If DOB = Null Then > As someone else said the other day on this list. Nothing equals Null. You need to use Isnull() in your comparison or use NZ() to convert the Null to something else before doing the comparison. -- Stuart From word_diva at hotmail.com Sun Feb 12 07:17:33 2006 From: word_diva at hotmail.com (Nancy Lytle) Date: Sun, 12 Feb 2006 08:17:33 -0500 Subject: [AccessD] OT: Compare 2 directories In-Reply-To: <000001c62f98$39fd8bd0$6701a8c0@HPLaptop> Message-ID: You might try Microsoft's SyncToy, it is a wonderful little utility for sync'ing, etc. Nancy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Sunday, February 12, 2006 12:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Compare 2 directories Any one have or know a tool where you can compare two directories and synchronize them. Thanks Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.6/257 - Release Date: 2/10/2006 From max at sherman.org.uk Sun Feb 12 09:27:58 2006 From: max at sherman.org.uk (Max Sherman) Date: Sun, 12 Feb 2006 15:27:58 -0000 Subject: [AccessD] Email using SMTP In-Reply-To: <43EE3CFF.5090503@shaw.ca> Message-ID: <000001c62fe8$e8bdd170$8bf31452@server> Thanks Marty, none of these did the trick, but they did start me hopping across the sites. I eventually came up with FREEPOP which I have started making use of. It describes itself as: Description: FreePOP is an ActiveX control that allows read/write access to a POP3 mailbox and the messages in the mailbox. This ActiveX control was developed with Microsoft Visual Basic 6.0-SP4. Possible uses: FreePOP allows you to find out the number of unread messages in a POP3 mailbox. FreePOP allows you access to the various headers of a message (i.e. Subject, Date, From, etc.) FreePOP allows you to retrieve the contents of a message. FreePOP allows you to selectively delete a message. FreePOP allows you to read a message directly into a file. Documentation is good and I had it working in no time at all. I just need to program it in so that it operates in the way I want. Thanks for kick-starting me. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: 11 February 2006 19:38 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Email using SMTP You could try the POPX control from Mabry, but may not be able to use within another ActiveX control MAIL/X CONTROLS - Internet SMTP and POP ActiveX Controls and COM Obj http://www.mabry.com/mailx/index.htm IDS Mail version works with Access now assurx.com http://www.intuitive-data.com/idsmail.htm You can use the winsock control (already present on your machine) or the Winsock API's . You just have to know what ports to connect to for SMTP and for POP3 http://www.vbip.com/winsock/winsock_simple_sender.asp Max Sherman wrote: >Hi All, >I found the code posted by Marty et al to be very useful and now have this >working from within Access. > >Does anybody have anything similar that will work from within Access to >retrieve POP3 emails from a server (bypassing Outlook etc). Preferably with >the option to leave a copy on the server. > >Regards >Max > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: 31 January 2006 05:20 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Email using SMTP > >Now if you wanted to get really fancy;) >Here is how to execute a vbs script with CDO that sends an email but it >is executed from within an SQL Stored Procedure >that you could call from Access > >http://www.sqlservercentral.com/columnists/aloera/sqlserverscriptingandwmi. a >sp > >Barbara Ryan wrote: > > > >>Thanks, Steve and Marty.... It's nice to know that I have several options. >>I learn something new every day......Barb >> >> >>----- Original Message ----- >>From: "MartyConnelly" >>To: "Access Developers discussion and problem solving" >> >>Sent: Monday, January 30, 2006 4:10 PM >>Subject: Re: [AccessD] Email using SMTP >> >> >> >> >> >> >>>Here is another method of using CDO similar to Steves but doesn't >>>require a userid password. >>>Requires WinXP or Win2000 >>>This method may only work inside a domain ie you have a online node via >>>a cable modem >>>but not on a dial up. >>> >>> >>>'The example code is using CDOSYS (CDO for Windows 2000 or XP). >>>'I dont think I would want to go back to CDONTS for earlier systems >>>'It does not depend on MAPI or CDO or Outlook >>>'It does not use your mailbox to send email. >>>' So you can send mail without a mail program or mail account >>>' This code builds the message and drops it into a pickup directory, >>>' and the SMTP service running on the machine >>>' picks it up and send it out to the internet. >>> >>>'So why use CDO code instead of Outlook automation or >>>Application.SendMail in VBA. >>>' It doesn't matter what Mail program you are using (It uses the SMTP >>>server). >>>' It doesn't matter what Office version you are using. >>>' supposedly you can send an object or file in the body of the mail >>>(some mail programs cant do this) >>>' haven't verified this >>>' You can send any file attachment you like. >>>' No Outlook Security warning so no need for Redemption >>> >>>' You probably wont have your mail server full expanded smtp address >>>'If you go into netscape mail or outlook and look for the smtp name >>>'It will look like mine, "shawmail" or "shawnews" this dns resolves >>>'to "shawmail.cg.shawcable.net" CDO doesn't resolve this short name so >>>'The quickest way to get this actual address without using registry et al. >>>'is run cmd and ping "shawmail" to return full qualified smtp address. >>>'This code wont run exactly unless you are on cable and signed on in the >>>Shaw domain >>> >>>Sub SendCDO() >>>' This example use late binding of CDOSys, you don't have to set a >>> >>> >>> >>> >>reference >> >> >> >> >>>' You must be online to net when you run the sub >>>' You must be running WinXP or Win2000 >>>Dim cdoMessage As Object >>>Dim objCDOMail As Object >>>Dim strschema As String >>>On Error GoTo ErrorHandler ' Enable error-handling routine. >>>' >>>Set cdoMessage = CreateObject("CDO.Message") >>>Set objCDOMail = CreateObject("CDO.Configuration") >>>strschema = "http://schemas.microsoft.com/cdo/configuration/" >>>objCDOMail.Load -1 ' CDO Source Default >>>'If you have illegal or wrong smtp address here it will run for 30-60 >>>seconds and finally give transport error >>>With objCDOMail.Fields >>>.Item(strschema & "sendusing") = 2 ' cdoSendUsingPort >>>.Item(strschema & "smtpserver") = "shawmail.cg.shawcable.net" ' "Your >>>SMTP server address here" >>>.Item(strschema & "smtpserverport") = 25 'specify port number >>>.Update >>>End With >>> >>>With cdoMessage >>>Set .Configuration = objCDOMail >>>.to = "martyconnelly at gmail.com" >>>.From = "Winnie The Pooh " >>>.CC = "" >>>.BCC = "" >>>.Subject = "This is another test from marty" >>>.TextBody = "This is the text in the body just cdo defaults" >>>.AddAttachment "C:\temp2\rptSampleCount.rtf" >>>.AddAttachment "C:\temp2\frontimage.jpeg" >>>.send >>>End With >>> >>>Set cdoMessage = Nothing >>>Set objCDOMail = Nothing >>>Exit Sub ' Exit to avoid handler. >>>ErrorHandler: ' Error-handling routine. >>>Debug.Print Err.Number & "-" & Err.Description >>>Set cdoMessage = Nothing >>>Set objCDOMail = Nothing >>>Exit Sub >>>End Sub >>> >>> >>> >>>Barbara Ryan wrote: >>> >>> >>> >>> >>> >>>>I've found some SMTP components on the web that allow you to email >>>> >>>> >>>> >>>> >>directly from Access using SMTP. >> >> >> >> >>>>Does anyone know of any VBA code (e.g., using SMTP "commands") that I >>>> >>>> >>>> >>>> >>could use WITHOUT using a component (as well as NOT using any electronic >>mail application) >> >> >> >> >>>>Thanks, >>>>Barb Ryan >>>> >>>> >>>> >>>> >>>> >>>> >>>-- >>>Marty Connelly >>>Victoria, B.C. >>>Canada >>> >>> >>> >>> >>> >>> >> >> >> >> > > > -- 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 Gustav at cactus.dk Sun Feb 12 10:12:20 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 12 Feb 2006 17:12:20 +0100 Subject: [AccessD] Email using SMTP Message-ID: Hi Max FreePOP may lack some features (I've not used it): http://www.harm.net/FreePOP However, I've used two (not free but not expensive) POP3 tools, the DLL from http://www.marshallsoft.com and the very powerful ocx from Chilkat: http://www.chilkatsoft.com/email-activex.asp Both feature excellent service which alone may very well be worth the money you pay. /gustav >>> max at sherman.org.uk 12-02-2006 16:27:58 >>> Thanks Marty, none of these did the trick, but they did start me hopping across the sites. I eventually came up with FREEPOP which I have started making use of. It describes itself as: Description: FreePOP is an ActiveX control that allows read/write access to a POP3 mailbox and the messages in the mailbox. This ActiveX control was developed with Microsoft Visual Basic 6.0-SP4. Possible uses: FreePOP allows you to find out the number of unread messages in a POP3 mailbox. FreePOP allows you access to the various headers of a message (i.e. Subject, Date, From, etc.) FreePOP allows you to retrieve the contents of a message. FreePOP allows you to selectively delete a message. FreePOP allows you to read a message directly into a file. Documentation is good and I had it working in no time at all. I just need to program it in so that it operates in the way I want. Thanks for kick-starting me. Regards Max From erbachs at gmail.com Sun Feb 12 12:32:43 2006 From: erbachs at gmail.com (Steve Erbach) Date: Sun, 12 Feb 2006 12:32:43 -0600 Subject: [AccessD] Basic Query Design: Results In-Reply-To: References: Message-ID: <39cb22f30602121032p74a0fe9g972109f17b710a26@mail.gmail.com> J?rgen, Now, the $64,000 question: Did all the queries give you the same results? Just kidding! I'm interested to see that the Count query is quickest. It's certainly easier to understand...and should make for a lot less coding! Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/10/06, J?rgen Welz wrote: > Of course, after I posted, I had to try another method. > > The query is: > > SELECT tblEmployee.ContactID, [FirstName] & ' ' & [LastName] AS Expr1 > FROM (((tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = > tblEmployeeCourse.EmployeeID) INNER JOIN tblEmployeeCourse AS > tblEmployeeCourse_1 ON tblEmployeeCourse.EmployeeID = > tblEmployeeCourse_1.EmployeeID) INNER JOIN tblEmployeeCourse AS > tblEmployeeCourse_2 ON tblEmployeeCourse.EmployeeID = > tblEmployeeCourse_2.EmployeeID) INNER JOIN tblEmployeeCourse AS > tblEmployeeCourse_3 ON tblEmployeeCourse.EmployeeID = > tblEmployeeCourse_3.EmployeeID > WHERE (((tblEmployeeCourse.CourseID)=1) AND > ((tblEmployeeCourse_1.CourseID)=2) AND ((tblEmployeeCourse_2.CourseID)=4) > AND ((tblEmployeeCourse_3.CourseID)=5)) > ORDER BY [FirstName] & ' ' & [LastName]; > > > This is functionally equivalent to creating a query select where CourseID > =1, another where CourseID = 2, a third where CouseID = 4 and a 4th where > course ID = 5 and then joining them all on the ContactID. > > A few runs of the time test adding this as a 4th test item result in a time > that is 2nd fastest but consistently 70% slower than the fastest method that > uses the count. > > > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com > > > > > > >From: "J??rgen Welz" > > > >Had to try the speed comparisons between the three approaches to querying > >"Every Employee who has taken all of the following 4 courses". Tables are > >tblEmployee, tblEmployeeCourse (junction table) and tblCourse. There are > >1700 employees, about 2000 EmployeeCourse records and 18 course records. > > > >1. Using Count: qryTestCount > > > >SELECT tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName AS > >Estimator > >FROM tblEmployeeCourse INNER JOIN tblEmployee ON > >tblEmployeeCourse.EmployeeID = tblEmployee.ContactID > >WHERE (((tblEmployeeCourse.CourseID) In (1,2,4,5))) > >GROUP BY tblEmployeeCourse.EmployeeID, FirstName & ' ' & LastName > >HAVING (((Count(tblEmployee.ContactID)) = 4)) > >ORDER BY FirstName & ' ' & LastName; > > > >2. Nested Selects: qryTestNestedIn > > > >SELECT DISTINCT ContactID, FirstName & ' ' & LastName > >FROM tblEmployeeEmployeeType RIGHT JOIN tblEmployee ON > >tblEmployeeEmployeeType.EmployeeID = tblEmployee.ContactID > >WHERE tblEmployee.ContactID > 0 And tblEmployee.Deleted = False And > >FirstName > '' And LastName > '' And ContactID In (Select ContactID FROM > >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = > >tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM > >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = > >tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM > >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = > >tblEmployeeCourse.EmployeeID Where ContactID In (Select ContactID FROM > >tblEmployee INNER JOIN tblEmployeeCourse ON tblEmployee.ContactID = > >tblEmployeeCourse.EmployeeID Where CourseID = 1) And CourseID = 2) And > >CourseID = 5) And CourseID = 4) > >ORDER BY FirstName & ' ' & LastName; > > > >3. Relational Division: qryTestRelationalDiv > > > >SELECT DISTINCT EC1.EmployeeID, [FirstName] & " " & [LastName] AS Expr1 > >FROM tblEmployeeCourse AS EC1 INNER JOIN tblEmployee ON EC1.EmployeeID = > >tblEmployee.ContactID > >WHERE (((Exists (SELECT CourseID FROM tblCourse WHERE CourseID In > >(1,2,4,5) AND NOT EXISTS ( SELECT * FROM tblEmployeeCourse AS EC2 > > WHERE EC2.CourseID = tblCourse.CourseID AND EC2.EmployeeID = > >EC1.EmployeeID)))=False)) > >ORDER BY [FirstName] & " " & [LastName]; > > > >The following subroutine was used to open each query in sequence and report > >to the debug window: > > > >Public Declare Function timeGetTime Lib "Winmm" () As Long > > > >Sub testQuerySpeed() > > Dim r As DAO.Recordset > > Dim db As DAO.Database > > Dim lngi As Long > > Dim t As Long > > > > Set db = CurrentDb > > t = timeGetTime > > For lngi = 0 To 50 > > Set r = db.OpenRecordset("qryTestCount") > > Next > > Debug.Print "Using Count " & timeGetTime - t > > t = timeGetTime > > For lngi = 0 To 50 > > Set r = db.OpenRecordset("qryTestNestedIn") > > Next > > Debug.Print "Using Nested Join " & timeGetTime - t > > t = timeGetTime > > For lngi = 0 To 50 > > Set r = db.OpenRecordset("qryTestRelationalDiv") > > Next > > Debug.Print "Using RelationalDivision " & timeGetTime - t > > r.Close > > Set r = Nothing > >End Sub > > > >The results in the immediate window (in milliseconds), run 5 minutes apart > >speak for themselves: > > > >Using Count 5219 > >Using Nested Join 34796 > >Using RelationalDivision 13563 > > > >Using Count 7750 > >Using Nested Join 53625 > >Using RelationalDivision 17000 > > > >Ciao > >J?rgen Welz > >Edmonton, Alberta > >jwelz 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 > > > -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security From max at sherman.org.uk Sun Feb 12 13:16:41 2006 From: max at sherman.org.uk (Max Sherman) Date: Sun, 12 Feb 2006 19:16:41 -0000 Subject: [AccessD] Email using SMTP In-Reply-To: Message-ID: <000b01c63008$dc38a810$8bf31452@server> Hi Gustav, Yes, I looked at both of those but I *think* the Free one will give me all that I need (but of course, I won't know for sure until I hit a block). What I would like is the actual API code that utilise the winsock so that I can do away with the ActiveX completely. In brief it offers: FreePOP Methods Connect - Disconnect - SetCurrentMsg - RetrieveCurrentMsg - DeleteCurrentMsg - ResetDeletedMsgs - GetOtherHeader - strHeaderLine - WriteCurrentMsgToFile - GetStringValueOfProperty - FreePOP Properties POPHostname - POPPort - POPUsername - POPPassword - POPTimeout - Status - StatusText - Error ErrorText - MsgCount - MsgNumber - MsgUniqueID - MsgHeaders - MsgSubject - MsgFrom - MsgReturnPath - MsgReplyTo - MsgDate - MsgSizeInK - ConnectResponse - MsgContents - DebugMode - DebugFile FreePOP Events MsgReadStatus Message read so far (in K) Message size (in K) Percent completed Thanks for the feedback. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 12 February 2006 16:12 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email using SMTP Hi Max FreePOP may lack some features (I've not used it): http://www.harm.net/FreePOP However, I've used two (not free but not expensive) POP3 tools, the DLL from http://www.marshallsoft.com and the very powerful ocx from Chilkat: http://www.chilkatsoft.com/email-activex.asp Both feature excellent service which alone may very well be worth the money you pay. /gustav >>> max at sherman.org.uk 12-02-2006 16:27:58 >>> Thanks Marty, none of these did the trick, but they did start me hopping across the sites. I eventually came up with FREEPOP which I have started making use of. It describes itself as: Description: FreePOP is an ActiveX control that allows read/write access to a POP3 mailbox and the messages in the mailbox. This ActiveX control was developed with Microsoft Visual Basic 6.0-SP4. Possible uses: FreePOP allows you to find out the number of unread messages in a POP3 mailbox. FreePOP allows you access to the various headers of a message (i.e. Subject, Date, From, etc.) FreePOP allows you to retrieve the contents of a message. FreePOP allows you to selectively delete a message. FreePOP allows you to read a message directly into a file. Documentation is good and I had it working in no time at all. I just need to program it in so that it operates in the way I want. Thanks for kick-starting me. Regards Max -- 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 12 13:36:13 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 12 Feb 2006 20:36:13 +0100 Subject: [AccessD] Email using SMTP Message-ID: Hi Max Don't do that unless for fun or if you don't know what to do. It's for a reason that so many controls are available ... If you are trying to avoid installation issues, stick with a DLL solution like that from Marshall. Or use a command line util that saves to files which you later can parse like GetMail: http://www.xmailserver.org/davide.html /gustav >>> max at sherman.org.uk 12-02-2006 20:16:41 >>> Hi Gustav, Yes, I looked at both of those but I *think* the Free one will give me all that I need (but of course, I won't know for sure until I hit a block). What I would like is the actual API code that utilise the winsock so that I can do away with the ActiveX completely. In brief it offers: FreePOP Methods Connect - Disconnect - SetCurrentMsg - RetrieveCurrentMsg - DeleteCurrentMsg - ResetDeletedMsgs - GetOtherHeader - strHeaderLine - WriteCurrentMsgToFile - GetStringValueOfProperty - FreePOP Properties POPHostname - POPPort - POPUsername - POPPassword - POPTimeout - Status - StatusText - Error ErrorText - MsgCount - MsgNumber - MsgUniqueID - MsgHeaders - MsgSubject - MsgFrom - MsgReturnPath - MsgReplyTo - MsgDate - MsgSizeInK - ConnectResponse - MsgContents - DebugMode - DebugFile FreePOP Events MsgReadStatus Message read so far (in K) Message size (in K) Percent completed Thanks for the feedback. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 12 February 2006 16:12 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email using SMTP Hi Max FreePOP may lack some features (I've not used it): http://www.harm.net/FreePOP However, I've used two (not free but not expensive) POP3 tools, the DLL from http://www.marshallsoft.com and the very powerful ocx from Chilkat: http://www.chilkatsoft.com/email-activex.asp Both feature excellent service which alone may very well be worth the money you pay. /gustav >>> max at sherman.org.uk 12-02-2006 16:27:58 >>> Thanks Marty, none of these did the trick, but they did start me hopping across the sites. I eventually came up with FREEPOP which I have started making use of. It describes itself as: Description: FreePOP is an ActiveX control that allows read/write access to a POP3 mailbox and the messages in the mailbox. This ActiveX control was developed with Microsoft Visual Basic 6.0-SP4. Possible uses: FreePOP allows you to find out the number of unread messages in a POP3 mailbox. FreePOP allows you access to the various headers of a message (i.e. Subject, Date, From, etc.) FreePOP allows you to retrieve the contents of a message. FreePOP allows you to selectively delete a message. FreePOP allows you to read a message directly into a file. Documentation is good and I had it working in no time at all. I just need to program it in so that it operates in the way I want. Thanks for kick-starting me. Regards Max From shamil at users.mns.ru Sun Feb 12 15:29:47 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Mon, 13 Feb 2006 00:29:47 +0300 Subject: [AccessD] web site access tracker References: <006001c62ef2$442ef810$017ba8c0@xpserver> Message-ID: <003001c6301b$740b36a0$6501a8c0@Nant> Jim, As far as I can see here is good and free software HTTP-ANALYZE 2.4 (http://www.http-analyze.org/) Shamil ----- Original Message ----- From: "Jim Lawrence" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 11, 2006 1:02 PM Subject: [AccessD] web site access tracker > Hi All: > > Does anyone know of or has made a web site access tracking program that we > can install into the DBA web site. (We had one before but the app supplier > started adding pop-up ads.) > > I am not sure of all the languages that are supported by our web site > provider but they do support ASP and ASP.Net (and probably PHP and Perl > would be my guess.) > > We have an operational MS SQL server where details can be stored. > > > TIA > Jim > > -- > 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 12 16:59:40 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 12 Feb 2006 14:59:40 -0800 Subject: [AccessD] web site access tracker In-Reply-To: <003001c6301b$740b36a0$6501a8c0@Nant> Message-ID: <000a01c63028$018dc090$017ba8c0@xpserver> Hi Shamil: Thanks for the heads up. I will looking into it and when I get some comments back form our ISP then should be able to process... May have to work as a link though it would be nicer if we could host it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: February 12, 2006 1:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] web site access tracker Jim, As far as I can see here is good and free software HTTP-ANALYZE 2.4 (http://www.http-analyze.org/) Shamil ----- Original Message ----- From: "Jim Lawrence" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 11, 2006 1:02 PM Subject: [AccessD] web site access tracker > Hi All: > > Does anyone know of or has made a web site access tracking program that we > can install into the DBA web site. (We had one before but the app supplier > started adding pop-up ads.) > > I am not sure of all the languages that are supported by our web site > provider but they do support ASP and ASP.Net (and probably PHP and Perl > would be my guess.) > > We have an operational MS SQL server where details can be stored. > > > TIA > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sun Feb 12 21:32:22 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 12 Feb 2006 19:32:22 -0800 Subject: [AccessD] (OT) VB Express + SQL Server Express ?? References: <007201c62f4f$4046c720$017ba8c0@xpserver> Message-ID: <43EFFDC6.1030700@shaw.ca> You can also use tools like this to turn Access Form and Report applications into Web-enabled Crystal Reports http://doc.advisor.com/Articles.nsf/nl/12367 Jim Lawrence wrote: >Hi Marty: > >That is brilliant.... have been about to start a search on relevant >reporting for a VB.Net project. > >Excellent mind reading! :-) > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: February 11, 2006 1:01 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] (OT) VB Express + SQL Server Express ?? > >Why not just call Access Reports from VB.Net >You will need either the Microsoft Office XP or 2003 Primary Interop >Assemblies (PIAs). >Microsoft Office XP primary interop assemblies (PIAs) are available for >download >XP >http://support.microsoft.com/kb/328912/EN-US/ >2003 >http://support.microsoft.com/kb/897646/ >Then >How To Automate Microsoft Access From Visual Basic .NET >http://support.microsoft.com/default.aspx?scid=kb;en-us;317113 > >or more general > >http://support.microsoft.com/kb/311452/ >http://msdn.microsoft.com/office/default.aspx?pull=/library/en-us/odc_of2003 >_bk/html/officeinteroperabilitych2_part1.asp > > you may have to reference the Microsoft.Office.Interop.Excel namespace >through an alias, like so: > >using Excel = Microsoft.Office.Interop.Excel; >simple access vb.net access program > Developing Office 2003 solutions with .NET >http://builder.com.com/5100-6373_14-5315974.html#Listing%20A > > > > >Dan Waters wrote: > > > >>I've downloaded VB Express to get a look at the features. I've never >>developed with VB before (just Access), and I remember reading that >>subforms/subreports aren't available in VB. I looked through the list of >>controls for forms, and didn't find any reference to subforms/subreports. >> >>Also, VB doesn't have a reporting feature like Access. SS 2005 has >>Reporting Services, but SS Express doesn't. >> >>So, is the idea of using VB Express with SQL Server Express for business >>applications not feasible? >> >>Does anyone have experience using these products yet? >> >>Dan >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From max at sherman.org.uk Mon Feb 13 01:51:55 2006 From: max at sherman.org.uk (Max Sherman) Date: Mon, 13 Feb 2006 07:51:55 -0000 Subject: [AccessD] Email using SMTP In-Reply-To: Message-ID: <001901c63072$5d43fea0$8bf31452@server> Hi Gustav, Thanks for the link to Davide's page. Lots there for me to look at - brilliant link. Who/what is Marshall? Is there a link for him/it? Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 12 February 2006 19:36 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email using SMTP Hi Max Don't do that unless for fun or if you don't know what to do. It's for a reason that so many controls are available ... If you are trying to avoid installation issues, stick with a DLL solution like that from Marshall. Or use a command line util that saves to files which you later can parse like GetMail: http://www.xmailserver.org/davide.html /gustav >>> max at sherman.org.uk 12-02-2006 20:16:41 >>> Hi Gustav, Yes, I looked at both of those but I *think* the Free one will give me all that I need (but of course, I won't know for sure until I hit a block). What I would like is the actual API code that utilise the winsock so that I can do away with the ActiveX completely. In brief it offers: FreePOP Methods Connect - Disconnect - SetCurrentMsg - RetrieveCurrentMsg - DeleteCurrentMsg - ResetDeletedMsgs - GetOtherHeader - strHeaderLine - WriteCurrentMsgToFile - GetStringValueOfProperty - FreePOP Properties POPHostname - POPPort - POPUsername - POPPassword - POPTimeout - Status - StatusText - Error ErrorText - MsgCount - MsgNumber - MsgUniqueID - MsgHeaders - MsgSubject - MsgFrom - MsgReturnPath - MsgReplyTo - MsgDate - MsgSizeInK - ConnectResponse - MsgContents - DebugMode - DebugFile FreePOP Events MsgReadStatus Message read so far (in K) Message size (in K) Percent completed Thanks for the feedback. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 12 February 2006 16:12 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email using SMTP Hi Max FreePOP may lack some features (I've not used it): http://www.harm.net/FreePOP However, I've used two (not free but not expensive) POP3 tools, the DLL from http://www.marshallsoft.com and the very powerful ocx from Chilkat: http://www.chilkatsoft.com/email-activex.asp Both feature excellent service which alone may very well be worth the money you pay. /gustav >>> max at sherman.org.uk 12-02-2006 16:27:58 >>> Thanks Marty, none of these did the trick, but they did start me hopping across the sites. I eventually came up with FREEPOP which I have started making use of. It describes itself as: Description: FreePOP is an ActiveX control that allows read/write access to a POP3 mailbox and the messages in the mailbox. This ActiveX control was developed with Microsoft Visual Basic 6.0-SP4. Possible uses: FreePOP allows you to find out the number of unread messages in a POP3 mailbox. FreePOP allows you access to the various headers of a message (i.e. Subject, Date, From, etc.) FreePOP allows you to retrieve the contents of a message. FreePOP allows you to selectively delete a message. FreePOP allows you to read a message directly into a file. Documentation is good and I had it working in no time at all. I just need to program it in so that it operates in the way I want. Thanks for kick-starting me. Regards Max -- 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 13 02:31:08 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 13 Feb 2006 09:31:08 +0100 Subject: [AccessD] Email using SMTP Message-ID: Hi Max Yes: http://www.marshallsoft.com /gustav >>> max at sherman.org.uk 13-02-2006 08:51 >>> Hi Gustav, Thanks for the link to Davide's page. Lots there for me to look at - brilliant link. Who/what is Marshall? Is there a link for him/it? Regards Max From Johncliviger at aol.com Mon Feb 13 04:41:45 2006 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Mon, 13 Feb 2006 05:41:45 EST Subject: [AccessD] Printing from AXP where printer is elsewhere Message-ID: Hi all I'm printing documents from AXP using cmd_Onclick to drive a report and all is fine. That is until the printer elsewhere in the building cocks it up and we need a re-print. How can I know sat at my AXP workstation that the document has fails to print? TIA john c From jwcolby at ColbyConsulting.com Mon Feb 13 09:39:11 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Mon, 13 Feb 2006 10:39:11 -0500 Subject: [AccessD] Self installing widget for Outlook Message-ID: <003001c630b3$a3d6cb40$647aa8c0@ColbyM6805> Does anyone know how to create for Outlook a self installing toolbar which accesses a macro from a button on the toolbar. The toolbar would need to be created and the code inserted into Outlook. John W. Colby www.ColbyConsulting.com From DWUTKA at marlow.com Mon Feb 13 10:38:05 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 13 Feb 2006 10:38:05 -0600 Subject: [AccessD] OT: Affiliate Program Message-ID: <17724746D360394AA3BFE5B8D40A9C1B49E70D@main2.marlow.com> That's pretty simple to do from an ASP page. You need to look at the referrer property. If you open a browser, and type in an address, the referer property in the HTTP header information is blank. However, if you click a link on a site, the referer property will have the site you are coming from in it. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, February 10, 2006 12:54 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Affiliate Program Dear List: I have a web site where we are selling The Sleep Advisor (www.thesleepadvisor.com). Someone with an alternative health site has proposed to promote The Sleep Advisor on her site and send folks to our site. She asks if we have an affiliate program. Which we ain't. I looked into it a bit and it doesn't look trivial. Basically we need a way to know if someone visiting our site and buying The Sleep Advisor originated from her site. We're hosted by Affinity and have Urchin statistics but I don't see anything there that would be helpful right off. Does anyone know a slick, quick way to do this? MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgeller at cce.umn.edu Mon Feb 13 11:00:52 2006 From: sgeller at cce.umn.edu (Susan Geller) Date: Mon, 13 Feb 2006 11:00:52 -0600 Subject: [AccessD] Office 2003 and Visual Source Safe Message-ID: <89934FC7BFD7AC40AC64F2A29B0C2D638A98A2@mail.cce.local> We have been using the Office XP Developer version for Access and have been using the feature that allows us to check our projects into Visual Source Safe. We are totally reliant on this because we have multiple developers working on a single project. In Office 2003, this feature is not available. Does anybody know how to connect an Access file to VSS starting in Office 2003? Thanks. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 From max at sherman.org.uk Mon Feb 13 11:01:31 2006 From: max at sherman.org.uk (Max Sherman) Date: Mon, 13 Feb 2006 17:01:31 -0000 Subject: [AccessD] Email using SMTP In-Reply-To: Message-ID: <001a01c630bf$24b50e10$8bf31452@server> Thanks Gustav, I will check it out. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 13 February 2006 08:31 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Email using SMTP Hi Max Yes: http://www.marshallsoft.com /gustav >>> max at sherman.org.uk 13-02-2006 08:51 >>> Hi Gustav, Thanks for the link to Davide's page. Lots there for me to look at - brilliant link. Who/what is Marshall? Is there a link for him/it? Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgeller at cce.umn.edu Mon Feb 13 11:09:36 2006 From: sgeller at cce.umn.edu (Susan Geller) Date: Mon, 13 Feb 2006 11:09:36 -0600 Subject: [AccessD] Office 2003 and Visual Source Safe Message-ID: <89934FC7BFD7AC40AC64F2A29B0C2D638A98BF@mail.cce.local> Got my own answer: -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Geller Sent: Monday, February 13, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] Office 2003 and Visual Source Safe We have been using the Office XP Developer version for Access and have been using the feature that allows us to check our projects into Visual Source Safe. We are totally reliant on this because we have multiple developers working on a single project. In Office 2003, this feature is not available. Does anybody know how to connect an Access file to VSS starting in Office 2003? Thanks. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgeller at cce.umn.edu Mon Feb 13 11:10:18 2006 From: sgeller at cce.umn.edu (Susan Geller) Date: Mon, 13 Feb 2006 11:10:18 -0600 Subject: [AccessD] Office 2003 and Visual Source Safe Message-ID: <89934FC7BFD7AC40AC64F2A29B0C2D638A98C2@mail.cce.local> Oops. And the answer is reported in this article for those who are interested: http://support.microsoft.com/kb/837136/en-us --Susan -----Original Message----- From: Susan Geller Sent: Monday, February 13, 2006 11:10 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Office 2003 and Visual Source Safe Got my own answer: -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Geller Sent: Monday, February 13, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] Office 2003 and Visual Source Safe We have been using the Office XP Developer version for Access and have been using the feature that allows us to check our projects into Visual Source Safe. We are totally reliant on this because we have multiple developers working on a single project. In Office 2003, this feature is not available. Does anybody know how to connect an Access file to VSS starting in Office 2003? Thanks. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 -- 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 13 11:10:13 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 13 Feb 2006 09:10:13 -0800 Subject: [AccessD] Office 2003 and Visual Source Safe Message-ID: I believe I posted the link to the download within the last week or so, Susan. http://msdn.microsoft.com/vstudio/previous/ssafe/ Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Geller Sent: Monday, February 13, 2006 9:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] Office 2003 and Visual Source Safe We have been using the Office XP Developer version for Access and have been using the feature that allows us to check our projects into Visual Source Safe. We are totally reliant on this because we have multiple developers working on a single project. In Office 2003, this feature is not available. Does anybody know how to connect an Access file to VSS starting in Office 2003? Thanks. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Mon Feb 13 11:17:17 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 13 Feb 2006 12:17:17 -0500 Subject: [AccessD] OT: Affiliate Program In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B49E70D@main2.marlow.com> References: <17724746D360394AA3BFE5B8D40A9C1B49E70D@main2.marlow.com> Message-ID: On 13/02/06, DWUTKA at marlow.com wrote: > That's pretty simple to do from an ASP page. You need to look at the > referrer property. If you open a browser, and type in an address, the > referer property in the HTTP header information is blank. However, if you > click a link on a site, the referer property will have the site you are > coming from in it. Assuming that the user (or someone between the end user and the 2 servers like a proxy server or some such) hasn't disabled sending the Referer header. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From Erwin.Craps at ithelps.be Mon Feb 13 14:48:13 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 13 Feb 2006 21:48:13 +0100 Subject: [AccessD] OT: Compare 2 directories Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B6380@stekelbes.ithelps.local> It is wonderfull :-) -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Nancy Lytle Verzonden: zondag 12 februari 2006 14:18 Aan: 'Access Developers discussion and problem solving' Onderwerp: Re: [AccessD] OT: Compare 2 directories You might try Microsoft's SyncToy, it is a wonderful little utility for sync'ing, etc. Nancy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Sunday, February 12, 2006 12:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Compare 2 directories Any one have or know a tool where you can compare two directories and synchronize them. Thanks Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.6/257 - Release Date: 2/10/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Mon Feb 13 15:34:56 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 13 Feb 2006 15:34:56 -0600 Subject: [AccessD] Make table query fails Message-ID: When I try to run the following query I get a message of invalid argument. When I try to view the results in datasheet view it work fine. What might be going wrong? I tried writing the results to a different table with no success. No I did not write this ugly query - I was given it. Thanks for ideas. SELECT [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells to Alloc].CO2PAT_SDate, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API, ConfigMaster.PID AS Other_Pattern, Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4) AS Other_Pattern_as_Well, Constants!SDate AS Other_Pattern_SDate, SurfaceMaster.PID AS Other_Pattern_as_Well_API INTO [Funky Temp Other Ptrn to Alloc] FROM SurfaceMaster, [Funky Ptrn and Wells to Alloc] INNER JOIN (ConfigMaster INNER JOIN Constants ON ConfigMaster.PID = Constants.PID) ON [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API = ConfigMaster.ChildPID WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Constants.Date)<#1/1/1960#) AND ((SurfaceMaster.Name)=Right([ConfigMaster]![PID],Len([ConfigMaster]![PID ])-4))) ORDER BY [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT, Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From martyconnelly at shaw.ca Mon Feb 13 15:39:45 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 13 Feb 2006 13:39:45 -0800 Subject: [AccessD] Printing from AXP where printer is elsewhere References: Message-ID: <43F0FCA1.8000803@shaw.ca> Lets say this maybe difficult but not impossible. The key thing is not all printer drivers play nice and may not give you the error codes you are hoping for. You cannot directly connect to the hardware and must use the printer driver for information. The drivers error's reporting back could "Unknown" or "Other" when the printer consoles display "Paper Jam" etc. You could look at the print queue and gather information there to see if job has finished. But this means constant polling of the printer or using event methods. But the print queue does not track finished jobs. Also your user app may not run with sufficient OS permissions. These guys at Merrion used to have a lot of info about VB using above methods but they have moved on to dotNet and the info is bit harder to get The info was moved to this Yahoo Group Look at printer status http://www.merrioncomputing.com/Programming/PrintStatus.htm Have a look at the sample files here and the archives of their message lists http://groups.yahoo.com/group/MerrionComputing/messages http://groups.yahoo.com/group/MerrionComputing/files/ Printer Queue Watch Docs http://groups.yahoo.com/group/MerrionComputing/files/PrinterQueueWatch%20Help/ You might get away with some of these WMI routines if your drivers are WMI compatible Sub lookupprinters() On Error Resume Next strComputer = "." Set objWMIservice = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIservice.ExecQuery("Select * from Win32_Printer", , 48) For Each objitem In colItems Debug.Print "Attributes: " & objitem.Attributes Debug.Print "Availability: " & objitem.Availability Debug.Print "AveragePagesPerMinute: " & objitem.AveragePagesPerMinute Debug.Print "Capabilities: " & CLng(objitem.Capabilities(0)) Debug.Print "CapabilityDescriptions: " & objitem.CapabilityDescriptions(0) Debug.Print "Caption: " & objitem.Caption Debug.Print "ConfigManagerErrorCode: " & objitem.ConfigManagerErrorCode Debug.Print "ConfigManagerUserConfig: " & objitem.ConfigManagerUserConfig Debug.Print "CreationClassName: " & objitem.CreationClassName Debug.Print "DefaultPriority: " & objitem.DefaultPriority Debug.Print "Description: " & objitem.Description Debug.Print "DetectedErrorState: " & objitem.DetectedErrorState Debug.Print "DeviceID: " & objitem.DeviceID Debug.Print "DriverName: " & objitem.DriverName Debug.Print "ErrorCleared: " & objitem.ErrorCleared Debug.Print "ErrorDescription: " & objitem.ErrorDescription Debug.Print "HorizontalResolution: " & objitem.HorizontalResolution ' Debug.Print "InstallDate: " & CDate(objitem.InstallDate) 'null check above Debug.Print "JobCountSinceLastReset: " & objitem.JobCountSinceLastReset Debug.Print "LanguagesSupported: " & objitem.LanguagesSupported Debug.Print "LastErrorCode: " & objitem.LastErrorCode Debug.Print "Location: " & objitem.Location Debug.Print "Name: " & objitem.Name Debug.Print "PaperSizesSupported: " & objitem.PaperSizesSupported(0) Debug.Print "PNPDeviceID: " & objitem.PNPDeviceID Debug.Print "PortName: " & objitem.PortName Debug.Print "PowerManagementCapabilities: " & objitem.PowerManagementCapabilities Debug.Print "PowerManagementSupported: " & objitem.PowerManagementSupported Debug.Print "PrinterPaperNames: " & objitem.PrinterPaperNames(0) Debug.Print "PrinterState: " & objitem.PrinterState Debug.Print "PrinterStatus: " & objitem.PrinterStatus Debug.Print "PrintJobDataType: " & objitem.PrintJobDataType Debug.Print "PrintProcessor: " & objitem.PrintProcessor Debug.Print "SeparatorFile: " & objitem.SeparatorFile Debug.Print "ServerName: " & objitem.ServerName Debug.Print "ShareName: " & objitem.ShareName Debug.Print "SpoolEnabled: " & objitem.SpoolEnabled ' Debug.Print "StartTime: " & CDate(objitem.StartTime) ' 'null check above Debug.Print "Status: " & objitem.Status Debug.Print "StatusInfo: " & objitem.StatusInfo Debug.Print "SystemCreationClassName: " & objitem.SystemCreationClassName Debug.Print "SystemName: " & objitem.SystemName 'Debug.Print "TimeOfLastReset: " & CDate(objitem.TimeOfLastReset) 'null check above Debug.Print "UntilTime: " & objitem.UntilTime Debug.Print "VerticalResolution: " & objitem.VerticalResolution Next Set colItems1 = objWMIservice.ExecQuery("Select * from Win32_Printer", , 48) For Each objitem In colItems1 Debug.Print "Attributes: " & objitem.Attributes Debug.Print "Attributes: " & objitem.Name Next End Sub Sub liststatus() strComputer = "." Set objWMIservice = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colPrinters = objWMIservice. _ ExecNotificationQuery("Select * from __instancemodificationevent " _ & "within 30 where TargetInstance isa 'Win32_Printer'") I = 0 Do While I = 10 Set objprinter = colPrinters.NextEvent If objprinter.TargetInstance.PrinterStatus <> _ objprinter.PreviousInstance.PrinterStatus Then Select Case objprinter.TargetInstance.PrinterStatus Case 1 strCurrentState = "Other" Case 2 strCurrentState = "Unknown" Case 3 strCurrentState = "Idle" Case 4 strCurrentState = "Printing" Case 5 strCurrentState = "Warming Up" End Select Select Case objprinter.PreviousInstance.PrinterStatus Case 1 strPreviousState = "Other" Case 2 strPreviousState = "Unknown" Case 3 strPreviousState = "Idle" Case 4 strPreviousState = "Printing" Case 5 strPreviousState = "Warming Up" End Select Debug.Print objprinter.TargetInstance.Name _ & " is " & strCurrentState _ & ". The printer previously was " & strPreviousState & "." End If I = I + 1 Loop End Sub Sub testprt() Dim objWMIservice As Object Dim colInstalledPrinters As Object Dim objprinter As Variant Dim strComputer As String 'printer codes 'http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_printer.asp 'Set objWMIservice = _ 'GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") strComputer = "." Set objWMIservice = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") ' Grab the list of printers in the colInstallPrinters list. Set colInstalledPrinters = objWMIservice.ExecQuery("Select * from Win32_Printer ") ' Run through the printer collection. For Each objprinter In colInstalledPrinters Debug.Print objprinter.Name If objprinter.Status = "Error" Then Debug.Print "Detected Printer error" & objprinter.Name Debug.Print "DetectedErrorState - " & objprinter.DetectedErrorState Debug.Print "ExtendedDetectedErrorState - " & _ objprinter.ExtendedDetectedErrorState Debug.Print "PrinterStatus - " & objprinter.PrinterStatus Debug.Print "ExtendedPrinterStatus - " & _ objprinter.ExtendedPrinterStatus End If Next Set colInstalledPrinters = Nothing Set objWMIservice = Nothing End Sub Johncliviger at aol.com wrote: >Hi all >I'm printing documents from AXP using cmd_Onclick to drive a report and all >is fine. That is until the printer elsewhere in the building cocks it up and >we need a re-print. How can I know sat at my AXP workstation that the document >has fails to print? > >TIA > >john c > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Mon Feb 13 15:44:00 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 13 Feb 2006 13:44:00 -0800 Subject: [AccessD] Printing from AXP where printer is elsewhere References: Message-ID: <43F0FDA0.5070703@shaw.ca> Some alternate code using winSpool to list status of printer and it's jobs in the queue Option Compare Database Option Explicit Public Declare Function OpenPrinter Lib "winspool.drv" _ Alias "OpenPrinterA" _ (ByVal pPrinterName As String, _ phPrinter As Long, _ pDefault As PRINTER_DEFAULTS) _ As Long Public Declare Function GetPrinter Lib "winspool.drv" Alias "GetPrinterA" _ (ByVal hPrinter As Long, _ ByVal Level As Long, _ pPrinter As Byte, _ ByVal cbBuf As Long, _ pcbNeeded As Long) _ As Long Public Declare Function ClosePrinter Lib "winspool.drv" _ (ByVal hPrinter As Long) _ As Long Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _ (Destination As Any, _ Source As Any, _ ByVal Length As Long) Public Declare Function EnumJobs Lib "winspool.drv" Alias "EnumJobsA" _ (ByVal hPrinter As Long, _ ByVal FirstJob As Long, _ ByVal NoJobs As Long, _ ByVal Level As Long, _ pJob As Byte, _ ByVal cdBuf As Long, _ pcbNeeded As Long, _ pcReturned As Long) _ As Long ' constants for PRINTER_DEFAULTS structure Public Const PRINTER_ACCESS_USE = &H8 Public Const PRINTER_ACCESS_ADMINISTER = &H4 ' constants for DEVMODE structure Public Const CCHDEVICENAME = 32 Public Const CCHFORMNAME = 32 Public Type PRINTER_DEFAULTS pDatatype As String pDevMode As Long DesiredAccess As Long End Type Public Type DEVMODE dmDeviceName As String * CCHDEVICENAME dmSpecVersion As Integer dmDriverVersion As Integer dmSize As Integer dmDriverExtra As Integer dmFields As Long dmOrientation As Integer dmPaperSize As Integer dmPaperLength As Integer dmPaperWidth As Integer dmScale As Integer dmCopies As Integer dmDefaultSource As Integer dmPrintQuality As Integer dmColor As Integer dmDuplex As Integer dmYResolution As Integer dmTTOption As Integer dmCollate As Integer dmFormName As String * CCHFORMNAME dmLogPixels As Integer dmBitsPerPel As Long dmPelsWidth As Long dmPelsHeight As Long dmDisplayFlags As Long dmDisplayFrequency As Long End Type Type SYSTEMTIME wYear As Integer wMonth As Integer wDayOfWeek As Integer wDay As Integer wHour As Integer wMinute As Integer wSecond As Integer wMilliseconds As Integer End Type Type JOB_INFO_2 JobId As Long pPrinterName As Long pMachineName As Long pUserName As Long pDocument As Long pNotifyName As Long pDatatype As Long pPrintProcessor As Long pParameters As Long pDriverName As Long pDevMode As Long pStatus As Long pSecurityDescriptor As Long Status As Long Priority As Long Position As Long StartTime As Long UntilTime As Long TotalPages As Long Size As Long Submitted As SYSTEMTIME time As Long PagesPrinted As Long End Type Type PRINTER_INFO_2 pServerName As Long pPrinterName As Long pShareName As Long pPortName As Long pDriverName As Long pComment As Long pLocation As Long pDevMode As Long pSepFile As Long pPrintProcessor As Long pDatatype As Long pParameters As Long pSecurityDescriptor As Long Attributes As Long Priority As Long DefaultPriority As Long StartTime As Long UntilTime As Long Status As Long cJobs As Long AveragePPM As Long End Type Public Const ERROR_INSUFFICIENT_BUFFER = 122 Public Const PRINTER_STATUS_BUSY = &H200 Public Const PRINTER_STATUS_DOOR_OPEN = &H400000 Public Const PRINTER_STATUS_ERROR = &H2 Public Const PRINTER_STATUS_INITIALIZING = &H8000 Public Const PRINTER_STATUS_IO_ACTIVE = &H100 Public Const PRINTER_STATUS_MANUAL_FEED = &H20 Public Const PRINTER_STATUS_NO_TONER = &H40000 Public Const PRINTER_STATUS_NOT_AVAILABLE = &H1000 Public Const PRINTER_STATUS_OFFLINE = &H80 Public Const PRINTER_STATUS_OUT_OF_MEMORY = &H200000 Public Const PRINTER_STATUS_OUTPUT_BIN_FULL = &H800 Public Const PRINTER_STATUS_PAGE_PUNT = &H80000 Public Const PRINTER_STATUS_PAPER_JAM = &H8 Public Const PRINTER_STATUS_PAPER_OUT = &H10 Public Const PRINTER_STATUS_PAPER_PROBLEM = &H40 Public Const PRINTER_STATUS_PAUSED = &H1 Public Const PRINTER_STATUS_PENDING_DELETION = &H4 Public Const PRINTER_STATUS_PRINTING = &H400 Public Const PRINTER_STATUS_PROCESSING = &H4000 Public Const PRINTER_STATUS_TONER_LOW = &H20000 Public Const PRINTER_STATUS_USER_INTERVENTION = &H100000 Public Const PRINTER_STATUS_WAITING = &H2000 Public Const PRINTER_STATUS_WARMING_UP = &H10000 Public Const JOB_STATUS_PAUSED = &H1 Public Const JOB_STATUS_ERROR = &H2 Public Const JOB_STATUS_DELETING = &H4 Public Const JOB_STATUS_SPOOLING = &H8 Public Const JOB_STATUS_PRINTING = &H10 Public Const JOB_STATUS_OFFLINE = &H20 Public Const JOB_STATUS_PAPEROUT = &H40 Public Const JOB_STATUS_PRINTED = &H80 Public Const JOB_STATUS_DELETED = &H100 Public Const JOB_STATUS_BLOCKED_DEVQ = &H200 Public Const JOB_STATUS_USER_INTERVENTION = &H400 Public Const JOB_STATUS_RESTART = &H800 Public Function GetString(ByVal PtrStr As Long) As String Dim StrBuff As String * 256 'Check for zero address If PtrStr = 0 Then GetString = " " Exit Function End If 'Copy data from PtrStr to buffer CopyMemory ByVal StrBuff, ByVal PtrStr, 64 'Strp any trailing nulls from sting GetString = StripNulls(StrBuff) End Function Public Function StripNulls(OriginalStr As String) As String 'Strip any trailing nulls from input string If (InStr(OriginalStr, Chr(0)) > 0) Then OriginalStr = Left(OriginalStr, InStr(OriginalStr, Chr(0)) - 1) End If 'Return modified string StripNulls = OriginalStr End Function Public Function PtrCtoVbString(Add As Long) As String Dim sTemp As String * 512, x As Long x = lstrcpy(sTemp, Add) If (InStr(1, sTemp, Chr(0)) = 0) Then PtrCtoVbString = "" Else PtrCtoVbString = Left(sTemp, InStr(1, sTemp, Chr(0)) - 1) End If End Function 'Amyuni PDF Converter 'HP Deskjet 3840 Series 'CheckPrinter("Amyuni PDF Converter","01") Public Function CheckPrinter(PrinterStr As String, JobStr As String) As String Dim hPrinter As Long Dim ByteBuf As Long, BytesNeeded As Long Dim PI2 As PRINTER_INFO_2 Dim JI2 As JOB_INFO_2 Dim PrinterInfo() As Byte Dim JobInfo() As Byte Dim result As Long, LastError As Long Dim PrinterName As String, tempStr As String Dim NumJI2 As Long Dim pDefaults As PRINTER_DEFAULTS Dim I As Integer 'Set a default return value if no errors occur CheckPrinter = "Printer info retrieved" 'NOTE: You can pick a printer from the Printers Collection 'or use the EnumPrinters() API to select a printer name. 'Use the default printer of Printers collection PrinterName = Printer.DeviceName ' or from parameter above PrinterName = PrinterStr 'Set desired access security setting pDefaults.DesiredAccess = PRINTER_ACCESS_USE 'Call API to get a handle to the printer result = OpenPrinter(PrinterName, hPrinter, pDefaults) If result = 0 Then 'If an error occured, display an error and exit sub CheckPrinter = "Cannot open printer " & PrinterName & _ ", Error: " & Err.LastDllError Exit Function End If 'Init BytesNeeded BytesNeeded = 0 'Clear the error object of any errors Err.Clear 'Determine the buffer size needed to get printer info result = GetPrinter(hPrinter, 2, 0&, 0&, BytesNeeded) 'Check for error calling GetPrinter If Err.LastDllError <> ERROR_INSUFFICIENT_BUFFER Then 'Display an error message, close printer, and exit sub CheckPrinter = " > GetPrinter Failed on initial call! <" ClosePrinter hPrinter Exit Function End If 'Due to a problem with GetPrinter on Windows 95, we must allocate 'a buffer as much as 3 times larger than the value returned by the 'initial call to GetPrinter. See page 790 of Charles Petzold's 'book "Programming Windows 95" for additional information. ReDim PrinterInfo(1 To BytesNeeded * 3) ByteBuf = BytesNeeded 'Call GetPrinter to get the status result = GetPrinter(hPrinter, 2, PrinterInfo(1), ByteBuf, _ BytesNeeded * 3) 'Check for errors If result = 0 Then 'Determine the error that occured LastError = Err.LastDllError() 'Display error message, close printer, and exit sub CheckPrinter = "Couldn't get Printer Status! Error = " _ & LastError ClosePrinter hPrinter Exit Function End If 'Copy contents of printer status byte array into a 'PRINTER_INFO_2 structure to separate the individual elements CopyMemory PI2, PrinterInfo(1), Len(PI2) 'Check if printer is in ready state If PI2.Status = 0 Then PrinterStr = "Printer Status = Ready" & vbCrLf Else tempStr = "" ' Clear If (PI2.Status And PRINTER_STATUS_BUSY) Then tempStr = tempStr & "Busy " End If If (PI2.Status And PRINTER_STATUS_DOOR_OPEN) Then tempStr = tempStr & "Printer Door Open " End If If (PI2.Status And PRINTER_STATUS_ERROR) Then tempStr = tempStr & "Printer Error " End If If (PI2.Status And PRINTER_STATUS_INITIALIZING) Then tempStr = tempStr & "Initializing " End If If (PI2.Status And PRINTER_STATUS_IO_ACTIVE) Then tempStr = tempStr & "I/O Active " End If If (PI2.Status And PRINTER_STATUS_MANUAL_FEED) Then tempStr = tempStr & "Manual Feed " End If If (PI2.Status And PRINTER_STATUS_NO_TONER) Then tempStr = tempStr & "No Toner " End If If (PI2.Status And PRINTER_STATUS_NOT_AVAILABLE) Then tempStr = tempStr & "Not Available " End If If (PI2.Status And PRINTER_STATUS_OFFLINE) Then tempStr = tempStr & "Off Line " End If If (PI2.Status And PRINTER_STATUS_OUT_OF_MEMORY) Then tempStr = tempStr & "Out of Memory " End If If (PI2.Status And PRINTER_STATUS_OUTPUT_BIN_FULL) Then tempStr = tempStr & "Output Bin Full " End If If (PI2.Status And PRINTER_STATUS_PAGE_PUNT) Then tempStr = tempStr & "Page Punt " End If If (PI2.Status And PRINTER_STATUS_PAPER_JAM) Then tempStr = tempStr & "Paper Jam " End If If (PI2.Status And PRINTER_STATUS_PAPER_OUT) Then tempStr = tempStr & "Paper Out " End If If (PI2.Status And PRINTER_STATUS_OUTPUT_BIN_FULL) Then tempStr = tempStr & "Output Bin Full " End If If (PI2.Status And PRINTER_STATUS_PAPER_PROBLEM) Then tempStr = tempStr & "Page Problem " End If If (PI2.Status And PRINTER_STATUS_PAUSED) Then tempStr = tempStr & "Paused " End If If (PI2.Status And PRINTER_STATUS_PENDING_DELETION) Then tempStr = tempStr & "Pending Deletion " End If If (PI2.Status And PRINTER_STATUS_PRINTING) Then tempStr = tempStr & "Printing " End If If (PI2.Status And PRINTER_STATUS_PROCESSING) Then tempStr = tempStr & "Processing " End If If (PI2.Status And PRINTER_STATUS_TONER_LOW) Then tempStr = tempStr & "Toner Low " End If If (PI2.Status And PRINTER_STATUS_USER_INTERVENTION) Then tempStr = tempStr & "User Intervention " End If If (PI2.Status And PRINTER_STATUS_WAITING) Then tempStr = tempStr & "Waiting " End If If (PI2.Status And PRINTER_STATUS_WARMING_UP) Then tempStr = tempStr & "Warming Up " End If If Len(tempStr) = 0 Then tempStr = "Unknown Status of " & PI2.Status End If PrinterStr = "Printer Status = " & tempStr & vbCrLf End If 'Add printer name, driver, and port to list PrinterStr = PrinterStr & "Printer Name = " & _ GetString(PI2.pPrinterName) & vbCrLf PrinterStr = PrinterStr & "Printer Driver Name = " & _ GetString(PI2.pDriverName) & vbCrLf PrinterStr = PrinterStr & "Printer Port Name = " & _ GetString(PI2.pPortName) & vbCrLf 'Call API to get size of buffer needed result = EnumJobs(hPrinter, 0&, &HFFFFFFFF, 2, ByVal 0&, 0&, _ BytesNeeded, NumJI2) 'Check if there are no current jobs and display appropriate message If BytesNeeded = 0 Then JobStr = "No Print Jobs!" Else 'Redim byte array to hold info about print job ReDim JobInfo(0 To BytesNeeded * 3) 'Call API to get print job info result = EnumJobs(hPrinter, 0&, &HFFFFFFFF, 2, JobInfo(0), _ BytesNeeded * 3, ByteBuf, NumJI2) 'Check for errors If result = 0 Then 'Get and display error, close printer, and exit sub LastError = Err.LastDllError CheckPrinter = " > EnumJobs Failed on second call! < Error = " _ & LastError ClosePrinter hPrinter Exit Function End If 'Copy contents of print job info byte array into a 'JOB_INFO_2 structure to separate the individual elements For I = 0 To NumJI2 - 1 ' Loop through jobs and walk the buffer CopyMemory JI2, JobInfo(I * Len(JI2)), Len(JI2) ' List info available on Jobs Debug.Print "Job ID" & vbTab & JI2.JobId Debug.Print "Name Of Printer" & vbTab & _ GetString(JI2.pPrinterName) Debug.Print "Name Of Machine That Created Job" & vbTab & _ GetString(JI2.pMachineName) Debug.Print "Print Job Owner's Name" & vbTab & _ GetString(JI2.pUserName) Debug.Print "Name Of Document" & vbTab & GetString(JI2.pDocument) Debug.Print "Name Of User To Notify" & vbTab & _ GetString(JI2.pNotifyName) Debug.Print "Type Of Data" & vbTab & GetString(JI2.pDatatype) Debug.Print "Print Processor" & vbTab & _ GetString(JI2.pPrintProcessor) Debug.Print "Print Processor Parameters" & vbTab & _ GetString(JI2.pParameters) Debug.Print "Print Driver Name" & vbTab & _ GetString(JI2.pDriverName) Debug.Print "Print Job 'P' Status" & vbTab & _ GetString(JI2.pStatus) Debug.Print "Print Job Status" & vbTab & JI2.Status Debug.Print "Print Job Priority" & vbTab & JI2.Priority Debug.Print "Position in Queue" & vbTab & JI2.Position Debug.Print "Earliest Time Job Can Be Printed" & vbTab & _ JI2.StartTime Debug.Print "Latest Time Job Will Be Printed" & vbTab & _ JI2.UntilTime Debug.Print "Total Pages For Entire Job" & vbTab & JI2.TotalPages Debug.Print "Size of Job In Bytes" & vbTab & JI2.Size 'Due to a bug since NT 3.51, the time member is not set correctly 'so don't use it on NT 3.51. Debug.Print "Elapsed Print Time" & vbTab & JI2.time Debug.Print "Pages Printed So Far" & vbTab & JI2.PagesPrinted 'Display basic job status info JobStr = JobStr & "Job ID = " & JI2.JobId & _ vbCrLf & "Total Pages = " & JI2.TotalPages & vbCrLf tempStr = "" 'Clear 'Check for a ready state If JI2.pStatus = 0& Then ' If pStatus is Null, check Status If JI2.Status = 0 Then tempStr = tempStr & "Ready! " & vbCrLf Else 'Check for the various print job states If (JI2.Status And JOB_STATUS_SPOOLING) Then tempStr = tempStr & "Spooling " End If If (JI2.Status And JOB_STATUS_OFFLINE) Then tempStr = tempStr & "Off line " End If If (JI2.Status And JOB_STATUS_PAUSED) Then tempStr = tempStr & "Paused " End If If (JI2.Status And JOB_STATUS_ERROR) Then tempStr = tempStr & "Error " End If If (JI2.Status And JOB_STATUS_PAPEROUT) Then tempStr = tempStr & "Paper Out " End If If (JI2.Status And JOB_STATUS_PRINTING) Then tempStr = tempStr & "Printing " End If If (JI2.Status And JOB_STATUS_USER_INTERVENTION) Then tempStr = tempStr & "User Intervention Needed " End If If Len(tempStr) = 0 Then tempStr = "Unknown Status of " & JI2.Status End If End If Else ' Dereference pStatus tempStr = PtrCtoVbString(JI2.pStatus) End If 'Report the Job status JobStr = JobStr & tempStr & vbCrLf Debug.Print JobStr & tempStr Next I End If 'Close the printer handle ClosePrinter hPrinter End Function Johncliviger at aol.com wrote: >Hi all >I'm printing documents from AXP using cmd_Onclick to drive a report and all >is fine. That is until the printer elsewhere in the building cocks it up and >we need a re-print. How can I know sat at my AXP workstation that the document >has fails to print? > >TIA > >john c > > -- Marty Connelly Victoria, B.C. Canada From jwelz at hotmail.com Mon Feb 13 15:54:07 2006 From: jwelz at hotmail.com (Jürgen Welz) Date: Mon, 13 Feb 2006 14:54:07 -0700 Subject: [AccessD] Basic Query Design: Results In-Reply-To: <39cb22f30602121032p74a0fe9g972109f17b710a26@mail.gmail.com> Message-ID: All four methods returned exactly the same rows. Of course the number of rows returned and variations in the number of criteria entered will probably favour one method over another. I tried to take a realistic scenario where I have only 4 conditions and fewer than 20 records are returned. I have a suspicion that the last method I posted will return the best speed against larger datasets as it is based simply on join processing on single equality conditions for each additional condition and can use indexing every step of the way. l suspect calculating a count may require all table rows to be returned. Then again, returning consecutive subsets of data from the same table in order to process the same join might be slower than returning the table one time and running the processing on the count. For typical data in our environment, it appears that using the count is the best approach. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: Steve Erbach > >J?rgen, > >Now, the $64,000 question: Did all the queries give you the same results? > >Just kidding! I'm interested to see that the Count query is quickest. > It's certainly easier to understand...and should make for a lot less >coding! > >Steve Erbach >Neenah, WI >http://TheTownCrank.blogspot.com From Chester_Kaup at kindermorgan.com Mon Feb 13 16:54:54 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 13 Feb 2006 16:54:54 -0600 Subject: [AccessD] Make table query fails Message-ID: Problem solved. Deleted one of the criteria and reentered it. Query now runs. Go figure. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Monday, February 13, 2006 3:35 PM To: accessd at databaseadvisors.com Subject: [AccessD] Make table query fails When I try to run the following query I get a message of invalid argument. When I try to view the results in datasheet view it work fine. What might be going wrong? I tried writing the results to a different table with no success. No I did not write this ugly query - I was given it. Thanks for ideas. SELECT [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells to Alloc].CO2PAT_SDate, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API, ConfigMaster.PID AS Other_Pattern, Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4) AS Other_Pattern_as_Well, Constants!SDate AS Other_Pattern_SDate, SurfaceMaster.PID AS Other_Pattern_as_Well_API INTO [Funky Temp Other Ptrn to Alloc] FROM SurfaceMaster, [Funky Ptrn and Wells to Alloc] INNER JOIN (ConfigMaster INNER JOIN Constants ON ConfigMaster.PID = Constants.PID) ON [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API = ConfigMaster.ChildPID WHERE (((ConfigMaster.PID) Like "PAT*") AND ((Constants.Date)<#1/1/1960#) AND ((SurfaceMaster.Name)=Right([ConfigMaster]![PID],Len([ConfigMaster]![PID ])-4))) ORDER BY [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT, Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4); Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From erbachs at gmail.com Mon Feb 13 16:57:41 2006 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 13 Feb 2006 16:57:41 -0600 Subject: [AccessD] Make table query fails In-Reply-To: References: Message-ID: <39cb22f30602131457x678c0cedy1ac36acdf27d69ca@mail.gmail.com> Chester, Is this a query you've got some exclamation points in various places. These should be periods, unless you're referencing fields on another form. In that case you need the full Forms reference; e.g., ((SurfaceMaster.Name) = Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4)) instead of ((SurfaceMaster.Name)=Right([ConfigMaster]![PID],Len([ConfigMaster]![PID])-4)) Does this help? Steve Erbach Neenah, WI On 2/13/06, Kaup, Chester wrote: > When I try to run the following query I get a message of invalid > argument. When I try to view the results in datasheet view it work fine. > What might be going wrong? I tried writing the results to a different > table with no success. No I did not write this ugly query - I was given > it. Thanks for ideas. > > > > SELECT [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells to > Alloc].CO2PAT_SDate, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT, > [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API, ConfigMaster.PID AS > Other_Pattern, Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4) AS > Other_Pattern_as_Well, Constants!SDate AS Other_Pattern_SDate, > SurfaceMaster.PID AS Other_Pattern_as_Well_API INTO [Funky Temp Other > Ptrn to Alloc] > > FROM SurfaceMaster, [Funky Ptrn and Wells to Alloc] > > INNER JOIN (ConfigMaster INNER JOIN Constants ON ConfigMaster.PID = > Constants.PID) ON [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API = > ConfigMaster.ChildPID > > WHERE (((ConfigMaster.PID) Like "PAT*") AND > ((Constants.Date)<#1/1/1960#) AND > ((SurfaceMaster.Name)=Right([ConfigMaster]![PID],Len([ConfigMaster]![PID > ])-4))) > > ORDER BY [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells > to Alloc].Well_in_CO2PAT, > Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4); > > > > Chester Kaup > From DWUTKA at marlow.com Mon Feb 13 18:00:52 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 13 Feb 2006 18:00:52 -0600 Subject: [AccessD] OT: Compare 2 directories Message-ID: <17724746D360394AA3BFE5B8D40A9C1BD732@main2.marlow.com> Robocopy, which was part of the Windows 2000 Resource Kit, has a 'mirror' function which you can use to 'synchronize' two folders. Drew -----Original Message----- From: Joe Hecht [mailto:jmhecht at earthlink.net] Sent: Saturday, February 11, 2006 11:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Compare 2 directories Any one have or know a tool where you can compare two directories and synchronize them. Thanks Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Mon Feb 13 19:29:36 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 13 Feb 2006 20:29:36 -0500 Subject: [AccessD] Bar Code Printing/Scanning References: <17724746D360394AA3BFE5B8D40A9C1BD732@main2.marlow.com> Message-ID: <003001c63106$1feb31b0$1801a8c0@50NM721> ...have a need to print bar codes on badges that can be easily and reliably scanned at a trade show entrance. ...the database is A2K3 but the data is merged to WXP to print the badges. ...the badge bar codes are printed with HP LJ 4050s ...printing the bar codes in Word using code 39 font works well but doesn't produce the enter/exit control codes ...also need to know if anyone has experience with a particular hand held scanner or manufacturer that you would ...or would not ...recommend. ...and how you've collected the data from the scanners. ...and anything else I should be aware of before leaping. ...anyone? From jwcolby at ColbyConsulting.com Mon Feb 13 20:40:06 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Mon, 13 Feb 2006 21:40:06 -0500 Subject: [AccessD] Bar Code Printing/Scanning In-Reply-To: <003001c63106$1feb31b0$1801a8c0@50NM721> Message-ID: <005501c6310f$f7d8aa40$647aa8c0@ColbyM6805> William, I have done bar codes a couple of times. The first time was in Mexico at the clothing Maquilla, where we used the keyboard wedge. Those work fine except that there is no control over where the data goes. More precisely, the data goes wherever the current focus is, which means that if the user is able to switch away to some other app, the data will go into that app. The second time was at the screw company where I used a Serial port scanner. That works very well since you have complete control over when the scanner is turned on, and the data does not even have to go into a control on a form, i.e. it is just coming in to a serial port. What you do with it is your business. Of course that means that you have to program it from the top to the bottom, but you have absolute control. In that app I actually used the Comm control that comes with VB6. I wrote a class to encapsulate an instance. The class allowed me to set up the comm port, start/stop/parity/baud, then turn it on / off as I desired. The class read the buffer from the comm control and assembled it into a string, then raised an event and passed the string to the event sink. I wrote another class to sink the event and handle the bar code per se. Thus the comm class could be reusable, the bar code class "knew" that the string was a bar code and how to check it, then use it. By breaking it into those two pieces I could have a clean testable interface. As for which Bar code, it was too long ago to remember. The bar code you use depends on what you are doing with it, whether you need special characters and all that. Special purpose (UPC) etc. It sounds like you just need a simple bar code that understands upper/lower alpha / numeric. Again though, I don't remember which barcode I ended up with. I think it was code 128 in the last one but not certain. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, February 13, 2006 8:30 PM To: Access Developers discussion and problem solving Subject: [AccessD] Bar Code Printing/Scanning ...have a need to print bar codes on badges that can be easily and reliably scanned at a trade show entrance. ...the database is A2K3 but the data is merged to WXP to print the badges. ...the badge bar codes are printed with HP LJ 4050s ...printing the bar codes in Word using code 39 font works well but doesn't produce the enter/exit control codes ...also need to know if anyone has experience with a particular hand held scanner or manufacturer that you would ...or would not ...recommend. ...and how you've collected the data from the scanners. ...and anything else I should be aware of before leaping. ...anyone? -- 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 13 21:48:03 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 14 Feb 2006 13:48:03 +1000 Subject: [AccessD] Bar Code Printing/Scanning In-Reply-To: <003001c63106$1feb31b0$1801a8c0@50NM721> Message-ID: <43F1DF93.22976.3495A79@stuart.lexacorp.com.pg> On 13 Feb 2006 at 20:29, William Hindman wrote: > ...have a need to print bar codes on badges that can be easily and reliably > scanned at a trade show entrance. > > ...the database is A2K3 but the data is merged to WXP to print the badges. > > ...the badge bar codes are printed with HP LJ 4050s > > ...printing the bar codes in Word using code 39 font works well but doesn't > produce the enter/exit control codes > You need to wrap the string in delimiters: strCodeToPrint = "*" & strCode & "*" before merging to Word > ...and how you've collected the data from the scanners. > Last time I did this was barcoded invitations for functions. They use a handheld scanner on a "keyboard wedge". To get the info into the correct place, I had a hidden text box on the form and set Key Preview on. I surrounded the printed barcodes with "$"s When the form detected a "$" being entered, it exposed the hidden text box, and set focus to it. When a second "$" was detected, it closed the text box and processed the input. This worked fine as long as the form had focus. Best way to ensure that is to set it modal, full screen. Here's the main function: Private Sub Form_KeyPress(KeyAscii As Integer) Dim Inflow as Boolean If KeyAscii = 36 Then ' $ sign InFlow = Not InFlow KeyAscii = 0 If Not InFlow Then cboInvitees.SetFocus txtInput.Visible = False InFlow = False If Len(txtInput) > 0 Then LogGuest Val(txtInput), "Scanner" cboInvitees = txtInput End If Else InFlow = True txtInput = "" txtInput.Visible = True txtInput.SetFocus End If End If End Sub Contact me off-list if you want a copy of the application. -- Stuart From Erwin.Craps at ithelps.be Tue Feb 14 01:37:18 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 14 Feb 2006 08:37:18 +0100 Subject: [AccessD] Bar Code Printing/Scanning Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B6381@stekelbes.ithelps.local> For what concerns printing barcodes. I bought this control from Anex Technologies Inc several years ago and they still do the trick for me in A2K3 http://www.anextech.com/ocx1D.htm I always use EAN128 because you can use aplha/numeric in that one and it's widespread, in Europe that is. I believe EAN128 is pretty much the same as CODE128 and both are supported by most scanners. The disadvantage of CODE128/EAN128 is that the barcodes are longer then using only a numeric code, that can be an issue. I have a keyboard connected bar code scanner, because you don't need to change your soft to make it work. BUT: You don't know where youre data goes (see earlier responses to your mail) AND I believe most keyboard scanners connect in between a PS/2 connector. This can be a problem becaase all new computers have USB keyboards these days. And when using notebooks you have to connect a keyboard to the notebook for making the scanner work. So I would now defintly go for a USB scanner (those also exists these days) or a Serial RS-232, but you need to write some extra code for it, but it is probably worth it. Notebooks are these days no longer equiped with a RS-232 port, but you can always use a RS-232 tot USB convertor. Greetz Erwin From Johncliviger at aol.com Tue Feb 14 03:46:07 2006 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Tue, 14 Feb 2006 04:46:07 EST Subject: [AccessD] Printing from AXP where printer is elsewhere Message-ID: <245.6e3f409.312300df@aol.com> Hi Marty Thank you for that comprehensive reply. I'm working my way through it. And theres me thinking that a few lines of vb code in On-Print event will do the job! Ah well who wants a simple life anyway? Thanks Marty regards john c lancashire uk From Gustav at cactus.dk Tue Feb 14 05:56:51 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 14 Feb 2006 12:56:51 +0100 Subject: [AccessD] Make table query fails Message-ID: Hi Chester I admire your - eh creative - table naming convention: [Funky Temp Other Ptrn to Alloc] /gustav From Gustav at cactus.dk Tue Feb 14 06:26:18 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 14 Feb 2006 13:26:18 +0100 Subject: [AccessD] Bar Code Printing/Scanning Message-ID: Hi William We have had very good results with the PSC QuickScan6000+ laser scanner: http://www.pscnet.com/ It is partly rubber coated for protection. You have to decide on reading distance (laser for long distance, CCD and similar for close distance) and if they will be dropped on the floor. Also, you can have wireless scanners now. As for printing, we use Access reports only. I see no reason for using Word as for the barcode, but you may have other needs, of course. /gustav >>> wdhindman at bellsouth.net 14-02-2006 02:29:36 >>> ...have a need to print bar codes on badges that can be easily and reliably scanned at a trade show entrance. ...the database is A2K3 but the data is merged to WXP to print the badges. ...the badge bar codes are printed with HP LJ 4050s ...printing the bar codes in Word using code 39 font works well but doesn't produce the enter/exit control codes ...also need to know if anyone has experience with a particular hand held scanner or manufacturer that you would ...or would not ...recommend. ...and how you've collected the data from the scanners. ...and anything else I should be aware of before leaping. ...anyone? From ecritt1 at alltel.net Tue Feb 14 09:42:38 2006 From: ecritt1 at alltel.net (Penn White) Date: Tue, 14 Feb 2006 10:42:38 -0500 Subject: [AccessD] A little Null Help Please References: <000001c62f90$1dd237b0$6701a8c0@HPLaptop> Message-ID: <001a01c6317d$4919f9f0$0302a8c0@pennp4> Here's a nice little function that I found somewhere. I've removed the error checking since the one I use is not the same as everyone elses. In my experience, IsNull tends to miss a few things. Penn Public Function Fn_IsNothing(ByVal varValueToTest) As Integer '----------------------------------------------------------- ' Does a "nothing" test based on data type. ' Null = nothing ' Empty = nothing ' Number = 0 is nothing ' String = "" is nothing ' Date/Time is never nothing ' Inputs: A value to test for logical "nothing" ' Outputs: True = value passed is a logical "nothing", False = it ain't ' Created By: JLV 01/31/95 ' Last Revised: JLV 01/31/95 '----------------------------------------------------------- Dim intSuccess As Integer Fn_IsNothing = True Select Case VarType(varValueToTest) Case 0 ' Empty GoTo Exit_Fn_IsNothing Case 1 ' Null GoTo Exit_Fn_IsNothing Case 2, 3, 4, 5, 6 ' Integer, Long, Single, Double, Currency If varValueToTest <> 0 Then Fn_IsNothing = False Case 7 ' Date / Time Fn_IsNothing = False Case 8 ' String If (Len(varValueToTest) <> 0 And varValueToTest <> " ") Then Fn_IsNothing = False End Select End Function From martyconnelly at shaw.ca Tue Feb 14 11:33:47 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 14 Feb 2006 09:33:47 -0800 Subject: [AccessD] Printing from AXP where printer is elsewhere References: <245.6e3f409.312300df@aol.com> Message-ID: <43F2147B.9030507@shaw.ca> Here are some quick and dirty WMI scripts that will work on WinXP and Win2000 to check printers and spool queues. These should work with WinXP certified printers like high end HP's but not with printers cobbled together from recycled parts on the back streets of Naples. I believe WMI is looking at winspool.drv and not individual printer drivers. WMI is a work in progress just like IBM's HASP was 35 years ago. But HASP only had to work with a limited number of products and protocols Just to hook it to a pen plotter took a $1000 bisynch protocol converter. Just stick in your remote machine name into the code. It wont give you fine errors like out of toner. It also should tell you how long a wait there is in the print queue. There are many network monitor programs out there in the $500 range like http://www.activexperts.com/activmonitor/ Concievably knowing your jobname or id you could monitor the machine's print spool in a timer form and when the job id disappears from the queue sends you a SMS text message while you are sitting in Starbucks. 'http://www.activexperts.com/activmonitor/windowsmanagement/scripts/printing/printerport/#MonitorPrinterStatus2.htm Sub Test(Optional strComputerName As Variant) 'Checks the status for each printer on a computer, and issues an alert if any of these printers have stopped. Dim objWMIService As Object Dim colInstalledPrinters As Object Dim objPrinter As Variant Dim strComputer As String If IsMissing(strComputerName) Then strComputer = "." 'local machine default name Else strComputer = strComputerName End If Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colInstalledPrinters = objWMIService.ExecQuery _ ("Select * from Win32_Printer Where PrinterStatus = '1' " _ & "or PrinterStatus = '2'") If colInstalledPrinters.Count = 0 Then Debug.Print "All printers are functioning correctly." Else For Each objPrinter In colInstalledPrinters Debug.Print "Printer " & objPrinter.Name & " is not responding." Next End If End Sub Sub test2() 'Displays current status for all printers on a computer. Dim objWMIService As Object Dim colInstalledPrinters As Object Dim objPrinter As Variant Dim strComputer As String Dim strPrinterStatus As String strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colInstalledPrinters = objWMIService.ExecQuery _ ("Select * from Win32_Printer") For Each objPrinter In colInstalledPrinters Debug.Print "Name: " & objPrinter.Name Debug.Print "Location: " & objPrinter.Location Select Case objPrinter.PrinterStatus Case 1 strPrinterStatus = "Other" Case 2 strPrinterStatus = "Unknown" Case 3 strPrinterStatus = "Idle" Case 4 strPrinterStatus = "Printing" Case 5 strPrinterStatus = "Warmup" End Select Debug.Print "Printer Status: " & strPrinterStatus Debug.Print "Server Name: " & objPrinter.ServerName Debug.Print "Share Name: " & objPrinter.ShareName Debug.Print Next End Sub Sub test3() 'Returns the job ID, user name, and total pages for each print job on a computer. Dim objWMIService As Object Dim colPrintJobs As Object Dim objPrintJob As Variant Dim strComputer As String Dim strPrinter As Variant strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colPrintJobs = objWMIService.ExecQuery _ ("Select * from Win32_PrintJob") 'Page count may not be correct for multi-copy print of word document. Debug.Print "Print Queue, Job ID, Owner, Total Pages" For Each objPrintJob In colPrintJobs strPrinter = Split(objPrintJob.Name, ",", -1, 1) Debug.Print strPrinter(0) & ", " & _ objPrintJob.JobId & ", " & objPrintJob.Owner & ", " _ & objPrintJob.TotalPages Next End Sub Johncliviger at aol.com wrote: >Hi Marty > >Thank you for that comprehensive reply. I'm working my way through it. And >theres me thinking that a few lines of vb code in On-Print event will do the >job! Ah well who wants a simple life anyway? > >Thanks Marty > >regards > >john c >lancashire >uk > > -- Marty Connelly Victoria, B.C. Canada From RickN at NelsonTech.com Tue Feb 14 11:36:39 2006 From: RickN at NelsonTech.com (Rick Nelson) Date: Tue, 14 Feb 2006 09:36:39 -0800 Subject: [AccessD] AccessD Digest, Vol 36, Issue 23 In-Reply-To: References: Message-ID: <6.2.3.4.2.20060214093140.0273e6c8@pop.1and1.com> I've found Heatsoft ADCS is great - have used it for a couple of years - works well when you want fine control but have lots of files and need to repeat periodically. I also have their Automatic Synchronizer but have never used it. http://www.heatsoft.com/ Rick N. At 10:00 AM 2/12/06, you wrote: >Message: 6 >Date: Sat, 11 Feb 2006 21:50:24 -0800 >From: "Joe Hecht" >Subject: [AccessD] OT: Compare 2 directories >To: "'Access Developers discussion and problem solving'" > >Message-ID: <000001c62f98$39fd8bd0$6701a8c0 at HPLaptop> >Content-Type: text/plain; charset="us-ascii" > >Any one have or know a tool where you can compare two >directories and synchronize them. > > > >Thanks > > > >Joe Hecht > >jmhecht at earthlink.net Rick Nelson Nelson Technology Associates Danville, California From Chester_Kaup at kindermorgan.com Tue Feb 14 12:49:41 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 14 Feb 2006 12:49:41 -0600 Subject: [AccessD] Make table query fails Message-ID: Turns out the database had some corruption that a compact and repair fixed. Also if I try to change the ! to . and eliminate the brackets in the query grid Access just puts it back. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Monday, February 13, 2006 4:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Make table query fails Chester, Is this a query you've got some exclamation points in various places. These should be periods, unless you're referencing fields on another form. In that case you need the full Forms reference; e.g., ((SurfaceMaster.Name) = Right(ConfigMaster.PID,Len(ConfigMaster.PID)-4)) instead of ((SurfaceMaster.Name)=Right([ConfigMaster]![PID],Len([ConfigMaster]![PID ])-4)) Does this help? Steve Erbach Neenah, WI On 2/13/06, Kaup, Chester wrote: > When I try to run the following query I get a message of invalid > argument. When I try to view the results in datasheet view it work fine. > What might be going wrong? I tried writing the results to a different > table with no success. No I did not write this ugly query - I was given > it. Thanks for ideas. > > > > SELECT [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells to > Alloc].CO2PAT_SDate, [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT, > [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API, ConfigMaster.PID AS > Other_Pattern, Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4) AS > Other_Pattern_as_Well, Constants!SDate AS Other_Pattern_SDate, > SurfaceMaster.PID AS Other_Pattern_as_Well_API INTO [Funky Temp Other > Ptrn to Alloc] > > FROM SurfaceMaster, [Funky Ptrn and Wells to Alloc] > > INNER JOIN (ConfigMaster INNER JOIN Constants ON ConfigMaster.PID = > Constants.PID) ON [Funky Ptrn and Wells to Alloc].Well_in_CO2PAT_API = > ConfigMaster.ChildPID > > WHERE (((ConfigMaster.PID) Like "PAT*") AND > ((Constants.Date)<#1/1/1960#) AND > ((SurfaceMaster.Name)=Right([ConfigMaster]![PID],Len([ConfigMaster]![PID > ])-4))) > > ORDER BY [Funky Ptrn and Wells to Alloc].CO2PAT, [Funky Ptrn and Wells > to Alloc].Well_in_CO2PAT, > Right(ConfigMaster!PID,Len(ConfigMaster!PID)-4); > > > > Chester Kaup > -- 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 14 14:46:02 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 14 Feb 2006 12:46:02 -0800 Subject: [AccessD] Bar Code Printing/Scanning In-Reply-To: <005501c6310f$f7d8aa40$647aa8c0@ColbyM6805> Message-ID: <002f01c631a7$ab582d60$017ba8c0@xpserver> Hi William: In a number of models of Okidata printers there is an option which allows the barcode printing to be started and stopped through under program. This is a reverse keyboard wedge where it works at the other end. By just prefixing and suffixing a piece of text with the appropriate code sequence a bar code will be printed. Jim ...have a need to print bar codes on badges that can be easily and reliably scanned at a trade show entrance. ...the database is A2K3 but the data is merged to WXP to print the badges. ...the badge bar codes are printed with HP LJ 4050s ...printing the bar codes in Word using code 39 font works well but doesn't produce the enter/exit control codes ...also need to know if anyone has experience with a particular hand held scanner or manufacturer that you would ...or would not ...recommend. ...and how you've collected the data from the scanners. ...and anything else I should be aware of before leaping. ...anyone? From Mike.W.Gowey at doc.state.or.us Tue Feb 14 15:34:47 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Tue, 14 Feb 2006 14:34:47 -0700 Subject: [AccessD] Criteria Question Message-ID: <05EBB8A3BEB95B4F8216BE4EF486077808115B15@srciml1.ds.doc.state.or.us> Within my table I have a field that is set to Yes/No format. I am attempting to create a query that prompts the user to enter Yes or No as a criteria for this field. Everytime I prompt the user and they enter Yes or No in the prompt box, they get an error of "This expression is typed incorrectly, or is to complex to be evaluated." But yet if I type in Yes or No in the actual query criteria it works just fine. I just get this error when I prompt the user to enter the criteria. Anybody have any ideas? TIA, Mike From cfoust at infostatsystems.com Tue Feb 14 15:55:33 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 14 Feb 2006 13:55:33 -0800 Subject: [AccessD] Criteria Question Message-ID: You can try wrapping the criteria line in a Cbool() function to translate the "yes" or "no" to a boolean. Otherwise, anything you type in is a string, which won't compare to a yes/no. Cbool([Enter Yes or No]) Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Tuesday, February 14, 2006 1:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] Criteria Question Within my table I have a field that is set to Yes/No format. I am attempting to create a query that prompts the user to enter Yes or No as a criteria for this field. Everytime I prompt the user and they enter Yes or No in the prompt box, they get an error of "This expression is typed incorrectly, or is to complex to be evaluated." But yet if I type in Yes or No in the actual query criteria it works just fine. I just get this error when I prompt the user to enter the criteria. Anybody have any ideas? TIA, Mike -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Tue Feb 14 16:14:43 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Tue, 14 Feb 2006 15:14:43 -0700 Subject: [AccessD] Criteria Question Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BC14@srciml1.ds.doc.state.or.us> Unfortunately that gives the same error :-( -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Tuesday, February 14, 2006 2:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Criteria Question You can try wrapping the criteria line in a Cbool() function to translate the "yes" or "no" to a boolean. Otherwise, anything you type in is a string, which won't compare to a yes/no. Cbool([Enter Yes or No]) Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Tuesday, February 14, 2006 1:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] Criteria Question Within my table I have a field that is set to Yes/No format. I am attempting to create a query that prompts the user to enter Yes or No as a criteria for this field. Everytime I prompt the user and they enter Yes or No in the prompt box, they get an error of "This expression is typed incorrectly, or is to complex to be evaluated." But yet if I type in Yes or No in the actual query criteria it works just fine. I just get this error when I prompt the user to enter the criteria. Anybody have any ideas? TIA, Mike -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 14 16:21:30 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 15 Feb 2006 08:21:30 +1000 Subject: [AccessD] Criteria Question In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF486077808115B15@srciml1.ds.doc.state.or.us> Message-ID: <43F2E48A.23600.744BF70@stuart.lexacorp.com.pg> On 14 Feb 2006 at 14:34, Gowey Mike W wrote: > Within my table I have a field that is set to Yes/No format. I am > attempting to create a query that prompts the user to enter Yes or No as a > criteria for this field. Everytime I prompt the user and they enter Yes or > No in the prompt box, they get an error of > > "This expression is typed incorrectly, or is to complex to be > evaluated." > Set the criterion to "=IIf(["Yes or no"]="YES",True,False)" -- Stuart From bchacc at san.rr.com Tue Feb 14 19:45:02 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 14 Feb 2006 17:45:02 -0800 Subject: [AccessD] Colors in a combo box Message-ID: <43F2879E.3060201@san.rr.com> Dear List: Can you make a combo box display a list of colored boxes? Noah's putting together a program to give the value of a resistor if you select the colors of the rings. The combo box is currently a list of the colors. But it would be much cooler if it dropped down the colors instead of a list. Is this possible? MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From stuart at lexacorp.com.pg Tue Feb 14 20:34:33 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 15 Feb 2006 12:34:33 +1000 Subject: [AccessD] Colors in a combo box In-Reply-To: <43F2879E.3060201@san.rr.com> Message-ID: <43F31FD9.4183.82C6CA5@stuart.lexacorp.com.pg> On 14 Feb 2006 at 17:45, Rocky Smolin - Beach Access S wrote: > Dear List: > > Can you make a combo box display a list of colored boxes? Noah's > putting together a program to give the value of a resistor if you select the > colors of the rings. The combo box is currently a list of the colors. But > it would be much cooler if it dropped down the colors instead of a list. Is > this possible? > I think you will have to do something with stacking columns of labels, - wait a minute........... How about something like this: http://www.lexacorp.com.pg/Resistor.gif Option Groups, Radio buttons and coloured labels. Up to you to do the maths, but you can have a copy of the form if you want it -- Stuart From karenr7 at oz.net Tue Feb 14 21:17:35 2006 From: karenr7 at oz.net (Karen Rosenstiel) Date: Tue, 14 Feb 2006 19:17:35 -0800 Subject: [AccessD] Colors in a combo box In-Reply-To: <43F31FD9.4183.82C6CA5@stuart.lexacorp.com.pg> Message-ID: <000001c631de$5e94f940$6401a8c0@bigmama> Rocky, If you do a google on resistors colors, you will get lots of hits. I learned to enjoy playing with these when I was studying to be a computer technician a couple of years ago, but I have forgotten most of it, unfortunately, because I haven't been working in the field and keep up with studying it. Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, February 14, 2006 6:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Colors in a combo box On 14 Feb 2006 at 17:45, Rocky Smolin - Beach Access S wrote: > Dear List: > > Can you make a combo box display a list of colored boxes? Noah's > putting together a program to give the value of a resistor if you > select the colors of the rings. The combo box is currently a list of > the colors. But it would be much cooler if it dropped down the colors > instead of a list. Is this possible? > I think you will have to do something with stacking columns of labels, - wait a minute........... How about something like this: http://www.lexacorp.com.pg/Resistor.gif Option Groups, Radio buttons and coloured labels. Up to you to do the maths, but you can have a copy of the form if you want it -- Stuart -- 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 14 22:57:48 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 14 Feb 2006 20:57:48 -0800 Subject: [AccessD] Colors in a combo box In-Reply-To: <43F31FD9.4183.82C6CA5@stuart.lexacorp.com.pg> References: <43F31FD9.4183.82C6CA5@stuart.lexacorp.com.pg> Message-ID: <43F2B4CC.1000502@san.rr.com> Stuart: I showed it to him. Option frames were a new idea. He thought that was a really neat control - especially the part about the value being associated with the button that you could read in code. Stuff we take for granted. But he likes the combo boxes better. Of course, now that he's got the value lists all set up he doesn't want to redo it. :) I would be neat if you could drop down a list of colors or more generally, embedded graphics. So you could pick from a list of pictures. Access 2007? Thanks Rocky Stuart McLachlan wrote: > On 14 Feb 2006 at 17:45, Rocky Smolin - Beach Access S wrote: > > >> Dear List: >> >> Can you make a combo box display a list of colored boxes? Noah's >> putting together a program to give the value of a resistor if you select the >> colors of the rings. The combo box is currently a list of the colors. But >> it would be much cooler if it dropped down the colors instead of a list. Is >> this possible? >> >> > > I think you will have to do something with stacking columns of labels, - > wait a minute........... > > How about something like this: > http://www.lexacorp.com.pg/Resistor.gif > > Option Groups, Radio buttons and coloured labels. > Up to you to do the maths, but you can have a copy of the form if you want > it > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From shamil at users.mns.ru Wed Feb 15 02:55:32 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 15 Feb 2006 11:55:32 +0300 Subject: [AccessD] OT: Quote of the day Message-ID: <001a01c6320d$b4e26f60$6501a8c0@Nant> "It's my experience that coming up with an elegant solution is deeply satisfying at an entirely different level; it feels closer to art than technology. And elegance always pays off; it's not a frivolous pursuit. Not only does it give you a program that's easier to build and debug, but it's also easier to understand and maintain, and that's where the financial value lies." Thinking in C++, 2nd ed. Volume 1 ?2000 by Bruce Eckel Shamil From stuart at lexacorp.com.pg Wed Feb 15 03:06:44 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 15 Feb 2006 19:06:44 +1000 Subject: [AccessD] OT: Quote of the day In-Reply-To: <001a01c6320d$b4e26f60$6501a8c0@Nant> Message-ID: <43F37BC4.29680.9937945@stuart.lexacorp.com.pg> On 15 Feb 2006 at 11:55, Shamil Salakhetdinov wrote: > "It's my experience that coming up with an elegant solution is deeply > satisfying at an entirely different level; it feels closer to art than > technology. And elegance always pays off; it's not a frivolous pursuit. Not > only does it give you a program that's easier to build and debug, but it's > also easier to understand and maintain, and that's where the financial value > lies." > > Thinking in C++, 2nd ed. Volume 1 > ?2000 by Bruce Eckel > There are those who will tell you that programming is simply a matter of combining various elements so that they work together correctly to produce a desired result. This description is accurate, but it is cut-and-dried explanation of what is really an art. Programming is more a matter of artistry than anything else. Whether you're a painter, sculptor, writer, or programmer, a creative, careful approach and good intuition are necessary to ensure a successful outcome. Susanne Marie Rodriguez. Ashton-Tate & Framework -- Stuart From shamil at users.mns.ru Wed Feb 15 03:55:57 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 15 Feb 2006 12:55:57 +0300 Subject: [AccessD] OT: Quote of the day References: <43F37BC4.29680.9937945@stuart.lexacorp.com.pg> Message-ID: <000601c63216$060e2f20$6501a8c0@Nant> Stuart, The latter is the Marie Rodriquez quote I have on my web site's start page from the time this my web site/page were created. Did you want to note that or something else?- I didn't get it :) Shamil -- Web: http://smsconsulting.spb.ru/shamil_s ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Wednesday, February 15, 2006 12:06 PM Subject: Re: [AccessD] OT: Quote of the day On 15 Feb 2006 at 11:55, Shamil Salakhetdinov wrote: > "It's my experience that coming up with an elegant solution is deeply > satisfying at an entirely different level; it feels closer to art than > technology. And elegance always pays off; it's not a frivolous pursuit. > Not > only does it give you a program that's easier to build and debug, but it's > also easier to understand and maintain, and that's where the financial > value > lies." > > Thinking in C++, 2nd ed. Volume 1 > ?2000 by Bruce Eckel > There are those who will tell you that programming is simply a matter of combining various elements so that they work together correctly to produce a desired result. This description is accurate, but it is cut-and-dried explanation of what is really an art. Programming is more a matter of artistry than anything else. Whether you're a painter, sculptor, writer, or programmer, a creative, careful approach and good intuition are necessary to ensure a successful outcome. Susanne Marie Rodriguez. Ashton-Tate & Framework -- Stuart -- 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 15 04:07:51 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 15 Feb 2006 11:07:51 +0100 Subject: [AccessD] Criteria Question Message-ID: Hi Mike You need to specify the parameter as Bit. Insert a first line in your SQL of the query: PARAMETERS [Please Enter Yes or No] Bit; SELECT ... etc. Note, however, that Yes/No are localized, so in a French Access you will need to type Oui/Non and Jes/Ne for an Esperantian(?) Access. /gustav >>> Mike.W.Gowey at doc.state.or.us 14-02-2006 22:34 >>> Within my table I have a field that is set to Yes/No format. I am attempting to create a query that prompts the user to enter Yes or No as a criteria for this field. Everytime I prompt the user and they enter Yes or No in the prompt box, they get an error of "This expression is typed incorrectly, or is to complex to be evaluated." But yet if I type in Yes or No in the actual query criteria it works just fine. I just get this error when I prompt the user to enter the criteria. From Gustav at cactus.dk Wed Feb 15 04:18:03 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 15 Feb 2006 11:18:03 +0100 Subject: [AccessD] Colors in a combo box Message-ID: Hi Stuart How nice! Brings back memories of countless hours spent in my young days with the soldering iron mounting genious printed circuit boards of own construction ... /gustav >>> stuart at lexacorp.com.pg 15-02-2006 03:34 >>> On 14 Feb 2006 at 17:45, Rocky Smolin - Beach Access S wrote: > Dear List: > > Can you make a combo box display a list of colored boxes? Noah's > putting together a program to give the value of a resistor if you select the > colors of the rings. The combo box is currently a list of the colors. But > it would be much cooler if it dropped down the colors instead of a list. Is > this possible? > I think you will have to do something with stacking columns of labels, - wait a minute........... How about something like this: http://www.lexacorp.com.pg/Resistor.gif Option Groups, Radio buttons and coloured labels. Up to you to do the maths, but you can have a copy of the form if you want it -- Stuart From erbachs at gmail.com Wed Feb 15 06:54:46 2006 From: erbachs at gmail.com (Steve Erbach) Date: Wed, 15 Feb 2006 06:54:46 -0600 Subject: [AccessD] OT: Quote of the day In-Reply-To: <000601c63216$060e2f20$6501a8c0@Nant> References: <43F37BC4.29680.9937945@stuart.lexacorp.com.pg> <000601c63216$060e2f20$6501a8c0@Nant> Message-ID: <39cb22f30602150454g64adfe10ve163771389a74189@mail.gmail.com> Shamil and Stuart, Ashton-Tate. Boy, I haven't thought about that outfit for a long time. Back in the days when I was actually thrilled to learn something new on a computer...say, 1982 or thereabouts. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/15/06, Shamil Salakhetdinov wrote: > Stuart, > > The latter is the Marie Rodriquez quote I have on my web site's start page > from the time this my web site/page were created. Did you want to note that > or something else?- I didn't get it :) > > Shamil > -- > Web: http://smsconsulting.spb.ru/shamil_s > > ----- Original Message ----- > From: "Stuart McLachlan" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, February 15, 2006 12:06 PM > Subject: Re: [AccessD] OT: Quote of the day > > > On 15 Feb 2006 at 11:55, Shamil Salakhetdinov wrote: > > > "It's my experience that coming up with an elegant solution is deeply > > satisfying at an entirely different level; it feels closer to art than > > technology. And elegance always pays off; it's not a frivolous pursuit. > > Not > > only does it give you a program that's easier to build and debug, but it's > > also easier to understand and maintain, and that's where the financial > > value > > lies." > > > > Thinking in C++, 2nd ed. Volume 1 > > (c)2000 by Bruce Eckel > > > > There are those who will tell you that programming is simply a matter of > combining various elements so that they work together correctly to produce > a desired result. This description is accurate, but it is cut-and-dried > explanation of what is really an art. Programming is more a matter of > artistry than anything else. Whether you're a painter, sculptor, writer, or > programmer, a creative, careful approach and good intuition are necessary > to ensure a successful outcome. > > Susanne Marie Rodriguez. Ashton-Tate & Framework > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security From wdhindman at bellsouth.net Wed Feb 15 07:42:54 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Wed, 15 Feb 2006 08:42:54 -0500 Subject: [AccessD] Colors in a combo box References: <43F2879E.3060201@san.rr.com> Message-ID: <001201c63235$b98b56d0$1801a8c0@50NM721> ...fairly easy to do with a list box but afaik it would require a 3rd party ocx to do in a combo ...Lebans has a faked list box that can be individually colored by item if that would work ...Zeal has an inexpensive combo ocx that allows you to set colors of list items in the drop. William ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 14, 2006 8:45 PM Subject: [AccessD] Colors in a combo box > Dear List: > > Can you make a combo box display a list of colored boxes? Noah's > putting together a program to give the value of a resistor if you select > the colors of the rings. The combo box is currently a list of the > colors. But it would be much cooler if it dropped down the colors > instead of a list. Is this possible? > > MTIA > > Rocky > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Wed Feb 15 07:44:03 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 15 Feb 2006 07:44:03 -0600 Subject: [AccessD] Colors in a combo box In-Reply-To: <6243519.1139968329299.JavaMail.root@sniper23> Message-ID: <000c01c63235$e24efa40$0200a8c0@danwaters> Rocky, Could you set up a column or row of buttons (actually labels) where each button matches a color? Dan Waters -----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 14, 2006 7:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] Colors in a combo box Dear List: Can you make a combo box display a list of colored boxes? Noah's putting together a program to give the value of a resistor if you select the colors of the rings. The combo box is currently a list of the colors. But it would be much cooler if it dropped down the colors instead of a list. Is this possible? MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Wed Feb 15 08:31:37 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Wed, 15 Feb 2006 07:31:37 -0700 Subject: [AccessD] Criteria Question Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780579BC17@srciml1.ds.doc.state.or.us> Thanks Stuart that is what I needed, works excellent. -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Tuesday, February 14, 2006 3:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Criteria Question On 14 Feb 2006 at 14:34, Gowey Mike W wrote: > Within my table I have a field that is set to Yes/No format. I am > attempting to create a query that prompts the user to enter Yes or No > as a criteria for this field. Everytime I prompt the user and they > enter Yes or No in the prompt box, they get an error of > > "This expression is typed incorrectly, or is to complex to be > evaluated." > Set the criterion to "=IIf(["Yes or no"]="YES",True,False)" -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Wed Feb 15 08:32:04 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 15 Feb 2006 09:32:04 -0500 Subject: [AccessD] OT: Quote of the day In-Reply-To: <001a01c6320d$b4e26f60$6501a8c0@Nant> Message-ID: <000201c6323c$98292e20$e5b3d6d1@SUSANONE> I'm not a technical minded person -- I only make my living this way because it's what presented itself at a time when I needed it. It was means, not a passion by any means. I'd had to overcome a lot, because my mind doesn't translate binary automatically (well, I'm sure it does, but you know what I mean!). But, what I always found challenging and almost inspiring was finding solutions that the "experts" said didn't exist without code, or at least a lot of code. That is my forte and I have gotten a lot of enjoyment out of it. :) The second best thing has been taking massive blocks of code and reducing them, by a lot -- I am always astounded by the general lack of care given "logic" in most code. Susan H. "It's my experience that coming up with an elegant solution is deeply satisfying at an entirely different level; it feels closer to art than technology. And elegance always pays off; it's not a frivolous pursuit. Not only does it give you a program that's easier to build and debug, but it's also easier to understand and maintain, and that's where the financial value lies." Thinking in C++, 2nd ed. Volume 1 C2000 by Bruce Eckel From harkinsss at bellsouth.net Wed Feb 15 08:32:04 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 15 Feb 2006 09:32:04 -0500 Subject: [AccessD] Colors in a combo box In-Reply-To: <001201c63235$b98b56d0$1801a8c0@50NM721> Message-ID: <000301c6323c$9dd079f0$e5b3d6d1@SUSANONE> How would you do it in a list box? Susan H. ...fairly easy to do with a list box but afaik it would require a 3rd party ocx to do in a combo ...Lebans has a faked list box that can be individually colored by item if that would work ...Zeal has an inexpensive combo ocx that allows you to set colors of list items in the drop. From jwcolby at ColbyConsulting.com Wed Feb 15 08:50:36 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 15 Feb 2006 09:50:36 -0500 Subject: [AccessD] Dubious value Message-ID: <00e101c6323f$2f223fe0$647aa8c0@ColbyM6805> >From the following blog: http://blogs.msdn.com/michkap/archive/2005/10/19/482694.aspx There is the Jet 4.0 feature of record level locking that people love, so I will talk about that. Now the rule is that once the database is opened (by anybody), that is the mode of the datasbase until all user are out of it; this makes sense since locking schemes have to apply to all concurrent users to have any meaning. So what this means is that the Access setting in the Tools|Options Advanced tab (the chekbox "Open databases using record-level locking") is a request, not a demand. If the database is already opened in the other mode, your open will not fail, and with the current design you are not even warned that your preference was not heeded since your request could not be honored. But two additional warnings that you my find useful here exist: * 3811 -- Attempt to open the datasbase with the requested record level locking failed; page level locking will be used * 3812 -- Attempt to open the datasbase with the requested page level locking failed; record level locking will be used What this means is that if in your database you run the following code after it is open: Set con = New ADODB.Connection con.Provider = "Microsoft.JET.OLEDB.4.0" con.Properties("Data Source") = CurrentDb.Name con.Properties("Jet OLEDB:Database Locking Mode") = 1 ' use 0 for page level check con.CursorLocation = adUseServer con.Open and the database was not in the mode you asked for tht you will see one of those warnings in the NativeError property, right in con.Errors(0).NativeError! You will see one of the following values (depending on whether you set the locking mode to 0 or 1 in the code) if there is something in that collection (on 100% success it will be empty): * 249761507 -- Warning 3811 above (in hex it is 0x0ee30ee3, and 0x0ee3 is indeed 3811) * 249827044 -- Warning 3812 above (in hex it is 0x0ee40ee4, and 0x0ee4 is indeed 3812) So it is as simple as that. You can obviously combine this with an Application.GetOption("Use Row Level Locking") to see if the user running the code is the cause of the problem so you can kick them out or whatever. This becomes a much cooler way to solve problems such as those documented in KB article 237333, which just tells people to change the setting in Access and does not help people to fix the problem of the fact that it is not always that user's settings which are causing the problem.... ************************ As always happens however... When I try and use that code, none of the above errors occur, rather I get a message: "the database has been placed in a state that prevents it from being opened or locked" I thought I would use this code to troubleshoot locking issues since I have several clients where locking is an issue. Can anyone look at the code and comment on why I would not get the indicated error? I am (for now) just running the code inside of my framework, standalone. John W. Colby www.ColbyConsulting.com From wdhindman at bellsouth.net Wed Feb 15 08:59:06 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Wed, 15 Feb 2006 09:59:06 -0500 Subject: [AccessD] Colors in a combo box References: <000301c6323c$9dd079f0$e5b3d6d1@SUSANONE> Message-ID: <002501c63240$5e85a370$1801a8c0@50NM721> http://www.lebans.com/customlistboxver3.htm William ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, February 15, 2006 9:32 AM Subject: Re: [AccessD] Colors in a combo box > How would you do it in a list box? > > Susan H. > > ...fairly easy to do with a list box but afaik it would require a 3rd > party > ocx to do in a combo ...Lebans has a faked list box that can be > individually > colored by item if that would work ...Zeal has an inexpensive combo ocx > that > allows you to set colors of list items in the drop. > > -- > 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 15 09:06:32 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 15 Feb 2006 07:06:32 -0800 Subject: [AccessD] Colors in a combo box In-Reply-To: <000c01c63235$e24efa40$0200a8c0@danwaters> References: <000c01c63235$e24efa40$0200a8c0@danwaters> Message-ID: <43F34378.2060709@san.rr.com> Yeah, like Stuart's link to his GIF? But I'm not the designer on this project. I can only present the user with alternatives. And he seems to favor the combo box approach. Might be able to get him to look at a list box. But he's very hard nosed. Perhaps when he turns ten he'll be more pliable. :-P Rocky Dan Waters wrote: > Rocky, > > Could you set up a column or row of buttons (actually labels) where each > button matches a color? > > Dan Waters > > > -----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 14, 2006 7:45 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Colors in a combo box > > Dear List: > > Can you make a combo box display a list of colored boxes? Noah's > putting together a program to give the value of a resistor if you select > the colors of the rings. The combo box is currently a list of the > colors. But it would be much cooler if it dropped down the colors > instead of a list. Is this possible? > > MTIA > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Wed Feb 15 09:07:47 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 15 Feb 2006 07:07:47 -0800 Subject: [AccessD] Colors in a combo box In-Reply-To: <000301c6323c$9dd079f0$e5b3d6d1@SUSANONE> References: <000301c6323c$9dd079f0$e5b3d6d1@SUSANONE> Message-ID: <43F343C3.2040003@san.rr.com> Always looking for that next article, aren't you? ;-) Rocky Susan Harkins wrote: > How would you do it in a list box? > > Susan H. > > ...fairly easy to do with a list box but afaik it would require a 3rd party > ocx to do in a combo ...Lebans has a faked list box that can be individually > colored by item if that would work ...Zeal has an inexpensive combo ocx that > allows you to set colors of list items in the drop. > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From alan.lawhon at us.army.mil Wed Feb 15 09:25:33 2006 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Wed, 15 Feb 2006 09:25:33 -0600 Subject: [AccessD] OT: Quote of the day Message-ID: <5D5043687CFCE44288407A73E4CC6E17013EF5D1@redstone819.ad.redstone.army.mil> Susan: I have bought, read, (and actually used!) some of the code (and code snippets) in some of your programming books - especially your "Access" programming books. I have always felt that you have a very well organized mind (programming wise) and a special knack for explaining "technical things" very well. (We won't get into your political views ... that's for the OT list.) I'm curious about something. Have you ever taken a standardized IQ test - such as the Stanford-Binet assessment - and if so, what is your IQ? (I took an on-line IQ test recently and scored 127 or 128. The assessment said I was "near genius" and capable of earning a doctoral degree. I laughed at this, thinking it was much more likely that the web site was simply stroking my ego in hopes that I would actually pay for some of their more "intensive and focused" tests ...) It has always struck me that you are much smarter (and "intelligent") than you let on. Alan C. Lawhon -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, February 15, 2006 8:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Quote of the day I'm not a technical minded person -- I only make my living this way because it's what presented itself at a time when I needed it. It was means, not a passion by any means. I'd had to overcome a lot, because my mind doesn't translate binary automatically (well, I'm sure it does, but you know what I mean!). But, what I always found challenging and almost inspiring was finding solutions that the "experts" said didn't exist without code, or at least a lot of code. That is my forte and I have gotten a lot of enjoyment out of it. :) The second best thing has been taking massive blocks of code and reducing them, by a lot -- I am always astounded by the general lack of care given "logic" in most code. Susan H. "It's my experience that coming up with an elegant solution is deeply satisfying at an entirely different level; it feels closer to art than technology. And elegance always pays off; it's not a frivolous pursuit. Not only does it give you a program that's easier to build and debug, but it's also easier to understand and maintain, and that's where the financial value lies." Thinking in C++, 2nd ed. Volume 1 C2000 by Bruce Eckel -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Wed Feb 15 09:35:57 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 15 Feb 2006 10:35:57 -0500 Subject: [AccessD] Colors in a combo box In-Reply-To: <43F343C3.2040003@san.rr.com> Message-ID: <000d01c63245$84df5980$e5b3d6d1@SUSANONE> Well, yes. :) But, as William's link has taken me to someone beyond my little net, I will probably forego this one. :) Susan H. Always looking for that next article, aren't you? ;-) From harkinsss at bellsouth.net Wed Feb 15 09:44:09 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 15 Feb 2006 10:44:09 -0500 Subject: [AccessD] Colors in a combo box In-Reply-To: <002501c63240$5e85a370$1801a8c0@50NM721> Message-ID: <001001c63246$a9ee63f0$e5b3d6d1@SUSANONE> Well shoot... The download won't work for me -- no clue -- just get the little red X box.:( http://www.lebans.com/DownloadFiles/ListBoxEnhanced.zip If someone downloaded this example, would you mind sending it to me privately? Maybe I can get it that way. Be sure to zip it up -- I'm on dial-up -- thank you! :) Susan H. http://www.lebans.com/customlistboxver3.htm From bheid at appdevgrp.com Wed Feb 15 10:37:05 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 15 Feb 2006 11:37:05 -0500 Subject: [AccessD] [SPAM SUSPECT] Re: Colors in a combo box In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D4B2CC@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D34F9C@ADGSERVER> I think you will have to a owner-drawn combo box. Not sure if you can do that in access. Here are some samples: Color Picker by Owner Drawn List Box and Combo Box (MFC/C++) http://www.codeproject.com/combobox/colorpicker.asp Owner Draw Combo and List Boxes Version 2.1 (VB5/6) http://tinyurl.com/8733q http://www.vbaccelerator.com/home/vb/Code/Controls/Combo_and_List_Boxes/Owne r_Draw_Combo_and_List_Box/article.asp Change the Style of a Control / Owner Drawn Controls (VB5/6) http://www.thescarms.com/vbasic/OwnerDrawn.asp Virtual Listbox Demo.zip (34KB) This project shows how you can create an owner drawn virtual listbox that allows you to set the color of each item to any color you want dynamically. It is based on Matt Hart's concept of hooking the WM_CREATE message for VB controls to enable changing window styles that can only be set when a control is created. This technique was published in the July, 1999 issue of the VBPJ. I have taken the concept a step further and encapsulated it in a user control. The listbox is also "virtual" in the sense that the items it displays are actually kept in a separate array. The list only calls for the text of an item when it needs to be drawn. This is very useful for situations where you have a large number of items that would require a long time to load into a regular listbox. This demo uses subclassing techniques so, If you don't already have it, you will want to get the Debug Object (Dbgwproc.dll) DLL to allow stepping through subclassed code in break mode in the VB IDE. http://www.mvps.org/vbvision/_samples/Virtual_Listbox_Demo.zip (Found at http://www.mvps.org/vbvision/grouped_demos.htm) Bobby -----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 14, 2006 11:58 PM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] Colors in a combo box Importance: Low Stuart: I showed it to him. Option frames were a new idea. He thought that was a really neat control - especially the part about the value being associated with the button that you could read in code. Stuff we take for granted. But he likes the combo boxes better. Of course, now that he's got the value lists all set up he doesn't want to redo it. :) I would be neat if you could drop down a list of colors or more generally, embedded graphics. So you could pick from a list of pictures. Access 2007? Thanks Rocky Stuart McLachlan wrote: > On 14 Feb 2006 at 17:45, Rocky Smolin - Beach Access S wrote: > > >> Dear List: >> >> Can you make a combo box display a list of colored boxes? Noah's >> putting together a program to give the value of a resistor if you select the >> colors of the rings. The combo box is currently a list of the colors. But >> it would be much cooler if it dropped down the colors instead of a list. Is >> this possible? >> >> > > I think you will have to do something with stacking columns of labels, - > wait a minute........... > > How about something like this: > http://www.lexacorp.com.pg/Resistor.gif > > Option Groups, Radio buttons and coloured labels. > Up to you to do the maths, but you can have a copy of the form if you want > it > > > -- Rocky Smolin From bchacc at san.rr.com Wed Feb 15 10:57:15 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 15 Feb 2006 08:57:15 -0800 Subject: [AccessD] Colors in a combo box In-Reply-To: <001001c63246$a9ee63f0$e5b3d6d1@SUSANONE> References: <001001c63246$a9ee63f0$e5b3d6d1@SUSANONE> Message-ID: <43F35D6B.4070409@san.rr.com> Done Susan Harkins wrote: > Well shoot... The download won't work for me -- no clue -- just get the > little red X box.:( > > http://www.lebans.com/DownloadFiles/ListBoxEnhanced.zip > > If someone downloaded this example, would you mind sending it to me > privately? Maybe I can get it that way. Be sure to zip it up -- I'm on > dial-up -- thank you! :) > > Susan H. > > http://www.lebans.com/customlistboxver3.htm > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From martyconnelly at shaw.ca Wed Feb 15 12:43:39 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 15 Feb 2006 10:43:39 -0800 Subject: [AccessD] Dubious value References: <00e101c6323f$2f223fe0$647aa8c0@ColbyM6805> Message-ID: <43F3765B.5040602@shaw.ca> I think what is happening is you are immediately switching into Exclusive mode as soon as you do any edit with a module open To prove it just open your mdb and then immediately Ctl-G and run your test routine from the immediate debug window. You might find it easier to debug by opening an external mdb file rather than using the current one I seem to remember in 2003 by doing a complete file save it may switch back to Shared mode. Also After and before the Open statement Try Debug.Print con.Mode For Shared open should be something like = 16 or = adModeShareDenyNone John Colby wrote: >>From the following blog: > >http://blogs.msdn.com/michkap/archive/2005/10/19/482694.aspx > >There is the Jet 4.0 feature of record level locking that people love, so I >will talk about that. > >Now the rule is that once the database is opened (by anybody), that is the >mode of the datasbase until all user are out of it; this makes sense since >locking schemes have to apply to all concurrent users to have any meaning. > >So what this means is that the Access setting in the Tools|Options Advanced >tab (the chekbox "Open databases using record-level locking") is a request, >not a demand. If the database is already opened in the other mode, your open >will not fail, and with the current design you are not even warned that your >preference was not heeded since your request could not be honored. > >But two additional warnings that you my find useful here exist: > > * 3811 -- Attempt to open the datasbase with the requested record level >locking failed; page level locking will be used > * 3812 -- Attempt to open the datasbase with the requested page level >locking failed; record level locking will be used > >What this means is that if in your database you run the following code after >it is open: > > Set con = New ADODB.Connection > con.Provider = "Microsoft.JET.OLEDB.4.0" > con.Properties("Data Source") = CurrentDb.Name > con.Properties("Jet OLEDB:Database Locking Mode") = 1 ' use 0 for page >level check > con.CursorLocation = adUseServer > con.Open > >and the database was not in the mode you asked for tht you will see one of >those warnings in the NativeError property, right in >con.Errors(0).NativeError! You will see one of the following values >(depending on whether you set the locking mode to 0 or 1 in the code) if >there is something in that collection (on 100% success it will be empty): > > * 249761507 -- Warning 3811 above (in hex it is 0x0ee30ee3, and 0x0ee3 >is indeed 3811) > * 249827044 -- Warning 3812 above (in hex it is 0x0ee40ee4, and 0x0ee4 >is indeed 3812) > >So it is as simple as that. You can obviously combine this with an >Application.GetOption("Use Row Level Locking") to see if the user running >the code is the cause of the problem so you can kick them out or whatever. >This becomes a much cooler way to solve problems such as those documented in >KB article 237333, which just tells people to change the setting in Access >and does not help people to fix the problem of the fact that it is not >always that user's settings which are causing the problem.... > > >************************ > >As always happens however... When I try and use that code, none of the above >errors occur, rather I get a message: > >"the database has been placed in a state that prevents it from being opened >or locked" > >I thought I would use this code to troubleshoot locking issues since I have >several clients where locking is an issue. Can anyone look at the code and >comment on why I would not get the indicated error? > >I am (for now) just running the code inside of my framework, standalone. > >John W. Colby >www.ColbyConsulting.com > > > > -- Marty Connelly Victoria, B.C. Canada From harkinsss at bellsouth.net Wed Feb 15 13:31:45 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 15 Feb 2006 14:31:45 -0500 Subject: [AccessD] OT: Quote of the day In-Reply-To: <5D5043687CFCE44288407A73E4CC6E17013EF5D1@redstone819.ad.redstone.army.mil> Message-ID: <000001c63266$78c139e0$e5b3d6d1@SUSANONE> Thank you Alan. I don't mean to imply that I'm not "smart enough." I just don't believe that I'm carrying around any superior intelligence or genius. I'm probably above average somewhat, but I don't think it's enough to celebrate. :) There are all kinds of intelligence. I don't memorize code and syntax, I remember where the samples are and I review them as needed. I know Access features well enough that I can usually put them together in ways others don't consider. That's not because I'm so smart, but because I am so familiar with the product. If I tried to remember all the solutions and reasons, I'd explode. That's the difference between me and many developers who just type out stuff that works. It is more efficient for me to review samples and apply them than to try to memorize every rule necessary to create it myself. That doesn't make me smart or dumb. It makes me -- it means I am familiar enough with my own abilities to know what works best for me. Almost everything you have read was inspired by someone else -- I don't just sit around and fire off solutions. Generally, I see snippets and pieces and they inspire something else. But that's my niche Alan -- it's the little spot I've carved out for myself out of necessity. I wouldn't even try to compete with the high-powered developers. That doesn't make me smarter or dumber than them, it makes me different. Although, frankly -- they probably do have a higher IQs than me, and that doesn't bother me. No, I've never taken an IQ test, that I can recall. I don't memorize much at all. I do remember enough to say, "Oh... I need to look that up..." And, I can retain a lot about some subjects with little effort, but I doubt I could write an essay on any subject (except personal) without requiring sources. I think we all remember the ACT's and SAT's from high school? I was a decent student -- in the top 20% -- but not exceptional by any means. When we compared SAT scores, a friend of mine -- one of the top 10 seniors -- was just increduous that my score was higher than hers. In fact, she went so far as to claim they'd made a mistake -- she was truly angry. I was just hurt. A teacher I was fond of later explained to me that my friend had to work very hard for her grades. She studied relentlessly and put 100% into everything she did and here I was -- doing good if I handed in my homework and showed up for class 4 days out of 5, and I scored higher than her. Now, the point of that story is -- if, at the same time, that friend and I had both taken IQ tests -- she's have probably scored higher than me. My success with the SAT's and ACT's was the way they asked questions, not the questions themselves. She memorized things, and she memorized a whole lot. However, what she didn't memorize, she didn't know. I just thought through the questions and gave the answer that seemed the best. I didn't know the answers to most of the questions. I reasoned many answers, I didn't "know" the answers. There are different kinds of brain power, and I doubt either one's better than the other -- but it does make us all very different. People get into trouble when they fail to recognize their weaknesses or fail to take advantage of their strengths. I am not a genius -- no way even near it. I simply know what I'm good at, and that's what I do. Susan H. I have bought, read, (and actually used!) some of the code (and code snippets) in some of your programming books - especially your "Access" programming books. I have always felt that you have a very well organized mind (programming wise) and a special knack for explaining "technical things" very well. (We won't get into your political views ... that's for the OT list.) I'm curious about something. Have you ever taken a standardized IQ test - such as the Stanford-Binet assessment - and if so, what is your IQ? (I took an on-line IQ test recently and scored 127 or 128. The assessment said I was "near genius" and capable of earning a doctoral degree. I laughed at this, thinking it was much more likely that the web site was simply stroking my ego in hopes that I would actually pay for some of their more "intensive and focused" tests ...) It has always struck me that you are much smarter (and "intelligent") than you let on. Alan C. Lawhon -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, February 15, 2006 8:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Quote of the day I'm not a technical minded person -- I only make my living this way because it's what presented itself at a time when I needed it. It was means, not a passion by any means. I'd had to overcome a lot, because my mind doesn't translate binary automatically (well, I'm sure it does, but you know what I mean!). But, what I always found challenging and almost inspiring was finding solutions that the "experts" said didn't exist without code, or at least a lot of code. That is my forte and I have gotten a lot of enjoyment out of it. :) The second best thing has been taking massive blocks of code and reducing them, by a lot -- I am always astounded by the general lack of care given "logic" in most code. Susan H. "It's my experience that coming up with an elegant solution is deeply satisfying at an entirely different level; it feels closer to art than technology. And elegance always pays off; it's not a frivolous pursuit. Not only does it give you a program that's easier to build and debug, but it's also easier to understand and maintain, and that's where the financial value lies." Thinking in C++, 2nd ed. Volume 1 C2000 by Bruce Eckel -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.25/247 - Release Date: 1/31/2006 From jwcolby at ColbyConsulting.com Wed Feb 15 14:04:05 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 15 Feb 2006 15:04:05 -0500 Subject: [AccessD] Dubious value In-Reply-To: <43F3765B.5040602@shaw.ca> Message-ID: <011301c6326a$fa165e90$647aa8c0@ColbyM6805> I have not even figured out what the code does. It appears to try and switch the database to a given mode, but then there is code that reads the mode but it doesn't reflect these changes. Perhaps the read code reads the properties of the FE and this is the properties of the BE, though how they discover which BE is beyond me. All rather confusing. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, February 15, 2006 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dubious value I think what is happening is you are immediately switching into Exclusive mode as soon as you do any edit with a module open To prove it just open your mdb and then immediately Ctl-G and run your test routine from the immediate debug window. You might find it easier to debug by opening an external mdb file rather than using the current one I seem to remember in 2003 by doing a complete file save it may switch back to Shared mode. Also After and before the Open statement Try Debug.Print con.Mode For Shared open should be something like = 16 or = adModeShareDenyNone John Colby wrote: >>From the following blog: > >http://blogs.msdn.com/michkap/archive/2005/10/19/482694.aspx > >There is the Jet 4.0 feature of record level locking that people love, >so I will talk about that. > >Now the rule is that once the database is opened (by anybody), that is >the mode of the datasbase until all user are out of it; this makes >sense since locking schemes have to apply to all concurrent users to have any meaning. > >So what this means is that the Access setting in the Tools|Options >Advanced tab (the chekbox "Open databases using record-level locking") >is a request, not a demand. If the database is already opened in the >other mode, your open will not fail, and with the current design you >are not even warned that your preference was not heeded since your request could not be honored. > >But two additional warnings that you my find useful here exist: > > * 3811 -- Attempt to open the datasbase with the requested record >level locking failed; page level locking will be used > * 3812 -- Attempt to open the datasbase with the requested page >level locking failed; record level locking will be used > >What this means is that if in your database you run the following code >after it is open: > > Set con = New ADODB.Connection > con.Provider = "Microsoft.JET.OLEDB.4.0" > con.Properties("Data Source") = CurrentDb.Name > con.Properties("Jet OLEDB:Database Locking Mode") = 1 ' use 0 for >page level check > con.CursorLocation = adUseServer > con.Open > >and the database was not in the mode you asked for tht you will see one >of those warnings in the NativeError property, right in >con.Errors(0).NativeError! You will see one of the following values >(depending on whether you set the locking mode to 0 or 1 in the code) >if there is something in that collection (on 100% success it will be empty): > > * 249761507 -- Warning 3811 above (in hex it is 0x0ee30ee3, and >0x0ee3 is indeed 3811) > * 249827044 -- Warning 3812 above (in hex it is 0x0ee40ee4, and >0x0ee4 is indeed 3812) > >So it is as simple as that. You can obviously combine this with an >Application.GetOption("Use Row Level Locking") to see if the user >running the code is the cause of the problem so you can kick them out or whatever. >This becomes a much cooler way to solve problems such as those >documented in KB article 237333, which just tells people to change the >setting in Access and does not help people to fix the problem of the >fact that it is not always that user's settings which are causing the problem.... > > >************************ > >As always happens however... When I try and use that code, none of the >above errors occur, rather I get a message: > >"the database has been placed in a state that prevents it from being >opened or locked" > >I thought I would use this code to troubleshoot locking issues since I >have several clients where locking is an issue. Can anyone look at the >code and comment on why I would not get the indicated error? > >I am (for now) just running the code inside of my framework, standalone. > >John W. Colby >www.ColbyConsulting.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 Wed Feb 15 14:55:52 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 15 Feb 2006 12:55:52 -0800 Subject: [AccessD] Dubious value References: <011301c6326a$fa165e90$647aa8c0@ColbyM6805> Message-ID: <43F39558.30803@shaw.ca> Well I can get both error messages to occur * 3811 -- Attempt to open the datasbase with the requested record level locking failed; page level locking will be used * 3812 -- Attempt to open the datasbase with the requested page level locking failed; record level locking will be used if I put this line after the open statement Debug.Print con.Errors(0).NativeError If I get no error at all on this line, the line itself will error with a 3265 error Item cannot be found in the collection You have to also set Tools --> Options --> Advanced and select page locking by toggle locking all records or full record locking checkbox Open database for record locking. Just remember once the mdb is opened with either page or record locing setting, it stays that way until everyone is out of the pool and the mdb is closed. John Colby wrote: >I have not even figured out what the code does. It appears to try and >switch the database to a given mode, but then there is code that reads the >mode but it doesn't reflect these changes. Perhaps the read code reads the >properties of the FE and this is the properties of the BE, though how they >discover which BE is beyond me. All rather confusing. > > >John W. Colby >www.ColbyConsulting.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Wednesday, February 15, 2006 1:44 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Dubious value > >I think what is happening is you are immediately switching into Exclusive >mode as soon as you do any edit with a module open To prove it just open >your mdb and then immediately Ctl-G and run your test routine from the >immediate debug window. >You might find it easier to debug by opening an external mdb file rather >than using the current one I seem to remember in 2003 by doing a complete >file save it may switch back to Shared mode. > >Also After and before the Open statement > >Try Debug.Print con.Mode >For Shared open should be something like = 16 or > >= adModeShareDenyNone > >John Colby wrote: > > > >>>From the following blog: >> >>http://blogs.msdn.com/michkap/archive/2005/10/19/482694.aspx >> >>There is the Jet 4.0 feature of record level locking that people love, >>so I will talk about that. >> >>Now the rule is that once the database is opened (by anybody), that is >>the mode of the datasbase until all user are out of it; this makes >>sense since locking schemes have to apply to all concurrent users to have >> >> >any meaning. > > >>So what this means is that the Access setting in the Tools|Options >>Advanced tab (the chekbox "Open databases using record-level locking") >>is a request, not a demand. If the database is already opened in the >>other mode, your open will not fail, and with the current design you >>are not even warned that your preference was not heeded since your request >> >> >could not be honored. > > >>But two additional warnings that you my find useful here exist: >> >> * 3811 -- Attempt to open the datasbase with the requested record >>level locking failed; page level locking will be used >> * 3812 -- Attempt to open the datasbase with the requested page >>level locking failed; record level locking will be used >> >>What this means is that if in your database you run the following code >>after it is open: >> >> Set con = New ADODB.Connection >> con.Provider = "Microsoft.JET.OLEDB.4.0" >> con.Properties("Data Source") = CurrentDb.Name >> con.Properties("Jet OLEDB:Database Locking Mode") = 1 ' use 0 for >>page level check >> con.CursorLocation = adUseServer >> con.Open >> >>and the database was not in the mode you asked for tht you will see one >>of those warnings in the NativeError property, right in >>con.Errors(0).NativeError! You will see one of the following values >>(depending on whether you set the locking mode to 0 or 1 in the code) >>if there is something in that collection (on 100% success it will be >> >> >empty): > > >> * 249761507 -- Warning 3811 above (in hex it is 0x0ee30ee3, and >>0x0ee3 is indeed 3811) >> * 249827044 -- Warning 3812 above (in hex it is 0x0ee40ee4, and >>0x0ee4 is indeed 3812) >> >>So it is as simple as that. You can obviously combine this with an >>Application.GetOption("Use Row Level Locking") to see if the user >>running the code is the cause of the problem so you can kick them out or >> >> >whatever. > > >>This becomes a much cooler way to solve problems such as those >>documented in KB article 237333, which just tells people to change the >>setting in Access and does not help people to fix the problem of the >>fact that it is not always that user's settings which are causing the >> >> >problem.... > > >>************************ >> >>As always happens however... When I try and use that code, none of the >>above errors occur, rather I get a message: >> >>"the database has been placed in a state that prevents it from being >>opened or locked" >> >>I thought I would use this code to troubleshoot locking issues since I >>have several clients where locking is an issue. Can anyone look at the >>code and comment on why I would not get the indicated error? >> >>I am (for now) just running the code inside of my framework, standalone. >> >>John W. Colby >>www.ColbyConsulting.com >> >> >> >> >> >> > >-- >Marty Connelly >Victoria, B.C. >Canada > > > > > -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Wed Feb 15 16:09:39 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 16 Feb 2006 08:09:39 +1000 Subject: [AccessD] OT: Quote of the day In-Reply-To: <000001c63266$78c139e0$e5b3d6d1@SUSANONE> References: <5D5043687CFCE44288407A73E4CC6E17013EF5D1@redstone819.ad.redstone.army.mil> Message-ID: <43F43343.4447.C6042C4@stuart.lexacorp.com.pg> On 15 Feb 2006 at 14:31, Susan Harkins wrote: > student -- in the top 20% -- but not exceptional by any means. When we > compared SAT scores, a friend of mine -- one of the top 10 seniors -- was > just increduous that my score was higher than hers. In fact, she went so far > as to claim they'd made a mistake -- she was truly angry. I was just hurt. A > teacher I was fond of later explained to me that my friend had to work very > hard for her grades. She studied relentlessly and put 100% into everything > she did and here I was -- doing good if I handed in my homework and showed > up for class 4 days out of 5, and I scored higher than her. > > Now, the point of that story is -- if, at the same time, that friend and I > had both taken IQ tests -- she's have probably scored higher than me. I doubt that very much. Based on my reading of the people on this list, I reckon I could name several people here who, in their school days were " in the top 20%" and "doing good if I handed in my homework and showed up for class 4 days out of 5". They are the sort, who ace IQ tests if they can be bothered to do them. The real smart ones are the one who work out early on just how much they have to do to get by comfortably in school. > My > success with the SAT's and ACT's was the way they asked questions, not the > questions themselves. She memorized things, and she memorized a whole lot. > However, what she didn't memorize, she didn't know. I just thought through > the questions and gave the answer that seemed the best. I didn't know the > answers to most of the questions. I reasoned many answers, I didn't "know" > the answers. > Exactly. Knowledge is not intelligence and you should never confuse the two. Sounds like the people who design your SATs and ACTS are smart enough to know this and are testing the right thing. -- Stuart From mikedorism at verizon.net Wed Feb 15 16:12:46 2006 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Wed, 15 Feb 2006 17:12:46 -0500 Subject: [AccessD] Access XP Runtime and Citrix Message-ID: <000601c6327c$f4796dd0$2f01a8c0@dorismanning> I've got an application that my users generally run using Access Runtime ADP FE on their local computers. The "powers that be" have decided to switch over to a Citrix network. The problem. the application still runs and generates no errors, but the forms do not show the data they are supposed to. If you run the application on the Citrix server itself, the data changes just like it should. Are there any gotchas I should know about when it comes to running an Access ADP FE on a Citrix network? Doris Manning mikedorism at verizon.net From jimdettman at earthlink.net Wed Feb 15 16:34:03 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 15 Feb 2006 17:34:03 -0500 Subject: [AccessD] Dubious value In-Reply-To: <011301c6326a$fa165e90$647aa8c0@ColbyM6805> Message-ID: The code is a work around to force DAO to use record locking. Don't know if it works or not, but it's from a MSKB article. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Colby Sent: Wednesday, February 15, 2006 3:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Dubious value I have not even figured out what the code does. It appears to try and switch the database to a given mode, but then there is code that reads the mode but it doesn't reflect these changes. Perhaps the read code reads the properties of the FE and this is the properties of the BE, though how they discover which BE is beyond me. All rather confusing. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, February 15, 2006 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Dubious value I think what is happening is you are immediately switching into Exclusive mode as soon as you do any edit with a module open To prove it just open your mdb and then immediately Ctl-G and run your test routine from the immediate debug window. You might find it easier to debug by opening an external mdb file rather than using the current one I seem to remember in 2003 by doing a complete file save it may switch back to Shared mode. Also After and before the Open statement Try Debug.Print con.Mode For Shared open should be something like = 16 or = adModeShareDenyNone John Colby wrote: >>From the following blog: > >http://blogs.msdn.com/michkap/archive/2005/10/19/482694.aspx > >There is the Jet 4.0 feature of record level locking that people love, >so I will talk about that. > >Now the rule is that once the database is opened (by anybody), that is >the mode of the datasbase until all user are out of it; this makes >sense since locking schemes have to apply to all concurrent users to have any meaning. > >So what this means is that the Access setting in the Tools|Options >Advanced tab (the chekbox "Open databases using record-level locking") >is a request, not a demand. If the database is already opened in the >other mode, your open will not fail, and with the current design you >are not even warned that your preference was not heeded since your request could not be honored. > >But two additional warnings that you my find useful here exist: > > * 3811 -- Attempt to open the datasbase with the requested record >level locking failed; page level locking will be used > * 3812 -- Attempt to open the datasbase with the requested page >level locking failed; record level locking will be used > >What this means is that if in your database you run the following code >after it is open: > > Set con = New ADODB.Connection > con.Provider = "Microsoft.JET.OLEDB.4.0" > con.Properties("Data Source") = CurrentDb.Name > con.Properties("Jet OLEDB:Database Locking Mode") = 1 ' use 0 for >page level check > con.CursorLocation = adUseServer > con.Open > >and the database was not in the mode you asked for tht you will see one >of those warnings in the NativeError property, right in >con.Errors(0).NativeError! You will see one of the following values >(depending on whether you set the locking mode to 0 or 1 in the code) >if there is something in that collection (on 100% success it will be empty): > > * 249761507 -- Warning 3811 above (in hex it is 0x0ee30ee3, and >0x0ee3 is indeed 3811) > * 249827044 -- Warning 3812 above (in hex it is 0x0ee40ee4, and >0x0ee4 is indeed 3812) > >So it is as simple as that. You can obviously combine this with an >Application.GetOption("Use Row Level Locking") to see if the user >running the code is the cause of the problem so you can kick them out or whatever. >This becomes a much cooler way to solve problems such as those >documented in KB article 237333, which just tells people to change the >setting in Access and does not help people to fix the problem of the >fact that it is not always that user's settings which are causing the problem.... > > >************************ > >As always happens however... When I try and use that code, none of the >above errors occur, rather I get a message: > >"the database has been placed in a state that prevents it from being >opened or locked" > >I thought I would use this code to troubleshoot locking issues since I >have several clients where locking is an issue. Can anyone look at the >code and comment on why I would not get the indicated error? > >I am (for now) just running the code inside of my framework, standalone. > >John W. Colby >www.ColbyConsulting.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 From Jim.Hale at FleetPride.com Wed Feb 15 16:36:39 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 15 Feb 2006 16:36:39 -0600 Subject: [AccessD] Access XP Runtime and Citrix Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA22@corp-es01.fleetpride.com> I had a similar issue. From the archives: (I have to say I never solved it to my satisfaction) Sent: Monday, October 25, 2004 9:44 AM Subject: [AccessD] Strange Citrix error when running Access with Excel " I have a database that populates Excel budget spreadsheets from Access tables and also opens Excel spreadsheets and extracts data. I am using Office 2000 and DAO 3.6. The code runs flawlessly on my machine. On the Citrix server, however, the code to extract data from spreadsheets runs fine but the code to populate spreadsheets tells me that the interface does not support this operation. References are okay and permissions seem ok since I can save the spreadsheet (sans the data) through automation. Why automation works in one direction but not the other is beyond me. Any suggestions? TIA" Response from Greg: "We've had similar problems. Terminal Services uses the console to open office objects from code interactively. We got around it by always having the console logged in (not pretty just works). If you still have problems you might try adjusting your DCOMCNFG to allow interactive access and launch permissions." -----Original Message----- From: Mike & Doris Manning [mailto:mikedorism at verizon.net] Sent: Wednesday, February 15, 2006 4:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access XP Runtime and Citrix I've got an application that my users generally run using Access Runtime ADP FE on their local computers. The "powers that be" have decided to switch over to a Citrix network. The problem. the application still runs and generates no errors, but the forms do not show the data they are supposed to. If you run the application on the Citrix server itself, the data changes just like it should. Are there any gotchas I should know about when it comes to running an Access ADP FE on a Citrix network? *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From jwcolby at ColbyConsulting.com Wed Feb 15 17:20:13 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 15 Feb 2006 18:20:13 -0500 Subject: [AccessD] OT: Intelligence (or the lack thereof) In-Reply-To: <43F43343.4447.C6042C4@stuart.lexacorp.com.pg> Message-ID: <012701c63286$66824e20$647aa8c0@ColbyM6805> I had the honor to work with a guy who was a degreed Electrical Engineer. It drove me crazy working with him - he would literally pull down the menus in Turbo Pascal (this was in the mid 80s) and read the selections, then choose one. EVERY TIME. He never "learned" the menus. Trying to do anything with him just drove me nuts. The nicest guy, but just a click or two above "average" intelligence. I think he was the guy studying till midnight every night in college, but he succeeded. OTOH, I also worked with a guy that was in the "180" range. Brilliant, totally normal (which is not necessarily normal in that IQ level) etc. He was the author of the compression algorithms for Stac Electronics of Stacker fame. I would go in to his office with a question, something I was struggling with. He would be typing in 'C' code, never even stop typing, and spit out the answer. That is a humbling experience believe me. 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 15, 2006 5:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Quote of the day On 15 Feb 2006 at 14:31, Susan Harkins wrote: > student -- in the top 20% -- but not exceptional by any means. When we > compared SAT scores, a friend of mine -- one of the top 10 seniors -- > was just increduous that my score was higher than hers. In fact, she > went so far as to claim they'd made a mistake -- she was truly angry. > I was just hurt. A teacher I was fond of later explained to me that my > friend had to work very hard for her grades. She studied relentlessly > and put 100% into everything she did and here I was -- doing good if I > handed in my homework and showed up for class 4 days out of 5, and I scored higher than her. > > Now, the point of that story is -- if, at the same time, that friend > and I had both taken IQ tests -- she's have probably scored higher than me. I doubt that very much. Based on my reading of the people on this list, I reckon I could name several people here who, in their school days were " in the top 20%" and "doing good if I handed in my homework and showed up for class 4 days out of 5". They are the sort, who ace IQ tests if they can be bothered to do them. The real smart ones are the one who work out early on just how much they have to do to get by comfortably in school. > My > success with the SAT's and ACT's was the way they asked questions, not > the questions themselves. She memorized things, and she memorized a whole lot. > However, what she didn't memorize, she didn't know. I just thought > through the questions and gave the answer that seemed the best. I > didn't know the answers to most of the questions. I reasoned many answers, I didn't "know" > the answers. > Exactly. Knowledge is not intelligence and you should never confuse the two. Sounds like the people who design your SATs and ACTS are smart enough to know this and are testing the right thing. -- Stuart -- 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 15 17:40:20 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 15 Feb 2006 15:40:20 -0800 Subject: [AccessD] Access XP Runtime and Citrix References: <000601c6327c$f4796dd0$2f01a8c0@dorismanning> Message-ID: <43F3BBE4.7040008@shaw.ca> Maybe some links here http://www.granite.ab.ca/access/terminalserver.htm I have heard of problems if the app is installed from a terminal client rather than terminal server console. Mike & Doris Manning wrote: >I've got an application that my users generally run using Access Runtime ADP >FE on their local computers. The "powers that be" have decided to switch >over to a Citrix network. The problem. the application still runs and >generates no errors, but the forms do not show the data they are supposed >to. If you run the application on the Citrix server itself, the data >changes just like it should. > > > >Are there any gotchas I should know about when it comes to running an Access >ADP FE on a Citrix network? > > > >Doris Manning > >mikedorism at verizon.net > > > > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Wed Feb 15 17:40:39 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 15 Feb 2006 15:40:39 -0800 Subject: [AccessD] OT: Intelligence (or the lack thereof) Message-ID: LOL I used to belong to Mensa, but everyone I met there seemed to work for the state! They spent a lot of time playing "my IQ is higher than yours." I decided none of us were all that smart and quit! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Wednesday, February 15, 2006 3:20 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Intelligence (or the lack thereof) I had the honor to work with a guy who was a degreed Electrical Engineer. It drove me crazy working with him - he would literally pull down the menus in Turbo Pascal (this was in the mid 80s) and read the selections, then choose one. EVERY TIME. He never "learned" the menus. Trying to do anything with him just drove me nuts. The nicest guy, but just a click or two above "average" intelligence. I think he was the guy studying till midnight every night in college, but he succeeded. OTOH, I also worked with a guy that was in the "180" range. Brilliant, totally normal (which is not necessarily normal in that IQ level) etc. He was the author of the compression algorithms for Stac Electronics of Stacker fame. I would go in to his office with a question, something I was struggling with. He would be typing in 'C' code, never even stop typing, and spit out the answer. That is a humbling experience believe me. 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 15, 2006 5:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Quote of the day On 15 Feb 2006 at 14:31, Susan Harkins wrote: > student -- in the top 20% -- but not exceptional by any means. When we > compared SAT scores, a friend of mine -- one of the top 10 seniors -- > was just increduous that my score was higher than hers. In fact, she > went so far as to claim they'd made a mistake -- she was truly angry. > I was just hurt. A teacher I was fond of later explained to me that my > friend had to work very hard for her grades. She studied relentlessly > and put 100% into everything she did and here I was -- doing good if I > handed in my homework and showed up for class 4 days out of 5, and I scored higher than her. > > Now, the point of that story is -- if, at the same time, that friend > and I had both taken IQ tests -- she's have probably scored higher than me. I doubt that very much. Based on my reading of the people on this list, I reckon I could name several people here who, in their school days were " in the top 20%" and "doing good if I handed in my homework and showed up for class 4 days out of 5". They are the sort, who ace IQ tests if they can be bothered to do them. The real smart ones are the one who work out early on just how much they have to do to get by comfortably in school. > My > success with the SAT's and ACT's was the way they asked questions, not > the questions themselves. She memorized things, and she memorized a whole lot. > However, what she didn't memorize, she didn't know. I just thought > through the questions and gave the answer that seemed the best. I > didn't know the answers to most of the questions. I reasoned many answers, I didn't "know" > the answers. > Exactly. Knowledge is not intelligence and you should never confuse the two. Sounds like the people who design your SATs and ACTS are smart enough to know this and are testing the right thing. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Wed Feb 15 17:54:45 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 16 Feb 2006 09:54:45 +1000 Subject: [AccessD] OT: Intelligence (or the lack thereof) In-Reply-To: Message-ID: <43F44BE5.7138.CC07C30@stuart.lexacorp.com.pg> On 15 Feb 2006 at 15:40, Charlotte Foust wrote: > LOL I used to belong to Mensa, but everyone I met there seemed to work for > the state! They spent a lot of time playing "my IQ is higher than yours." That is exactly my impression about Mensa - it looks to me like a club for smart w*nkers. I suspect a lot of members have also got their names in various "Who's Who" directories. > I decided none of us were all that smart and quit! > Now that *was* a smart move :-) -- Stuart From erbachs at gmail.com Wed Feb 15 18:05:57 2006 From: erbachs at gmail.com (Steve Erbach) Date: Wed, 15 Feb 2006 18:05:57 -0600 Subject: [AccessD] OT: Quote of the day In-Reply-To: <000001c63266$78c139e0$e5b3d6d1@SUSANONE> References: <5D5043687CFCE44288407A73E4CC6E17013EF5D1@redstone819.ad.redstone.army.mil> <000001c63266$78c139e0$e5b3d6d1@SUSANONE> Message-ID: <39cb22f30602151605r4faf96f5td287f80a72e2e6db@mail.gmail.com> Susan, Sounds like you're describing the classic differences between an over-achiever (your incensed schoolmate) and an under-achiever. Over-achievers often don't have the natural brain power or talent but have an abundance of drive and, sometimes, confidence. I am definitely in the under- category. I liked Stuart's comment about "if they can be bothered to do them." That's me. Now, the ones that are dangerous are the ones with brain power AND drive. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/15/06, Susan Harkins wrote: > Thank you Alan. I don't mean to imply that I'm not "smart enough." I just > don't believe that I'm carrying around any superior intelligence or genius. > I'm probably above average somewhat, but I don't think it's enough to > celebrate. :) There are all kinds of intelligence. I don't memorize code and > syntax, I remember where the samples are and I review them as needed. I know > Access features well enough that I can usually put them together in ways > others don't consider. That's not because I'm so smart, but because I am so > familiar with the product. > > If I tried to remember all the solutions and reasons, I'd explode. That's > the difference between me and many developers who just type out stuff that > works. It is more efficient for me to review samples and apply them than to > try to memorize every rule necessary to create it myself. That doesn't make > me smart or dumb. It makes me -- it means I am familiar enough with my own > abilities to know what works best for me. Almost everything you have read > was inspired by someone else -- I don't just sit around and fire off > solutions. Generally, I see snippets and pieces and they inspire something > else. But that's my niche Alan -- it's the little spot I've carved out for > myself out of necessity. I wouldn't even try to compete with the > high-powered developers. That doesn't make me smarter or dumber than them, > it makes me different. Although, frankly -- they probably do have a higher > IQs than me, and that doesn't bother me. > > No, I've never taken an IQ test, that I can recall. I don't memorize much at > all. I do remember enough to say, "Oh... I need to look that up..." And, I > can retain a lot about some subjects with little effort, but I doubt I could > write an essay on any subject (except personal) without requiring sources. I > think we all remember the ACT's and SAT's from high school? I was a decent > student -- in the top 20% -- but not exceptional by any means. When we > compared SAT scores, a friend of mine -- one of the top 10 seniors -- was > just increduous that my score was higher than hers. In fact, she went so far > as to claim they'd made a mistake -- she was truly angry. I was just hurt. A > teacher I was fond of later explained to me that my friend had to work very > hard for her grades. She studied relentlessly and put 100% into everything > she did and here I was -- doing good if I handed in my homework and showed > up for class 4 days out of 5, and I scored higher than her. > > Now, the point of that story is -- if, at the same time, that friend and I > had both taken IQ tests -- she's have probably scored higher than me. My > success with the SAT's and ACT's was the way they asked questions, not the > questions themselves. She memorized things, and she memorized a whole lot. > However, what she didn't memorize, she didn't know. I just thought through > the questions and gave the answer that seemed the best. I didn't know the > answers to most of the questions. I reasoned many answers, I didn't "know" > the answers. > > There are different kinds of brain power, and I doubt either one's better > than the other -- but it does make us all very different. People get into > trouble when they fail to recognize their weaknesses or fail to take > advantage of their strengths. > > I am not a genius -- no way even near it. I simply know what I'm good at, > and that's what I do. > > Susan H. > From harkinsss at bellsouth.net Wed Feb 15 18:50:39 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 15 Feb 2006 19:50:39 -0500 Subject: [AccessD] OT: Quote of the day In-Reply-To: <43F43343.4447.C6042C4@stuart.lexacorp.com.pg> Message-ID: <001a01c63293$0278a480$95b3d6d1@SUSANONE> > > Now, the point of that story is -- if, at the same time, that friend > and I had both taken IQ tests -- she's have probably scored higher than me. I doubt that very much. Based on my reading of the people on this list, I reckon I could name several people here who, in their school days were " in the top 20%" and "doing good if I handed in my homework and showed up for class 4 days out of 5". They are the sort, who ace IQ tests if they can be bothered to do them. The real smart ones are the one who work out early on just how much they have to do to get by comfortably in school. ========I wasn't acing anything, and looking back, I don't feel so smart. I had the opportunity to get a great education and I blew it off because I could get decent grades with no effort. That's not smart -- I was totally stupid and immature. > My > success with the SAT's and ACT's was the way they asked questions, not > the questions themselves. She memorized things, and she memorized a whole lot. > However, what she didn't memorize, she didn't know. I just thought > through the questions and gave the answer that seemed the best. I > didn't know the answers to most of the questions. I reasoned many answers, I didn't "know" > the answers. > Exactly. Knowledge is not intelligence and you should never confuse the two. Sounds like the people who design your SATs and ACTS are smart enough to know this and are testing the right thing. ========Yes, we agree here. My natural ability may have been greater than my friend's, but she was using hers and I wasn't. She was assimilating, I was guessing. I was able to reason through the questions and you may be right -- if the tests are measuring intelligence -- the ability to comprehend and reason -- and test your knowledge as well, you might be right. Susan H. From hadyn at dataconcepts.co.nz Wed Feb 15 20:32:29 2006 From: hadyn at dataconcepts.co.nz (Hadyn Morgan) Date: Thu, 16 Feb 2006 15:32:29 +1300 Subject: [AccessD] OT: Bug / Feature Databases In-Reply-To: <001a01c63293$0278a480$95b3d6d1@SUSANONE> Message-ID: Hi All Just wondering what people use to track bugs and feature requests for their applications. Do you use an inhouse database or a off the shelf package? If you use a OTS package, which one and why? Kind regards Hadyn -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.9/261 - Release Date: 15/02/2006 From jwcolby at ColbyConsulting.com Wed Feb 15 20:40:45 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Wed, 15 Feb 2006 21:40:45 -0500 Subject: [AccessD] OT: Quote of the day In-Reply-To: <001a01c63293$0278a480$95b3d6d1@SUSANONE> Message-ID: <013301c632a2$641f9540$647aa8c0@ColbyM6805> True intelligence is the reasonable application of knowledge. Intelligence without knowledge is useless, knowledge without intelligence is dangerous. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, February 15, 2006 7:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Quote of the day > > Now, the point of that story is -- if, at the same time, that friend > and I had both taken IQ tests -- she's have probably scored higher > than me. I doubt that very much. Based on my reading of the people on this list, I reckon I could name several people here who, in their school days were " in the top 20%" and "doing good if I handed in my homework and showed up for class 4 days out of 5". They are the sort, who ace IQ tests if they can be bothered to do them. The real smart ones are the one who work out early on just how much they have to do to get by comfortably in school. ========I wasn't acing anything, and looking back, I don't feel so smart. I had the opportunity to get a great education and I blew it off because I could get decent grades with no effort. That's not smart -- I was totally stupid and immature. > My > success with the SAT's and ACT's was the way they asked questions, not > the questions themselves. She memorized things, and she memorized a > whole lot. > However, what she didn't memorize, she didn't know. I just thought > through the questions and gave the answer that seemed the best. I > didn't know the answers to most of the questions. I reasoned many > answers, I didn't "know" > the answers. > Exactly. Knowledge is not intelligence and you should never confuse the two. Sounds like the people who design your SATs and ACTS are smart enough to know this and are testing the right thing. ========Yes, we agree here. My natural ability may have been greater than my friend's, but she was using hers and I wasn't. She was assimilating, I was guessing. I was able to reason through the questions and you may be right -- if the tests are measuring intelligence -- the ability to comprehend and reason -- and test your knowledge as well, you might be right. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Wed Feb 15 21:06:27 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Wed, 15 Feb 2006 19:06:27 -0800 Subject: [AccessD] Parameter Request window Message-ID: <000301c632a5$fb244a50$6701a8c0@HPLaptop> I am working on a report. Suddenly when I go to preview the report it opens a parameter window and asks for a parameter. The caption in the parameter is just one of the tables in the query? Any one seen this before. Joe Hecht jmhecht at earthlink.net From bchacc at san.rr.com Wed Feb 15 23:15:39 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 15 Feb 2006 21:15:39 -0800 Subject: [AccessD] Parameter Request window In-Reply-To: <000301c632a5$fb244a50$6701a8c0@HPLaptop> References: <000301c632a5$fb244a50$6701a8c0@HPLaptop> Message-ID: <43F40A7B.6080208@san.rr.com> Many times. Usually I've misspelled something so it doesn't point to a legitimate field or an expression that doesn't evaluate correctly. Sometimes I've changed a table in a query and left one of the fields from the old table there. Lots of things. Unfortunately that parameter prompt doesn't give you much of a clue. Rocky Joe Hecht wrote: > I am working on a report. Suddenly when I go to preview the > report it opens a parameter window and asks for a > parameter. > > > > The caption in the parameter is just one of the tables in > the query? Any one seen this before. > > Joe Hecht > > jmhecht at earthlink.net > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From stuart at lexacorp.com.pg Wed Feb 15 23:23:05 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 16 Feb 2006 15:23:05 +1000 Subject: [AccessD] Parameter Request window In-Reply-To: <000301c632a5$fb244a50$6701a8c0@HPLaptop> Message-ID: <43F498D9.7955.DED1512@stuart.lexacorp.com.pg> On 15 Feb 2006 at 19:06, Joe Hecht wrote: > I am working on a report. Suddenly when I go to preview the > report it opens a parameter window and asks for a > parameter. > > > > The caption in the parameter is just one of the tables in > the query? Any one seen this before. > Try opening the query in design view and make sure that it still looks OK. The switch to data view. You may get a more useful error there. -- Stuart From pedro at plex.nl Thu Feb 16 09:33:37 2006 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 16 Feb 2006 09:33:37 (MET) Subject: [AccessD] weekdays Message-ID: <200602160833.k1G8Xbcw006651@mailhostC.plex.net> Hello Group, i now that there is an sql that can give me the days of the week fo a specific date, but i can't find it right now. Who can help me? i have: date 16-02-06 17-02-06 i need: date day 16-02-06 thursday 17-02-06 friday Pedro Janssen From Gustav at cactus.dk Thu Feb 16 03:11:03 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 16 Feb 2006 10:11:03 +0100 Subject: [AccessD] Parameter Request window Message-ID: Hi Joe Also, in design view, check your settings for grouping and sorting of the report. /gustav >>> stuart at lexacorp.com.pg 16-02-2006 06:23:05 >>> On 15 Feb 2006 at 19:06, Joe Hecht wrote: > I am working on a report. Suddenly when I go to preview the > report it opens a parameter window and asks for a > parameter. > > The caption in the parameter is just one of the tables in > the query? Any one seen this before. > Try opening the query in design view and make sure that it still looks OK. The switch to data view. You may get a more useful error there. -- Stuart From Gustav at cactus.dk Thu Feb 16 03:13:26 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 16 Feb 2006 10:13:26 +0100 Subject: [AccessD] weekdays Message-ID: Hi Pedro There is no native SQL for that but for ISO weekdays use Weekday([date], 2) /gustav >>> pedro at plex.nl 16-02-2006 09:33:37 >>> Hello Group, i now that there is an sql that can give me the days of the week fo a specific date, but i can't find it right now. Who can help me? i have: date 16-02-06 17-02-06 i need: date day 16-02-06 thursday 17-02-06 friday Pedro Janssen From hkotsch at arcor.de Thu Feb 16 03:28:45 2006 From: hkotsch at arcor.de (Helmut Kotsch) Date: Thu, 16 Feb 2006 10:28:45 +0100 Subject: [AccessD] weekdays In-Reply-To: <200602160833.k1G8Xbcw006651@mailhostC.plex.net> Message-ID: In the German version of Access it is Format([yourdate];"tttt") for the full day name and Format([yourdate];"ttt") for a 2-letter day name. In the English version of Access I think tttt should be replaced with dddd. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von pedro at plex.nl Gesendet: Donnerstag, 16. Februar 2006 09:34 An: accessd at databaseadvisors.com Betreff: [AccessD] weekdays Hello Group, i now that there is an sql that can give me the days of the week fo a specific date, but i can't find it right now. Who can help me? i have: date 16-02-06 17-02-06 i need: date day 16-02-06 thursday 17-02-06 friday Pedro Janssen -- 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 16 03:32:28 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 16 Feb 2006 10:32:28 +0100 Subject: [AccessD] weekdays Message-ID: Hi Pedro Oops, you wish the weekday to be spelled out? Format([date], "dddd", 2) will give you the localized name of the weekday. /gustav >>> Gustav at cactus.dk 16-02-2006 10:13:26 >>> Hi Pedro There is no native SQL for that but for ISO weekdays use Weekday([date], 2) /gustav >>> pedro at plex.nl 16-02-2006 09:33:37 >>> Hello Group, i now that there is an sql that can give me the days of the week fo a specific date, but i can't find it right now. Who can help me? i have: date 16-02-06 17-02-06 i need: date day 16-02-06 thursday 17-02-06 friday Pedro Janssen From darrend at nimble.com.au Thu Feb 16 05:20:09 2006 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 16 Feb 2006 22:20:09 +1100 Subject: [AccessD] Parameter Request window In-Reply-To: <000301c632a5$fb244a50$6701a8c0@HPLaptop> Message-ID: <20060216112018.NVFD16720.omta01sl.mx.bigpond.com@DENZILLAP> Hi Joe On first glance this is normally/usually a sign that one of the fields in the underlying query has gone, been renamed Or a table that has that field name is no longer part of the query etc Open the query and look for telltale things like Expr:Some Field name in one of the fields columns Darren ------------------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, 16 February 2006 2:06 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Parameter Request window I am working on a report. Suddenly when I go to preview the report it opens a parameter window and asks for a parameter. The caption in the parameter is just one of the tables in the query? Any one seen this before. Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From erbachs at gmail.com Thu Feb 16 08:45:24 2006 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 16 Feb 2006 08:45:24 -0600 Subject: [AccessD] OT: Quote of the day In-Reply-To: <013301c632a2$641f9540$647aa8c0@ColbyM6805> References: <001a01c63293$0278a480$95b3d6d1@SUSANONE> <013301c632a2$641f9540$647aa8c0@ColbyM6805> Message-ID: <39cb22f30602160645n79f90444oe736a6fb5b48855c@mail.gmail.com> John, ? knowledge without intelligence is dangerous. ? Nah! Knowledge without intelligence is human nature. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/15/06, John Colby wrote: > True intelligence is the reasonable application of knowledge. Intelligence > without knowledge is useless, knowledge without intelligence is dangerous. > > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Wednesday, February 15, 2006 7:51 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Quote of the day > > > > > Now, the point of that story is -- if, at the same time, that friend > > and I had both taken IQ tests -- she's have probably scored higher > > than > me. > > I doubt that very much. Based on my reading of the people on this list, > I reckon I could name several people here who, in their school days were " > in the top 20%" and "doing good if I handed in my homework and showed up > for class 4 days out of 5". They are the sort, who ace IQ tests if they can > be bothered to do them. > > The real smart ones are the one who work out early on just how much they > have to do to get by comfortably in school. > > ========I wasn't acing anything, and looking back, I don't feel so smart. I > had the opportunity to get a great education and I blew it off because I > could get decent grades with no effort. That's not smart -- I was totally > stupid and immature. > > > My > > success with the SAT's and ACT's was the way they asked questions, not > > the questions themselves. She memorized things, and she memorized a > > whole > lot. > > However, what she didn't memorize, she didn't know. I just thought > > through the questions and gave the answer that seemed the best. I > > didn't know the answers to most of the questions. I reasoned many > > answers, > I didn't "know" > > the answers. > > > Exactly. Knowledge is not intelligence and you should never confuse the two. > Sounds like the people who design your SATs and ACTS are smart enough to > know this and are testing the right thing. > > ========Yes, we agree here. My natural ability may have been greater than my > friend's, but she was using hers and I wasn't. She was assimilating, I was > guessing. I was able to reason through the questions and you may be right -- > if the tests are measuring intelligence -- the ability to comprehend and > reason -- and test your knowledge as well, you might be right. > > Susan H. > From jwcolby at ColbyConsulting.com Thu Feb 16 09:37:56 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Thu, 16 Feb 2006 10:37:56 -0500 Subject: [AccessD] OT: Quote of the day In-Reply-To: <39cb22f30602160645n79f90444oe736a6fb5b48855c@mail.gmail.com> Message-ID: <013f01c6330e$f640fa10$647aa8c0@ColbyM6805> LOL, yea.... And is there anything more dangerous? ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Thursday, February 16, 2006 9:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Quote of the day John, > knowledge without intelligence is dangerous. < Nah! Knowledge without intelligence is human nature. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/15/06, John Colby wrote: > True intelligence is the reasonable application of knowledge. > Intelligence without knowledge is useless, knowledge without intelligence is dangerous. > > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > Harkins > Sent: Wednesday, February 15, 2006 7:51 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Quote of the day > > > > > Now, the point of that story is -- if, at the same time, that friend > > and I had both taken IQ tests -- she's have probably scored higher > > than > me. > > I doubt that very much. Based on my reading of the people on this list, > I reckon I could name several people here who, in their school days were " > in the top 20%" and "doing good if I handed in my homework and showed > up for class 4 days out of 5". They are the sort, who ace IQ tests if > they can be bothered to do them. > > The real smart ones are the one who work out early on just how much > they have to do to get by comfortably in school. > > ========I wasn't acing anything, and looking back, I don't feel so > smart. I had the opportunity to get a great education and I blew it > off because I could get decent grades with no effort. That's not smart > -- I was totally stupid and immature. > > > My > > success with the SAT's and ACT's was the way they asked questions, > > not the questions themselves. She memorized things, and she > > memorized a whole > lot. > > However, what she didn't memorize, she didn't know. I just thought > > through the questions and gave the answer that seemed the best. I > > didn't know the answers to most of the questions. I reasoned many > > answers, > I didn't "know" > > the answers. > > > Exactly. Knowledge is not intelligence and you should never confuse the two. > Sounds like the people who design your SATs and ACTS are smart enough > to know this and are testing the right thing. > > ========Yes, we agree here. My natural ability may have been greater > than my friend's, but she was using hers and I wasn't. She was > assimilating, I was guessing. I was able to reason through the > questions and you may be right -- if the tests are measuring > intelligence -- the ability to comprehend and reason -- and test your knowledge as well, you might be right. > > Susan H. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimjih at comcast.net Thu Feb 16 10:00:46 2006 From: jimjih at comcast.net (jimjih at comcast.net) Date: Thu, 16 Feb 2006 16:00:46 +0000 Subject: [AccessD] OT: Quote of the day Message-ID: <021620061600.27664.43F4A1AE0003DC5400006C102200761064080706030706@comcast.net> Therefore: Human Nature = Dangerous. Jim -------------- Original message -------------- From: "John Colby" > LOL, yea.... > > And is there anything more dangerous? > > ;-) > > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, February 16, 2006 9:45 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Quote of the day > > John, > > > knowledge without intelligence is dangerous. < > > Nah! Knowledge without intelligence is human nature. > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > > On 2/15/06, John Colby wrote: > > True intelligence is the reasonable application of knowledge. > > Intelligence without knowledge is useless, knowledge without intelligence > is dangerous. > > > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > > Harkins > > Sent: Wednesday, February 15, 2006 7:51 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] OT: Quote of the day > > > > > > > > Now, the point of that story is -- if, at the same time, that friend > > > and I had both taken IQ tests -- she's have probably scored higher > > > than > > me. > > > > I doubt that very much. Based on my reading of the people on this list, > > I reckon I could name several people here who, in their school days were > " > > in the top 20%" and "doing good if I handed in my homework and showed > > up for class 4 days out of 5". They are the sort, who ace IQ tests if > > they can be bothered to do them. > > > > The real smart ones are the one who work out early on just how much > > they have to do to get by comfortably in school. > > > > ========I wasn't acing anything, and looking back, I don't feel so > > smart. I had the opportunity to get a great education and I blew it > > off because I could get decent grades with no effort. That's not smart > > -- I was totally stupid and immature. > > > > > My > > > success with the SAT's and ACT's was the way they asked questions, > > > not the questions themselves. She memorized things, and she > > > memorized a whole > > lot. > > > However, what she didn't memorize, she didn't know. I just thought > > > through the questions and gave the answer that seemed the best. I > > > didn't know the answers to most of the questions. I reasoned many > > > answers, > > I didn't "know" > > > the answers. > > > > > Exactly. Knowledge is not intelligence and you should never confuse the > two. > > Sounds like the people who design your SATs and ACTS are smart enough > > to know this and are testing the right thing. > > > > ========Yes, we agree here. My natural ability may have been greater > > than my friend's, but she was using hers and I wasn't. She was > > assimilating, I was guessing. I was able to reason through the > > questions and you may be right -- if the tests are measuring > > intelligence -- the ability to comprehend and reason -- and test your > knowledge as well, you might be right. > > > > 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 cfoust at infostatsystems.com Thu Feb 16 10:09:56 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 16 Feb 2006 08:09:56 -0800 Subject: [AccessD] OT: Bug / Feature Databases Message-ID: We use an in-house database. We've looked at the commercial products several times, but they didn't quite fit and we already had one we could modify so .... ;o} Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hadyn Morgan Sent: Wednesday, February 15, 2006 6:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Bug / Feature Databases Hi All Just wondering what people use to track bugs and feature requests for their applications. Do you use an inhouse database or a off the shelf package? If you use a OTS package, which one and why? Kind regards Hadyn -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.9/261 - Release Date: 15/02/2006 -- 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 16 10:12:21 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 16 Feb 2006 08:12:21 -0800 Subject: [AccessD] OT: Quote of the day Message-ID: Hmmn. Are we talking about bounders again?? ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jimjih at comcast.net Sent: Thursday, February 16, 2006 8:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Quote of the day Therefore: Human Nature = Dangerous. Jim -------------- Original message -------------- From: "John Colby" > LOL, yea.... > > And is there anything more dangerous? > > ;-) > > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, February 16, 2006 9:45 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Quote of the day > > John, > > > knowledge without intelligence is dangerous. < > > Nah! Knowledge without intelligence is human nature. > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > > On 2/15/06, John Colby wrote: > > True intelligence is the reasonable application of knowledge. > > Intelligence without knowledge is useless, knowledge without intelligence > is dangerous. > > > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > > Harkins > > Sent: Wednesday, February 15, 2006 7:51 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] OT: Quote of the day > > > > > > > > Now, the point of that story is -- if, at the same time, that > > > friend > > > and I had both taken IQ tests -- she's have probably scored higher > > > than > > me. > > > > I doubt that very much. Based on my reading of the people on this > > list, > > I reckon I could name several people here who, in their school days were > " > > in the top 20%" and "doing good if I handed in my homework and > > showed > > up for class 4 days out of 5". They are the sort, who ace IQ tests if > > they can be bothered to do them. > > > > The real smart ones are the one who work out early on just how much > > they have to do to get by comfortably in school. > > > > ========I wasn't acing anything, and looking back, I don't feel so > > smart. I had the opportunity to get a great education and I blew it > > off because I could get decent grades with no effort. That's not smart > > -- I was totally stupid and immature. > > > > > My > > > success with the SAT's and ACT's was the way they asked questions, > > > not the questions themselves. She memorized things, and she > > > memorized a whole > > lot. > > > However, what she didn't memorize, she didn't know. I just thought > > > through the questions and gave the answer that seemed the best. I > > > didn't know the answers to most of the questions. I reasoned many > > > answers, > > I didn't "know" > > > the answers. > > > > > Exactly. Knowledge is not intelligence and you should never confuse > > the > two. > > Sounds like the people who design your SATs and ACTS are smart > > enough > > to know this and are testing the right thing. > > > > ========Yes, we agree here. My natural ability may have been greater > > than my friend's, but she was using hers and I wasn't. She was > > assimilating, I was guessing. I was able to reason through the > > questions and you may be right -- if the tests are measuring > > intelligence -- the ability to comprehend and reason -- and test your > knowledge as well, you might be right. > > > > Susan H. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Feb 16 10:17:21 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 16 Feb 2006 10:17:21 -0600 Subject: [AccessD] OT: Quote of the day Message-ID: <17724746D360394AA3BFE5B8D40A9C1BD765@main2.marlow.com> I believe that is the plot of many movies where computers are used to protect human life.... ;) Drew -----Original Message----- From: jimjih at comcast.net [mailto:jimjih at comcast.net] Sent: Thursday, February 16, 2006 10:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Quote of the day Therefore: Human Nature = Dangerous. Jim -------------- Original message -------------- From: "John Colby" > LOL, yea.... > > And is there anything more dangerous? > > ;-) > > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, February 16, 2006 9:45 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Quote of the day > > John, > > > knowledge without intelligence is dangerous. < > > Nah! Knowledge without intelligence is human nature. > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > > On 2/15/06, John Colby wrote: > > True intelligence is the reasonable application of knowledge. > > Intelligence without knowledge is useless, knowledge without intelligence > is dangerous. > > > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > > Harkins > > Sent: Wednesday, February 15, 2006 7:51 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] OT: Quote of the day > > > > > > > > Now, the point of that story is -- if, at the same time, that friend > > > and I had both taken IQ tests -- she's have probably scored higher > > > than > > me. > > > > I doubt that very much. Based on my reading of the people on this list, > > I reckon I could name several people here who, in their school days were > " > > in the top 20%" and "doing good if I handed in my homework and showed > > up for class 4 days out of 5". They are the sort, who ace IQ tests if > > they can be bothered to do them. > > > > The real smart ones are the one who work out early on just how much > > they have to do to get by comfortably in school. > > > > ========I wasn't acing anything, and looking back, I don't feel so > > smart. I had the opportunity to get a great education and I blew it > > off because I could get decent grades with no effort. That's not smart > > -- I was totally stupid and immature. > > > > > My > > > success with the SAT's and ACT's was the way they asked questions, > > > not the questions themselves. She memorized things, and she > > > memorized a whole > > lot. > > > However, what she didn't memorize, she didn't know. I just thought > > > through the questions and gave the answer that seemed the best. I > > > didn't know the answers to most of the questions. I reasoned many > > > answers, > > I didn't "know" > > > the answers. > > > > > Exactly. Knowledge is not intelligence and you should never confuse the > two. > > Sounds like the people who design your SATs and ACTS are smart enough > > to know this and are testing the right thing. > > > > ========Yes, we agree here. My natural ability may have been greater > > than my friend's, but she was using hers and I wasn't. She was > > assimilating, I was guessing. I was able to reason through the > > questions and you may be right -- if the tests are measuring > > intelligence -- the ability to comprehend and reason -- and test your > knowledge as well, you might be right. > > > > Susan H. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 16 11:06:32 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 16 Feb 2006 09:06:32 -0800 Subject: [AccessD] Parameter Request window (Solved) In-Reply-To: <20060216112018.NVFD16720.omta01sl.mx.bigpond.com@DENZILLAP> Message-ID: <001501c6331b$56b20a40$6701a8c0@HPLaptop> Something in the link between my main report and sub report phooey. Do not know why. I went through and deleted sets of fields at a time. That did not do it. Deleted sub report and it stopped complaining. Thanks to all. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 16, 2006 3:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Parameter Request window Hi Joe On first glance this is normally/usually a sign that one of the fields in the underlying query has gone, been renamed Or a table that has that field name is no longer part of the query etc Open the query and look for telltale things like Expr:Some Field name in one of the fields columns Darren ------------------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, 16 February 2006 2:06 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Parameter Request window I am working on a report. Suddenly when I go to preview the report it opens a parameter window and asks for a parameter. The caption in the parameter is just one of the tables in the query? Any one seen this before. Joe Hecht jmhecht 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 rl_stewart at highstream.net Thu Feb 16 12:34:46 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Thu, 16 Feb 2006 13:34:46 -0500 Subject: [AccessD] OT: Bug / Feature Databases Message-ID: <1140114886.43f4c5c610fd7@webmail.highstream.net> You might look at a product call OnTime. The single user version is free. From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hadyn Morgan Sent: Wednesday, February 15, 2006 6:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Bug / Feature Databases Hi All Just wondering what people use to track bugs and feature requests for their applications. Do you use an inhouse database or a off the shelf package? If you use a OTS package, which one and why? Kind regards Hadyn Robert L. Stewart The Dyson Group International Software for the Non-profit Enterprise Expanding your Sphere of Knowledge From John.Clark at niagaracounty.com Thu Feb 16 12:41:29 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 16 Feb 2006 13:41:29 -0500 Subject: [AccessD] Possible or No? SOLVED Message-ID: After keeping this in the back of my mind, for the last week, I think I've finally got this one figured out. I was actually getting ready to put up the white flag. For the first time, since joining this list...what has it been...five years ago now...the answer didn't magically appear in my Email. I was actually writing an Email to the user, requesting a policy change because, as I mentioned, they don't all do it, and it isn't anything mandated to be done. While typing, it dawned on me. You should have seen it...the clouds opened up and a beam of light shown down on my keyboard from above...and I swear I heard angels singing. An epiphany...I had a damn epiphany! As exhilarating as it is, to have finally beat this problem, the solution was so damn simple that I can't help feeling a bit a bit "duh" at the same time. My only excuse is that I am juggling many other things, and most of them un-program related. The solution was as simple as adding ",3" to the mid function. This made the line: strSQL = "SELECT nz(Max(Mid([tblIndictment]![IndictmentNumber],6,3)),0)+1 AS lngMaxID," & _ "Year(Now())" & _ "& '-' & [lngMaxID] AS lngNewID " & _ "FROM tblIndictment " & _ "WHERE (((Left([tblIndictment]![IndictmentNumber],4))=Right(Year(Now()),4)));" Now it only looks at the characters in slots 6, 7 and 8, and disregards anything further. This was so dang easy. I can't believe I didn't see it before. I've tested it and it actually works. I have to leave the field open for editing...I could have an enable button, but I don't know that it is necessary...and the user overrides the number. But, then, that same number will, as it should be, be the next one in line again. John W. Clark From John.Clark at niagaracounty.com Thu Feb 16 12:47:04 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 16 Feb 2006 13:47:04 -0500 Subject: [AccessD] Order By Message-ID: I ran into a slight problem today. I've gotten passed it, but I am still curious. I designed a form and tried putting into order by a control number. To do this I figured I had to add it to the "Order By" property of the form. However, this did not give me any results. What I ended up doing, in the essence of time, is put a SELECT statement in the Control Source of the form, ending in an Order By statement. Why wouldn't this work the first way? John Clark From pedro at plex.nl Thu Feb 16 13:22:05 2006 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 16 Feb 2006 20:22:05 +0100 Subject: [AccessD] weekdays References: Message-ID: <002201c6332e$45831ad0$4001a8c0@laptop> Helmut and Gustav, thanks for the help. It did the trick. Pedro ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, February 16, 2006 10:32 AM Subject: Re: [AccessD] weekdays > Hi Pedro > > Oops, you wish the weekday to be spelled out? > > Format([date], "dddd", 2) > > will give you the localized name of the weekday. > > /gustav > >>>> Gustav at cactus.dk 16-02-2006 10:13:26 >>> > Hi Pedro > > There is no native SQL for that but for ISO weekdays use > > Weekday([date], 2) > > /gustav > >>>> pedro at plex.nl 16-02-2006 09:33:37 >>> > Hello Group, > > i now that there is an sql that can give me the days of the week fo a > specific date, but i can't find it right now. > > Who can help me? > > i have: > date > 16-02-06 > 17-02-06 > > i need: > date day > 16-02-06 thursday > 17-02-06 friday > > Pedro Janssen > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Lambert.Heenan at aig.com Thu Feb 16 13:21:28 2006 From: Lambert.Heenan at aig.com (Heenan, Lambert) Date: Thu, 16 Feb 2006 14:21:28 -0500 Subject: [AccessD] Order By Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1D7E886D@xlivmbx21.aig.com> John, I think you'll find that you also have to set the OrderdByOn property to True before the OrderedBy property has any effect. Simplest thing would to do that in the OnLoad event... Me.OrderedByOn = True Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, February 16, 2006 1:47 PM To: accessd at databaseadvisors.com Subject: [AccessD] Order By I ran into a slight problem today. I've gotten passed it, but I am still curious. I designed a form and tried putting into order by a control number. To do this I figured I had to add it to the "Order By" property of the form. However, this did not give me any results. What I ended up doing, in the essence of time, is put a SELECT statement in the Control Source of the form, ending in an Order By statement. Why wouldn't this work the first way? John Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Feb 16 13:29:16 2006 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 16 Feb 2006 13:29:16 -0600 Subject: [AccessD] Order By In-Reply-To: <3208929.1140116058784.JavaMail.root@sniper19> Message-ID: <000001c6332f$46ae10d0$0200a8c0@danwaters> John, What I do if I want a form to be ordered is to use these two lines in the Open event: Me.OrderbyOn = True Me.Orderby = "FieldName" This lets you stay out of the recordsource field just to get things ordered. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, February 16, 2006 12:47 PM To: accessd at databaseadvisors.com Subject: [AccessD] Order By I ran into a slight problem today. I've gotten passed it, but I am still curious. I designed a form and tried putting into order by a control number. To do this I figured I had to add it to the "Order By" property of the form. However, this did not give me any results. What I ended up doing, in the essence of time, is put a SELECT statement in the Control Source of the form, ending in an Order By statement. Why wouldn't this work the first way? John Clark -- 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 16 13:58:21 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 16 Feb 2006 14:58:21 -0500 Subject: [AccessD] Order By Message-ID: I'm going to sound totally "duh" here, but I've never heard of OrderByOn. Is it only a code thing, or is it in the properties box? Well, I knew it would be simple. Thanks Lambert and Dan! >>> dwaters at usinternet.com 2/16/2006 2:29 PM >>> John, What I do if I want a form to be ordered is to use these two lines in the Open event: Me.OrderbyOn = True Me.Orderby = "FieldName" This lets you stay out of the recordsource field just to get things ordered. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, February 16, 2006 12:47 PM To: accessd at databaseadvisors.com Subject: [AccessD] Order By I ran into a slight problem today. I've gotten passed it, but I am still curious. I designed a form and tried putting into order by a control number. To do this I figured I had to add it to the "Order By" property of the form. However, this did not give me any results. What I ended up doing, in the essence of time, is put a SELECT statement in the Control Source of the form, ending in an Order By statement. Why wouldn't this work the first way? John Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Thu Feb 16 14:28:35 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 16 Feb 2006 14:28:35 -0600 Subject: [AccessD] Order By Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1D7E88D1@xlivmbx21.aig.com> Strictly code. Make you wonder why MS exposed the OrderedBy property but not the OrderedByOn one in the form's Property Sheet. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, February 16, 2006 2:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Order By I'm going to sound totally "duh" here, but I've never heard of OrderByOn. Is it only a code thing, or is it in the properties box? Well, I knew it would be simple. Thanks Lambert and Dan! >>> dwaters at usinternet.com 2/16/2006 2:29 PM >>> John, What I do if I want a form to be ordered is to use these two lines in the Open event: Me.OrderbyOn = True Me.Orderby = "FieldName" This lets you stay out of the recordsource field just to get things ordered. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, February 16, 2006 12:47 PM To: accessd at databaseadvisors.com Subject: [AccessD] Order By I ran into a slight problem today. I've gotten passed it, but I am still curious. I designed a form and tried putting into order by a control number. To do this I figured I had to add it to the "Order By" property of the form. However, this did not give me any results. What I ended up doing, in the essence of time, is put a SELECT statement in the Control Source of the form, ending in an Order By statement. Why wouldn't this work the first way? John Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Feb 16 14:52:16 2006 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 16 Feb 2006 14:52:16 -0600 Subject: [AccessD] Order By In-Reply-To: <15310148.1140120406594.JavaMail.root@sniper19> Message-ID: <000001c6333a$def7cf60$0200a8c0@danwaters> Yes - for Forms, this can only be set in code. For Reports, you can set it in the Report's property sheet. Take a look at Help for OrderbyOn. I would recommend setting this property prior to each time you want to set the Orderby value. I just did a test and it turns out that if you make a new form without a recordsource, the OrderbyOn property is False by default. So, for a form like this you'll need to set it to True in code. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, February 16, 2006 1:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Order By I'm going to sound totally "duh" here, but I've never heard of OrderByOn. Is it only a code thing, or is it in the properties box? Well, I knew it would be simple. Thanks Lambert and Dan! >>> dwaters at usinternet.com 2/16/2006 2:29 PM >>> John, What I do if I want a form to be ordered is to use these two lines in the Open event: Me.OrderbyOn = True Me.Orderby = "FieldName" This lets you stay out of the recordsource field just to get things ordered. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, February 16, 2006 12:47 PM To: accessd at databaseadvisors.com Subject: [AccessD] Order By I ran into a slight problem today. I've gotten passed it, but I am still curious. I designed a form and tried putting into order by a control number. To do this I figured I had to add it to the "Order By" property of the form. However, this did not give me any results. What I ended up doing, in the essence of time, is put a SELECT statement in the Control Source of the form, ending in an Order By statement. Why wouldn't this work the first way? John Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Feb 16 15:22:36 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 17 Feb 2006 07:22:36 +1000 Subject: [AccessD] OT: Bug / Feature Databases In-Reply-To: <1140114886.43f4c5c610fd7@webmail.highstream.net> Message-ID: <43F579BC.14414.115B8A34@stuart.lexacorp.com.pg> On 16 Feb 2006 at 13:34, Robert L. Stewart wrote: > You might look at a product call OnTime. The single user version is free. > Looks good apart from the the fact that it needs SQL Server and .Net1.1 installed :-( -- Stuart From darsant at gmail.com Thu Feb 16 15:32:50 2006 From: darsant at gmail.com (Josh McFarlane) Date: Thu, 16 Feb 2006 15:32:50 -0600 Subject: [AccessD] OT: Bug / Feature Databases In-Reply-To: References: <001a01c63293$0278a480$95b3d6d1@SUSANONE> Message-ID: <53c8e05a0602161332y40d22561w3f065fbc1af74396@mail.gmail.com> On 2/15/06, Hadyn Morgan wrote: > Hi All > > Just wondering what people use to track bugs and feature requests for their > applications. Do you use an inhouse database or a off the shelf package? > If you use a OTS package, which one and why? We use FogBugz (www.fogbugz.com). Installation on W2K3 server took 15 minutes (90% was to install IIS). Very easy to use, and has tons of easy reports and filtering to make features / bugs, and client support easy. They have a 45 day free trial too! -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From darsant at gmail.com Thu Feb 16 15:33:54 2006 From: darsant at gmail.com (Josh McFarlane) Date: Thu, 16 Feb 2006 15:33:54 -0600 Subject: [AccessD] OT: Bug / Feature Databases In-Reply-To: <53c8e05a0602161332y40d22561w3f065fbc1af74396@mail.gmail.com> References: <001a01c63293$0278a480$95b3d6d1@SUSANONE> <53c8e05a0602161332y40d22561w3f065fbc1af74396@mail.gmail.com> Message-ID: <53c8e05a0602161333s1f9aa021i1c84def7a2fae060@mail.gmail.com> On 2/16/06, Josh McFarlane wrote: > We use FogBugz (www.fogbugz.com). > > Installation on W2K3 server took 15 minutes (90% was to install IIS). > Very easy to use, and has tons of easy reports and filtering to make > features / bugs, and client support easy. > > They have a 45 day free trial too! I forgot to mention back-end wise they're very flexible - It uses SQL Server, MySQL, or an Access database to store the information in. From jmhecht at earthlink.net Thu Feb 16 17:54:01 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 16 Feb 2006 15:54:01 -0800 Subject: [AccessD] Calendar control help please Message-ID: <002101c63354$43362850$6701a8c0@HPLaptop> 1. I want to make the value in calPhysExpStart = txtStartDate. I have not been able to do that with code target = source or source = target. How do I do that? 2. If I make this mdb an mde will the control carry over ok? Thanks Joe Hecht jmhecht at earthlink.net From darrend at nimble.com.au Thu Feb 16 18:23:33 2006 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 17 Feb 2006 11:23:33 +1100 Subject: [AccessD] Calendar control help please In-Reply-To: <002101c63354$43362850$6701a8c0@HPLaptop> Message-ID: <20060217002335.GALF16720.omta01sl.mx.bigpond.com@DENZILLAP> Hi Joe What's a calPhysExpStart Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? If it is the MS one then Assume the MSActiveX is called Me.calPhysExpStart Have code something like this Me.calPhysExpStart= Me.txtStartDate Demo sent off list Hope this helps Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar control help please 1. I want to make the value in calPhysExpStart = txtStartDate. I have not been able to do that with code target = source or source = target. How do I do that? 2. If I make this mdb an mde will the control carry over ok? Thanks Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Thu Feb 16 18:27:37 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 16 Feb 2006 16:27:37 -0800 Subject: [AccessD] Calendar control help please In-Reply-To: <20060217002335.GALF16720.omta01sl.mx.bigpond.com@DENZILLAP> Message-ID: <003301c63358$f4993de0$6701a8c0@HPLaptop> Microsoft Jobbie. I can barley roll code. Forget building an existing control. Thanks Darren Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 16, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Hi Joe What's a calPhysExpStart Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? If it is the MS one then Assume the MSActiveX is called Me.calPhysExpStart Have code something like this Me.calPhysExpStart= Me.txtStartDate Demo sent off list Hope this helps Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar control help please 1. I want to make the value in calPhysExpStart = txtStartDate. I have not been able to do that with code target = source or source = target. How do I do that? 2. If I make this mdb an mde will the control carry over ok? Thanks Joe Hecht jmhecht 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 darrend at nimble.com.au Thu Feb 16 18:31:50 2006 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 17 Feb 2006 11:31:50 +1100 Subject: [AccessD] Calendar control help please In-Reply-To: <003301c63358$f4993de0$6701a8c0@HPLaptop> Message-ID: <20060217003152.VTCW18661.omta02sl.mx.bigpond.com@DENZILLAP> I have a code driven one I have used for years - it's brilliant No ActiveX issues at all Dunno where I got it I have modified its look abit, you are most welcome to it Any me too's off list please See y'all Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 11:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Microsoft Jobbie. I can barley roll code. Forget building an existing control. Thanks Darren Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 16, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Hi Joe What's a calPhysExpStart Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? If it is the MS one then Assume the MSActiveX is called Me.calPhysExpStart Have code something like this Me.calPhysExpStart= Me.txtStartDate Demo sent off list Hope this helps Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar control help please 1. I want to make the value in calPhysExpStart = txtStartDate. I have not been able to do that with code target = source or source = target. How do I do that? 2. If I make this mdb an mde will the control carry over ok? Thanks Joe Hecht jmhecht 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 jmhecht at earthlink.net Thu Feb 16 22:10:19 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Thu, 16 Feb 2006 20:10:19 -0800 Subject: [AccessD] CANCEL WILL NOT CANCEL Message-ID: <008a01c63378$10fd0fb0$6701a8c0@HPLaptop> The following code is supposed to check that 1. The start date is not null 2. The end date is not null. If either is null I want a message box( that works) and when user clicks ok they go back to form. It is not working. Can any one see why? Thanks Private Sub cmdAccEndDate_Click() Dim lngRetval As Long Dim strStDocName As String Dim lngRetval1 As Long Dim lngRetval2 As Long Dim CANCEL As Boolean Me.txtAccEndDate = Me.calAccEndDate 'Sets end date If IsNull(Me.txtAccStartDate) Then 'Confirm Start Date is not null lngRetval1 = MsgBox( _ "There is no Start Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER START DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If IsNull(Me.txtAccEndDate) Then 'Confirm End Date is not null lngRetval1 = MsgBox( _ "There is no End Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER END DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If Me.txtAccStartDate > Me.txtAccEndDate Then lngRetval = MsgBox( _ "The start date must be the same as, or before the end date of the report." & vbCrLf & "" & vbCrLf & "Please review the selected dates and try your report again", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "INCORECT DATE INPUT") Select Case lngRetval Case vbOK End Select Else ' Dim stDocName As String strStDocName = "30_rptAccidentRegister" DoCmd.OpenReport strStDocName, acPreview DoCmd.RunCommand acCmdZoom100 Joe Hecht jmhecht at earthlink.net From darsant at gmail.com Thu Feb 16 22:16:40 2006 From: darsant at gmail.com (Josh McFarlane) Date: Thu, 16 Feb 2006 22:16:40 -0600 Subject: [AccessD] CANCEL WILL NOT CANCEL In-Reply-To: <008a01c63378$10fd0fb0$6701a8c0@HPLaptop> References: <008a01c63378$10fd0fb0$6701a8c0@HPLaptop> Message-ID: <53c8e05a0602162016q2afe20ej4cc5f8237f6a363c@mail.gmail.com> On 2/16/06, Joe Hecht wrote: > If either is null I want a message box( that works) and when > user clicks ok they go back to form. > > > > It is not working. Can any one see why? You're just defining a cancel variable and not using it for anything. If you want it to not display the report you'd need something like If CANCEL = FALSE End If -- Darsant Silverstring "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From martyconnelly at shaw.ca Thu Feb 16 23:08:12 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 16 Feb 2006 21:08:12 -0800 Subject: [AccessD] Calendar control help please References: <20060217003152.VTCW18661.omta02sl.mx.bigpond.com@DENZILLAP> Message-ID: <43F55A3C.2070302@shaw.ca> Stephan Lebans API only calendar one maybe? http://www.lebans.com/monthcalendar.htm Darren DICK wrote: >I have a code driven one I have used for years - it's brilliant >No ActiveX issues at all >Dunno where I got it >I have modified its look abit, you are most welcome to it >Any me too's off list please > >See y'all > > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 11:28 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Microsoft Jobbie. > >I can barley roll code. Forget building an existing control. > >Thanks Darren > >Joe Hecht >jmhecht at earthlink.net >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK >Sent: Thursday, February 16, 2006 4:24 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Hi Joe >What's a calPhysExpStart >Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? > >If it is the MS one then >Assume the MSActiveX is called Me.calPhysExpStart > >Have code something like this Me.calPhysExpStart= Me.txtStartDate > >Demo sent off list > >Hope this helps > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 10:54 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Calendar control help please > >1. I want to make the value in calPhysExpStart = >txtStartDate. I have not been able to do that with code target = source or >source = target. How do I do that? >2. If I make this mdb an mde will the control carry >over ok? > > > >Thanks > > > >Joe Hecht > >jmhecht 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 > > > -- Marty Connelly Victoria, B.C. Canada From pcs at azizaz.com Thu Feb 16 23:12:26 2006 From: pcs at azizaz.com (Borge Hansen) Date: Fri, 17 Feb 2006 15:12:26 +1000 Subject: [AccessD] CANCEL WILL NOT CANCEL References: <008a01c63378$10fd0fb0$6701a8c0@HPLaptop> Message-ID: <039401c63380$be468180$fa10a8c0@Albatross> Joe, Perhaps the following: The code is associated with a command button. A command button does not have a cancel event Put the code in a procedure that has a cancel event, for example Report_OnOpen and reference the form where the txt controls reside in your if test or since you are using the code on a form where you gather selection criteria parameters for the recordsource of some report, then instead of cancel : issue the message box warning return focus to the text control in question and do an "exit sub", something like: If IsNull(Me.txtAccStartDate) or len(Me.txtAccStartDate) = 0 Then 'Confirm Start Date is not null MsgBox( "There is no Start Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", vbCritical, "Input Validation") Me.txtAccStartDate.setfocus exit sub End If forget about the lngRetval1 Also: I handle the case of no data selected to report on like this: On the OnNoData event in the report: Private Sub Report_NoData(Cancel As Integer) On Error GoTo ErrorHere Cancel = True ErrorExit: DoCmd.SetWarnings True Exit Sub ErrorHere: MsgBox "Error in Report_NoData " & ": " & Err.Number & " " & Err.Description Resume ErrorExit End Sub This will generate a 2501 error So, on the command button code on the 'Report Parameter Form: where you are firing up the report, include the following in the error handler: ErrorHere: Select Case Err Case 2501 'you cancelled open report MsgBox "The current set of selection criteria result in no data to be reported on. Try to change the selection criteria and then run the report again!", vbInformation, "NO DATA TO REPORT ON" Resume ErrorExit Case Else MsgBox "Error in cmdSave_Click " & ": " & Err.Number & " " & Err.Description Resume ErrorExit End Select ....hope this helps borge gold coast, australia ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Friday, February 17, 2006 2:10 PM Subject: [AccessD] CANCEL WILL NOT CANCEL > The following code is supposed to check that > > > > 1. The start date is not null > 2. The end date is not null. > > > > If either is null I want a message box( that works) and when > user clicks ok they go back to form. > > > > It is not working. Can any one see why? > > > > Thanks > > > > Private Sub cmdAccEndDate_Click() > > Dim lngRetval As Long > > Dim strStDocName As String > > Dim lngRetval1 As Long > > Dim lngRetval2 As Long > > Dim CANCEL As Boolean > > > > > > Me.txtAccEndDate = Me.calAccEndDate 'Sets end date > > > > If IsNull(Me.txtAccStartDate) Then 'Confirm Start Date > is not null > > lngRetval1 = MsgBox( _ > > "There is no Start Date Entered." & vbCrLf & "" > & vbCrLf & "Please select a Start Date", _ > > vbOKOnly + vbCritical + vbDefaultButton1, _ > > "PLEASE ENTER START DATE") > > > > Select Case lngRetval1 > > Case vbOK > > CANCEL = True > > > > End Select > > End If > > > > If IsNull(Me.txtAccEndDate) Then 'Confirm End Date is > not null > > > > lngRetval1 = MsgBox( _ > > "There is no End Date Entered." & vbCrLf & "" & > vbCrLf & "Please select a Start Date", _ > > vbOKOnly + vbCritical + vbDefaultButton1, _ > > "PLEASE ENTER END DATE") > > > > Select Case lngRetval1 > > Case vbOK > > CANCEL = True > > End Select > > End If > > > > If Me.txtAccStartDate > Me.txtAccEndDate Then > > lngRetval = MsgBox( _ > > "The start date must be the same as, or before the > end date of the report." & vbCrLf & "" & vbCrLf & "Please > review the selected dates and try your report again", _ > > vbOKOnly + vbCritical + vbDefaultButton1, _ > > "INCORECT DATE INPUT") > > > > Select Case lngRetval > > Case vbOK > > End Select > > Else > > ' Dim stDocName As String > > > > strStDocName = "30_rptAccidentRegister" > > DoCmd.OpenReport strStDocName, acPreview > > DoCmd.RunCommand acCmdZoom100 > > > > > > Joe Hecht > > jmhecht at earthlink.net From darrend at nimble.com.au Thu Feb 16 23:36:21 2006 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 17 Feb 2006 16:36:21 +1100 Subject: [AccessD] Calendar control help please In-Reply-To: <43F55A3C.2070302@shaw.ca> Message-ID: <20060217053623.MHGC18661.omta02sl.mx.bigpond.com@DENZILLAP> Hi Marty I have seen and played with that one But no - it's not that one The one I have is text boxes and labels - all arranged on a form I think maybe someone on this list made it Maybe Arthur F or William H See ya DD Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, 17 February 2006 4:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Calendar control help please Stephan Lebans API only calendar one maybe? http://www.lebans.com/monthcalendar.htm Darren DICK wrote: >I have a code driven one I have used for years - it's brilliant No >ActiveX issues at all Dunno where I got it I have modified its look >abit, you are most welcome to it Any me too's off list please > >See y'all > > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 11:28 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Microsoft Jobbie. > >I can barley roll code. Forget building an existing control. > >Thanks Darren > >Joe Hecht >jmhecht at earthlink.net >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK >Sent: Thursday, February 16, 2006 4:24 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Hi Joe >What's a calPhysExpStart >Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? > >If it is the MS one then >Assume the MSActiveX is called Me.calPhysExpStart > >Have code something like this Me.calPhysExpStart= Me.txtStartDate > >Demo sent off list > >Hope this helps > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 10:54 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Calendar control help please > >1. I want to make the value in calPhysExpStart = >txtStartDate. I have not been able to do that with code target = source >or source = target. How do I do that? >2. If I make this mdb an mde will the control carry >over ok? > > > >Thanks > > > >Joe Hecht > >jmhecht 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 > > > -- 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 DWUTKA at marlow.com Fri Feb 17 09:09:16 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 17 Feb 2006 09:09:16 -0600 Subject: [AccessD] Calendar control help please Message-ID: <17724746D360394AA3BFE5B8D40A9C1BD76C@main2.marlow.com> Is it my MiniCalendar? Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Thursday, February 16, 2006 6:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please I have a code driven one I have used for years - it's brilliant No ActiveX issues at all Dunno where I got it I have modified its look abit, you are most welcome to it Any me too's off list please See y'all Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 11:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Microsoft Jobbie. I can barley roll code. Forget building an existing control. Thanks Darren Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 16, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Hi Joe What's a calPhysExpStart Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? If it is the MS one then Assume the MSActiveX is called Me.calPhysExpStart Have code something like this Me.calPhysExpStart= Me.txtStartDate Demo sent off list Hope this helps Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar control help please 1. I want to make the value in calPhysExpStart = txtStartDate. I have not been able to do that with code target = source or source = target. How do I do that? 2. If I make this mdb an mde will the control carry over ok? Thanks Joe Hecht jmhecht 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 Lambert.Heenan at AIG.com Fri Feb 17 09:24:34 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 17 Feb 2006 10:24:34 -0500 Subject: [AccessD] Calendar control help please Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1D7E8A8D@xlivmbx21.aig.com> You'll find an all access, no ActiveX controls, form on Allen Brown's website here... http://allenbrowne.com/ser-51.html Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Friday, February 17, 2006 12:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Hi Marty I have seen and played with that one But no - it's not that one The one I have is text boxes and labels - all arranged on a form I think maybe someone on this list made it Maybe Arthur F or William H See ya DD Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, 17 February 2006 4:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Calendar control help please Stephan Lebans API only calendar one maybe? http://www.lebans.com/monthcalendar.htm Darren DICK wrote: >I have a code driven one I have used for years - it's brilliant No >ActiveX issues at all Dunno where I got it I have modified its look >abit, you are most welcome to it Any me too's off list please > >See y'all > > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 11:28 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Microsoft Jobbie. > >I can barley roll code. Forget building an existing control. > >Thanks Darren > >Joe Hecht >jmhecht at earthlink.net >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK >Sent: Thursday, February 16, 2006 4:24 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Hi Joe >What's a calPhysExpStart >Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX >list? > >If it is the MS one then >Assume the MSActiveX is called Me.calPhysExpStart > >Have code something like this Me.calPhysExpStart= Me.txtStartDate > >Demo sent off list > >Hope this helps > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 10:54 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Calendar control help please > >1. I want to make the value in calPhysExpStart = >txtStartDate. I have not been able to do that with code target = source >or source = target. How do I do that? >2. If I make this mdb an mde will the control carry >over ok? > > > >Thanks > > > >Joe Hecht > >jmhecht 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 > > > -- 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 markamatte at hotmail.com Fri Feb 17 09:36:26 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 17 Feb 2006 15:36:26 +0000 Subject: [AccessD] Calendar control help please Message-ID: Drew, Speaking of your MiniCalendar...I've had a copy for years...and looked at it a number of times for direction. The funny part...until you just mentioned it, I forgot there was even a calendar part of the db (yes, even with the obvious name)...I actually had to open it and look for the calendar...I was so impressed with the video clip usage and the hiding of the window, I overlooked the entire purpose of the db. Anyway...since I was laughing at myself I thought I'd share. Have a GREAT Weekend Everyone! Mark A. Matte >From: DWUTKA at marlow.com >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Calendar control help please >Date: Fri, 17 Feb 2006 09:09:16 -0600 > >Is it my MiniCalendar? > >Drew > >-----Original Message----- >From: Darren DICK [mailto:darrend at nimble.com.au] >Sent: Thursday, February 16, 2006 6:32 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > > >I have a code driven one I have used for years - it's brilliant >No ActiveX issues at all >Dunno where I got it >I have modified its look abit, you are most welcome to it >Any me too's off list please > >See y'all > > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 11:28 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Microsoft Jobbie. > >I can barley roll code. Forget building an existing control. > >Thanks Darren > >Joe Hecht >jmhecht at earthlink.net >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK >Sent: Thursday, February 16, 2006 4:24 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Calendar control help please > >Hi Joe >What's a calPhysExpStart >Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX >list? > >If it is the MS one then >Assume the MSActiveX is called Me.calPhysExpStart > >Have code something like this Me.calPhysExpStart= Me.txtStartDate > >Demo sent off list > >Hope this helps > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht >Sent: Friday, 17 February 2006 10:54 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Calendar control help please > >1. I want to make the value in calPhysExpStart = >txtStartDate. I have not been able to do that with code target = source or >source = target. How do I do that? >2. If I make this mdb an mde will the control carry >over ok? > > > >Thanks > > > >Joe Hecht > >jmhecht 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 >-- >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 17 10:01:18 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 17 Feb 2006 08:01:18 -0800 Subject: [AccessD] CANCEL WILL NOT CANCEL Message-ID: Joe, Have you stepped through this code? The first thing to do is check and see what values are in txtAccEndDate and txtAccStartDate. You are using IsNull but they could also be a zero length string or zero (midnight). I'm not sure what you intend to do with the CANCEL variable, since you populate it, but you don't do anything with it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 16, 2006 8:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CANCEL WILL NOT CANCEL The following code is supposed to check that 1. The start date is not null 2. The end date is not null. If either is null I want a message box( that works) and when user clicks ok they go back to form. It is not working. Can any one see why? Thanks Private Sub cmdAccEndDate_Click() Dim lngRetval As Long Dim strStDocName As String Dim lngRetval1 As Long Dim lngRetval2 As Long Dim CANCEL As Boolean Me.txtAccEndDate = Me.calAccEndDate 'Sets end date If IsNull(Me.txtAccStartDate) Then 'Confirm Start Date is not null lngRetval1 = MsgBox( _ "There is no Start Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER START DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If IsNull(Me.txtAccEndDate) Then 'Confirm End Date is not null lngRetval1 = MsgBox( _ "There is no End Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER END DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If Me.txtAccStartDate > Me.txtAccEndDate Then lngRetval = MsgBox( _ "The start date must be the same as, or before the end date of the report." & vbCrLf & "" & vbCrLf & "Please review the selected dates and try your report again", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "INCORECT DATE INPUT") Select Case lngRetval Case vbOK End Select Else ' Dim stDocName As String strStDocName = "30_rptAccidentRegister" DoCmd.OpenReport strStDocName, acPreview DoCmd.RunCommand acCmdZoom100 Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Fri Feb 17 17:37:12 2006 From: darrend at nimble.com.au (Darren DICK) Date: Sat, 18 Feb 2006 10:37:12 +1100 Subject: [AccessD] Calendar control help please In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1BD76C@main2.marlow.com> Message-ID: <20060217233715.JEAP19070.omta01ps.mx.bigpond.com@DENZILLAP> Hi Drew no it's not your one either I can't remember where I got it I feel awful now - I can't credit the original author So to whomever they are - many thanks Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Saturday, 18 February 2006 2:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Calendar control help please Is it my MiniCalendar? Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Thursday, February 16, 2006 6:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please I have a code driven one I have used for years - it's brilliant No ActiveX issues at all Dunno where I got it I have modified its look abit, you are most welcome to it Any me too's off list please See y'all Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 11:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Microsoft Jobbie. I can barley roll code. Forget building an existing control. Thanks Darren Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 16, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Hi Joe What's a calPhysExpStart Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? If it is the MS one then Assume the MSActiveX is called Me.calPhysExpStart Have code something like this Me.calPhysExpStart= Me.txtStartDate Demo sent off list Hope this helps Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar control help please 1. I want to make the value in calPhysExpStart = txtStartDate. I have not been able to do that with code target = source or source = target. How do I do that? 2. If I make this mdb an mde will the control carry over ok? Thanks Joe Hecht jmhecht 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Fri Feb 17 17:38:02 2006 From: darrend at nimble.com.au (Darren DICK) Date: Sat, 18 Feb 2006 10:38:02 +1100 Subject: [AccessD] CANCEL WILL NOT CANCEL In-Reply-To: <008a01c63378$10fd0fb0$6701a8c0@HPLaptop> Message-ID: <20060217233805.WLVB14751.omta05ps.mx.bigpond.com@DENZILLAP> Hi Joe Have a look at the last email I sent off list It has all that sort of stuff in it Seeya Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 3:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CANCEL WILL NOT CANCEL The following code is supposed to check that 1. The start date is not null 2. The end date is not null. If either is null I want a message box( that works) and when user clicks ok they go back to form. It is not working. Can any one see why? Thanks Private Sub cmdAccEndDate_Click() Dim lngRetval As Long Dim strStDocName As String Dim lngRetval1 As Long Dim lngRetval2 As Long Dim CANCEL As Boolean Me.txtAccEndDate = Me.calAccEndDate 'Sets end date If IsNull(Me.txtAccStartDate) Then 'Confirm Start Date is not null lngRetval1 = MsgBox( _ "There is no Start Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER START DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If IsNull(Me.txtAccEndDate) Then 'Confirm End Date is not null lngRetval1 = MsgBox( _ "There is no End Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER END DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If Me.txtAccStartDate > Me.txtAccEndDate Then lngRetval = MsgBox( _ "The start date must be the same as, or before the end date of the report." & vbCrLf & "" & vbCrLf & "Please review the selected dates and try your report again", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "INCORECT DATE INPUT") Select Case lngRetval Case vbOK End Select Else ' Dim stDocName As String strStDocName = "30_rptAccidentRegister" DoCmd.OpenReport strStDocName, acPreview DoCmd.RunCommand acCmdZoom100 Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Fri Feb 17 19:51:49 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Fri, 17 Feb 2006 17:51:49 -0800 Subject: [AccessD] CANCEL WILL NOT CANCEL In-Reply-To: Message-ID: <002301c6342d$e2f4bb20$6601a8c0@HPLaptop> Charlotte, I will check what you suggested. The problem is, it is going to the report. Not back to the form which is the desired behavior. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, February 17, 2006 8:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] CANCEL WILL NOT CANCEL Joe, Have you stepped through this code? The first thing to do is check and see what values are in txtAccEndDate and txtAccStartDate. You are using IsNull but they could also be a zero length string or zero (midnight). I'm not sure what you intend to do with the CANCEL variable, since you populate it, but you don't do anything with it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, February 16, 2006 8:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CANCEL WILL NOT CANCEL The following code is supposed to check that 1. The start date is not null 2. The end date is not null. If either is null I want a message box( that works) and when user clicks ok they go back to form. It is not working. Can any one see why? Thanks Private Sub cmdAccEndDate_Click() Dim lngRetval As Long Dim strStDocName As String Dim lngRetval1 As Long Dim lngRetval2 As Long Dim CANCEL As Boolean Me.txtAccEndDate = Me.calAccEndDate 'Sets end date If IsNull(Me.txtAccStartDate) Then 'Confirm Start Date is not null lngRetval1 = MsgBox( _ "There is no Start Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER START DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If IsNull(Me.txtAccEndDate) Then 'Confirm End Date is not null lngRetval1 = MsgBox( _ "There is no End Date Entered." & vbCrLf & "" & vbCrLf & "Please select a Start Date", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "PLEASE ENTER END DATE") Select Case lngRetval1 Case vbOK CANCEL = True End Select End If If Me.txtAccStartDate > Me.txtAccEndDate Then lngRetval = MsgBox( _ "The start date must be the same as, or before the end date of the report." & vbCrLf & "" & vbCrLf & "Please review the selected dates and try your report again", _ vbOKOnly + vbCritical + vbDefaultButton1, _ "INCORECT DATE INPUT") Select Case lngRetval Case vbOK End Select Else ' Dim stDocName As String strStDocName = "30_rptAccidentRegister" DoCmd.OpenReport strStDocName, acPreview DoCmd.RunCommand acCmdZoom100 Joe Hecht jmhecht 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 darsant at gmail.com Sat Feb 18 11:42:37 2006 From: darsant at gmail.com (Josh McFarlane) Date: Sat, 18 Feb 2006 11:42:37 -0600 Subject: [AccessD] CANCEL WILL NOT CANCEL In-Reply-To: <002301c6342d$e2f4bb20$6601a8c0@HPLaptop> References: <002301c6342d$e2f4bb20$6601a8c0@HPLaptop> Message-ID: <53c8e05a0602180942ja067fa9nf3cacca762a15f65@mail.gmail.com> On 2/17/06, Joe Hecht wrote: > Charlotte, > > I will check what you suggested. The problem is, it is going > to the report. Not back to the form which is the desired > behavior. Click Event Handlers don't have a Cancel parameter like Close event handlers do. If you want to implement a cancel mechanism, you have to do it yourself. One way you can do this is by wrapping the report functions in an If statement that checks CANCEL like I previously suggested. -- Josh McFarlane "Peace cannot be kept by force. It can only be achieved by understanding." -Albert Einstein From artful at rogers.com Sat Feb 18 13:20:30 2006 From: artful at rogers.com (Arthur Fuller) Date: Sat, 18 Feb 2006 14:20:30 -0500 Subject: [AccessD] Plant an Excel Worksheet on a form? In-Reply-To: <53c8e05a0602180942ja067fa9nf3cacca762a15f65@mail.gmail.com> Message-ID: <007f01c634c0$61d37110$8e01a8c0@rock> Is it possible to plonk an Excel worksheet directly onto an Access form? Or should I be content with invoking Excel and passing the filename to it? TIA, Arthur From shamil at users.mns.ru Sat Feb 18 13:59:01 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 18 Feb 2006 22:59:01 +0300 Subject: [AccessD] Plant an Excel Worksheet on a form? References: <007f01c634c0$61d37110$8e01a8c0@rock> Message-ID: <001601c634c5$d22e5010$6401a8c0@Nant> Arthur, You can use e.g. Unbound Object Frame - see online help for more details like this sample code: Sub Command1_Click OLE1.Class = "Excel.Sheet" ' Set class name. ' Specify type of object. OLE1.OLETypeAllowed = acOLELinked ' Specify source file. OLE1.SourceDoc = "C:\Excel\Oletext.xls" ' Specify data to create link to. OLE1.SourceItem = "R1C1:R5C5" ' Create linked object. OLE1.Action = acOLECreateLink ' Adjust control size. OLE1.SizeMode = acOLESizeZoom End Sub Shamil ----- Original Message ----- From: "Arthur Fuller" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 18, 2006 10:20 PM Subject: [AccessD] Plant an Excel Worksheet on a form? > Is it possible to plonk an Excel worksheet directly onto an Access form? > Or > should I be content with invoking Excel and passing the filename to it? > TIA, > Arthur > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From shamil at users.mns.ru Sun Feb 19 07:24:16 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 19 Feb 2006 16:24:16 +0300 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: <011b01c63559$405128e0$6401a8c0@Nant> http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil From paul.baumann at rtctech.com Sun Feb 19 16:59:43 2006 From: paul.baumann at rtctech.com (Paul Baumann) Date: Sun, 19 Feb 2006 16:59:43 -0600 Subject: [AccessD] Calendar control help please In-Reply-To: <20060217233715.JEAP19070.omta01ps.mx.bigpond.com@DENZILLAP> Message-ID: <20060219225943.B2F2E44FB34@relay3.r3.iad.emailsrvr.com> Darren, I would appreciate a copy of that calendar control if you don't mind. Paul Paul O. Baumann Tel. 262-925-1300 Fax 262-925-1299 Email: paulb at rtctech.com -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Friday, February 17, 2006 5:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Hi Drew no it's not your one either I can't remember where I got it I feel awful now - I can't credit the original author So to whomever they are - many thanks Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Saturday, 18 February 2006 2:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Calendar control help please Is it my MiniCalendar? Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Thursday, February 16, 2006 6:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please I have a code driven one I have used for years - it's brilliant No ActiveX issues at all Dunno where I got it I have modified its look abit, you are most welcome to it Any me too's off list please See y'all Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 11:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Microsoft Jobbie. I can barley roll code. Forget building an existing control. Thanks Darren Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, February 16, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Calendar control help please Hi Joe What's a calPhysExpStart Is it a hand rolled calendar or the Microsoft Jobbie from the ActiveX list? If it is the MS one then Assume the MSActiveX is called Me.calPhysExpStart Have code something like this Me.calPhysExpStart= Me.txtStartDate Demo sent off list Hope this helps Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Friday, 17 February 2006 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar control help please 1. I want to make the value in calPhysExpStart = txtStartDate. I have not been able to do that with code target = source or source = target. How do I do that? 2. If I make this mdb an mde will the control carry over ok? Thanks Joe Hecht jmhecht 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Mon Feb 20 06:45:19 2006 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Mon, 20 Feb 2006 12:45:19 -0000 Subject: [AccessD] Nested query Message-ID: <7303A459C921B5499AF732CCEEAD2B7F3E6BC8@craws161660.int.rdel.co.uk> Good day! I'm having problems "nesting" a query within another query. My (simplified) scenario is as follows: I have a table (tblClubs) that has three fields: fldIDClubs, fldClubCode, and fldClubName. fldIDClubs is an AutoNumbered field, the other two are text. In my table I currently have the following four records: | fldIDClubs | fldClubCode | fldClubName | |------------|-------------|-------------| | 1 | WAL | Walton | | 2 | WAL | Still Walton| | 3 | WEY | Weybridge | | 4 | OXU | Oxford Uni. | What I want to do, is to return the records with the highest IDClub number per ClubCode ie: | fldIDClubs | fldClubCode | fldClubName | |------------|-------------|-------------| | 2 | WAL | Still Walton| | 3 | WEY | Weybridge | | 4 | OXU | Oxford Uni. | I can do this in two steps, by creating a query that selects MAX IDClubs and GROUP BYs ClubCode (SQL below) SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY tblClubs.fldClubCode; And then using that query in another query with a LEFT JOIN on the original table (SQL below) SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName FROM qryLatestClubRecs LEFT JOIN tblClubs ON qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; But, I need to do this all in one query. I'm using Access as a tool to develop SQL to be used with mySQL in a PHP web page. Any suggestions gratefully received. TIA! Chris Foote From djkr at msn.com Mon Feb 20 07:19:07 2006 From: djkr at msn.com (DJK(John) Robinson) Date: Mon, 20 Feb 2006 13:19:07 -0000 Subject: [AccessD] Nested query In-Reply-To: <7303A459C921B5499AF732CCEEAD2B7F3E6BC8@craws161660.int.rdel.co.uk> Message-ID: Hi Chris A rare occasion that I'm up to date with AccessD reading - displacement activity for evil tax calculations! Anyway, how about: SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY tblClubs.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON LatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; HTH John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, Chris Sent: 20 February 2006 12:45 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Nested query Good day! I'm having problems "nesting" a query within another query. My (simplified) scenario is as follows: I have a table (tblClubs) that has three fields: fldIDClubs, fldClubCode, and fldClubName. fldIDClubs is an AutoNumbered field, the other two are text. In my table I currently have the following four records: | fldIDClubs | fldClubCode | fldClubName | |------------|-------------|-------------| | 1 | WAL | Walton | | 2 | WAL | Still Walton| | 3 | WEY | Weybridge | | 4 | OXU | Oxford Uni. | What I want to do, is to return the records with the highest IDClub number per ClubCode ie: | fldIDClubs | fldClubCode | fldClubName | |------------|-------------|-------------| | 2 | WAL | Still Walton| | 3 | WEY | Weybridge | | 4 | OXU | Oxford Uni. | I can do this in two steps, by creating a query that selects MAX IDClubs and GROUP BYs ClubCode (SQL below) SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY tblClubs.fldClubCode; And then using that query in another query with a LEFT JOIN on the original table (SQL below) SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName FROM qryLatestClubRecs LEFT JOIN tblClubs ON qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; But, I need to do this all in one query. I'm using Access as a tool to develop SQL to be used with mySQL in a PHP web page. Any suggestions gratefully received. TIA! Chris Foote -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Mon Feb 20 07:40:14 2006 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Mon, 20 Feb 2006 13:40:14 -0000 Subject: [AccessD] Nested query Message-ID: <7303A459C921B5499AF732CCEEAD2B7F3E6BC9@craws161660.int.rdel.co.uk> Many thanks John! I'll give that a go. Regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) > Robinson > Sent: Monday, February 20, 2006 1:19 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Nested query > > > Hi Chris > > A rare occasion that I'm up to date with AccessD reading - > displacement > activity for evil tax calculations! > > Anyway, how about: > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] > FROM tblClubs > GROUP BY tblClubs.fldClubCode) AS LatestClubRecs > LEFT JOIN tblClubs ON LatestClubRecs.[Highest ID] = > tblClubs.fldIDClubs; > > HTH > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Foote, Chris > Sent: 20 February 2006 12:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Nested query > > > Good day! > > I'm having problems "nesting" a query within another query. > > My (simplified) scenario is as follows: > > I have a table (tblClubs) that has three fields: fldIDClubs, > fldClubCode, > and fldClubName. > > fldIDClubs is an AutoNumbered field, the other two are text. > > In my table I currently have the following four records: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 1 | WAL | Walton | > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > > What I want to do, is to return the records with the highest > IDClub number > per ClubCode ie: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > I can do this in two steps, by creating a query that selects > MAX IDClubs and > GROUP BYs ClubCode (SQL below) > > > SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] > FROM tblClubs > GROUP BY tblClubs.fldClubCode; > > > And then using that query in another query with a LEFT JOIN > on the original > table (SQL below) > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, > tblClubs.fldClubName FROM > qryLatestClubRecs LEFT JOIN tblClubs ON > qryLatestClubRecs.[Highest ID] = > tblClubs.fldIDClubs; > > But, I need to do this all in one query. I'm using Access as a tool to > develop SQL to be used with mySQL in a PHP web page. > > Any suggestions gratefully received. > > TIA! > > Chris Foote From spikee at oatlandspark.org.uk Mon Feb 20 14:15:40 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Mon, 20 Feb 2006 20:15:40 -0000 Subject: [AccessD] Nested query In-Reply-To: <7303A459C921B5499AF732CCEEAD2B7F3E6BC9@craws161660.int.rdel.co.uk> Message-ID: <200602202015.k1KKFsC16991@databaseadvisors.com> Hi John! I could not get your suggestion to work in A97, but in A2003 (with a minor change) it works as good as gold. What I ended up with is: SELECT tblClubs.fldIDClub, tblClubs.fldClubCode, tblClubs.fldClubShort FROM (SELECT Max(tblClubs1.fldIDClub) AS [Highest ID] FROM tblClubs tblClubs1 GROUP BY tblClubs1.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON LatestClubRecs.[Highest ID] = tblClubs.fldIDClub; Notice that I aliased "tblClubs" as "tblClubs1" in the second "FROM". Without this Access complained about the same table being referred to twice. Thanks again for your help John! Best regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) > Robinson > Sent: Monday, February 20, 2006 1:19 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Nested query > > > Hi Chris > > A rare occasion that I'm up to date with AccessD reading - > displacement activity for evil tax calculations! > > Anyway, how about: > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs > GROUP BY tblClubs.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON > LatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > HTH > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, > Chris > Sent: 20 February 2006 12:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Nested query > > > Good day! > > I'm having problems "nesting" a query within another query. > > My (simplified) scenario is as follows: > > I have a table (tblClubs) that has three fields: fldIDClubs, > fldClubCode, and fldClubName. > > fldIDClubs is an AutoNumbered field, the other two are text. > > In my table I currently have the following four records: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 1 | WAL | Walton | > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > > What I want to do, is to return the records with the highest IDClub > number per ClubCode ie: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > I can do this in two steps, by creating a query that selects MAX > IDClubs and GROUP BYs ClubCode (SQL below) > > > SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY > tblClubs.fldClubCode; > > And then using that query in another query with a LEFT JOIN on the > original table (SQL below) > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM qryLatestClubRecs LEFT JOIN tblClubs ON > qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > But, I need to do this all in one query. I'm using Access as a tool to > develop SQL to be used with mySQL in a PHP web page. > > Any suggestions gratefully received. > > TIA! > > Chris Foote -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djkr at msn.com Mon Feb 20 14:39:05 2006 From: djkr at msn.com (DJK(John) Robinson) Date: Mon, 20 Feb 2006 20:39:05 -0000 Subject: [AccessD] Nested query In-Reply-To: <200602202015.k1KKFsC16991@databaseadvisors.com> Message-ID: That's interesting, version-wise. It was OK in XP (2002). J -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote (Spike) Sent: 20 February 2006 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query Hi John! I could not get your suggestion to work in A97, but in A2003 (with a minor change) it works as good as gold. What I ended up with is: SELECT tblClubs.fldIDClub, tblClubs.fldClubCode, tblClubs.fldClubShort FROM (SELECT Max(tblClubs1.fldIDClub) AS [Highest ID] FROM tblClubs tblClubs1 GROUP BY tblClubs1.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON LatestClubRecs.[Highest ID] = tblClubs.fldIDClub; Notice that I aliased "tblClubs" as "tblClubs1" in the second "FROM". Without this Access complained about the same table being referred to twice. Thanks again for your help John! Best regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) > Robinson > Sent: Monday, February 20, 2006 1:19 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Nested query > > > Hi Chris > > A rare occasion that I'm up to date with AccessD reading - > displacement activity for evil tax calculations! > > Anyway, how about: > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs > GROUP BY tblClubs.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON > LatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > HTH > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, > Chris > Sent: 20 February 2006 12:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Nested query > > > Good day! > > I'm having problems "nesting" a query within another query. > > My (simplified) scenario is as follows: > > I have a table (tblClubs) that has three fields: fldIDClubs, > fldClubCode, and fldClubName. > > fldIDClubs is an AutoNumbered field, the other two are text. > > In my table I currently have the following four records: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 1 | WAL | Walton | > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > > What I want to do, is to return the records with the highest IDClub > number per ClubCode ie: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > I can do this in two steps, by creating a query that selects MAX > IDClubs and GROUP BYs ClubCode (SQL below) > > > SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY > tblClubs.fldClubCode; > > And then using that query in another query with a LEFT JOIN on the > original table (SQL below) > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM qryLatestClubRecs LEFT JOIN tblClubs ON > qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > But, I need to do this all in one query. I'm using Access as a tool to > develop SQL to be used with mySQL in a PHP web page. > > Any suggestions gratefully received. > > TIA! > > Chris Foote -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From spikee at oatlandspark.org.uk Mon Feb 20 14:52:21 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Mon, 20 Feb 2006 20:52:21 -0000 Subject: [AccessD] Nested query In-Reply-To: Message-ID: <200602202052.k1KKqQC24319@databaseadvisors.com> There's something not quite right about it as well John. The A2003 query grid keeps replacing the round brackets surrounding the sub-query with square brackets. Odd! I'm trying to run this query against mySQL using phpMyAdmin and it does not like it one bit. I think I need to read up on aliasing tables a bit more. I wonder if I should move sideways onto the SQL list? Regards! Chris F -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: 20 February 2006 20:39 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query That's interesting, version-wise. It was OK in XP (2002). J -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote (Spike) Sent: 20 February 2006 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query Hi John! I could not get your suggestion to work in A97, but in A2003 (with a minor change) it works as good as gold. What I ended up with is: SELECT tblClubs.fldIDClub, tblClubs.fldClubCode, tblClubs.fldClubShort FROM (SELECT Max(tblClubs1.fldIDClub) AS [Highest ID] FROM tblClubs tblClubs1 GROUP BY tblClubs1.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON LatestClubRecs.[Highest ID] = tblClubs.fldIDClub; Notice that I aliased "tblClubs" as "tblClubs1" in the second "FROM". Without this Access complained about the same table being referred to twice. Thanks again for your help John! Best regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) > Robinson > Sent: Monday, February 20, 2006 1:19 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Nested query > > > Hi Chris > > A rare occasion that I'm up to date with AccessD reading - > displacement activity for evil tax calculations! > > Anyway, how about: > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs > GROUP BY tblClubs.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON > LatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > HTH > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, > Chris > Sent: 20 February 2006 12:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Nested query > > > Good day! > > I'm having problems "nesting" a query within another query. > > My (simplified) scenario is as follows: > > I have a table (tblClubs) that has three fields: fldIDClubs, > fldClubCode, and fldClubName. > > fldIDClubs is an AutoNumbered field, the other two are text. > > In my table I currently have the following four records: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 1 | WAL | Walton | > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > > What I want to do, is to return the records with the highest IDClub > number per ClubCode ie: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > I can do this in two steps, by creating a query that selects MAX > IDClubs and GROUP BYs ClubCode (SQL below) > > > SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY > tblClubs.fldClubCode; > > And then using that query in another query with a LEFT JOIN on the > original table (SQL below) > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM qryLatestClubRecs LEFT JOIN tblClubs ON > qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > But, I need to do this all in one query. I'm using Access as a tool to > develop SQL to be used with mySQL in a PHP web page. > > Any suggestions gratefully received. > > TIA! > > Chris Foote -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Feb 20 15:41:44 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 20 Feb 2006 21:41:44 +0000 Subject: [AccessD] Nested query In-Reply-To: <200602202052.k1KKqQC24319@databaseadvisors.com> Message-ID: Chris, You mentioned A97...just tested this...works fine...hope it helps. Thanks, Mark A. Matte ********** SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName FROM tblClubs WHERE (((tblClubs.fldIDClubs) In (SELECT Max(tblClubs.fldIDClubs) AS MaxOffldIDClubs FROM tblClubs GROUP BY tblClubs.fldClubCode;))); ********** >From: "Chris Foote (Spike)" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Nested query >Date: Mon, 20 Feb 2006 20:52:21 -0000 > >There's something not quite right about it as well John. > >The A2003 query grid keeps replacing the round brackets surrounding the >sub-query with square brackets. Odd! > >I'm trying to run this query against mySQL using phpMyAdmin and it does not >like it one bit. I think I need to read up on aliasing tables a bit more. > >I wonder if I should move sideways onto the SQL list? > >Regards! >Chris F > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DJK(John) >Robinson >Sent: 20 February 2006 20:39 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Nested query > >That's interesting, version-wise. It was OK in XP (2002). >J > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote >(Spike) >Sent: 20 February 2006 20:16 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Nested query > > >Hi John! > >I could not get your suggestion to work in A97, but in A2003 (with a minor >change) it works as good as gold. > >What I ended up with is: > > >SELECT tblClubs.fldIDClub, tblClubs.fldClubCode, tblClubs.fldClubShort FROM >(SELECT Max(tblClubs1.fldIDClub) AS [Highest ID] > > FROM tblClubs tblClubs1 > > GROUP BY tblClubs1.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs >ON >LatestClubRecs.[Highest ID] = tblClubs.fldIDClub; > >Notice that I aliased "tblClubs" as "tblClubs1" in the second "FROM". >Without this Access complained about the same table being referred to >twice. > >Thanks again for your help John! > >Best regards >Chris F > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) > > Robinson > > Sent: Monday, February 20, 2006 1:19 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Nested query > > > > > > Hi Chris > > > > A rare occasion that I'm up to date with AccessD reading - > > displacement activity for evil tax calculations! > > > > Anyway, how about: > > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > > FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs > > GROUP BY tblClubs.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON > > LatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > > > HTH > > John > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, > > Chris > > Sent: 20 February 2006 12:45 > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Nested query > > > > > > Good day! > > > > I'm having problems "nesting" a query within another query. > > > > My (simplified) scenario is as follows: > > > > I have a table (tblClubs) that has three fields: fldIDClubs, > > fldClubCode, and fldClubName. > > > > fldIDClubs is an AutoNumbered field, the other two are text. > > > > In my table I currently have the following four records: > > > > | fldIDClubs | fldClubCode | fldClubName | > > |------------|-------------|-------------| > > | 1 | WAL | Walton | > > | 2 | WAL | Still Walton| > > | 3 | WEY | Weybridge | > > | 4 | OXU | Oxford Uni. | > > > > > > What I want to do, is to return the records with the highest IDClub > > number per ClubCode ie: > > > > | fldIDClubs | fldClubCode | fldClubName | > > |------------|-------------|-------------| > > | 2 | WAL | Still Walton| > > | 3 | WEY | Weybridge | > > | 4 | OXU | Oxford Uni. | > > > > I can do this in two steps, by creating a query that selects MAX > > IDClubs and GROUP BYs ClubCode (SQL below) > > > > > > SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY > > tblClubs.fldClubCode; > > > > And then using that query in another query with a LEFT JOIN on the > > original table (SQL below) > > > > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > > FROM qryLatestClubRecs LEFT JOIN tblClubs ON > > qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > > > But, I need to do this all in one query. I'm using Access as a tool to > > develop SQL to be used with mySQL in a PHP web page. > > > > Any suggestions gratefully received. > > > > TIA! > > > > Chris Foote >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Mon Feb 20 16:00:07 2006 From: KIsmert at texassystems.com (Ken Ismert) Date: Mon, 20 Feb 2006 16:00:07 -0600 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: In fact, if you look at Visual Studio 2005 Tools for Office, you'll find it has no built-in support for Access yet... http://msdn.microsoft.com/office/understanding/vsto/default.aspx As usual, Access lags behind its Office companions in terms of the latest development platform support. That means we'll be able to hang onto that juicy VBA goodness for at least one release beyond any of the other Office components. :) -Ken -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Sunday, February 19, 2006 7:24 AM To: !DBA-MAIN Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil From shamil at users.mns.ru Mon Feb 20 17:00:18 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 21 Feb 2006 02:00:18 +0300 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... References: Message-ID: <000601c63671$731de060$6401a8c0@Nant> Ken, VSTO as far as I see creates COM Add-ins wrapped into .NET Framework "candy wrappers" + different installation/deployment scenarios based on XML manifest files... I may have missed something(please correct) but basically that's all... And new XML based file formats for MS Word and MS Excel - my easy guess is that they use XML serialization/deserialization via MS XML Core Services COM based DLL(s) to save/instantiate MS Word/Excel documents, which as all we know consist of many instances of child objects. That format change wasn't a heavy move on my guess - internally they still use the same software... and no plans to rewrite in using .NET Framework... As for MS Access one can write COM/VSTO Add-ins for MS Access or just CCW wrapped .Net class library .dlls - so I don't think we, MS Access developers, are "out of the game" here... VBA will probably be with us and MS Access until MS Office exists - good news for MS Access VBA developers! People say there are plans to enhance macros for MS Access but these plans when implemented shouldn't hopefully kill VBA... Will they(MS) rewrite their COM based flagship software in foreseeable future? - the doubts in that only grow here - VS.NET 2005 is even better for COM native development than previous Visual Studio releases... I wanted to switch to C++/ATL/COM development - anybody has any good projects there? :) Shamil ----- Original Message ----- From: "Ken Ismert" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 21, 2006 1:00 AM Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > In fact, if you look at Visual Studio 2005 Tools for Office, you'll find > it has no built-in support for Access yet... > > http://msdn.microsoft.com/office/understanding/vsto/default.aspx > > As usual, Access lags behind its Office companions in terms of the > latest development platform support. > > That means we'll be able to hang onto that juicy VBA goodness for at > least one release beyond any of the other Office components. > > :) > > -Ken > > > -----Original Message----- > From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] > Sent: Sunday, February 19, 2006 7:24 AM > To: !DBA-MAIN > Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 > > Shamil > > > -- > 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 20 17:00:30 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 20 Feb 2006 23:00:30 -0000 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: <038e01c63671$7c6f5aa8$1b0e758f@ads.qub.ac.uk> I say a recent demo which combined a .net windows form using a web service embedded inside access 12 and passing data to Access. I asked the MS guy for this but he had deleted the example following the presentation. VBA is there alive and well just looking at the multi value datatypes. In DAO they act as a child recordset of the parent recordset and have all the properties of a normal recordset. So you need to open 2 recordsets when dealing with them Martin -----Original Message----- From: "Ken Ismert" Sent: 2/20/06 10:03:58 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... In fact, if you look at Visual Studio 2005 Tools for Office, you'll find it has no built-in support for Access yet... http://msdn.microsoft.com/office/understanding/vsto/default.aspx As usual, Access lags behind its Office companions in terms of the latest development platform support. That means we'll be able to hang onto that juicy VBA goodness for at least one release beyond any of the other Office components. :) -Ken -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Sunday, February 19, 2006 7:24 AM To: !DBA-MAIN Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil -- 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 20 17:12:39 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 20 Feb 2006 23:12:39 -0000 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: <038f01c63673$2f384e64$1b0e758f@ads.qub.ac.uk> People say there are plans to enhance macros for MS Access but these plans when implemented shouldn't hopefully kill VBA... havnt really looked at them yet but there is something called embedded macros in all the new templates supplied no vba at all. The templates themselves are pure xml files when you open them outside access. Each access object comprises an xml file a format file and a description file of some sort. A tool will be available which will shred an access db file into the required xml to permit you to create your own templates. If you want I can post a sample of the XML files for an object. Martin -----Unmodified Original Message----- Ken, VSTO as far as I see creates COM Add-ins wrapped into .NET Framework "candy wrappers" + different installation/deployment scenarios based on XML manifest files... I may have missed something(please correct) but basically that's all... And new XML based file formats for MS Word and MS Excel - my easy guess is that they use XML serialization/deserialization via MS XML Core Services COM based DLL(s) to save/instantiate MS Word/Excel documents, which as all we know consist of many instances of child objects. That format change wasn't a heavy move on my guess - internally they still use the same software... and no plans to rewrite in using .NET Framework... As for MS Access one can write COM/VSTO Add-ins for MS Access or just CCW wrapped .Net class library .dlls - so I don't think we, MS Access developers, are "out of the game" here... VBA will probably be with us and MS Access until MS Office exists - good news for MS Access VBA developers! People say there are plans to enhance macros for MS Access but these plans when implemented shouldn't hopefully kill VBA... Will they(MS) rewrite their COM based flagship software in foreseeable future? - the doubts in that only grow here - VS.NET 2005 is even better for COM native development than previous Visual Studio releases... I wanted to switch to C++/ATL/COM development - anybody has any good projects there? :) Shamil ----- Original Message ----- From: "Ken Ismert" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 21, 2006 1:00 AM Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > In fact, if you look at Visual Studio 2005 Tools for Office, you'll find > it has no built-in support for Access yet... > > http://msdn.microsoft.com/office/understanding/vsto/default.aspx > > As usual, Access lags behind its Office companions in terms of the > latest development platform support. > > That means we'll be able to hang onto that juicy VBA goodness for at > least one release beyond any of the other Office components. > > :) > > -Ken > > > -----Original Message----- > From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] > Sent: Sunday, February 19, 2006 7:24 AM > To: !DBA-MAIN > Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 > > Shamil > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Feb 20 18:12:36 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 20 Feb 2006 16:12:36 -0800 Subject: [AccessD] No Macro--> Security Message-ID: <43FA5AF4.3080808@san.rr.com> Dear List: My user has four machines - one designated 'server' for the back end, three 'clients'. He Put the back end of the app I developed on the server, and a copy of the front end on the three clients. Two work OK after he got the security warning and went Tools --> Macro --> Security and lowered the security. But on the third machine there's no 'Security' choice on the Macro sub menu. Not even grayed out. Anyone seen this before and know how to fix it? (I have but I can't remember because I'm old and forgetful). MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From harkinsss at bellsouth.net Mon Feb 20 18:16:10 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Mon, 20 Feb 2006 19:16:10 -0500 Subject: [AccessD] No Macro--> Security In-Reply-To: <43FA5AF4.3080808@san.rr.com> Message-ID: <001101c6367c$053594c0$beb3d6d1@SUSANONE> You're getting the warning without the option to change? What kind of security have you got on it? Don't know the answer though -- that's just the first thing that came to mind -- that user needs the right permission to change that option and doesn't have it???? Susan H. Dear List: My user has four machines - one designated 'server' for the back end, three 'clients'. He Put the back end of the app I developed on the server, and a copy of the front end on the three clients. Two work OK after he got the security warning and went Tools --> Macro --> Security and lowered the security. But on the third machine there's no 'Security' choice on the Macro sub menu. Not even grayed out. Anyone seen this before and know how to fix it? (I have but I can't remember because I'm old and forgetful). From bill_Patten at earthlink.net Mon Feb 20 20:54:00 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Mon, 20 Feb 2006 18:54:00 -0800 Subject: [AccessD] No Macro--> Security References: <43FA5AF4.3080808@san.rr.com> Message-ID: <003d01c63692$1176c7c0$6501a8c0@BPCS> I'm running out the door so didn't edit this from my personal tech tips, but I believe the information you need is here. Bill To turn off or change security (macro blocking) go to tools/macro/security and set. If the security tab is not there then you must go to customize and set it up/ tools/customize/commands then rearrange commands then in the menu bar drop down find tools!Macro and select Then select add find security and double click. Move to where you want it and say OK from MS Help Change the security level for macro virus protection Show All Hide All Security Because macros can contain viruses, be careful about running them. Take the following precautions: run up-to-date antivirus software on your computer; set your macro security level to high; clear the Trust all installed add-ins and templates check box; use digital signatures; maintain a list of trusted publishers. On the Tools menu, point to Macro, and then click Security. If you do not see the Macro menu item under the Tools menu, or the Security menu item under the Macro menu, click the arrows at the bottom of a drop-down menu to display the hidden menu items. Tip If you want to see all menu items by default, on the Tools menu, click Customize, click the Options tab, and select the Always show full menus check box. I still can't see the Security command under the Macro menu On the Tools menu, click Customize, and then click the Commands tab. Click Rearrange Commands, select Menu Bar, and in the Menu Bar box, click Tools | Macro. In the Controls section, click Add. The Add command dialog box will appear. In the Categories box, click Tools, and then in the Commands box, click Security. The Security command will appear in the Controls box. Use the Move Up and Move Down buttons to position the Security command where you want. If you'd like to position the Security command in its own group (between horizontal lines), with Security selected, click Modify Selection and click Begin a Group. Select the menu item below the Security command, and repeat. Click Close twice. Key Words access 2003 security macro ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Monday, February 20, 2006 4:12 PM Subject: [AccessD] No Macro--> Security Dear List: My user has four machines - one designated 'server' for the back end, three 'clients'. He Put the back end of the app I developed on the server, and a copy of the front end on the three clients. Two work OK after he got the security warning and went Tools --> Macro --> Security and lowered the security. But on the third machine there's no 'Security' choice on the Macro sub menu. Not even grayed out. Anyone seen this before and know how to fix it? (I have but I can't remember because I'm old and forgetful). MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Mon Feb 20 21:11:52 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 21 Feb 2006 14:11:52 +1100 Subject: [AccessD] Nested query Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116A31F@ddi-01.DDI.local> Not sure about mySQL but SQL Server terminology is 'derived' tables. Check if mySQL allows derived tables. SELECT a FROM [Select a from b]. DerivedTable The [] brackets are the correct syntax. Sub queries are different and are in either the Select or Where parts of the statement. HTH Michael M www.ddisolutions.com.au There's something not quite right about it as well John. The A2003 query grid keeps replacing the round brackets surrounding the sub-query with square brackets. Odd! I'm trying to run this query against mySQL using phpMyAdmin and it does not like it one bit. I think I need to read up on aliasing tables a bit more. I wonder if I should move sideways onto the SQL list? Regards! Chris F -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: 20 February 2006 20:39 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query That's interesting, version-wise. It was OK in XP (2002). J -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote (Spike) Sent: 20 February 2006 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query Hi John! I could not get your suggestion to work in A97, but in A2003 (with a minor change) it works as good as gold. What I ended up with is: SELECT tblClubs.fldIDClub, tblClubs.fldClubCode, tblClubs.fldClubShort FROM (SELECT Max(tblClubs1.fldIDClub) AS [Highest ID] FROM tblClubs tblClubs1 GROUP BY tblClubs1.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON LatestClubRecs.[Highest ID] = tblClubs.fldIDClub; Notice that I aliased "tblClubs" as "tblClubs1" in the second "FROM". Without this Access complained about the same table being referred to twice. Thanks again for your help John! Best regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) > Robinson > Sent: Monday, February 20, 2006 1:19 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Nested query > > > Hi Chris > > A rare occasion that I'm up to date with AccessD reading - > displacement activity for evil tax calculations! > > Anyway, how about: > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs > GROUP BY tblClubs.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON > LatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > HTH > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, > Chris > Sent: 20 February 2006 12:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Nested query > > > Good day! > > I'm having problems "nesting" a query within another query. > > My (simplified) scenario is as follows: > > I have a table (tblClubs) that has three fields: fldIDClubs, > fldClubCode, and fldClubName. > > fldIDClubs is an AutoNumbered field, the other two are text. > > In my table I currently have the following four records: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 1 | WAL | Walton | > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > > What I want to do, is to return the records with the highest IDClub > number per ClubCode ie: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > I can do this in two steps, by creating a query that selects MAX > IDClubs and GROUP BYs ClubCode (SQL below) > > > SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY > tblClubs.fldClubCode; > > And then using that query in another query with a LEFT JOIN on the > original table (SQL below) > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM qryLatestClubRecs LEFT JOIN tblClubs ON > qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > But, I need to do this all in one query. I'm using Access as a tool to > develop SQL to be used with mySQL in a PHP web page. > > Any suggestions gratefully received. > > TIA! > > Chris Foote -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Feb 20 22:03:13 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 20 Feb 2006 20:03:13 -0800 Subject: [AccessD] No Macro--> Security In-Reply-To: <001101c6367c$053594c0$beb3d6d1@SUSANONE> References: <001101c6367c$053594c0$beb3d6d1@SUSANONE> Message-ID: <43FA9101.5010406@san.rr.com> I think it's the Access security level that gets changed in that Macro-->Security dialog box. The first two machines at first opened the app in what the user call a 'safe mode' (read only of the tables;couldn't update any records), and after adjusting the security level, Access allowed read/write. On the third machine, however, there is not security option in the Macro sub-menu. I suspect, and told him that he probably needs to do a custom re-install of Access adding the feature that controls this. But that was just a guess. When I install Office, I always just install everything (run all from my computer). Doesn't take up much more space. I started doing that after several annoying updates for features that didn't get included in the typical install. Rocky Susan Harkins wrote: > You're getting the warning without the option to change? What kind of > security have you got on it? Don't know the answer though -- that's just the > first thing that came to mind -- that user needs the right permission to > change that option and doesn't have it???? > > Susan H. > > Dear List: > > My user has four machines - one designated 'server' for the back end, three > 'clients'. He Put the back end of the app I developed on the server, and a > copy of the front end on the three clients. Two work OK after he got the > security warning and went Tools --> Macro --> Security and lowered the > security. But on the third machine there's no 'Security' choice on the > Macro sub menu. Not even grayed out. > > Anyone seen this before and know how to fix it? (I have but I can't remember > because I'm old and forgetful). > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Mon Feb 20 22:04:50 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 20 Feb 2006 20:04:50 -0800 Subject: [AccessD] No Macro--> Security In-Reply-To: <003d01c63692$1176c7c0$6501a8c0@BPCS> References: <43FA5AF4.3080808@san.rr.com> <003d01c63692$1176c7c0$6501a8c0@BPCS> Message-ID: <43FA9162.1020907@san.rr.com> Bill: Thanks. That looks like it. Will forward to the client. Rocky Bill Patten wrote: > I'm running out the door so didn't edit this from my personal tech tips, but > I believe the information you need is here. > > Bill > To turn off or change security (macro blocking) go to tools/macro/security > and set. > If the security tab is not there then you must go to customize and set it > up/ > > tools/customize/commands then rearrange commands then in the menu bar drop > down find tools!Macro and select Then select add find security and double > click. Move to where you want it and say OK > from MS Help > Change the security level for macro virus protection > Show All > Hide All > Security Because macros can contain viruses, be careful about running them. > Take the following precautions: run up-to-date antivirus software on your > computer; set your macro security level to high; clear the Trust all > installed add-ins and templates check box; use digital signatures; maintain > a list of trusted publishers. > > On the Tools menu, point to Macro, and then click Security. If you do not > see the Macro menu item under the Tools menu, or the Security menu item > under the Macro menu, click the arrows at the bottom of a drop-down menu to > display the hidden menu items. > Tip If you want to see all menu items by default, on the Tools menu, click > Customize, click the Options tab, and select the Always show full menus > check box. > > I still can't see the Security command under the Macro menu > > On the Tools menu, click Customize, and then click the Commands tab. > Click Rearrange Commands, select Menu Bar, and in the Menu Bar box, click > Tools | Macro. > In the Controls section, click Add. > The Add command dialog box will appear. > > In the Categories box, click Tools, and then in the Commands box, click > Security. > The Security command will appear in the Controls box. > > Use the Move Up and Move Down buttons to position the Security command where > you want. > If you'd like to position the Security command in its own group (between > horizontal lines), with Security selected, click Modify Selection and click > Begin a Group. Select the menu item below the Security command, and repeat. > > Click Close twice. > > > > Key Words > access 2003 security macro > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: "Access Developers discussion and problem solving" > > Sent: Monday, February 20, 2006 4:12 PM > Subject: [AccessD] No Macro--> Security > > > Dear List: > > My user has four machines - one designated 'server' for the back end, > three 'clients'. He Put the back end of the app I developed on the > server, and a copy of the front end on the three clients. Two work OK > after he got the security warning and went Tools --> Macro --> Security > and lowered the security. But on the third machine there's no > 'Security' choice on the Macro sub menu. Not even grayed out. > > Anyone seen this before and know how to fix it? (I have but I can't > remember because I'm old and forgetful). > > MTIA > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jmhecht at earthlink.net Mon Feb 20 22:10:44 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Mon, 20 Feb 2006 20:10:44 -0800 Subject: [AccessD] The 10 commandments Access style question? Message-ID: <000a01c6369c$c9c92ac0$6701a8c0@HPLaptop> One of them is lookups are bad. If I set a data type as text (not evil lookup) but create a combo box for the display control am I a sinner. The combo box looks up the proper field and lets users select a value. Not in list property and code coming later. Having faith in the coming question the tablets lay here http://www.mvps.org/access/tencommandments.htm Joe Hecht jmhecht at earthlink.net From jmhecht at earthlink.net Mon Feb 20 22:31:55 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Mon, 20 Feb 2006 20:31:55 -0800 Subject: [AccessD] How many cbo atr too many cbo Message-ID: <002101c6369f$bf71e410$6701a8c0@HPLaptop> As I redesign my project again, I am using multiple cbo to help try insure proper text entry. If the data source for the cbo is a field in the same table how many cbo are too many? It will be a split DB with no more that 4 users. Joe Hecht jmhecht at earthlink.net From martyconnelly at shaw.ca Mon Feb 20 23:03:55 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 20 Feb 2006 21:03:55 -0800 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... References: <038f01c63673$2f384e64$1b0e758f@ads.qub.ac.uk> Message-ID: <43FA9F3B.2080107@shaw.ca> I wouldn't mind seeing the xml. Martin Reid wrote: >People say there are plans to enhance macros for MS Access but these plans >when implemented shouldn't hopefully kill VBA... > >havnt really looked at them yet but there is something called embedded macros in all the new templates supplied no vba at all. The templates themselves are pure xml files when you open them outside access. Each access object comprises an xml file a format file and a description file of some sort. A tool will be available which will shred an access db file into the required xml to permit you to create your own templates. If you want I can post a sample of the XML files for an object. > >Martin > >-----Unmodified Original Message----- >Ken, > >VSTO as far as I see creates COM Add-ins wrapped into .NET Framework "candy >wrappers" + different installation/deployment scenarios based on XML >manifest files... > >I may have missed something(please correct) but basically that's all... > >And new XML based file formats for MS Word and MS Excel - my easy guess is >that they use XML serialization/deserialization via MS XML Core Services >COM based DLL(s) to save/instantiate MS Word/Excel documents, which as all >we know consist of many instances of child objects. That format change >wasn't a heavy move on my guess - internally they still use the same >software... and no plans to rewrite in using .NET Framework... > >As for MS Access one can write COM/VSTO Add-ins for MS Access or just CCW >wrapped .Net class library .dlls - so I don't think we, MS Access >developers, are "out of the game" here... > >VBA will probably be with us and MS Access until MS Office exists - good >news for MS Access VBA developers! > >People say there are plans to enhance macros for MS Access but these plans >when implemented shouldn't hopefully kill VBA... > >Will they(MS) rewrite their COM based flagship software in foreseeable >future? - the doubts in that only grow here - VS.NET 2005 is even better for >COM native development than previous Visual Studio releases... > >I wanted to switch to C++/ATL/COM development - anybody has any good >projects there? :) > >Shamil > >----- Original Message ----- >From: "Ken Ismert" >To: "Access Developers discussion and problem solving" > >Sent: Tuesday, February 21, 2006 1:00 AM >Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > > > >>In fact, if you look at Visual Studio 2005 Tools for Office, you'll find >>it has no built-in support for Access yet... >> >>http://msdn.microsoft.com/office/understanding/vsto/default.aspx >> >>As usual, Access lags behind its Office companions in terms of the >>latest development platform support. >> >>That means we'll be able to hang onto that juicy VBA goodness for at >>least one release beyond any of the other Office components. >> >>:) >> >>-Ken >> >> >>-----Original Message----- >>From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] >>Sent: Sunday, February 19, 2006 7:24 AM >>To: !DBA-MAIN >>Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... >> >>http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 >> >>Shamil >> >> >>-- >>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 Mon Feb 20 23:11:51 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 20 Feb 2006 21:11:51 -0800 Subject: [AccessD] No Macro--> Security References: <43FA5AF4.3080808@san.rr.com> <003d01c63692$1176c7c0$6501a8c0@BPCS> <43FA9162.1020907@san.rr.com> Message-ID: <43FAA117.5090209@shaw.ca> Some other ways around this. To avoid the security message you have to set the security level outside of Access before opening the database. You can create a VB script file with this code and start your app using this. (Code is from an MS article) http://support.microsoft.com/?kbid=235422 Const cDatabaseToOpen = "C:\.mdb" On Error Resume Next Dim AcApp Set AcApp = CreateObject("Access.Application") If AcApp.Version >= 10 Then AcApp.AutomationSecurity = 1 ' msoAutomationSecurityLow End If AcApp.Visible = True AcApp.OpenCurrentDatabase cDatabaseToOpen If AcApp.CurrentProject.FullName <> "" Then AcApp.UserControl = True Else AcApp.Quit MsgBox "Failed to open '" & cDatabaseToOpen & "'." End If Pete A couple of other ways around this. Get your network guy to change the following registry settings of the following key, should help you change the security level of the macro in Access 2003. He should be able to change this globally across the network for each client PC, there is even a way to do this from Access VBA code using WMI with proper network permissions. HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level If the value is 1, then the macro security of Access 2003 is set to low. If the value is 2, then the macro security of Access 2003 is set to medium. If the value is 3, then the macro security of Access 2003 is set to high. WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk. Or You could also put this vbs code in a file to execute in a user's shortcut. Just create vbs file and add to desktop shortcut. MyMDB.vbs Const cDatabaseToOpen = "C:\.mdb" On Error Resume Next Dim AcApp Set AcApp = CreateObject("Access.Application.11") If AcApp.Version >= 11 Then AcApp.AutomationSecurity = 1 ' msoAutomationSecurityLow End If AcApp.Visible = True AcApp.OpenCurrentDatabase cDatabaseToOpen If AcApp.CurrentProject.FullName <> "" Then AcApp.UserControl = True Else AcApp.Quit MsgBox "Failed to open '" & cDatabaseToOpen & "'." End If Rocky Smolin - Beach Access Software wrote: >Bill: > >Thanks. That looks like it. Will forward to the client. > >Rocky > > >Bill Patten wrote: > > >>I'm running out the door so didn't edit this from my personal tech tips, but >>I believe the information you need is here. >> >>Bill >>To turn off or change security (macro blocking) go to tools/macro/security >>and set. >>If the security tab is not there then you must go to customize and set it >>up/ >> >>tools/customize/commands then rearrange commands then in the menu bar drop >>down find tools!Macro and select Then select add find security and double >>click. Move to where you want it and say OK >>from MS Help >>Change the security level for macro virus protection >>Show All >>Hide All >>Security Because macros can contain viruses, be careful about running them. >>Take the following precautions: run up-to-date antivirus software on your >>computer; set your macro security level to high; clear the Trust all >>installed add-ins and templates check box; use digital signatures; maintain >>a list of trusted publishers. >> >>On the Tools menu, point to Macro, and then click Security. If you do not >>see the Macro menu item under the Tools menu, or the Security menu item >>under the Macro menu, click the arrows at the bottom of a drop-down menu to >>display the hidden menu items. >>Tip If you want to see all menu items by default, on the Tools menu, click >>Customize, click the Options tab, and select the Always show full menus >>check box. >> >>I still can't see the Security command under the Macro menu >> >>On the Tools menu, click Customize, and then click the Commands tab. >>Click Rearrange Commands, select Menu Bar, and in the Menu Bar box, click >>Tools | Macro. >>In the Controls section, click Add. >>The Add command dialog box will appear. >> >>In the Categories box, click Tools, and then in the Commands box, click >>Security. >>The Security command will appear in the Controls box. >> >>Use the Move Up and Move Down buttons to position the Security command where >>you want. >>If you'd like to position the Security command in its own group (between >>horizontal lines), with Security selected, click Modify Selection and click >>Begin a Group. Select the menu item below the Security command, and repeat. >> >>Click Close twice. >> >> >> >>Key Words >>access 2003 security macro >> >>----- Original Message ----- >>From: "Rocky Smolin - Beach Access Software" >>To: "Access Developers discussion and problem solving" >> >>Sent: Monday, February 20, 2006 4:12 PM >>Subject: [AccessD] No Macro--> Security >> >> >>Dear List: >> >>My user has four machines - one designated 'server' for the back end, >>three 'clients'. He Put the back end of the app I developed on the >>server, and a copy of the front end on the three clients. Two work OK >>after he got the security warning and went Tools --> Macro --> Security >>and lowered the security. But on the third machine there's no >>'Security' choice on the Macro sub menu. Not even grayed out. >> >>Anyone seen this before and know how to fix it? (I have but I can't >>remember because I'm old and forgetful). >> >>MTIA >> >>Rocky >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Tue Feb 21 00:48:37 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 20 Feb 2006 22:48:37 -0800 Subject: [AccessD] No Macro--> Security In-Reply-To: <43FAA117.5090209@shaw.ca> References: <43FA5AF4.3080808@san.rr.com> <003d01c63692$1176c7c0$6501a8c0@BPCS> <43FA9162.1020907@san.rr.com> <43FAA117.5090209@shaw.ca> Message-ID: <43FAB7C5.3010402@san.rr.com> Marty: Some good ideas for a workaround. Thanks. Will copy the client. However, I'm still hoping the solution is as simple as a full install of Access. Rocky MartyConnelly wrote: > Some other ways around this. > > To avoid the security message you have to set the security level outside > of Access before opening the database. > You can create a VB script file with this code and start your app using > this. (Code is from an MS article) > http://support.microsoft.com/?kbid=235422 > > Const cDatabaseToOpen = "C:\.mdb" > > On Error Resume Next > Dim AcApp > Set AcApp = CreateObject("Access.Application") > If AcApp.Version >= 10 Then > AcApp.AutomationSecurity = 1 ' msoAutomationSecurityLow > End If > AcApp.Visible = True > AcApp.OpenCurrentDatabase cDatabaseToOpen > If AcApp.CurrentProject.FullName <> "" Then > AcApp.UserControl = True > Else > AcApp.Quit > MsgBox "Failed to open '" & cDatabaseToOpen & "'." > End If > > Pete > A couple of other ways around this. > > Get your network guy to change the following registry settings of the > following key, should help you change the security level of the macro in > Access 2003. He should be able to change this globally across the > network for each client PC, there is even a way to do this from Access > VBA code using WMI with proper network permissions. > > HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Access\Security\Level > > If the value is 1, then the macro security of Access 2003 is set to low. > If the value is 2, then the macro security of Access 2003 is set to medium. > If the value is 3, then the macro security of Access 2003 is set to high. > > WARNING: If you use Registry Editor incorrectly, you may cause serious > problems that may require you to reinstall your operating system. > Microsoft cannot guarantee that you can solve problems that result from > using Registry Editor incorrectly. Use Registry Editor at your own risk. > > > Or > > You could also put this vbs code in a file to execute in a user's > shortcut. Just create vbs file and add to desktop shortcut. > > MyMDB.vbs > > Const cDatabaseToOpen = "C:\.mdb" > > On Error Resume Next > Dim AcApp > Set AcApp = CreateObject("Access.Application.11") > If AcApp.Version >= 11 Then > AcApp.AutomationSecurity = 1 ' msoAutomationSecurityLow > End If > AcApp.Visible = True > AcApp.OpenCurrentDatabase cDatabaseToOpen > If AcApp.CurrentProject.FullName <> "" Then > AcApp.UserControl = True > Else > AcApp.Quit > MsgBox "Failed to open '" & cDatabaseToOpen & "'." > End If > > Rocky Smolin - Beach Access Software wrote: > > >> Bill: >> >> Thanks. That looks like it. Will forward to the client. >> >> Rocky >> >> >> Bill Patten wrote: >> >> >> >>> I'm running out the door so didn't edit this from my personal tech tips, but >>> I believe the information you need is here. >>> >>> Bill >>> To turn off or change security (macro blocking) go to tools/macro/security >>> and set. >>> If the security tab is not there then you must go to customize and set it >>> up/ >>> >>> tools/customize/commands then rearrange commands then in the menu bar drop >>> down find tools!Macro and select Then select add find security and double >>> click. Move to where you want it and say OK >>> >> >from MS Help >> >>> Change the security level for macro virus protection >>> Show All >>> Hide All >>> Security Because macros can contain viruses, be careful about running them. >>> Take the following precautions: run up-to-date antivirus software on your >>> computer; set your macro security level to high; clear the Trust all >>> installed add-ins and templates check box; use digital signatures; maintain >>> a list of trusted publishers. >>> >>> On the Tools menu, point to Macro, and then click Security. If you do not >>> see the Macro menu item under the Tools menu, or the Security menu item >>> under the Macro menu, click the arrows at the bottom of a drop-down menu to >>> display the hidden menu items. >>> Tip If you want to see all menu items by default, on the Tools menu, click >>> Customize, click the Options tab, and select the Always show full menus >>> check box. >>> >>> I still can't see the Security command under the Macro menu >>> >>> On the Tools menu, click Customize, and then click the Commands tab. >>> Click Rearrange Commands, select Menu Bar, and in the Menu Bar box, click >>> Tools | Macro. >>> In the Controls section, click Add. >>> The Add command dialog box will appear. >>> >>> In the Categories box, click Tools, and then in the Commands box, click >>> Security. >>> The Security command will appear in the Controls box. >>> >>> Use the Move Up and Move Down buttons to position the Security command where >>> you want. >>> If you'd like to position the Security command in its own group (between >>> horizontal lines), with Security selected, click Modify Selection and click >>> Begin a Group. Select the menu item below the Security command, and repeat. >>> >>> Click Close twice. >>> >>> >>> >>> Key Words >>> access 2003 security macro >>> >>> ----- Original Message ----- >>> From: "Rocky Smolin - Beach Access Software" >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Monday, February 20, 2006 4:12 PM >>> Subject: [AccessD] No Macro--> Security >>> >>> >>> Dear List: >>> >>> My user has four machines - one designated 'server' for the back end, >>> three 'clients'. He Put the back end of the app I developed on the >>> server, and a copy of the front end on the three clients. Two work OK >>> after he got the security warning and went Tools --> Macro --> Security >>> and lowered the security. But on the third machine there's no >>> 'Security' choice on the Macro sub menu. Not even grayed out. >>> >>> Anyone seen this before and know how to fix it? (I have but I can't >>> remember because I'm old and forgetful). >>> >>> MTIA >>> >>> Rocky >>> >>> >>> >>> >>> >> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Chris.Foote at uk.thalesgroup.com Tue Feb 21 02:24:22 2006 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Tue, 21 Feb 2006 08:24:22 -0000 Subject: [AccessD] Nested query Message-ID: <7303A459C921B5499AF732CCEEAD2B7F3E6BCE@craws161660.int.rdel.co.uk> Cheers Mark! Your version works fine in A97. MySQL 4.0.23a-Max still not happy, but I can work on it. Regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > Sent: Monday, February 20, 2006 9:42 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Nested query > > > Chris, > > You mentioned A97...just tested this...works fine...hope it helps. > > Thanks, > > Mark A. Matte > > ********** > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM tblClubs > WHERE (((tblClubs.fldIDClubs) In (SELECT Max(tblClubs.fldIDClubs) AS > MaxOffldIDClubs FROM tblClubs GROUP BY tblClubs.fldClubCode;))); > ********** > > >From: "Chris Foote (Spike)" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] Nested query > >Date: Mon, 20 Feb 2006 20:52:21 -0000 > > > >There's something not quite right about it as well John. > > > >The A2003 query grid keeps replacing the round brackets > surrounding the > >sub-query with square brackets. Odd! > > > >I'm trying to run this query against mySQL using phpMyAdmin > and it does not > >like it one bit. I think I need to read up on aliasing > tables a bit more. > > > >I wonder if I should move sideways onto the SQL list? > > > >Regards! > >Chris F > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DJK(John) > >Robinson > >Sent: 20 February 2006 20:39 > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] Nested query > > > >That's interesting, version-wise. It was OK in XP (2002). > >J > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Chris Foote > >(Spike) > >Sent: 20 February 2006 20:16 > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] Nested query > > > > > >Hi John! > > > >I could not get your suggestion to work in A97, but in A2003 > (with a minor > >change) it works as good as gold. > > > >What I ended up with is: > > > > > >SELECT tblClubs.fldIDClub, tblClubs.fldClubCode, > tblClubs.fldClubShort FROM > >(SELECT Max(tblClubs1.fldIDClub) AS [Highest ID] > > > > FROM tblClubs tblClubs1 > > > > GROUP BY tblClubs1.fldClubCode) AS LatestClubRecs LEFT > JOIN tblClubs > >ON > >LatestClubRecs.[Highest ID] = tblClubs.fldIDClub; > > > >Notice that I aliased "tblClubs" as "tblClubs1" in the second "FROM". > >Without this Access complained about the same table being > referred to > >twice. > > > >Thanks again for your help John! > > > >Best regards > >Chris F From shamil at users.mns.ru Tue Feb 21 03:39:00 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 21 Feb 2006 12:39:00 +0300 Subject: [AccessD] The 10 commandments Access style question? References: <000a01c6369c$c9c92ac0$6701a8c0@HPLaptop> Message-ID: <00aa01c636ca$aecad560$6401a8c0@Nant> Joe, I'd disagree with them and I'd use lookups as much as possible - lookups are true development speed up feature and are very useful for users IMO. I did read carefully the article they refer to http://www.mvps.org/access/lookupfields.htm Honestly I didn't like to use lookup fields when they appeared in Access 97 and I even recommended to not use them to some people - I changed my mind for quite some time now - good evolution IMO :) HTH, Shamil ----- Original Message ----- From: "Joe Hecht" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 21, 2006 7:10 AM Subject: [AccessD] The 10 commandments Access style question? > One of them is lookups are bad. If I set a data type as text > (not evil lookup) but create a combo box for the display > control am I a sinner. > > The combo box looks up the proper field and lets users > select a value. > > Not in list property and code coming later. > > Having faith in the coming question the tablets lay here > > http://www.mvps.org/access/tencommandments.htm > > Joe Hecht > > jmhecht at earthlink.net > > > > -- > 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 21 03:54:52 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Feb 2006 10:54:52 +0100 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: Hi Martin Could you elaborate on this please? A recordset of a recordset in DAO? > .. multi value datatypes. In DAO they act as a child recordset of the > parent recordset and have all the properties of a normal recordset. > So you need to open 2 recordsets when dealing with them /gustav >>> mwp.reid at qub.ac.uk 21-02-2006 00:00 >>> I say a recent demo which combined a .net windows form using a web service embedded inside access 12 and passing data to Access. I asked the MS guy for this but he had deleted the example following the presentation. VBA is there alive and well just looking at the multi value datatypes. In DAO they act as a child recordset of the parent recordset and have all the properties of a normal recordset. So you need to open 2 recordsets when dealing with them Martin From Gustav at cactus.dk Tue Feb 21 04:05:03 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Feb 2006 11:05:03 +0100 Subject: [AccessD] The 10 commandments Access style question? Message-ID: Hi Joe You have to quote correctly. He states "Lookup fields are bad" which is true. If you don't know what lookup fields are, don't bother, you won't need them. Go and create all the comboboxes you like! /gustav >>> jmhecht at earthlink.net 21-02-2006 05:10 >>> One of them is lookups are bad. If I set a data type as text (not evil lookup) but create a combo box for the display control am I a sinner. The combo box looks up the proper field and lets users select a value. Not in list property and code coming later. Having faith in the coming question the tablets lay here http://www.mvps.org/access/tencommandments.htm Joe Hecht jmhecht at earthlink.net From Gustav at cactus.dk Tue Feb 21 04:08:50 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Feb 2006 11:08:50 +0100 Subject: [AccessD] Nested query Message-ID: Hi Chris In standard SQL I believe you need to replace the construct [Select * From ...]. As T with (Select * From ...) T /gustav >>> Chris.Foote at uk.thalesgroup.com 21-02-2006 09:24 >>> Cheers Mark! Your version works fine in A97. MySQL 4.0.23a-Max still not happy, but I can work on it. Regards Chris F From Gustav at cactus.dk Tue Feb 21 04:16:46 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Feb 2006 11:16:46 +0100 Subject: [AccessD] The 10 commandments Access style question? Message-ID: Hi Shamil and Joe I still don't like them in tables. In queries, however, they can be quite useful, leaving the table design clean. I've used them in a set of queries for simple administrative purposes (configuration of an app) where an ID is exactly meaningless while "the meaning" is mandatory to perform the task. It saved my for creating a bunch of forms. However, I would never use them in an application at the user level. /gustav >>> shamil at users.mns.ru 21-02-2006 10:39 >>> Joe, I'd disagree with them and I'd use lookups as much as possible - lookups are true development speed up feature and are very useful for users IMO. I did read carefully the article they refer to http://www.mvps.org/access/lookupfields.htm Honestly I didn't like to use lookup fields when they appeared in Access 97 and I even recommended to not use them to some people - I changed my mind for quite some time now - good evolution IMO :) HTH, Shamil From Gustav at cactus.dk Tue Feb 21 04:40:39 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Feb 2006 11:40:39 +0100 Subject: [AccessD] Unlock an MDE Message-ID: Hi Arthur and Dan Just noticed this link: http://www.everythingaccess.com/tutorials.asp?ID=1 /gustav >>> dwaters at usinternet.com 20-01-2006 17:28 >>> Dear King, What I've read in a few places is that there is a technique where a developer could 'add' capability to an mde, but not change what was already there. The capability addition must use Access macros, because the code is unavailable. I was looking for a way to 'defeat' an mde to see if I could claim to a customer that it really was permanently locked, and I from what I found an mde will not reveal its secrets! Best of Luck, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, January 20, 2006 10:02 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Unlock an MDE A client has an MDE and has lost its corresponding MDB. I vaguely recall that there is some sort of rescue technique. It wouldn't mattered if what came back was obfuscated code; that could be dealt with. Any tips or pointers? A commercial package would be OK if that's the only method. The alternative is reverse-engineering it, which in the circumstances wouldn't be all that terrible. Like most apps, it contains a lot of obvious code and a little rocket science. TIA, Arthur Son of Uther Pendragon, Defeater of the Saxons, Lord Over Alllll England, and King of the Dorks From jwcolby at ColbyConsulting.com Tue Feb 21 06:22:39 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 21 Feb 2006 07:22:39 -0500 Subject: [AccessD] How many cbo atr too many cbo In-Reply-To: <002101c6369f$bf71e410$6701a8c0@HPLaptop> Message-ID: <006001c636e1$82aa2cd0$12013b0a@ColbyM6805> If the source is a field in the same table, you likely aren't normalized correctly. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, February 20, 2006 11:32 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How many cbo atr too many cbo As I redesign my project again, I am using multiple cbo to help try insure proper text entry. If the data source for the cbo is a field in the same table how many cbo are too many? It will be a split DB with no more that 4 users. Joe Hecht jmhecht at earthlink.net -- 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 Tue Feb 21 07:29:10 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 21 Feb 2006 13:29:10 -0000 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: Gustav Here is a bit of DAO which loads a value into a new Access datatype called Attachment which allows you to save several attachments. Dim rsEmployees As DAO.Recordset Dim rsPictures As DAO.Recordset Set db = CurrentDb ' Get the parent recordset Set rsEmployees = db.OpenRecordset("Table1") 'Put the parent record into edit mode rsEmployees.Edit 'Get the attachment recordset Set rsPictures = rsEmployees.Fields("AttachmentCell").Value 'Set first attachment to loaded picture rsPictures.Edit rsPictures.Fields("FileData").LoadFromFile ("C:\test.jpg") rsPictures.Update ' Update the parent record rsEmployees.Update Martin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 21 February 2006 09:55 To: accessd at databaseadvisors.com Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Hi Martin Could you elaborate on this please? A recordset of a recordset in DAO? > .. multi value datatypes. In DAO they act as a child recordset of the > parent recordset and have all the properties of a normal recordset. > So you need to open 2 recordsets when dealing with them /gustav >>> mwp.reid at qub.ac.uk 21-02-2006 00:00 >>> I say a recent demo which combined a .net windows form using a web service embedded inside access 12 and passing data to Access. I asked the MS guy for this but he had deleted the example following the presentation. VBA is there alive and well just looking at the multi value datatypes. In DAO they act as a child recordset of the parent recordset and have all the properties of a normal recordset. So you need to open 2 recordsets when dealing with them Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Tue Feb 21 07:47:24 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 21 Feb 2006 16:47:24 +0300 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... References: Message-ID: <002c01c636ed$5a558160$6401a8c0@Nant> Martin, Does this code means they updated DAO to support new datatype or they somehow worked it around without DAO patching? Shamil ----- Original Message ----- From: "Martin Reid" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 21, 2006 4:29 PM Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > Gustav > > Here is a bit of DAO which loads a value into a new Access datatype > called Attachment which allows you to save several attachments. > > Dim rsEmployees As DAO.Recordset > Dim rsPictures As DAO.Recordset > Set db = CurrentDb > > ' Get the parent recordset > Set rsEmployees = db.OpenRecordset("Table1") > > 'Put the parent record into edit mode > rsEmployees.Edit > > > 'Get the attachment recordset > Set rsPictures = rsEmployees.Fields("AttachmentCell").Value > > 'Set first attachment to loaded picture > rsPictures.Edit > rsPictures.Fields("FileData").LoadFromFile ("C:\test.jpg") > rsPictures.Update > > ' Update the parent record > rsEmployees.Update > > > > Martin > > From mwp.reid at qub.ac.uk Tue Feb 21 07:51:07 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 21 Feb 2006 13:51:07 -0000 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: Thay have updated DAO and JET. They took a private copy of JET and renamed it ACE which is the default database created by Access 12. They then extended the engine to cope with this as well. Martin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: 21 February 2006 13:47 To: Access Developers discussion and problem solving Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Martin, Does this code means they updated DAO to support new datatype or they somehow worked it around without DAO patching? Shamil ----- Original Message ----- From: "Martin Reid" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 21, 2006 4:29 PM Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > Gustav > > Here is a bit of DAO which loads a value into a new Access datatype > called Attachment which allows you to save several attachments. > > Dim rsEmployees As DAO.Recordset > Dim rsPictures As DAO.Recordset > Set db = CurrentDb > > ' Get the parent recordset > Set rsEmployees = db.OpenRecordset("Table1") > > 'Put the parent record into edit mode > rsEmployees.Edit > > > 'Get the attachment recordset > Set rsPictures = rsEmployees.Fields("AttachmentCell").Value > > 'Set first attachment to loaded picture > rsPictures.Edit > rsPictures.Fields("FileData").LoadFromFile ("C:\test.jpg") > rsPictures.Update > > ' Update the parent record > rsEmployees.Update > > > > Martin > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com m From Gustav at cactus.dk Tue Feb 21 08:00:58 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Feb 2006 15:00:58 +0100 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: Hi Martin Oh, news! LoadFromFile was ADO only. So - as Shamil asks - how comes? /gustav >>> mwp.reid at qub.ac.uk 21-02-2006 14:29 >>> Gustav Here is a bit of DAO which loads a value into a new Access datatype called Attachment which allows you to save several attachments. Dim rsEmployees As DAO.Recordset Dim rsPictures As DAO.Recordset Set db = CurrentDb ' Get the parent recordset Set rsEmployees = db.OpenRecordset("Table1") 'Put the parent record into edit mode rsEmployees.Edit 'Get the attachment recordset Set rsPictures = rsEmployees.Fields("AttachmentCell").Value 'Set first attachment to loaded picture rsPictures.Edit rsPictures.Fields("FileData").LoadFromFile ("C:\test.jpg") rsPictures.Update ' Update the parent record rsEmployees.Update Martin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 21 February 2006 09:55 To: accessd at databaseadvisors.com Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Hi Martin Could you elaborate on this please? A recordset of a recordset in DAO? > .. multi value datatypes. In DAO they act as a child recordset of the > parent recordset and have all the properties of a normal recordset. > So you need to open 2 recordsets when dealing with them /gustav >>> mwp.reid at qub.ac.uk 21-02-2006 00:00 >>> I say a recent demo which combined a .net windows form using a web service embedded inside access 12 and passing data to Access. I asked the MS guy for this but he had deleted the example following the presentation. VBA is there alive and well just looking at the multi value datatypes. In DAO they act as a child recordset of the parent recordset and have all the properties of a normal recordset. So you need to open 2 recordsets when dealing with them Martin From dwaters at usinternet.com Tue Feb 21 08:12:54 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 21 Feb 2006 08:12:54 -0600 Subject: [AccessD] Unlock an MDE In-Reply-To: <4632855.1140519967967.JavaMail.root@sniper39> Message-ID: <000701c636f0$e8f8fac0$0200a8c0@danwaters> Hi Gustav, I've seen this site before, but their 'conversion service' is a new feature. I wonder how they do this, and what they charge. They do claim to do everything they can to verify ownership prior to making a conversion. Dan -----Original Message----- Hi Arthur and Dan Just noticed this link: http://www.everythingaccess.com/tutorials.asp?ID=1 /gustav >>> dwaters at usinternet.com 20-01-2006 17:28 >>> Dear King, What I've read in a few places is that there is a technique where a developer could 'add' capability to an mde, but not change what was already there. The capability addition must use Access macros, because the code is unavailable. I was looking for a way to 'defeat' an mde to see if I could claim to a customer that it really was permanently locked, and I from what I found an mde will not reveal its secrets! Best of Luck, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, January 20, 2006 10:02 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Unlock an MDE A client has an MDE and has lost its corresponding MDB. I vaguely recall that there is some sort of rescue technique. It wouldn't mattered if what came back was obfuscated code; that could be dealt with. Any tips or pointers? A commercial package would be OK if that's the only method. The alternative is reverse-engineering it, which in the circumstances wouldn't be all that terrible. Like most apps, it contains a lot of obvious code and a little rocket science. TIA, Arthur Son of Uther Pendragon, Defeater of the Saxons, Lord Over Alllll England, and King of the Dorks -- 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 21 08:30:35 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 21 Feb 2006 15:30:35 +0100 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: Hi Martin et al Martin, you did post this in November, I just forgot, sorry. Read on here: http://blogs.msdn.com/access/ Browse to the bottom. /gustav >>> mwp.reid at qub.ac.uk 21-02-2006 14:51 >>> Thay have updated DAO and JET. They took a private copy of JET and renamed it ACE which is the default database created by Access 12. They then extended the engine to cope with this as well. Martin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: 21 February 2006 13:47 To: Access Developers discussion and problem solving Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Martin, Does this code means they updated DAO to support new datatype or they somehow worked it around without DAO patching? Shamil ----- Original Message ----- From: "Martin Reid" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 21, 2006 4:29 PM Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > Gustav > > Here is a bit of DAO which loads a value into a new Access datatype > called Attachment which allows you to save several attachments. > > Dim rsEmployees As DAO.Recordset > Dim rsPictures As DAO.Recordset > Set db = CurrentDb > > ' Get the parent recordset > Set rsEmployees = db.OpenRecordset("Table1") > > 'Put the parent record into edit mode > rsEmployees.Edit > > > 'Get the attachment recordset > Set rsPictures = rsEmployees.Fields("AttachmentCell").Value > > 'Set first attachment to loaded picture > rsPictures.Edit > rsPictures.Fields("FileData").LoadFromFile ("C:\test.jpg") > rsPictures.Update > > ' Update the parent record > rsEmployees.Update > > > > Martin From jmhecht at earthlink.net Tue Feb 21 08:46:58 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 21 Feb 2006 06:46:58 -0800 Subject: [AccessD] How many cbo atr too many cbo In-Reply-To: <006001c636e1$82aa2cd0$12013b0a@ColbyM6805> Message-ID: <001201c636f5$aafe2e70$6701a8c0@HPLaptop> John, It is about 50 fields all one to one about the same thing. Accident Properties. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, February 21, 2006 4:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How many cbo atr too many cbo If the source is a field in the same table, you likely aren't normalized correctly. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Monday, February 20, 2006 11:32 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How many cbo atr too many cbo As I redesign my project again, I am using multiple cbo to help try insure proper text entry. If the data source for the cbo is a field in the same table how many cbo are too many? It will be a split DB with no more that 4 users. Joe Hecht jmhecht 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 DWUTKA at marlow.com Tue Feb 21 09:46:53 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 21 Feb 2006 09:46:53 -0600 Subject: [AccessD] The 10 commandments Access style question? Message-ID: <17724746D360394AA3BFE5B8D40A9C1BD79E@main2.marlow.com> We've had this little debate before. Are we trying to liven this week up a bit or something? Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Tuesday, February 21, 2006 4:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] The 10 commandments Access style question? Hi Shamil and Joe I still don't like them in tables. In queries, however, they can be quite useful, leaving the table design clean. I've used them in a set of queries for simple administrative purposes (configuration of an app) where an ID is exactly meaningless while "the meaning" is mandatory to perform the task. It saved my for creating a bunch of forms. However, I would never use them in an application at the user level. /gustav >>> shamil at users.mns.ru 21-02-2006 10:39 >>> Joe, I'd disagree with them and I'd use lookups as much as possible - lookups are true development speed up feature and are very useful for users IMO. I did read carefully the article they refer to http://www.mvps.org/access/lookupfields.htm Honestly I didn't like to use lookup fields when they appeared in Access 97 and I even recommended to not use them to some people - I changed my mind for quite some time now - good evolution IMO :) HTH, Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Tue Feb 21 09:59:23 2006 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Tue, 21 Feb 2006 15:59:23 -0000 Subject: [AccessD] The 10 commandments Access style question? Message-ID: <7303A459C921B5499AF732CCEEAD2B7F3E6BD5@craws161660.int.rdel.co.uk> I thought that my problem with SQL syntax was exciting enough ;-) Regards Chris Foote > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > DWUTKA at marlow.com > Sent: Tuesday, February 21, 2006 3:47 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] The 10 commandments Access style question? > > > We've had this little debate before. Are we trying to liven > this week up a > bit or something? > > Drew > > -----Original Message----- > From: Gustav Brock [mailto:Gustav at cactus.dk] > Sent: Tuesday, February 21, 2006 4:17 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] The 10 commandments Access style question? > > > Hi Shamil and Joe > > I still don't like them in tables. In queries, however, they > can be quite > useful, leaving the table design clean. > > I've used them in a set of queries for simple administrative purposes > (configuration of an app) where an ID is exactly meaningless > while "the > meaning" is mandatory to perform the task. It saved my for > creating a bunch > of forms. > > However, I would never use them in an application at the user level. > > /gustav From jmhecht at earthlink.net Tue Feb 21 10:07:00 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 21 Feb 2006 08:07:00 -0800 Subject: [AccessD] The 10 commandments Access style question? In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1BD79E@main2.marlow.com> Message-ID: <000001c63700$d9353b70$6701a8c0@HPLaptop> Not looking for debate. Just trying to be a better programmer. And right now it is not feeling like it is working. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Tuesday, February 21, 2006 7:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] The 10 commandments Access style question? We've had this little debate before. Are we trying to liven this week up a bit or something? Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Tuesday, February 21, 2006 4:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] The 10 commandments Access style question? Hi Shamil and Joe I still don't like them in tables. In queries, however, they can be quite useful, leaving the table design clean. I've used them in a set of queries for simple administrative purposes (configuration of an app) where an ID is exactly meaningless while "the meaning" is mandatory to perform the task. It saved my for creating a bunch of forms. However, I would never use them in an application at the user level. /gustav >>> shamil at users.mns.ru 21-02-2006 10:39 >>> Joe, I'd disagree with them and I'd use lookups as much as possible - lookups are true development speed up feature and are very useful for users IMO. I did read carefully the article they refer to http://www.mvps.org/access/lookupfields.htm Honestly I didn't like to use lookup fields when they appeared in Access 97 and I even recommended to not use them to some people - I changed my mind for quite some time now - good evolution IMO :) HTH, Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Feb 21 10:32:32 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 21 Feb 2006 08:32:32 -0800 Subject: [AccessD] Nested query Message-ID: That's the way the query engine in Access handles the inline query under the covers. Your problem isn't with aliasing the tables (although I would strongly suggest losing the spaces in your aliases). It may work for you if you create the query with the parens and then save it but don't open it in SQL view again, or if you do, replace the brackets and period with parens again before saving. Access 97 was particularly fussy about this. You had to use parens because it would not recognize the square brackets when entered by the user, even though the query engine requires them. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote (Spike) Sent: Monday, February 20, 2006 12:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query There's something not quite right about it as well John. The A2003 query grid keeps replacing the round brackets surrounding the sub-query with square brackets. Odd! I'm trying to run this query against mySQL using phpMyAdmin and it does not like it one bit. I think I need to read up on aliasing tables a bit more. I wonder if I should move sideways onto the SQL list? Regards! Chris F -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: 20 February 2006 20:39 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query That's interesting, version-wise. It was OK in XP (2002). J -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote (Spike) Sent: 20 February 2006 20:16 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Nested query Hi John! I could not get your suggestion to work in A97, but in A2003 (with a minor change) it works as good as gold. What I ended up with is: SELECT tblClubs.fldIDClub, tblClubs.fldClubCode, tblClubs.fldClubShort FROM (SELECT Max(tblClubs1.fldIDClub) AS [Highest ID] FROM tblClubs tblClubs1 GROUP BY tblClubs1.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON LatestClubRecs.[Highest ID] = tblClubs.fldIDClub; Notice that I aliased "tblClubs" as "tblClubs1" in the second "FROM". Without this Access complained about the same table being referred to twice. Thanks again for your help John! Best regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DJK(John) > Robinson > Sent: Monday, February 20, 2006 1:19 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Nested query > > > Hi Chris > > A rare occasion that I'm up to date with AccessD reading - > displacement activity for evil tax calculations! > > Anyway, how about: > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM (SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs > GROUP BY tblClubs.fldClubCode) AS LatestClubRecs LEFT JOIN tblClubs ON > LatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > HTH > John > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, > Chris > Sent: 20 February 2006 12:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Nested query > > > Good day! > > I'm having problems "nesting" a query within another query. > > My (simplified) scenario is as follows: > > I have a table (tblClubs) that has three fields: fldIDClubs, > fldClubCode, and fldClubName. > > fldIDClubs is an AutoNumbered field, the other two are text. > > In my table I currently have the following four records: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 1 | WAL | Walton | > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > > What I want to do, is to return the records with the highest IDClub > number per ClubCode ie: > > | fldIDClubs | fldClubCode | fldClubName | > |------------|-------------|-------------| > | 2 | WAL | Still Walton| > | 3 | WEY | Weybridge | > | 4 | OXU | Oxford Uni. | > > I can do this in two steps, by creating a query that selects MAX > IDClubs and GROUP BYs ClubCode (SQL below) > > > SELECT Max(tblClubs.fldIDClubs) AS [Highest ID] FROM tblClubs GROUP BY > tblClubs.fldClubCode; > > And then using that query in another query with a LEFT JOIN on the > original table (SQL below) > > > SELECT tblClubs.fldIDClubs, tblClubs.fldClubCode, tblClubs.fldClubName > FROM qryLatestClubRecs LEFT JOIN tblClubs ON > qryLatestClubRecs.[Highest ID] = tblClubs.fldIDClubs; > > But, I need to do this all in one query. I'm using Access as a tool to > develop SQL to be used with mySQL in a PHP web page. > > Any suggestions gratefully received. > > TIA! > > Chris Foote -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Feb 21 10:33:28 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 21 Feb 2006 08:33:28 -0800 Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... Message-ID: That "juicy VBA goodness" can't hold a candle to the .Net goodies, Ken. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Monday, February 20, 2006 2:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... In fact, if you look at Visual Studio 2005 Tools for Office, you'll find it has no built-in support for Access yet... http://msdn.microsoft.com/office/understanding/vsto/default.aspx As usual, Access lags behind its Office companions in terms of the latest development platform support. That means we'll be able to hang onto that juicy VBA goodness for at least one release beyond any of the other Office components. :) -Ken -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Sunday, February 19, 2006 7:24 AM To: !DBA-MAIN Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil -- 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 21 13:22:00 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 21 Feb 2006 13:22:00 -0600 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news - VBA in Office 12 and beyond...) In-Reply-To: <11285598.1140540232160.JavaMail.root@sniper14> Message-ID: <000001c6371c$173c7d50$0200a8c0@danwaters> OK Charlotte, What are these goodies? And the big question - what does it take to do the conversion (software, learning curve time, how to make reports, convert forms vs. modules vs. reports, etc.) For an Access application that has ~50K lines of code, is it worth it? Thanks! Dan -----Original Message----- That "juicy VBA goodness" can't hold a candle to the .Net goodies, Ken. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Monday, February 20, 2006 2:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... In fact, if you look at Visual Studio 2005 Tools for Office, you'll find it has no built-in support for Access yet... http://msdn.microsoft.com/office/understanding/vsto/default.aspx As usual, Access lags behind its Office companions in terms of the latest development platform support. That means we'll be able to hang onto that juicy VBA goodness for at least one release beyond any of the other Office components. :) -Ken -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Sunday, February 19, 2006 7:24 AM To: !DBA-MAIN Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Feb 21 14:07:32 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 21 Feb 2006 20:07:32 +0000 Subject: [AccessD] Use animated .gif in A97 In-Reply-To: <000001c6371c$173c7d50$0200a8c0@danwaters> Message-ID: Hello All, I'm trying to use an animated .gif in an A97 db. With the help of www.lebans.com I got the .gif in but there is no animation. Any ideas/direction? Thanks, Mark A. Matte From rl_stewart at highstream.net Tue Feb 21 15:08:15 2006 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 21 Feb 2006 16:08:15 -0500 Subject: [AccessD] How many cbo atr too many cbo In-Reply-To: References: Message-ID: <1140556095.43fb813f85b4a@webmail.highstream.net> Then it is definately bad design. tblAccident AccidentID AccidentDesc Etc.... tblAccidentProperty AccidentPropertyID AccidentID PropertyId AccidentPropertyComments etc.... tlkpProperty PropertyID PropertyDesc This will allow you to add as many "properties" to an accident as you need to in a normalized fashion. Oh, and only one combobox, PropertyID, in it. Robert Date: Tue, 21 Feb 2006 06:46:58 -0800 From: "Joe Hecht" Subject: Re: [AccessD] How many cbo atr too many cbo To: "'Access Developers discussion and problem solving'" Message-ID: <001201c636f5$aafe2e70$6701a8c0 at HPLaptop> Content-Type: text/plain; charset="us-ascii" John, It is about 50 fields all one to one about the same thing. Accident Properties. Joe Hecht jmhecht at earthlink.net Robert L. Stewart The Dyson Group International Software for the Non-profit Enterprise Expanding your Sphere of Knowledge From cfoust at infostatsystems.com Tue Feb 21 15:16:29 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 21 Feb 2006 13:16:29 -0800 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBA in Office 12 and beyond...) Message-ID: I don't know where to start, Dan. It would be a total rewrite, but the program logic could be used to build the new app. Learning curve is steep because *everything* is an object and doing anything to it (like populating a string that already has text) creates a NEW object with the same name. You don't do things the same way, but it is much easier to get at and manipulate data, to create datasets that include related fields from another table, to create reusable code. The list is endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and user controls is quite different from Access because you have so much control over the objects and their behavior. Reports can be used in our web-based app or on Windows without modifications. Do you want to bind different parts of a form or report to different data sources? No problem. Do you want to bind controls to the top, left, right, bottom of the container so they move when the object resizes? No problem. Do you want a panel to fill its allocated space and stay that way through form resizes? No problem. Do you want custom behavior from a control? Create your own and use it in you apps. I'm a fan, as you can tell, but it is also easier to sell clients on .Net apps than on Access applications, justifiably or not. We build our apps so that we can connect to either an Access or SQL Server backend without changing any of the code, which makes it easy to switch a client over when they need the added capacity of SQL Server. It takes planning and learning and effort, so don't do it unless you are willing to commit to those things and you are willing to use managed code. There is no point at all in building one-off code in .Net. That's a waste of time and energy. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 21, 2006 11:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBA in Office 12 and beyond...) OK Charlotte, What are these goodies? And the big question - what does it take to do the conversion (software, learning curve time, how to make reports, convert forms vs. modules vs. reports, etc.) For an Access application that has ~50K lines of code, is it worth it? Thanks! Dan -----Original Message----- That "juicy VBA goodness" can't hold a candle to the .Net goodies, Ken. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Monday, February 20, 2006 2:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... In fact, if you look at Visual Studio 2005 Tools for Office, you'll find it has no built-in support for Access yet... http://msdn.microsoft.com/office/understanding/vsto/default.aspx As usual, Access lags behind its Office companions in terms of the latest development platform support. That means we'll be able to hang onto that juicy VBA goodness for at least one release beyond any of the other Office components. :) -Ken -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Sunday, February 19, 2006 7:24 AM To: !DBA-MAIN Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Tue Feb 21 15:32:02 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 21 Feb 2006 13:32:02 -0800 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) In-Reply-To: Message-ID: <000201c6372e$4157bc50$0200a8c0@murphyf3vdfepi> Charlotte, I am interested in becoming proficient in .NET but am concerned that our development costs will go up to our customers if use that technology. What do you think the time comparison is to develop an application in Access vs .NET once the .NET learning has been accomplished? I recently read an editorial in Smart Access by Peter Vogel who has been working in both environments that indicated that he thought Access is a much more efficient environment to develop in, assuming that the functionality you require is supported by Access. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 21, 2006 1:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) I don't know where to start, Dan. It would be a total rewrite, but the program logic could be used to build the new app. Learning curve is steep because *everything* is an object and doing anything to it (like populating a string that already has text) creates a NEW object with the same name. You don't do things the same way, but it is much easier to get at and manipulate data, to create datasets that include related fields from another table, to create reusable code. The list is endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and user controls is quite different from Access because you have so much control over the objects and their behavior. Reports can be used in our web-based app or on Windows without modifications. Do you want to bind different parts of a form or report to different data sources? No problem. Do you want to bind controls to the top, left, right, bottom of the container so they move when the object resizes? No problem. Do you want a panel to fill its allocated space and stay that way through form resizes? No problem. Do you want custom behavior from a control? Create your own and use it in you apps. I'm a fan, as you can tell, but it is also easier to sell clients on .Net apps than on Access applications, justifiably or not. We build our apps so that we can connect to either an Access or SQL Server backend without changing any of the code, which makes it easy to switch a client over when they need the added capacity of SQL Server. It takes planning and learning and effort, so don't do it unless you are willing to commit to those things and you are willing to use managed code. There is no point at all in building one-off code in .Net. That's a waste of time and energy. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 21, 2006 11:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBA in Office 12 and beyond...) OK Charlotte, What are these goodies? And the big question - what does it take to do the conversion (software, learning curve time, how to make reports, convert forms vs. modules vs. reports, etc.) For an Access application that has ~50K lines of code, is it worth it? Thanks! Dan -----Original Message----- That "juicy VBA goodness" can't hold a candle to the .Net goodies, Ken. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Monday, February 20, 2006 2:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... In fact, if you look at Visual Studio 2005 Tools for Office, you'll find it has no built-in support for Access yet... http://msdn.microsoft.com/office/understanding/vsto/default.aspx As usual, Access lags behind its Office companions in terms of the latest development platform support. That means we'll be able to hang onto that juicy VBA goodness for at least one release beyond any of the other Office components. :) -Ken -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Sunday, February 19, 2006 7:24 AM To: !DBA-MAIN Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Feb 21 15:50:51 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 21 Feb 2006 15:50:51 -0600 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) In-Reply-To: <4135463.1140556914973.JavaMail.root@sniper20> Message-ID: <000401c63730$e22e97a0$0200a8c0@danwaters> Thanks Charlotte, My customers typically want customized or new modules, unique to them, so it sounds like sticking with Access is probably correct. I think you've improved my career choices! Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 21, 2006 3:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) I don't know where to start, Dan. It would be a total rewrite, but the program logic could be used to build the new app. Learning curve is steep because *everything* is an object and doing anything to it (like populating a string that already has text) creates a NEW object with the same name. You don't do things the same way, but it is much easier to get at and manipulate data, to create datasets that include related fields from another table, to create reusable code. The list is endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and user controls is quite different from Access because you have so much control over the objects and their behavior. Reports can be used in our web-based app or on Windows without modifications. Do you want to bind different parts of a form or report to different data sources? No problem. Do you want to bind controls to the top, left, right, bottom of the container so they move when the object resizes? No problem. Do you want a panel to fill its allocated space and stay that way through form resizes? No problem. Do you want custom behavior from a control? Create your own and use it in you apps. I'm a fan, as you can tell, but it is also easier to sell clients on .Net apps than on Access applications, justifiably or not. We build our apps so that we can connect to either an Access or SQL Server backend without changing any of the code, which makes it easy to switch a client over when they need the added capacity of SQL Server. It takes planning and learning and effort, so don't do it unless you are willing to commit to those things and you are willing to use managed code. There is no point at all in building one-off code in .Net. That's a waste of time and energy. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 21, 2006 11:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBA in Office 12 and beyond...) OK Charlotte, What are these goodies? And the big question - what does it take to do the conversion (software, learning curve time, how to make reports, convert forms vs. modules vs. reports, etc.) For an Access application that has ~50K lines of code, is it worth it? Thanks! Dan -----Original Message----- That "juicy VBA goodness" can't hold a candle to the .Net goodies, Ken. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Monday, February 20, 2006 2:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... In fact, if you look at Visual Studio 2005 Tools for Office, you'll find it has no built-in support for Access yet... http://msdn.microsoft.com/office/understanding/vsto/default.aspx As usual, Access lags behind its Office companions in terms of the latest development platform support. That means we'll be able to hang onto that juicy VBA goodness for at least one release beyond any of the other Office components. :) -Ken -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Sunday, February 19, 2006 7:24 AM To: !DBA-MAIN Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Tue Feb 21 16:06:33 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 22 Feb 2006 01:06:33 +0300 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBA in Office 12 and beyond...) References: <000001c6371c$173c7d50$0200a8c0@danwaters> Message-ID: <001301c63733$209b8280$6401a8c0@Nant> > For an Access application that has ~50K lines of code, is it worth it? Dan, It all depends of course and it have to be carefully planned... Rough first estimation (I assume your code is rather clean and well tested): if you don't plan to rewrite DAO/ADO -> ADO.NET during conversion and if we assume that these 50K of code lines are not heavily MS Access object model bound - i.e. that these are more utility/data processing code then I'd say 50K code lines conversion VBA ->VB = 10 man/weeks (5 weeks code conversion, 5 weeks tests preparation, testing, deploying).... I did multiply "cowboy programmer estimate" of 4-5 weeks by two. It may need to be multiplied another two times to have 20 man/weeks, especially if you have a lot of code bound to MS Access forms specific forms and if you have a lot of complicated reports. One of my experiences of VBA (3 MS Excel add-ins) to VSTO based XL add-ins: - source code in three VBA addins: Sources ======= Files 74 (500KB) Pages 229 Words 47264 Chars (no spaces) 349,959 Chars (with spaces) 452,476 Paragraphs 11,840 Lines 14,621 Result ====== Files 76 (1MB) Pages 416 Words 88,454 Chars (no spaces) 803,394 Chars (with spaces) 1,066, 778 Paragraphs 18,123 Lines 26,460 The stats are collected by MS Word with all text merged into one file for source and for destination projects, font used 10pt Courrier new, page size A4. The result text size is bigger because during automatic conversion quite some comments are inserted, which I didn't delete all and because I did leave quite some converted code commented to see what was done etc. Conversion took one week work from scratch without in advance knowledge on how to write COM Add-ins using VSTO etc. There were several simple MS Forms forms only. During conversion DAO and ADO weren't converted to ADO.NET. Recap ===== If you/your company/customers are betting on .NET Framework(i.e. this is accepted long term goal and you have resources) then I'd not think long and just go (VS.NET 2005) - the more you will be programming on VB.NET/C# the more you feel yourself much more comfortable and safe than in VBA and after some (usally not long) start-up delay you will be quickly getting development time acceleration... Shamil ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 21, 2006 10:22 PM Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBA in Office 12 and beyond...) > OK Charlotte, > > What are these goodies? And the big question - what does it take to do > the > conversion (software, learning curve time, how to make reports, convert > forms vs. modules vs. reports, etc.) > > For an Access application that has ~50K lines of code, is it worth it? > > Thanks! > Dan > > > -----Original Message----- > > That "juicy VBA goodness" can't hold a candle to the .Net goodies, Ken. > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert > Sent: Monday, February 20, 2006 2:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > > > In fact, if you look at Visual Studio 2005 Tools for Office, you'll find > it has no built-in support for Access yet... > > http://msdn.microsoft.com/office/understanding/vsto/default.aspx > > As usual, Access lags behind its Office companions in terms of the > latest development platform support. > > That means we'll be able to hang onto that juicy VBA goodness for at > least one release beyond any of the other Office components. > > :) > > -Ken > > > -----Original Message----- > From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] > Sent: Sunday, February 19, 2006 7:24 AM > To: !DBA-MAIN > Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 > > Shamil > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From erbachs at gmail.com Tue Feb 21 16:04:44 2006 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 21 Feb 2006 16:04:44 -0600 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBA in Office 12 and beyond...) In-Reply-To: References: Message-ID: <39cb22f30602211404r96d043fsa9258fe4a9003992@mail.gmail.com> Charlotte, Very good little summary of the features/benefits of using .NET. Could you tell me what resources you've used to support your learning curve? That is, books, on-line code samples, hands-on courses, magazines, web sites, etc. Do you have any "mentors"? People who you think are tops when it comes to writing about .NET or coding in .NET? Thanks, Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/21/06, Charlotte Foust wrote: > I don't know where to start, Dan. It would be a total rewrite, but the > program logic could be used to build the new app. Learning curve is > steep because *everything* is an object and doing anything to it (like > populating a string that already has text) creates a NEW object with the > same name. You don't do things the same way, but it is much easier to > get at and manipulate data, to create datasets that include related > fields from another table, to create reusable code. The list is > endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and user > controls is quite different from Access because you have so much control > over the objects and their behavior. Reports can be used in our > web-based app or on Windows without modifications. Do you want to bind > different parts of a form or report to different data sources? No > problem. Do you want to bind controls to the top, left, right, bottom > of the container so they move when the object resizes? No problem. Do > you want a panel to fill its allocated space and stay that way through > form resizes? No problem. Do you want custom behavior from a control? > Create your own and use it in you apps. > > I'm a fan, as you can tell, but it is also easier to sell clients on > .Net apps than on Access applications, justifiably or not. We build our > apps so that we can connect to either an Access or SQL Server backend > without changing any of the code, which makes it easy to switch a client > over when they need the added capacity of SQL Server. It takes planning > and learning and effort, so don't do it unless you are willing to commit > to those things and you are willing to use managed code. There is no > point at all in building one-off code in .Net. That's a waste of time > and energy. > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, February 21, 2006 11:22 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news > -VBA in Office 12 and beyond...) > > > OK Charlotte, > > What are these goodies? And the big question - what does it take to do > the conversion (software, learning curve time, how to make reports, > convert forms vs. modules vs. reports, etc.) > > For an Access application that has ~50K lines of code, is it worth it? > > Thanks! > Dan From cfoust at infostatsystems.com Tue Feb 21 16:13:55 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 21 Feb 2006 14:13:55 -0800 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) Message-ID: My employer purchased the .Net training series from AppDev and I went through quite a bit of it. I also have a couple of Rick Dobsons books on VB.Net and a very useful tutorial book, Database Programming with Visual Basic.Net and ADO.Net. It is out of date and doesn't use Option strict, so it is a good exercise to make the examples run anyhow in a current and more restrictive environment. ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Tuesday, February 21, 2006 2:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) Charlotte, Very good little summary of the features/benefits of using .NET. Could you tell me what resources you've used to support your learning curve? That is, books, on-line code samples, hands-on courses, magazines, web sites, etc. Do you have any "mentors"? People who you think are tops when it comes to writing about .NET or coding in .NET? Thanks, Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/21/06, Charlotte Foust wrote: > I don't know where to start, Dan. It would be a total rewrite, but > the program logic could be used to build the new app. Learning curve > is steep because *everything* is an object and doing anything to it > (like populating a string that already has text) creates a NEW object > with the same name. You don't do things the same way, but it is much > easier to get at and manipulate data, to create datasets that include > related fields from another table, to create reusable code. The list > is endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and > user controls is quite different from Access because you have so much > control over the objects and their behavior. Reports can be used in > our web-based app or on Windows without modifications. Do you want to > bind different parts of a form or report to different data sources? > No problem. Do you want to bind controls to the top, left, right, > bottom of the container so they move when the object resizes? No > problem. Do you want a panel to fill its allocated space and stay > that way through form resizes? No problem. Do you want custom > behavior from a control? Create your own and use it in you apps. > > I'm a fan, as you can tell, but it is also easier to sell clients on > .Net apps than on Access applications, justifiably or not. We build > our apps so that we can connect to either an Access or SQL Server > backend without changing any of the code, which makes it easy to > switch a client over when they need the added capacity of SQL Server. > It takes planning and learning and effort, so don't do it unless you > are willing to commit to those things and you are willing to use > managed code. There is no point at all in building one-off code in > .Net. That's a waste of time and energy. > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Tuesday, February 21, 2006 11:22 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > news -VBA in Office 12 and beyond...) > > > OK Charlotte, > > What are these goodies? And the big question - what does it take to > do the conversion (software, learning curve time, how to make reports, > convert forms vs. modules vs. reports, etc.) > > For an Access application that has ~50K lines of code, is it worth it? > > Thanks! > Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Tue Feb 21 19:12:28 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 21 Feb 2006 17:12:28 -0800 Subject: [AccessD] Some vba help please Message-ID: <000301c6374d$0e7f48b0$6701a8c0@HPLaptop> Private Sub Accident_Date_AfterUpdate() Me.txtNewAccidentID = Right(txtAccidentDate, 4) & " - " & DMax(NewAccidentID, [20_tblAccidentmaster]) End Sub I am trying to build a new key for each record in a table. Right(txtAccidentDate, 4) gets the year. " & right(DMax(NewAccidentID, [20_tblAccidentmaster]),3)+1 gets the next sequential number. 1. The code is not firing. I am getting no error or value. 2. Does this code look correct to my purpose. Joe Hecht jmhecht at earthlink.net From erbachs at gmail.com Tue Feb 21 19:36:45 2006 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 21 Feb 2006 19:36:45 -0600 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) In-Reply-To: References: Message-ID: <39cb22f30602211736wa222dd4ha3649fda1d56bb96@mail.gmail.com> Charlotte, Thank you very much. I have the Murach series of .NET books, two O'Reilly books on ASP.NET (the Cookbook and Programming With), three early Microsoft books on .NET, and a Wrox book on Crystal Reports. My Safari subscription has been very useful along those lines, too. On my bookshelf I've got the O'Reilly ADO.NET Cookbook, the Programming ASP.NET 3rd edition, and the Programming C# 4th edition. Are you talking about the .NET Power Suite for Visual Basic .NET or Visual C# .NET? I see that those are currently $2517 and $1437 without books. Hoo boy! I'll bet they were pretty thorough! I see a used copy of Rick Dobson's "Programming Microsoft SQL Server 2000 with Microsoft Visual Basic .NET" available on Amazon for $135.99!! Otherwise he has a lot of Access-based books. Don't see any others on .NET really except for one on SQL Server 2005 Express. F. Scott Barker appears to be the author of that 2002 book on ADO.NET and VB.NET. Thanks again. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/21/06, Charlotte Foust wrote: > My employer purchased the .Net training series from AppDev and I went > through quite a bit of it. I also have a couple of Rick Dobsons books > on VB.Net and a very useful tutorial book, Database Programming with > Visual Basic.Net and ADO.Net. It is out of date and doesn't use Option > strict, so it is a good exercise to make the examples run anyhow in a > current and more restrictive environment. ;o> > > Charlotte > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Tuesday, February 21, 2006 2:05 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news > -VBAin Office 12 and beyond...) > > > Charlotte, > > Very good little summary of the features/benefits of using .NET. > > Could you tell me what resources you've used to support your learning > curve? That is, books, on-line code samples, hands-on courses, > magazines, web sites, etc. Do you have any "mentors"? People who you > think are tops when it comes to writing about .NET or coding in .NET? > > Thanks, > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > > On 2/21/06, Charlotte Foust wrote: > > I don't know where to start, Dan. It would be a total rewrite, but > > the program logic could be used to build the new app. Learning curve > > is steep because *everything* is an object and doing anything to it > > (like populating a string that already has text) creates a NEW object > > with the same name. You don't do things the same way, but it is much > > easier to get at and manipulate data, to create datasets that include > > related fields from another table, to create reusable code. The list > > is endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and > > user controls is quite different from Access because you have so much > > control over the objects and their behavior. Reports can be used in > > our web-based app or on Windows without modifications. Do you want to > > > bind different parts of a form or report to different data sources? > > No problem. Do you want to bind controls to the top, left, right, > > bottom of the container so they move when the object resizes? No > > problem. Do you want a panel to fill its allocated space and stay > > that way through form resizes? No problem. Do you want custom > > behavior from a control? Create your own and use it in you apps. > > > > I'm a fan, as you can tell, but it is also easier to sell clients on > > .Net apps than on Access applications, justifiably or not. We build > > our apps so that we can connect to either an Access or SQL Server > > backend without changing any of the code, which makes it easy to > > switch a client over when they need the added capacity of SQL Server. > > > It takes planning and learning and effort, so don't do it unless you > > are willing to commit to those things and you are willing to use > > managed code. There is no point at all in building one-off code in > > .Net. That's a waste of time and energy. > > > > Charlotte Foust > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > > Sent: Tuesday, February 21, 2006 11:22 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > > news -VBA in Office 12 and beyond...) > > > > > > OK Charlotte, > > > > What are these goodies? And the big question - what does it take to > > do the conversion (software, learning curve time, how to make reports, > > > convert forms vs. modules vs. reports, etc.) > > > > For an Access application that has ~50K lines of code, is it worth it? > > > > Thanks! > > Dan > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security From cfoust at infostatsystems.com Tue Feb 21 19:38:32 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 21 Feb 2006 17:38:32 -0800 Subject: [AccessD] Some vba help please Message-ID: It looks to me like you're trying to use the same NewAccidentID for all the records. Surely that isn't what you wanted is it? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, February 21, 2006 5:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some vba help please Private Sub Accident_Date_AfterUpdate() Me.txtNewAccidentID = Right(txtAccidentDate, 4) & " - " & DMax(NewAccidentID, [20_tblAccidentmaster]) End Sub I am trying to build a new key for each record in a table. Right(txtAccidentDate, 4) gets the year. " & right(DMax(NewAccidentID, [20_tblAccidentmaster]),3)+1 gets the next sequential number. 1. The code is not firing. I am getting no error or value. 2. Does this code look correct to my purpose. Joe Hecht jmhecht at earthlink.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Tue Feb 21 19:47:45 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 21 Feb 2006 17:47:45 -0800 Subject: [AccessD] Some vba help please In-Reply-To: Message-ID: <000f01c63751$fad1a600$6701a8c0@HPLaptop> Charlotte I am trying to make a new field. Their current key system 1. Will cause duplicate values in 2010 2. Does not allow proper numerical sort now. Current system is first and last digit of year + next sequence number 19-01 19-02 20-01 20-112 20-02 And so on I want to build 2000-001 2000-002 2000-003 Etc Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 21, 2006 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Some vba help please It looks to me like you're trying to use the same NewAccidentID for all the records. Surely that isn't what you wanted is it? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, February 21, 2006 5:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some vba help please Private Sub Accident_Date_AfterUpdate() Me.txtNewAccidentID = Right(txtAccidentDate, 4) & " - " & DMax(NewAccidentID, [20_tblAccidentmaster]) End Sub I am trying to build a new key for each record in a table. Right(txtAccidentDate, 4) gets the year. " & right(DMax(NewAccidentID, [20_tblAccidentmaster]),3)+1 gets the next sequential number. 1. The code is not firing. I am getting no error or value. 2. Does this code look correct to my purpose. Joe Hecht jmhecht 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 KP at sdsonline.net Tue Feb 21 19:51:12 2006 From: KP at sdsonline.net (Kath Pelletti) Date: Wed, 22 Feb 2006 12:51:12 +1100 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) References: <39cb22f30602211736wa222dd4ha3649fda1d56bb96@mail.gmail.com> Message-ID: <006501c63752$7645a700$6501a8c0@user> It's interesting to see what everyone is reading........ I recently ordered these (still waiting). I'll post back an opinion when I've been through them: ASP .NET Developer's Guide by Buczek, Greg Visual Basic 2005 Programmer's Reference (Programmer to Programmer)" Rod Stephens; My problem has been finding stuff which relates to the latest 2005 version. Kath ----- Original Message ----- From: Steve Erbach To: Access Developers discussion and problem solving Sent: Wednesday, February 22, 2006 12:36 PM Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) Charlotte, Thank you very much. I have the Murach series of .NET books, two O'Reilly books on ASP.NET (the Cookbook and Programming With), three early Microsoft books on .NET, and a Wrox book on Crystal Reports. My Safari subscription has been very useful along those lines, too. On my bookshelf I've got the O'Reilly ADO.NET Cookbook, the Programming ASP.NET 3rd edition, and the Programming C# 4th edition. Are you talking about the .NET Power Suite for Visual Basic .NET or Visual C# .NET? I see that those are currently $2517 and $1437 without books. Hoo boy! I'll bet they were pretty thorough! I see a used copy of Rick Dobson's "Programming Microsoft SQL Server 2000 with Microsoft Visual Basic .NET" available on Amazon for $135.99!! Otherwise he has a lot of Access-based books. Don't see any others on .NET really except for one on SQL Server 2005 Express. F. Scott Barker appears to be the author of that 2002 book on ADO.NET and VB.NET. Thanks again. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/21/06, Charlotte Foust wrote: > My employer purchased the .Net training series from AppDev and I went > through quite a bit of it. I also have a couple of Rick Dobsons books > on VB.Net and a very useful tutorial book, Database Programming with > Visual Basic.Net and ADO.Net. It is out of date and doesn't use Option > strict, so it is a good exercise to make the examples run anyhow in a > current and more restrictive environment. ;o> > > Charlotte > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Tuesday, February 21, 2006 2:05 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news > -VBAin Office 12 and beyond...) > > > Charlotte, > > Very good little summary of the features/benefits of using .NET. > > Could you tell me what resources you've used to support your learning > curve? That is, books, on-line code samples, hands-on courses, > magazines, web sites, etc. Do you have any "mentors"? People who you > think are tops when it comes to writing about .NET or coding in .NET? > > Thanks, > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > > On 2/21/06, Charlotte Foust wrote: > > I don't know where to start, Dan. It would be a total rewrite, but > > the program logic could be used to build the new app. Learning curve > > is steep because *everything* is an object and doing anything to it > > (like populating a string that already has text) creates a NEW object > > with the same name. You don't do things the same way, but it is much > > easier to get at and manipulate data, to create datasets that include > > related fields from another table, to create reusable code. The list > > is endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and > > user controls is quite different from Access because you have so much > > control over the objects and their behavior. Reports can be used in > > our web-based app or on Windows without modifications. Do you want to > > > bind different parts of a form or report to different data sources? > > No problem. Do you want to bind controls to the top, left, right, > > bottom of the container so they move when the object resizes? No > > problem. Do you want a panel to fill its allocated space and stay > > that way through form resizes? No problem. Do you want custom > > behavior from a control? Create your own and use it in you apps. > > > > I'm a fan, as you can tell, but it is also easier to sell clients on > > .Net apps than on Access applications, justifiably or not. We build > > our apps so that we can connect to either an Access or SQL Server > > backend without changing any of the code, which makes it easy to > > switch a client over when they need the added capacity of SQL Server. > > > It takes planning and learning and effort, so don't do it unless you > > are willing to commit to those things and you are willing to use > > managed code. There is no point at all in building one-off code in > > .Net. That's a waste of time and energy. > > > > Charlotte Foust > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > > Sent: Tuesday, February 21, 2006 11:22 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > > news -VBA in Office 12 and beyond...) > > > > > > OK Charlotte, > > > > What are these goodies? And the big question - what does it take to > > do the conversion (software, learning curve time, how to make reports, > > > convert forms vs. modules vs. reports, etc.) > > > > For an Access application that has ~50K lines of code, is it worth it? > > > > Thanks! > > Dan > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From erbachs at gmail.com Tue Feb 21 20:32:35 2006 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 21 Feb 2006 20:32:35 -0600 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) In-Reply-To: <006501c63752$7645a700$6501a8c0@user> References: <39cb22f30602211736wa222dd4ha3649fda1d56bb96@mail.gmail.com> <006501c63752$7645a700$6501a8c0@user> Message-ID: <39cb22f30602211832t20ca7d79le10f5893fbd07a8c@mail.gmail.com> Kath, O'Reilly has these books on 2005 versions and .NET 2.0: C# Cookbook, 2nd edition Visual Basic 2005 in a Nutshell, 3rd edition Programming ASP.NET, 3rd edition ASP.NET 2.0, A Developer's Notebook Visual C# 2005, A Developer's Notebook Programming C#, 4th edition Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/21/06, Kath Pelletti wrote: > It's interesting to see what everyone is reading........ > > I recently ordered these (still waiting). I'll post back an opinion when I've been through them: > > ASP .NET Developer's Guide by Buczek, Greg > > Visual Basic 2005 Programmer's Reference (Programmer to Programmer)" > Rod Stephens; > > My problem has been finding stuff which relates to the latest 2005 version. > > Kath > ----- Original Message ----- > From: Steve Erbach > To: Access Developers discussion and problem solving > Sent: Wednesday, February 22, 2006 12:36 PM > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) > > > Charlotte, > > Thank you very much. > > I have the Murach series of .NET books, two O'Reilly books on ASP.NET > (the Cookbook and Programming With), three early Microsoft books on > .NET, and a Wrox book on Crystal Reports. My Safari subscription has > been very useful along those lines, too. On my bookshelf I've got the > O'Reilly ADO.NET Cookbook, the Programming ASP.NET 3rd edition, and > the Programming C# 4th edition. > > Are you talking about the .NET Power Suite for Visual Basic .NET or > Visual C# .NET? I see that those are currently $2517 and $1437 > without books. Hoo boy! I'll bet they were pretty thorough! > > I see a used copy of Rick Dobson's "Programming Microsoft SQL Server > 2000 with Microsoft Visual Basic .NET" available on Amazon for > $135.99!! > > Otherwise he has a lot of Access-based books. Don't see any others on > .NET really except for one on SQL Server 2005 Express. > > F. Scott Barker appears to be the author of that 2002 book on ADO.NET > and VB.NET. > > Thanks again. > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com From darrend at nimble.com.au Tue Feb 21 22:04:49 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 22 Feb 2006 15:04:49 +1100 Subject: [AccessD] Some vba help please In-Reply-To: <000f01c63751$fad1a600$6701a8c0@HPLaptop> Message-ID: <20060222040454.ZGAF14751.omta05ps.mx.bigpond.com@DENZILLAP> Hi Joe For what it's worth I would add a totally new column make it an autonumber Call it something Like IncidentID And make it the PK for the table And use that resulting IncidentID for all things like searches, building strings etc Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 22 February 2006 12:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Some vba help please Charlotte I am trying to make a new field. Their current key system 1. Will cause duplicate values in 2010 2. Does not allow proper numerical sort now. Current system is first and last digit of year + next sequence number 19-01 19-02 20-01 20-112 20-02 And so on I want to build 2000-001 2000-002 2000-003 Etc Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 21, 2006 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Some vba help please It looks to me like you're trying to use the same NewAccidentID for all the records. Surely that isn't what you wanted is it? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, February 21, 2006 5:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some vba help please Private Sub Accident_Date_AfterUpdate() Me.txtNewAccidentID = Right(txtAccidentDate, 4) & " - " & DMax(NewAccidentID, [20_tblAccidentmaster]) End Sub I am trying to build a new key for each record in a table. Right(txtAccidentDate, 4) gets the year. " & right(DMax(NewAccidentID, [20_tblAccidentmaster]),3)+1 gets the next sequential number. 1. The code is not firing. I am getting no error or value. 2. Does this code look correct to my purpose. Joe Hecht jmhecht 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 jmhecht at earthlink.net Tue Feb 21 22:15:18 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 21 Feb 2006 20:15:18 -0800 Subject: [AccessD] Some vba help please In-Reply-To: <20060222040454.ZGAF14751.omta05ps.mx.bigpond.com@DENZILLAP> Message-ID: <000001c63766$9732f990$6701a8c0@HPLaptop> That's my plan but the client is insisting on a counter type display as mentioned. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, February 21, 2006 8:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Some vba help please Hi Joe For what it's worth I would add a totally new column make it an autonumber Call it something Like IncidentID And make it the PK for the table And use that resulting IncidentID for all things like searches, building strings etc Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 22 February 2006 12:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Some vba help please Charlotte I am trying to make a new field. Their current key system 1. Will cause duplicate values in 2010 2. Does not allow proper numerical sort now. Current system is first and last digit of year + next sequence number 19-01 19-02 20-01 20-112 20-02 And so on I want to build 2000-001 2000-002 2000-003 Etc Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 21, 2006 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Some vba help please It looks to me like you're trying to use the same NewAccidentID for all the records. Surely that isn't what you wanted is it? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, February 21, 2006 5:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some vba help please Private Sub Accident_Date_AfterUpdate() Me.txtNewAccidentID = Right(txtAccidentDate, 4) & " - " & DMax(NewAccidentID, [20_tblAccidentmaster]) End Sub I am trying to build a new key for each record in a table. Right(txtAccidentDate, 4) gets the year. " & right(DMax(NewAccidentID, [20_tblAccidentmaster]),3)+1 gets the next sequential number. 1. The code is not firing. I am getting no error or value. 2. Does this code look correct to my purpose. Joe Hecht jmhecht 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 martyconnelly at shaw.ca Tue Feb 21 22:37:06 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 21 Feb 2006 20:37:06 -0800 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news -VBAin Office 12 and beyond...) References: <000401c63730$e22e97a0$0200a8c0@danwaters> Message-ID: <43FBEA72.1040401@shaw.ca> You might want to look at tools like IronSpeed Designer for development speed. http://www.devx.com/IronSpeedVS/Door/17479 http://www.ironspeed.com/products/ It is about $2000 and meant generally for ASP.Net apps to Access or SQL backends Dan Waters wrote: >Thanks Charlotte, > >My customers typically want customized or new modules, unique to them, so it >sounds like sticking with Access is probably correct. > >I think you've improved my career choices! > >Thanks! >Dan > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >Sent: Tuesday, February 21, 2006 3:16 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news >-VBAin Office 12 and beyond...) > >I don't know where to start, Dan. It would be a total rewrite, but the >program logic could be used to build the new app. Learning curve is >steep because *everything* is an object and doing anything to it (like >populating a string that already has text) creates a NEW object with the >same name. You don't do things the same way, but it is much easier to >get at and manipulate data, to create datasets that include related >fields from another table, to create reusable code. The list is >endless. ADO.Net is GREAT, and I *liked* ADO. Building forms and user >controls is quite different from Access because you have so much control >over the objects and their behavior. Reports can be used in our >web-based app or on Windows without modifications. Do you want to bind >different parts of a form or report to different data sources? No >problem. Do you want to bind controls to the top, left, right, bottom >of the container so they move when the object resizes? No problem. Do >you want a panel to fill its allocated space and stay that way through >form resizes? No problem. Do you want custom behavior from a control? >Create your own and use it in you apps. > >I'm a fan, as you can tell, but it is also easier to sell clients on >.Net apps than on Access applications, justifiably or not. We build our >apps so that we can connect to either an Access or SQL Server backend >without changing any of the code, which makes it easy to switch a client >over when they need the added capacity of SQL Server. It takes planning >and learning and effort, so don't do it unless you are willing to commit >to those things and you are willing to use managed code. There is no >point at all in building one-off code in .Net. That's a waste of time >and energy. > >Charlotte Foust > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Tuesday, February 21, 2006 11:22 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news >-VBA in Office 12 and beyond...) > > >OK Charlotte, > >What are these goodies? And the big question - what does it take to do >the conversion (software, learning curve time, how to make reports, >convert forms vs. modules vs. reports, etc.) > >For an Access application that has ~50K lines of code, is it worth it? > >Thanks! >Dan > > >-----Original Message----- > >That "juicy VBA goodness" can't hold a candle to the .Net goodies, Ken. > >Charlotte Foust > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert >Sent: Monday, February 20, 2006 2:00 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > > > >In fact, if you look at Visual Studio 2005 Tools for Office, you'll find >it has no built-in support for Access yet... > >http://msdn.microsoft.com/office/understanding/vsto/default.aspx > >As usual, Access lags behind its Office companions in terms of the >latest development platform support. > >That means we'll be able to hang onto that juicy VBA goodness for at >least one release beyond any of the other Office components. > >:) > >-Ken > > >-----Original Message----- >From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] >Sent: Sunday, February 19, 2006 7:24 AM >To: !DBA-MAIN >Subject: [AccessD] FYI: Good news - VBA in Office 12 and beyond... > >http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190669&SiteID=1 > >Shamil > > > > -- Marty Connelly Victoria, B.C. Canada From jmhecht at earthlink.net Tue Feb 21 23:14:02 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 21 Feb 2006 21:14:02 -0800 Subject: [AccessD] DETECT WHEN FORM IS IN ADD NEW RECORD MODE Message-ID: <000001c6376e$cbf948c0$6701a8c0@HPLaptop> I need to do this. If form.add new = true then Cbo1.visible = false Cbo2.visible = true Else Cbo1.visible = true Cbo2.visible = false End if Thanks Joe Hecht jmhecht at earthlink.net From newsgrps at dalyn.co.nz Tue Feb 21 23:32:42 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 22 Feb 2006 18:32:42 +1300 Subject: [AccessD] DETECT WHEN FORM IS IN ADD NEW RECORD MODE Message-ID: <7.0.0.16.0.20060222183237.01a62f48@dalyn.co.nz> Try If Me.NewRecord = True Then ... Regards David At 22/02/2006, you wrote: >I need to do this. > > If form.add new = true then > Cbo1.visible = false > Cbo2.visible = true > Else > Cbo1.visible = true > Cbo2.visible = false > End if > >Thanks > >Joe Hecht > >jmhecht at earthlink.net From darrend at nimble.com.au Wed Feb 22 00:07:01 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 22 Feb 2006 17:07:01 +1100 Subject: [AccessD] Some vba help please In-Reply-To: <000001c63766$9732f990$6701a8c0@HPLaptop> Message-ID: <20060222060704.VVMK15112.omta03ps.mx.bigpond.com@DENZILLAP> Yep - that's OK - Just build it using the PK This air code =- not tested but you'll get the idea Eg Dim intMyNewCounter as integer intMyNewCounter = Left(SomeYearOnlyDate,1) & right(SomeYearOnlyDate,1) & "-" & Format(me.IncidentID,"000") Then put intMyNewCounter into some field in a table as you are planning Display it - if you must - on some form - no problem But in your searches search on the PK not this formatted Sequence Number HTH See ya Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 22 February 2006 3:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Some vba help please That's my plan but the client is insisting on a counter type display as mentioned. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, February 21, 2006 8:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Some vba help please Hi Joe For what it's worth I would add a totally new column make it an autonumber Call it something Like IncidentID And make it the PK for the table And use that resulting IncidentID for all things like searches, building strings etc Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 22 February 2006 12:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Some vba help please Charlotte I am trying to make a new field. Their current key system 1. Will cause duplicate values in 2010 2. Does not allow proper numerical sort now. Current system is first and last digit of year + next sequence number 19-01 19-02 20-01 20-112 20-02 And so on I want to build 2000-001 2000-002 2000-003 Etc Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 21, 2006 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Some vba help please It looks to me like you're trying to use the same NewAccidentID for all the records. Surely that isn't what you wanted is it? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, February 21, 2006 5:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some vba help please Private Sub Accident_Date_AfterUpdate() Me.txtNewAccidentID = Right(txtAccidentDate, 4) & " - " & DMax(NewAccidentID, [20_tblAccidentmaster]) End Sub I am trying to build a new key for each record in a table. Right(txtAccidentDate, 4) gets the year. " & right(DMax(NewAccidentID, [20_tblAccidentmaster]),3)+1 gets the next sequential number. 1. The code is not firing. I am getting no error or value. 2. Does this code look correct to my purpose. Joe Hecht jmhecht 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Wed Feb 22 00:11:06 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 22 Feb 2006 17:11:06 +1100 Subject: [AccessD] DETECT WHEN FORM IS IN ADD NEW RECORD MODE In-Reply-To: <000001c6376e$cbf948c0$6701a8c0@HPLaptop> Message-ID: <20060222061109.SHZZ17345.omta04ps.mx.bigpond.com@DENZILLAP> Hi Joe Like David said Test the Me.NewRecord property If you are gonna hide and disable certain things on a form - it is best You make your form's default view as: single view - IE NOT continuos Eg like If me.newrecord = true then 'hide or make visible 'or enable/disable whatever you want Else 'Not a new record 'Enable and make visible the normal stuff End if You really don't need the "else" unless you can move from record to record Using nav buttons etc. HTH Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 22 February 2006 4:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] DETECT WHEN FORM IS IN ADD NEW RECORD MODE I need to do this. If form.add new = true then Cbo1.visible = false Cbo2.visible = true Else Cbo1.visible = true Cbo2.visible = false End if Thanks Joe Hecht jmhecht at earthlink.net -- 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 22 04:41:28 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 22 Feb 2006 11:41:28 +0100 Subject: [AccessD] DETECT WHEN FORM IS IN ADD NEW RECORD MODE Message-ID: Hi Joe Use a variable: booNew = Me.NewRecord Cbo1.Visible = Not booNew Cbo2.Visible = booNew /gustav >>> jmhecht at earthlink.net 22-02-2006 06:14 >>> I need to do this. If form.add new = true then Cbo1.visible = false Cbo2.visible = true Else Cbo1.visible = true Cbo2.visible = false End if Thanks Joe Hecht jmhecht at earthlink.net From harkinsss at bellsouth.net Wed Feb 22 08:00:24 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 22 Feb 2006 09:00:24 -0500 Subject: [AccessD] Some vba help please In-Reply-To: <000001c63766$9732f990$6701a8c0@HPLaptop> Message-ID: <000001c637b8$549b1e80$a1b3d6d1@SUSANONE> You can have both. :) Give the insisting client a counter for display that doesn't really do anything. Useless, yes, except that it makes the client feel better. Susan H. That's my plan but the client is insisting on a counter type display as mentioned. Hi Joe For what it's worth I would add a totally new column make it an autonumber Call it something Like IncidentID And make it the PK for the table And use that resulting IncidentID for all things like searches, building strings etc Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 22 February 2006 12:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Some vba help please Charlotte I am trying to make a new field. Their current key system 1. Will cause duplicate values in 2010 2. Does not allow proper numerical sort now. Current system is first and last digit of year + next sequence number 19-01 19-02 20-01 20-112 20-02 And so on I want to build 2000-001 2000-002 2000-003 Etc Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, February 21, 2006 5:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Some vba help please It looks to me like you're trying to use the same NewAccidentID for all the records. Surely that isn't what you wanted is it? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, February 21, 2006 5:12 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Some vba help please Private Sub Accident_Date_AfterUpdate() Me.txtNewAccidentID = Right(txtAccidentDate, 4) & " - " & DMax(NewAccidentID, [20_tblAccidentmaster]) End Sub I am trying to build a new key for each record in a table. Right(txtAccidentDate, 4) gets the year. " & right(DMax(NewAccidentID, [20_tblAccidentmaster]),3)+1 gets the next sequential number. 1. The code is not firing. I am getting no error or value. 2. Does this code look correct to my purpose. Joe Hecht jmhecht 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.12/265 - Release Date: 2/20/2006 From cfoust at infostatsystems.com Wed Feb 22 10:42:50 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 22 Feb 2006 08:42:50 -0800 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) Message-ID: No, I'm not talking about any "power suites", and I didn't pay that much for the Dobson books. Yes Barker is the author of the other book. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Tuesday, February 21, 2006 5:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) Charlotte, Thank you very much. I have the Murach series of .NET books, two O'Reilly books on ASP.NET (the Cookbook and Programming With), three early Microsoft books on .NET, and a Wrox book on Crystal Reports. My Safari subscription has been very useful along those lines, too. On my bookshelf I've got the O'Reilly ADO.NET Cookbook, the Programming ASP.NET 3rd edition, and the Programming C# 4th edition. Are you talking about the .NET Power Suite for Visual Basic .NET or Visual C# .NET? I see that those are currently $2517 and $1437 without books. Hoo boy! I'll bet they were pretty thorough! I see a used copy of Rick Dobson's "Programming Microsoft SQL Server 2000 with Microsoft Visual Basic .NET" available on Amazon for $135.99!! Otherwise he has a lot of Access-based books. Don't see any others on .NET really except for one on SQL Server 2005 Express. F. Scott Barker appears to be the author of that 2002 book on ADO.NET and VB.NET. Thanks again. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/21/06, Charlotte Foust wrote: > My employer purchased the .Net training series from AppDev and I went > through quite a bit of it. I also have a couple of Rick Dobsons books > on VB.Net and a very useful tutorial book, Database Programming with > Visual Basic.Net and ADO.Net. It is out of date and doesn't use > Option strict, so it is a good exercise to make the examples run > anyhow in a current and more restrictive environment. ;o> > > Charlotte > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > Erbach > Sent: Tuesday, February 21, 2006 2:05 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good news > -VBAin Office 12 and beyond...) > > > Charlotte, > > Very good little summary of the features/benefits of using .NET. > > Could you tell me what resources you've used to support your learning > curve? That is, books, on-line code samples, hands-on courses, > magazines, web sites, etc. Do you have any "mentors"? People who you > think are tops when it comes to writing about .NET or coding in .NET? > > Thanks, > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > > On 2/21/06, Charlotte Foust wrote: > > I don't know where to start, Dan. It would be a total rewrite, but > > the program logic could be used to build the new app. Learning > > curve is steep because *everything* is an object and doing anything > > to it (like populating a string that already has text) creates a NEW > > object with the same name. You don't do things the same way, but it > > is much easier to get at and manipulate data, to create datasets > > that include related fields from another table, to create reusable > > code. The list is endless. ADO.Net is GREAT, and I *liked* ADO. > > Building forms and user controls is quite different from Access > > because you have so much control over the objects and their > > behavior. Reports can be used in our web-based app or on Windows > > without modifications. Do you want to > > > bind different parts of a form or report to different data sources? > > No problem. Do you want to bind controls to the top, left, right, > > bottom of the container so they move when the object resizes? No > > problem. Do you want a panel to fill its allocated space and stay > > that way through form resizes? No problem. Do you want custom > > behavior from a control? Create your own and use it in you apps. > > > > I'm a fan, as you can tell, but it is also easier to sell clients on > > .Net apps than on Access applications, justifiably or not. We build > > our apps so that we can connect to either an Access or SQL Server > > backend without changing any of the code, which makes it easy to > > switch a client over when they need the added capacity of SQL > > Server. > > > It takes planning and learning and effort, so don't do it unless you > > are willing to commit to those things and you are willing to use > > managed code. There is no point at all in building one-off code in > > .Net. That's a waste of time and energy. > > > > Charlotte Foust > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan > > Waters > > Sent: Tuesday, February 21, 2006 11:22 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > > news -VBA in Office 12 and beyond...) > > > > > > OK Charlotte, > > > > What are these goodies? And the big question - what does it take to > > do the conversion (software, learning curve time, how to make > > reports, > > > convert forms vs. modules vs. reports, etc.) > > > > For an Access application that has ~50K lines of code, is it worth > > it? > > > > Thanks! > > Dan > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Feb 22 11:12:07 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 22 Feb 2006 17:12:07 +0000 Subject: [AccessD] Create/Hide Buttons on Form? Message-ID: Hello All, I'm attempting an app related to restaurant/bar management in A2K. The dilemma I have is in design. I want them to have the ability to add new products/seats...but I'm not sure the best way to approach this. For instance...if they add a new menu item...I want a new button to appear. Should I make a predetermined number of buttons and hide them or should I program the app to create and place a new button when the new value is added ( if this, suggestions?) Thanks, Mark A. Matte From dwaters at usinternet.com Wed Feb 22 11:41:23 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 22 Feb 2006 11:41:23 -0600 Subject: [AccessD] Create/Hide Buttons on Form? In-Reply-To: <25877181.1140628997022.JavaMail.root@sniper39> Message-ID: <000901c637d7$363a8920$0200a8c0@danwaters> Hi Mark, I've done something similar on a continuous form. However, I use a textbox masquerading as a button to create the effect of a button. (Solid background, Raised, Locked, etc.) The field the button is bound to would be your menu items, and the click event behind the control initiates the next steps. The only drawback to this is that the mouse cursor turns to an 'I' cursor when it's over a textbox. Maybe someone knows a way out of that. You might be able to use a label with its caption being set to the menu item field when the form opens. Best of Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, February 22, 2006 11:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Create/Hide Buttons on Form? Hello All, I'm attempting an app related to restaurant/bar management in A2K. The dilemma I have is in design. I want them to have the ability to add new products/seats...but I'm not sure the best way to approach this. For instance...if they add a new menu item...I want a new button to appear. Should I make a predetermined number of buttons and hide them or should I program the app to create and place a new button when the new value is added ( if this, suggestions?) Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Wed Feb 22 11:47:57 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 22 Feb 2006 12:47:57 -0500 Subject: [AccessD] Create/Hide Buttons on Form? In-Reply-To: <000901c637d7$363a8920$0200a8c0@danwaters> Message-ID: <001a01c637d8$1e7e38d0$a1b3d6d1@SUSANONE> The only drawback to this is that the mouse cursor turns to an 'I' cursor when it's over a textbox. Maybe someone knows a way out of that. ========Use the MousePointer property? Not sure that'll work here, but worth looking at. Susan H. From jimdettman at earthlink.net Wed Feb 22 12:00:41 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 22 Feb 2006 13:00:41 -0500 Subject: [AccessD] Create/Hide Buttons on Form? In-Reply-To: Message-ID: Mark, You can make a very flexible interface by pre-defining the buttons and using a table driven setup. I did a POS cash register many years ago that used this approach and it worked quite well. I'll send along a copy so you can see what I did. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Wednesday, February 22, 2006 12:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] Create/Hide Buttons on Form? Hello All, I'm attempting an app related to restaurant/bar management in A2K. The dilemma I have is in design. I want them to have the ability to add new products/seats...but I'm not sure the best way to approach this. For instance...if they add a new menu item...I want a new button to appear. Should I make a predetermined number of buttons and hide them or should I program the app to create and place a new button when the new value is added ( if this, suggestions?) Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Wed Feb 22 12:41:37 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Wed, 22 Feb 2006 13:41:37 -0500 Subject: [AccessD] Create/Hide Buttons on Form? Message-ID: I use labels for my buttons, like you are using a textbox...I have used these as well. The label is for the looks, and I place an invisible button over the top of it. I use the "mouse over", "click", and "on/lost focus" events of the button to call things and/or change the looks of the label. John W Clark >>> dwaters at usinternet.com 2/22/2006 12:41 PM >>> Hi Mark, The only drawback to this is that the mouse cursor turns to an 'I' cursor when it's over a textbox. Maybe someone knows a way out of that. From erbachs at gmail.com Wed Feb 22 12:58:27 2006 From: erbachs at gmail.com (Steve Erbach) Date: Wed, 22 Feb 2006 12:58:27 -0600 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) In-Reply-To: References: Message-ID: <39cb22f30602221058p4e423c9we121d875d386b091@mail.gmail.com> Charlotte, As far as the "power suite" I was just relaying what I found on the AppDev site. Since I'm my own employer I was trying to determine which ".NET training series" you have. AppDev has 17 different .NET "courses" ranging from 2 CD's worth up to 16 CD's. The .NET Power Suites have 73 CD's for the VB.NET suite and 40 CD's for the C# suite. There's also a .NET Web Development suite with 56 CD's. MCAD and MCSD certification suites are available, too. The Dobson book I found just struck me as funny since the ONLY copy available on Amazon had that outrageous price. Maybe it's really, really good! Thanks, Charlotte. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/22/06, Charlotte Foust wrote: > No, I'm not talking about any "power suites", and I didn't pay that much > for the Dobson books. Yes Barker is the author of the other book. > > Charlotte > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Tuesday, February 21, 2006 5:37 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > news-VBAin Office 12 and beyond...) > > > Charlotte, > > Thank you very much. > > I have the Murach series of .NET books, two O'Reilly books on ASP.NET > (the Cookbook and Programming With), three early Microsoft books on > .NET, and a Wrox book on Crystal Reports. My Safari subscription has > been very useful along those lines, too. On my bookshelf I've got the > O'Reilly ADO.NET Cookbook, the Programming ASP.NET 3rd edition, and the > Programming C# 4th edition. > > Are you talking about the .NET Power Suite for Visual Basic .NET or > Visual C# .NET? I see that those are currently $2517 and $1437 without > books. Hoo boy! I'll bet they were pretty thorough! > > I see a used copy of Rick Dobson's "Programming Microsoft SQL Server > 2000 with Microsoft Visual Basic .NET" available on Amazon for $135.99!! > > Otherwise he has a lot of Access-based books. Don't see any others on > .NET really except for one on SQL Server 2005 Express. > > F. Scott Barker appears to be the author of that 2002 book on ADO.NET > and VB.NET. > > Thanks again. > > Steve Erbach From boogieloogie at gmail.com Wed Feb 22 13:18:53 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Wed, 22 Feb 2006 15:18:53 -0400 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Good news-VBAin Office 12 and beyond...) In-Reply-To: <39cb22f30602221058p4e423c9we121d875d386b091@mail.gmail.com> References: <39cb22f30602221058p4e423c9we121d875d386b091@mail.gmail.com> Message-ID: <3bf43ee90602221118j1f713899pb275a6ce0b825737@mail.gmail.com> I program for the compact framework of VB.Net. With CF2.0 and VS 2005 now out the glorious braintrust at Micro$oft has did not include support for .cdb files (.mdb's little cousin) for Windows Mobile 5.0 . Even if you attempt to use tools such has the InTheHand adoce there is no ActiveSync support for the database conversion. They say they will come up with a patch but it will not be supported and that future versions of the Mobile OS may never offer any support again. In professional terms...THIS SUCKS UP THE WAZOO! On 2/22/06, Steve Erbach wrote: > > Charlotte, > > As far as the "power suite" I was just relaying what I found on the > AppDev site. Since I'm my own employer I was trying to determine > which ".NET training series" you have. AppDev has 17 different .NET > "courses" ranging from 2 CD's worth up to 16 CD's. The .NET Power > Suites have 73 CD's for the VB.NET suite and 40 CD's for the C# suite. > There's also a .NET Web Development suite with 56 CD's. MCAD and > MCSD certification suites are available, too. > > The Dobson book I found just struck me as funny since the ONLY copy > available on Amazon had that outrageous price. Maybe it's really, > really good! > > Thanks, Charlotte. > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > On 2/22/06, Charlotte Foust wrote: > > No, I'm not talking about any "power suites", and I didn't pay that much > > for the Dobson books. Yes Barker is the author of the other book. > > > > Charlotte > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > > Sent: Tuesday, February 21, 2006 5:37 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > > news-VBAin Office 12 and beyond...) > > > > > > Charlotte, > > > > Thank you very much. > > > > I have the Murach series of .NET books, two O'Reilly books on ASP.NET > > (the Cookbook and Programming With), three early Microsoft books on > > .NET, and a Wrox book on Crystal Reports. My Safari subscription has > > been very useful along those lines, too. On my bookshelf I've got the > > O'Reilly ADO.NET Cookbook, the Programming ASP.NET 3rd edition, and the > > Programming C# 4th edition. > > > > Are you talking about the .NET Power Suite for Visual Basic .NET or > > Visual C# .NET? I see that those are currently $2517 and $1437 without > > books. Hoo boy! I'll bet they were pretty thorough! > > > > I see a used copy of Rick Dobson's "Programming Microsoft SQL Server > > 2000 with Microsoft Visual Basic .NET" available on Amazon for $135.99!! > > > > Otherwise he has a lot of Access-based books. Don't see any others on > > .NET really except for one on SQL Server 2005 Express. > > > > F. Scott Barker appears to be the author of that 2002 book on ADO.NET > > and VB.NET. > > > > Thanks again. > > > > Steve Erbach > -- > 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 22 13:32:09 2006 From: developer at ultradnt.com (Steve Conklin) Date: Wed, 22 Feb 2006 14:32:09 -0500 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Goodnews-VBAin Office 12 and beyond...) In-Reply-To: <3bf43ee90602221118j1f713899pb275a6ce0b825737@mail.gmail.com> Message-ID: <200602221932.k1MJW7T84171@ultradnt.com> So they are forcing you to go with SQL CE? Are there any other options for Db's on PPC's? Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Boogie Loogie Sent: Wednesday, February 22, 2006 2:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Goodnews-VBAin Office 12 and beyond...) I program for the compact framework of VB.Net. With CF2.0 and VS 2005 now out the glorious braintrust at Micro$oft has did not include support for .cdb files (.mdb's little cousin) for Windows Mobile 5.0 . Even if you attempt to use tools such has the InTheHand adoce there is no ActiveSync support for the database conversion. They say they will come up with a patch but it will not be supported and that future versions of the Mobile OS may never offer any support again. In professional terms...THIS SUCKS UP THE WAZOO! On 2/22/06, Steve Erbach wrote: > > Charlotte, > > As far as the "power suite" I was just relaying what I found on the > AppDev site. Since I'm my own employer I was trying to determine > which ".NET training series" you have. AppDev has 17 different .NET > "courses" ranging from 2 CD's worth up to 16 CD's. The .NET Power > Suites have 73 CD's for the VB.NET suite and 40 CD's for the C# suite. > There's also a .NET Web Development suite with 56 CD's. MCAD and MCSD > certification suites are available, too. > > The Dobson book I found just struck me as funny since the ONLY copy > available on Amazon had that outrageous price. Maybe it's really, > really good! > > Thanks, Charlotte. > > Steve Erbach > Neenah, WI > http://TheTownCrank.blogspot.com > > On 2/22/06, Charlotte Foust wrote: > > No, I'm not talking about any "power suites", and I didn't pay that > > much for the Dobson books. Yes Barker is the author of the other book. > > > > Charlotte > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > > Erbach > > Sent: Tuesday, February 21, 2006 5:37 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > > news-VBAin Office 12 and beyond...) > > > > > > Charlotte, > > > > Thank you very much. > > > > I have the Murach series of .NET books, two O'Reilly books on > > ASP.NET (the Cookbook and Programming With), three early Microsoft > > books on .NET, and a Wrox book on Crystal Reports. My Safari > > subscription has been very useful along those lines, too. On my > > bookshelf I've got the O'Reilly ADO.NET Cookbook, the Programming > > ASP.NET 3rd edition, and the Programming C# 4th edition. > > > > Are you talking about the .NET Power Suite for Visual Basic .NET or > > Visual C# .NET? I see that those are currently $2517 and $1437 > > without books. Hoo boy! I'll bet they were pretty thorough! > > > > I see a used copy of Rick Dobson's "Programming Microsoft SQL Server > > 2000 with Microsoft Visual Basic .NET" available on Amazon for $135.99!! > > > > Otherwise he has a lot of Access-based books. Don't see any others > > on .NET really except for one on SQL Server 2005 Express. > > > > F. Scott Barker appears to be the author of that 2002 book on > > ADO.NET and VB.NET. > > > > Thanks again. > > > > Steve Erbach > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 22 14:51:03 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 22 Feb 2006 12:51:03 -0800 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Goodnews-VBAin Office 12 and beyond...) Message-ID: Oh, I see. We got the 16 CD's, I think. I may have paid around that price for both of Rick's books, not just one. They should run around $60 apiece. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Wednesday, February 22, 2006 10:58 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Goodnews-VBAin Office 12 and beyond...) Charlotte, As far as the "power suite" I was just relaying what I found on the AppDev site. Since I'm my own employer I was trying to determine which ".NET training series" you have. AppDev has 17 different .NET "courses" ranging from 2 CD's worth up to 16 CD's. The .NET Power Suites have 73 CD's for the VB.NET suite and 40 CD's for the C# suite. There's also a .NET Web Development suite with 56 CD's. MCAD and MCSD certification suites are available, too. The Dobson book I found just struck me as funny since the ONLY copy available on Amazon had that outrageous price. Maybe it's really, really good! Thanks, Charlotte. Steve Erbach Neenah, WI http://TheTownCrank.blogspot.com On 2/22/06, Charlotte Foust wrote: > No, I'm not talking about any "power suites", and I didn't pay that > much for the Dobson books. Yes Barker is the author of the other > book. > > Charlotte > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > Erbach > Sent: Tuesday, February 21, 2006 5:37 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > news-VBAin Office 12 and beyond...) > > > Charlotte, > > Thank you very much. > > I have the Murach series of .NET books, two O'Reilly books on ASP.NET > (the Cookbook and Programming With), three early Microsoft books on > .NET, and a Wrox book on Crystal Reports. My Safari subscription has > been very useful along those lines, too. On my bookshelf I've got the > O'Reilly ADO.NET Cookbook, the Programming ASP.NET 3rd edition, and > the Programming C# 4th edition. > > Are you talking about the .NET Power Suite for Visual Basic .NET or > Visual C# .NET? I see that those are currently $2517 and $1437 > without books. Hoo boy! I'll bet they were pretty thorough! > > I see a used copy of Rick Dobson's "Programming Microsoft SQL Server > 2000 with Microsoft Visual Basic .NET" available on Amazon for > $135.99!! > > Otherwise he has a lot of Access-based books. Don't see any others on > .NET really except for one on SQL Server 2005 Express. > > F. Scott Barker appears to be the author of that 2002 book on ADO.NET > and VB.NET. > > Thanks again. > > Steve Erbach -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Feb 22 18:20:17 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 22 Feb 2006 18:20:17 -0600 Subject: [AccessD] Create/Hide Buttons on Form? In-Reply-To: <6930477.1140634012498.JavaMail.root@sniper19> Message-ID: <000801c6380e$ecfe6370$0200a8c0@danwaters> John, Who don't you just use the click event of the label? I've this as well and no one (but me) knows the difference. Dan -----Original Message----- I use labels for my buttons, like you are using a textbox...I have used these as well. The label is for the looks, and I place an invisible button over the top of it. I use the "mouse over", "click", and "on/lost focus" events of the button to call things and/or change the looks of the label. John W Clark >>> dwaters at usinternet.com 2/22/2006 12:41 PM >>> Hi Mark, The only drawback to this is that the mouse cursor turns to an 'I' cursor when it's over a textbox. Maybe someone knows a way out of that. -- 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 23 04:00:40 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 23 Feb 2006 11:00:40 +0100 Subject: [AccessD] Update query between access table and txt linked file does not work. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B63CB@stekelbes.ithelps.local> Hi I have a query between a Access table and a linked txt file in Access 2003. The access table contains articles but with a short article description, the linked txt file contains same articles with long descriptions. I want to update the access table so this also contains long descriptions. So I linked the 2 tabled based on ArtID but halfway the execution of the query it suddenly says "I cannot update tables that are linked with this ISAM". The thing is when setting the query to view I can change the descriptions manualy!!! And further more, I am only updating one field and that field is in the access table NOT in the linked table. I know I can workaround using code (slow!) or to import the txt file which bloats the database, but that are not solutions I want to implement unless I have to. Here's the query UPDATE DISTINCTROW PROD_MainIMPORT INNER JOIN TechData_Descriptions ON PROD_MainIMPORT.ProductCode = TechData_Descriptions.ArtID SET PROD_MainIMPORT.ProductDescription = [TechData_Descriptions.Description]; PROD_MainIMPORT = regular Access Table TechData_Descriptions= linked txt file. Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From Gustav at cactus.dk Thu Feb 23 05:11:06 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Feb 2006 12:11:06 +0100 Subject: [AccessD] Update query between access table and txt linked file does not work. Message-ID: Hi Erwin Well, one method is to use DLookup() to extract the long text from the linked textfile. Not very fast, but it works. Another - which will cause no bloat - is to import the textfile to a temp mdb file, link to that, update the data, and then delete the temp mdb. Also, I'm not sure a code solution will be that slow. Turn your update query into a select query, don't select fields from the textfile, remove DistinctRow and switch to Inconsistent Update. Open that as a recordset and the link textfile as another recordset ordered the same way as the query. Now you can loop through both recordsets updating the first from the second without Find. This is quite fast at least with DAO. /gustav >>> Erwin.Craps at ithelps.be 23-02-2006 11:00:40 >>> Hi I have a query between a Access table and a linked txt file in Access 2003. The access table contains articles but with a short article description, the linked txt file contains same articles with long descriptions. I want to update the access table so this also contains long descriptions. So I linked the 2 tabled based on ArtID but halfway the execution of the query it suddenly says "I cannot update tables that are linked with this ISAM". The thing is when setting the query to view I can change the descriptions manualy!!! And further more, I am only updating one field and that field is in the access table NOT in the linked table. I know I can workaround using code (slow!) or to import the txt file which bloats the database, but that are not solutions I want to implement unless I have to. Here's the query UPDATE DISTINCTROW PROD_MainIMPORT INNER JOIN TechData_Descriptions ON PROD_MainIMPORT.ProductCode = TechData_Descriptions.ArtID SET PROD_MainIMPORT.ProductDescription = [TechData_Descriptions.Description]; PROD_MainIMPORT = regular Access Table TechData_Descriptions= linked txt file. Erwin Craps Zaakvoerder www.ithelps.be/onsgezin From Erwin.Craps at ithelps.be Thu Feb 23 05:39:11 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 23 Feb 2006 12:39:11 +0100 Subject: [AccessD] Update query between access table and txt linked filedoes not work. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B63CD@stekelbes.ithelps.local> Thanks Gustav I managed to adapt an earlier stage query, added the second table with long descriptions, to import the articles togheter with long description. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, February 23, 2006 12:11 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Update query between access table and txt linked filedoes not work. Hi Erwin Well, one method is to use DLookup() to extract the long text from the linked textfile. Not very fast, but it works. Another - which will cause no bloat - is to import the textfile to a temp mdb file, link to that, update the data, and then delete the temp mdb. Also, I'm not sure a code solution will be that slow. Turn your update query into a select query, don't select fields from the textfile, remove DistinctRow and switch to Inconsistent Update. Open that as a recordset and the link textfile as another recordset ordered the same way as the query. Now you can loop through both recordsets updating the first from the second without Find. This is quite fast at least with DAO. /gustav >>> Erwin.Craps at ithelps.be 23-02-2006 11:00:40 >>> Hi I have a query between a Access table and a linked txt file in Access 2003. The access table contains articles but with a short article description, the linked txt file contains same articles with long descriptions. I want to update the access table so this also contains long descriptions. So I linked the 2 tabled based on ArtID but halfway the execution of the query it suddenly says "I cannot update tables that are linked with this ISAM". The thing is when setting the query to view I can change the descriptions manualy!!! And further more, I am only updating one field and that field is in the access table NOT in the linked table. I know I can workaround using code (slow!) or to import the txt file which bloats the database, but that are not solutions I want to implement unless I have to. Here's the query UPDATE DISTINCTROW PROD_MainIMPORT INNER JOIN TechData_Descriptions ON PROD_MainIMPORT.ProductCode = TechData_Descriptions.ArtID SET PROD_MainIMPORT.ProductDescription = [TechData_Descriptions.Description]; PROD_MainIMPORT = regular Access Table TechData_Descriptions= linked txt file. Erwin Craps Zaakvoerder www.ithelps.be/onsgezin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Thu Feb 23 08:44:07 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 23 Feb 2006 09:44:07 -0500 Subject: [AccessD] Create/Hide Buttons on Form? Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C4628@TTNEXCHCL2.hshhp.com> Mark, Have you thought about what happens when they've created enough new items to exceed your screen space? Is a drop-down list out of the question for this app? If this were a VB app you'd have a much easier time creating visual elements dynamically than with Access. Just some thoughts. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Wednesday, February 22, 2006 12:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] Create/Hide Buttons on Form? Hello All, I'm attempting an app related to restaurant/bar management in A2K. The dilemma I have is in design. I want them to have the ability to add new products/seats...but I'm not sure the best way to approach this. For instance...if they add a new menu item...I want a new button to appear. Should I make a predetermined number of buttons and hide them or should I program the app to create and place a new button when the new value is added ( if this, suggestions?) Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From ecritt1 at alltel.net Thu Feb 23 09:13:49 2006 From: ecritt1 at alltel.net (Penn White) Date: Thu, 23 Feb 2006 10:13:49 -0500 Subject: [AccessD] Creating a demo Access app? Message-ID: <003701c6388c$0de387f0$0302a8c0@pennp4> In the archives, I found a few references to registration codes for unlocking but I couldn't find anything aobut creating demos. I have an application in Access 2003 that I would like to send out as a demo. I'd like it to be fully functional but only allow 10 main records to be created -- everything in the application is accessed from one form - I'd like to limit the number of records that could be created with this form which is bound to one main table containing fields for relational ID's to other tables. What is the 'best practice' for doing this? Does anyone know of any articles that treat this subject? Thank you, Penn White a From Jdemarco at hudsonhealthplan.org Thu Feb 23 09:47:07 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 23 Feb 2006 10:47:07 -0500 Subject: [AccessD] Creating a demo Access app? Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> My suggestion: Compile the app to mde and code behind your "New Item" button to count the records in the main table (showing a message if the count is at 10). HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Penn White Sent: Thursday, February 23, 2006 10:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] Creating a demo Access app? In the archives, I found a few references to registration codes for unlocking but I couldn't find anything aobut creating demos. I have an application in Access 2003 that I would like to send out as a demo. I'd like it to be fully functional but only allow 10 main records to be created -- everything in the application is accessed from one form - I'd like to limit the number of records that could be created with this form which is bound to one main table containing fields for relational ID's to other tables. What is the 'best practice' for doing this? Does anyone know of any articles that treat this subject? Thank you, Penn White a -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Jdemarco at hudsonhealthplan.org Thu Feb 23 10:47:27 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 23 Feb 2006 11:47:27 -0500 Subject: [AccessD] Access 2000 Runtime Error (X-posted) Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C4634@TTNEXCHCL2.hshhp.com> X-posted AccessD: dba-VB Lists, We inherited (and distribute) an Access 2K app that uses the Access runtime. One of our user sites (not affiliated with our company) is having a problem running VB apps on machines where this app is installed. Here's a copy of what I got from their IT resource: "...happens when an application is started. A window opens saying somthing like "Loading Access 2000 Runtime" and displaying a Windows progress bar. Then a "File Not Found" message window opens. If you cancel out of the window, another "File Not Found" windows opens, etc.. If you cancel out of these windows about 3 or 4 times, the program will start. They're using Jet 3.51 for "ADO and DAO data access" (quoting their IT resource). Is anyone familiar with this? I searched M$KB but didn't find anything. TIA Jim DeMarco Director of Application Development Hudson Health Plan *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From ecritt1 at alltel.net Thu Feb 23 11:00:26 2006 From: ecritt1 at alltel.net (Penn White) Date: Thu, 23 Feb 2006 12:00:26 -0500 Subject: [AccessD] Creating a demo Access app? References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> Message-ID: <001501c6389a$a511bd00$0302a8c0@pennp4> Jim, That sounds like a good idea. I'll try it out. Thanks, Penn > My suggestion: Compile the app to mde and code behind your "New Item" > button to count the records in the main table (showing a message if the > count is at 10). From Gustav at cactus.dk Thu Feb 23 11:28:13 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 23 Feb 2006 18:28:13 +0100 Subject: [AccessD] Access 2000 Runtime Error (X-posted) Message-ID: Hi Jim Could it be the old VBE6.dll issue: Take a look at http://support.microsoft.com/default.aspx?scid=kb;en-us;Q304548 This is a typical error when you do not have O2k SR-3 and you have a 2002 or later app installed on the same machine. The VBE6.DLL for 2002 breaks the 2000 Access executable. Charlotte Foust >>> Jdemarco at hudsonhealthplan.org 23-02-2006 17:47:27 >>> X-posted AccessD: dba-VB Lists, We inherited (and distribute) an Access 2K app that uses the Access runtime. One of our user sites (not affiliated with our company) is having a problem running VB apps on machines where this app is installed. Here's a copy of what I got from their IT resource: "...happens when an application is started. A window opens saying somthing like "Loading Access 2000 Runtime" and displaying a Windows progress bar. Then a "File Not Found" message window opens. If you cancel out of the window, another "File Not Found" windows opens, etc.. If you cancel out of these windows about 3 or 4 times, the program will start. They're using Jet 3.51 for "ADO and DAO data access" (quoting their IT resource). Is anyone familiar with this? I searched M$KB but didn't find anything. TIA Jim DeMarco Director of Application Development Hudson Health Plan From markamatte at hotmail.com Thu Feb 23 11:52:30 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 23 Feb 2006 17:52:30 +0000 Subject: [AccessD] Create/Hide Buttons on Form? In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74016C4628@TTNEXCHCL2.hshhp.com> Message-ID: Jim, Yes...I have thought of that...but not as worried yet because I still didn't know if I could, or how to create the buttons programatically. Drop downs are out of the question...but maybe I should move to VB. Thanks, Mark A. Matte >From: "Jim DeMarco" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem solving" > >Subject: Re: [AccessD] Create/Hide Buttons on Form? >Date: Thu, 23 Feb 2006 09:44:07 -0500 > >Mark, > >Have you thought about what happens when they've created enough new items >to exceed your screen space? Is a drop-down list out of the question for >this app? If this were a VB app you'd have a much easier time creating >visual elements dynamically than with Access. > >Just some thoughts. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, February 22, 2006 12:12 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Create/Hide Buttons on Form? > > >Hello All, > >I'm attempting an app related to restaurant/bar management in A2K. The >dilemma I have is in design. I want them to have the ability to add new >products/seats...but I'm not sure the best way to approach this. For >instance...if they add a new menu item...I want a new button to appear. >Should I make a predetermined number of buttons and hide them or should I >program the app to create and place a new button when the new value is >added >( if this, suggestions?) > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > > > >*********************************************************************************** >"This electronic message is intended to be for the use only of the named >recipient, and may contain information from Hudson Health Plan (HHP) that >is confidential or privileged. If you are not the intended recipient, you >are hereby notified that any disclosure, copying, distribution or use of >the contents of this message is strictly prohibited. If you have received >this message in error or are not the named recipient, please notify us >immediately, either by contacting the sender at the electronic mail address >noted above or calling HHP at (914) 631-1611. If you are not the intended >recipient, please do not forward this email to anyone, and delete and >destroy all copies of this message. Thank You". >*********************************************************************************** > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Thu Feb 23 12:24:31 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 23 Feb 2006 13:24:31 -0500 Subject: [AccessD] Access 2000 Runtime Error (X-posted) Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C463A@TTNEXCHCL2.hshhp.com> Thanks Gustav. It looks like they may have changed the link to that article. I get this article when I click the link you attached: "You receive an error message when you try to view the code in a module, compile a database, create an MDE file or execute code in Access 2000" I think they're running WinXP as well but I'm waiting for an answer on that. I'm the meantime I think I need to find a better search phrase. I'm coming up blank (irrelevant) on Google and kbalertz.com. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Thursday, February 23, 2006 12:28 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) Hi Jim Could it be the old VBE6.dll issue: Take a look at http://support.microsoft.com/default.aspx?scid=kb;en-us;Q304548 This is a typical error when you do not have O2k SR-3 and you have a 2002 or later app installed on the same machine. The VBE6.DLL for 2002 breaks the 2000 Access executable. Charlotte Foust >>> Jdemarco at hudsonhealthplan.org 23-02-2006 17:47:27 >>> X-posted AccessD: dba-VB Lists, We inherited (and distribute) an Access 2K app that uses the Access runtime. One of our user sites (not affiliated with our company) is having a problem running VB apps on machines where this app is installed. Here's a copy of what I got from their IT resource: "...happens when an application is started. A window opens saying somthing like "Loading Access 2000 Runtime" and displaying a Windows progress bar. Then a "File Not Found" message window opens. If you cancel out of the window, another "File Not Found" windows opens, etc.. If you cancel out of these windows about 3 or 4 times, the program will start. They're using Jet 3.51 for "ADO and DAO data access" (quoting their IT resource). Is anyone familiar with this? I searched M$KB but didn't find anything. TIA Jim DeMarco Director of Application Development Hudson Health Plan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From reuben at gfconsultants.com Thu Feb 23 12:12:41 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 23 Feb 2006 13:12:41 -0500 Subject: [AccessD] Copy a file Message-ID: Anyone have a system setup to copy/move files? I want to give a client a small app that she can open, click a button and it will copy the specified file to another specified folder elsewhere on the network. Reuben Cummings GFC, LLC 812.523.1017 From dwaters at usinternet.com Thu Feb 23 12:48:38 2006 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 23 Feb 2006 12:48:38 -0600 Subject: [AccessD] Copy a file In-Reply-To: <4459087.1140719865246.JavaMail.root@sniper39> Message-ID: <000201c638a9$c2463f90$0200a8c0@danwaters> Reuben, Look at File System Objects. It's a good file manipulation method. Dan -----Original Message----- Subject: [AccessD] Copy a file Anyone have a system setup to copy/move files? I want to give a client a small app that she can open, click a button and it will copy the specified file to another specified folder elsewhere on the network. Reuben Cummings GFC, LLC 812.523.1017 From Jdemarco at hudsonhealthplan.org Thu Feb 23 12:54:41 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 23 Feb 2006 13:54:41 -0500 Subject: [AccessD] Create/Hide Buttons on Form? Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C463C@TTNEXCHCL2.hshhp.com> Hmm. Just to be clear I was referring to VB6. I'm not sure how .NET handles that scenario but surely it can be done there as well. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte Sent: Thursday, February 23, 2006 12:52 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Create/Hide Buttons on Form? Jim, Yes...I have thought of that...but not as worried yet because I still didn't know if I could, or how to create the buttons programatically. Drop downs are out of the question...but maybe I should move to VB. Thanks, Mark A. Matte >From: "Jim DeMarco" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem solving" > >Subject: Re: [AccessD] Create/Hide Buttons on Form? >Date: Thu, 23 Feb 2006 09:44:07 -0500 > >Mark, > >Have you thought about what happens when they've created enough new items >to exceed your screen space? Is a drop-down list out of the question for >this app? If this were a VB app you'd have a much easier time creating >visual elements dynamically than with Access. > >Just some thoughts. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, February 22, 2006 12:12 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Create/Hide Buttons on Form? > > >Hello All, > >I'm attempting an app related to restaurant/bar management in A2K. The >dilemma I have is in design. I want them to have the ability to add new >products/seats...but I'm not sure the best way to approach this. For >instance...if they add a new menu item...I want a new button to appear. >Should I make a predetermined number of buttons and hide them or should I >program the app to create and place a new button when the new value is >added >( if this, suggestions?) > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > > > >*********************************************************************************** >"This electronic message is intended to be for the use only of the named >recipient, and may contain information from Hudson Health Plan (HHP) that >is confidential or privileged. If you are not the intended recipient, you >are hereby notified that any disclosure, copying, distribution or use of >the contents of this message is strictly prohibited. If you have received >this message in error or are not the named recipient, please notify us >immediately, either by contacting the sender at the electronic mail address >noted above or calling HHP at (914) 631-1611. If you are not the intended >recipient, please do not forward this email to anyone, and delete and >destroy all copies of this message. Thank You". >*********************************************************************************** > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/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 electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From bill_Patten at earthlink.net Thu Feb 23 12:55:49 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Thu, 23 Feb 2006 10:55:49 -0800 Subject: [AccessD] Copy a file References: Message-ID: <002601c638aa$c3ec0ae0$6501a8c0@BPCS> Here is routine that I use. Declare Function apiCopyFile Lib "kernel32" Alias "CopyFileA" _ (ByVal lpExistingFileName As String, _ ByVal lpNewFileName As String, _ ByVal bFailIfExists As Long) As Long Declare Function SetFileAttributes Lib "kernel32" Alias "SetFileAttributesA" _ (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long Function BPCopyFile(SourceFile As String, DestFile As String, Optional intReadOnly As Integer) As Boolean On Error GoTo Err_BPCopyFile '---------------------------------------------------------------------------- ' Purpose: Copy a file on disk from one location to another and on request change to or from readonly ' BPcopyfile "c:\dog.oub, c:\cat.mdb , optional 1 = readonly 2 = not readonly ' though this function will copy any files (open ones too) it was designed to copy a ' file from a CD, rename it and then make sure it is not read only ' By: Bill Patten, BPCS ' Date: 9/16/2003 8:41:58 PM ' Mods: '---------------------------------------------------------------------------- Const FILE_ATTRIBUTE_NORMAL = 128 Const FILE_ATTRIBUTE_READONLY = 1 Dim Result As Long BPCopyFile = False 'Assume it wont work If Dir(DestFile) <> "" Then ' desination file exist so kill it 'Just in case it is readonly and would not delete Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) Kill (DestFile) End If If Dir(SourceFile) = "" Then MsgBox Chr(34) & SourceFile & Chr(34) & _ " is not valid file name." Exit Function Else Result = apiCopyFile(SourceFile, DestFile, False) End If If Not IsNull(intReadOnly) Then Select Case intReadOnly Case 1 'Make file read only Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_READONLY) Case 2 'remove readonly Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) End Select End If BPCopyFile = True Exit_BPCopyFile: Exit Function Err_BPCopyFile: MsgBox "Error " & Err.Number & ": " & Err.Description & " In Sub CopyFile In Module modFileCopy" & vbCrLf Resume Exit_BPCopyFile End Function ----- Original Message ----- From: "Reuben Cummings" To: "AccessD" Sent: Thursday, February 23, 2006 10:12 AM Subject: [AccessD] Copy a file Anyone have a system setup to copy/move files? I want to give a client a small app that she can open, click a button and it will copy the specified file to another specified folder elsewhere on the network. Reuben Cummings GFC, LLC 812.523.1017 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Feb 23 13:33:35 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 23 Feb 2006 11:33:35 -0800 Subject: [AccessD] Access 2000 Runtime Error (X-posted) References: <08F823FD83787D4BA0B99CA580AD3C74016C463A@TTNEXCHCL2.hshhp.com> Message-ID: <43FE0E0F.70702@shaw.ca> Have client look at this file in windows explorer c:\program files\common files\microsoft shared\vba\vba6\vbe6.dll Right click on file select properties then selectr version tab and then file version For Office 2003 I have version number for vbe6.dll 6.04.9972 If you have equal to or lower than 6.3.91.8 then it is the faulty Office 2000 vbe6.dll And needs the Office 2000 SP3 installed Jet or DAO 3.51 in msjet35.dll is only installed by Office 97 or MDAC 2.1 (hasn't been downloadable for 2 years from MS) Access 2000 uses DAO 3.6 msjet40.dll They maybe running old VB6 programs calling DAO 3.51 I have Office 97 and 2003 installed C:\WINDOWS\system32\msjet35.dll My version is 3.51.3328.0 C:\WINDOWS\system32\msjet40.dll version 4.00.8618.0 I have heard of certain DAO 3.6 installs removing DAO 3.51 so you might want to check they are both there Most DAO calls that ran against 3.51 will run against DAO 3.6 except for security fixes. Jim DeMarco wrote: >Thanks Gustav. > >It looks like they may have changed the link to that article. I get this article when I click the link you attached: > >"You receive an error message when you try to view the code in a module, compile a database, create an MDE file or execute code in Access 2000" > >I think they're running WinXP as well but I'm waiting for an answer on that. > >I'm the meantime I think I need to find a better search phrase. I'm coming up blank (irrelevant) on Google and kbalertz.com. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >Sent: Thursday, February 23, 2006 12:28 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) > > >Hi Jim > >Could it be the old VBE6.dll issue: > > > >Take a look at >http://support.microsoft.com/default.aspx?scid=kb;en-us;Q304548 > >This is a typical error when you do not have O2k SR-3 and you have a 2002 or later app installed on the same machine. The VBE6.DLL for 2002 breaks the 2000 Access executable. > >Charlotte Foust > > > > > >>>>Jdemarco at hudsonhealthplan.org 23-02-2006 17:47:27 >>> >>>> >>>> >X-posted AccessD: dba-VB > >Lists, > >We inherited (and distribute) an Access 2K app that uses the Access runtime. One of our user sites (not affiliated with our company) is having a problem running VB apps on machines where this app is installed. Here's a copy of what I got from their IT resource: > > >"...happens when an application is started. >A window opens saying somthing like "Loading Access 2000 Runtime" and displaying a Windows progress bar. >Then a "File Not Found" message window opens. If you cancel out of the window, another "File Not Found" windows opens, etc.. >If you cancel out of these windows about 3 or 4 times, the program will start. > > >They're using Jet 3.51 for "ADO and DAO data access" (quoting their IT resource). Is anyone familiar with this? I searched M$KB but didn't find anything. > >TIA > >Jim DeMarco >Director of Application Development >Hudson Health Plan > > > -- Marty Connelly Victoria, B.C. Canada From reuben at gfconsultants.com Thu Feb 23 14:01:39 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 23 Feb 2006 15:01:39 -0500 Subject: [AccessD] Copy a file In-Reply-To: <002601c638aa$c3ec0ae0$6501a8c0@BPCS> Message-ID: Thanks, guys. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bill Patten > Sent: Thursday, February 23, 2006 1:56 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Copy a file > > > Here is routine that I use. > Declare Function apiCopyFile Lib "kernel32" Alias "CopyFileA" _ > (ByVal lpExistingFileName As String, _ > ByVal lpNewFileName As String, _ > ByVal bFailIfExists As Long) As Long > Declare Function SetFileAttributes Lib "kernel32" Alias > "SetFileAttributesA" _ > (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long > > Function BPCopyFile(SourceFile As String, DestFile As String, Optional > intReadOnly As Integer) As Boolean > On Error GoTo Err_BPCopyFile > '----------------------------------------------------------------- > ----------- > ' Purpose: Copy a file on disk from one location to another and > on request > change to or from readonly > ' BPcopyfile "c:\dog.oub, c:\cat.mdb , optional 1 = readonly 2 = not > readonly > ' though this function will copy any files (open ones too) it > was designed > to copy a > ' file from a CD, rename it and then make sure it is not read only > ' By: Bill Patten, BPCS > ' Date: 9/16/2003 8:41:58 PM > ' Mods: > '----------------------------------------------------------------- > ----------- > Const FILE_ATTRIBUTE_NORMAL = 128 > Const FILE_ATTRIBUTE_READONLY = 1 > Dim Result As Long > BPCopyFile = False 'Assume it wont work > If Dir(DestFile) <> "" Then ' desination file exist so kill it > 'Just in case it is readonly and would not delete > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > Kill (DestFile) > End If > > If Dir(SourceFile) = "" Then > MsgBox Chr(34) & SourceFile & Chr(34) & _ > " is not valid file name." > Exit Function > Else > Result = apiCopyFile(SourceFile, DestFile, False) > End If > If Not IsNull(intReadOnly) Then > Select Case intReadOnly > Case 1 'Make file read only > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_READONLY) > Case 2 'remove readonly > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > End Select > End If > > BPCopyFile = True > Exit_BPCopyFile: > Exit Function > > Err_BPCopyFile: > MsgBox "Error " & Err.Number & ": " & Err.Description & " In > Sub CopyFile > In Module modFileCopy" & vbCrLf > Resume Exit_BPCopyFile > > End Function > > > > > ----- Original Message ----- > From: "Reuben Cummings" > To: "AccessD" > Sent: Thursday, February 23, 2006 10:12 AM > Subject: [AccessD] Copy a file > > > Anyone have a system setup to copy/move files? > > I want to give a client a small app that she can open, click a > button and it > will copy the specified file to another specified folder elsewhere on the > network. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 23 16:16:05 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Feb 2006 14:16:05 -0800 Subject: [AccessD] Create/Hide Buttons on Form? Message-ID: Mark, You can create buttons programmatically, but binding code to them requires directly manipulating the form's code module, which is a pain. No control arrays in Access, unfortunately. You can create the buttons ahead of time and show or hide them and populate their captions based on a table, though. Why not use a table driven approach a la the switchboard manager. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, February 23, 2006 9:52 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Create/Hide Buttons on Form? Jim, Yes...I have thought of that...but not as worried yet because I still didn't know if I could, or how to create the buttons programatically. Drop downs are out of the question...but maybe I should move to VB. Thanks, Mark A. Matte >From: "Jim DeMarco" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem solving" > >Subject: Re: [AccessD] Create/Hide Buttons on Form? >Date: Thu, 23 Feb 2006 09:44:07 -0500 > >Mark, > >Have you thought about what happens when they've created enough new >items >to exceed your screen space? Is a drop-down list out of the question for >this app? If this were a VB app you'd have a much easier time creating >visual elements dynamically than with Access. > >Just some thoughts. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >Sent: Wednesday, February 22, 2006 12:12 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Create/Hide Buttons on Form? > > >Hello All, > >I'm attempting an app related to restaurant/bar management in A2K. The >dilemma I have is in design. I want them to have the ability to add >new products/seats...but I'm not sure the best way to approach this. >For instance...if they add a new menu item...I want a new button to >appear. Should I make a predetermined number of buttons and hide them >or should I program the app to create and place a new button when the >new value is added ( if this, suggestions?) > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > > > >*********************************************************************** >************ >"This electronic message is intended to be for the use only of the named >recipient, and may contain information from Hudson Health Plan (HHP) that >is confidential or privileged. If you are not the intended recipient, you >are hereby notified that any disclosure, copying, distribution or use of >the contents of this message is strictly prohibited. If you have received >this message in error or are not the named recipient, please notify us >immediately, either by contacting the sender at the electronic mail address >noted above or calling HHP at (914) 631-1611. If you are not the intended >recipient, please do not forward this email to anyone, and delete and >destroy all copies of this message. Thank You". >*********************************************************************** ************ > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Thu Feb 23 16:28:53 2006 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 23 Feb 2006 15:28:53 -0700 Subject: [AccessD] Create/Hide Buttons on Form? In-Reply-To: Message-ID: You can use a function in the property sheet so you should be able to hook up events by specifying a function in the property sheet. To operate on the specific command button, you can pass it the Active Control: ie, set the property to =fnProcedure(Screen.ActiveControl) You can parse the control name from the object passed and respond appropriately. Or presumably you can hook up controls 'WithEvents'. I haven't been following this thread, but it seems to me you could put a button on a continous form and operate on the current record textbox or index value. Add a subRecord for each category? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Charlotte Foust" > >Mark, > >You can create buttons programmatically, but binding code to them >requires directly manipulating the form's code module, which is a pain. >No control arrays in Access, unfortunately. You can create the buttons >ahead of time and show or hide them and populate their captions based on >a table, though. Why not use a table driven approach a la the >switchboard manager. > >Charlotte > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Thursday, February 23, 2006 9:52 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Create/Hide Buttons on Form? > > >Jim, > >Yes...I have thought of that...but not as worried yet because I still >didn't >know if I could, or how to create the buttons programatically. Drop >downs >are out of the question...but maybe I should move to VB. > >Thanks, > >Mark A. Matte > > > > > >From: "Jim DeMarco" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem solving" > > > >Subject: Re: [AccessD] Create/Hide Buttons on Form? > >Date: Thu, 23 Feb 2006 09:44:07 -0500 > > > >Mark, > > > >Have you thought about what happens when they've created enough new > >items > >to exceed your screen space? Is a drop-down list out of the question >for > >this app? If this were a VB app you'd have a much easier time creating > > >visual elements dynamically than with Access. > > > >Just some thoughts. > > > >Jim DeMarco > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > >Sent: Wednesday, February 22, 2006 12:12 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] Create/Hide Buttons on Form? > > > > > >Hello All, > > > >I'm attempting an app related to restaurant/bar management in A2K. The > > >dilemma I have is in design. I want them to have the ability to add > >new products/seats...but I'm not sure the best way to approach this. > >For instance...if they add a new menu item...I want a new button to > >appear. Should I make a predetermined number of buttons and hide them > >or should I program the app to create and place a new button when the > >new value is added ( if this, suggestions?) > > > >Thanks, > > > >Mark A. Matte From jwelz at hotmail.com Thu Feb 23 16:57:35 2006 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 23 Feb 2006 15:57:35 -0700 Subject: [AccessD] Copy a file In-Reply-To: <002601c638aa$c3ec0ae0$6501a8c0@BPCS> Message-ID: Bill: The API procedure you quote includes an 'Overwrite' parameter: ByVal bFailIfExists As Long Your example is set to overwrite a file existing at the destination by setting this parameter false. Presumably a read only file shouldn't overwrite, but if it does, the call to Kill is unnecessary if it is not readonly or you've removed the readonly attribute. I occasionally find it helpful to open the file exclusive, or attempt to rename the target file to ensure no one is working with it when I overwrite an existing file. In some situations this is a mandatory precaution. I usually prefer to Recycle a file existing at the target prior to overwrite: Public Function Recycle(strFilePathAndFileName As String) As Boolean Dim Killed As FileOpStruct Private Type FileOpStruct hwnd As Long wFunc As Long pFrom As String pTo As String fFlags As Integer fAborted As Boolean hNameMaps As Long sProgressTitle As String End Type Public Function Recycle(strFilePathAndFileName As String) As Boolean Dim Killed As FileOpStruct If Len(Dir(strFilePathAndFileName)) Then With Killed .wFunc = 3 .pFrom = strFilePathAndFileName & vbNullChar .fFlags = 80 '64 is adequate End With Recycle = SHFileOperationA(Killed) = 0 End If End Function In the case of server files, my environment experience is that there is no ready access to the recycle bin. In that case, I have found it beneficial to move the file to a local drive and recycle there. You'd be surprised how many times that preempted a call to helpdesk for a restore from tape. That was in the days before Terminal Server. Nowadays, I find it helpful to prepend a date prefix to the replaced or 'overwritten' file name. Depending on the circumstances, it is frequently useful to check for the existence of a file at the destination and prompt the user. Based on this input, you may set the 'overwrite' parameter in the caller. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Bill Patten" > >Here is routine that I use. >Declare Function apiCopyFile Lib "kernel32" Alias "CopyFileA" _ > (ByVal lpExistingFileName As String, _ > ByVal lpNewFileName As String, _ > ByVal bFailIfExists As Long) As Long > Declare Function SetFileAttributes Lib "kernel32" Alias >"SetFileAttributesA" _ > (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long > >Function BPCopyFile(SourceFile As String, DestFile As String, Optional >intReadOnly As Integer) As Boolean >On Error GoTo Err_BPCopyFile >'---------------------------------------------------------------------------- >' Purpose: Copy a file on disk from one location to another and on request >change to or from readonly >' BPcopyfile "c:\dog.oub, c:\cat.mdb , optional 1 = readonly 2 = not >readonly >' though this function will copy any files (open ones too) it was >designed >to copy a >' file from a CD, rename it and then make sure it is not read only >' By: Bill Patten, BPCS >' Date: 9/16/2003 8:41:58 PM >' Mods: >'---------------------------------------------------------------------------- > Const FILE_ATTRIBUTE_NORMAL = 128 > Const FILE_ATTRIBUTE_READONLY = 1 > Dim Result As Long > BPCopyFile = False 'Assume it wont work > If Dir(DestFile) <> "" Then ' desination file exist so kill it > 'Just in case it is readonly and would not delete > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > Kill (DestFile) > End If > > If Dir(SourceFile) = "" Then > MsgBox Chr(34) & SourceFile & Chr(34) & _ > " is not valid file name." > Exit Function > Else > Result = apiCopyFile(SourceFile, DestFile, False) > End If > If Not IsNull(intReadOnly) Then > Select Case intReadOnly > Case 1 'Make file read only > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_READONLY) > Case 2 'remove readonly > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > End Select > End If > >BPCopyFile = True >Exit_BPCopyFile: > Exit Function > >Err_BPCopyFile: > MsgBox "Error " & Err.Number & ": " & Err.Description & " In Sub >CopyFile >In Module modFileCopy" & vbCrLf > Resume Exit_BPCopyFile > >End Function > > > > >----- Original Message ----- >From: "Reuben Cummings" >To: "AccessD" >Sent: Thursday, February 23, 2006 10:12 AM >Subject: [AccessD] Copy a file > > >Anyone have a system setup to copy/move files? > >I want to give a client a small app that she can open, click a button and >it >will copy the specified file to another specified folder elsewhere on the >network. > >Reuben Cummings >GFC, LLC >812.523.1017 From cfoust at infostatsystems.com Thu Feb 23 17:25:32 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 23 Feb 2006 15:25:32 -0800 Subject: [AccessD] Create/Hide Buttons on Form? Message-ID: True, but that limits your handling in the extreme. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz Sent: Thursday, February 23, 2006 2:29 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Create/Hide Buttons on Form? You can use a function in the property sheet so you should be able to hook up events by specifying a function in the property sheet. To operate on the specific command button, you can pass it the Active Control: ie, set the property to =fnProcedure(Screen.ActiveControl) You can parse the control name from the object passed and respond appropriately. Or presumably you can hook up controls 'WithEvents'. I haven't been following this thread, but it seems to me you could put a button on a continous form and operate on the current record textbox or index value. Add a subRecord for each category? Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Charlotte Foust" > >Mark, > >You can create buttons programmatically, but binding code to them >requires directly manipulating the form's code module, which is a pain. >No control arrays in Access, unfortunately. You can create the buttons >ahead of time and show or hide them and populate their captions based >on a table, though. Why not use a table driven approach a la the >switchboard manager. > >Charlotte > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Thursday, February 23, 2006 9:52 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Create/Hide Buttons on Form? > > >Jim, > >Yes...I have thought of that...but not as worried yet because I still >didn't know if I could, or how to create the buttons programatically. >Drop downs >are out of the question...but maybe I should move to VB. > >Thanks, > >Mark A. Matte > > > > > >From: "Jim DeMarco" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem solving" > > > >Subject: Re: [AccessD] Create/Hide Buttons on Form? > >Date: Thu, 23 Feb 2006 09:44:07 -0500 > > > >Mark, > > > >Have you thought about what happens when they've created enough new > >items to exceed your screen space? Is a drop-down list out of the > >question >for > >this app? If this were a VB app you'd have a much easier time > >creating > > >visual elements dynamically than with Access. > > > >Just some thoughts. > > > >Jim DeMarco > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A > >Matte > >Sent: Wednesday, February 22, 2006 12:12 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] Create/Hide Buttons on Form? > > > > > >Hello All, > > > >I'm attempting an app related to restaurant/bar management in A2K. > >The > > >dilemma I have is in design. I want them to have the ability to add > >new products/seats...but I'm not sure the best way to approach this. > >For instance...if they add a new menu item...I want a new button to > >appear. Should I make a predetermined number of buttons and hide them > >or should I program the app to create and place a new button when the > >new value is added ( if this, suggestions?) > > > >Thanks, > > > >Mark A. Matte From bill_Patten at earthlink.net Thu Feb 23 17:58:33 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Thu, 23 Feb 2006 15:58:33 -0800 Subject: [AccessD] Copy a file References: Message-ID: <005f01c638d5$0e51a8e0$6501a8c0@BPCS> Thanks J?rgen, Good suggestion, I'll play with your recycle function. Bill ----- Original Message ----- From: "Jurgen Welz" To: Sent: Thursday, February 23, 2006 2:57 PM Subject: Re: [AccessD] Copy a file Bill: The API procedure you quote includes an 'Overwrite' parameter: ByVal bFailIfExists As Long Your example is set to overwrite a file existing at the destination by setting this parameter false. Presumably a read only file shouldn't overwrite, but if it does, the call to Kill is unnecessary if it is not readonly or you've removed the readonly attribute. I occasionally find it helpful to open the file exclusive, or attempt to rename the target file to ensure no one is working with it when I overwrite an existing file. In some situations this is a mandatory precaution. I usually prefer to Recycle a file existing at the target prior to overwrite: Public Function Recycle(strFilePathAndFileName As String) As Boolean Dim Killed As FileOpStruct Private Type FileOpStruct hwnd As Long wFunc As Long pFrom As String pTo As String fFlags As Integer fAborted As Boolean hNameMaps As Long sProgressTitle As String End Type Public Function Recycle(strFilePathAndFileName As String) As Boolean Dim Killed As FileOpStruct If Len(Dir(strFilePathAndFileName)) Then With Killed .wFunc = 3 .pFrom = strFilePathAndFileName & vbNullChar .fFlags = 80 '64 is adequate End With Recycle = SHFileOperationA(Killed) = 0 End If End Function In the case of server files, my environment experience is that there is no ready access to the recycle bin. In that case, I have found it beneficial to move the file to a local drive and recycle there. You'd be surprised how many times that preempted a call to helpdesk for a restore from tape. That was in the days before Terminal Server. Nowadays, I find it helpful to prepend a date prefix to the replaced or 'overwritten' file name. Depending on the circumstances, it is frequently useful to check for the existence of a file at the destination and prompt the user. Based on this input, you may set the 'overwrite' parameter in the caller. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Bill Patten" > >Here is routine that I use. >Declare Function apiCopyFile Lib "kernel32" Alias "CopyFileA" _ > (ByVal lpExistingFileName As String, _ > ByVal lpNewFileName As String, _ > ByVal bFailIfExists As Long) As Long > Declare Function SetFileAttributes Lib "kernel32" Alias >"SetFileAttributesA" _ > (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long > >Function BPCopyFile(SourceFile As String, DestFile As String, Optional >intReadOnly As Integer) As Boolean >On Error GoTo Err_BPCopyFile >'---------------------------------------------------------------------------- >' Purpose: Copy a file on disk from one location to another and on request >change to or from readonly >' BPcopyfile "c:\dog.oub, c:\cat.mdb , optional 1 = readonly 2 = not >readonly >' though this function will copy any files (open ones too) it was >designed >to copy a >' file from a CD, rename it and then make sure it is not read only >' By: Bill Patten, BPCS >' Date: 9/16/2003 8:41:58 PM >' Mods: >'---------------------------------------------------------------------------- > Const FILE_ATTRIBUTE_NORMAL = 128 > Const FILE_ATTRIBUTE_READONLY = 1 > Dim Result As Long > BPCopyFile = False 'Assume it wont work > If Dir(DestFile) <> "" Then ' desination file exist so kill it > 'Just in case it is readonly and would not delete > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > Kill (DestFile) > End If > > If Dir(SourceFile) = "" Then > MsgBox Chr(34) & SourceFile & Chr(34) & _ > " is not valid file name." > Exit Function > Else > Result = apiCopyFile(SourceFile, DestFile, False) > End If > If Not IsNull(intReadOnly) Then > Select Case intReadOnly > Case 1 'Make file read only > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_READONLY) > Case 2 'remove readonly > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > End Select > End If > >BPCopyFile = True >Exit_BPCopyFile: > Exit Function > >Err_BPCopyFile: > MsgBox "Error " & Err.Number & ": " & Err.Description & " In Sub >CopyFile >In Module modFileCopy" & vbCrLf > Resume Exit_BPCopyFile > >End Function > > > > >----- Original Message ----- >From: "Reuben Cummings" >To: "AccessD" >Sent: Thursday, February 23, 2006 10:12 AM >Subject: [AccessD] Copy a file > > >Anyone have a system setup to copy/move files? > >I want to give a client a small app that she can open, click a button and >it >will copy the specified file to another specified folder elsewhere on the >network. > >Reuben Cummings >GFC, LLC >812.523.1017 -------------------------------------------------------------------------------- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From boogieloogie at gmail.com Thu Feb 23 18:09:06 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Thu, 23 Feb 2006 20:09:06 -0400 Subject: [AccessD] Convert Access App to VB.Net (was FYI: Goodnews-VBAin Office 12 and beyond...) In-Reply-To: <200602221932.k1MJW7T84171@ultradnt.com> References: <3bf43ee90602221118j1f713899pb275a6ce0b825737@mail.gmail.com> <200602221932.k1MJW7T84171@ultradnt.com> Message-ID: <3bf43ee90602231609l4952d22cq190bbed9b9a31cf@mail.gmail.com> I don't know yet. Frankly I am sticking with VS 2003 and Pocket PC 2003 /Win Ce 4 and lower until I see some movement on the support end of things BL On 2/22/06, Steve Conklin wrote: > > So they are forcing you to go with SQL CE? Are there any other options > for > Db's on PPC's? > > Steve > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Boogie Loogie > Sent: Wednesday, February 22, 2006 2:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: > Goodnews-VBAin > Office 12 and beyond...) > > I program for the compact framework of VB.Net. With CF2.0 and VS 2005 now > out the glorious braintrust at Micro$oft has did not include support for > .cdb files (.mdb's little cousin) for Windows Mobile 5.0 . Even if you > attempt to use tools such has the InTheHand adoce there is no ActiveSync > support for the database conversion. > > They say they will come up with a patch but it will not be supported and > that future versions of the Mobile OS may never offer any support again. > > In professional terms...THIS SUCKS UP THE WAZOO! > > On 2/22/06, Steve Erbach wrote: > > > > Charlotte, > > > > As far as the "power suite" I was just relaying what I found on the > > AppDev site. Since I'm my own employer I was trying to determine > > which ".NET training series" you have. AppDev has 17 different .NET > > "courses" ranging from 2 CD's worth up to 16 CD's. The .NET Power > > Suites have 73 CD's for the VB.NET suite and 40 CD's for the C# suite. > > There's also a .NET Web Development suite with 56 CD's. MCAD and MCSD > > certification suites are available, too. > > > > The Dobson book I found just struck me as funny since the ONLY copy > > available on Amazon had that outrageous price. Maybe it's really, > > really good! > > > > Thanks, Charlotte. > > > > Steve Erbach > > Neenah, WI > > http://TheTownCrank.blogspot.com > > > > On 2/22/06, Charlotte Foust wrote: > > > No, I'm not talking about any "power suites", and I didn't pay that > > > much for the Dobson books. Yes Barker is the author of the other > book. > > > > > > Charlotte > > > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve > > > Erbach > > > Sent: Tuesday, February 21, 2006 5:37 PM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Convert Access App to VB.Net (was FYI: Good > > > news-VBAin Office 12 and beyond...) > > > > > > > > > Charlotte, > > > > > > Thank you very much. > > > > > > I have the Murach series of .NET books, two O'Reilly books on > > > ASP.NET (the Cookbook and Programming With), three early Microsoft > > > books on .NET, and a Wrox book on Crystal Reports. My Safari > > > subscription has been very useful along those lines, too. On my > > > bookshelf I've got the O'Reilly ADO.NET Cookbook, the Programming > > > ASP.NET 3rd edition, and the Programming C# 4th edition. > > > > > > Are you talking about the .NET Power Suite for Visual Basic .NET or > > > Visual C# .NET? I see that those are currently $2517 and $1437 > > > without books. Hoo boy! I'll bet they were pretty thorough! > > > > > > I see a used copy of Rick Dobson's "Programming Microsoft SQL Server > > > 2000 with Microsoft Visual Basic .NET" available on Amazon for > $135.99!! > > > > > > Otherwise he has a lot of Access-based books. Don't see any others > > > on .NET really except for one on SQL Server 2005 Express. > > > > > > F. Scott Barker appears to be the author of that 2002 book on > > > ADO.NET and VB.NET. > > > > > > Thanks again. > > > > > > Steve Erbach > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwelz at hotmail.com Thu Feb 23 18:09:34 2006 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 23 Feb 2006 17:09:34 -0700 Subject: [AccessD] Create/Hide Buttons on Form? In-Reply-To: Message-ID: Charlotte: Assuming a non-continuous form, of course there are limiitations, but in my experience using functions in place of 'Event Procedure' is no more limiting than events with VB6 Control Arrays. In VB, your code is differentiated on an index. With Access, it is based on an attribute of the only unique possible active control experiencing a user interaction. The attribute can be the control name or caption or any other attribute accessible through the control's properties, directly accessible through the reference to Screen.ActiveControl. I've also had success with creating an array of controls in Access: Dim cmdButton() As CommandButton and setting the object variables in the form open event via iteration. Typically, the click event checks the control name against that in the array of controls and works its magic from there. In some cases it is convenient to arrange a form recordset so that the field order for the first 'n' fields corresponds to the 'control array' index. Sure it is somewhat limiting and it may become more difficult to make other kinds of changes that won't be impacted by restrictions. This approach is analagous to using a continuous subform, each with one or more buttons depending on the desired action(s). It is simple to disguise the subform by losing record selectors, navigation buttons and dividing lines and have it appear like a conventional form. It takes a bit of work with the form cycle and tab order to make it transparent, but if the code can be made to work from a control array, you should be able to make an inteterminate number of subforms work by acting on the record that becomes current upon the click. Again, I have not looked at earlier posts so am not certain as to the degree of complexity or whether the data design is amenable to this approach. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Charlotte Foust" > >True, but that limits your handling in the extreme. > >Charlotte > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jurgen Welz >Sent: Thursday, February 23, 2006 2:29 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Create/Hide Buttons on Form? > > >You can use a function in the property sheet so you should be able to hook >up events by specifying a function in the property sheet. To operate on >the >specific command button, you can pass it the Active Control: > >ie, set the property to >=fnProcedure(Screen.ActiveControl) > >You can parse the control name from the object passed and respond >appropriately. > >Or presumably you can hook up controls 'WithEvents'. > >I haven't been following this thread, but it seems to me you could put a >button on a continous form and operate on the current record textbox or >index value. Add a subRecord for each category? > >Ciao >J?rgen Welz >Edmonton, Alberta >jwelz at hotmail.com > > > > > > >From: "Charlotte Foust" > > > >Mark, > > > >You can create buttons programmatically, but binding code to them > >requires directly manipulating the form's code module, which is a pain. > >No control arrays in Access, unfortunately. You can create the buttons > >ahead of time and show or hide them and populate their captions based > >on a table, though. Why not use a table driven approach a la the > >switchboard manager. > > > >Charlotte > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Thursday, February 23, 2006 9:52 AM > >To: accessd at databaseadvisors.com > >Subject: Re: [AccessD] Create/Hide Buttons on Form? > > > > > >Jim, > > > >Yes...I have thought of that...but not as worried yet because I still > >didn't know if I could, or how to create the buttons programatically. > >Drop downs > >are out of the question...but maybe I should move to VB. > > > >Thanks, > > > >Mark A. Matte > > > > > > > > > > >From: "Jim DeMarco" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: "Access Developers discussion and problem solving" > > > > > >Subject: Re: [AccessD] Create/Hide Buttons on Form? > > >Date: Thu, 23 Feb 2006 09:44:07 -0500 > > > > > >Mark, > > > > > >Have you thought about what happens when they've created enough new > > >items to exceed your screen space? Is a drop-down list out of the > > >question > >for > > >this app? If this were a VB app you'd have a much easier time > > >creating > > > > >visual elements dynamically than with Access. > > > > > >Just some thoughts. > > > > > >Jim DeMarco > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A > > >Matte > > >Sent: Wednesday, February 22, 2006 12:12 PM > > >To: accessd at databaseadvisors.com > > >Subject: [AccessD] Create/Hide Buttons on Form? > > > > > > > > >Hello All, > > > > > >I'm attempting an app related to restaurant/bar management in A2K. > > >The > > > > >dilemma I have is in design. I want them to have the ability to add > > >new products/seats...but I'm not sure the best way to approach this. > > >For instance...if they add a new menu item...I want a new button to > > >appear. Should I make a predetermined number of buttons and hide them > > >or should I program the app to create and place a new button when the > > >new value is added ( if this, suggestions?) > > > > > >Thanks, > > > > > >Mark A. Matte From boogieloogie at gmail.com Thu Feb 23 18:12:41 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Thu, 23 Feb 2006 20:12:41 -0400 Subject: [AccessD] Copy a file In-Reply-To: <002601c638aa$c3ec0ae0$6501a8c0@BPCS> References: <002601c638aa$c3ec0ae0$6501a8c0@BPCS> Message-ID: <3bf43ee90602231612x14be2fb9t9df37113294b8e90@mail.gmail.com> Is there a File System Objects routine that displays the folders in a list on the left and if I click on the folder displays the contents of the folder in a list to its right? I have a home grown one but the File System Objects is more prefessional looking than mine but I only can get the folders to display. Thanks BL On 2/23/06, Bill Patten wrote: > > Here is routine that I use. > Declare Function apiCopyFile Lib "kernel32" Alias "CopyFileA" _ > (ByVal lpExistingFileName As String, _ > ByVal lpNewFileName As String, _ > ByVal bFailIfExists As Long) As Long > Declare Function SetFileAttributes Lib "kernel32" Alias > "SetFileAttributesA" _ > (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long > > Function BPCopyFile(SourceFile As String, DestFile As String, Optional > intReadOnly As Integer) As Boolean > On Error GoTo Err_BPCopyFile > > '---------------------------------------------------------------------------- > ' Purpose: Copy a file on disk from one location to another and on request > change to or from readonly > ' BPcopyfile "c:\dog.oub, c:\cat.mdb , optional 1 = readonly 2 = not > readonly > ' though this function will copy any files (open ones too) it was > designed > to copy a > ' file from a CD, rename it and then make sure it is not read only > ' By: Bill Patten, BPCS > ' Date: 9/16/2003 8:41:58 PM > ' Mods: > > '---------------------------------------------------------------------------- > Const FILE_ATTRIBUTE_NORMAL = 128 > Const FILE_ATTRIBUTE_READONLY = 1 > Dim Result As Long > BPCopyFile = False 'Assume it wont work > If Dir(DestFile) <> "" Then ' desination file exist so kill it > 'Just in case it is readonly and would not delete > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > Kill (DestFile) > End If > > If Dir(SourceFile) = "" Then > MsgBox Chr(34) & SourceFile & Chr(34) & _ > " is not valid file name." > Exit Function > Else > Result = apiCopyFile(SourceFile, DestFile, False) > End If > If Not IsNull(intReadOnly) Then > Select Case intReadOnly > Case 1 'Make file read only > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_READONLY) > Case 2 'remove readonly > Result = SetFileAttributes(DestFile, FILE_ATTRIBUTE_NORMAL) > End Select > End If > > BPCopyFile = True > Exit_BPCopyFile: > Exit Function > > Err_BPCopyFile: > MsgBox "Error " & Err.Number & ": " & Err.Description & " In Sub > CopyFile > In Module modFileCopy" & vbCrLf > Resume Exit_BPCopyFile > > End Function > > > > > ----- Original Message ----- > From: "Reuben Cummings" > To: "AccessD" > Sent: Thursday, February 23, 2006 10:12 AM > Subject: [AccessD] Copy a file > > > Anyone have a system setup to copy/move files? > > I want to give a client a small app that she can open, click a button and > it > will copy the specified file to another specified folder elsewhere on the > network. > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From boogieloogie at gmail.com Thu Feb 23 18:13:37 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Thu, 23 Feb 2006 20:13:37 -0400 Subject: [AccessD] Creating a demo Access app? In-Reply-To: <001501c6389a$a511bd00$0302a8c0@pennp4> References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> <001501c6389a$a511bd00$0302a8c0@pennp4> Message-ID: <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> Has anyone been able to hack mde's? BL On 2/23/06, Penn White wrote: > > Jim, That sounds like a good idea. I'll try it out. Thanks, Penn > > > My suggestion: Compile the app to mde and code behind your "New Item" > > button to count the records in the main table (showing a message if the > > count is at 10). > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From boogieloogie at gmail.com Thu Feb 23 18:15:53 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Thu, 23 Feb 2006 20:15:53 -0400 Subject: [AccessD] Creating a demo Access app? In-Reply-To: <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> <001501c6389a$a511bd00$0302a8c0@pennp4> <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> Message-ID: <3bf43ee90602231615j7fc71e26r2ba388a1fbfe1aa8@mail.gmail.com> I spoke too soon. Seems they have so I do not think that Jim's solution will work. Damn hackers http://www.everythingaccess.com/mdeunlocker.htm On 2/23/06, Boogie Loogie wrote: > > Has anyone been able to hack mde's? > > BL > > On 2/23/06, Penn White wrote: > > > > Jim, That sounds like a good idea. I'll try it out. Thanks, Penn > > > > > My suggestion: Compile the app to mde and code behind your "New Item" > > > button to count the records in the main table (showing a message if > > the > > > count is at 10). > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > From adtp at airtelbroadband.in Thu Feb 23 22:14:30 2006 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Fri, 24 Feb 2006 09:44:30 +0530 Subject: [AccessD] Creating a demo Access app? References: <003701c6388c$0de387f0$0302a8c0@pennp4> Message-ID: <00cd01c638f8$ec488ba0$8222f63d@pcadt> Penn, You might be able to get some working ideas from two of my sample db's mentioned below: (a) LicenseLock (b) TrialSet These are available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Penn White To: Access Developers discussion and problem solving Sent: Thursday, February 23, 2006 20:43 Subject: [AccessD] Creating a demo Access app? In the archives, I found a few references to registration codes for unlocking but I couldn't find anything aobut creating demos. I have an application in Access 2003 that I would like to send out as a demo. I'd like it to be fully functional but only allow 10 main records to be created -- everything in the application is accessed from one form - I'd like to limit the number of records that could be created with this form which is bound to one main table containing fields for relational ID's to other tables. What is the 'best practice' for doing this? Does anyone know of any articles that treat this subject? Thank you, Penn White From adtp at airtelbroadband.in Thu Feb 23 22:35:08 2006 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Fri, 24 Feb 2006 10:05:08 +0530 Subject: [AccessD] Copy a file References: Message-ID: <010701c638fb$d12f90e0$8222f63d@pcadt> Reuben, My sample db named BackUpManager might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. The db provides for creation of custom lists of files/folders required to be backed up. This is done via appropriate dialog boxes for selection of files or folders. From time to time, earmarked items can be backed up (with date stamp) to the desired destination drive, by click of a command button. In case of folders all their contents, including subfolders (and their contents) get copied. If any of the files happens to be an access db, simultaneous compaction is also carried out if desired. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Reuben Cummings To: AccessD Sent: Thursday, February 23, 2006 23:42 Subject: [AccessD] Copy a file Anyone have a system setup to copy/move files? I want to give a client a small app that she can open, click a button and it will copy the specified file to another specified folder elsewhere on the network. Reuben Cummings GFC, LLC 812.523.1017 From R.Griffiths at bury.gov.uk Fri Feb 24 03:25:48 2006 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 24 Feb 2006 09:25:48 -0000 Subject: [AccessD] Contract Message-ID: <200602240913.k1O9DKg04764@smarthost.yourcomms.net> Hi Group I am a stand alone software developer and have been asked by a client to add (a line/paragraph) into the contract (for a piece of off-the-shelf software I have written) something to ensure that should my business go bankrupt/fail the source code can be released to them for product support. I have no problem with this and understand their concerns. What I'm not sure about is the appropriate wording for this - does anyone have any advice/standard wording they use for this purpose. I have put something together myself but the contract will go to their contracts department (we are talking about a local government client here) for scrutiny. As I have said I am happy to release the source code should my business fail but I don't want to lose any copyright/ownership - also I am finding it difficult to cover what product support constitutes - I don't want to have to release the code if they demand enhancements that I do not want to develop at that time say. Equally I don't want to write a long protracted contract (the software only costs ?5000 so I'm not going to get legal advice or use Escrow) - I am looking for something simple and to the point. All contributions welcome. Richard From djkr at msn.com Fri Feb 24 03:35:32 2006 From: djkr at msn.com (DJK(John) Robinson) Date: Fri, 24 Feb 2006 09:35:32 -0000 Subject: [AccessD] Contract In-Reply-To: <200602240913.k1O9DKg04764@smarthost.yourcomms.net> Message-ID: Hi Richard I'm no help here with the answer, sorry! But do you mean 'off the shelf' rather than bespoke? What's behind my question is - are there other clients for the same software, and if so, what?s the deal with them? It may help to clarify the Q for more helpful respondents! :-) John (PS - Bury? Gosh, I've got the odd client in the Bolton area!) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: 24 February 2006 09:26 To: AccessD Subject: [AccessD] Contract Hi Group I am a stand alone software developer and have been asked by a client to add (a line/paragraph) into the contract (for a piece of off-the-shelf software I have written) something to ensure that should my business go bankrupt/fail the source code can be released to them for product support. I have no problem with this and understand their concerns. What I'm not sure about is the appropriate wording for this - does anyone have any advice/standard wording they use for this purpose. I have put something together myself but the contract will go to their contracts department (we are talking about a local government client here) for scrutiny. As I have said I am happy to release the source code should my business fail but I don't want to lose any copyright/ownership - also I am finding it difficult to cover what product support constitutes - I don't want to have to release the code if they demand enhancements that I do not want to develop at that time say. Equally I don't want to write a long protracted contract (the software only costs ?5000 so I'm not going to get legal advice or use Escrow) - I am looking for something simple and to the point. All contributions welcome. Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Fri Feb 24 03:48:45 2006 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 24 Feb 2006 09:48:45 -0000 Subject: [AccessD] Contract Message-ID: <200602240936.k1O9aGg06652@smarthost.yourcomms.net> John There are other clients/customers (a few - as I've only just completed). The other 3 have not requested this, so I am simply responding on a client-by-client request basis. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: 24 February 2006 09:36 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Contract Hi Richard I'm no help here with the answer, sorry! But do you mean 'off the shelf' rather than bespoke? What's behind my question is - are there other clients for the same software, and if so, what's the deal with them? It may help to clarify the Q for more helpful respondents! :-) John (PS - Bury? Gosh, I've got the odd client in the Bolton area!) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: 24 February 2006 09:26 To: AccessD Subject: [AccessD] Contract Hi Group I am a stand alone software developer and have been asked by a client to add (a line/paragraph) into the contract (for a piece of off-the-shelf software I have written) something to ensure that should my business go bankrupt/fail the source code can be released to them for product support. I have no problem with this and understand their concerns. What I'm not sure about is the appropriate wording for this - does anyone have any advice/standard wording they use for this purpose. I have put something together myself but the contract will go to their contracts department (we are talking about a local government client here) for scrutiny. As I have said I am happy to release the source code should my business fail but I don't want to lose any copyright/ownership - also I am finding it difficult to cover what product support constitutes - I don't want to have to release the code if they demand enhancements that I do not want to develop at that time say. Equally I don't want to write a long protracted contract (the software only costs ?5000 so I'm not going to get legal advice or use Escrow) - I am looking for something simple and to the point. All contributions welcome. Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Fri Feb 24 04:30:49 2006 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Fri, 24 Feb 2006 10:30:49 -0000 Subject: [AccessD] Nested query - SOLVED Message-ID: <7303A459C921B5499AF732CCEEAD2B7F3E6BDE@craws161660.int.rdel.co.uk> Just to close this thread- I ended up using the SQL below: SELECT t1.* FROM tblClubs AS t1 LEFT JOIN tblClubs AS t2 ON (t1.fldIDClubs It works fine in A97, A2k3, and MySQL 4.0.23a. My problem seemed to stem from the fact that version 4.0.23 of mySQL does not support the MAX function. Thanks to everybody who contributed ideas and solutions! Regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte > Foust > Sent: Tuesday, February 21, 2006 4:33 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Nested query > > > That's the way the query engine in Access handles the inline > query under > the covers. Your problem isn't with aliasing the tables (although I > would strongly suggest losing the spaces in your aliases). > It may work > for you if you create the query with the parens and then save it but > don't open it in SQL view again, or if you do, replace the > brackets and > period with parens again before saving. Access 97 was particularly > fussy about this. You had to use parens because it would not > recognize > the square brackets when entered by the user, even though the query > engine requires them. > > Charlotte Foust > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote > (Spike) > Sent: Monday, February 20, 2006 12:52 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Nested query > > > There's something not quite right about it as well John. > > The A2003 query grid keeps replacing the round brackets > surrounding the > sub-query with square brackets. Odd! > > I'm trying to run this query against mySQL using phpMyAdmin > and it does > not like it one bit. I think I need to read up on aliasing > tables a bit > more. > > I wonder if I should move sideways onto the SQL list? > > Regards! > Chris F From listmaster at databaseadvisors.com Fri Feb 24 04:48:04 2006 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Fri, 24 Feb 2006 05:48:04 -0500 Subject: [AccessD] Administrivia - Service Outage Announcement Message-ID: The company that hosts our mailing list will be performing some emergency server maintenance that will affect our server. This maintenance is scheduled for tomorrow Feb 24, 2006 between 10:00 AM and 5:00 PM Central Time (GMT -0600). Goto http://www.timezoneconverter.com/cgi-bin/tzc.tzc to figure out what time that is is your area. Use CST6CDT as the From Time Zone and then select your time zone in the To Time Zone. The impact to our service will be minimal. You may notice a short downtime, about 15 minutes at most. The physical server will be rebooted at that time and your service will resume normally. Thanks for your understanding. We apologize for the inconvenience. -- Bryan Carbonnell - listmaster at databaseadvisors.com Learning is a treasure that will follow its owner everywhere. From ecritt1 at alltel.net Fri Feb 24 05:49:35 2006 From: ecritt1 at alltel.net (Penn White) Date: Fri, 24 Feb 2006 06:49:35 -0500 Subject: [AccessD] Creating a demo Access app? References: <003701c6388c$0de387f0$0302a8c0@pennp4> <00cd01c638f8$ec488ba0$8222f63d@pcadt> Message-ID: <001c01c63938$62847ec0$0302a8c0@pennp4> Thanks, A.D. Should have known... ;-) Penn ----- Original Message ----- From: "A.D.TEJPAL" To: "Access Developers discussion and problem solving" Sent: Thursday, February 23, 2006 11:14 PM Subject: Re: [AccessD] Creating a demo Access app? > Penn, > > You might be able to get some working ideas from two of my sample db's > mentioned below: > (a) LicenseLock > (b) TrialSet > > These are available at Rogers Access Library (other developers > library). Link - > http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. > > Best wishes, > A.D.Tejpal > --------------- > > ----- Original Message ----- > From: Penn White > To: Access Developers discussion and problem solving > Sent: Thursday, February 23, 2006 20:43 > Subject: [AccessD] Creating a demo Access app? > > > In the archives, I found a few references to registration codes for > unlocking but I couldn't find anything aobut creating demos. > > I have an application in Access 2003 that I would like to send out as a > demo. I'd like it to be fully functional but only allow 10 main records > to be created -- everything in the application is accessed from one form - > I'd like to limit the number of records that could be created with this > form which is bound to one main table containing fields for relational > ID's to other tables. > > What is the 'best practice' for doing this? Does anyone know of any > articles that treat this subject? > > Thank you, > > Penn White > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From ecritt1 at alltel.net Fri Feb 24 05:52:53 2006 From: ecritt1 at alltel.net (Penn White) Date: Fri, 24 Feb 2006 06:52:53 -0500 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com><001501c6389a$a511bd00$0302a8c0@pennp4><3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> <3bf43ee90602231615j7fc71e26r2ba388a1fbfe1aa8@mail.gmail.com> Message-ID: <002101c63938$d8594a40$0302a8c0@pennp4> That link seems to be broken. In fact, I couldn't even get into the parent (www.everythingaccess.com) Penn >I spoke too soon. Seems they have so I do not think that Jim's solution >will > work. Damn hackers > > http://www.everythingaccess.com/mdeunlocker.htm From boogieloogie at gmail.com Fri Feb 24 06:01:52 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Fri, 24 Feb 2006 08:01:52 -0400 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: <002101c63938$d8594a40$0302a8c0@pennp4> References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> <001501c6389a$a511bd00$0302a8c0@pennp4> <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> <3bf43ee90602231615j7fc71e26r2ba388a1fbfe1aa8@mail.gmail.com> <002101c63938$d8594a40$0302a8c0@pennp4> Message-ID: <3bf43ee90602240401k53498580l58beeb5f6397b5a0@mail.gmail.com> Hmm worked for me. Must have been temporary. On 2/24/06, Penn White wrote: > > That link seems to be broken. In fact, I couldn't even get into the > parent > (www.everythingaccess.com) Penn > > >I spoke too soon. Seems they have so I do not think that Jim's solution > >will > > work. Damn hackers > > > > http://www.everythingaccess.com/mdeunlocker.htm > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Jdemarco at hudsonhealthplan.org Fri Feb 24 06:53:26 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 24 Feb 2006 07:53:26 -0500 Subject: [AccessD] Access 2000 Runtime Error (X-posted) Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C4641@TTNEXCHCL2.hshhp.com> >>They maybe running old VB6 programs calling DAO 3.51 Thanks Marty. This is exactly what they're doing. So will SP3 still fix for them? Or should they recompile their VB apps using a newer Jet version? Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Thursday, February 23, 2006 2:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) Have client look at this file in windows explorer c:\program files\common files\microsoft shared\vba\vba6\vbe6.dll Right click on file select properties then selectr version tab and then file version For Office 2003 I have version number for vbe6.dll 6.04.9972 If you have equal to or lower than 6.3.91.8 then it is the faulty Office 2000 vbe6.dll And needs the Office 2000 SP3 installed Jet or DAO 3.51 in msjet35.dll is only installed by Office 97 or MDAC 2.1 (hasn't been downloadable for 2 years from MS) Access 2000 uses DAO 3.6 msjet40.dll They maybe running old VB6 programs calling DAO 3.51 I have Office 97 and 2003 installed C:\WINDOWS\system32\msjet35.dll My version is 3.51.3328.0 C:\WINDOWS\system32\msjet40.dll version 4.00.8618.0 I have heard of certain DAO 3.6 installs removing DAO 3.51 so you might want to check they are both there Most DAO calls that ran against 3.51 will run against DAO 3.6 except for security fixes. Jim DeMarco wrote: >Thanks Gustav. > >It looks like they may have changed the link to that article. I get this article when I click the link you attached: > >"You receive an error message when you try to view the code in a module, compile a database, create an MDE file or execute code in Access 2000" > >I think they're running WinXP as well but I'm waiting for an answer on that. > >I'm the meantime I think I need to find a better search phrase. I'm coming up blank (irrelevant) on Google and kbalertz.com. > >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >Sent: Thursday, February 23, 2006 12:28 PM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) > > >Hi Jim > >Could it be the old VBE6.dll issue: > > > >Take a look at >http://support.microsoft.com/default.aspx?scid=kb;en-us;Q304548 > >This is a typical error when you do not have O2k SR-3 and you have a 2002 or later app installed on the same machine. The VBE6.DLL for 2002 breaks the 2000 Access executable. > >Charlotte Foust > > > > > >>>>Jdemarco at hudsonhealthplan.org 23-02-2006 17:47:27 >>> >>>> >>>> >X-posted AccessD: dba-VB > >Lists, > >We inherited (and distribute) an Access 2K app that uses the Access runtime. One of our user sites (not affiliated with our company) is having a problem running VB apps on machines where this app is installed. Here's a copy of what I got from their IT resource: > > >"...happens when an application is started. >A window opens saying somthing like "Loading Access 2000 Runtime" and displaying a Windows progress bar. >Then a "File Not Found" message window opens. If you cancel out of the window, another "File Not Found" windows opens, etc.. >If you cancel out of these windows about 3 or 4 times, the program will start. > > >They're using Jet 3.51 for "ADO and DAO data access" (quoting their IT resource). Is anyone familiar with this? I searched M$KB but didn't find anything. > >TIA > >Jim DeMarco >Director of Application Development >Hudson Health Plan > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Jdemarco at hudsonhealthplan.org Fri Feb 24 07:03:27 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 24 Feb 2006 08:03:27 -0500 Subject: [AccessD] Converting to 2003 Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C4643@TTNEXCHCL2.hshhp.com> We're moving our A97 apps to 2003. A2K3 defaults to 2000 version. Is there any consensus on which format makes most sense for the upgraded apps (2000 or 2003)? TIA Jim DeMarco Director of Application Development Hudson Health Plan *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From bchacc at san.rr.com Fri Feb 24 08:09:52 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 24 Feb 2006 06:09:52 -0800 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: <002101c63938$d8594a40$0302a8c0@pennp4> References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> <001501c6389a$a511bd00$0302a8c0@pennp4> <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> <3bf43ee90602231615j7fc71e26r2ba388a1fbfe1aa8@mail.gmail.com> <002101c63938$d8594a40$0302a8c0@pennp4> Message-ID: <43FF13B0.2000905@san.rr.com> But does it decompile the code? Rocky > >> I spoke too soon. Seems they have so I do not think that Jim's solution >> will >> work. Damn hackers >> >> http://www.everythingaccess.com/mdeunlocker.htm >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From carbonnb at gmail.com Fri Feb 24 08:16:00 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 24 Feb 2006 09:16:00 -0500 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: <43FF13B0.2000905@san.rr.com> References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> <001501c6389a$a511bd00$0302a8c0@pennp4> <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> <3bf43ee90602231615j7fc71e26r2ba388a1fbfe1aa8@mail.gmail.com> <002101c63938$d8594a40$0302a8c0@pennp4> <43FF13B0.2000905@san.rr.com> Message-ID: On 2/24/06, Rocky Smolin - Beach Access Software wrote: > > But does it decompile the code? Not acording to the page. "*You cannot alter or gain access to the original VBA code - you must use Macros instead." -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From boogieloogie at gmail.com Fri Feb 24 08:37:15 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Fri, 24 Feb 2006 10:37:15 -0400 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> <001501c6389a$a511bd00$0302a8c0@pennp4> <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> <3bf43ee90602231615j7fc71e26r2ba388a1fbfe1aa8@mail.gmail.com> <002101c63938$d8594a40$0302a8c0@pennp4> <43FF13B0.2000905@san.rr.com> Message-ID: <3bf43ee90602240637q1c71f8b9g303819e7a2212b07@mail.gmail.com> that is a relief On 2/24/06, Bryan Carbonnell wrote: > > On 2/24/06, Rocky Smolin - Beach Access Software > wrote: > > > > But does it decompile the code? > > Not acording to the page. > > "*You cannot alter or gain access to the original VBA code - you must > use Macros instead." > > -- > Bryan Carbonnell - carbonnb at gmail.com > Life's journey is not to arrive at the grave safely in a well > preserved body, but rather to skid in sideways, totally worn out, > shouting "What a great ride!" > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Fri Feb 24 08:51:16 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 24 Feb 2006 06:51:16 -0800 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: References: <08F823FD83787D4BA0B99CA580AD3C74016C462D@TTNEXCHCL2.hshhp.com> <001501c6389a$a511bd00$0302a8c0@pennp4> <3bf43ee90602231613se30076byb3b2bd64a64dd8c@mail.gmail.com> <3bf43ee90602231615j7fc71e26r2ba388a1fbfe1aa8@mail.gmail.com> <002101c63938$d8594a40$0302a8c0@pennp4> <43FF13B0.2000905@san.rr.com> Message-ID: <43FF1D64.5010204@san.rr.com> I've got two products which I send out as mdes. And I worry about the product being knocked off, especially in China where we are beginning to make some sales with the manufacturing system. For both of them the primary intellectual value is in the code - The Sleep Advisor's diagnostic engine is about 7000 lines and the decision tree on the input side, which guides which questions to ask is about half that. The manufacturing system like any system could be knocked off pretty much by copying the design and features of the forms and reports. No magic there. The MRP calculation and cost-roll up program have some tricks in them. Nevertheless, it's not rocket science, and I suppose someone could duplicate the whole thing. But if a product can be duplicated pretty much by looking at the outside, I wonder what the real threat is here? I'm probably missing something. Rocky Bryan Carbonnell wrote: > On 2/24/06, Rocky Smolin - Beach Access Software wrote: > >> But does it decompile the code? >> > > Not acording to the page. > > "*You cannot alter or gain access to the original VBA code - you must > use Macros instead." > > -- > Bryan Carbonnell - carbonnb at gmail.com > Life's journey is not to arrive at the grave safely in a well > preserved body, but rather to skid in sideways, totally worn out, > shouting "What a great ride!" > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From cfoust at infostatsystems.com Fri Feb 24 10:08:26 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 24 Feb 2006 08:08:26 -0800 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) Message-ID: I think the threat is the same as any other knockoff, from Vuitton bags to Rolex watches to custom software, the customer gets something cheap and the original manufacturer gets ripped off. Charlotte Foust -----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 24, 2006 6:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) I've got two products which I send out as mdes. And I worry about the product being knocked off, especially in China where we are beginning to make some sales with the manufacturing system. For both of them the primary intellectual value is in the code - The Sleep Advisor's diagnostic engine is about 7000 lines and the decision tree on the input side, which guides which questions to ask is about half that. The manufacturing system like any system could be knocked off pretty much by copying the design and features of the forms and reports. No magic there. The MRP calculation and cost-roll up program have some tricks in them. Nevertheless, it's not rocket science, and I suppose someone could duplicate the whole thing. But if a product can be duplicated pretty much by looking at the outside, I wonder what the real threat is here? I'm probably missing something. Rocky Bryan Carbonnell wrote: > On 2/24/06, Rocky Smolin - Beach Access Software > wrote: > >> But does it decompile the code? >> > > Not acording to the page. > > "*You cannot alter or gain access to the original VBA code - you must > use Macros instead." > > -- > Bryan Carbonnell - carbonnb at gmail.com > Life's journey is not to arrive at the grave safely in a well > preserved body, but rather to skid in sideways, totally worn out, > shouting "What a great ride!" > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Feb 24 10:58:39 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 24 Feb 2006 08:58:39 -0800 Subject: [AccessD] Access 2000 Runtime Error (X-posted) References: <08F823FD83787D4BA0B99CA580AD3C74016C4641@TTNEXCHCL2.hshhp.com> Message-ID: <43FF3B3F.8000201@shaw.ca> I am guessing without knowing the client's dll version numbers The problem maybe best fixed by recreating your runtime Access 2000 program ensuring it is recompiled with Office 2000 SP3 and Jet SP8 installed. Then reinstalling that, if your Access 2000 program isn't split into a backend, you will have trouble recovering the users tables. If they try to use DAO 3.6 with VB 6 code for mdb database creation they will be creating in 2000 format not 97 unless specifically coded and that may cause problems since DAO 3.5 cannot read 2000 DAO 3.6 format. It is however backward compatible. Their may also be ANSI vs Unicode problems. You might get lucky by re-registering MSJET35.dll In the Run dialog, type the following command: Regsvr32.exe where DLL Name is the name of the DLL file, such as "C:\WINDOWS\system32\msjet35.dll". Path name should be in quotes to avoid spaces problem or perhaps installing the old (last century) Jet SP3 security service pack for DAO 350 only This will re-register dll Pay attention to what version of MSJET35.dll is installed otherwise the SP won't install. http://support.microsoft.com/kb/q172733/ How to determine the current service pack level for Jet 3.5 Use the following steps to determine the Jet 3.5 service pack level that is currently installed on your computer. Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.1. On the Start menu, click Search. 2. In the Search Results pane under Search Companion, click All files and folders. 3. In the All or part of the file name box, type msjet35.dll, and then click Search. 4. In the list of files, right-click the msjet35.dll file located in the Windows\System32 (or Windows\System) folder, and then click Properties. 5. Click the Version tab, and then use the following table to determine the current Jet 4.0 service pack level: Msjet35.dll Version Jet 3.5 Service Pack Level 3.51.2723.0 Service Pack 2 (SP2) 3.51.3203.0 Service Pack 3 (SP3) 3.51.3328.0 Service Pack 3 (SP3) with enhanced security Also see http://msdn.microsoft.com/data/downloads/updates/default.aspx#jet If you're running Access on an NT box being a DHCP/WINS server etc, then you need to stop the services, cause they themselves use Jet to handle their databases. Jim DeMarco wrote: >>>They maybe running old VB6 programs calling DAO 3.51 >>> >>> > >Thanks Marty. This is exactly what they're doing. > >So will SP3 still fix for them? Or should they recompile their VB apps using a newer Jet version? > >Jim D. > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly >Sent: Thursday, February 23, 2006 2:34 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) > > >Have client look at this file in windows explorer > >c:\program files\common files\microsoft shared\vba\vba6\vbe6.dll > >Right click on file select properties then selectr version tab and then >file version >For Office 2003 I have version number for vbe6.dll >6.04.9972 >If you have equal to or lower than > 6.3.91.8 >then it is the faulty Office 2000 vbe6.dll >And needs the Office 2000 SP3 installed > >Jet or DAO 3.51 in msjet35.dll is only installed by Office 97 or MDAC >2.1 (hasn't been downloadable for 2 years from MS) >Access 2000 uses DAO 3.6 msjet40.dll > >They maybe running old VB6 programs calling DAO 3.51 > >I have Office 97 and 2003 installed > >C:\WINDOWS\system32\msjet35.dll My version is 3.51.3328.0 >C:\WINDOWS\system32\msjet40.dll version 4.00.8618.0 > >I have heard of certain DAO 3.6 installs removing DAO 3.51 so you might >want to check they are both there >Most DAO calls that ran against 3.51 will run against DAO 3.6 except for >security fixes. > > >Jim DeMarco wrote: > > > >>Thanks Gustav. >> >>It looks like they may have changed the link to that article. I get this article when I click the link you attached: >> >>"You receive an error message when you try to view the code in a module, compile a database, create an MDE file or execute code in Access 2000" >> >>I think they're running WinXP as well but I'm waiting for an answer on that. >> >>I'm the meantime I think I need to find a better search phrase. I'm coming up blank (irrelevant) on Google and kbalertz.com. >> >>Jim >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >>Sent: Thursday, February 23, 2006 12:28 PM >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) >> >> >>Hi Jim >> >>Could it be the old VBE6.dll issue: >> >> >> >>Take a look at >>http://support.microsoft.com/default.aspx?scid=kb;en-us;Q304548 >> >>This is a typical error when you do not have O2k SR-3 and you have a 2002 or later app installed on the same machine. The VBE6.DLL for 2002 breaks the 2000 Access executable. >> >>Charlotte Foust >> >> >> >> >> >> >> >>>>>Jdemarco at hudsonhealthplan.org 23-02-2006 17:47:27 >>> >>>>> >>>>> >>>>> >>>>> >>X-posted AccessD: dba-VB >> >>Lists, >> >>We inherited (and distribute) an Access 2K app that uses the Access runtime. One of our user sites (not affiliated with our company) is having a problem running VB apps on machines where this app is installed. Here's a copy of what I got from their IT resource: >> >> >>"...happens when an application is started. >>A window opens saying somthing like "Loading Access 2000 Runtime" and displaying a Windows progress bar. >>Then a "File Not Found" message window opens. If you cancel out of the window, another "File Not Found" windows opens, etc.. >>If you cancel out of these windows about 3 or 4 times, the program will start. >> >> >>They're using Jet 3.51 for "ADO and DAO data access" (quoting their IT resource). Is anyone familiar with this? I searched M$KB but didn't find anything. >> >>TIA >> >>Jim DeMarco >>Director of Application Development >>Hudson Health Plan >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Fri Feb 24 11:48:53 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 24 Feb 2006 09:48:53 -0800 Subject: [AccessD] Contract References: <200602240913.k1O9DKg04764@smarthost.yourcomms.net> Message-ID: <43FF4705.9000200@shaw.ca> Software Escrow costs about $500-$750 a year, if you have 50 clients that is reasonable. Here are some downloadable Escrow agreements American, British or Canadian (2 and 3 party) http://www.escrowassociates.com/agreements.htm Look at sections on Successors and Assigns and Bankruptcy in agreements Escrow FAQ that might be useful http://www.softescrow.com/faq.html#5.0 Other Escrow firms DSI Technology Escrow http://www.dsiescrow.com InnovaSafe Escrow Service http://www.innovasafe.com Griffiths, Richard wrote: >Hi Group > >I am a stand alone software developer and have been asked by a client to add (a line/paragraph) into the contract (for a piece of off-the-shelf software I have written) >something to ensure that should my business go bankrupt/fail the source code can be released to them for product support. I have no problem with this >and understand their concerns. What I'm not sure about is the appropriate wording for this - does anyone have any advice/standard wording they use for this purpose. >I have put something together myself but the contract will go to their contracts department (we are talking about a local government client here) for scrutiny. >As I have said I am happy to release the source code should my business fail but I don't want to lose any copyright/ownership - also I am finding it difficult to cover what product support >constitutes - I don't want to have to release the code if they demand enhancements that I do not want to develop at that time say. Equally I don't want to write a long protracted contract (the software only >costs ?5000 so I'm not going to get legal advice or use Escrow) - I am looking for something simple and to the point. All contributions welcome. > >Richard > > > -- Marty Connelly Victoria, B.C. Canada From dwaters at usinternet.com Fri Feb 24 12:03:46 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 24 Feb 2006 12:03:46 -0600 Subject: [AccessD] Contract In-Reply-To: <26091262.1140773311567.JavaMail.root@sniper17> Message-ID: <000001c6396c$a87f3d00$0200a8c0@danwaters> Hi Richard, I'm having exactly this issue with a large customer I currently have. What we've worked out is this: If they are having trouble contacting me (or my company), they will send a registered letter to my legal address. If they don't hear from me in 30 days, then they have the right to claim ownership of the application by sending another registered letter making that claim. Their ownership obtained this way would be non-exclusive and non-transferable, so it won't affect your ability to continue your business as before, assuming you didn't lose the fight with the truck! Actually, they have a good point in wanting to work on this on their own if you can't or won't provide a timely response to their request for an update or modification. To cover this, I allow the IT department, by contract, to make any modifications they want at any time. Their working on this will not change any state of ownership. Of course, I won't warranty any problems caused by them. In practice, the IT department will probably prefer to not get involved in modifications to software that will continue to be maintained by an outside entity, so you should still get first crack at the modification work. You could consider having someone you trust as a developer to be your 'backup' if you're currently busy. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Friday, February 24, 2006 3:26 AM To: AccessD Subject: [AccessD] Contract Hi Group I am a stand alone software developer and have been asked by a client to add (a line/paragraph) into the contract (for a piece of off-the-shelf software I have written) something to ensure that should my business go bankrupt/fail the source code can be released to them for product support. I have no problem with this and understand their concerns. What I'm not sure about is the appropriate wording for this - does anyone have any advice/standard wording they use for this purpose. I have put something together myself but the contract will go to their contracts department (we are talking about a local government client here) for scrutiny. As I have said I am happy to release the source code should my business fail but I don't want to lose any copyright/ownership - also I am finding it difficult to cover what product support constitutes - I don't want to have to release the code if they demand enhancements that I do not want to develop at that time say. Equally I don't want to write a long protracted contract (the software only costs ?5000 so I'm not going to get legal advice or use Escrow) - I am looking for something simple and to the point. All contributions welcome. Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Fri Feb 24 12:19:54 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 24 Feb 2006 13:19:54 -0500 Subject: [AccessD] Access 2000 Runtime Error (X-posted) Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C465C@TTNEXCHCL2.hshhp.com> Thanks for the detailed reply Marty. We're probably going to have to mix and match possible solutions. We don't have A2K here. The app was given to us by a company in Idaho as freeware and it came via an install disk so we never put them together (the app and runtime). All we do is modify the front-end and copy over the original. I think I've got enough possibilities here to get us on track though. Thanks again, Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Friday, February 24, 2006 11:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) I am guessing without knowing the client's dll version numbers The problem maybe best fixed by recreating your runtime Access 2000 program ensuring it is recompiled with Office 2000 SP3 and Jet SP8 installed. Then reinstalling that, if your Access 2000 program isn't split into a backend, you will have trouble recovering the users tables. If they try to use DAO 3.6 with VB 6 code for mdb database creation they will be creating in 2000 format not 97 unless specifically coded and that may cause problems since DAO 3.5 cannot read 2000 DAO 3.6 format. It is however backward compatible. Their may also be ANSI vs Unicode problems. You might get lucky by re-registering MSJET35.dll In the Run dialog, type the following command: Regsvr32.exe where DLL Name is the name of the DLL file, such as "C:\WINDOWS\system32\msjet35.dll". Path name should be in quotes to avoid spaces problem or perhaps installing the old (last century) Jet SP3 security service pack for DAO 350 only This will re-register dll Pay attention to what version of MSJET35.dll is installed otherwise the SP won't install. http://support.microsoft.com/kb/q172733/ How to determine the current service pack level for Jet 3.5 Use the following steps to determine the Jet 3.5 service pack level that is currently installed on your computer. Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.1. On the Start menu, click Search. 2. In the Search Results pane under Search Companion, click All files and folders. 3. In the All or part of the file name box, type msjet35.dll, and then click Search. 4. In the list of files, right-click the msjet35.dll file located in the Windows\System32 (or Windows\System) folder, and then click Properties. 5. Click the Version tab, and then use the following table to determine the current Jet 4.0 service pack level: Msjet35.dll Version Jet 3.5 Service Pack Level 3.51.2723.0 Service Pack 2 (SP2) 3.51.3203.0 Service Pack 3 (SP3) 3.51.3328.0 Service Pack 3 (SP3) with enhanced security Also see http://msdn.microsoft.com/data/downloads/updates/default.aspx#jet If you're running Access on an NT box being a DHCP/WINS server etc, then you need to stop the services, cause they themselves use Jet to handle their databases. Jim DeMarco wrote: >>>They maybe running old VB6 programs calling DAO 3.51 >>> >>> > >Thanks Marty. This is exactly what they're doing. > >So will SP3 still fix for them? Or should they recompile their VB apps using a newer Jet version? > >Jim D. > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly >Sent: Thursday, February 23, 2006 2:34 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) > > >Have client look at this file in windows explorer > >c:\program files\common files\microsoft shared\vba\vba6\vbe6.dll > >Right click on file select properties then selectr version tab and then >file version >For Office 2003 I have version number for vbe6.dll >6.04.9972 >If you have equal to or lower than > 6.3.91.8 >then it is the faulty Office 2000 vbe6.dll >And needs the Office 2000 SP3 installed > >Jet or DAO 3.51 in msjet35.dll is only installed by Office 97 or MDAC >2.1 (hasn't been downloadable for 2 years from MS) >Access 2000 uses DAO 3.6 msjet40.dll > >They maybe running old VB6 programs calling DAO 3.51 > >I have Office 97 and 2003 installed > >C:\WINDOWS\system32\msjet35.dll My version is 3.51.3328.0 >C:\WINDOWS\system32\msjet40.dll version 4.00.8618.0 > >I have heard of certain DAO 3.6 installs removing DAO 3.51 so you might >want to check they are both there >Most DAO calls that ran against 3.51 will run against DAO 3.6 except for >security fixes. > > >Jim DeMarco wrote: > > > >>Thanks Gustav. >> >>It looks like they may have changed the link to that article. I get this article when I click the link you attached: >> >>"You receive an error message when you try to view the code in a module, compile a database, create an MDE file or execute code in Access 2000" >> >>I think they're running WinXP as well but I'm waiting for an answer on that. >> >>I'm the meantime I think I need to find a better search phrase. I'm coming up blank (irrelevant) on Google and kbalertz.com. >> >>Jim >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >>Sent: Thursday, February 23, 2006 12:28 PM >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] Access 2000 Runtime Error (X-posted) >> >> >>Hi Jim >> >>Could it be the old VBE6.dll issue: >> >> >> >>Take a look at >>http://support.microsoft.com/default.aspx?scid=kb;en-us;Q304548 >> >>This is a typical error when you do not have O2k SR-3 and you have a 2002 or later app installed on the same machine. The VBE6.DLL for 2002 breaks the 2000 Access executable. >> >>Charlotte Foust >> >> >> >> >> >> >> >>>>>Jdemarco at hudsonhealthplan.org 23-02-2006 17:47:27 >>> >>>>> >>>>> >>>>> >>>>> >>X-posted AccessD: dba-VB >> >>Lists, >> >>We inherited (and distribute) an Access 2K app that uses the Access runtime. One of our user sites (not affiliated with our company) is having a problem running VB apps on machines where this app is installed. Here's a copy of what I got from their IT resource: >> >> >>"...happens when an application is started. >>A window opens saying somthing like "Loading Access 2000 Runtime" and displaying a Windows progress bar. >>Then a "File Not Found" message window opens. If you cancel out of the window, another "File Not Found" windows opens, etc.. >>If you cancel out of these windows about 3 or 4 times, the program will start. >> >> >>They're using Jet 3.51 for "ADO and DAO data access" (quoting their IT resource). Is anyone familiar with this? I searched M$KB but didn't find anything. >> >>TIA >> >>Jim DeMarco >>Director of Application Development >>Hudson Health Plan >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From shamil at users.mns.ru Fri Feb 24 14:31:19 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 24 Feb 2006 23:31:19 +0300 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: Message-ID: <002701c63981$578360b0$6401a8c0@Nant> All, Here is a Friday puzzle on subject I suppose: Have a look at this screenshot http://www.code-vb.com/help/dlg_frmProcedure.htm and now on this one: http://www.smartvba.com/methods_builder.htm The first (http://www.code-vb.com/help/dlg_frmProcedure.htm) - was first time released in the beginning of the last year and the latter - in the end. These are not related companies. I know the history of the first and how it was created. Question: How it comes that the design of the latter company's software is sometimes literally the same? (and many other forms are like that). My guess: The designs of the first were replicated manually or decompiled (there is good VB6 decompiler - the info about it was published here) then adjusted and published by the second company. Anybody believes that designs can be so similar if the second company didn't know anything about the software products of the first? Am I getting paranoid? If not, then one who publishes MDE apps may expect to see their GUI designs (and good GUI designs is a lot of work) be published within other companies' software... Shamil ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 24, 2006 7:08 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) >I think the threat is the same as any other knockoff, from Vuitton bags > to Rolex watches to custom software, the customer gets something cheap > and the original manufacturer gets ripped off. > > Charlotte Foust > > > -----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 24, 2006 6:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > > > I've got two products which I send out as mdes. And I worry about the > product being knocked off, especially in China where we are beginning to > > make some sales with the manufacturing system. > > For both of them the primary intellectual value is in the code - The > Sleep Advisor's diagnostic engine is about 7000 lines and the decision > tree on the input side, which guides which questions to ask is about > half that. > > The manufacturing system like any system could be knocked off pretty > much by copying the design and features of the forms and reports. No > magic there. The MRP calculation and cost-roll up program have some > tricks in them. > > Nevertheless, it's not rocket science, and I suppose someone could > duplicate the whole thing. > > But if a product can be duplicated pretty much by looking at the > outside, I wonder what the real threat is here? I'm probably missing > something. > > Rocky > > > Bryan Carbonnell wrote: >> On 2/24/06, Rocky Smolin - Beach Access Software >> wrote: >> >>> But does it decompile the code? >>> >> >> Not acording to the page. >> >> "*You cannot alter or gain access to the original VBA code - you must >> use Macros instead." >> >> -- >> Bryan Carbonnell - carbonnb at gmail.com >> Life's journey is not to arrive at the grave safely in a well >> preserved body, but rather to skid in sideways, totally worn out, >> shouting "What a great ride!" >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Feb 24 15:09:41 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 25 Feb 2006 00:09:41 +0300 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: <002701c63981$578360b0$6401a8c0@Nant> Message-ID: <001101c63986$a85f0c00$6401a8c0@Nant> Sorry, some more fears on software hacking hazards (switch on your disparate(?) facts association skills well tested by IQ tests :)) : Have a look: SmartVBA.COM ============ Registrant: C-13-39-19 Tashkent, Tashkent 700128 UZ Domain name: SMARTVBA.COM Administrative Contact: Olevskiy, Evgeniy ******@olsoft.biz C-13-39-19 Tashkent, Tashkent 700128 UZ +998 93 172-0073 Technical Contact: Olevskiy, Evgeniy ******@olsoft.biz C-13-39-19 Tashkent, Tashkent 700128 UZ +998 93 172-0073 Registration Service Provider: Domain Names At WholeSale, ******@olevsky.com +998 71 1840073 This company may be contacted for domain login/passwords, DNS/Nameserver changes, and general domain support questions. Registrar of Record: TUCOWS, INC. Record last updated on 14-Dec-2005. Record expires on 14-Dec-2006. Record created on 14-Dec-2005. Domain servers in listed order: NS1.DISCOUNTASP.NET 64.79.161.51 NS2.DISCOUNTASP.NET 216.177.89.10 NS3.DISCOUNTASP.NET 63.110.186.41 Domain status: ACTIVE === olevsky.com =========== Registrant: EOL C-13-39-19 Tashkent, Tashkent 700128 UZ Domain name: OLEVSKY.COM Administrative Contact: Olevskiy, Evgeniy ******@analyzerxl.com C-13-39-19 Tashkent, Tashkent 700128 UZ +99871-1800073 Fax: +1 (248) 282-0304 Technical Contact: Olevskiy, Evgeniy ******@analyzerxl.com C-13-39-19 Tashkent, 700128 UZ +998 71 1800073 Fax: +1 (248) 282-0304 Registration Service Provider: Domain Names At WholeSale, ******@olevsky.com +998 71 1840073 This company may be contacted for domain login/passwords, DNS/Nameserver changes, and general domain support questions. === www.olsoft.biz ============== Domain Name: OLSOFT.BIZ Domain ID: D6089481-BIZ Sponsoring Registrar: TUCOWS INC. Sponsoring Registrar IANA ID: 69 Domain Status: clientTransferProhibited Domain Status: clientUpdateProhibited Registrant ID: TUSW1V48BI6FEXVW Registrant Name: Eugene Olevsky Registrant Organization: Eugene Olevsky Registrant Address1: C-13--39-19 Registrant City: Tashkent Registrant State/Province: Tashkent Registrant Postal Code: 700128 Registrant Country: Uzbekistan Registrant Country Code: UZ Registrant Phone Number: +998.711840073 Registrant Facsimile Number: +998.711840073 Registrant Email: ******@olevsky.com Administrative Contact ID: TUSW1V48BI6FEXVW Administrative Contact Name: Eugene Olevsky Administrative Contact Organization: Eugene Olevsky Administrative Contact Address1: C-13--39-19 Administrative Contact City: Tashkent Administrative Contact State/Province: Tashkent Administrative Contact Postal Code: 700128 Administrative Contact Country: Uzbekistan Administrative Contact Country Code: UZ Administrative Contact Phone Number: +998.711840073 Administrative Contact Facsimile Number: +998.711840073 Administrative Contact Email: ******@olevsky.com Billing Contact ID: TUSW1V48BI6FEXVW Billing Contact Name: Eugene Olevsky Billing Contact Organization: Eugene Olevsky Billing Contact Address1: C-13--39-19 Billing Contact City: Tashkent Billing Contact State/Province: Tashkent Billing Contact Postal Code: 700128 Billing Contact Country: Uzbekistan Billing Contact Country Code: UZ Billing Contact Phone Number: +998.711840073 Billing Contact Facsimile Number: +998.711840073 Billing Contact Email: ******@olevsky.com Technical Contact ID: TUAMY4RAF2BZ4SWM Technical Contact Name: Direct Domain Technical Contact Organization: Tucows International Corp. Technical Contact Address1: 96 Mowat Avenue Technical Contact City: Toronto Technical Contact State/Province: ON Technical Contact Postal Code: M6K3M1 Technical Contact Country: Canada Technical Contact Country Code: CA Technical Contact Phone Number: +1.4165350123 Technical Contact Facsimile Number: +1.4165312516 Technical Contact Email: *******@domaindirect.com Name Server: NS3.WORLDISPNETWORK.COM Name Server: NS4.WORLDISPNETWORK.COM Created by Registrar: TUCOWS INC. Last Updated by Registrar: TUCOWS INC. Domain Registration Date: Tue Jan 20 07:28:09 GMT 2004 Domain Expiration Date: Fri Jan 19 23:59:59 GMT 2007 Domain Last Updated Date: Fri Jan 06 07:59:39 GMT 2006 as well as http://www.analyzerxl.com/ and many others.... Shamil ----- Original Message ----- From: "Shamil Salakhetdinov" To: "Access Developers discussion and problem solving" Sent: Friday, February 24, 2006 11:31 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > All, > > Here is a Friday puzzle on subject I suppose: > > Have a look at this screenshot > > http://www.code-vb.com/help/dlg_frmProcedure.htm > > and now on this one: > > http://www.smartvba.com/methods_builder.htm > > The first (http://www.code-vb.com/help/dlg_frmProcedure.htm) - was first > time released in the beginning of the last year and the latter - in the > end. > > These are not related companies. > > I know the history of the first and how it was created. > > Question: How it comes that the design of the latter company's software is > sometimes literally the same? (and many other forms are like that). > > My guess: The designs of the first were replicated manually or > decompiled (there is good VB6 decompiler - the info about it was > published here) then adjusted and published by the second company. > > Anybody believes that designs can be so similar if the second company > didn't > know anything about the software products of the first? > Am I getting paranoid? > > If not, then one who publishes MDE apps may expect to see their GUI > designs (and good GUI designs is a lot of work) be published within other > companies' software... > > Shamil <<< tail skipped>>> From wdhindman at bellsouth.net Fri Feb 24 15:09:59 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 24 Feb 2006 16:09:59 -0500 Subject: [AccessD] Converting to 2003 References: <08F823FD83787D4BA0B99CA580AD3C74016C4643@TTNEXCHCL2.hshhp.com> Message-ID: <002a01c63986$abe17c00$6101a8c0@50NM721> Jim ...now that the bloat in the post A2K format has been fixed, I've standardized on the A2K3 format whenever possible ...I no longer see any advantage in using the A2K format unless you're running in a mixed environment. William ----- Original Message ----- From: "Jim DeMarco" To: "AccessD (E-mail)" Sent: Friday, February 24, 2006 8:03 AM Subject: [AccessD] Converting to 2003 > We're moving our A97 apps to 2003. A2K3 defaults to 2000 version. Is > there any consensus on which format makes most sense for the upgraded apps > (2000 or 2003)? > > TIA > > Jim DeMarco > Director of Application Development > Hudson Health Plan > > > > *********************************************************************************** > "This electronic message is intended to be for the use only of the named > recipient, and may contain information from Hudson Health Plan (HHP) that > is confidential or privileged. If you are not the intended recipient, you > are hereby notified that any disclosure, copying, distribution or use of > the contents of this message is strictly prohibited. If you have received > this message in error or are not the named recipient, please notify us > immediately, either by contacting the sender at the electronic mail > address noted above or calling HHP at (914) 631-1611. If you are not the > intended recipient, please do not forward this email to anyone, and delete > and destroy all copies of this message. Thank You". > *********************************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From KP at sdsonline.net Fri Feb 24 16:06:28 2006 From: KP at sdsonline.net (Kath Pelletti) Date: Sat, 25 Feb 2006 09:06:28 +1100 Subject: [AccessD] Contract References: <200602240913.k1O9DKg04764@smarthost.yourcomms.net> Message-ID: <003601c6398e$908f2f80$6501a8c0@user> Richard - I have just had a solicitor draw up a contract for me (regarding software - but different purpose) and some of these clauses seem relevant to you (maybe 13.ii, 13.iii, 13.iv) But it would probably be worth getting something done properly if you can add it to the bill? rgds Kath 13.1 This Agreement may be terminated by either party forthwith upon the happening of any of the following events: (i) upon any material breach by either party of its obligations under this Agreement where the non-breaching party has provided fourteen (14) days written notice to the breaching party specifying the material breach and such material breach has not been remedied during the fourteen (14) day period; (ii) all or substantially all of the assets of the other party are acquired by or its effective control is transferred to any third party, whether governmental or private; (iii) if the other party has a receiver, or receiver and manager appointed over the whole or any substantial part of its assets or if an official manager of the other party is appointed; (iv) a court order is made or a resolution of the other party's shareholder is passed for the winding up of the other party other than for the purpose of reconstruction, re-organisation or amalgamation; (v) if the other party becomes insolvent or makes an assignment for the benefit of creditors or any agreement pursuant to the Law of Bankruptcy or otherwise acknowledges its insolvency. ----- Original Message ----- From: Griffiths, Richard To: AccessD Sent: Friday, February 24, 2006 8:25 PM Subject: [AccessD] Contract Hi Group I am a stand alone software developer and have been asked by a client to add (a line/paragraph) into the contract (for a piece of off-the-shelf software I have written) something to ensure that should my business go bankrupt/fail the source code can be released to them for product support. I have no problem with this and understand their concerns. What I'm not sure about is the appropriate wording for this - does anyone have any advice/standard wording they use for this purpose. I have put something together myself but the contract will go to their contracts department (we are talking about a local government client here) for scrutiny. As I have said I am happy to release the source code should my business fail but I don't want to lose any copyright/ownership - also I am finding it difficult to cover what product support constitutes - I don't want to have to release the code if they demand enhancements that I do not want to develop at that time say. Equally I don't want to write a long protracted contract (the software only costs ?5000 so I'm not going to get legal advice or use Escrow) - I am looking for something simple and to the point. All contributions welcome. Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Feb 24 16:25:51 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 24 Feb 2006 16:25:51 -0600 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: <5287065.1140813611280.JavaMail.root@sniper14> Message-ID: <000901c63991$451541e0$0200a8c0@danwaters> Very Scary!! You can't sue someone who's in the middle of Tashkent, Uzbekistan! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, February 24, 2006 2:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) All, Here is a Friday puzzle on subject I suppose: Have a look at this screenshot http://www.code-vb.com/help/dlg_frmProcedure.htm and now on this one: http://www.smartvba.com/methods_builder.htm The first (http://www.code-vb.com/help/dlg_frmProcedure.htm) - was first time released in the beginning of the last year and the latter - in the end. These are not related companies. I know the history of the first and how it was created. Question: How it comes that the design of the latter company's software is sometimes literally the same? (and many other forms are like that). My guess: The designs of the first were replicated manually or decompiled (there is good VB6 decompiler - the info about it was published here) then adjusted and published by the second company. Anybody believes that designs can be so similar if the second company didn't know anything about the software products of the first? Am I getting paranoid? If not, then one who publishes MDE apps may expect to see their GUI designs (and good GUI designs is a lot of work) be published within other companies' software... Shamil ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, February 24, 2006 7:08 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) >I think the threat is the same as any other knockoff, from Vuitton bags > to Rolex watches to custom software, the customer gets something cheap > and the original manufacturer gets ripped off. > > Charlotte Foust > > > -----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 24, 2006 6:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > > > I've got two products which I send out as mdes. And I worry about the > product being knocked off, especially in China where we are beginning to > > make some sales with the manufacturing system. > > For both of them the primary intellectual value is in the code - The > Sleep Advisor's diagnostic engine is about 7000 lines and the decision > tree on the input side, which guides which questions to ask is about > half that. > > The manufacturing system like any system could be knocked off pretty > much by copying the design and features of the forms and reports. No > magic there. The MRP calculation and cost-roll up program have some > tricks in them. > > Nevertheless, it's not rocket science, and I suppose someone could > duplicate the whole thing. > > But if a product can be duplicated pretty much by looking at the > outside, I wonder what the real threat is here? I'm probably missing > something. > > Rocky > > > Bryan Carbonnell wrote: >> On 2/24/06, Rocky Smolin - Beach Access Software >> wrote: >> >>> But does it decompile the code? >>> >> >> Not acording to the page. >> >> "*You cannot alter or gain access to the original VBA code - you must >> use Macros instead." >> >> -- >> Bryan Carbonnell - carbonnb at gmail.com >> Life's journey is not to arrive at the grave safely in a well >> preserved body, but rather to skid in sideways, totally worn out, >> shouting "What a great ride!" >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Feb 24 17:51:33 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 25 Feb 2006 02:51:33 +0300 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: <000901c63991$451541e0$0200a8c0@danwaters> Message-ID: <003601c6399d$64caf870$6401a8c0@Nant> Just curious: eFax: +1 888 2134472 (http://www.smartvba.com/AboutUs.htm) is Tashkent, Uzbekistan or United States? Or 888 could be everywhere in this World despite the fact that country prefix is +1? (http://www.csgnetwork.com/usphoneareacodesng.html) There are other addresses/locations of related sites - and this is Moscow, Germany, United States United States - Analyzer LLC - +1 248 282 0304 - www.analyzerxl.com Germany - FRANZ AG - (866) 493-5883 www.neuroxl.com, www.pwdsaver.com, marketnewsanalyzer.com Russia - OLSOFT Software Development Company- http://www.olsoft.biz/contact.htm This their company (www.smartvba.com) tries to hide its origins in our Internet times! (as well as many its related sites). Looks funny if it would have not been that a sad story... (Looks funny because they seems to heavily use search engines to promote their software by any means and in the same time expect they cannot be traced...) Pity folks here don't know Russian - on the referred below site the owner(?) of this company/net of companies talks about poetry and other "high matters" - looks wise what they say: http://www.olevsky.com/prose/Small.htm: "Values: It happens important where to go, but it also happens not important where to go but how..." It looks like his words do not correlate with his business... Here he is: Taskent Business Club Olevskiy Evgene Isakovich - Chairman of the Board Private firm "OLSOFT" http://tbc.boom.ru/founders.html Eugene at olsoft.biz Am I dreaming bad nightmare dreams and therefore I urgently need to purchase Rocky's software license? Am I getting paranoid? Or you do also believe all that happens in reality and all these companies are related? Please help to clarify these troubles... Thank you. Shamil P.S. Sorry moderators but the situation is so unexpected and unexplainable and if they win (they have money and many people working for them as far as I see) then it may happen that a small team of hardworking people will loose almost all their hopes for better future... ----- Original Message ----- From: "Dan Waters" To: "'Access Developers discussion and problem solving'" Sent: Saturday, February 25, 2006 1:25 AM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > Very Scary!! > > You can't sue someone who's in the middle of Tashkent, Uzbekistan! > > Dan > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Friday, February 24, 2006 2:31 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > > All, > > Here is a Friday puzzle on subject I suppose: > > Have a look at this screenshot > > http://www.code-vb.com/help/dlg_frmProcedure.htm > > and now on this one: > > http://www.smartvba.com/methods_builder.htm > > The first (http://www.code-vb.com/help/dlg_frmProcedure.htm) - was first > time released in the beginning of the last year and the latter - in the > end. > > These are not related companies. > > I know the history of the first and how it was created. > > Question: How it comes that the design of the latter company's software is > sometimes literally the same? (and many other forms are like that). > > My guess: The designs of the first were replicated manually or > decompiled (there is good VB6 decompiler - the info about it was > published here) then adjusted and published by the second company. > > Anybody believes that designs can be so similar if the second company > didn't > know anything about the software products of the first? > Am I getting paranoid? > > If not, then one who publishes MDE apps may expect to see their GUI > designs (and good GUI designs is a lot of work) be published within other > companies' software... > > Shamil > From ecritt1 at alltel.net Sat Feb 25 07:44:33 2006 From: ecritt1 at alltel.net (Penn White) Date: Sat, 25 Feb 2006 08:44:33 -0500 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: <000901c63991$451541e0$0200a8c0@danwaters> <003601c6399d$64caf870$6401a8c0@Nant> Message-ID: <001c01c63a11$9c4aa330$0302a8c0@pennp4> All, I've had a little trouble following all of Shamil's links and logic but it seems to boil down to a company (or multiple companies under the same -hidden - ownership) is in the process of reverse engineering other people's work. If I understand it correctly, it's nothing new and not unique to computer programs. IMHO, everything released into the public domain will, sooner or later, be copied or even reverse engineered by somebody if it's good enough. I beleive that the only way to combat this is to continue to improve the program and market effectively and continually. If the reverse engineers/copycats were so smart, they'd be producing their own work instead of copying everybody elses. This may not be the case in instances like China stealing our proprietary missle development technology which saves them years of work and gives them access to things they don't have the resources yet to develop themselves. But an Access or SQL Server database app like I develop is really pretty simple to copy. What I have going for me is an established customer base and a head start on the competition. I've got over a year of development time in an app I am currently marketing and it's far from finished the way I'd like it to be. Sure, somebody can copy it and maybe even improve on it while they're at it but it will take them awhile and all that while, I'm selling more copies, doing more development and fine tuning, and establishing a loyal group of customers who trust me and know I'm responsive to their needs. They could switch to somebody else, but why would they bother? A new customer could buy a cheap knock-off of my program but ultimately, you get what you pay for and I'm still convinced I'll do a better job than some sorry hacker. My 2 cents. Penn ----- Original Message ----- From: "Shamil Salakhetdinov" To: "Access Developers discussion and problem solving" Sent: Friday, February 24, 2006 6:51 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) From boogieloogie at gmail.com Sat Feb 25 10:12:01 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Sat, 25 Feb 2006 12:12:01 -0400 Subject: [AccessD] Launching a dos program from Access 97 Message-ID: <3bf43ee90602250812y3039987fk65cb6e1ce62316e7@mail.gmail.com> I have a client using an old DOS program called prethin.exe. It is in a folder called fmv. I do not need to pass any variables to it. Just need it to lauch after I feed data to the underlying dbf's. Is it possible to launch it with some vba code behind a button in Access 97? Anyone have a sample? Thanks Tim From Gustav at cactus.dk Sat Feb 25 10:22:20 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 25 Feb 2006 17:22:20 +0100 Subject: [AccessD] Launching a dos program from Access 97 Message-ID: Hi Tim Look up the Shell() function ... it is exactly for this purpose. Remember, if path contains spaces it must be wrapped in double-quotes, and full filename must be used (.exe). /gustav >>> boogieloogie at gmail.com 25-02-2006 17:12 >>> I have a client using an old DOS program called prethin.exe. It is in a folder called fmv. I do not need to pass any variables to it. Just need it to lauch after I feed data to the underlying dbf's. Is it possible to launch it with some vba code behind a button in Access 97? Anyone have a sample? Thanks Tim From martyconnelly at shaw.ca Sat Feb 25 12:46:36 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 25 Feb 2006 10:46:36 -0800 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: <002701c63981$578360b0$6401a8c0@Nant> Message-ID: <4400A60C.7020006@shaw.ca> It is not that hard to do with an mde. Here is a utility. Michael Kaplan pointed me here about 3 or 4 years ago for password cracks. MDE forms/reports extractor v2.2 MS Access 2000 add-in This utility is designed to allow you to extract the forms, reports and macros from an mde file to mdb (without the form/report class module code). It wont get the code behind the forms. http://accesstools.narod.ru/index.html Serge Gavrilov seems to be in your backyard. Shamil Salakhetdinov wrote: >All, > >Here is a Friday puzzle on subject I suppose: > >Have a look at this screenshot > >http://www.code-vb.com/help/dlg_frmProcedure.htm > >and now on this one: > >http://www.smartvba.com/methods_builder.htm > >The first (http://www.code-vb.com/help/dlg_frmProcedure.htm) - was first >time released in the beginning of the last year and the latter - in the end. > >These are not related companies. > >I know the history of the first and how it was created. > >Question: How it comes that the design of the latter company's software is >sometimes literally the same? (and many other forms are like that). > >My guess: The designs of the first were replicated manually or >decompiled (there is good VB6 decompiler - the info about it was >published here) then adjusted and published by the second company. > >Anybody believes that designs can be so similar if the second company didn't >know anything about the software products of the first? >Am I getting paranoid? > >If not, then one who publishes MDE apps may expect to see their GUI >designs (and good GUI designs is a lot of work) be published within other >companies' software... > >Shamil > >----- Original Message ----- >From: "Charlotte Foust" >To: "Access Developers discussion and problem solving" > >Sent: Friday, February 24, 2006 7:08 PM >Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > > > > >>I think the threat is the same as any other knockoff, from Vuitton bags >>to Rolex watches to custom software, the customer gets something cheap >>and the original manufacturer gets ripped off. >> >>Charlotte Foust >> >> >>-----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 24, 2006 6:51 AM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) >> >> >>I've got two products which I send out as mdes. And I worry about the >>product being knocked off, especially in China where we are beginning to >> >>make some sales with the manufacturing system. >> >>For both of them the primary intellectual value is in the code - The >>Sleep Advisor's diagnostic engine is about 7000 lines and the decision >>tree on the input side, which guides which questions to ask is about >>half that. >> >>The manufacturing system like any system could be knocked off pretty >>much by copying the design and features of the forms and reports. No >>magic there. The MRP calculation and cost-roll up program have some >>tricks in them. >> >>Nevertheless, it's not rocket science, and I suppose someone could >>duplicate the whole thing. >> >>But if a product can be duplicated pretty much by looking at the >>outside, I wonder what the real threat is here? I'm probably missing >>something. >> >>Rocky >> >> >>Bryan Carbonnell wrote: >> >> >>>On 2/24/06, Rocky Smolin - Beach Access Software >>>wrote: >>> >>> >>> >>>>But does it decompile the code? >>>> >>>> >>>> >>>Not acording to the page. >>> >>>"*You cannot alter or gain access to the original VBA code - you must >>>use Macros instead." >>> >>>-- >>>Bryan Carbonnell - carbonnb at gmail.com >>>Life's journey is not to arrive at the grave safely in a well >>>preserved body, but rather to skid in sideways, totally worn out, >>>shouting "What a great ride!" >>> >>> >>> >>-- >>Rocky Smolin >>Beach Access Software >>858-259-4334 >>www.e-z-mrp.com >> >> >> >> > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Sat Feb 25 13:55:39 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 25 Feb 2006 11:55:39 -0800 Subject: [AccessD] Focus On Currrent Control After Update Message-ID: <4400B63B.7080803@san.rr.com> Dear List: I have the following module: Private Sub fldContainerCheck1_AfterUpdate() If CheckTheCheck(fldContainerCheck1) = False Then fldContainerCheck1 = "" Me(Screen.ActiveControl.Name).SetFocus End If End Sub if the function CheckTheCheck returns fasle then I want to set the focus back on the field fldContainerCheck1. If I write Me(Screen.ActiveControl.Name).SetFocus or Me.fldContainerCheck1.SetFocus the focus ends up on the next control in tab order. If I write Me(Screen.PreviousControl.Name).SetFocus the focus ends up on the previous control in tab order. How can I get the focus back on the field that has the problem? I tried If CheckTheCheck(fldContainerCheck1) = False Then Me.fldContainerCheck1.Undo in both before and after update events but it didn't undo the entry. I don't want to undo the entire record at this point, just blank the field with the bad number and set the focus there. MTIA Rocky SetFocus -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dwaters at usinternet.com Sat Feb 25 14:13:00 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 25 Feb 2006 14:13:00 -0600 Subject: [AccessD] Focus On Currrent Control After Update In-Reply-To: <13817049.1140897551111.JavaMail.root@sniper14> Message-ID: <000001c63a47$e0fe77a0$0200a8c0@danwaters> Hi Rocky, I have to deal with this all the time. The point is you can't set the focus to a control that already has the focus. And, you sometimes don't know if that control already has the focus. 1st Approach: If you have a control that is ALWAYS enabled, but you're SURE will not have the focus, then you can do this: '-- Move focus txtAlwaysEnabled.SetFocus txtWantFocusHere.SetFocus 2nd approach: First, make an unbound, visible, unlocked, enabled textbox with transparent background and border. Call it txtSetFocusOnPurpose. '-- Move focus txtSetFocusOnPurpose.SetFocus txtWantFocusHere.SetFocus 3rd Approach: (Which I never had much luck with) '-- Move focus If Screen.ActiveControl.Name <> "txtWantFocusHere" Then txtWantFocusHere.SetFocus End If Hope this is of some help! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Saturday, February 25, 2006 1:56 PM To: Access Developers discussion and problem solving Subject: [AccessD] Focus On Currrent Control After Update Dear List: I have the following module: Private Sub fldContainerCheck1_AfterUpdate() If CheckTheCheck(fldContainerCheck1) = False Then fldContainerCheck1 = "" Me(Screen.ActiveControl.Name).SetFocus End If End Sub if the function CheckTheCheck returns fasle then I want to set the focus back on the field fldContainerCheck1. If I write Me(Screen.ActiveControl.Name).SetFocus or Me.fldContainerCheck1.SetFocus the focus ends up on the next control in tab order. If I write Me(Screen.PreviousControl.Name).SetFocus the focus ends up on the previous control in tab order. How can I get the focus back on the field that has the problem? I tried If CheckTheCheck(fldContainerCheck1) = False Then Me.fldContainerCheck1.Undo in both before and after update events but it didn't undo the entry. I don't want to undo the entire record at this point, just blank the field with the bad number and set the focus there. MTIA Rocky SetFocus -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Sat Feb 25 16:50:47 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 26 Feb 2006 01:50:47 +0300 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: <002701c63981$578360b0$6401a8c0@Nant> <4400A60C.7020006@shaw.ca> Message-ID: <006601c63a5e$2ab0e250$6401a8c0@Nant> Marty, I know how to do that with mde without Michael Kaplan's or Serge Gavrilov's utilities. In fact it's very easy and it can't be even called as hacking because it uses undocumented feature and not more than that. I did get on it occasionally while investigating MS Access internals trying to workaround its bugs/limitations. I have never announced this "knowledge" as a service or as an add-in. Just in one case here I helped to get forms/reports designs when this help was requested. And that time I used other technique, which needed much more work than to just use mentioned above undocumented feature. And this help was free. And it was for the author of the original software who lost the sources. And I have never used that knowledge to make copycat software. Yes, I know Serge Gavrilov by e-mail but his utilities/business with MDEs is his own business and his own responsibility - I can' t influence that. BTW, Serge is living in Tcheliabinsk, Urals and I'm in St.Petersburg - we are 2000+ km apart - not a distance in Internet times but it is not my backyard :) Shamil ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Saturday, February 25, 2006 9:46 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > It is not that hard to do with an mde. Here is a utility. > Michael Kaplan pointed me here about 3 or 4 years ago for password cracks. > > MDE forms/reports extractor v2.2 MS Access 2000 add-in > This utility is designed to allow you to extract the forms, reports > and macros from an mde file to mdb (without the form/report class module > code). > It wont get the code behind the forms. > > http://accesstools.narod.ru/index.html > > Serge Gavrilov seems to be in your backyard. > > > Shamil Salakhetdinov wrote: > >>All, >> >>Here is a Friday puzzle on subject I suppose: >> >>Have a look at this screenshot >> >>http://www.code-vb.com/help/dlg_frmProcedure.htm >> >>and now on this one: >> >>http://www.smartvba.com/methods_builder.htm >> >>The first (http://www.code-vb.com/help/dlg_frmProcedure.htm) - was first >>time released in the beginning of the last year and the latter - in the >>end. >> >>These are not related companies. >> >>I know the history of the first and how it was created. >> >>Question: How it comes that the design of the latter company's software is >>sometimes literally the same? (and many other forms are like that). >> >>My guess: The designs of the first were replicated manually or >>decompiled (there is good VB6 decompiler - the info about it was >>published here) then adjusted and published by the second company. >> >>Anybody believes that designs can be so similar if the second company >>didn't >>know anything about the software products of the first? >>Am I getting paranoid? >> >>If not, then one who publishes MDE apps may expect to see their GUI >>designs (and good GUI designs is a lot of work) be published within other >>companies' software... >> >>Shamil >> From shamil at users.mns.ru Sat Feb 25 16:52:08 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sun, 26 Feb 2006 01:52:08 +0300 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: <000901c63991$451541e0$0200a8c0@danwaters><003601c6399d$64caf870$6401a8c0@Nant> <001c01c63a11$9c4aa330$0302a8c0@pennp4> Message-ID: <006701c63a5e$2ade33e0$6401a8c0@Nant> <<< I'm still convinced I'll do a better job than some sorry hacker. >>> Penn, I'm not making tragedy with this special case - yes, no doubt, I can do better job than some sorry hackers, as you say - what I'm saying is: - this copycat case of MS Access/VB6 add-ins is an obvious impudent case I have never seen before; - MS Access/VB6 add-ins' customers are worldwide customers not customers like you mention and when a third party company uses copycat software with dumping prices this may undermine all the efforts and investments of the original software company and make it bankrupt; - when you program add-ins it's important to find a good selling idea and implement it - and these are big investments - when this is done and published copycatting would take 1/10th or less of the original efforts and when a big copycat company is dumping against a small hardworking team then this is bad to say the least because it spoils this World... Shamil ----- Original Message ----- From: "Penn White" To: "Access Developers discussion and problem solving" Sent: Saturday, February 25, 2006 4:44 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > All, > > I've had a little trouble following all of Shamil's links and logic but it > seems to boil down to a company (or multiple companies under the > same -hidden - ownership) is in the process of reverse engineering other > people's work. > > If I understand it correctly, it's nothing new and not unique to computer > programs. IMHO, everything released into the public domain will, sooner > or > later, be copied or even reverse engineered by somebody if it's good > enough. > > I beleive that the only way to combat this is to continue to improve the > program and market effectively and continually. If the reverse > engineers/copycats were so smart, they'd be producing their own work > instead > of copying everybody elses. > > This may not be the case in instances like China stealing our proprietary > missle development technology which saves them years of work and gives > them > access to things they don't have the resources yet to develop themselves. > But an Access or SQL Server database app like I develop is really pretty > simple to copy. > > What I have going for me is an established customer base and a head start > on > the competition. I've got over a year of development time in an app I am > currently marketing and it's far from finished the way I'd like it to be. > Sure, somebody can copy it and maybe even improve on it while they're at > it > but it will take them awhile and all that while, I'm selling more copies, > doing more development and fine tuning, and establishing a loyal group of > customers who trust me and know I'm responsive to their needs. They could > switch to somebody else, but why would they bother? A new customer could > buy a cheap knock-off of my program but ultimately, you get what you pay > for > and I'm still convinced I'll do a better job than some sorry hacker. > > My 2 cents. > > Penn > > > ----- Original Message ----- > From: "Shamil Salakhetdinov" > To: "Access Developers discussion and problem solving" > > Sent: Friday, February 24, 2006 6:51 PM > Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sat Feb 25 17:09:36 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 25 Feb 2006 15:09:36 -0800 Subject: [AccessD] Focus On Currrent Control After Update In-Reply-To: <000001c63a47$e0fe77a0$0200a8c0@danwaters> References: <000001c63a47$e0fe77a0$0200a8c0@danwaters> Message-ID: <4400E3B0.8030900@san.rr.com> Dan: Approach #1 worked. Thanks. Rocky Dan Waters wrote: > Hi Rocky, > > I have to deal with this all the time. > > The point is you can't set the focus to a control that already has the > focus. And, you sometimes don't know if that control already has the focus. > > > 1st Approach: > > If you have a control that is ALWAYS enabled, but you're SURE will not have > the focus, then you can do this: > > '-- Move focus > txtAlwaysEnabled.SetFocus > txtWantFocusHere.SetFocus > > > 2nd approach: > > First, make an unbound, visible, unlocked, enabled textbox with transparent > background and border. Call it txtSetFocusOnPurpose. > > '-- Move focus > txtSetFocusOnPurpose.SetFocus > txtWantFocusHere.SetFocus > > > 3rd Approach: (Which I never had much luck with) > > '-- Move focus > If Screen.ActiveControl.Name <> "txtWantFocusHere" Then > txtWantFocusHere.SetFocus > End If > > > Hope this is of some help! > > Dan > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Saturday, February 25, 2006 1:56 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Focus On Currrent Control After Update > > Dear List: > > I have the following module: > > Private Sub fldContainerCheck1_AfterUpdate() > If CheckTheCheck(fldContainerCheck1) = False Then > fldContainerCheck1 = "" > Me(Screen.ActiveControl.Name).SetFocus > End If > > End Sub > > if the function CheckTheCheck returns fasle then I want to set the focus > back on the field fldContainerCheck1. > > If I write Me(Screen.ActiveControl.Name).SetFocus or > Me.fldContainerCheck1.SetFocus the focus ends up on the next control in > tab order. > > If I write Me(Screen.PreviousControl.Name).SetFocus the focus ends up on > the previous control in tab order. > > How can I get the focus back on the field that has the problem? > > I tried If CheckTheCheck(fldContainerCheck1) = False Then > Me.fldContainerCheck1.Undo > > in both before and after update events but it didn't undo the entry. I > don't want to undo the entire record at this point, just blank the field > with the bad number and set the focus there. > > MTIA > > Rocky > > > SetFocus > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From carbonnb at gmail.com Sat Feb 25 19:10:48 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Sat, 25 Feb 2006 20:10:48 -0500 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: <006601c63a5e$2ab0e250$6401a8c0@Nant> References: <002701c63981$578360b0$6401a8c0@Nant> <4400A60C.7020006@shaw.ca> <006601c63a5e$2ab0e250$6401a8c0@Nant> Message-ID: On 2/25/06, Shamil Salakhetdinov wrote: > I have never announced this "knowledge" as a service or as an add-in. > Just in one case here I helped to get forms/reports designs when this > help was requested. And that time I used other technique, which needed much > more work than to just use mentioned above undocumented feature. > And this help was free. And it was for the author of the original software > who lost the sources. And I STILL thank you Shamil. You saved me a ton of work!! -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From boogieloogie at gmail.com Sun Feb 26 15:23:18 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Sun, 26 Feb 2006 17:23:18 -0400 Subject: [AccessD] Launching a dos program from Access 97 In-Reply-To: References: Message-ID: <3bf43ee90602261323i742e86eqfa6b4ba28e6cb430@mail.gmail.com> Hi Gustav I should have explained myself a bit better. The particular program will not fire by using Dim ProgLaunch ProgLaunch = Shell("C:\fmv\prethin.exe", 1) will crash it. For some reason certain files are not fired when starting this way. I have no access to the code nor the programmer of the dos program. Some how I have to fire c:\windows\system32\cmd.exe change to the fmv folder then launch prethin.exe from there. Any ideas? Thanks Tim I have to launch it from within the dos window. I do not know how to do this On 2/25/06, Gustav Brock wrote: > > Hi Tim > > Look up the Shell() function ... it is exactly for this purpose. > > Remember, if path contains spaces it must be wrapped in double-quotes, and > full filename must be used (.exe). > > /gustav > > >>> boogieloogie at gmail.com 25-02-2006 17:12 >>> > I have a client using an old DOS program called prethin.exe. It is in a > folder called fmv. I do not need to pass any variables to it. Just need it > to lauch after I feed data to the underlying dbf's. Is it possible to > launch > it with some vba code behind a button in Access 97? Anyone have a sample? > > Thanks > > Tim > > -- > 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 26 15:40:11 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 26 Feb 2006 22:40:11 +0100 Subject: [AccessD] Launching a dos program from Access 97 Message-ID: Hi Tim Just guessing ... create a batch file that will launch and run the application. You may need to use CD to make the folder of the app the current folder. When success with this, use Shell() to launch the batch file. If that fails, try with a shortcut or pif file. Also, you may try using Shell() with the START command. Type START /? on the command line for help on this. /gustav >>> boogieloogie at gmail.com 26-02-2006 22:23 >>> Hi Gustav I should have explained myself a bit better. The particular program will not fire by using Dim ProgLaunch ProgLaunch = Shell("C:\fmv\prethin.exe", 1) will crash it. For some reason certain files are not fired when starting this way. I have no access to the code nor the programmer of the dos program. Some how I have to fire c:\windows\system32\cmd.exe change to the fmv folder then launch prethin.exe from there. Any ideas? Thanks Tim I have to launch it from within the dos window. I do not know how to do this On 2/25/06, Gustav Brock wrote: > > Hi Tim > > Look up the Shell() function ... it is exactly for this purpose. > > Remember, if path contains spaces it must be wrapped in double-quotes, and > full filename must be used (.exe). > > /gustav > > >>> boogieloogie at gmail.com 25-02-2006 17:12 >>> > I have a client using an old DOS program called prethin.exe. It is in a > folder called fmv. I do not need to pass any variables to it. Just need it > to lauch after I feed data to the underlying dbf's. Is it possible to > launch > it with some vba code behind a button in Access 97? Anyone have a sample? > > Thanks > > Tim From newsgrps at dalyn.co.nz Sun Feb 26 23:07:11 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Mon, 27 Feb 2006 18:07:11 +1300 Subject: [AccessD] Sub Report not going into Two Columns Message-ID: <7.0.1.0.0.20060227175809.01acbe68@dalyn.co.nz> Cross Posted Access D, Access L Access XP. I have a report which is a long column of text boxes with the text entered into the control source. Because different printers format reports slightly differently I have made the boxes shorter than the text warrants and have set the can grow property on for all the text boxes. There are no records associated with this report. I have set the Page Setup .. Number of columns to 2 and when I view the report the text boxes flow over two columns. The full report is two pages long. However, when I use the report as a subreport for another main report then the text boxes remain in one column. I have checked help and it suggests changing the column order to across then down. I have tried this but it doesn't make any difference (I guess because there are no records). Apart from physically placing the text boxes in two columns, does anyone know how I can get them to flow properly? Regards David Emerson Dalyn Software Ltd 999 Moonshine Rd, RD 1 Judgeford, Porirua 6006 Phone (04) 235-6782 Fax (04) 235-6783 Mob (027) 280-9348 From wdhindman at bellsouth.net Mon Feb 27 01:18:16 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 27 Feb 2006 02:18:16 -0500 Subject: [AccessD] Sub Report not going into Two Columns References: <7.0.1.0.0.20060227175809.01acbe68@dalyn.co.nz> Message-ID: <001f01c63b6d$faee19a0$6101a8c0@50NM721> ...best guess is that the width of your design subreport area on the report is narrower than the width of the two columns in the subreport when the "can grow" is fully expanded at runtime ...try decreasing the font size of the columns to verify this is the problem ...or disable the "can grow" ...hth. William ----- Original Message ----- From: "David Emerson" To: ; Sent: Monday, February 27, 2006 12:07 AM Subject: [AccessD] Sub Report not going into Two Columns > Cross Posted Access D, Access L > > Access XP. > > I have a report which is a long column of text boxes with the text > entered into the control source. Because different printers format > reports slightly differently I have made the boxes shorter than the > text warrants and have set the can grow property on for all the text > boxes. There are no records associated with this report. > > I have set the Page Setup .. Number of columns to 2 and when I view > the report the text boxes flow over two columns. The full report is > two pages long. > > However, when I use the report as a subreport for another main report > then the text boxes remain in one column. I have checked help and it > suggests changing the column order to across then down. I have tried > this but it doesn't make any difference (I guess because there are no > records). > > Apart from physically placing the text boxes in two columns, does > anyone know how I can get them to flow properly? > > Regards > > David Emerson > Dalyn Software Ltd > 999 Moonshine Rd, RD 1 > Judgeford, Porirua 6006 > Phone (04) 235-6782 > Fax (04) 235-6783 > Mob (027) 280-9348 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From R.Griffiths at bury.gov.uk Mon Feb 27 04:46:19 2006 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Mon, 27 Feb 2006 10:46:19 -0000 Subject: [AccessD] Contract Message-ID: <200602271033.k1RAXkg14290@smarthost.yourcomms.net> Thanks to Dan, Kath, Marty for your contributions. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: 24 February 2006 18:04 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Contract Hi Richard, I'm having exactly this issue with a large customer I currently have. What we've worked out is this: If they are having trouble contacting me (or my company), they will send a registered letter to my legal address. If they don't hear from me in 30 days, then they have the right to claim ownership of the application by sending another registered letter making that claim. Their ownership obtained this way would be non-exclusive and non-transferable, so it won't affect your ability to continue your business as before, assuming you didn't lose the fight with the truck! Actually, they have a good point in wanting to work on this on their own if you can't or won't provide a timely response to their request for an update or modification. To cover this, I allow the IT department, by contract, to make any modifications they want at any time. Their working on this will not change any state of ownership. Of course, I won't warranty any problems caused by them. In practice, the IT department will probably prefer to not get involved in modifications to software that will continue to be maintained by an outside entity, so you should still get first crack at the modification work. You could consider having someone you trust as a developer to be your 'backup' if you're currently busy. Good Luck! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Friday, February 24, 2006 3:26 AM To: AccessD Subject: [AccessD] Contract Hi Group I am a stand alone software developer and have been asked by a client to add (a line/paragraph) into the contract (for a piece of off-the-shelf software I have written) something to ensure that should my business go bankrupt/fail the source code can be released to them for product support. I have no problem with this and understand their concerns. What I'm not sure about is the appropriate wording for this - does anyone have any advice/standard wording they use for this purpose. I have put something together myself but the contract will go to their contracts department (we are talking about a local government client here) for scrutiny. As I have said I am happy to release the source code should my business fail but I don't want to lose any copyright/ownership - also I am finding it difficult to cover what product support constitutes - I don't want to have to release the code if they demand enhancements that I do not want to develop at that time say. Equally I don't want to write a long protracted contract (the software only costs ?5000 so I'm not going to get legal advice or use Escrow) - I am looking for something simple and to the point. All contributions welcome. Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From boogieloogie at gmail.com Mon Feb 27 06:43:07 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Mon, 27 Feb 2006 08:43:07 -0400 Subject: [AccessD] Launching a dos program from Access 97 In-Reply-To: References: Message-ID: <3bf43ee90602270443n39039796ye9f91390f8e32136@mail.gmail.com> Thanks Gustav On 2/26/06, Gustav Brock wrote: > > Hi Tim > > Just guessing ... create a batch file that will launch and run the > application. > You may need to use CD to make the folder of the app the current folder. > When success with this, use Shell() to launch the batch file. > > If that fails, try with a shortcut or pif file. > Also, you may try using Shell() with the START command. Type START /? on > the command line for help on this. > > /gustav > > >>> boogieloogie at gmail.com 26-02-2006 22:23 >>> > Hi Gustav > > I should have explained myself a bit better. The particular program will > not > fire by using > > Dim ProgLaunch > ProgLaunch = Shell("C:\fmv\prethin.exe", 1) will crash it. For some reason > certain files are not fired when starting this way. I have no access to > the > code nor the programmer of the dos program. > > Some how I have to fire c:\windows\system32\cmd.exe change to the fmv > folder > then launch prethin.exe from there. > > Any ideas? > > Thanks > > Tim > > I have to launch it from within the dos window. I do not know how to do > this > On 2/25/06, Gustav Brock wrote: > > > > Hi Tim > > > > Look up the Shell() function ... it is exactly for this purpose. > > > > Remember, if path contains spaces it must be wrapped in double-quotes, > and > > full filename must be used (.exe). > > > > /gustav > > > > >>> boogieloogie at gmail.com 25-02-2006 17:12 >>> > > I have a client using an old DOS program called prethin.exe. It is in a > > folder called fmv. I do not need to pass any variables to it. Just need > it > > to lauch after I feed data to the underlying dbf's. Is it possible to > > launch > > it with some vba code behind a button in Access 97? Anyone have a > sample? > > > > Thanks > > > > Tim > > > -- > 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 27 06:52:30 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 27 Feb 2006 13:52:30 +0100 Subject: [AccessD] Launching a dos program from Access 97 Message-ID: Hi Tim You are welcome. But did you find a method? /gustav >>> boogieloogie at gmail.com 27-02-2006 13:43:07 >>> Thanks Gustav On 2/26/06, Gustav Brock wrote: > > Hi Tim > > Just guessing ... create a batch file that will launch and run the > application. > You may need to use CD to make the folder of the app the current folder. > When success with this, use Shell() to launch the batch file. > > If that fails, try with a shortcut or pif file. > Also, you may try using Shell() with the START command. Type START /? on > the command line for help on this. > > /gustav > > >>> boogieloogie at gmail.com 26-02-2006 22:23 >>> > Hi Gustav > > I should have explained myself a bit better. The particular program will > not > fire by using > > Dim ProgLaunch > ProgLaunch = Shell("C:\fmv\prethin.exe", 1) will crash it. For some reason > certain files are not fired when starting this way. I have no access to > the > code nor the programmer of the dos program. > > Some how I have to fire c:\windows\system32\cmd.exe change to the fmv > folder > then launch prethin.exe from there. > > Any ideas? > > Thanks > > Tim From boogieloogie at gmail.com Mon Feb 27 07:06:18 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Mon, 27 Feb 2006 09:06:18 -0400 Subject: [AccessD] Launching a dos program from Access 97 In-Reply-To: References: Message-ID: <3bf43ee90602270506h8c8d345m68a8f2951170c76e@mail.gmail.com> still working on it...on back burner for a couple of hours. I have deadline on something else right now. I will let you know how I do and post a working code here (If I get there from here) Thanks again. On 2/27/06, Gustav Brock wrote: > > Hi Tim > > You are welcome. But did you find a method? > > /gustav > > >>> boogieloogie at gmail.com 27-02-2006 13:43:07 >>> > Thanks Gustav > > On 2/26/06, Gustav Brock wrote: > > > > Hi Tim > > > > Just guessing ... create a batch file that will launch and run the > > application. > > You may need to use CD to make the folder of the app the current folder. > > When success with this, use Shell() to launch the batch file. > > > > If that fails, try with a shortcut or pif file. > > Also, you may try using Shell() with the START command. Type START /? on > > the command line for help on this. > > > > /gustav > > > > >>> boogieloogie at gmail.com 26-02-2006 22:23 >>> > > Hi Gustav > > > > I should have explained myself a bit better. The particular program will > > not > > fire by using > > > > Dim ProgLaunch > > ProgLaunch = Shell("C:\fmv\prethin.exe", 1) will crash it. For some > reason > > certain files are not fired when starting this way. I have no access to > > the > > code nor the programmer of the dos program. > > > > Some how I have to fire c:\windows\system32\cmd.exe change to the fmv > > folder > > then launch prethin.exe from there. > > > > Any ideas? > > > > Thanks > > > > Tim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jimdettman at earthlink.net Mon Feb 27 08:02:08 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 27 Feb 2006 09:02:08 -0500 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) In-Reply-To: <006601c63a5e$2ab0e250$6401a8c0@Nant> Message-ID: <> It's not even really undocumented. No where does it say you can't use OLE against a MDE (or course it doesn't say that either, so I suppose you might call it undocumented). Mike Gunderloy pointed this out many years ago. He was also the first (that I'm aware of) to point out that is was technically possible to de-tokenize VBA p-code from a MDE, just that no one had bothered to do it because of the size of the task vs. the worth. If it was simple as the one language I use (NPL), which has built in statements to do that ($Source and $Object) on the fly, we'd really be in trouble. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Shamil Salakhetdinov Sent: Saturday, February 25, 2006 5:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) Marty, I know how to do that with mde without Michael Kaplan's or Serge Gavrilov's utilities. In fact it's very easy and it can't be even called as hacking because it uses undocumented feature and not more than that. I did get on it occasionally while investigating MS Access internals trying to workaround its bugs/limitations. I have never announced this "knowledge" as a service or as an add-in. Just in one case here I helped to get forms/reports designs when this help was requested. And that time I used other technique, which needed much more work than to just use mentioned above undocumented feature. And this help was free. And it was for the author of the original software who lost the sources. And I have never used that knowledge to make copycat software. Yes, I know Serge Gavrilov by e-mail but his utilities/business with MDEs is his own business and his own responsibility - I can' t influence that. BTW, Serge is living in Tcheliabinsk, Urals and I'm in St.Petersburg - we are 2000+ km apart - not a distance in Internet times but it is not my backyard :) Shamil ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Saturday, February 25, 2006 9:46 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > It is not that hard to do with an mde. Here is a utility. > Michael Kaplan pointed me here about 3 or 4 years ago for password cracks. > > MDE forms/reports extractor v2.2 MS Access 2000 add-in > This utility is designed to allow you to extract the forms, reports > and macros from an mde file to mdb (without the form/report class module > code). > It wont get the code behind the forms. > > http://accesstools.narod.ru/index.html > > Serge Gavrilov seems to be in your backyard. > > > Shamil Salakhetdinov wrote: > >>All, >> >>Here is a Friday puzzle on subject I suppose: >> >>Have a look at this screenshot >> >>http://www.code-vb.com/help/dlg_frmProcedure.htm >> >>and now on this one: >> >>http://www.smartvba.com/methods_builder.htm >> >>The first (http://www.code-vb.com/help/dlg_frmProcedure.htm) - was first >>time released in the beginning of the last year and the latter - in the >>end. >> >>These are not related companies. >> >>I know the history of the first and how it was created. >> >>Question: How it comes that the design of the latter company's software is >>sometimes literally the same? (and many other forms are like that). >> >>My guess: The designs of the first were replicated manually or >>decompiled (there is good VB6 decompiler - the info about it was >>published here) then adjusted and published by the second company. >> >>Anybody believes that designs can be so similar if the second company >>didn't >>know anything about the software products of the first? >>Am I getting paranoid? >> >>If not, then one who publishes MDE apps may expect to see their GUI >>designs (and good GUI designs is a lot of work) be published within other >>companies' software... >> >>Shamil >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Mon Feb 27 09:31:08 2006 From: iggy at nanaimo.ark.com (Tony Septav) Date: Mon, 27 Feb 2006 07:31:08 -0800 Subject: [AccessD] Attach to Front End Message-ID: <44031B3C.9000805@nanaimo.ark.com> Hey All I have a program that allows a user (from the Front End Main program menu) to reattach "on the fly" to different data sets located in different project folders located on their local machine and/or on the network. There is a standard Back End mdb that resides in each folder and is used to record information for each project. In my testing the reattach "on the fly " everything seems to be working fine. My question is has anyone experienced any problems with reattaching to different Back Ends while remaining in the Front End. From bchacc at san.rr.com Mon Feb 27 09:43:01 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 27 Feb 2006 07:43:01 -0800 Subject: [AccessD] Attach to Front End In-Reply-To: <44031B3C.9000805@nanaimo.ark.com> References: <44031B3C.9000805@nanaimo.ark.com> Message-ID: <44031E05.8070800@san.rr.com> My manufacturing app supports multiple back end. I use Tribble's relinker with a few minor mods. Never had any trouble. However, since the opening form does a lot of housekeeping, loading globals and the like, and the user has to log in with a password, after relinking to a new back end I go to the opening form where they have to log in again. Rocky Tony Septav wrote: > Hey All > I have a program that allows a user (from the Front End Main program > menu) to reattach "on the fly" to different data sets located in > different project folders located on their local machine and/or on the > network. There is a standard Back End mdb that resides in each folder > and is used to record information for each project. In my testing the > reattach "on the fly " everything seems to be working fine. My question > is has anyone experienced any problems with reattaching to different > Back Ends while remaining in the Front End. > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Gustav at cactus.dk Mon Feb 27 09:57:03 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 27 Feb 2006 16:57:03 +0100 Subject: [AccessD] Attach to Front End Message-ID: Hi Tony No. That's standard procedure. Some (not me) even relink whenever the frontend is launched. /gustav >>> iggy at nanaimo.ark.com 27-02-2006 16:31:08 >>> .. has anyone experienced any problems with reattaching to different Back Ends while remaining in the Front End. From shamil at users.mns.ru Mon Feb 27 11:37:35 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Mon, 27 Feb 2006 20:37:35 +0300 Subject: [AccessD] Hacking MDE (was Creating a demo Access app?) References: Message-ID: <006901c63bc4$803b8150$6401a8c0@Nant> > It's not even really undocumented. No where does it say you can't use > OLE > against a MDE (or course it doesn't say that either, so I suppose you > might > call it undocumented). Jim, Unfortunately there is much easier way than OLE against running MDE... <<< > just that no one had bothered > to do it because of the size of the task vs. the worth >>> Somebody bothered to write VB6 decompiler mentioned here a while ago. Was writing this decompiler worth the trouble? There is no answer because they hide their coordinates. But they are making it better. And my guess it was used to copycat interfaces of the software, which I talked here about. VBA p-code can be easily extracted from mde. The unknowns who are developing VB6 decompiler know that for sure I think. They can succeed with VBA decompiler as they did with VB6 one. Shamil ----- Original Message ----- From: "Jim Dettman" To: "Access Developers discussion and problem solving" Sent: Monday, February 27, 2006 5:02 PM Subject: Re: [AccessD] Hacking MDE (was Creating a demo Access app?) > > < uses undocumented feature and not more than that.>> > > It's not even really undocumented. No where does it say you can't use > OLE > against a MDE (or course it doesn't say that either, so I suppose you > might > call it undocumented). Mike Gunderloy pointed this out many years ago. He > was also the first (that I'm aware of) to point out that is was > technically > possible to de-tokenize VBA p-code from a MDE, just that no one had > bothered > to do it because of the size of the task vs. the worth. > > If it was simple as the one language I use (NPL), which has built in > statements to do that ($Source and $Object) on the fly, we'd really be in > trouble. > > Jim. > <<< tail skipped >>> From Lambert.Heenan at AIG.com Mon Feb 27 11:33:17 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 27 Feb 2006 11:33:17 -0600 Subject: [AccessD] Launching a dos program from Access 97 Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1DDB1884@xlivmbx21.aig.com> This should be simple enough. Evidently prethin.exe needs to find files in the current folder (which needs to be C:\fmv), so all you really need is a batch file... @Echo Off C: CD \FMV Prethin ... The batch file above will take care of setting the current folder, and you would launch it like this... Dim strComspec as String Dim strBatch as string Dim nProgId as Long strComspec = Environ("COMSPEC") strBatch = "X:\SomeFolder\LaunchPrethin.BAT" nProgid = Shell(strComspec & "/C " & strBatch ) HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Boogie Loogie Sent: Monday, February 27, 2006 8:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Launching a dos program from Access 97 still working on it...on back burner for a couple of hours. I have deadline on something else right now. I will let you know how I do and post a working code here (If I get there from here) Thanks again. On 2/27/06, Gustav Brock wrote: > > Hi Tim > > You are welcome. But did you find a method? > > /gustav > > >>> boogieloogie at gmail.com 27-02-2006 13:43:07 >>> > Thanks Gustav > > On 2/26/06, Gustav Brock wrote: > > > > Hi Tim > > > > Just guessing ... create a batch file that will launch and run the > > application. You may need to use CD to make the folder of the app > > the current folder. When success with this, use Shell() to launch > > the batch file. > > > > If that fails, try with a shortcut or pif file. > > Also, you may try using Shell() with the START command. Type START > > /? on the command line for help on this. > > > > /gustav > > > > >>> boogieloogie at gmail.com 26-02-2006 22:23 >>> > > Hi Gustav > > > > I should have explained myself a bit better. The particular program > > will not fire by using > > > > Dim ProgLaunch > > ProgLaunch = Shell("C:\fmv\prethin.exe", 1) will crash it. For some > reason > > certain files are not fired when starting this way. I have no access > > to the code nor the programmer of the dos program. > > > > Some how I have to fire c:\windows\system32\cmd.exe change to the > > fmv folder then launch prethin.exe from there. > > > > Any ideas? > > > > Thanks > > > > Tim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Mon Feb 27 12:02:17 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Mon, 27 Feb 2006 13:02:17 -0500 Subject: [AccessD] Converting to 2003 Message-ID: <08F823FD83787D4BA0B99CA580AD3C7402DE681B@TTNEXCHCL2.hshhp.com> Thanks William. It's primarily that issue that prompted the question. The last reference I found on this list was that it was still an issue (an older message though). Are you sure it's been addressed? Not doubting, just verifying. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, February 24, 2006 4:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Converting to 2003 Jim ...now that the bloat in the post A2K format has been fixed, I've standardized on the A2K3 format whenever possible ...I no longer see any advantage in using the A2K format unless you're running in a mixed environment. William ----- Original Message ----- From: "Jim DeMarco" To: "AccessD (E-mail)" Sent: Friday, February 24, 2006 8:03 AM Subject: [AccessD] Converting to 2003 > We're moving our A97 apps to 2003. A2K3 defaults to 2000 version. Is > there any consensus on which format makes most sense for the upgraded apps > (2000 or 2003)? > > TIA > > Jim DeMarco > Director of Application Development > Hudson Health Plan > > > > ************************************************************************ *********** > "This electronic message is intended to be for the use only of the named > recipient, and may contain information from Hudson Health Plan (HHP) that > is confidential or privileged. If you are not the intended recipient, you > are hereby notified that any disclosure, copying, distribution or use of > the contents of this message is strictly prohibited. If you have received > this message in error or are not the named recipient, please notify us > immediately, either by contacting the sender at the electronic mail > address noted above or calling HHP at (914) 631-1611. If you are not the > intended recipient, please do not forward this email to anyone, and delete > and destroy all copies of this message. Thank You". > ************************************************************************ *********** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From newsgrps at dalyn.co.nz Mon Feb 27 16:03:04 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 28 Feb 2006 11:03:04 +1300 Subject: [AccessD] Sub Report not going into Two Columns In-Reply-To: <001f01c63b6d$faee19a0$6101a8c0@50NM721> References: <7.0.1.0.0.20060227175809.01acbe68@dalyn.co.nz> <001f01c63b6d$faee19a0$6101a8c0@50NM721> Message-ID: <7.0.1.0.0.20060228110128.01a53410@dalyn.co.nz> Thanks for the reply William. I tried all that with no joy. I might just have to go to fixed formatting. David At 27/02/2006, you wrote: >...best guess is that the width of your design subreport area on the report >is narrower than the width of the two columns in the subreport when the "can >grow" is fully expanded at runtime ...try decreasing the font size of the >columns to verify this is the problem ...or disable the "can grow" ...hth. > >William > >----- Original Message ----- >From: "David Emerson" >To: ; >Sent: Monday, February 27, 2006 12:07 AM >Subject: [AccessD] Sub Report not going into Two Columns > > > > Cross Posted Access D, Access L > > > > Access XP. > > > > I have a report which is a long column of text boxes with the text > > entered into the control source. Because different printers format > > reports slightly differently I have made the boxes shorter than the > > text warrants and have set the can grow property on for all the text > > boxes. There are no records associated with this report. > > > > I have set the Page Setup .. Number of columns to 2 and when I view > > the report the text boxes flow over two columns. The full report is > > two pages long. > > > > However, when I use the report as a subreport for another main report > > then the text boxes remain in one column. I have checked help and it > > suggests changing the column order to across then down. I have tried > > this but it doesn't make any difference (I guess because there are no > > records). > > > > Apart from physically placing the text boxes in two columns, does > > anyone know how I can get them to flow properly? > > > > Regards > > > > David Emerson > > Dalyn Software Ltd > > 999 Moonshine Rd, RD 1 > > Judgeford, Porirua 6006 > > Phone (04) 235-6782 > > Fax (04) 235-6783 > > Mob (027) 280-9348 > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Mon Feb 27 17:39:13 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 27 Feb 2006 18:39:13 -0500 Subject: [AccessD] Converting to 2003 References: <08F823FD83787D4BA0B99CA580AD3C7402DE681B@TTNEXCHCL2.hshhp.com> Message-ID: <004601c63bf7$0459e940$6101a8c0@50NM721> ...either its been fixed or Gustav blessed all my mdbs ...I don't particularly care which :) William ----- Original Message ----- From: "Jim DeMarco" To: "Access Developers discussion and problem solving" Sent: Monday, February 27, 2006 1:02 PM Subject: Re: [AccessD] Converting to 2003 > Thanks William. It's primarily that issue that prompted the question. > The last reference I found on this list was that it was still an issue > (an older message though). Are you sure it's been addressed? Not > doubting, just verifying. > > Jim D. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Friday, February 24, 2006 4:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Converting to 2003 > > Jim > > ...now that the bloat in the post A2K format has been fixed, I've > standardized on the A2K3 format whenever possible ...I no longer see any > advantage in using the A2K format unless you're running in a mixed > environment. > > William > > ----- Original Message ----- > From: "Jim DeMarco" > To: "AccessD (E-mail)" > Sent: Friday, February 24, 2006 8:03 AM > Subject: [AccessD] Converting to 2003 > > >> We're moving our A97 apps to 2003. A2K3 defaults to 2000 version. Is > >> there any consensus on which format makes most sense for the upgraded > apps >> (2000 or 2003)? >> >> TIA >> >> Jim DeMarco >> Director of Application Development >> Hudson Health Plan >> >> >> >> > ************************************************************************ > *********** >> "This electronic message is intended to be for the use only of the > named >> recipient, and may contain information from Hudson Health Plan (HHP) > that >> is confidential or privileged. If you are not the intended recipient, > you >> are hereby notified that any disclosure, copying, distribution or use > of >> the contents of this message is strictly prohibited. If you have > received >> this message in error or are not the named recipient, please notify us > >> immediately, either by contacting the sender at the electronic mail >> address noted above or calling HHP at (914) 631-1611. If you are not > the >> intended recipient, please do not forward this email to anyone, and > delete >> and destroy all copies of this message. Thank You". >> > ************************************************************************ > *********** >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 electronic message is intended to be for the use only of the named > recipient, and may contain information from Hudson Health Plan (HHP) that > is confidential or privileged. If you are not the intended recipient, you > are hereby notified that any disclosure, copying, distribution or use of > the contents of this message is strictly prohibited. If you have received > this message in error or are not the named recipient, please notify us > immediately, either by contacting the sender at the electronic mail > address noted above or calling HHP at (914) 631-1611. If you are not the > intended recipient, please do not forward this email to anyone, and delete > and destroy all copies of this message. Thank You". > *********************************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From boogieloogie at gmail.com Mon Feb 27 19:12:37 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Mon, 27 Feb 2006 21:12:37 -0400 Subject: [AccessD] Launching a dos program from Access 97 In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1DDB1884@xlivmbx21.aig.com> References: <1D7828CDB8350747AFE9D69E0E90DA1F1DDB1884@xlivmbx21.aig.com> Message-ID: <3bf43ee90602271712w2d90e4a2n297b08bba0a6ab53@mail.gmail.com> Thanks guys. I messed with for quite awhile but go it with the batch file as per Heenan. All is well in my world tonight...beer time. On 2/27/06, Heenan, Lambert wrote: > > This should be simple enough. Evidently prethin.exe needs to find files in > the current folder (which needs to be C:\fmv), so all you really need is a > batch file... > > @Echo Off > C: > CD \FMV > Prethin > > ... The batch file above will take care of setting the current folder, and > you would launch it like this... > > Dim strComspec as String > Dim strBatch as string > Dim nProgId as Long > > strComspec = Environ("COMSPEC") > strBatch = "X:\SomeFolder\LaunchPrethin.BAT" > nProgid = Shell(strComspec & "/C " & strBatch ) > > HTH > > Lambert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Boogie Loogie > Sent: Monday, February 27, 2006 8:06 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Launching a dos program from Access 97 > > > still working on it...on back burner for a couple of hours. I have > deadline > on something else right now. I will let you know how I do and post a > working > code here (If I get there from here) Thanks again. > > On 2/27/06, Gustav Brock wrote: > > > > Hi Tim > > > > You are welcome. But did you find a method? > > > > /gustav > > > > >>> boogieloogie at gmail.com 27-02-2006 13:43:07 >>> > > Thanks Gustav > > > > On 2/26/06, Gustav Brock wrote: > > > > > > Hi Tim > > > > > > Just guessing ... create a batch file that will launch and run the > > > application. You may need to use CD to make the folder of the app > > > the current folder. When success with this, use Shell() to launch > > > the batch file. > > > > > > If that fails, try with a shortcut or pif file. > > > Also, you may try using Shell() with the START command. Type START > > > /? on the command line for help on this. > > > > > > /gustav > > > > > > >>> boogieloogie at gmail.com 26-02-2006 22:23 >>> > > > Hi Gustav > > > > > > I should have explained myself a bit better. The particular program > > > will not fire by using > > > > > > Dim ProgLaunch > > > ProgLaunch = Shell("C:\fmv\prethin.exe", 1) will crash it. For some > > reason > > > certain files are not fired when starting this way. I have no access > > > to the code nor the programmer of the dos program. > > > > > > Some how I have to fire c:\windows\system32\cmd.exe change to the > > > fmv folder then launch prethin.exe from there. > > > > > > Any ideas? > > > > > > Thanks > > > > > > Tim > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AllSportsMarket - the NASDAQ of sports http://www.allsportsmarket.com/Index.asp?affiliate=3875 From Bruce.Bruen at railcorp.nsw.gov.au Mon Feb 27 22:02:03 2006 From: Bruce.Bruen at railcorp.nsw.gov.au (Bruen, Bruce) Date: Tue, 28 Feb 2006 15:02:03 +1100 Subject: [AccessD] Web designers. Why don't they stick with design? Message-ID: The really sad thing is that he is not only wrong about Access, but wrong about SQLServer as well. Finally, I even had a look at his .Net How To's and was amazed to find he is promoting totally unmanaged code approaches - but I suppose that's a bit like trying to program Access in T-SQL. I was tempted to feedback the word "idiot" but couldn't be bothered. bruce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, 24 January 2006 5:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Web designers. Why don't they stick with design? Charlotte, I was very tempted to respond, but given the depth and breath of his lack of knowledge, it seemed like such a waste of time. But I am glad you did. I was indirectly involved in an email fire-fight with Fabian Pascal, the self claimed SQL guru and fundamentalist. I understand, as I bailed early, that the fight went on for over a year and degenerated into just passing insults. (The standard battle over absolutely adherence to the laws of normalization versus database performance.) ...But Good work; someone just had to say something. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: January 23, 2006 8:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Web designers. Why don't they stick with design? I couldn't resist sending him some feedback on the more egregious errors (like the remark about Access 2000 only supporting simple stored procedures ...) and I'm sure his extreme spam filter will junk it, but it felt good to nail him on a couple of points anyhow, including the need to use different code for Access and SQL Server in .Net. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, January 21, 2006 7:21 AM To: accessd at databaseadvisors.com Subject: [AccessD] Web designers. Why don't they stick with design? Hi all, late Friday humour, sort of ... Look what I've found. This guy (I'll state his name just as a warning: Bill Gearhart) seems to be one in an endless row of web designers with no knowledge about how Access works, thus he doesn't know what he is talking about: http://www.aspemporium.com/aspEmporium/tutorials/dontUseMSAccess.asp No doubt, Access is not intended for use as backend database for high-volume web sites but this blurb is so full of factual errors and bad coding examples that it should be abandoned. /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 This e-mail and any attachments may contain confidential information that is intended solely for the use of the intended recipient and may be subject to copyright. If you receive this e-mail in error, please notify the sender immediately and delete the e-mail and its attachments from your system. You must not disclose, copy or use any part of this e-mail if you are not the intended recipient. Any opinion expressed in this e-mail and any attachments is not an opinion of RailCorp unless stated or apparent from its content. RailCorp is not responsible for any unauthorised alterations to this e-mail or any attachments. RailCorp will not incur any liability resulting directly or indirectly as a result of the recipient accessing any of the attached files that may contain a virus. From adtp at airtelbroadband.in Mon Feb 27 22:20:08 2006 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Tue, 28 Feb 2006 09:50:08 +0530 Subject: [AccessD] Sub Report not going into Two Columns References: <7.0.1.0.0.20060227175809.01acbe68@dalyn.co.nz><001f01c63b6d$fae e19a0$6101a8c0@50NM721> <7.0.1.0.0.20060228110128.01a53410@dalyn.co.nz> Message-ID: <008501c63c1e$63147b90$5540f63d@pcadt> David, It has been stated in your post that there are no records. Yet it is mentioned that when run as independent report, the two columns display nicely, filling up two pages. Could you please clarify this apparent contradiction? Various values as actually existing on Columns tab of page set up dialog box of the report may also please be furnished. If you are getting two column output in independent report mode, it can be ensured that you get similar display in subreport mode. With Across, then Down (A&D) layout, it is straightforward. However, in this case, there can be awkward white spaces if the contents of records across columns do not always measure up to same number of lines. Down, then Across (D&A) layout overcomes such drawback but routine adoption of this layout in a subreport puts everything into one column (even though the original report is designed for two columns). There is a solution for that too. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: David Emerson To: Access Developers discussion and problem solving Sent: Tuesday, February 28, 2006 03:33 Subject: Re: [AccessD] Sub Report not going into Two Columns Thanks for the reply William. I tried all that with no joy. I might just have to go to fixed formatting. David At 27/02/2006, you wrote: >...best guess is that the width of your design subreport area on the report is narrower than the width of the two columns in the subreport when the "can grow" is fully expanded at runtime ...try decreasing the font size of the columns to verify this is the problem ...or disable the "can grow" ...hth. > >William > >----- Original Message ----- >From: "David Emerson" >To: ; >Sent: Monday, February 27, 2006 12:07 AM >Subject: [AccessD] Sub Report not going into Two Columns> > > > Cross Posted Access D, Access L > > > > Access XP. > > > > I have a report which is a long column of text boxes with the text > > entered into the control source. Because different printers format > > reports slightly differently I have made the boxes shorter than the > > text warrants and have set the can grow property on for all the text > > boxes. There are no records associated with this report. > > > > I have set the Page Setup .. Number of columns to 2 and when I view the report the text boxes flow over two columns. The full report is two pages long. > > > > However, when I use the report as a subreport for another main report then the text boxes remain in one column. I have checked help and it suggests changing the column order to across then down. I have tried this but it doesn't make any difference (I guess because there are no records). > > > > Apart from physically placing the text boxes in two columns, does > > anyone know how I can get them to flow properly? > > > > Regards > > > > David Emerson > > Dalyn Software Ltd From dajomigo at tpg.com.au Mon Feb 27 22:57:21 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Tue, 28 Feb 2006 15:57:21 +1100 Subject: [AccessD] Help with combo box Message-ID: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> I have a combo box on a form that has quite a lot of code attached to it. Is there a way to run code when the user clicks on the drop-down arrow that won't interfere with other code that runs when the user double-clicks on the combo box? TIA David From bchacc at san.rr.com Tue Feb 28 00:11:14 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 27 Feb 2006 22:11:14 -0800 Subject: [AccessD] Help with combo box In-Reply-To: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> References: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> Message-ID: <4403E982.5080005@san.rr.com> What event is the current code attached to? Can you use the 'Got Focus' event to run your new code? Rocky David & Joanne Gould wrote: > I have a combo box on a form that has quite a lot of code attached to it. > > Is there a way to run code when the user clicks on the drop-down arrow that > won't interfere with other code that runs when the user double-clicks on > the combo box? > > TIA > > David > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dajomigo at tpg.com.au Tue Feb 28 00:33:08 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Tue, 28 Feb 2006 17:33:08 +1100 Subject: [AccessD] Help with combo box In-Reply-To: <4403E982.5080005@san.rr.com> References: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> <4403E982.5080005@san.rr.com> Message-ID: <6.2.1.2.2.20060228172601.01eefe80@mail.tpg.com.au> Thanks for your prompt response Rocky. At 05:11 PM 28/02/2006, you wrote: >What event is the current code attached to? >The database form is the Hiring form for a video library. There is >currently code attached to the "Before update" event, the "After Update" >event and the "On Double-click" event. The Double-click event allows the >user to add oir change the hiring code (overnight, weekly, etc). >Can you use the 'Got Focus' event to run your new code? The other issue I forgot to mention is it's on a continuous form. I have tried to make the combo box inactive if there is anything entered in it, but that just makes it inactive for all the records in the transaction (so I would only be able to enter one movie per sale). >Rocky > > >David & Joanne Gould wrote: > > I have a combo box on a form that has quite a lot of code attached to it. > > > > Is there a way to run code when the user clicks on the drop-down arrow > that > > won't interfere with other code that runs when the user double-clicks on > > the combo box? > > > > TIA > > > > David > > > > > > > >-- >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Feb 28 03:33:21 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 28 Feb 2006 10:33:21 +0100 Subject: [AccessD] Converting to 2003 Message-ID: Hi William "don't particularly care" ... well, that hurts - after all my efforts! Actually, we have two clients - both female, wonder why - who claim that more than once they have seen issues vanish just by calling me. I didn't do anything - no advice or problem solving - other than devoting my attention. And my middle name isn't Jesus. Maybe your mdbs have been on my mind too! /gustav >>> wdhindman at bellsouth.net 28-02-2006 00:39 >>> ...either its been fixed or Gustav blessed all my mdbs ...I don't particularly care which :) William From carbonnb at gmail.com Tue Feb 28 06:56:03 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 28 Feb 2006 07:56:03 -0500 Subject: [AccessD] Deconstructing Tables Message-ID: Does anyone know of any tool(s) that will go through the tables in and A2K MDB and return the DDL statement to build the table? What I'm trying to do is do a test port of an application that I have written in Access to OpenOffice.org Base and instead of rebuilding the tables by hand one by one, I thought I'd try the DDL route. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From mmattys at rochester.rr.com Tue Feb 28 07:24:09 2006 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Tue, 28 Feb 2006 08:24:09 -0500 Subject: [AccessD] Deconstructing Tables References: Message-ID: <02cf01c63c6a$43da2e90$6401a8c0@default> Sub DescribeAllTables() Dim db As DAO.Database, tdf As DAO.TableDef Dim test As String Set db = CurrentDb For Each tdf In db.TableDefs test = DescribeTbl(db, tdf.Name) Debug.Print tdf.Name & " " & test Next Set db = Nothing End Sub Private Function DescribeTbl(db As DAO.Database, tdfName As String) As String Dim tdf As DAO.TableDef, fld As DAO.Field, strSQL As String 'Set db = CurrentDb Set tdf = db.TableDefs(tdfName) If GetTableType(tdf.Attributes) <> "System Table" And GetTableType(tdf.Attributes) <> "Hidden(temporary)" Then 'Debug.Print tdf.Name & ": " & GetTableType(tdf.Attributes) For Each fld In tdf.Fields strSQL = strSQL & "[" & fld.Name & "] " & getPropertyTypeName(fld.Type) & ", " Next strSQL = Left(strSQL, Len(strSQL) - 2) End If 'Debug.Print strSQL DescribeTbl = strSQL Set fld = Nothing Set tdf = Nothing End Function Private Function GetTableType(T As Long) Select Case T '65536 Case dbAttachExclusive GetTableType = "Linked, Exclusive" '131072 Case dbAttachSavePWD GetTableType = "Saves UID,Pwd for linked table." '-2147483646 + 2 Case (dbSystemObject And 2), (dbSystemObject - 2) GetTableType = "System Table" '2147483646 + 1 Case (dbHiddenObject And 1) GetTableType = "Hidden(temporary)" '1073741824 Case dbAttachedTable GetTableType = "Linked, non-ODBC" '536870912 Case dbAttachedODBC GetTableType = "Linked, ODBC" End Select End Function Private Function getPropertyTypeName(T As Integer) 'Case "Parameter", "Property" Select Case T Case dbBigInt getPropertyTypeName = "Big Integer" Case dbBinary getPropertyTypeName = "Binary" Case dbBoolean getPropertyTypeName = "YesNo" Case dbByte getPropertyTypeName = "Byte" Case dbChar getPropertyTypeName = "Char" Case dbCurrency getPropertyTypeName = "Currency" Case dbDate getPropertyTypeName = "DateTime" Case dbDecimal getPropertyTypeName = "Decimal" Case dbDouble getPropertyTypeName = "Double" Case dbFloat getPropertyTypeName = "Float" Case dbGUID getPropertyTypeName = "Guid" Case dbInteger getPropertyTypeName = "Integer" Case dbLong getPropertyTypeName = "Long" Case dbLongBinary getPropertyTypeName = "Long Binary (OLE Object)" Case dbMemo getPropertyTypeName = "Memo" Case dbNumeric getPropertyTypeName = "Numeric" Case dbSingle getPropertyTypeName = "Single" Case dbText getPropertyTypeName = "Text" Case dbTime getPropertyTypeName = "Time" Case dbTimeStamp getPropertyTypeName = "Time Stamp" Case dbVarBinary getPropertyTypeName = "VarBinary" End Select End Function Michael R. Mattys MapPoint Developer www.mattysconsulting.com ----- Original Message ----- From: "Bryan Carbonnell" To: "Access Developers discussion and problem solving" Sent: Tuesday, February 28, 2006 7:56 AM Subject: [AccessD] Deconstructing Tables > Does anyone know of any tool(s) that will go through the tables in and > A2K MDB and return the DDL statement to build the table? > > What I'm trying to do is do a test port of an application that I have > written in Access to OpenOffice.org Base and instead of rebuilding the > tables by hand one by one, I thought I'd try the DDL route. > > -- > Bryan Carbonnell - carbonnb at gmail.com > Life's journey is not to arrive at the grave safely in a well > preserved body, but rather to skid in sideways, totally worn out, > shouting "What a great ride!" > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From carbonnb at gmail.com Tue Feb 28 07:39:52 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 28 Feb 2006 08:39:52 -0500 Subject: [AccessD] Deconstructing Tables In-Reply-To: <02cf01c63c6a$43da2e90$6401a8c0@default> References: <02cf01c63c6a$43da2e90$6401a8c0@default> Message-ID: On 2/28/06, Michael R Mattys wrote: That's a great starting point for me. Thanks Michael. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From Gustav at cactus.dk Tue Feb 28 07:41:07 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 28 Feb 2006 14:41:07 +0100 Subject: [AccessD] Quartile Message-ID: Hi all Anyone having a need to calculate quartiles? The few methods I've found assumes calculation on one full table which I think doesn't mimic real life except if you create a temp table. Thus I have made the function below to take a filter argument which makes it much more versatile. I cannot find a way to do this fast as you need a function to browse the recordset. You can test this out with the Northwind demo base. First, create a query, qdyCustomerYearLineQuantity SELECT Country, Year([OrderDate]) AS OrderYear, Quantity FROM (Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID) INNER JOIN [Order Details] ON Orders.OrderID = [Order Details].OrderID; And another, qdyCustomerOrderYear: SELECT Country, Year([OrderDate]) AS OrderYear FROM Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID GROUP BY Country, Year([OrderDate]); Now create a query to calculate quartiles on quantity per customer's country: SELECT Country, OrderYear, Quartile5("qdyCustomerYearLineQuantity","Quantity",1,"Country='" & [Country] & "' And OrderYear=" & [OrderYear] & "") AS Quartile1, Quartile5("qdyCustomerYearLineQuantity","Quantity",2,"Country='" & [Country] & "' And OrderYear=" & [OrderYear] & "") AS Quartile2, Quartile5("qdyCustomerYearLineQuantity","Quantity",3,"Country='" & [Country] & "' And OrderYear=" & [OrderYear] & "") AS Quartile3, FROM qdyCustomerOrderYear; Country OrderYear Quartile1 Quartile2 Quartile3 Canada 1994 11,5 22 37 Canada 1995 15 20 42 Canada 1996 9 18 25 Denmark 1994 8,25 12 17,25 Denmark 1995 18 25 35 Denmark 1996 15 25 30 The function looks like this: Public Function Quartile5( _ ByVal strTable As String, _ ByVal strField As String, _ ByVal bytQuartile As Byte, _ Optional ByVal strFilter As String) _ As Double ' strTable : Name of the table/query to analyze. ' strField : Name of the field to analyze. ' bytQuartile: Which min/max or median/quartile to calculate. ' strFilter: Optional filter expression. ' ' Data must be in ascending order by strField. ' Constant values and return values mimic those of ' Excel's Quartile() function. ' ' Returns: ' Minimum, maximum, median or upper/lower quartile ' of strField of strTable filtered on strFilter. ' ' Reset function (clear Static dbs) by the call: ' Call Quartile5("", "", 0) ' ' 2006-02-27. Cactus Data ApS, CPH. ' Find median. Const cbytQuartMedian As Byte = 2 ' Find lower (first) quartile. Const cbytQuartLow As Byte = 1 ' Find upper (third) quartile. Const cbytQuartHigh As Byte = 3 ' Find minimum value. Const cbytQuartMinimum As Byte = 0 ' Find maximum value. Const cbytQuartMaximum As Byte = 4 ' Define default operation. Const cbytQuartDefault = cbytQuartMedian Static dbs As DAO.Database Dim rst As DAO.Recordset Dim strSQL As String Dim lngNumber As Long Dim dblPosition As Double Dim lngPosition As Long Dim dblInterpol As Double Dim dblValueOne As Double Dim dblValueTwo As Double Dim dblQuartile As Double ' Use default calculation if choice of calculation is outside range. If bytQuartile > 4 Then bytQuartile = cbytQuartDefault End If If dbs Is Nothing Then Set dbs = CurrentDb() End If If Len(strTable) > 0 And Len(strField) > 0 Then strSQL = "SELECT [" & strField & "] FROM [" & strTable & "] " strSQL = strSQL & "WHERE ([" & strField & "] Is Not Null) " If Len(strFilter) > 0 Then strSQL = strSQL & "AND (" & strFilter & ") " End If strSQL = strSQL & "ORDER BY [" & strField & "];" Set rst = dbs.OpenRecordset(strSQL) With rst If Not .EOF = True Then If bytQuartile = cbytQuartMinimum Then ' No need to count records. lngNumber = 1 Else ' Count records. .MoveLast lngNumber = .RecordCount End If Select Case bytQuartile Case cbytQuartMinimum ' Current record is first record. ' Read value of this record. Case cbytQuartMaximum ' Current record is last record. ' Read value of this record. Case cbytQuartMedian ' Locate position of median. dblPosition = (lngNumber + 1) / 2 Case cbytQuartLow dblPosition = (lngNumber + 3) / 4 Case cbytQuartHigh dblPosition = (3 * lngNumber + 1) / 4 End Select Select Case bytQuartile Case cbytQuartMinimum, cbytQuartMaximum ' Read current row. Case Else .MoveFirst ' Find position of first observation to retrieve. ' If lngPosition is 0, then upper position is first record. ' If lngPosition is not 0 and position is not an integer, then ' read the next observation too. lngPosition = Fix(dblPosition) dblInterpol = dblPosition - lngPosition If lngNumber = 1 Then ' Nowhere else to move. ElseIf lngPosition > 1 Then ' Move to record to read. .Move lngPosition - 1 End If End Select ' Retrieve value from first observation. dblValueOne = .Fields(0).Value Select Case bytQuartile Case cbytQuartMinimum, cbytQuartMaximum dblQuartile = dblValueOne Case Else If dblInterpol = 0 Then ' Only one observation to read. dblQuartile = dblValueOne Else .MoveNext ' Retrieve value from second observation. dblValueTwo = .Fields(0).Value ' For positive values interpolate between 0 and dblValueOne. ' For negative values interpolate between 2 * dblValueOne and dblValueOne. ' Calculate quartile using linear interpolation. dblQuartile = dblValueOne + dblInterpol * CDec(dblValueTwo - dblValueOne) End If End Select End If .Close End With Else ' Reset. Set dbs = Nothing End If Set rst = Nothing Quartile5 = dblQuartile End Function The function can easily be converted to ADO but that runs even slower. Comments are most welcome. /gustav From Gustav at cactus.dk Tue Feb 28 07:46:17 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 28 Feb 2006 14:46:17 +0100 Subject: [AccessD] Deconstructing Tables Message-ID: Hi Bryan How about DeZign, a full-scale tool: http://www.datanamic.com/dezign/factsheet.html I think Arthur has experience with this. /gustav >>> carbonnb at gmail.com 28-02-2006 13:56 >>> Does anyone know of any tool(s) that will go through the tables in and A2K MDB and return the DDL statement to build the table? What I'm trying to do is do a test port of an application that I have written in Access to OpenOffice.org Base and instead of rebuilding the tables by hand one by one, I thought I'd try the DDL route. From darrend at nimble.com.au Tue Feb 28 07:49:26 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 1 Mar 2006 00:49:26 +1100 Subject: [AccessD] Bit OT - Reporting Services Question Message-ID: <20060228134931.REND10380.omta04sl.mx.bigpond.com@DENZILLAP> Hello all In reporting services if I run the code below (from Lambert) I get the error message... "Wend statements are no longer supported . Use "End While" statements instead So If I replace wend with End while I don't get the desired result The desired result is From..... .C:\Program Files\Some Folder\some cool file.dll I want.....some cool file.dll But I am getting.....C:\Program Files\Some Folder any suggestions?? Many thanks Darren Code Start>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Function GetPath(aPath) As String Dim foo As Integer, aSlash As Integer aSlash = 0 foo = InStr(aPath, "\") While (foo > 0) aSlash = foo foo = InStr(aSlash + 1, aPath, "\") end while If aSlash > 0 Then GetPath = Left$(aPath, aSlash) Else GetPath = aPath End If End Function From mwp.reid at qub.ac.uk Tue Feb 28 07:55:22 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 28 Feb 2006 13:55:22 -0000 Subject: [AccessD] Tree View Control References: <20060228134931.REND10380.omta04sl.mx.bigpond.com@DENZILLAP> Message-ID: Anyone have an example of a Tree View control passing multiple values to a report. Cant get my head around it. Martin mwp.reid at qub.ac.uk From wdhindman at bellsouth.net Tue Feb 28 08:14:24 2006 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 28 Feb 2006 09:14:24 -0500 Subject: [AccessD] Converting to 2003 References: Message-ID: <000701c63c71$47395af0$6101a8c0@50NM721> ...your blessing or MS actually fixing an Access bug ...both are miracles in my book :) William ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, February 28, 2006 4:33 AM Subject: Re: [AccessD] Converting to 2003 > Hi William > > "don't particularly care" ... well, that hurts - after all my efforts! > > Actually, we have two clients - both female, wonder why - who claim that > more than once they have seen issues vanish just by calling me. I didn't > do anything - no advice or problem solving - other than devoting my > attention. And my middle name isn't Jesus. Maybe your mdbs have been on my > mind too! > > /gustav > >>>> wdhindman at bellsouth.net 28-02-2006 00:39 >>> > ...either its been fixed or Gustav blessed all my mdbs ...I don't > particularly care which :) > > William > > > -- > 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 28 08:43:41 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 28 Feb 2006 08:43:41 -0600 Subject: [AccessD] Bit OT - Reporting Services Question In-Reply-To: <28451540.1141135083449.JavaMail.root@sniper13> Message-ID: <000201c63c75$5e979370$0200a8c0@danwaters> Darren, Can you use: Do While intCount < 10 . . . . intCount = intCount + 1 Loop I've used this instead of While - Wend for some time and it always work. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, February 28, 2006 7:49 AM To: AccessD Subject: [AccessD] Bit OT - Reporting Services Question Hello all In reporting services if I run the code below (from Lambert) I get the error message... "Wend statements are no longer supported . Use "End While" statements instead So If I replace wend with End while I don't get the desired result The desired result is From..... .C:\Program Files\Some Folder\some cool file.dll I want.....some cool file.dll But I am getting.....C:\Program Files\Some Folder any suggestions?? Many thanks Darren Code Start>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Function GetPath(aPath) As String Dim foo As Integer, aSlash As Integer aSlash = 0 foo = InStr(aPath, "\") While (foo > 0) aSlash = foo foo = InStr(aSlash + 1, aPath, "\") end while If aSlash > 0 Then GetPath = Left$(aPath, aSlash) Else GetPath = aPath End If End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Tue Feb 28 08:46:15 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 28 Feb 2006 09:46:15 -0500 Subject: [AccessD] Deconstructing Tables In-Reply-To: References: Message-ID: On 2/28/06, Gustav Brock wrote: > Hi Bryan > > How about DeZign, a full-scale tool: > > http://www.datanamic.com/dezign/factsheet.html Had a quick look at this, but too expensive for a 1 time deal. However it gave me some new google search terms to use which lead me to http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52267 which is a Python Recipie to do just what I was looking for. It worked great. Now all I've got to do is find time to work on the conversion :-) Thanks. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From Lambert.Heenan at AIG.com Tue Feb 28 08:47:11 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 28 Feb 2006 09:47:11 -0500 Subject: [AccessD] Bit OT - Reporting Services Question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1DDB1B07@xlivmbx21.aig.com> Where are you running this code? What version of Access? MS BASIC has supported While / Wend structures since way back in the 1980s (MS Basic for CP/M). I for one am confused! Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, February 28, 2006 8:49 AM To: AccessD Subject: [AccessD] Bit OT - Reporting Services Question Hello all In reporting services if I run the code below (from Lambert) I get the error message... "Wend statements are no longer supported . Use "End While" statements instead So If I replace wend with End while I don't get the desired result The desired result is From..... .C:\Program Files\Some Folder\some cool file.dll I want.....some cool file.dll But I am getting.....C:\Program Files\Some Folder any suggestions?? Many thanks Darren Code Start>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Function GetPath(aPath) As String Dim foo As Integer, aSlash As Integer aSlash = 0 foo = InStr(aPath, "\") While (foo > 0) aSlash = foo foo = InStr(aSlash + 1, aPath, "\") end while If aSlash > 0 Then GetPath = Left$(aPath, aSlash) Else GetPath = aPath End If End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Feb 28 10:22:06 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 28 Feb 2006 16:22:06 +0000 Subject: [AccessD] Math Functions Message-ID: Hello All, Anyone ever plot any math functions in Access ( lines, parabolas, etc)? Any ideas/direction would be great. Thanks, Mark From Lambert.Heenan at AIG.com Tue Feb 28 11:06:41 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 28 Feb 2006 12:06:41 -0500 Subject: [AccessD] Bit OT - Reporting Services Question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F1DDB1C2C@xlivmbx21.aig.com> I agree that "Do While Condition Loop" is logically the equivalent of "While Condition Wend", but the fact remains that "While Wend" is still very much part of the language. Which why I asked Darren where the code was being run. Very curious! Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 28, 2006 9:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Bit OT - Reporting Services Question Darren, Can you use: Do While intCount < 10 . . . . intCount = intCount + 1 Loop I've used this instead of While - Wend for some time and it always work. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, February 28, 2006 7:49 AM To: AccessD Subject: [AccessD] Bit OT - Reporting Services Question Hello all In reporting services if I run the code below (from Lambert) I get the error message... "Wend statements are no longer supported . Use "End While" statements instead So If I replace wend with End while I don't get the desired result The desired result is From..... .C:\Program Files\Some Folder\some cool file.dll I want.....some cool file.dll But I am getting.....C:\Program Files\Some Folder any suggestions?? Many thanks Darren Code Start>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Function GetPath(aPath) As String Dim foo As Integer, aSlash As Integer aSlash = 0 foo = InStr(aPath, "\") While (foo > 0) aSlash = foo foo = InStr(aSlash + 1, aPath, "\") end while If aSlash > 0 Then GetPath = Left$(aPath, aSlash) Else GetPath = aPath End If End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Feb 28 11:22:24 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 28 Feb 2006 11:22:24 -0600 Subject: [AccessD] Math Functions In-Reply-To: <5470244.1141144284926.JavaMail.root@sniper16> Message-ID: <001101c63c8b$8a8ec190$0200a8c0@danwaters> Mark, You can do this using MS Graph. You get the same functionality that Excel has for creating charts and graphs. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, February 28, 2006 10:22 AM To: accessd at databaseadvisors.com Subject: [AccessD] Math Functions Hello All, Anyone ever plot any math functions in Access ( lines, parabolas, etc)? Any ideas/direction would be great. Thanks, Mark -- 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 28 12:02:58 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 13:02:58 -0500 Subject: [AccessD] Entering data in related tables in a single form Message-ID: <002e01c63c91$360612d0$647aa8c0@ColbyM6805> I need a quick and dirty form to enter data into a whole set of related data tables. Policy holder, policy, claim, claimant etc. Is this possible? Obviously I have relational integrity turned on so the PKs have to exist in the "parent" tables before they can be used to enter data into the child tables. I seem to remember trying this ages ago with less than stellar results. Has anyone here done something like this, and if so how? John W. Colby www.ColbyConsulting.com From jwcolby at ColbyConsulting.com Tue Feb 28 12:18:36 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 13:18:36 -0500 Subject: [AccessD] Assistance Message-ID: <002f01c63c93$65082710$647aa8c0@ColbyM6805> Folks, I am looking for a "junior level" person to assist me in getting some of my back log caught up. I need one person, able to: Read and program VBA, guru not required. Understands and can build Access tables, queries, forms and reports. Must understand data normalization and be able to correctly sort out what data goes where given a set of objects / attributes. Must be able to read, understand and build relationship diagrams in the relationship window in Access (the center of my universe). Has a few hours a day available (10-20 hours a week). Must be self starter, blah, blah, blah. If anyone out there thinks they might fit the bill, please respond OFFLINE - email a resume, and introduction email with required hourly wage to jwcolby at colbyconsulting.com. The more you know and are capable of the more work I have. Thanks, John W. Colby www.ColbyConsulting.com From shamil at users.mns.ru Tue Feb 28 12:35:57 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 28 Feb 2006 21:35:57 +0300 Subject: [AccessD] Entering data in related tables in a single form References: <002e01c63c91$360612d0$647aa8c0@ColbyM6805> Message-ID: <001601c63c95$d1d52bc0$6401a8c0@Nant> <<< > seem to remember trying this ages ago with > less than stellar results. >>> John, What issues do you mean? (It should work well in MS Access with properly organized forms (with subforms) and maybe with a few lines of code)... I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:02 PM Subject: [AccessD] Entering data in related tables in a single form >I need a quick and dirty form to enter data into a whole set of related >data > tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so the > PKs have to exist in the "parent" tables before they can be used to enter > data into the child tables. I seem to remember trying this ages ago with > less than stellar results. Has anyone here done something like this, and > if > so how? > > 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 Chester_Kaup at kindermorgan.com Tue Feb 28 12:31:26 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 28 Feb 2006 12:31:26 -0600 Subject: [AccessD] Normalize Data by date Message-ID: I have a table with 4 columns of data. The fields are Well_Number, Production_Date, Water_Volume and CO2_Volume. I need to normalize these back to the first volume date separately for Water_Volume and CO2_Volume. ie sum the first volumes data together regardless of date and through the rest of the records. Hope I am making sense. I am at a loss of where to start. Thanks. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From martyconnelly at shaw.ca Tue Feb 28 12:35:38 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 28 Feb 2006 10:35:38 -0800 Subject: [AccessD] Math Functions References: <001101c63c8b$8a8ec190$0200a8c0@danwaters> Message-ID: <440497FA.2050906@shaw.ca> ACC97: Microsoft Access 97 Sample Graphs Available in Download Center http://support.microsoft.com/Default.aspx?kbid=186855 However MS Graph is a bit limited Have a look at somethTeeGraph ActiveX http://www.teemach.com/products/teechart/ax/whatsnew.html Dan Waters wrote: >Mark, > >You can do this using MS Graph. You get the same functionality that Excel >has for creating charts and graphs. > >Dan > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Tuesday, February 28, 2006 10:22 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Math Functions > >Hello All, > >Anyone ever plot any math functions in Access ( lines, parabolas, etc)? Any > >ideas/direction would be great. > >Thanks, > >Mark > > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at ColbyConsulting.com Tue Feb 28 12:40:40 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 13:40:40 -0500 Subject: [AccessD] Entering data in related tables in a single form In-Reply-To: <001601c63c95$d1d52bc0$6401a8c0@Nant> Message-ID: <003001c63c96$7a66db80$647aa8c0@ColbyM6805> >I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) LOL, yea, given I am an unholy bounder, going unbound would not qualify as quick and dirty. I have discovered that as long as you include the PK/FK pairs, and populate the data in the parent/child order it seems to work. This is a moderately complex database, normalized, with lookup tables etc. and I need to get about 3 or 4 of the major tables populated with new claim / claimant / policy data from a ton of new claims on an "emergency" basis (2000 claims input in then next couple of days). John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, February 28, 2006 1:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Entering data in related tables in a single form <<< > seem to remember trying this ages ago with less than stellar results. >>> John, What issues do you mean? (It should work well in MS Access with properly organized forms (with subforms) and maybe with a few lines of code)... I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:02 PM Subject: [AccessD] Entering data in related tables in a single form >I need a quick and dirty form to enter data into a whole set of related >data > tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so the > PKs have to exist in the "parent" tables before they can be used to enter > data into the child tables. I seem to remember trying this ages ago with > less than stellar results. Has anyone here done something like this, and > if > so how? > > 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 Jim.Hale at FleetPride.com Tue Feb 28 12:56:19 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 28 Feb 2006 12:56:19 -0600 Subject: [AccessD] Entering data in related tables in a single form Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA49@corp-es01.fleetpride.com> Is the data on paper (and must be input by hand) or electronic forms (where maybe it could be parsed quickly with Monarch?) Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 28, 2006 12:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form >I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) LOL, yea, given I am an unholy bounder, going unbound would not qualify as quick and dirty. I have discovered that as long as you include the PK/FK pairs, and populate the data in the parent/child order it seems to work. This is a moderately complex database, normalized, with lookup tables etc. and I need to get about 3 or 4 of the major tables populated with new claim / claimant / policy data from a ton of new claims on an "emergency" basis (2000 claims input in then next couple of days). John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, February 28, 2006 1:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Entering data in related tables in a single form <<< > seem to remember trying this ages ago with less than stellar results. >>> John, What issues do you mean? (It should work well in MS Access with properly organized forms (with subforms) and maybe with a few lines of code)... I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:02 PM Subject: [AccessD] Entering data in related tables in a single form >I need a quick and dirty form to enter data into a whole set of related >data > tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so the > PKs have to exist in the "parent" tables before they can be used to enter > data into the child tables. I seem to remember trying this ages ago with > less than stellar results. Has anyone here done something like this, and > if > so how? > > 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 *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From shamil at users.mns.ru Tue Feb 28 14:12:58 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 28 Feb 2006 23:12:58 +0300 Subject: [AccessD] Entering data in related tables in a single form References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA49@corp-es01.fleetpride.com> Message-ID: <000601c63ca3$66971130$6401a8c0@Nant> Yes, John, what media are used for the source data to populate your "about 3 or 4 of the major tables"? Shamil ----- Original Message ----- From: "Hale, Jim" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:56 PM Subject: Re: [AccessD] Entering data in related tables in a single form > Is the data on paper (and must be input by hand) or electronic forms > (where > maybe it could be parsed quickly with Monarch?) > Jim Hale > > -----Original Message----- > From: John Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Tuesday, February 28, 2006 12:41 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Entering data in related tables in a single form > > >>I suppose your base is in "bounders camp" while looking for this "quick > and dirty form" solution :) > > LOL, yea, given I am an unholy bounder, going unbound would not qualify as > quick and dirty. > > I have discovered that as long as you include the PK/FK pairs, and > populate > the data in the parent/child order it seems to work. > > This is a moderately complex database, normalized, with lookup tables etc. > and I need to get about 3 or 4 of the major tables populated with new > claim > / claimant / policy data from a ton of new claims on an "emergency" basis > (2000 claims input in then next couple of days). > > > John W. Colby > www.ColbyConsulting.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Tuesday, February 28, 2006 1:36 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Entering data in related tables in a single form > > <<< >> seem to remember trying this ages ago with less than stellar results. >>>> > John, > > What issues do you mean? (It should work well in MS Access with properly > organized forms (with subforms) and maybe with a few lines of code)... > > I suppose your base is in "bounders camp" while looking for this "quick > and > dirty form" solution :) > > Shamil > > ----- Original Message ----- > From: "John Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, February 28, 2006 9:02 PM > Subject: [AccessD] Entering data in related tables in a single form > > >>I need a quick and dirty form to enter data into a whole set of related >>data >> tables. Policy holder, policy, claim, claimant etc. >> >> Is this possible? Obviously I have relational integrity turned on so the >> PKs have to exist in the "parent" tables before they can be used to enter >> data into the child tables. I seem to remember trying this ages ago with >> less than stellar results. Has anyone here done something like this, and >> if >> so how? >> >> 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 > > *********************************************************************** > The information transmitted is intended solely for the individual or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review, retransmission, dissemination or > other use of or taking action in reliance upon this information by > persons or entities other than the intended recipient is prohibited. > If you have received this email in error please contact the sender and > delete the material from any computer. As a recipient of this email, > you are responsible for screening its contents and the contents of any > attachments for the presence of viruses. No liability is accepted for > any damages caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at ColbyConsulting.com Tue Feb 28 14:13:26 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 15:13:26 -0500 Subject: [AccessD] Entering data in related tables in a single form In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDA49@corp-es01.fleetpride.com> Message-ID: <003901c63ca3$706f3570$647aa8c0@ColbyM6805> These are papers in boxes. Beyond that I do not know. Since the total fields they intend to enter is about 20 or so, the client intends to just "key it in". John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, February 28, 2006 1:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form Is the data on paper (and must be input by hand) or electronic forms (where maybe it could be parsed quickly with Monarch?) Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 28, 2006 12:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form >I suppose your base is in "bounders camp" while looking for this >"quick and dirty form" solution :) LOL, yea, given I am an unholy bounder, going unbound would not qualify as quick and dirty. I have discovered that as long as you include the PK/FK pairs, and populate the data in the parent/child order it seems to work. This is a moderately complex database, normalized, with lookup tables etc. and I need to get about 3 or 4 of the major tables populated with new claim / claimant / policy data from a ton of new claims on an "emergency" basis (2000 claims input in then next couple of days). John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, February 28, 2006 1:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Entering data in related tables in a single form <<< > seem to remember trying this ages ago with less than stellar results. >>> John, What issues do you mean? (It should work well in MS Access with properly organized forms (with subforms) and maybe with a few lines of code)... I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:02 PM Subject: [AccessD] Entering data in related tables in a single form >I need a quick and dirty form to enter data into a whole set of related >data tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so > the PKs have to exist in the "parent" tables before they can be used > to enter data into the child tables. I seem to remember trying this > ages ago with less than stellar results. Has anyone here done > something like this, and if so how? > > 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 *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Tue Feb 28 14:53:20 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Tue, 28 Feb 2006 14:53:20 -0600 Subject: [AccessD] Entering data in related tables in a single form Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8520@cpixchng-1.cpiqpc.net> John, If it's just down and dirty you need, would just a series of append queries work? Enter the necessary info on a form, reference the necessary fields on the form from the append query and run them from code via a click of a save data button? Just wondering here, could this come up again? Meaning is it the same storm that several people were affected by? Would you want to setup a table of data pertaining to a certain incident (storm, fire, etc...) that would be the same for all entries, so in your data entry form you could select the incident, then your claimant info could be on a subform/continuous subform and as each claim is entered they click the save button and the append queries run. Rusty -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 28, 2006 2:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form These are papers in boxes. Beyond that I do not know. Since the total fields they intend to enter is about 20 or so, the client intends to just "key it in". John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, February 28, 2006 1:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form Is the data on paper (and must be input by hand) or electronic forms (where maybe it could be parsed quickly with Monarch?) Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 28, 2006 12:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form >I suppose your base is in "bounders camp" while looking for this >"quick and dirty form" solution :) LOL, yea, given I am an unholy bounder, going unbound would not qualify as quick and dirty. I have discovered that as long as you include the PK/FK pairs, and populate the data in the parent/child order it seems to work. This is a moderately complex database, normalized, with lookup tables etc. and I need to get about 3 or 4 of the major tables populated with new claim / claimant / policy data from a ton of new claims on an "emergency" basis (2000 claims input in then next couple of days). John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, February 28, 2006 1:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Entering data in related tables in a single form <<< > seem to remember trying this ages ago with less than stellar results. >>> John, What issues do you mean? (It should work well in MS Access with properly organized forms (with subforms) and maybe with a few lines of code)... I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:02 PM Subject: [AccessD] Entering data in related tables in a single form >I need a quick and dirty form to enter data into a whole set of related >data tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so > the PKs have to exist in the "parent" tables before they can be used > to enter data into the child tables. I seem to remember trying this > ages ago with less than stellar results. Has anyone here done > something like this, and if so how? > > 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 *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From darrend at nimble.com.au Tue Feb 28 16:19:04 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 1 Mar 2006 09:19:04 +1100 Subject: [AccessD] Bit OT - Reporting Services Question In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F1DDB1C2C@xlivmbx21.aig.com> Message-ID: <20060228221910.BFIF1358.omta03sl.mx.bigpond.com@DENZILLAP> Hi Lambert It's in Reporting Services Reporting Services is a Microsoft report tool designer that sits inside Visual Studio The idea is to have an easy to use (Their words not mine) report tool that speaks with SQL dB's So technically - Not Access - hence the OT Subject thread - but Vb type code I posted this q to the DBA-SQLServer list too Stuart Mc had the right answer - As usual :-)) I was treating the code as 'ReturnFileName' code but of course The code was doing exactly what it was designed to do and that is 'ReturnPath' not filename What a dufus - Thanks Stuart and thanks Lambert Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, 1 March 2006 4:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Bit OT - Reporting Services Question I agree that "Do While Condition Loop" is logically the equivalent of "While Condition Wend", but the fact remains that "While Wend" is still very much part of the language. Which why I asked Darren where the code was being run. Very curious! Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, February 28, 2006 9:44 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Bit OT - Reporting Services Question Darren, Can you use: Do While intCount < 10 . . . . intCount = intCount + 1 Loop I've used this instead of While - Wend for some time and it always work. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, February 28, 2006 7:49 AM To: AccessD Subject: [AccessD] Bit OT - Reporting Services Question Hello all In reporting services if I run the code below (from Lambert) I get the error message... "Wend statements are no longer supported . Use "End While" statements instead So If I replace wend with End while I don't get the desired result The desired result is From..... .C:\Program Files\Some Folder\some cool file.dll I want.....some cool file.dll But I am getting.....C:\Program Files\Some Folder any suggestions?? Many thanks Darren Code Start>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Function GetPath(aPath) As String Dim foo As Integer, aSlash As Integer aSlash = 0 foo = InStr(aPath, "\") While (foo > 0) aSlash = foo foo = InStr(aSlash + 1, aPath, "\") end while If aSlash > 0 Then GetPath = Left$(aPath, aSlash) Else GetPath = aPath End If End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Tue Feb 28 16:44:20 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 01 Mar 2006 11:44:20 +1300 Subject: [AccessD] Sub Report not going into Two Columns In-Reply-To: <008501c63c1e$63147b90$5540f63d@pcadt> References: <7.0.1.0.0.20060227175809.01acbe68@dalyn.co.nz> <001f01c63b6d$fae e19a0$6101a8c0@50NM721> <7.0.1.0.0.20060228110128.01a53410@dalyn.co.nz> <008501c63c1e$63147b90$5540f63d@pcadt> Message-ID: <7.0.1.0.0.20060301113023.01a446c0@dalyn.co.nz> The report is a column of text boxes with the control source being set to a string (eg ="This is a sample string"). Because of the varying size of the strings, and different printers format report text slightly differently, I have set the text boxes to a height of 1, and set the Can Grow property to Yes. When the report is viewed itself the text boxes snake down the first column of the first page, then the second column of the first page, then to the first column of the second page. This is what I want. However, when I use the report as a sub report to another report (along with a number of other sub reports) it stays at one column. The main report page settings (Column Tab) is set to one column (because other reports are full width), column size width 19.5. The sub report page settings (Column tab) is set to 2 columns, row spacing 0, column spacing 0.3, column size width 9, column layout down then across. Changing to across then down has the effect of the sub report not snaking over two columns when run on its own, nor in the main report. David. At 28/02/2006, you wrote: >David, > > It has been stated in your post that there are no records. Yet > it is mentioned that when run as independent report, the two > columns display nicely, filling up two pages. Could you please > clarify this apparent contradiction? > > Various values as actually existing on Columns tab of page set > up dialog box of the report may also please be furnished. If you > are getting two column output in independent report mode, it can be > ensured that you get similar display in subreport mode. > > With Across, then Down (A&D) layout, it is straightforward. > However, in this case, there can be awkward white spaces if the > contents of records across columns do not always measure up to same > number of lines. Down, then Across (D&A) layout overcomes such > drawback but routine adoption of this layout in a subreport puts > everything into one column (even though the original report is > designed for two columns). There is a solution for that too. > >Best wishes, >A.D.Tejpal >--------------- > > ----- Original Message ----- > From: David Emerson > To: Access Developers discussion and problem solving > Sent: Tuesday, February 28, 2006 03:33 > Subject: Re: [AccessD] Sub Report not going into Two Columns > > > Thanks for the reply William. I tried all that with no joy. I might > just have to go to fixed formatting. > > David > > At 27/02/2006, you wrote: > >...best guess is that the width of your design subreport area on > the report is narrower than the width of the two columns in the > subreport when the "can grow" is fully expanded at runtime ...try > decreasing the font size of the columns to verify this is the > problem ...or disable the "can grow" ...hth. > > > >William > > > >----- Original Message ----- > >From: "David Emerson" > >To: ; > >Sent: Monday, February 27, 2006 12:07 AM > >Subject: [AccessD] Sub Report not going into Two Columns> > > > > > Cross Posted Access D, Access L > > > > > > Access XP. > > > > > > I have a report which is a long column of text boxes with the text > > > entered into the control source. Because different printers format > > > reports slightly differently I have made the boxes shorter than the > > > text warrants and have set the can grow property on for all the text > > > boxes. There are no records associated with this report. > > > > > > I have set the Page Setup .. Number of columns to 2 and when > I view the report the text boxes flow over two columns. The full > report is two pages long. > > > > > > However, when I use the report as a subreport for another > main report then the text boxes remain in one column. I have > checked help and it suggests changing the column order to across > then down. I have tried this but it doesn't make any difference (I > guess because there are no records). > > > > > > Apart from physically placing the text boxes in two columns, does > > > anyone know how I can get them to flow properly? > > > > > > Regards > > > > > > David Emerson > > > Dalyn Software Ltd >-- >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 28 17:18:16 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 28 Feb 2006 15:18:16 -0800 Subject: [AccessD] Quartile References: Message-ID: <4404DA38.8040809@shaw.ca> This code has excel limits, arrays limited to 64K but maybe the initial part using getrows on a recordset and moving the field into another array might help you or maybe faster. Don Celko had an SQL percentile method in "SQL for Smarties" but even he suggested using SAS or SPSS for large datasets or using OLAP. Function TestRecordset() Dim strConnect As String Dim arRs As Variant Dim strsql As String strsql = "SELECT DISTINCTROW Format([ShippedDate],""yyyy""),[Order Subtotals].Subtotal, Orders.OrderID " & _ "FROM Orders INNER JOIN [Order Subtotals] ON Orders.OrderID = [Order Subtotals].OrderID " & _ "WHERE (Orders.ShippedDate Is Not Null);" Debug.Print strsql strConnect = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=""C:\Program Files\Microsoft Office\Office\Samples\Copy of Northwind.mdb"";" Dim objCnn As Object Dim objRs As Object Set objCnn = CreateObject("ADODB.Connection") objCnn.Open strConnect Set objRs = CreateObject("ADODB.Recordset") objRs.Open strsql, objCnn If objRs.EOF = False Then arRs = objRs.GetRows Else arRs = "no results" End If Dim arRsT() As Double Dim myubnd As Long Dim mylbnd As Long myubnd = UBound(arRs, 2) mylbnd = LBound(arRs, 2) ReDim arRsT(mylbnd To myubnd) 'Excel arrays get confused unless this done ' with passed arrays and limits of 64K Dim i As Long 'stuff sql query field "subtotal" into a new array For i = 0 To UBound(arRs, 2) arRsT(i) = arRs(1, i) Next i Debug.Print Pctile(arRsT, 0.75) Debug.Print "1st quartile=" & quartile(arRsT, 1) Debug.Print "2nd quartile=" & quartile(arRsT, 2) Debug.Print "3'd quartile=" & quartile(arRsT, 3) Debug.Print "min " & quartile(arRsT, 0) Debug.Print "max " & quartile(arRsT, 4) Debug.Print "95% percentile " & Pctile(arRsT, 0.95) objRs.Close Set objRs = Nothing objCnn.Close Set objCnn = Nothing TestRecordset = arRs End Function Function Pctile(data, pct) As Double Dim objExcel As Object Set objExcel = CreateObject("Excel.Application") Pctile = objExcel.Application.percentile(data, pct) objExcel.Quit Set objExcel = Nothing End Function Function quartile(data, pct As Long) As Double Dim objExcel As Object Set objExcel = CreateObject("Excel.Application") quartile = objExcel.Application.quartile(data, pct) objExcel.Quit Set objExcel = Nothing End Function Gustav Brock wrote: >Hi all > >Anyone having a need to calculate quartiles? > >The few methods I've found assumes calculation on one full table which I think doesn't mimic real life except if you create a temp table. Thus I have made the function below to take a filter argument which makes it much more versatile. > >I cannot find a way to do this fast as you need a function to browse the recordset. > >You can test this out with the Northwind demo base. >First, create a query, qdyCustomerYearLineQuantity > > SELECT > Country, > Year([OrderDate]) AS OrderYear, > Quantity > FROM > (Customers > INNER JOIN > Orders > ON Customers.CustomerID = Orders.CustomerID) > INNER JOIN > [Order Details] > ON Orders.OrderID = [Order Details].OrderID; > >And another, qdyCustomerOrderYear: > > SELECT > Country, > Year([OrderDate]) AS OrderYear > FROM > Customers > INNER JOIN > Orders > ON Customers.CustomerID = Orders.CustomerID > GROUP BY > Country, > Year([OrderDate]); > >Now create a query to calculate quartiles on quantity per customer's country: > > SELECT > Country, > OrderYear, > Quartile5("qdyCustomerYearLineQuantity","Quantity",1,"Country='" & [Country] & "' And OrderYear=" & [OrderYear] & "") AS Quartile1, > Quartile5("qdyCustomerYearLineQuantity","Quantity",2,"Country='" & [Country] & "' And OrderYear=" & [OrderYear] & "") AS Quartile2, > Quartile5("qdyCustomerYearLineQuantity","Quantity",3,"Country='" & [Country] & "' And OrderYear=" & [OrderYear] & "") AS Quartile3, > FROM > qdyCustomerOrderYear; > >Country OrderYear Quartile1 Quartile2 Quartile3 >Canada 1994 11,5 22 37 >Canada 1995 15 20 42 >Canada 1996 9 18 25 >Denmark 1994 8,25 12 17,25 >Denmark 1995 18 25 35 >Denmark 1996 15 25 30 > >The function looks like this: > > > >Public Function Quartile5( _ > ByVal strTable As String, _ > ByVal strField As String, _ > ByVal bytQuartile As Byte, _ > Optional ByVal strFilter As String) _ > As Double > > ' strTable : Name of the table/query to analyze. > ' strField : Name of the field to analyze. > ' bytQuartile: Which min/max or median/quartile to calculate. > ' strFilter: Optional filter expression. > ' > ' Data must be in ascending order by strField. > ' Constant values and return values mimic those of > ' Excel's Quartile() function. > ' > ' Returns: > ' Minimum, maximum, median or upper/lower quartile > ' of strField of strTable filtered on strFilter. > ' > ' Reset function (clear Static dbs) by the call: > ' Call Quartile5("", "", 0) > ' > ' 2006-02-27. Cactus Data ApS, CPH. > > > ' Find median. > Const cbytQuartMedian As Byte = 2 > ' Find lower (first) quartile. > Const cbytQuartLow As Byte = 1 > ' Find upper (third) quartile. > Const cbytQuartHigh As Byte = 3 > ' Find minimum value. > Const cbytQuartMinimum As Byte = 0 > ' Find maximum value. > Const cbytQuartMaximum As Byte = 4 > > ' Define default operation. > Const cbytQuartDefault = cbytQuartMedian > > Static dbs As DAO.Database > Dim rst As DAO.Recordset > > Dim strSQL As String > Dim lngNumber As Long > Dim dblPosition As Double > Dim lngPosition As Long > Dim dblInterpol As Double > Dim dblValueOne As Double > Dim dblValueTwo As Double > Dim dblQuartile As Double > > ' Use default calculation if choice of calculation is outside range. > If bytQuartile > 4 Then > bytQuartile = cbytQuartDefault > End If > > If dbs Is Nothing Then > Set dbs = CurrentDb() > End If > > If Len(strTable) > 0 And Len(strField) > 0 Then > strSQL = "SELECT [" & strField & "] FROM [" & strTable & "] " > strSQL = strSQL & "WHERE ([" & strField & "] Is Not Null) " > If Len(strFilter) > 0 Then > strSQL = strSQL & "AND (" & strFilter & ") " > End If > strSQL = strSQL & "ORDER BY [" & strField & "];" > > Set rst = dbs.OpenRecordset(strSQL) > > With rst > If Not .EOF = True Then > If bytQuartile = cbytQuartMinimum Then > ' No need to count records. > lngNumber = 1 > Else > ' Count records. > .MoveLast > lngNumber = .RecordCount > End If > Select Case bytQuartile > Case cbytQuartMinimum > ' Current record is first record. > ' Read value of this record. > Case cbytQuartMaximum > ' Current record is last record. > ' Read value of this record. > Case cbytQuartMedian > ' Locate position of median. > dblPosition = (lngNumber + 1) / 2 > Case cbytQuartLow > dblPosition = (lngNumber + 3) / 4 > Case cbytQuartHigh > dblPosition = (3 * lngNumber + 1) / 4 > End Select > Select Case bytQuartile > Case cbytQuartMinimum, cbytQuartMaximum > ' Read current row. > Case Else > .MoveFirst > ' Find position of first observation to retrieve. > ' If lngPosition is 0, then upper position is first record. > ' If lngPosition is not 0 and position is not an integer, then > ' read the next observation too. > lngPosition = Fix(dblPosition) > dblInterpol = dblPosition - lngPosition > If lngNumber = 1 Then > ' Nowhere else to move. > ElseIf lngPosition > 1 Then > ' Move to record to read. > .Move lngPosition - 1 > End If > End Select > ' Retrieve value from first observation. > dblValueOne = .Fields(0).Value > > Select Case bytQuartile > Case cbytQuartMinimum, cbytQuartMaximum > dblQuartile = dblValueOne > Case Else > If dblInterpol = 0 Then > ' Only one observation to read. > dblQuartile = dblValueOne > Else > .MoveNext > ' Retrieve value from second observation. > dblValueTwo = .Fields(0).Value > ' For positive values interpolate between 0 and dblValueOne. > ' For negative values interpolate between 2 * dblValueOne and dblValueOne. > ' Calculate quartile using linear interpolation. > dblQuartile = dblValueOne + dblInterpol * CDec(dblValueTwo - dblValueOne) > End If > End Select > End If > .Close > End With > Else > ' Reset. > Set dbs = Nothing > End If > > Set rst = Nothing > > Quartile5 = dblQuartile > >End Function > > > >The function can easily be converted to ADO but that runs even slower. >Comments are most welcome. > >/gustav > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Tue Feb 28 17:41:07 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 28 Feb 2006 15:41:07 -0800 Subject: [AccessD] Entering data in related tables in a single form References: <002e01c63c91$360612d0$647aa8c0@ColbyM6805> Message-ID: <4404DF93.2080809@shaw.ca> I was going to suggest PureEdge from Victoria my hometown, they do this for US Army and Insurance Companies essentially you create a scanned form into a type of Wssiggy Editor, and it reproduces exactly the form on the screen This is important for old forms. It then creates XML files from the form. Really handy for sites with a multude of paper forms. You could then move the XML into Access or SQL databases or even directly into database. Went to look for it at www.pureedge.com and Gack I got redirected to http://www-142.ibm.com/software/workplace/products/product5.nsf/wdocs/formshome I guess IBM bought them out a few months back and added it to their Workplace Suite. They are getting as bad as Oracle. John Colby wrote: >I need a quick and dirty form to enter data into a whole set of related data >tables. Policy holder, policy, claim, claimant etc. > >Is this possible? Obviously I have relational integrity turned on so the >PKs have to exist in the "parent" tables before they can be used to enter >data into the child tables. I seem to remember trying this ages ago with >less than stellar results. Has anyone here done something like this, and if >so how? > >John W. Colby >www.ColbyConsulting.com > > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Tue Feb 28 20:14:59 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 18:14:59 -0800 Subject: [AccessD] Assistance In-Reply-To: <002f01c63c93$65082710$647aa8c0@ColbyM6805> References: <002f01c63c93$65082710$647aa8c0@ColbyM6805> Message-ID: <440503A3.7090808@san.rr.com> Bound or unbound forms? Rocky John Colby wrote: > Folks, > > I am looking for a "junior level" person to assist me in getting some of my > back log caught up. I need one person, able to: > > Read and program VBA, guru not required. > Understands and can build Access tables, queries, forms and reports. > Must understand data normalization and be able to correctly sort out what > data goes where given a set of objects / attributes. > Must be able to read, understand and build relationship diagrams in the > relationship window in Access (the center of my universe). > Has a few hours a day available (10-20 hours a week). > Must be self starter, blah, blah, blah. > > If anyone out there thinks they might fit the bill, please respond OFFLINE - > email a resume, and introduction email with required hourly wage to > jwcolby at colbyconsulting.com. The more you know and are capable of the more > work I have. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Tue Feb 28 20:18:48 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 18:18:48 -0800 Subject: [AccessD] Help with combo box In-Reply-To: <6.2.1.2.2.20060228172601.01eefe80@mail.tpg.com.au> References: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> <4403E982.5080005@san.rr.com> <6.2.1.2.2.20060228172601.01eefe80@mail.tpg.com.au> Message-ID: <44050488.1020808@san.rr.com> Sorry about the late response. I was out all day. Can you use the click event? What additional function are you trying to implement? Rocky David & Joanne Gould wrote: > Thanks for your prompt response Rocky. > > At 05:11 PM 28/02/2006, you wrote: > >> What event is the current code attached to? >> The database form is the Hiring form for a video library. There is >> currently code attached to the "Before update" event, the "After Update" >> event and the "On Double-click" event. The Double-click event allows the >> user to add oir change the hiring code (overnight, weekly, etc). >> > > >> Can you use the 'Got Focus' event to run your new code? >> > > The other issue I forgot to mention is it's on a continuous form. I have > tried to make the combo box inactive if there is anything entered in it, > but that just makes it inactive for all the records in the transaction (so > I would only be able to enter one movie per sale). > > > >> Rocky >> >> >> David & Joanne Gould wrote: >> >>> I have a combo box on a form that has quite a lot of code attached to it. >>> >>> Is there a way to run code when the user clicks on the drop-down arrow >>> >> that >> >>> won't interfere with other code that runs when the user double-clicks on >>> the combo box? >>> >>> TIA >>> >>> David >>> >>> >>> >>> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Tue Feb 28 20:23:25 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 18:23:25 -0800 Subject: [AccessD] Entering data in related tables in a single form In-Reply-To: <002e01c63c91$360612d0$647aa8c0@ColbyM6805> References: <002e01c63c91$360612d0$647aa8c0@ColbyM6805> Message-ID: <4405059D.5050508@san.rr.com> John: Can you force the user to create the parent record (at least as far as the insert event so you have a PK) by making the sub-forms bound to the child tables disabled until the parent record is created and you have the PK in hand? Is it one primary parent table with several one-to-many child tables? Rocky John Colby wrote: > I need a quick and dirty form to enter data into a whole set of related data > tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so the > PKs have to exist in the "parent" tables before they can be used to enter > data into the child tables. I seem to remember trying this ages ago with > less than stellar results. Has anyone here done something like this, and if > so how? > > John W. Colby > www.ColbyConsulting.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dajomigo at tpg.com.au Tue Feb 28 20:32:41 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Wed, 01 Mar 2006 13:32:41 +1100 Subject: [AccessD] Help with combo box In-Reply-To: <44050488.1020808@san.rr.com> References: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> <4403E982.5080005@san.rr.com> <6.2.1.2.2.20060228172601.01eefe80@mail.tpg.com.au> <44050488.1020808@san.rr.com> Message-ID: <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> Rocky The Double-click event is set to open another form to change the Rental Type for this movie title. What I was wondering was if there was a way to access the drop-down arrow on the combo box as a separate thing. This might separate the main part of the control where all the other code is connected. Can it be done? TIA David At 01:18 PM 1/03/2006, you wrote: >Sorry about the late response. I was out all day. Can you use the >click event? What additional function are you trying to implement? > >Rocky > > >David & Joanne Gould wrote: > > Thanks for your prompt response Rocky. > > > > At 05:11 PM 28/02/2006, you wrote: > > > >> What event is the current code attached to? > >> The database form is the Hiring form for a video library. There is > >> currently code attached to the "Before update" event, the "After Update" > >> event and the "On Double-click" event. The Double-click event allows the > >> user to add oir change the hiring code (overnight, weekly, etc). > >> > > > > > >> Can you use the 'Got Focus' event to run your new code? > >> > > > > The other issue I forgot to mention is it's on a continuous form. I have > > tried to make the combo box inactive if there is anything entered in it, > > but that just makes it inactive for all the records in the transaction (so > > I would only be able to enter one movie per sale). > > > > > > > >> Rocky > >> > >> > >> David & Joanne Gould wrote: > >> > >>> I have a combo box on a form that has quite a lot of code attached to it. > >>> > >>> Is there a way to run code when the user clicks on the drop-down arrow > >>> > >> that > >> > >>> won't interfere with other code that runs when the user double-clicks on > >>> the combo box? > >>> > >>> TIA > >>> > >>> David > >>> > >>> > >>> > >>> > >> -- > >> Rocky Smolin > >> Beach Access Software > >> 858-259-4334 > >> www.e-z-mrp.com > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > > >-- >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From jmhecht at earthlink.net Tue Feb 28 20:45:07 2006 From: jmhecht at earthlink.net (Joe Hecht) Date: Tue, 28 Feb 2006 18:45:07 -0800 Subject: [AccessD] Entering data in related tables in a single form In-Reply-To: <003901c63ca3$706f3570$647aa8c0@ColbyM6805> Message-ID: <003301c63cda$26f9f3d0$6701a8c0@HPLaptop> John, I am doing this with forms and sub forms on a tab control? I can send it to you if you need. It is the project I have been nagging the list about. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, February 28, 2006 12:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form These are papers in boxes. Beyond that I do not know. Since the total fields they intend to enter is about 20 or so, the client intends to just "key it in". John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, February 28, 2006 1:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form Is the data on paper (and must be input by hand) or electronic forms (where maybe it could be parsed quickly with Monarch?) Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 28, 2006 12:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form >I suppose your base is in "bounders camp" while looking for this >"quick and dirty form" solution :) LOL, yea, given I am an unholy bounder, going unbound would not qualify as quick and dirty. I have discovered that as long as you include the PK/FK pairs, and populate the data in the parent/child order it seems to work. This is a moderately complex database, normalized, with lookup tables etc. and I need to get about 3 or 4 of the major tables populated with new claim / claimant / policy data from a ton of new claims on an "emergency" basis (2000 claims input in then next couple of days). John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, February 28, 2006 1:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Entering data in related tables in a single form <<< > seem to remember trying this ages ago with less than stellar results. >>> John, What issues do you mean? (It should work well in MS Access with properly organized forms (with subforms) and maybe with a few lines of code)... I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:02 PM Subject: [AccessD] Entering data in related tables in a single form >I need a quick and dirty form to enter data into a whole set of related >data tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so > the PKs have to exist in the "parent" tables before they can be used > to enter data into the child tables. I seem to remember trying this > ages ago with less than stellar results. Has anyone here done > something like this, and if so how? > > 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 ************************************************************ *********** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- 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 28 21:00:35 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 22:00:35 -0500 Subject: [AccessD] Entering data in related tables in a single form In-Reply-To: <4405059D.5050508@san.rr.com> Message-ID: <005b01c63cdc$50d0a300$647aa8c0@ColbyM6805> Rocky, There are a hand full of tables that this data will initially go into. There is a new table called "underwriter" which is "parent to" Policy (what insurance company wrote the policy). There is also policy holder (what company / individual owns the policy?). Then the policy table. There is a claimant table (who is filing the claim) and a Claim table (details about the claim). Claim is child to claimant as well as child to policy (kind of). There is actually a ProductType lookup which contains a "business block" name, and the policy is related to the claim through a M2M with this product type. Insurance is a strange duck. Lawyers write contracts (policies), which might be just short term disability, just long term disability or both. Thus the same policy could have claims against it for short term and long term and they are processed differently. There are in fact about 15 product types and counting. So Policy and Product type come together in a m2m and the PK of that is a FK in the claim table. THAT is the ugliest piece of this whole database. Well... Maybe not but you don't want to hear it. ;-) All of these tables potentially need data inserted. In fact tables like Underwriter have just perhaps a dozen insurance company names in it, which will then be selected by a combo in the policy form. Policy holder though already has several thousand records and will have an unknown number added from these files. So no, definitely not a simple structure here. 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: Tuesday, February 28, 2006 9:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Entering data in related tables in a single form John: Can you force the user to create the parent record (at least as far as the insert event so you have a PK) by making the sub-forms bound to the child tables disabled until the parent record is created and you have the PK in hand? Is it one primary parent table with several one-to-many child tables? Rocky John Colby wrote: > I need a quick and dirty form to enter data into a whole set of > related data tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so > the PKs have to exist in the "parent" tables before they can be used > to enter data into the child tables. I seem to remember trying this > ages ago with less than stellar results. Has anyone here done > something like this, and if so how? > > John W. Colby > www.ColbyConsulting.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at ColbyConsulting.com Tue Feb 28 21:14:06 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 22:14:06 -0500 Subject: [AccessD] Entering data in related tables in a single form In-Reply-To: <003301c63cda$26f9f3d0$6701a8c0@HPLaptop> Message-ID: <005c01c63cde$33d3c280$647aa8c0@ColbyM6805> In fact this is the approach I am leaning towards. It is not as fast (data entry) as a single form but makes the division of labor much cleaner. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, February 28, 2006 9:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form John, I am doing this with forms and sub forms on a tab control? I can send it to you if you need. It is the project I have been nagging the list about. Joe Hecht jmhecht at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, February 28, 2006 12:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form These are papers in boxes. Beyond that I do not know. Since the total fields they intend to enter is about 20 or so, the client intends to just "key it in". John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Tuesday, February 28, 2006 1:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form Is the data on paper (and must be input by hand) or electronic forms (where maybe it could be parsed quickly with Monarch?) Jim Hale -----Original Message----- From: John Colby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, February 28, 2006 12:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Entering data in related tables in a single form >I suppose your base is in "bounders camp" while looking for this >"quick and dirty form" solution :) LOL, yea, given I am an unholy bounder, going unbound would not qualify as quick and dirty. I have discovered that as long as you include the PK/FK pairs, and populate the data in the parent/child order it seems to work. This is a moderately complex database, normalized, with lookup tables etc. and I need to get about 3 or 4 of the major tables populated with new claim / claimant / policy data from a ton of new claims on an "emergency" basis (2000 claims input in then next couple of days). John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, February 28, 2006 1:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Entering data in related tables in a single form <<< > seem to remember trying this ages ago with less than stellar results. >>> John, What issues do you mean? (It should work well in MS Access with properly organized forms (with subforms) and maybe with a few lines of code)... I suppose your base is in "bounders camp" while looking for this "quick and dirty form" solution :) Shamil ----- Original Message ----- From: "John Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, February 28, 2006 9:02 PM Subject: [AccessD] Entering data in related tables in a single form >I need a quick and dirty form to enter data into a whole set of related >data tables. Policy holder, policy, claim, claimant etc. > > Is this possible? Obviously I have relational integrity turned on so > the PKs have to exist in the "parent" tables before they can be used > to enter data into the child tables. I seem to remember trying this > ages ago with less than stellar results. Has anyone here done > something like this, and if so how? > > 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 ************************************************************ *********** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Tue Feb 28 21:36:51 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 28 Feb 2006 22:36:51 -0500 Subject: [AccessD] Help with combo box In-Reply-To: <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> Message-ID: <000001c63ce1$61c1b230$cfb3d6d1@SUSANONE> Are you talking about the Dropdown property? Isn't there a Dropdown property that you can set to automatically open the list? Is that what you're after? Susan H. The Double-click event is set to open another form to change the Rental Type for this movie title. What I was wondering was if there was a way to access the drop-down arrow on the combo box as a separate thing. This might separate the main part of the control where all the other code is connected. Can it be done? From jwcolby at ColbyConsulting.com Tue Feb 28 21:46:29 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 22:46:29 -0500 Subject: [AccessD] Assistance In-Reply-To: <440503A3.7090808@san.rr.com> Message-ID: <005d01c63ce2$ba705fc0$647aa8c0@ColbyM6805> LOL, 99% of my forms are bound. 99% of my forms do some pretty "fancy" stuff via my framework as well. For example, I have a "REC_ID" text box on every form which is bound to the PK of the table the form collects data for. The REC_ID on the opening form is bound to the PK so it has information on the field name for the PK which I can use in building "move to" code. If a combo on another (child) form is displaying a record, the combo has the PK VALUE of a specific record in the parent table. If a user dbl clicks a combo box, my framework can cause a data entry form to open displaying data from the parent table that the combo is displaying. Since I know the PK from the combo that was double clicked, and I know the table and field of that PK from the REC_ID control, I can instruct the form to "find" that PK. I therefore have all the pieces needed to open the form and move to the record that the combo was displaying. If the combo back on the calling form was on the new record, it will NOT be displaying data. That is a signal to the opening form to move to a new record so that the user can enter data. I use the same basic logic for the "not-in-list" event of the combo to allow the user to automatically open the data entry form for a combo, move to the new record, and enter new data in the table. When the form closes, the combo requeries and now contains the newly entered data in the list table. That kind of stuff. My framework provides dozens of "behaviors" that are just there if I want to use them. In the OnOpen of a form, when I set up the form class, I can specify that "this combo is dependent on that combo". When the class for this combo is requeried, it automatically requeries all "dependent" object classes. I can have subforms, combos, list boxes etc. all "dependent on" a given object. As long as each of these dependent objects has a "requery" method, I can just iterate the colDependentObject collection of the class, requerying all dependent objects. The current event of a subform can cause the form class to requery all "dependent objects" dependent on that current record of the subform. Of course all dependent objects have to have feedback in the query that allows it to display different data depending on the current row of a form, or the selected item in a combo etc. But if you set it all up, and "inform" the framework (objects) that other objects are dependent on them, then they all get requeried when the master object is requeried. A combo can have a dependent combo, which can itself have a dependent combo. Change the first combo, it requeries the second combo. The second combo then requeries the third combo etc. The third combo could requery 5 subforms. Your imagination is the limit. This kind of stuff can make the creation of dependent combos and subforms a snap. Just one of dozens of behaviors built in to the framework. Yea, I use bound forms, I use autonumber PKs, I use a framework, and I make good use of all of the above. 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: Tuesday, February 28, 2006 9:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Assistance Bound or unbound forms? Rocky John Colby wrote: > Folks, > > I am looking for a "junior level" person to assist me in getting some > of my back log caught up. I need one person, able to: > > Read and program VBA, guru not required. > Understands and can build Access tables, queries, forms and reports. > Must understand data normalization and be able to correctly sort out > what data goes where given a set of objects / attributes. > Must be able to read, understand and build relationship diagrams in > the relationship window in Access (the center of my universe). > Has a few hours a day available (10-20 hours a week). > Must be self starter, blah, blah, blah. > > If anyone out there thinks they might fit the bill, please respond > OFFLINE - email a resume, and introduction email with required hourly > wage to jwcolby at colbyconsulting.com. The more you know and are > capable of the more work I have. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dajomigo at tpg.com.au Tue Feb 28 21:52:09 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Wed, 01 Mar 2006 14:52:09 +1100 Subject: [AccessD] Help with combo box In-Reply-To: <000001c63ce1$61c1b230$cfb3d6d1@SUSANONE> References: <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> <000001c63ce1$61c1b230$cfb3d6d1@SUSANONE> Message-ID: <6.2.1.2.2.20060301144836.01e78160@mail.tpg.com.au> Susan The only property list I can see is the property dialog box for the whole control. What I need to setup is a way that makes it impossible for the user to change their selection once they have made one (unless they delete the record first) but still lets them use the double-click event to open the form to change the rental type for the title. TIA David At 02:36 PM 1/03/2006, you wrote: >Are you talking about the Dropdown property? Isn't there a Dropdown property >that you can set to automatically open the list? Is that what you're after? > >Susan H. > >The Double-click event is set to open another form to change the Rental Type >for this movie title. What I was wondering was if there was a way to access >the drop-down arrow on the combo box as a separate thing. This might >separate the main part of the control where all the other code is connected. >Can it be done? > >-- >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 28 22:15:09 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 20:15:09 -0800 Subject: [AccessD] Assistance In-Reply-To: <005d01c63ce2$ba705fc0$647aa8c0@ColbyM6805> References: <005d01c63ce2$ba705fc0$647aa8c0@ColbyM6805> Message-ID: <44051FCD.8060007@san.rr.com> Well, thanks to you and your dictatorial methodology I find I am now completely unable to create a new table without defining an autonumber PK as the very first field. With ID as the suffix of the field name. Thanks a lot. And I mean that. Rocky John Colby wrote: > LOL, 99% of my forms are bound. 99% of my forms do some pretty "fancy" > stuff via my framework as well. > > For example, I have a "REC_ID" text box on every form which is bound to the > PK of the table the form collects data for. The REC_ID on the opening form > is bound to the PK so it has information on the field name for the PK which > I can use in building "move to" code. If a combo on another (child) form is > displaying a record, the combo has the PK VALUE of a specific record in the > parent table. If a user dbl clicks a combo box, my framework can cause a > data entry form to open displaying data from the parent table that the combo > is displaying. Since I know the PK from the combo that was double clicked, > and I know the table and field of that PK from the REC_ID control, I can > instruct the form to "find" that PK. I therefore have all the pieces > needed to open the form and move to the record that the combo was > displaying. If the combo back on the calling form was on the new record, it > will NOT be displaying data. That is a signal to the opening form to move > to a new record so that the user can enter data. I use the same basic logic > for the "not-in-list" event of the combo to allow the user to automatically > open the data entry form for a combo, move to the new record, and enter new > data in the table. When the form closes, the combo requeries and now > contains the newly entered data in the list table. > > That kind of stuff. > > My framework provides dozens of "behaviors" that are just there if I want to > use them. In the OnOpen of a form, when I set up the form class, I can > specify that "this combo is dependent on that combo". When the class for > this combo is requeried, it automatically requeries all "dependent" object > classes. I can have subforms, combos, list boxes etc. all "dependent on" a > given object. As long as each of these dependent objects has a "requery" > method, I can just iterate the colDependentObject collection of the class, > requerying all dependent objects. The current event of a subform can cause > the form class to requery all "dependent objects" dependent on that current > record of the subform. Of course all dependent objects have to have > feedback in the query that allows it to display different data depending on > the current row of a form, or the selected item in a combo etc. But if you > set it all up, and "inform" the framework (objects) that other objects are > dependent on them, then they all get requeried when the master object is > requeried. A combo can have a dependent combo, which can itself have a > dependent combo. Change the first combo, it requeries the second combo. > The second combo then requeries the third combo etc. The third combo could > requery 5 subforms. Your imagination is the limit. > > This kind of stuff can make the creation of dependent combos and subforms a > snap. > > Just one of dozens of behaviors built in to the framework. > > Yea, I use bound forms, I use autonumber PKs, I use a framework, and I make > good use of all of the above. > > 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: Tuesday, February 28, 2006 9:15 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Assistance > > Bound or unbound forms? > > Rocky > > > John Colby wrote: > >> Folks, >> >> I am looking for a "junior level" person to assist me in getting some >> of my back log caught up. I need one person, able to: >> >> Read and program VBA, guru not required. >> Understands and can build Access tables, queries, forms and reports. >> Must understand data normalization and be able to correctly sort out >> what data goes where given a set of objects / attributes. >> Must be able to read, understand and build relationship diagrams in >> the relationship window in Access (the center of my universe). >> Has a few hours a day available (10-20 hours a week). >> Must be self starter, blah, blah, blah. >> >> If anyone out there thinks they might fit the bill, please respond >> OFFLINE - email a resume, and introduction email with required hourly >> wage to jwcolby at colbyconsulting.com. The more you know and are >> capable of the more work I have. >> >> Thanks, >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Tue Feb 28 22:17:37 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 20:17:37 -0800 Subject: [AccessD] Help with combo box In-Reply-To: <6.2.1.2.2.20060301144836.01e78160@mail.tpg.com.au> References: <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> <000001c63ce1$61c1b230$cfb3d6d1@SUSANONE> <6.2.1.2.2.20060301144836.01e78160@mail.tpg.com.au> Message-ID: <44052061.40303@san.rr.com> David: So could you make the combo box enabled in the Current event (moving to a new record) and disable it after the user makes a selection? But that leads to another problem. People make mistakes. So you have to give them a way to back out of an erroneous selection. Rocky David & Joanne Gould wrote: > Susan > > The only property list I can see is the property dialog box for the whole > control. What I need to setup is a way that makes it impossible for the > user to change their selection once they have made one (unless they delete > the record first) but still lets them use the double-click event to open > the form to change the rental type for the title. > > TIA > > David > > At 02:36 PM 1/03/2006, you wrote: > >> Are you talking about the Dropdown property? Isn't there a Dropdown property >> that you can set to automatically open the list? Is that what you're after? >> >> Susan H. >> >> The Double-click event is set to open another form to change the Rental Type >> for this movie title. What I was wondering was if there was a way to access >> the drop-down arrow on the combo box as a separate thing. This might >> separate the main part of the control where all the other code is connected. >> Can it be done? >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Tue Feb 28 22:19:00 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 20:19:00 -0800 Subject: [AccessD] Help with combo box In-Reply-To: <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> References: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> <4403E982.5080005@san.rr.com> <6.2.1.2.2.20060228172601.01eefe80@mail.tpg.com.au> <44050488.1020808@san.rr.com> <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> Message-ID: <440520B4.7020907@san.rr.com> David: AFAIK, no, the down arrow is not a separately programmable part of the control. But AFAIK may not go all that far. Rocky David & Joanne Gould wrote: > Rocky > > The Double-click event is set to open another form to change the Rental > Type for this movie title. What I was wondering was if there was a way to > access the drop-down arrow on the combo box as a separate thing. This might > separate the main part of the control where all the other code is > connected. Can it be done? > > TIA > > David > > At 01:18 PM 1/03/2006, you wrote: > >> Sorry about the late response. I was out all day. Can you use the >> click event? What additional function are you trying to implement? >> >> Rocky >> >> >> David & Joanne Gould wrote: >> >>> Thanks for your prompt response Rocky. >>> >>> At 05:11 PM 28/02/2006, you wrote: >>> >>> >>>> What event is the current code attached to? >>>> The database form is the Hiring form for a video library. There is >>>> currently code attached to the "Before update" event, the "After Update" >>>> event and the "On Double-click" event. The Double-click event allows the >>>> user to add oir change the hiring code (overnight, weekly, etc). >>>> >>>> >>> >>>> Can you use the 'Got Focus' event to run your new code? >>>> >>>> >>> The other issue I forgot to mention is it's on a continuous form. I have >>> tried to make the combo box inactive if there is anything entered in it, >>> but that just makes it inactive for all the records in the transaction (so >>> I would only be able to enter one movie per sale). >>> >>> >>> >>> >>>> Rocky >>>> >>>> >>>> David & Joanne Gould wrote: >>>> >>>> >>>>> I have a combo box on a form that has quite a lot of code attached to it. >>>>> >>>>> Is there a way to run code when the user clicks on the drop-down arrow >>>>> >>>>> >>>> that >>>> >>>> >>>>> won't interfere with other code that runs when the user double-clicks on >>>>> the combo box? >>>>> >>>>> TIA >>>>> >>>>> David >>>>> >>>>> >>>>> >>>>> >>>>> >>>> -- >>>> Rocky Smolin >>>> Beach Access Software >>>> 858-259-4334 >>>> www.e-z-mrp.com >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> >>> >>> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Tue Feb 28 22:22:13 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 20:22:13 -0800 Subject: [AccessD] Entering data in related tables in a single form In-Reply-To: <005b01c63cdc$50d0a300$647aa8c0@ColbyM6805> References: <005b01c63cdc$50d0a300$647aa8c0@ColbyM6805> Message-ID: <44052175.7050402@san.rr.com> John: Is restructuring the tables and relationships an option? It would seem that policy number would be the primary piece of data in this whole scheme and a table of PolicyID (autonumber) and policy number could serve as the master parent table to which everything else would be related. Rocky John Colby wrote: > Rocky, > > There are a hand full of tables that this data will initially go into. > There is a new table called "underwriter" which is "parent to" Policy (what > insurance company wrote the policy). There is also policy holder (what > company / individual owns the policy?). Then the policy table. There is a > claimant table (who is filing the claim) and a Claim table (details about > the claim). Claim is child to claimant as well as child to policy (kind > of). > > There is actually a ProductType lookup which contains a "business block" > name, and the policy is related to the claim through a M2M with this product > type. Insurance is a strange duck. Lawyers write contracts (policies), > which might be just short term disability, just long term disability or > both. Thus the same policy could have claims against it for short term and > long term and they are processed differently. There are in fact about 15 > product types and counting. So Policy and Product type come together in a > m2m and the PK of that is a FK in the claim table. THAT is the ugliest > piece of this whole database. Well... Maybe not but you don't want to hear > it. ;-) > > All of these tables potentially need data inserted. In fact tables like > Underwriter have just perhaps a dozen insurance company names in it, which > will then be selected by a combo in the policy form. Policy holder though > already has several thousand records and will have an unknown number added > from these files. > > So no, definitely not a simple structure here. > > > 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: Tuesday, February 28, 2006 9:23 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Entering data in related tables in a single form > > John: > > Can you force the user to create the parent record (at least as far as the > insert event so you have a PK) by making the sub-forms bound to the child > tables disabled until the parent record is created and you have the PK in > hand? > > Is it one primary parent table with several one-to-many child tables? > > Rocky > > > John Colby wrote: > >> I need a quick and dirty form to enter data into a whole set of >> related data tables. Policy holder, policy, claim, claimant etc. >> >> Is this possible? Obviously I have relational integrity turned on so >> the PKs have to exist in the "parent" tables before they can be used >> to enter data into the child tables. I seem to remember trying this >> ages ago with less than stellar results. Has anyone here done >> something like this, and if so how? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> >> > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dajomigo at tpg.com.au Tue Feb 28 22:36:17 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Wed, 01 Mar 2006 15:36:17 +1100 Subject: [AccessD] Help with combo box In-Reply-To: <440520B4.7020907@san.rr.com> References: <6.2.1.2.2.20060228155505.01e9c198@mail.tpg.com.au> <4403E982.5080005@san.rr.com> <6.2.1.2.2.20060228172601.01eefe80@mail.tpg.com.au> <44050488.1020808@san.rr.com> <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> <440520B4.7020907@san.rr.com> Message-ID: <6.2.1.2.2.20060301153607.01e77550@mail.tpg.com.au> Pity David At 03:19 PM 1/03/2006, you wrote: >David: > >AFAIK, no, the down arrow is not a separately programmable part of the >control. But AFAIK may not go all that far. > >Rocky > > >David & Joanne Gould wrote: > > Rocky > > > > The Double-click event is set to open another form to change the Rental > > Type for this movie title. What I was wondering was if there was a way to > > access the drop-down arrow on the combo box as a separate thing. This > might > > separate the main part of the control where all the other code is > > connected. Can it be done? > > > > TIA > > > > David > > > > At 01:18 PM 1/03/2006, you wrote: > > > >> Sorry about the late response. I was out all day. Can you use the > >> click event? What additional function are you trying to implement? > >> > >> Rocky > >> > >> > >> David & Joanne Gould wrote: > >> > >>> Thanks for your prompt response Rocky. > >>> > >>> At 05:11 PM 28/02/2006, you wrote: > >>> > >>> > >>>> What event is the current code attached to? > >>>> The database form is the Hiring form for a video library. There is > >>>> currently code attached to the "Before update" event, the "After Update" > >>>> event and the "On Double-click" event. The Double-click event allows the > >>>> user to add oir change the hiring code (overnight, weekly, etc). > >>>> > >>>> > >>> > >>>> Can you use the 'Got Focus' event to run your new code? > >>>> > >>>> > >>> The other issue I forgot to mention is it's on a continuous form. I have > >>> tried to make the combo box inactive if there is anything entered in it, > >>> but that just makes it inactive for all the records in the > transaction (so > >>> I would only be able to enter one movie per sale). > >>> > >>> > >>> > >>> > >>>> Rocky > >>>> > >>>> > >>>> David & Joanne Gould wrote: > >>>> > >>>> > >>>>> I have a combo box on a form that has quite a lot of code attached > to it. > >>>>> > >>>>> Is there a way to run code when the user clicks on the drop-down arrow > >>>>> > >>>>> > >>>> that > >>>> > >>>> > >>>>> won't interfere with other code that runs when the user > double-clicks on > >>>>> the combo box? > >>>>> > >>>>> TIA > >>>>> > >>>>> David > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>> -- > >>>> Rocky Smolin > >>>> Beach Access Software > >>>> 858-259-4334 > >>>> www.e-z-mrp.com > >>>> > >>>> -- > >>>> AccessD mailing list > >>>> AccessD at databaseadvisors.com > >>>> http://databaseadvisors.com/mailman/listinfo/accessd > >>>> Website: http://www.databaseadvisors.com > >>>> > >>>> > >>> > >>> > >> -- > >> Rocky Smolin > >> Beach Access Software > >> 858-259-4334 > >> www.e-z-mrp.com > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > > >-- >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From dajomigo at tpg.com.au Tue Feb 28 22:38:44 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Wed, 01 Mar 2006 15:38:44 +1100 Subject: [AccessD] Help with combo box In-Reply-To: <44052061.40303@san.rr.com> References: <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> <000001c63ce1$61c1b230$cfb3d6d1@SUSANONE> <6.2.1.2.2.20060301144836.01e78160@mail.tpg.com.au> <44052061.40303@san.rr.com> Message-ID: <6.2.1.2.2.20060301153631.01e77178@mail.tpg.com.au> Rocky I had a look but the combo box doesn't have a oncurrent event. If you meant for the form - the form is a continuous form and time I set the combo box to disabled it disables every instance of it. David At 03:17 PM 1/03/2006, you wrote: >David: > >So could you make the combo box enabled in the Current event (moving to >a new record) and disable it after the user makes a selection? > >But that leads to another problem. People make mistakes. So you have >to give them a way to back out of an erroneous selection. > >Rocky > > >David & Joanne Gould wrote: > > Susan > > > > The only property list I can see is the property dialog box for the whole > > control. What I need to setup is a way that makes it impossible for the > > user to change their selection once they have made one (unless they delete > > the record first) but still lets them use the double-click event to open > > the form to change the rental type for the title. > > > > TIA > > > > David > > > > At 02:36 PM 1/03/2006, you wrote: > > > >> Are you talking about the Dropdown property? Isn't there a Dropdown > property > >> that you can set to automatically open the list? Is that what you're > after? > >> > >> Susan H. > >> > >> The Double-click event is set to open another form to change the > Rental Type > >> for this movie title. What I was wondering was if there was a way to > access > >> the drop-down arrow on the combo box as a separate thing. This might > >> separate the main part of the control where all the other code is > connected. > >> Can it be done? > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > > >-- >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From darrend at nimble.com.au Tue Feb 28 22:47:08 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 1 Mar 2006 15:47:08 +1100 Subject: [AccessD] Help with combo box In-Reply-To: <6.2.1.2.2.20060301153607.01e77550@mail.tpg.com.au> Message-ID: <20060301044714.UNEW1358.omta03sl.mx.bigpond.com@DENZILLAP> Howdy The on Double click - by its very event - will also activate the 'Enter' (on first click) ,"Got Focus', 'Mouse Down', 'Mouse Up', Click and of course 'Double Click' SO if you've got code in nay of 'em - they get fired So - when it gets a bit too crowded like that I put a small button to the right hand side of the combo - I know it's not as nice To do whatever the double click code would have done See ya Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David & Joanne Gould Sent: Wednesday, 1 March 2006 3:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Help with combo box Pity David At 03:19 PM 1/03/2006, you wrote: >David: > >AFAIK, no, the down arrow is not a separately programmable part of the >control. But AFAIK may not go all that far. > >Rocky > > >David & Joanne Gould wrote: > > Rocky > > > > The Double-click event is set to open another form to change the > > Rental Type for this movie title. What I was wondering was if there > > was a way to access the drop-down arrow on the combo box as a > > separate thing. This > might > > separate the main part of the control where all the other code is > > connected. Can it be done? > > > > TIA > > > > David > > > > At 01:18 PM 1/03/2006, you wrote: > > > >> Sorry about the late response. I was out all day. Can you use the > >> click event? What additional function are you trying to implement? > >> > >> Rocky > >> > >> > >> David & Joanne Gould wrote: > >> > >>> Thanks for your prompt response Rocky. > >>> > >>> At 05:11 PM 28/02/2006, you wrote: > >>> > >>> > >>>> What event is the current code attached to? > >>>> The database form is the Hiring form for a video library. There > >>>> is currently code attached to the "Before update" event, the "After Update" > >>>> event and the "On Double-click" event. The Double-click event > >>>> allows the user to add oir change the hiring code (overnight, weekly, etc). > >>>> > >>>> > >>> > >>>> Can you use the 'Got Focus' event to run your new code? > >>>> > >>>> > >>> The other issue I forgot to mention is it's on a continuous form. > >>> I have tried to make the combo box inactive if there is anything > >>> entered in it, but that just makes it inactive for all the records > >>> in the > transaction (so > >>> I would only be able to enter one movie per sale). > >>> > >>> > >>> > >>> > >>>> Rocky > >>>> > >>>> > >>>> David & Joanne Gould wrote: > >>>> > >>>> > >>>>> I have a combo box on a form that has quite a lot of code > >>>>> attached > to it. > >>>>> > >>>>> Is there a way to run code when the user clicks on the drop-down > >>>>> arrow > >>>>> > >>>>> > >>>> that > >>>> > >>>> > >>>>> won't interfere with other code that runs when the user > double-clicks on > >>>>> the combo box? > >>>>> > >>>>> TIA > >>>>> > >>>>> David > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>> -- > >>>> Rocky Smolin > >>>> Beach Access Software > >>>> 858-259-4334 > >>>> www.e-z-mrp.com > >>>> > >>>> -- > >>>> AccessD mailing list > >>>> AccessD at databaseadvisors.com > >>>> http://databaseadvisors.com/mailman/listinfo/accessd > >>>> Website: http://www.databaseadvisors.com > >>>> > >>>> > >>> > >>> > >> -- > >> Rocky Smolin > >> Beach Access Software > >> 858-259-4334 > >> www.e-z-mrp.com > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > > >-- >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at ColbyConsulting.com Tue Feb 28 22:59:03 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 28 Feb 2006 23:59:03 -0500 Subject: [AccessD] Assistance In-Reply-To: <44051FCD.8060007@san.rr.com> Message-ID: <005e01c63cec$dd004a50$647aa8c0@ColbyM6805> ROTFLMAO. Some things are just worth doing, always. Because of my dictatorial methods I am able to just look at my tables and see the relationships, know what tables a field is in etc. Works for me. Most of my subjects don't dare speak up anymore, knowing my "out the door, without a parachute" mentality. ;-) 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: Tuesday, February 28, 2006 11:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Assistance Well, thanks to you and your dictatorial methodology I find I am now completely unable to create a new table without defining an autonumber PK as the very first field. With ID as the suffix of the field name. Thanks a lot. And I mean that. Rocky John Colby wrote: > LOL, 99% of my forms are bound. 99% of my forms do some pretty "fancy" > stuff via my framework as well. > > For example, I have a "REC_ID" text box on every form which is bound > to the PK of the table the form collects data for. The REC_ID on the > opening form is bound to the PK so it has information on the field > name for the PK which I can use in building "move to" code. If a combo > on another (child) form is displaying a record, the combo has the PK > VALUE of a specific record in the parent table. If a user dbl clicks > a combo box, my framework can cause a data entry form to open > displaying data from the parent table that the combo is displaying. > Since I know the PK from the combo that was double clicked, and I know the table and field of that PK from the REC_ID control, I can > instruct the form to "find" that PK. I therefore have all the pieces > needed to open the form and move to the record that the combo was > displaying. If the combo back on the calling form was on the new > record, it will NOT be displaying data. That is a signal to the > opening form to move to a new record so that the user can enter data. > I use the same basic logic for the "not-in-list" event of the combo to > allow the user to automatically open the data entry form for a combo, > move to the new record, and enter new data in the table. When the > form closes, the combo requeries and now contains the newly entered data in the list table. > > That kind of stuff. > > My framework provides dozens of "behaviors" that are just there if I > want to use them. In the OnOpen of a form, when I set up the form > class, I can specify that "this combo is dependent on that combo". > When the class for this combo is requeried, it automatically requeries > all "dependent" object classes. I can have subforms, combos, list > boxes etc. all "dependent on" a given object. As long as each of these dependent objects has a "requery" > method, I can just iterate the colDependentObject collection of the > class, requerying all dependent objects. The current event of a > subform can cause the form class to requery all "dependent objects" > dependent on that current record of the subform. Of course all > dependent objects have to have feedback in the query that allows it to > display different data depending on the current row of a form, or the > selected item in a combo etc. But if you set it all up, and "inform" > the framework (objects) that other objects are dependent on them, then > they all get requeried when the master object is requeried. A combo > can have a dependent combo, which can itself have a dependent combo. Change the first combo, it requeries the second combo. > The second combo then requeries the third combo etc. The third combo > could requery 5 subforms. Your imagination is the limit. > > This kind of stuff can make the creation of dependent combos and > subforms a snap. > > Just one of dozens of behaviors built in to the framework. > > Yea, I use bound forms, I use autonumber PKs, I use a framework, and I > make good use of all of the above. > > 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: Tuesday, February 28, 2006 9:15 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Assistance > > Bound or unbound forms? > > Rocky From bchacc at san.rr.com Tue Feb 28 23:14:55 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 28 Feb 2006 21:14:55 -0800 Subject: [AccessD] Help with combo box In-Reply-To: <6.2.1.2.2.20060301153631.01e77178@mail.tpg.com.au> References: <6.2.1.2.2.20060301132926.01e79298@mail.tpg.com.au> <000001c63ce1$61c1b230$cfb3d6d1@SUSANONE> <6.2.1.2.2.20060301144836.01e78160@mail.tpg.com.au> <44052061.40303@san.rr.com> <6.2.1.2.2.20060301153631.01e77178@mail.tpg.com.au> Message-ID: <44052DCF.5010205@san.rr.com> David: Sometimes, in a case like this, I will bind the field to a text box and put the unbound combo box behind it, not visible. In the click event of the text box I make the combo box visible. In the update event of the combo box I take the combo box value and put it into the bound text box., and make the combo box invisible again. In your case, if there is already a value in the bound text box, you wouldn't activate the combo box. So once they make a choice, they can't change it. Rocky David & Joanne Gould wrote: > Rocky > > I had a look but the combo box doesn't have a oncurrent event. If you meant > for the form - the form is a continuous form and time I set the combo box > to disabled it disables every instance of it. > > David > > At 03:17 PM 1/03/2006, you wrote: > >> David: >> >> So could you make the combo box enabled in the Current event (moving to >> a new record) and disable it after the user makes a selection? >> >> But that leads to another problem. People make mistakes. So you have >> to give them a way to back out of an erroneous selection. >> >> Rocky >> >> >> David & Joanne Gould wrote: >> >>> Susan >>> >>> The only property list I can see is the property dialog box for the whole >>> control. What I need to setup is a way that makes it impossible for the >>> user to change their selection once they have made one (unless they delete >>> the record first) but still lets them use the double-click event to open >>> the form to change the rental type for the title. >>> >>> TIA >>> >>> David >>> >>> At 02:36 PM 1/03/2006, you wrote: >>> >>> >>>> Are you talking about the Dropdown property? Isn't there a Dropdown >>>> >> property >> >>>> that you can set to automatically open the list? Is that what you're >>>> >> after? >> >>>> Susan H. >>>> >>>> The Double-click event is set to open another form to change the >>>> >> Rental Type >> >>>> for this movie title. What I was wondering was if there was a way to >>>> >> access >> >>>> the drop-down arrow on the combo box as a separate thing. This might >>>> separate the main part of the control where all the other code is >>>> >> connected. >> >>>> Can it be done? >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> >>> >>> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dajomigo at tpg.com.au Tue Feb 28 23:18:49 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Wed, 01 Mar 2006 16:18:49 +1100 Subject: [AccessD] Help with combo box In-Reply-To: <20060301044714.UNEW1358.omta03sl.mx.bigpond.com@DENZILLAP> References: <6.2.1.2.2.20060301153607.01e77550@mail.tpg.com.au> <20060301044714.UNEW1358.omta03sl.mx.bigpond.com@DENZILLAP> Message-ID: <6.2.1.2.2.20060301161727.01e766b0@mail.tpg.com.au> Thanks Darren. As you said, less elegant, but logic says its the only way to go. can't believe I didn't think of something like that. Again, thanks. David At 03:47 PM 1/03/2006, you wrote: >Howdy >The on Double click - by its very event - will also activate the 'Enter' (on >first click) ,"Got Focus', 'Mouse Down', 'Mouse Up', Click and of course >'Double >Click' >SO if you've got code in nay of 'em - they get fired >So - when it gets a bit too crowded like that I put a small button to the >right >hand side of the combo - I know it's not as nice >To do whatever the double click code would have done > >See ya > > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David & Joanne >Gould >Sent: Wednesday, 1 March 2006 3:36 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Help with combo box > >Pity > >David >At 03:19 PM 1/03/2006, you wrote: > >David: > > > >AFAIK, no, the down arrow is not a separately programmable part of the > >control. But AFAIK may not go all that far. > > > >Rocky > > > > > >David & Joanne Gould wrote: > > > Rocky > > > > > > The Double-click event is set to open another form to change the > > > Rental Type for this movie title. What I was wondering was if there > > > was a way to access the drop-down arrow on the combo box as a > > > separate thing. This > > might > > > separate the main part of the control where all the other code is > > > connected. Can it be done? > > > > > > TIA > > > > > > David > > > > > > At 01:18 PM 1/03/2006, you wrote: > > > > > >> Sorry about the late response. I was out all day. Can you use the > > >> click event? What additional function are you trying to implement? > > >> > > >> Rocky > > >> > > >> > > >> David & Joanne Gould wrote: > > >> > > >>> Thanks for your prompt response Rocky. > > >>> > > >>> At 05:11 PM 28/02/2006, you wrote: > > >>> > > >>> > > >>>> What event is the current code attached to? > > >>>> The database form is the Hiring form for a video library. There > > >>>> is currently code attached to the "Before update" event, the "After >Update" > > >>>> event and the "On Double-click" event. The Double-click event > > >>>> allows the user to add oir change the hiring code (overnight, weekly, >etc). > > >>>> > > >>>> > > >>> > > >>>> Can you use the 'Got Focus' event to run your new code? > > >>>> > > >>>> > > >>> The other issue I forgot to mention is it's on a continuous form. > > >>> I have tried to make the combo box inactive if there is anything > > >>> entered in it, but that just makes it inactive for all the records > > >>> in the > > transaction (so > > >>> I would only be able to enter one movie per sale). > > >>> > > >>> > > >>> > > >>> > > >>>> Rocky > > >>>> > > >>>> > > >>>> David & Joanne Gould wrote: > > >>>> > > >>>> > > >>>>> I have a combo box on a form that has quite a lot of code > > >>>>> attached > > to it. > > >>>>> > > >>>>> Is there a way to run code when the user clicks on the drop-down > > >>>>> arrow > > >>>>> > > >>>>> > > >>>> that > > >>>> > > >>>> > > >>>>> won't interfere with other code that runs when the user > > double-clicks on > > >>>>> the combo box? > > >>>>> > > >>>>> TIA > > >>>>> > > >>>>> David > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>> -- > > >>>> Rocky Smolin > > >>>> Beach Access Software > > >>>> 858-259-4334 > > >>>> www.e-z-mrp.com > > >>>> > > >>>> -- > > >>>> AccessD mailing list > > >>>> AccessD at databaseadvisors.com > > >>>> http://databaseadvisors.com/mailman/listinfo/accessd > > >>>> Website: http://www.databaseadvisors.com > > >>>> > > >>>> > > >>> > > >>> > > >> -- > > >> Rocky Smolin > > >> Beach Access Software > > >> 858-259-4334 > > >> www.e-z-mrp.com > > >> > > >> -- > > >> AccessD mailing list > > >> AccessD at databaseadvisors.com > > >> http://databaseadvisors.com/mailman/listinfo/accessd > > >> Website: http://www.databaseadvisors.com > > >> > > > > > > > > > > > > >-- > >Rocky Smolin > >Beach Access Software > >858-259-4334 > >www.e-z-mrp.com > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com