From bchacc at san.rr.com Mon May 1 09:43:38 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 01 May 2006 07:43:38 -0700 Subject: [AccessD] Setting Box Forecolor Message-ID: <44561E9A.7030702@san.rr.com> Dear List: I have several manikin diagrams with boxes where a patient experience pain. When they click the box it turns from green to red (and v.v.). When the forecolor of the box changes I save it in a Yes/No field in the patient record in the patient table - Yes for red, No for green. On entering the form for the second or subsequent times, in the Form_Open event I want to change the boxes to red which were previously turned red but I'm having a problem with the syntax. The boxes are uniformly named "Boxnnnnnn" (length can vary) and the corresponding fields are named "fldPLnnnnnnn" So I'm using: Set db = CurrentDb Set rs = db.OpenRecordset("Select * FROM tblPatient WHERE fldPatientRecordID = " _ & Forms!frmPatient!fldPatientRecordID) For Each fld In rs.Fields If Left(fld.Name, 5) = "fldPL" Then If rs(fld.Name) = True Then strControl = ("Box" & Right(fld.Name, Len(fld.Name) - 5)) Set ctl = Me(strControl) ctl.ForeColor = 255 End If End If Next fld to find the fields beginning with fldPL and everything works, I get the box name in strControl, OK except where I want to set the forecolor of the box to red it doesn't work (property or method not supported). Does someone know the correct method/syntax? MTIA, Rocky P.S. - additional question for the future - this app is coming from a back pain specialist who saw The Sleep Advisor and wants to do a similar expert system to diagnose back pain. Very interesting idea. In the meantime, the areas of pain on the manikins are, of necessity, rectangles. But on his original drawings, they are irregular shapes conforming to the outlines of the body. As it is now, it will do for alpha and beta testing, but ultimately we'll need something more precise. Does anyone have any ideas on how to draw irregular shapes on a form which will respond to a mouse click? MTIA again. -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From stuart at lexacorp.com.pg Mon May 1 09:59:11 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 02 May 2006 00:59:11 +1000 Subject: [AccessD] Setting Box Forecolor In-Reply-To: <44561E9A.7030702@san.rr.com> Message-ID: <4456AEDF.13077.4FFC62D5@stuart.lexacorp.com.pg> On 1 May 2006 at 7:43, Rocky Smolin - Beach Access S wrote: > > to find the fields beginning with fldPL and everything works, I get the box > name in strControl, OK except where I want to set the forecolor of the box > to red it doesn't work (property or method not supported). Does someone know > the correct method/syntax? A box doesn't have a forecolor. It only has a backcolor and a bordercolor. Try setting ctl.backcolor -- Stuart From bchacc at san.rr.com Mon May 1 10:33:22 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 01 May 2006 08:33:22 -0700 Subject: [AccessD] Setting Box Forecolor In-Reply-To: <4456AEDF.13077.4FFC62D5@stuart.lexacorp.com.pg> References: <4456AEDF.13077.4FFC62D5@stuart.lexacorp.com.pg> Message-ID: <44562A42.8060706@san.rr.com> D'OH!! First dope slap of the week! (Thanks) Rocky Stuart McLachlan wrote: > On 1 May 2006 at 7:43, Rocky Smolin - Beach Access S wrote: > > >> to find the fields beginning with fldPL and everything works, I get the box >> name in strControl, OK except where I want to set the forecolor of the box >> to red it doesn't work (property or method not supported). Does someone know >> the correct method/syntax? >> > > A box doesn't have a forecolor. It only has a backcolor and a bordercolor. > Try setting ctl.backcolor > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From stuart at lexacorp.com.pg Mon May 1 10:54:28 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 02 May 2006 01:54:28 +1000 Subject: [AccessD] Setting Box Forecolor In-Reply-To: <44561E9A.7030702@san.rr.com> Message-ID: <4456BBD4.11554.502EFFCD@stuart.lexacorp.com.pg> On 1 May 2006 at 7:43, Rocky Smolin - Beach Access S wrote: > P.S. - additional question for the future - this app is coming from a > back pain specialist who saw The Sleep Advisor and wants to do a similar > expert system to diagnose back pain. Very interesting idea. In the > meantime, the areas of pain on the manikins are, of necessity, rectangles. > But on his original drawings, they are irregular shapes conforming to the > outlines of the body. As it is now, it will do for alpha and beta testing, > but ultimately we'll need something more precise. Does anyone have any > ideas on how to draw irregular shapes on a form which will respond to a > mouse click? > I don't know of any way to put irregular shaped objects on a form, but I can thing of two possible options, both using an imagebox to show the body: 1. lots of small transparent buttons over the image 2. Read the X and Y on the image's MouseDown event to find out exactly where the user clicked (they are the offset in twips from the top left corner of the image) In both cases, you'd have to store and display different images depending on the status of the various areas. -- Stuart From erbachs at gmail.com Mon May 1 11:45:05 2006 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 1 May 2006 11:45:05 -0500 Subject: [AccessD] [dba-SQLServer] VB.net reference books - experiences + SQL Server List In-Reply-To: <001e01c65e8a$6452bec0$6601a8c0@office> References: <001e01c65e8a$6452bec0$6601a8c0@office> Message-ID: <39cb22f30605010945g497cfb4cqfc0feff104b04ae6@mail.gmail.com> Kath, Just saw this thread today... As far as web sites, I'd suggest a visit to http://www.sqlservercentral.com . Free registration to get access to everything, a sprightly daily e-mail newsletter, e-books for cheap, and lots and lots of articles on SQL Server. As far as books go, you might want to look into Safari Bookshelf On-line ( http://www.safaribooksonline.com/ ). For $15 a month you get up to 10 books on your "bookshelf". You must keep a book for at least 30 days, at which time you may remove it from your shelf and replace it with another...or you can hang onto a book forever, taking up a "slot" on your bookshelf. About three dozen publishers have their books in Safari format, which is searchable across ALL books in the Safari library. Some publishers are missing from the "stable" of publishers available, but there are plenty. The two .NET Framework books Shamil mentioned are available on Safari, while the ASP.NET Tips, Tutorials and the Mastering Visual Basic 2005 are not. I can recommend Scott Mitchell as an author (the book recommended by Eric Barro is by Mitchell). Mitchell's web site is the famous 4 Guys from Rolla: http://www.4guysfromrolla.com . Regards, Steve Erbach http://TheTownCrank.blogspot.com On 4/12/06, Kath Pelletti wrote: > (Cross posted to SQl Server and AccessD normal list) > > I have been learning SQL Server 2005 and vb.net this year......I have found Mike Gunderloy's book "Mastering SQL Server 2005" an absolute god send. I would highly recommend this one to anyone going through this learning curve.... > > But the book I bought for learning vb.net is not so good - "Visual Basic 2005 - Programmer's reference' by Rod Stephens. It's not too bad - very much like reading the MS help screens - but I am looking for a book which will step me through it - a la Mike's style. Any recommendations? > > (I know O'Reilly's are good but I am told by my colleague here that that it is more of a reference book.) > > (While I am posting - it's very quiet on our SQL list for now - is there another list anyone has been using which they would recommend? > > ______________________________________ > Kath Pelletti From Gustav at cactus.dk Mon May 1 11:53:32 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 01 May 2006 18:53:32 +0200 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: Hi all The SQL Server ODBC driver sometimes does some funny rounding when handling doubles: ID RoundedID 0 0 1 0 2 3 3 3 4 3 5 7 6 7 7 7 8 7 9 10 10 10 11 10 12 13 13 13 14 13 15 17 16 17 17 17 18 17 19 20 ... 990 990 991 990 992 993 993 993 994 993 995 997 996 997 997 997 998 997 999 0 These are the last decimal part of Doubles. As you can see, they are rounded by 3, sort of. I need to simulate this rounding in Access SQL and came up with this solution using Sgn() and integer division: .. (([ID]\10)*10 +Sgn(([ID] Mod 10)\2)*3 +Sgn(([ID] Mod 10)\5)*4 +Sgn(([ID] Mod 10)\9)*3) Mod 1000 AS RoundedID The value must not exceed 1000, that's what the "Mod 1000" does. This works exactly as I wish but it looks clumsy. Would anyone have a simpler method? The tricky part is, that 7 is present four times per ten elements while 0 and 3 each only count for three; this breaks a sequence of integer dividing by 3. /gustav From marcus at tsstech.com Mon May 1 12:24:40 2006 From: marcus at tsstech.com (Scott Marcus) Date: Mon, 1 May 2006 13:24:40 -0400 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: I don't know if this is any better... ID + iif((ID mod 3) <= 1,0,3) - (ID mod 3) Scott Marcus Computer Programmer TSS Technologies Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 01, 2006 12:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Rounding in SQL Server ODBC Hi all The SQL Server ODBC driver sometimes does some funny rounding when handling doubles: ID RoundedID 0 0 1 0 2 3 3 3 4 3 5 7 6 7 7 7 8 7 9 10 10 10 11 10 12 13 13 13 14 13 15 17 16 17 17 17 18 17 19 20 ... 990 990 991 990 992 993 993 993 994 993 995 997 996 997 997 997 998 997 999 0 These are the last decimal part of Doubles. As you can see, they are rounded by 3, sort of. I need to simulate this rounding in Access SQL and came up with this solution using Sgn() and integer division: .. (([ID]\10)*10 +Sgn(([ID] Mod 10)\2)*3 +Sgn(([ID] Mod 10)\5)*4 +Sgn(([ID] Mod 10)\9)*3) Mod 1000 AS RoundedID The value must not exceed 1000, that's what the "Mod 1000" does. This works exactly as I wish but it looks clumsy. Would anyone have a simpler method? The tricky part is, that 7 is present four times per ten elements while 0 and 3 each only count for three; this breaks a sequence of integer dividing by 3. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com NOTICE: This electronic mail transmission is for the use of the named individual or entity to which it is directed and may contain information that is privileged or confidential. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of any information contained herein is prohibited. If you have received this electronic mail transmission in error, delete it from your system without copying or forwarding it, and notify the sender of the error by replying via email or calling TSS Technologies at (513) 772-7000, so that our address record can be corrected. Any information included in this email is provided on an ?as is? and ?where as? basis, and TSS Technologies makes no representations or warranties of any kind with respect to the completeness or accuracy of the information contained in this email. From kevinb at bepc.com Mon May 1 12:26:45 2006 From: kevinb at bepc.com (Kevin Bachmeier) Date: Mon, 1 May 2006 12:26:45 -0500 Subject: [AccessD] Audit trail of Deleted record. Message-ID: <5C210A2F04B76B4AB2A18E6FEB81713404D727C7@HDQ06.bepc.net> I am trying to find a means of auditing the deletion of records from a table (write a record in another table with the appropriate details of who, when, and key fields of the record being deleted). My attempt at using the BeforeDelConfirm event fails as the values of the form's fields of this bound form are already null (deleted). I was able to find some discussion of auditing changes to records in the archive, but am not able to find anything on deleted records. Anyone with some experience or suggestions on obtaining the values of a record once the user has selected the record and pressed Del, or selected Record Delete? Thank you in advance. Kevin From Jdemarco at hudsonhealthplan.org Mon May 1 13:07:55 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Mon, 1 May 2006 14:07:55 -0400 Subject: [AccessD] Audit trail of Deleted record. Message-ID: <08F823FD83787D4BA0B99CA580AD3C740371714C@TTNEXCHCL2.hshhp.com> You may find a concensus here of people who do not delete records but put a flag on them so they're hidden from users. You could then simply track who deleted a record and when (unless space is an issue and you really want the records gone). HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 1:27 PM To: accessd at databaseadvisors.com Subject: [AccessD] Audit trail of Deleted record. I am trying to find a means of auditing the deletion of records from a table (write a record in another table with the appropriate details of who, when, and key fields of the record being deleted). My attempt at using the BeforeDelConfirm event fails as the values of the form's fields of this bound form are already null (deleted). I was able to find some discussion of auditing changes to records in the archive, but am not able to find anything on deleted records. Anyone with some experience or suggestions on obtaining the values of a record once the user has selected the record and pressed Del, or selected Record Delete? Thank you in advance. Kevin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon May 1 13:07:57 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 1 May 2006 11:07:57 -0700 Subject: [AccessD] Audit trail of Deleted record. Message-ID: Assuming you're confirming the deletion before it happens (you are, aren't you?) you can simply use the confirmation routine to write a record to the table. We save the record's primary key (up to 3 separate fields) and the table name in a DeletedRecords table, which uses a system identifier and a long integer as its primary key. Once the user has pressed Del, the BeforeDelConfirm event fires, which happens before any delete confirm dialog is displayed (as long as you have the Record Changes checkbox set under Tools-->Options-->Edit/Find-->Confirm). BeforeDelConfirm still has access to the data which has been written to the buffer and removed from the active record. You could use this event to pop up your own custom confirmation dialog as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 10:27 AM To: accessd at databaseadvisors.com Subject: [AccessD] Audit trail of Deleted record. I am trying to find a means of auditing the deletion of records from a table (write a record in another table with the appropriate details of who, when, and key fields of the record being deleted). My attempt at using the BeforeDelConfirm event fails as the values of the form's fields of this bound form are already null (deleted). I was able to find some discussion of auditing changes to records in the archive, but am not able to find anything on deleted records. Anyone with some experience or suggestions on obtaining the values of a record once the user has selected the record and pressed Del, or selected Record Delete? Thank you in advance. Kevin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon May 1 13:21:29 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 01 May 2006 18:21:29 +0000 Subject: [AccessD] Audit trail of Deleted record. Message-ID: Kevin, I did something similar a few years ago. I had 100% control over the buttons/forms the user saw...I'm not sure how much access you allow your users. I gave them a delete button...it prompted "Are you sure"...if they said yes...it launched an append query to move the record to a new table...then a delete query to remove it from the original table. I later modified this because I didn't really need to move it out of the table...I just need to remove it from the user and reports. I created a delete flag in my table...and my delete button then just changed this flag to TRUE. My user forms and reports then used the same data source as before...just filtering out any records where Delete_Flag = TRUE. Hope it helps, Mark A. Matte >From: "Kevin Bachmeier" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: [AccessD] Audit trail of Deleted record. >Date: Mon, 1 May 2006 12:26:45 -0500 > >I am trying to find a means of auditing the deletion of records from a >table (write a record in another table with the appropriate details of >who, when, and key fields of the record being deleted). > >My attempt at using the BeforeDelConfirm event fails as the values of >the form's fields of this bound form are already null (deleted). > >I was able to find some discussion of auditing changes to records in the >archive, but am not able to find anything on deleted records. > >Anyone with some experience or suggestions on obtaining the values of a >record once the user has selected the record and pressed Del, or >selected Record Delete? > >Thank you in advance. >Kevin >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From kevinb at bepc.com Mon May 1 13:31:09 2006 From: kevinb at bepc.com (Kevin Bachmeier) Date: Mon, 1 May 2006 13:31:09 -0500 Subject: [AccessD] Audit trail of Deleted record. Message-ID: <5C210A2F04B76B4AB2A18E6FEB81713404D727CB@HDQ06.bepc.net> Thanks Jim and Charlotte for your response. Jim, I would use a status field rather than actually deleting if I had that control - that's not the case in my circumstances. Charlotte - I am trying to create the custom pop up, and I do have the 'record changes' option set, but referencing the value of the fields on the record is showing me that the current value is 'null' (via debug from immediate window). Is the 'record changes' option something I can control in code to ensure that it is set before opening this form? This is Access 2000 btw. Thank you. Kevin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 01, 2006 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Audit trail of Deleted record. Assuming you're confirming the deletion before it happens (you are, aren't you?) you can simply use the confirmation routine to write a record to the table. We save the record's primary key (up to 3 separate fields) and the table name in a DeletedRecords table, which uses a system identifier and a long integer as its primary key. Once the user has pressed Del, the BeforeDelConfirm event fires, which happens before any delete confirm dialog is displayed (as long as you have the Record Changes checkbox set under Tools-->Options-->Edit/Find-->Confirm). BeforeDelConfirm still has access to the data which has been written to the buffer and removed from the active record. You could use this event to pop up your own custom confirmation dialog as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 10:27 AM To: accessd at databaseadvisors.com Subject: [AccessD] Audit trail of Deleted record. I am trying to find a means of auditing the deletion of records from a table (write a record in another table with the appropriate details of who, when, and key fields of the record being deleted). My attempt at using the BeforeDelConfirm event fails as the values of the form's fields of this bound form are already null (deleted). I was able to find some discussion of auditing changes to records in the archive, but am not able to find anything on deleted records. Anyone with some experience or suggestions on obtaining the values of a record once the user has selected the record and pressed Del, or selected Record Delete? Thank you in advance. Kevin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From danielh at eti-canada.com Mon May 1 15:03:06 2006 From: danielh at eti-canada.com (Daniel Hurtubise) Date: Mon, 01 May 2006 16:03:06 -0400 Subject: [AccessD] access.exe process not terminating Message-ID: <4456697A.70506@eti-canada.com> Hello everyone: This is my first post. Sorry It might be a bit rough...... Objective: To have a screen change it labels depending on language selected. Situation: Labels are all successfully changed and application works perfectly. HOWEVER: when leaving the application MSACCESS.EXE does not close out in the task manager. This only happens if the translation module is called. The code is inoffensive but I've been at it now for two days !!!! The ghost being produced leaves me believing that something is not closed properly. Any ideas? Form A: Calls a function which sits within a Module ' ######################################################### ' Form Open Event ' ######################################################### Private Sub Form_Open(Cancel As Integer) ' ' Set Language to current form ' Call changeFormLanguage(glang, Me) End Sub Module Code: ' ######################################################### ' This section will cycle every form for a language change ' ######################################################### Public Function changeFormLanguage(strLang As String, strFormName As Form) Dim db As Database Dim recLang As Recordset Dim objAo As AccessObject Dim objCP As Object Dim FrmF As Form ' current form Dim ctlc As Control ' current control Dim strControlName As String ' name of control Dim intControlType As Integer ' control type Dim strLangField As String 'open the database and language recordset Set db = CurrentDb() Set recLang = db.OpenRecordset(wcs_LANGUAGE_TABLE) recLang.Index = "PrimaryKey" Set FrmF = strFormName strLangField = IIf(strLang = "English", "Lbl_DescEn", "Lbl_DescFr") With recLang .Seek "=", strFormName, strFormName 'add or update the form in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then FrmF.Caption = " " Else FrmF.Caption = .Fields(strLangField) End If 'now loop through the controls For Each ctlc In FrmF.Controls 'we are interested in the controls with captions intControlType = ctlc.ControlType If ControlHasCaption(intControlType) = True Then 'find the control in the language table strControlName = ctlc.Name .Seek "=", strFormName.Name, strControlName 'add or update the control in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then ctlc.Caption = "" Else ctlc.Caption = .Fields(strLangField) End If End If Next End With 'close up recLang.Close db.Close End Function From cfoust at infostatsystems.com Mon May 1 15:07:10 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 1 May 2006 13:07:10 -0700 Subject: [AccessD] Audit trail of Deleted record. Message-ID: Check the BeforeDelConfirm event in help for sample code. I am working with XP, so your mileage may vary. There were features that didn't exist in 2000, but I don't remember what they were after 7 years. :o< Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 11:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Audit trail of Deleted record. Thanks Jim and Charlotte for your response. Jim, I would use a status field rather than actually deleting if I had that control - that's not the case in my circumstances. Charlotte - I am trying to create the custom pop up, and I do have the 'record changes' option set, but referencing the value of the fields on the record is showing me that the current value is 'null' (via debug from immediate window). Is the 'record changes' option something I can control in code to ensure that it is set before opening this form? This is Access 2000 btw. Thank you. Kevin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 01, 2006 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Audit trail of Deleted record. Assuming you're confirming the deletion before it happens (you are, aren't you?) you can simply use the confirmation routine to write a record to the table. We save the record's primary key (up to 3 separate fields) and the table name in a DeletedRecords table, which uses a system identifier and a long integer as its primary key. Once the user has pressed Del, the BeforeDelConfirm event fires, which happens before any delete confirm dialog is displayed (as long as you have the Record Changes checkbox set under Tools-->Options-->Edit/Find-->Confirm). BeforeDelConfirm still has access to the data which has been written to the buffer and removed from the active record. You could use this event to pop up your own custom confirmation dialog as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 10:27 AM To: accessd at databaseadvisors.com Subject: [AccessD] Audit trail of Deleted record. I am trying to find a means of auditing the deletion of records from a table (write a record in another table with the appropriate details of who, when, and key fields of the record being deleted). My attempt at using the BeforeDelConfirm event fails as the values of the form's fields of this bound form are already null (deleted). I was able to find some discussion of auditing changes to records in the archive, but am not able to find anything on deleted records. Anyone with some experience or suggestions on obtaining the values of a record once the user has selected the record and pressed Del, or selected Record Delete? Thank you in advance. Kevin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon May 1 15:12:07 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 1 May 2006 13:12:07 -0700 Subject: [AccessD] Audit trail of Deleted record. Message-ID: OK, I reread your post and I think I see where we crossed purposed. The BeforeDelConfirm event fires after the record is "deleted" to the buffer, which is too late for what you want to do. What you can do is disable the AllowDeletions property of the form and provide a Delete command button. When the user selects a row and then clicks the command button, the record has not yet been deleted, and you can grab the information. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 11:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Audit trail of Deleted record. Thanks Jim and Charlotte for your response. Jim, I would use a status field rather than actually deleting if I had that control - that's not the case in my circumstances. Charlotte - I am trying to create the custom pop up, and I do have the 'record changes' option set, but referencing the value of the fields on the record is showing me that the current value is 'null' (via debug from immediate window). Is the 'record changes' option something I can control in code to ensure that it is set before opening this form? This is Access 2000 btw. Thank you. Kevin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 01, 2006 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Audit trail of Deleted record. Assuming you're confirming the deletion before it happens (you are, aren't you?) you can simply use the confirmation routine to write a record to the table. We save the record's primary key (up to 3 separate fields) and the table name in a DeletedRecords table, which uses a system identifier and a long integer as its primary key. Once the user has pressed Del, the BeforeDelConfirm event fires, which happens before any delete confirm dialog is displayed (as long as you have the Record Changes checkbox set under Tools-->Options-->Edit/Find-->Confirm). BeforeDelConfirm still has access to the data which has been written to the buffer and removed from the active record. You could use this event to pop up your own custom confirmation dialog as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 10:27 AM To: accessd at databaseadvisors.com Subject: [AccessD] Audit trail of Deleted record. I am trying to find a means of auditing the deletion of records from a table (write a record in another table with the appropriate details of who, when, and key fields of the record being deleted). My attempt at using the BeforeDelConfirm event fails as the values of the form's fields of this bound form are already null (deleted). I was able to find some discussion of auditing changes to records in the archive, but am not able to find anything on deleted records. Anyone with some experience or suggestions on obtaining the values of a record once the user has selected the record and pressed Del, or selected Record Delete? Thank you in advance. Kevin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at verizon.net Mon May 1 15:21:41 2006 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Mon, 01 May 2006 16:21:41 -0400 Subject: [AccessD] access.exe process not terminating In-Reply-To: <4456697A.70506@eti-canada.com> Message-ID: <000b01c66d5c$dd0a81f0$2f01a8c0@dorismanning> You declare these two lines but don't do anything with them. Dim objAo As AccessObject Dim objCP As Object You close your database and recordset connection but then you don't release them by setting them to nothing. Doris Manning mikedorism at verizon.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Daniel Hurtubise Sent: Monday, May 01, 2006 4:03 PM To: accessd at databaseadvisors.com Subject: [AccessD] access.exe process not terminating Hello everyone: This is my first post. Sorry It might be a bit rough...... Objective: To have a screen change it labels depending on language selected. Situation: Labels are all successfully changed and application works perfectly. HOWEVER: when leaving the application MSACCESS.EXE does not close out in the task manager. This only happens if the translation module is called. The code is inoffensive but I've been at it now for two days !!!! The ghost being produced leaves me believing that something is not closed properly. Any ideas? Form A: Calls a function which sits within a Module ' ######################################################### ' Form Open Event ' ######################################################### Private Sub Form_Open(Cancel As Integer) ' ' Set Language to current form ' Call changeFormLanguage(glang, Me) End Sub Module Code: ' ######################################################### ' This section will cycle every form for a language change ' ######################################################### Public Function changeFormLanguage(strLang As String, strFormName As Form) Dim db As Database Dim recLang As Recordset Dim objAo As AccessObject Dim objCP As Object Dim FrmF As Form ' current form Dim ctlc As Control ' current control Dim strControlName As String ' name of control Dim intControlType As Integer ' control type Dim strLangField As String 'open the database and language recordset Set db = CurrentDb() Set recLang = db.OpenRecordset(wcs_LANGUAGE_TABLE) recLang.Index = "PrimaryKey" Set FrmF = strFormName strLangField = IIf(strLang = "English", "Lbl_DescEn", "Lbl_DescFr") With recLang .Seek "=", strFormName, strFormName 'add or update the form in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then FrmF.Caption = " " Else FrmF.Caption = .Fields(strLangField) End If 'now loop through the controls For Each ctlc In FrmF.Controls 'we are interested in the controls with captions intControlType = ctlc.ControlType If ControlHasCaption(intControlType) = True Then 'find the control in the language table strControlName = ctlc.Name .Seek "=", strFormName.Name, strControlName 'add or update the control in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then ctlc.Caption = "" Else ctlc.Caption = .Fields(strLangField) End If End If Next End With 'close up recLang.Close db.Close End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon May 1 15:29:30 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 01 May 2006 13:29:30 -0700 Subject: [AccessD] access.exe process not terminating References: <4456697A.70506@eti-canada.com> Message-ID: <44566FAA.4030703@shaw.ca> You may have the Form object still open after the close Set recLang = Nothing Set FrmF = Nothing Daniel Hurtubise wrote: >Hello everyone: > >This is my first post. Sorry It might be a bit rough...... > >Objective: To have a screen change it labels depending on language >selected. > >Situation: Labels are all successfully changed and application works >perfectly. HOWEVER: > when leaving the application MSACCESS.EXE does not close >out in > the task manager. This only happens if the translation >module is called. > >The code is inoffensive but I've been at it now for two days !!!! The >ghost being produced >leaves me believing that something is not closed properly. Any ideas? > >Form A: Calls a function which sits within a Module >' ######################################################### >' Form Open Event >' ######################################################### >Private Sub Form_Open(Cancel As Integer) > ' > ' Set Language to current form > ' > Call changeFormLanguage(glang, Me) >End Sub > > >Module Code: > >' ######################################################### >' This section will cycle every form for a language change >' ######################################################### >Public Function changeFormLanguage(strLang As String, strFormName As Form) > > Dim db As Database > Dim recLang As Recordset > Dim objAo As AccessObject > Dim objCP As Object > Dim FrmF As Form ' current form > Dim ctlc As Control ' current control > Dim strControlName As String ' name of control > Dim intControlType As Integer ' control type > Dim strLangField As String > > 'open the database and language recordset > Set db = CurrentDb() > Set recLang = db.OpenRecordset(wcs_LANGUAGE_TABLE) > recLang.Index = "PrimaryKey" > > Set FrmF = strFormName > > strLangField = IIf(strLang = "English", "Lbl_DescEn", "Lbl_DescFr") > With recLang > .Seek "=", strFormName, strFormName > > 'add or update the form in the language table > If .NoMatch Or IsNull(.Fields(strLangField)) Then > FrmF.Caption = " " > Else > FrmF.Caption = .Fields(strLangField) > End If > > 'now loop through the controls > For Each ctlc In FrmF.Controls > 'we are interested in the controls with captions > intControlType = ctlc.ControlType > If ControlHasCaption(intControlType) = True Then > 'find the control in the language table > strControlName = ctlc.Name > .Seek "=", strFormName.Name, strControlName > > 'add or update the control in the language table > If .NoMatch Or IsNull(.Fields(strLangField)) Then > ctlc.Caption = "" > Else > ctlc.Caption = .Fields(strLangField) > End If > End If > Next > End With > > 'close up > recLang.Close > db.Close >End Function > > > -- Marty Connelly Victoria, B.C. Canada From andy at minstersystems.co.uk Mon May 1 15:29:21 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 1 May 2006 21:29:21 +0100 Subject: [AccessD] access.exe process not terminating In-Reply-To: <4456697A.70506@eti-canada.com> Message-ID: <092c01c66d5d$ee37fab0$d1b20c54@minster33c3r25> Daniel As Doris says you need to set your objects to Nothing to resolve this, a long outstanding Access "feature". It's probably recLang that's your problem. Try: recLang.Close: Set recLang=Nothing db.Close: Set db = Nothing And if you ever do anything with the other 2 objects set them to nothing too. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Daniel Hurtubise > Sent: 01 May 2006 21:03 > To: accessd at databaseadvisors.com > Subject: [AccessD] access.exe process not terminating > > > Hello everyone: > > This is my first post. Sorry It might be a bit rough...... > > Objective: To have a screen change it labels depending on language > selected. > > Situation: Labels are all successfully changed and application works > perfectly. HOWEVER: > when leaving the application MSACCESS.EXE > does not close > out in > the task manager. This only happens if the > translation > module is called. > > The code is inoffensive but I've been at it now for two days > !!!! The > ghost being produced > leaves me believing that something is not closed properly. Any ideas? > > Form A: Calls a function which sits within a Module > ' ######################################################### > ' Form Open Event > ' ######################################################### > Private Sub Form_Open(Cancel As Integer) > ' > ' Set Language to current form > ' > Call changeFormLanguage(glang, Me) > End Sub > > > Module Code: > > ' ######################################################### > ' This section will cycle every form for a language change > ' ######################################################### > Public Function changeFormLanguage(strLang As String, > strFormName As Form) > > Dim db As Database > Dim recLang As Recordset > Dim objAo As AccessObject > Dim objCP As Object > Dim FrmF As Form ' current form > Dim ctlc As Control ' current control > Dim strControlName As String ' name of control > Dim intControlType As Integer ' control type > Dim strLangField As String > > 'open the database and language recordset > Set db = CurrentDb() > Set recLang = db.OpenRecordset(wcs_LANGUAGE_TABLE) > recLang.Index = "PrimaryKey" > > Set FrmF = strFormName > > strLangField = IIf(strLang = "English", "Lbl_DescEn", > "Lbl_DescFr") > With recLang > .Seek "=", strFormName, strFormName > > 'add or update the form in the language table > If .NoMatch Or IsNull(.Fields(strLangField)) Then > FrmF.Caption = " " > Else > FrmF.Caption = .Fields(strLangField) > End If > > 'now loop through the controls > For Each ctlc In FrmF.Controls > 'we are interested in the controls with captions > intControlType = ctlc.ControlType > If ControlHasCaption(intControlType) = True Then > 'find the control in the language table > strControlName = ctlc.Name > .Seek "=", strFormName.Name, strControlName > > 'add or update the control in the language table > If .NoMatch Or IsNull(.Fields(strLangField)) Then > ctlc.Caption = "" > Else > ctlc.Caption = .Fields(strLangField) > End If > End If > Next > End With > > 'close up > recLang.Close > db.Close > End Function > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From danielh at eti-canada.com Mon May 1 15:32:40 2006 From: danielh at eti-canada.com (Daniel Hurtubise) Date: Mon, 1 May 2006 16:32:40 -0400 Subject: [AccessD] access.exe process not terminating In-Reply-To: <000b01c66d5c$dd0a81f0$2f01a8c0@dorismanning> Message-ID: <20060501203425.PQYO24441.tomts29-srv.bellnexxia.net@DF2NX921> Hello Doris: Your right! However I took out the two Dim statements and I set Set ctlc = Nothing Set recLang = Nothing Set db = Nothing and I still get the same error. Should I post a new thread with those corrections so that everyone knows of the new code? Regards -- Daniel Hurtubise -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: May 1, 2006 4:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] access.exe process not terminating You declare these two lines but don't do anything with them. Dim objAo As AccessObject Dim objCP As Object You close your database and recordset connection but then you don't release them by setting them to nothing. Doris Manning mikedorism at verizon.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Daniel Hurtubise Sent: Monday, May 01, 2006 4:03 PM To: accessd at databaseadvisors.com Subject: [AccessD] access.exe process not terminating Hello everyone: This is my first post. Sorry It might be a bit rough...... Objective: To have a screen change it labels depending on language selected. Situation: Labels are all successfully changed and application works perfectly. HOWEVER: when leaving the application MSACCESS.EXE does not close out in the task manager. This only happens if the translation module is called. The code is inoffensive but I've been at it now for two days !!!! The ghost being produced leaves me believing that something is not closed properly. Any ideas? Form A: Calls a function which sits within a Module ' ######################################################### ' Form Open Event ' ######################################################### Private Sub Form_Open(Cancel As Integer) ' ' Set Language to current form ' Call changeFormLanguage(glang, Me) End Sub Module Code: ' ######################################################### ' This section will cycle every form for a language change ' ######################################################### Public Function changeFormLanguage(strLang As String, strFormName As Form) Dim db As Database Dim recLang As Recordset Dim objAo As AccessObject Dim objCP As Object Dim FrmF As Form ' current form Dim ctlc As Control ' current control Dim strControlName As String ' name of control Dim intControlType As Integer ' control type Dim strLangField As String 'open the database and language recordset Set db = CurrentDb() Set recLang = db.OpenRecordset(wcs_LANGUAGE_TABLE) recLang.Index = "PrimaryKey" Set FrmF = strFormName strLangField = IIf(strLang = "English", "Lbl_DescEn", "Lbl_DescFr") With recLang .Seek "=", strFormName, strFormName 'add or update the form in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then FrmF.Caption = " " Else FrmF.Caption = .Fields(strLangField) End If 'now loop through the controls For Each ctlc In FrmF.Controls 'we are interested in the controls with captions intControlType = ctlc.ControlType If ControlHasCaption(intControlType) = True Then 'find the control in the language table strControlName = ctlc.Name .Seek "=", strFormName.Name, strControlName 'add or update the control in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then ctlc.Caption = "" Else ctlc.Caption = .Fields(strLangField) End If End If Next End With 'close up recLang.Close db.Close 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 garykjos at gmail.com Mon May 1 15:43:24 2006 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 1 May 2006 15:43:24 -0500 Subject: [AccessD] access.exe process not terminating In-Reply-To: <20060501203425.PQYO24441.tomts29-srv.bellnexxia.net@DF2NX921> References: <000b01c66d5c$dd0a81f0$2f01a8c0@dorismanning> <20060501203425.PQYO24441.tomts29-srv.bellnexxia.net@DF2NX921> Message-ID: Hi Daniel, No need for an entire new thread but you can post a message with the same subject with the current code after the most recent changes that didn't do the trick for you jsut so we are current with where you are at now. GK On 5/1/06, Daniel Hurtubise wrote: > Hello Doris: > > Your right! However I took out the two Dim statements and I set > Set ctlc = Nothing > Set recLang = Nothing > Set db = Nothing > > and I still get the same error. Should I post a new thread with > those corrections so that everyone knows of the new code? > > Regards > -- > Daniel Hurtubise -- Gary Kjos garykjos at gmail.com From Gustav at cactus.dk Tue May 2 02:42:12 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 May 2006 09:42:12 +0200 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: Hi Scott Well, it could be, and I considered some IIf() constructs too, but they got too long-winded. Further, your suggestion doesn't return the expected output beyond 5: ID Sgn IIf 0 0 0 1 0 0 2 3 3 3 3 3 4 3 3 5 7 6 6 7 6 7 7 6 8 7 9 9 10 9 10 10 9 11 10 12 12 13 12 13 13 12 14 13 15 /gustav >>> marcus at tsstech.com 01-05-2006 19:24 >>> I don't know if this is any better... ID + iif((ID mod 3) <= 1,0,3) - (ID mod 3) Scott Marcus Computer Programmer TSS Technologies Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 01, 2006 12:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Rounding in SQL Server ODBC Hi all The SQL Server ODBC driver sometimes does some funny rounding when handling doubles: ID RoundedID 0 0 1 0 2 3 3 3 4 3 5 7 6 7 7 7 8 7 9 10 10 10 11 10 12 13 13 13 14 13 15 17 16 17 17 17 18 17 19 20 ... 990 990 991 990 992 993 993 993 994 993 995 997 996 997 997 997 998 997 999 0 These are the last decimal part of Doubles. As you can see, they are rounded by 3, sort of. I need to simulate this rounding in Access SQL and came up with this solution using Sgn() and integer division: .. (([ID]\10)*10 +Sgn(([ID] Mod 10)\2)*3 +Sgn(([ID] Mod 10)\5)*4 +Sgn(([ID] Mod 10)\9)*3) Mod 1000 AS RoundedID The value must not exceed 1000, that's what the "Mod 1000" does. This works exactly as I wish but it looks clumsy. Would anyone have a simpler method? The tricky part is, that 7 is present four times per ten elements while 0 and 3 each only count for three; this breaks a sequence of integer dividing by 3. /gustav From Gustav at cactus.dk Tue May 2 03:54:05 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 May 2006 10:54:05 +0200 Subject: [AccessD] access.exe process not terminating Message-ID: Hi Daniel These lines should not be needed: Dim objAo As AccessObject Dim objCP As Object db.Close Also, you are mixing up Me (a form object) and strFormName which you declare as a Form while you (correctly) think it is a string: Public Function changeFormLanguage(strLang As String, strFormName As Form) .Seek "=", strFormName, strFormName /gustav From stuart at lexacorp.com.pg Tue May 2 05:51:37 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 02 May 2006 20:51:37 +1000 Subject: [AccessD] Rounding in SQL Server ODBC In-Reply-To: Message-ID: <4457C659.19005.A9D943@stuart.lexacorp.com.pg> On 2 May 2006 at 9:42, Gustav Brock wrote: > Hi Scott > > Well, it could be, and I considered some IIf() constructs too, but they got > too long-winded. How about: (ID \ 10) * 10 + Choose(ID Mod 10 + 1, 0, 0, 3, 3, 3, 7, 7, 7, 7,10) -- Stuart From Gustav at cactus.dk Tue May 2 08:23:12 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 May 2006 15:23:12 +0200 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: Hi all My mistake - thought the underlying data type of datetime was double as in Access, but: Date and time data from January 1, 1753, through December 31, 9999, with an accuracy of three-hundredths of a second, or 3.33 milliseconds. Thus, if you wish to store datetime in SQL Server with millisecond resolution you'll have to use double - and run your own converting routines - or leave the date field rounded down to integer seconds and add another field for milliseconds resolution in double or smallint. /gustav >>> Gustav at cactus.dk 01-05-2006 18:53:32 >>> The SQL Server ODBC driver sometimes does some funny rounding when handling doubles: These are the last decimal part of Doubles. As you can see, they are rounded by 3, sort of. From Gustav at cactus.dk Tue May 2 08:39:48 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 May 2006 15:39:48 +0200 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: Hi Stuart Thanks! That could do it. I wish to avoid a custom external function but had forgotten Choose() which is external though not custom. >>> stuart at lexacorp.com.pg 02-05-2006 12:51:37 >>> On 2 May 2006 at 9:42, Gustav Brock wrote: > Hi Scott > > Well, it could be, and I considered some IIf() constructs too, but they got > too long-winded. How about: (ID \ 10) * 10 + Choose(ID Mod 10 + 1, 0, 0, 3, 3, 3, 7, 7, 7, 7,10) -- Stuart From Lambert.Heenan at AIG.com Tue May 2 08:49:16 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 2 May 2006 09:49:16 -0400 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F211EF7C0@xlivmbx21.aig.com> Looks like a neater solution, but I'm highly curious as to why SQL server has this bizarre form of rounding in the first place! Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 02, 2006 6:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding in SQL Server ODBC On 2 May 2006 at 9:42, Gustav Brock wrote: > Hi Scott > > Well, it could be, and I considered some IIf() constructs too, but > they got too long-winded. How about: (ID \ 10) * 10 + Choose(ID Mod 10 + 1, 0, 0, 3, 3, 3, 7, 7, 7, 7,10) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelbroadband.in Tue May 2 09:21:40 2006 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Tue, 2 May 2006 19:51:40 +0530 Subject: [AccessD] Audit trail of Deleted record. References: Message-ID: <009101c66df3$c682a8d0$b01265cb@pcadt> Kevin, Form's Delete event occurs before its BeforeDelConfirm event. Both can be cancelled if desired. At Delete event stage, the record under deletion is still the current one and correct values for various controls are returned. By the time you encounter BeforeDelConfirm event, the record next to that meant for deletion becomes the current record and the values returned become misleading. For your case, Delete event should be the one to use. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, May 02, 2006 01:42 Subject: Re: [AccessD] Audit trail of Deleted record. OK, I reread your post and I think I see where we crossed purposed. The BeforeDelConfirm event fires after the record is "deleted" to the buffer, which is too late for what you want to do. What you can do is disable the AllowDeletions property of the form and provide a Delete command button. When the user selects a row and then clicks the command button, the record has not yet been deleted, and you can grab the information. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 11:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Audit trail of Deleted record. Thanks Jim and Charlotte for your response. Jim, I would use a status field rather than actually deleting if I had that control - that's not the case in my circumstances. Charlotte - I am trying to create the custom pop up, and I do have the 'record changes' option set, but referencing the value of the fields on the record is showing me that the current value is 'null' (via debug from immediate window). Is the 'record changes' option something I can control in code to ensure that it is set before opening this form? This is Access 2000 btw. Thank you. Kevin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 01, 2006 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Audit trail of Deleted record. Assuming you're confirming the deletion before it happens (you are, aren't you?) you can simply use the confirmation routine to write a record to the table. We save the record's primary key (up to 3 separate fields) and the table name in a DeletedRecords table, which uses a system identifier and a long integer as its primary key. Once the user has pressed Del, the BeforeDelConfirm event fires, which happens before any delete confirm dialog is displayed (as long as you have the Record Changes checkbox set under Tools-->Options-->Edit/Find-->Confirm). BeforeDelConfirm still has access to the data which has been written to the buffer and removed from the active record. You could use this event to pop up your own custom confirmation dialog as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 10:27 AM To: accessd at databaseadvisors.com Subject: [AccessD] Audit trail of Deleted record. I am trying to find a means of auditing the deletion of records from a table (write a record in another table with the appropriate details of who, when, and key fields of the record being deleted). My attempt at using the BeforeDelConfirm event fails as the values of the form's fields of this bound form are already null (deleted). I was able to find some discussion of auditing changes to records in the archive, but am not able to find anything on deleted records. Anyone with some experience or suggestions on obtaining the values of a record once the user has selected the record and pressed Del, or selected Record Delete? Thank you in advance. Kevin From Gustav at cactus.dk Tue May 2 09:46:20 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 May 2006 16:46:20 +0200 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: Hi Lambert Historical reasons? Back to the common Sybase code base? I have no idea but that rounding method is truly weird. /gustav >>> Lambert.Heenan at AIG.com 02-05-2006 15:49:16 >>> Looks like a neater solution, but I'm highly curious as to why SQL server has this bizarre form of rounding in the first place! Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 02, 2006 6:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding in SQL Server ODBC On 2 May 2006 at 9:42, Gustav Brock wrote: > Hi Scott > > Well, it could be, and I considered some IIf() constructs too, but > they got too long-winded. How about: (ID \ 10) * 10 + Choose(ID Mod 10 + 1, 0, 0, 3, 3, 3, 7, 7, 7, 7,10) -- Stuart From bchacc at san.rr.com Tue May 2 10:28:23 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 02 May 2006 08:28:23 -0700 Subject: [AccessD] Access and AutoCAD Message-ID: <44577A97.9010100@san.rr.com> Dear List: A client is having problems running an A2K mde on one machine but not on any others. The machine where it fails has AutoCAD loaded on it. That's the only difference he notes. Are there any known incompatibilities between A2K and AutoCAD? MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From cfoust at infostatsystems.com Tue May 2 10:41:11 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 May 2006 08:41:11 -0700 Subject: [AccessD] Access and AutoCAD Message-ID: What are the problem he has, Rocky, and what level of A2k SPs? I seem to recall a problem with AutoCAD and A2k, but it's been years ago, so my memory is vague. 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: Tuesday, May 02, 2006 8:28 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and AutoCAD Dear List: A client is having problems running an A2K mde on one machine but not on any others. The machine where it fails has AutoCAD loaded on it. That's the only difference he notes. Are there any known incompatibilities between A2K and AutoCAD? 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 Chester_Kaup at kindermorgan.com Tue May 2 11:10:59 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 2 May 2006 11:10:59 -0500 Subject: [AccessD] Data from a SQL Server Table Message-ID: I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? 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 cfoust at infostatsystems.com Tue May 2 11:28:40 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 May 2006 09:28:40 -0700 Subject: [AccessD] Data from a SQL Server Table Message-ID: Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? 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 becklesd at tiscali.co.uk Tue May 2 13:09:19 2006 From: becklesd at tiscali.co.uk (David Beckles) Date: Tue, 02 May 2006 18:09:19 +0000 Subject: [AccessD] Audit trail of Deleted record In-Reply-To: References: Message-ID: <4457A04F.4080505@tiscali.co.uk> Hi, Kevin, Take a look at these pages from Allen Browne: http://www.everythingaccess.com/tutorials.asp?ID=Creating-an-Audit-Trail and http://allenbrowne.com/AppAudit.html I think that you will find that they cover your problem fairly thoroughly. Hope that this helps, David ------------Original Message---------------------- > Date: Mon, 1 May 2006 12:26:45 -0500 > From: "Kevin Bachmeier" > Subject: [AccessD] Audit trail of Deleted record. > To: > Message-ID: <5C210A2F04B76B4AB2A18E6FEB81713404D727C7 at HDQ06.bepc.net> > Content-Type: text/plain; charset="us-ascii" > > I am trying to find a means of auditing the deletion of records from a > table (write a record in another table with the appropriate details of > who, when, and key fields of the record being deleted). > > My attempt at using the BeforeDelConfirm event fails as the values of > the form's fields of this bound form are already null (deleted). > > I was able to find some discussion of auditing changes to records in the > archive, but am not able to find anything on deleted records. > > Anyone with some experience or suggestions on obtaining the values of a > record once the user has selected the record and pressed Del, or > selected Record Delete? > > Thank you in advance. > Kevin > From Chester_Kaup at kindermorgan.com Tue May 2 13:52:06 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 2 May 2006 13:52:06 -0500 Subject: [AccessD] Data from a SQL Server Table Message-ID: Access 2003 SQL Server 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kevinb at bepc.com Tue May 2 13:54:51 2006 From: kevinb at bepc.com (Kevin Bachmeier) Date: Tue, 2 May 2006 13:54:51 -0500 Subject: [AccessD] Audit trail of Deleted record Message-ID: <5C210A2F04B76B4AB2A18E6FEB81713404D727D8@HDQ06.bepc.net> Thanks David - this looks like it will work! This list rocks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Beckles Sent: Tuesday, May 02, 2006 1:09 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Audit trail of Deleted record Hi, Kevin, Take a look at these pages from Allen Browne: http://www.everythingaccess.com/tutorials.asp?ID=Creating-an-Audit-Trail and http://allenbrowne.com/AppAudit.html I think that you will find that they cover your problem fairly thoroughly. Hope that this helps, David ------------Original Message---------------------- > Date: Mon, 1 May 2006 12:26:45 -0500 > From: "Kevin Bachmeier" > Subject: [AccessD] Audit trail of Deleted record. > To: > Message-ID: <5C210A2F04B76B4AB2A18E6FEB81713404D727C7 at HDQ06.bepc.net> > Content-Type: text/plain; charset="us-ascii" > > I am trying to find a means of auditing the deletion of records from a > table (write a record in another table with the appropriate details of > who, when, and key fields of the record being deleted). > > My attempt at using the BeforeDelConfirm event fails as the values of > the form's fields of this bound form are already null (deleted). > > I was able to find some discussion of auditing changes to records in > the archive, but am not able to find anything on deleted records. > > Anyone with some experience or suggestions on obtaining the values of > a record once the user has selected the record and pressed Del, or > selected Record Delete? > > Thank you in advance. > Kevin > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue May 2 14:58:55 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 May 2006 12:58:55 -0700 Subject: [AccessD] Data from a SQL Server Table Message-ID: Are you using a query to view the data? Are you trying to sort on the memo field? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 11:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Access 2003 SQL Server 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue May 2 15:18:37 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 03 May 2006 06:18:37 +1000 Subject: [AccessD] Rounding in SQL Server ODBC In-Reply-To: Message-ID: <44584B3D.32282.2B0F097@stuart.lexacorp.com.pg> On 2 May 2006 at 15:39, Gustav Brock wrote: > Hi Stuart > > Thanks! That could do it. > I wish to avoid a custom external function but had forgotten Choose() which > is external though not custom. > What do you mean by "external"? How does Choose() differ from Mod, Sgn(), IIf() etc? -- Stuart From Lambert.Heenan at AIG.com Tue May 2 15:32:06 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 2 May 2006 15:32:06 -0500 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F211EFA23@xlivmbx21.aig.com> Gustav did not want to use a "custom external function", i.e. one defined in a VBA module. Choose() (and Mod() and Sgn()) are all implemented in the various DLLs that go to make up Access and consequently run a lot faster than custom functions. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 02, 2006 4:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding in SQL Server ODBC On 2 May 2006 at 15:39, Gustav Brock wrote: > Hi Stuart > > Thanks! That could do it. > I wish to avoid a custom external function but had forgotten Choose() which > is external though not custom. > What do you mean by "external"? How does Choose() differ from Mod, Sgn(), IIf() etc? -- 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 May 2 16:25:57 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 02 May 2006 14:25:57 -0700 Subject: [AccessD] Access and AutoCAD In-Reply-To: References: Message-ID: <4457CE65.7050200@san.rr.com> Don't know. I'll ask. Rocky Charlotte Foust wrote: > What are the problem he has, Rocky, and what level of A2k SPs? I seem > to recall a problem with AutoCAD and A2k, but it's been years ago, so my > memory is vague. > > > 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: Tuesday, May 02, 2006 8:28 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and AutoCAD > > Dear List: > > A client is having problems running an A2K mde on one machine but not on > any others. The machine where it fails has AutoCAD loaded on it. > That's the only difference he notes. > > Are there any known incompatibilities between A2K and AutoCAD? > > 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 Chester_Kaup at kindermorgan.com Tue May 2 16:30:42 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 2 May 2006 16:30:42 -0500 Subject: [AccessD] Data from a SQL Server Table Message-ID: If I directly open the table I do not see the whole memo field. If I open it in a form I see the whole field. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Are you using a query to view the data? Are you trying to sort on the memo field? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 11:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Access 2003 SQL Server 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue May 2 17:16:49 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 May 2006 15:16:49 -0700 Subject: [AccessD] Data from a SQL Server Table Message-ID: Then if you can see the whole value in a form, what's the problem? You don't let users see the linked table anyhow. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 2:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table If I directly open the table I do not see the whole memo field. If I open it in a form I see the whole field. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Are you using a query to view the data? Are you trying to sort on the memo field? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 11:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Access 2003 SQL Server 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue May 2 17:18:07 2006 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 03 May 2006 00:18:07 +0200 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: Hi Stuart I mean external to JET SQL. Mod is not (it's an operator) but Sgn(), IIf() and Choose() are. But as they belong to VBA they run faster than a custom function. If that didn't matter I would probably use a custom function with a Select .. construct. But your suggestion with Choose() seems to work just fine. /gustav >>> stuart at lexacorp.com.pg 02-05-06 22:18 >>> On 2 May 2006 at 15:39, Gustav Brock wrote: > Hi Stuart > > Thanks! That could do it. > I wish to avoid a custom external function but had forgotten Choose() which > is external though not custom. > What do you mean by "external"? How does Choose() differ from Mod, Sgn(), IIf() etc? -- Stuart From rusty.hammond at cpiqpc.com Tue May 2 17:22:21 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Tue, 2 May 2006 17:22:21 -0500 Subject: [AccessD] Converting Access 97 to Access 2003 Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F86E1@cpixchng-1.cpiqpc.net> I'm just starting to work on converting our Access 97 databases over to Access 2003 and the first one I tried converted with no issues and seems to work fine so far. I still have lot of testing to do but I can hardly believe I haven't found issues yet. This is a fairly involved application (front end utilizing SQL 2000 linked tables, importing excel spreadsheets, exporting to excel and running code in the excel workbook, etc..) I ran the Access 2003 Conversion toolkit and the details of the database are: 111 Tables 186 Queries 65 Forms 52 Reports 12 Macros (for custom menu bar) 12 Modules (with thousands of lines of code). My question is, has everyone that has done this type of conversion had this same type of success with converting to A2003? Rusty Hammond IT Dept. - B-20 CPI Qualified Plan Consultants, Inc. (620) 793-8473 ext. 416 rusty.hammond at cpiqpc.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 bchacc at san.rr.com Tue May 2 22:56:52 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 02 May 2006 20:56:52 -0700 Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] Message-ID: <44582A04.1030800@san.rr.com> Charlotte: More information about the apparent incompatibility with AutoCAD. Although it could be due to some other cause, of course. Does this information give you any ideas? TIA Rocky -------- Original Message -------- Subject: Re: Re: [AccessD] Access and AutoCAD] Date: Wed, 03 May 2006 08:22:08 +0530 From: R Ramamurthy To: Rocky Smolin - Beach Access Software References: <4457AD11.7020700 at san.rr.com> Rocky, Here is the mail I sent you on the 3rd April: >>I never heard of an incompatibility with AutoCAD but I suppose it's possible. Do any other access mdbs have this problem on this machine? ## The Access program itself opens in that computer but only PPM does not. There are no other *.mdb files to try out. And all other computers in the LAN do not have this problem. ## The failure message that appears (under the PPM blue strip in the warning window) reads as: "The expression On Open you entered as the event property setting produced the following errors: Licence information for the component not found. You do not have an appropriate licence to use the functionality in the design environment. * The expression may not result in the name of a macro, the name of a user-defined function, or [ Event procedure ] * There may have been an error evaluating the function, event, or macro" ## Rocky, please note the words 'On Open', both with capital O's 'design environment' Do these provide a clue? Does the PPM program generate such a warning? R. Ramamurthy ----- Original Message ----- *From:* Rocky Smolin - Beach Access Software *To:* R. Ramamurthy *Sent:* Wednesday, May 03, 2006 12:33 AM *Subject:* [Fwd: Re: [AccessD] Access and AutoCAD] Ram: Can you give me any more details about exactly what happens when you try to run PPM on the machine with AutoCAD? Do you know if they're up to date on all Office and Windows service packs? Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From shamil at users.mns.ru Wed May 3 04:52:56 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 3 May 2006 13:52:56 +0400 Subject: [AccessD] .pdf form -> Word doc convesion Message-ID: <000d01c66e97$60139150$6501a8c0@Nant> Hi All, Could you please advise is there somewhere a free tool to fulfill the subject task? I need to convert just one form, fill it, print it and snail mail - therefore free solution is preferable. If anybody has commercial tool and can help me to convert the .pdf form to .doc format please write me privately. I have heard that MS Word 12 is able to import .pdf forms? Is that true? Thank you. Shamil From mwp.reid at qub.ac.uk Wed May 3 05:06:07 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 3 May 2006 11:06:07 +0100 Subject: [AccessD] .pdf form -> Word doc convesion References: <000d01c66e97$60139150$6501a8c0@Nant> Message-ID: Shamil Just tried to open a PDF with Word 12 and it dodnt work. It wil save as PDF If you want to send me the file and the instructions I have adobe here and can do this for you. I wil lbe in the office for another Hour then I have to go teach. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Wed 03/05/2006 10:52 To: !DBA-MAIN Subject: [AccessD] .pdf form -> Word doc convesion Hi All, Could you please advise is there somewhere a free tool to fulfill the subject task? I need to convert just one form, fill it, print it and snail mail - therefore free solution is preferable. If anybody has commercial tool and can help me to convert the .pdf form to .doc format please write me privately. I have heard that MS Word 12 is able to import .pdf forms? Is that true? Thank you. Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed May 3 05:44:54 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 03 May 2006 12:44:54 +0200 Subject: [AccessD] .pdf form -> Word doc convesion Message-ID: Hi Shamil Could this tool be used: http://www.accesspdf.com/pdftk/ By the way, it looks useful for many PDF tasks ... Runs on Windows, Linux, Mac OS X, FreeBSD and Solaris. /gustav >>> shamil at users.mns.ru 03-05-2006 11:52:56 >>> Hi All, Could you please advise is there somewhere a free tool to fulfill the subject task? I need to convert just one form, fill it, print it and snail mail - therefore free solution is preferable. If anybody has commercial tool and can help me to convert the .pdf form to .doc format please write me privately. I have heard that MS Word 12 is able to import .pdf forms? Is that true? Thank you. Shamil From Chester_Kaup at kindermorgan.com Wed May 3 07:42:59 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 3 May 2006 07:42:59 -0500 Subject: [AccessD] Data from a SQL Server Table Message-ID: The problem is I need to manipulate the data. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Then if you can see the whole value in a form, what's the problem? You don't let users see the linked table anyhow. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 2:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table If I directly open the table I do not see the whole memo field. If I open it in a form I see the whole field. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Are you using a query to view the data? Are you trying to sort on the memo field? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 11:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Access 2003 SQL Server 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed May 3 07:54:43 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 3 May 2006 08:54:43 -0400 Subject: [AccessD] Converting Access 97 to Access 2003 Message-ID: <08F823FD83787D4BA0B99CA580AD3C7403717223@TTNEXCHCL2.hshhp.com> Rusty, We're in the midst converting many Access 97 apps to 2003 and have encountered nothing to stop us thus far. The apps range from tiny workgroup level tools with mdb FE and BE to larger sytems with SQL BE's. HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Tuesday, May 02, 2006 6:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Converting Access 97 to Access 2003 I'm just starting to work on converting our Access 97 databases over to Access 2003 and the first one I tried converted with no issues and seems to work fine so far. I still have lot of testing to do but I can hardly believe I haven't found issues yet. This is a fairly involved application (front end utilizing SQL 2000 linked tables, importing excel spreadsheets, exporting to excel and running code in the excel workbook, etc..) I ran the Access 2003 Conversion toolkit and the details of the database are: 111 Tables 186 Queries 65 Forms 52 Reports 12 Macros (for custom menu bar) 12 Modules (with thousands of lines of code). My question is, has everyone that has done this type of conversion had this same type of success with converting to A2003? Rusty Hammond IT Dept. - B-20 CPI Qualified Plan Consultants, Inc. (620) 793-8473 ext. 416 rusty.hammond at cpiqpc.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed May 3 08:24:06 2006 From: cyx5 at cdc.gov (Long, Karen S. (CDC/NIOSH/NPPTL) (CTR)) Date: Wed, 3 May 2006 09:24:06 -0400 Subject: [AccessD] Data from a SQL Server Table Message-ID: Too bad you can't use the Rich Text Format box from .net. Have you thought about using vb script to write the contents of the memo field to a .txt file, displaying that document, making changes, and then send it back to SQL? I have some code that will do that - I had a problem sort of like yours. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, May 03, 2006 8:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table The problem is I need to manipulate the data. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Then if you can see the whole value in a form, what's the problem? You don't let users see the linked table anyhow. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 2:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table If I directly open the table I do not see the whole memo field. If I open it in a form I see the whole field. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Are you using a query to view the data? Are you trying to sort on the memo field? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 11:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Access 2003 SQL Server 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Wed May 3 08:37:50 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 3 May 2006 08:37:50 -0500 Subject: [AccessD] Data from a SQL Server Table Message-ID: I may have to do something like that because an export from access to a text file only got the first 474 characters of the memo field. Why that number I don't know. Certainly not a multiple of 2. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Long, Karen S. (CDC/NIOSH/NPPTL) (CTR) Sent: Wednesday, May 03, 2006 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Too bad you can't use the Rich Text Format box from .net. Have you thought about using vb script to write the contents of the memo field to a .txt file, displaying that document, making changes, and then send it back to SQL? I have some code that will do that - I had a problem sort of like yours. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, May 03, 2006 8:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table The problem is I need to manipulate the data. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Then if you can see the whole value in a form, what's the problem? You don't let users see the linked table anyhow. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 2:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table If I directly open the table I do not see the whole memo field. If I open it in a form I see the whole field. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Are you using a query to view the data? Are you trying to sort on the memo field? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 11:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Access 2003 SQL Server 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 May 3 08:50:42 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 03 May 2006 06:50:42 -0700 Subject: [AccessD] Query Linking Unlike Fields Message-ID: <4458B532.3050504@san.rr.com> Dear List: The affiliate ID in our affiliate program is a long integer - as it should be. However, the affiliate ID is recorded from the PayPal transaction in a text field. So When I try to link them in a query to show affiliate sales by affiliate name, of course, I get a data type mismatch. Is there a way around this short of altering the tables? MTIA, Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Chester_Kaup at kindermorgan.com Wed May 3 08:55:16 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 3 May 2006 08:55:16 -0500 Subject: [AccessD] Query Linking Unlike Fields Message-ID: Could you run an intermediate query to convert the data type? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, May 03, 2006 8:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query Linking Unlike Fields Dear List: The affiliate ID in our affiliate program is a long integer - as it should be. However, the affiliate ID is recorded from the PayPal transaction in a text field. So When I try to link them in a query to show affiliate sales by affiliate name, of course, I get a data type mismatch. Is there a way around this short of altering the tables? 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 rusty.hammond at cpiqpc.com Wed May 3 09:07:57 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 3 May 2006 09:07:57 -0500 Subject: [AccessD] Converting Access 97 to Access 2003 Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F86E5@cpixchng-1.cpiqpc.net> Thanks Jim, that's good news. It seems like when I played with converting apps to Access 2000 some years ago, there were some immediately noticeable things that we were going to have to fix after the conversion. Thanks again, Rusty -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Wednesday, May 03, 2006 7:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Converting Access 97 to Access 2003 Rusty, We're in the midst converting many Access 97 apps to 2003 and have encountered nothing to stop us thus far. The apps range from tiny workgroup level tools with mdb FE and BE to larger sytems with SQL BE's. HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Tuesday, May 02, 2006 6:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Converting Access 97 to Access 2003 I'm just starting to work on converting our Access 97 databases over to Access 2003 and the first one I tried converted with no issues and seems to work fine so far. I still have lot of testing to do but I can hardly believe I haven't found issues yet. This is a fairly involved application (front end utilizing SQL 2000 linked tables, importing excel spreadsheets, exporting to excel and running code in the excel workbook, etc..) I ran the Access 2003 Conversion toolkit and the details of the database are: 111 Tables 186 Queries 65 Forms 52 Reports 12 Macros (for custom menu bar) 12 Modules (with thousands of lines of code). My question is, has everyone that has done this type of conversion had this same type of success with converting to A2003? Rusty Hammond IT Dept. - B-20 CPI Qualified Plan Consultants, Inc. (620) 793-8473 ext. 416 rusty.hammond at cpiqpc.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- 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 papparuff at comcast.net Wed May 3 09:10:39 2006 From: papparuff at comcast.net (papparuff at comcast.net) Date: Wed, 03 May 2006 14:10:39 +0000 Subject: [AccessD] Query Linking Unlike Fields Message-ID: <050320061410.13473.4458B9DF00059423000034A1220642461300009A9D0E9F9F0E9F@comcast.net> create a query for your affiliate ID that is an integer and convert it to text in the query. MyAffiliateID: CStr([affiliate ID]) Then you can use this query to link to the PayPal affiliate ID. papparuff -- John V. Ruff ? The Eternal Optimist :-) ?Commit to the Lord whatever you do, and your plans will succeed.? Proverbs 16:3 -------------- Original message -------------- From: Rocky Smolin - Beach Access Software > Dear List: > > The affiliate ID in our affiliate program is a long integer - as it > should be. However, the affiliate ID is recorded from the PayPal > transaction in a text field. So When I try to link them in a query to > show affiliate sales by affiliate name, of course, I get a data type > mismatch. Is there a way around this short of altering the tables? > > 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 Wed May 3 09:22:57 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 03 May 2006 07:22:57 -0700 Subject: [AccessD] Query Linking Unlike Fields In-Reply-To: References: Message-ID: <4458BCC1.6060901@san.rr.com> I suppose...do a make table query with the payment fields I want and the affiliate number in a long integer field? Then run a second select query to get the info? Makes it a two-step process but it'll work. I could link them to a button on a form that would run the make-table and then run a report with the second query as the record source. Rocky Kaup, Chester wrote: > Could you run an intermediate query to convert the data type? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Wednesday, May 03, 2006 8:51 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Query Linking Unlike Fields > > Dear List: > > The affiliate ID in our affiliate program is a long integer - as it > should be. However, the affiliate ID is recorded from the PayPal > transaction in a text field. So When I try to link them in a query to > show affiliate sales by affiliate name, of course, I get a data type > mismatch. Is there a way around this short of altering the tables? > > MTIA, > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From rusty.hammond at cpiqpc.com Wed May 3 09:25:36 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 3 May 2006 09:25:36 -0500 Subject: [AccessD] Query Linking Unlike Fields Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F86EA@cpixchng-1.cpiqpc.net> I've pulled this off (in Access 97) by going to the SQL view of the query and converting one of the fields to the matching datatype, SELECT tblMyTable.AffiliateID, tblMyTable.Desc, tblPayPal.Desc FROM tblMyTable INNER JOIN tblPayPal ON tblMyTable.AffiliateID = clng(tblPayPal.AffiliateID); The drawback to this is while the clng is in the SQL of the query, the join can't be represented in design view. I would imagine with large tables you would see a performance hit but I haven't done any testing. HTH Rusty -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Wednesday, May 03, 2006 8:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query Linking Unlike Fields Dear List: The affiliate ID in our affiliate program is a long integer - as it should be. However, the affiliate ID is recorded from the PayPal transaction in a text field. So When I try to link them in a query to show affiliate sales by affiliate name, of course, I get a data type mismatch. Is there a way around this short of altering the tables? 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 ********************************************************************** 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 bchacc at san.rr.com Wed May 3 09:29:35 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 03 May 2006 07:29:35 -0700 Subject: [AccessD] Query Linking Unlike Fields In-Reply-To: <050320061410.13473.4458B9DF00059423000034A1220642461300009A9D0E9F9F0E9F@comcast.net> References: <050320061410.13473.4458B9DF00059423000034A1220642461300009A9D0E9F9F0E9F@comcast.net> Message-ID: <4458BE4F.8060606@san.rr.com> That does it!. Thanks Rocky papparuff at comcast.net wrote: > create a query for your affiliate ID that is an integer and convert it to text in the query. > > MyAffiliateID: CStr([affiliate ID]) > > Then you can use this query to link to the PayPal affiliate ID. > > papparuff > > -- > John V. Ruff ? The Eternal Optimist :-) > > ?Commit to the Lord whatever you do, > and your plans will succeed.? Proverbs 16:3 > > -------------- Original message -------------- > From: Rocky Smolin - Beach Access Software > > >> Dear List: >> >> The affiliate ID in our affiliate program is a long integer - as it >> should be. However, the affiliate ID is recorded from the PayPal >> transaction in a text field. So When I try to link them in a query to >> show affiliate sales by affiliate name, of course, I get a data type >> mismatch. Is there a way around this short of altering the tables? >> >> 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 cfoust at infostatsystems.com Wed May 3 10:12:05 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 May 2006 08:12:05 -0700 Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] Message-ID: I vaguely recall that AutoCAD had dll conflicts with Access, but that's all. What's happening in On Open? Are you loading anything besides a generic Access form? Any third party controls, licensed controls, etc.? 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: Tuesday, May 02, 2006 8:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] Charlotte: More information about the apparent incompatibility with AutoCAD. Although it could be due to some other cause, of course. Does this information give you any ideas? TIA Rocky -------- Original Message -------- Subject: Re: Re: [AccessD] Access and AutoCAD] Date: Wed, 03 May 2006 08:22:08 +0530 From: R Ramamurthy To: Rocky Smolin - Beach Access Software References: <4457AD11.7020700 at san.rr.com> Rocky, Here is the mail I sent you on the 3rd April: >>I never heard of an incompatibility with AutoCAD but I suppose it's possible. Do any other access mdbs have this problem on this machine? ## The Access program itself opens in that computer but only PPM does not. There are no other *.mdb files to try out. And all other computers in the LAN do not have this problem. ## The failure message that appears (under the PPM blue strip in the warning window) reads as: "The expression On Open you entered as the event property setting produced the following errors: Licence information for the component not found. You do not have an appropriate licence to use the functionality in the design environment. * The expression may not result in the name of a macro, the name of a user-defined function, or [ Event procedure ] * There may have been an error evaluating the function, event, or macro" ## Rocky, please note the words 'On Open', both with capital O's 'design environment' Do these provide a clue? Does the PPM program generate such a warning? R. Ramamurthy ----- Original Message ----- *From:* Rocky Smolin - Beach Access Software *To:* R. Ramamurthy *Sent:* Wednesday, May 03, 2006 12:33 AM *Subject:* [Fwd: Re: [AccessD] Access and AutoCAD] Ram: Can you give me any more details about exactly what happens when you try to run PPM on the machine with AutoCAD? Do you know if they're up to date on all Office and Windows service packs? 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 cfoust at infostatsystems.com Wed May 3 10:18:23 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 May 2006 08:18:23 -0700 Subject: [AccessD] Data from a SQL Server Table Message-ID: Manipulating the table should be done from the user interface. It sounds like you're talking about querying data out of the table and having the field truncated, which is a different issue entirely. If you include the memo field in a groupby clause, it will truncate the data. Check the archives for a couple of threads on query truncates memo field. Also keep in mind that the SQL Server text datatype will hold more than the Access memo type. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, May 03, 2006 6:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table I may have to do something like that because an export from access to a text file only got the first 474 characters of the memo field. Why that number I don't know. Certainly not a multiple of 2. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Long, Karen S. (CDC/NIOSH/NPPTL) (CTR) Sent: Wednesday, May 03, 2006 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Too bad you can't use the Rich Text Format box from .net. Have you thought about using vb script to write the contents of the memo field to a .txt file, displaying that document, making changes, and then send it back to SQL? I have some code that will do that - I had a problem sort of like yours. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, May 03, 2006 8:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table The problem is I need to manipulate the data. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Then if you can see the whole value in a form, what's the problem? You don't let users see the linked table anyhow. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 2:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table If I directly open the table I do not see the whole memo field. If I open it in a form I see the whole field. From bchacc at san.rr.com Wed May 3 10:38:00 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 03 May 2006 08:38:00 -0700 Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] In-Reply-To: References: Message-ID: <4458CE58.1070607@san.rr.com> Nope. No 3rd parties, no licensed controls. Just plain vanilla. I tried Googling AutoCAD and Access conflicts but came up empty. Rocky Charlotte Foust wrote: > I vaguely recall that AutoCAD had dll conflicts with Access, but that's > all. What's happening in On Open? Are you loading anything besides a > generic Access form? Any third party controls, licensed controls, etc.? > > > 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: Tuesday, May 02, 2006 8:57 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] > > Charlotte: > > More information about the apparent incompatibility with AutoCAD. > Although it could be due to some other cause, of course. Does this > information give you any ideas? > > TIA > > Rocky > > > -------- Original Message -------- > Subject: Re: Re: [AccessD] Access and AutoCAD] > Date: Wed, 03 May 2006 08:22:08 +0530 > From: R Ramamurthy > To: Rocky Smolin - Beach Access Software > References: <4457AD11.7020700 at san.rr.com> > > > > Rocky, > > Here is the mail I sent you on the 3rd April: > > >>I never heard of an incompatibility with AutoCAD but I suppose it's > possible. Do any other access mdbs have this problem on this machine? > ## The Access program itself opens in that computer but only PPM does > not. There are no other *.mdb files to try out. And all other computers > in the LAN do not have this problem. > > ## The failure message that appears (under the PPM blue strip in the > warning window) reads as: > > "The expression On Open you entered as the event property setting > produced the following errors: Licence information for the component not > found. You do not have an appropriate licence to use the functionality > in the design environment. > * The expression may not result in the name of a macro, the name of a > user-defined function, or [ Event procedure ] > * There may have been an error evaluating the function, event, or macro" > > ## Rocky, please note the words > 'On Open', both with capital O's > 'design environment' > Do these provide a clue? > > Does the PPM program generate such a warning? > > R. Ramamurthy > > ----- Original Message ----- > *From:* Rocky Smolin - Beach Access Software > > *To:* R. Ramamurthy > *Sent:* Wednesday, May 03, 2006 12:33 AM > *Subject:* [Fwd: Re: [AccessD] Access and AutoCAD] > > Ram: > > Can you give me any more details about exactly what happens when you > try to run PPM on the machine with AutoCAD? Do you know if they're > up to date on all Office and Windows service packs? > > 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 ralphb at cwgsy.net Wed May 3 11:07:52 2006 From: ralphb at cwgsy.net (Ralph Bryce) Date: Wed, 3 May 2006 17:07:52 +0100 Subject: [AccessD] Access and AutoCAD In-Reply-To: <4458CE58.1070607@san.rr.com> Message-ID: <000001c66ecb$bb6199b0$3500000a@RALPHA31P> Hi Rocky If it's any help... I've been running AutoCAD LT (several versions) for years with A95, A97 and A2000 with no problems. Regards, Ralph Bryce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: 03 May 2006 16:38 To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] Nope. No 3rd parties, no licensed controls. Just plain vanilla. I tried Googling AutoCAD and Access conflicts but came up empty. Rocky Charlotte Foust wrote: > I vaguely recall that AutoCAD had dll conflicts with Access, but > that's all. What's happening in On Open? Are you loading anything > besides a generic Access form? Any third party controls, licensed controls, etc.? > > > Charlotte Foust From Jdemarco at hudsonhealthplan.org Wed May 3 13:59:28 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 3 May 2006 14:59:28 -0400 Subject: [AccessD] Converting Access 97 to Access 2003 Message-ID: <08F823FD83787D4BA0B99CA580AD3C74037172BF@TTNEXCHCL2.hshhp.com> Funny. I had a similar experience with A2K when it first came out and was also expecting nightmare problems this time but all is well so far. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Wednesday, May 03, 2006 10:08 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Converting Access 97 to Access 2003 Thanks Jim, that's good news. It seems like when I played with converting apps to Access 2000 some years ago, there were some immediately noticeable things that we were going to have to fix after the conversion. Thanks again, Rusty -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Wednesday, May 03, 2006 7:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Converting Access 97 to Access 2003 Rusty, We're in the midst converting many Access 97 apps to 2003 and have encountered nothing to stop us thus far. The apps range from tiny workgroup level tools with mdb FE and BE to larger sytems with SQL BE's. HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Tuesday, May 02, 2006 6:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Converting Access 97 to Access 2003 I'm just starting to work on converting our Access 97 databases over to Access 2003 and the first one I tried converted with no issues and seems to work fine so far. I still have lot of testing to do but I can hardly believe I haven't found issues yet. This is a fairly involved application (front end utilizing SQL 2000 linked tables, importing excel spreadsheets, exporting to excel and running code in the excel workbook, etc..) I ran the Access 2003 Conversion toolkit and the details of the database are: 111 Tables 186 Queries 65 Forms 52 Reports 12 Macros (for custom menu bar) 12 Modules (with thousands of lines of code). My question is, has everyone that has done this type of conversion had this same type of success with converting to A2003? Rusty Hammond IT Dept. - B-20 CPI Qualified Plan Consultants, Inc. (620) 793-8473 ext. 416 rusty.hammond at cpiqpc.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- 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. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed May 3 14:10:30 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 03 May 2006 12:10:30 -0700 Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] References: <4458CE58.1070607@san.rr.com> Message-ID: <44590026.3050100@shaw.ca> Autocad can run VBA and export mdb files but you have to install DAO or specific MDAC Autocad 2000 installs DAO 3.5 if specifically installed from CD. http://usa.autodesk.com/adsk/servlet/ps/item?siteID=123112&id=2863183&linkID=2475323 I just wonder if you have a MDAC conflict or unregistered DAO360 or DAO350.dll Rocky Smolin - Beach Access Software wrote: >Nope. No 3rd parties, no licensed controls. Just plain vanilla. I >tried Googling AutoCAD and Access conflicts but came up empty. >Mime-Version: 1.0 >Content-Transfer-Encoding: 7bit >Content-Type: text/plain; charset=us-ascii > >Rocky > > >Charlotte Foust wrote: > > >>I vaguely recall that AutoCAD had dll conflicts with Access, but that's >>all. What's happening in On Open? Are you loading anything besides a >>generic Access form? Any third party controls, licensed controls, etc.? >> >> >>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: Tuesday, May 02, 2006 8:57 PM >>To: Access Developers discussion and problem solving >>Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] >> >>Charlotte: >> >>More information about the apparent incompatibility with AutoCAD. >>Although it could be due to some other cause, of course. Does this >>information give you any ideas? >> >>TIA >> >>Rocky >> >> >>-------- Original Message -------- >>Subject: Re: Re: [AccessD] Access and AutoCAD] >>Date: Wed, 03 May 2006 08:22:08 +0530 >>From: R Ramamurthy >>To: Rocky Smolin - Beach Access Software >>References: <4457AD11.7020700 at san.rr.com> >> >> >> >>Rocky, >> >>Here is the mail I sent you on the 3rd April: >> >> >>I never heard of an incompatibility with AutoCAD but I suppose it's >>possible. Do any other access mdbs have this problem on this machine? >>## The Access program itself opens in that computer but only PPM does >>not. There are no other *.mdb files to try out. And all other computers >>in the LAN do not have this problem. >> >>## The failure message that appears (under the PPM blue strip in the >>warning window) reads as: >> >>"The expression On Open you entered as the event property setting >>produced the following errors: Licence information for the component not >>found. You do not have an appropriate licence to use the functionality >>in the design environment. >>* The expression may not result in the name of a macro, the name of a >>user-defined function, or [ Event procedure ] >>* There may have been an error evaluating the function, event, or macro" >> >>## Rocky, please note the words >>'On Open', both with capital O's >>'design environment' >>Do these provide a clue? >> >>Does the PPM program generate such a warning? >> >>R. Ramamurthy >> >> ----- Original Message ----- >> *From:* Rocky Smolin - Beach Access Software >> >> *To:* R. Ramamurthy >> *Sent:* Wednesday, May 03, 2006 12:33 AM >> *Subject:* [Fwd: Re: [AccessD] Access and AutoCAD] >> >> Ram: >> >> Can you give me any more details about exactly what happens when you >> try to run PPM on the machine with AutoCAD? Do you know if they're >> up to date on all Office and Windows service packs? >> >> 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 >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Wed May 3 15:32:49 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 03 May 2006 13:32:49 -0700 Subject: [AccessD] Access and AutoCAD In-Reply-To: <000001c66ecb$bb6199b0$3500000a@RALPHA31P> References: <000001c66ecb$bb6199b0$3500000a@RALPHA31P> Message-ID: <44591371.9050204@san.rr.com> Could be something else, then - some other difference. Yes, that's helpful. I'll forward to the client. Rocky Ralph Bryce wrote: > Hi Rocky > > If it's any help... > > I've been running AutoCAD LT (several versions) for years > with A95, A97 and A2000 with no problems. > > Regards, > > Ralph Bryce > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: 03 May 2006 16:38 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] > > Nope. No 3rd parties, no licensed controls. Just plain vanilla. I tried > Googling AutoCAD and Access conflicts but came up empty. > > Rocky > > > Charlotte Foust wrote: > >> I vaguely recall that AutoCAD had dll conflicts with Access, but >> that's all. What's happening in On Open? Are you loading anything >> besides a generic Access form? Any third party controls, licensed >> > controls, etc.? > >> Charlotte Foust >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Wed May 3 15:33:16 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 03 May 2006 13:33:16 -0700 Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] In-Reply-To: <44590026.3050100@shaw.ca> References: <4458CE58.1070607@san.rr.com> <44590026.3050100@shaw.ca> Message-ID: <4459138C.7050708@san.rr.com> Marty: I'll forward - they can check it out over there. Thanks. Rocky MartyConnelly wrote: > Autocad can run VBA and export mdb files but you have to install DAO or > specific MDAC > Autocad 2000 installs DAO 3.5 if specifically installed from CD. > http://usa.autodesk.com/adsk/servlet/ps/item?siteID=123112&id=2863183&linkID=2475323 > I just wonder if you have a MDAC conflict or unregistered DAO360 or > DAO350.dll > > Rocky Smolin - Beach Access Software wrote: > > >> Nope. No 3rd parties, no licensed controls. Just plain vanilla. I >> tried Googling AutoCAD and Access conflicts but came up empty. >> Mime-Version: 1.0 >> Content-Transfer-Encoding: 7bit >> Content-Type: text/plain; charset=us-ascii >> >> Rocky >> >> >> Charlotte Foust wrote: >> >> >> >>> I vaguely recall that AutoCAD had dll conflicts with Access, but that's >>> all. What's happening in On Open? Are you loading anything besides a >>> generic Access form? Any third party controls, licensed controls, etc.? >>> >>> >>> 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: Tuesday, May 02, 2006 8:57 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] >>> >>> Charlotte: >>> >>> More information about the apparent incompatibility with AutoCAD. >>> Although it could be due to some other cause, of course. Does this >>> information give you any ideas? >>> >>> TIA >>> >>> Rocky >>> >>> >>> -------- Original Message -------- >>> Subject: Re: Re: [AccessD] Access and AutoCAD] >>> Date: Wed, 03 May 2006 08:22:08 +0530 >>> From: R Ramamurthy >>> To: Rocky Smolin - Beach Access Software >>> References: <4457AD11.7020700 at san.rr.com> >>> >>> >>> >>> Rocky, >>> >>> Here is the mail I sent you on the 3rd April: >>> >>> >>>>> I never heard of an incompatibility with AutoCAD but I suppose it's >>>>> >>> possible. Do any other access mdbs have this problem on this machine? >>> ## The Access program itself opens in that computer but only PPM does >>> not. There are no other *.mdb files to try out. And all other computers >>> in the LAN do not have this problem. >>> >>> ## The failure message that appears (under the PPM blue strip in the >>> warning window) reads as: >>> >>> "The expression On Open you entered as the event property setting >>> produced the following errors: Licence information for the component not >>> found. You do not have an appropriate licence to use the functionality >>> in the design environment. >>> * The expression may not result in the name of a macro, the name of a >>> user-defined function, or [ Event procedure ] >>> * There may have been an error evaluating the function, event, or macro" >>> >>> ## Rocky, please note the words >>> 'On Open', both with capital O's >>> 'design environment' >>> Do these provide a clue? >>> >>> Does the PPM program generate such a warning? >>> >>> R. Ramamurthy >>> >>> ----- Original Message ----- >>> *From:* Rocky Smolin - Beach Access Software >>> >>> *To:* R. Ramamurthy >>> *Sent:* Wednesday, May 03, 2006 12:33 AM >>> *Subject:* [Fwd: Re: [AccessD] Access and AutoCAD] >>> >>> Ram: >>> >>> Can you give me any more details about exactly what happens when you >>> try to run PPM on the machine with AutoCAD? Do you know if they're >>> up to date on all Office and Windows service packs? >>> >>> 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 tom.p at piedpiper.com.au Wed May 3 18:52:48 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Thu, 4 May 2006 07:52:48 +0800 Subject: [AccessD] MULTI SELECT LISTBOX dynamically selecting values from another listbox References: <4458CE58.1070607@san.rr.com> <44590026.3050100@shaw.ca> <4459138C.7050708@san.rr.com> Message-ID: <001601c66f0c$af004900$2900a8c0@TOMNEW> I think my brain has turned to toffee this morning..... I need to have multiple values select selected in a listbox from another listbox By selecting a line from the first listbox which contains the id's I then need those lines to appear selected in a second listbox For example my first listbox has a field with data in the form 73221,7259,13771,2 My second listbox contains those (and other)values 5698 7259 13771 2 73221 996589 23 38 and so on I choose the line in the first listbox I want the four lines selected in the second box The code below works fine for the single value but I need to loop thru the values in my first line to make it work.....should be simple but I simply cant get it to work Dim intI As Integer Dim strIDValue As String strIDValue = 73221 For intI = 0 To Me!listcon1.ListCount - 1 If Me!listcon1.ItemData(intI) = strIDValue Then Me!listcon1.Selected(intI) = True End If Next intI This code will select line 73221 Any suggestions? TIA Tom Keatley From stuart at lexacorp.com.pg Wed May 3 19:23:24 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 04 May 2006 10:23:24 +1000 Subject: [AccessD] MULTI SELECT LISTBOX dynamically selecting values from another listbox In-Reply-To: <001601c66f0c$af004900$2900a8c0@TOMNEW> Message-ID: <4459D61C.6606.2E76F909@stuart.lexacorp.com.pg> On 4 May 2006 at 7:52, Tom Keatley wrote: > > The code below works fine for the single value but I need to loop thru > the values in my first line to make it work.....should be simple but I > simply cant get it to work > > Dim intI As Integer > Dim strIDValue As String > strIDValue = 73221 > For intI = 0 To Me!listcon1.ListCount - 1 > If Me!listcon1.ItemData(intI) = strIDValue Then > Me!listcon1.Selected(intI) = True > End If > Next intI > This code will select line 73221 > Aircode so it may need some debugging, but the general idea is there: Dim intI As Integer Dim intl2 as Integer Dim strIDValue As String Dim strIDs() as String Dim strCurrentValue as String strIDValue = "73221,7259,13771,2" strIDs() = split(strIDValue,",") For intl2 = 0 to ubound(strIDs) strCurrentValue = strIDs(intl2) For intI = 0 To Me!listcon1.ListCount - 1 If Me!listcon1.ItemData(intI) = strCurrentValue Then Me!listcon1.Selected(intI) = True End If Next intI Next intl2 From kp at sdsonline.net Wed May 3 20:01:17 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Thu, 4 May 2006 11:01:17 +1000 Subject: [AccessD] VB.net form title bar not visible Message-ID: <001801c66f16$402f1970$6601a8c0@office> (Cross posted to AccessD and Access D VB) I have a main menu with a menu strip item. What I want is when the user clicks on that menu item, the Main menu stays in the background (which it does) and FrmPricing opens maximised without the title bar. I have the following properties set for frmpricing: WindowState: maximised Maximise box: false Minimise box: false My code to open frmpricing from the mainmenu is as follows: -------------------------------------------------------------------------------- Private Sub mnuSecuritiesPricing_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuSecuritiesPricing.Click Dim ifrmPricing As New frmPricing ifrmPricing.MdiParent = Me ifrmPricing.Dock = DockStyle.Fill Me.MenuStrip1.Enabled = False ifrmPricing.Show() 'Dialog() End Sub -------------------------------------------------------------------------------- Kath Pelletti From kp at sdsonline.net Wed May 3 20:07:46 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Thu, 4 May 2006 11:07:46 +1000 Subject: [AccessD] VB.net form title bar not visible Message-ID: <002801c66f17$2a47fe50$6601a8c0@office> Don't worry - got it - Frmborderstyle = none ______________________________________ Kath Pelletti From stuart at lexacorp.com.pg Wed May 3 22:09:35 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 04 May 2006 13:09:35 +1000 Subject: [AccessD] MULTI SELECT LISTBOX dynamically selecting valuesfrom another listbox In-Reply-To: <005901c66f1e$715d4dc0$2900a8c0@TOMNEW> Message-ID: <4459FD0F.3354.2F0F1EED@stuart.lexacorp.com.pg> On 4 May 2006 at 9:59, Tom Keatley wrote: > Hi Stuart..... > > It seems when you assist me it always is with a Split function > That's because it's a very useful function :-) > My problem in this case is this database is in A97 ....No split > function .... Any Idea how I can solve it WITHOUT using Split? > You can get an A97 Split function, along with A97 versions of several other A2K functions at http://www.tek-tips.com/faqs.cfm?fid=4342 I'd suggest you keep them all in a module that you can paste into your apps on demand :-) If you don't want to use Split(), you could do it this way: Dim intI As Integer Dim intl2 As Integer Dim strIDValue As String Dim lngCurrentValue As Long strIDValue = "73221,7259,13771,2" strIDValue = strIDValue & "," 'to pick up the last value in the loop below Do lngCurrentValue = Val(strIDValue) 'get the first number strIDValue = Mid$(strIDValue, InStr(strIDValue, ",") + 1) 'get rid of the first number For intI = 0 To Me!listcon1.ListCount - 1 If Me!listcon1.ItemData(intI) = lngCurrentValue Then Me!listcon1.Selected(intI) = True End If Next intI Loop Until InStr(strIDValue, ",") = 0 From tom.p at piedpiper.com.au Wed May 3 23:36:09 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Thu, 4 May 2006 12:36:09 +0800 Subject: [AccessD] MULTI SELECT LISTBOX dynamically selecting valuesfromanother listbox References: <4459FD0F.3354.2F0F1EED@stuart.lexacorp.com.pg> Message-ID: <007701c66f34$445e4890$2900a8c0@TOMNEW> Hi Stuart.... Hopefully the last one.... I have downloaded the code you suggested at tektips and have installed it in a module within the database but now get a compile error with the message "cant Assign to an array" .... It must be the syntax? I must admit this little wall is getting higher for me and I am considering finding another way. For some reason the other code (without split) you did for me is giving me a type mismatch error so I made strCurrentValue into a string and the code appeared to run giving all the correct numbers and iterating through the listbox (in the debug window) but no lines were selected.... can you shed any light? Dim intI As Integer Dim intl2 As Integer Dim strIDValue As String Dim strIDs() As String Dim strCurrentValue As String '' strIDValue = "13772,13773,13771" strIDs() = Split(strIDValue, ",") For intl2 = 0 To UBound(strIDs) strCurrentValue = strIDs(intl2) For intI = 0 To Me!listcon1.ListCount - 1 If Me!listcon1.ItemData(intI) = strCurrentValue Then Me!listcon1.Selected(intI) = True End If Next intI Next intl2 strIDValue = 13771 For intI = 0 To Me!listcon1.ListCount - 1 If Me!listcon1.ItemData(intI) = strIDValue Then Me!listcon1.Selected(intI) = True End If Next intI regards Tom Keatley ----- Original Message ----- From: "Stuart McLachlan" To: "access Developers discussion and problem solving" Sent: Thursday, May 04, 2006 11:09 AM Subject: Re: [AccessD] MULTI SELECT LISTBOX dynamically selecting valuesfromanother listbox > On 4 May 2006 at 9:59, Tom Keatley wrote: > >> Hi Stuart..... >> >> It seems when you assist me it always is with a Split function >> > That's because it's a very useful function :-) > >> My problem in this case is this database is in A97 ....No split >> function .... Any Idea how I can solve it WITHOUT using Split? >> > > You can get an A97 Split function, along with A97 versions of several > other A2K functions at > http://www.tek-tips.com/faqs.cfm?fid=4342 > > I'd suggest you keep them all in a module that you can paste into your > apps on demand :-) > > > > > If you don't want to use Split(), you could do it this way: > > Dim intI As Integer > Dim intl2 As Integer > Dim strIDValue As String > Dim lngCurrentValue As Long > strIDValue = "73221,7259,13771,2" > > strIDValue = strIDValue & "," 'to pick up the last value in the > loop below > Do > lngCurrentValue = Val(strIDValue) 'get the first number > strIDValue = Mid$(strIDValue, InStr(strIDValue, ",") + 1) 'get rid > of the first number > > For intI = 0 To Me!listcon1.ListCount - 1 > If Me!listcon1.ItemData(intI) = lngCurrentValue Then > Me!listcon1.Selected(intI) = True > End If > Next intI > Loop Until InStr(strIDValue, ",") = 0 > > -- > 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.392 / Virus Database: 268.5.3/331 - Release Date: 03/05/2006 > > From stuart at lexacorp.com.pg Thu May 4 00:09:19 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 04 May 2006 15:09:19 +1000 Subject: [AccessD] MULTI SELECT LISTBOX dynamically selecting valuesfromanother listbox In-Reply-To: <007701c66f34$445e4890$2900a8c0@TOMNEW> Message-ID: <445A191F.216.2F7CBBC7@stuart.lexacorp.com.pg> On 4 May 2006 at 12:36, Tom Keatley wrote: > Hi Stuart.... > > Hopefully the last one.... > > I have downloaded the code you suggested at tektips and have > installed it in a module within the database but now get a compile > error with the message "cant Assign to an array" .... It must be the > syntax? I must admit this little wall is getting higher for me and I > am considering finding another way. > Haven't got a copy of A97 handy to check it it. > For some reason the other code (without split) you did for me is > giving me a type mismatch error so I made strCurrentValue into a > string and the code appeared to run giving all the correct numbers and > iterating through the listbox (in the debug window) but no lines were > selected.... > > can you shed any light? Looks like your ItemData is not numeric. Try printing out Debug.Print Me!listcon1.ItemData(intI) & " - " & strCurrentValue in the loop to see what you are actually comparing. Let us know what you get. From kp at sdsonline.net Thu May 4 00:22:17 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Thu, 4 May 2006 15:22:17 +1000 Subject: [AccessD] Go to new record - vb.net Message-ID: <000d01c66f3a$b70b5f80$6601a8c0@office> (Cross posted vb list / access list) Does anyone know what code to use to move to a new record in a DataGridView control in vb.net? I have created a new menustripcontrol with an 'Add new record' button. When the user clicks it I want it to move to a new record in the grid. rgds ______________________________________ Kath Pelletti From bchacc at san.rr.com Thu May 4 00:48:11 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 03 May 2006 22:48:11 -0700 Subject: [AccessD] Query Linking Unlike Fields In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A154F86EA@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A154F86EA@cpixchng-1.cpiqpc.net> Message-ID: <4459959B.3060207@san.rr.com> That's elegant. I don't mind losing the design view. It's a simple enough query that you can still understand it in SQL view. I hope the table gets large enough to see a performance hit. :) Rocky rusty.hammond at cpiqpc.com wrote: > I've pulled this off (in Access 97) by going to the SQL view of the query > and converting one of the fields to the matching datatype, > > SELECT tblMyTable.AffiliateID, tblMyTable.Desc, tblPayPal.Desc > FROM tblMyTable INNER JOIN tblPayPal ON tblMyTable.AffiliateID = > clng(tblPayPal.AffiliateID); > > The drawback to this is while the clng is in the SQL of the query, the join > can't be represented in design view. I would imagine with large tables you > would see a performance hit but I haven't done any testing. > > HTH > Rusty > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Wednesday, May 03, 2006 8:51 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Query Linking Unlike Fields > > > Dear List: > > The affiliate ID in our affiliate program is a long integer - as it > should be. However, the affiliate ID is recorded from the PayPal > transaction in a text field. So When I try to link them in a query to > show affiliate sales by affiliate name, of course, I get a data type > mismatch. Is there a way around this short of altering the tables? > > MTIA, > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From tom.p at piedpiper.com.au Thu May 4 01:47:37 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Thu, 4 May 2006 14:47:37 +0800 Subject: [AccessD] MULTI SELECT LISTBOX dynamically selectingvaluesfromanother listbox References: <445A191F.216.2F7CBBC7@stuart.lexacorp.com.pg> Message-ID: <00ab01c66f46$a1d0b000$2900a8c0@TOMNEW> Hi Stuart.... Thanks for the hand with this .....I think the end is in sight. I now have the code below that runs fine as is, my data mismatch problem turned out to be...... I had headers turned on in the listbox (i) and of course its an integer so after I turned headers on it ran without errors. The only problem is the list has only ONE line selected and that line is the first in the sequence (I assume the LAST to be processed) The box IS set to multiselect as I can select multiple values manually . I have put the results of the debug below the code.... Dim intI As Integer Dim i As Integer Dim strIDValue As String Dim lngCurrentValue As Long strIDValue = "13772,13773,13771" '' strIDValue = strIDValue & "," 'to pick up the last value in the loop below Do lngCurrentValue = Val(strIDValue) 'get the first number strIDValue = Mid$(strIDValue, InStr(strIDValue, ",") + 1) 'get rid of the first number''''' For intI = 0 To Me!listcon1.ListCount - 1 If Me!listcon1.ItemData(i) = lngCurrentValue Then Me!listcon1.Selected(i) = True End If Debug.Print Me!listcon1.ItemData(intI) & " - " & lngCurrentValue 'Debug.Print str(lngCurrentValue) Next intI Loop Until InStr(strIDValue, ",") = 0 13772 - 13772 13771 - 13772 13773 - 13772 7125 - 13772 7124 - 13772 7126 - 13772 7128 - 13772 13772 - 13773 13771 - 13773 13773 - 13773 7125 - 13773 7124 - 13773 7126 - 13773 7128 - 13773 13772 - 13771 13771 - 13771 13773 - 13771 7125 - 13771 7124 - 13771 7126 - 13771 7128 - 13771 On 4 May 2006 at 12:36, Tom Keatley wrote: > Hi Stuart.... > > Hopefully the last one.... > > I have downloaded the code you suggested at tektips and have > installed it in a module within the database but now get a compile > error with the message "cant Assign to an array" .... It must be the > syntax? I must admit this little wall is getting higher for me and I > am considering finding another way. > Haven't got a copy of A97 handy to check it it. > For some reason the other code (without split) you did for me is > giving me a type mismatch error so I made strCurrentValue into a > string and the code appeared to run giving all the correct numbers and > iterating through the listbox (in the debug window) but no lines were > selected.... > > can you shed any light? Looks like your ItemData is not numeric. Try printing out Debug.Print Me!listcon1.ItemData(intI) & " - " & strCurrentValue in the loop to see what you are actually comparing. Let us know what you get. From tom.p at piedpiper.com.au Thu May 4 04:32:19 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Thu, 4 May 2006 17:32:19 +0800 Subject: [AccessD] MULTI SELECT LISTBOX dynamically selectingvaluesfromanother listbox References: <445A191F.216.2F7CBBC7@stuart.lexacorp.com.pg> Message-ID: <003f01c66f5d$a41d1990$2900a8c0@TOMNEW> Hi All.... Many thanks go to Stuart McLachlan who supplied the code below to help me sort out a problem with a pair of multi-select list boxes I was working on. I needed to select multiple items in a list box from a second list box. The other problem was I was working in A97 and did not have the split function The second list box had the ID values of the table that was supplying the first list box in a field in the form 13771,13589,13654 etc The Name of the second list box is DisBurseList Thanks Stuart ....the problem I was having last of all was solved .... if you have a look at my precious email I had i dimmed as IntI as well and the code was trying to run with both variables ....of course it failed I have posted this for the archives thanks Tom Keatley '====================================================== Private Sub DisBurseList_Click() Dim i As Integer Dim strIDValue As String Dim lngCurrentValue As Long strIDValue = "13771,13589,13654" 'DisBurseList ' strIDValue = strIDValue & "," 'to pick up the last value in the loop below Do lngCurrentValue = Val(strIDValue) 'get the first number strIDValue = Mid$(strIDValue, InStr(strIDValue, ",") + 1) 'get rid of the first number For i = 0 To Me!listcon1.ListCount - 1 If Me!listcon1.ItemData(i) = lngCurrentValue Then Me!listcon1.Selected(i) = True End If Debug.Print Me!listcon1.ItemData(i) & " - " & lngCurrentValue Next i Loop Until InStr(strIDValue, ",") = 0 End Sub '=========================================================== From bheid at appdevgrp.com Thu May 4 06:31:12 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 4 May 2006 07:31:12 -0400 Subject: [AccessD] Access resources page on Conrad Systems Development web site. Message-ID: <916187228923D311A6FE00A0CC3FAA30D3532B@ADGSERVER> I came across this today and thought it might be useful for some. http://home.bendbroadband.com/conradsystems/accessjunkie/resources.html Bobby From Erwin.Craps at ithelps.be Thu May 4 06:32:08 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 4 May 2006 13:32:08 +0200 Subject: [AccessD] Copyrcordset to Excel fails on lenthy memo field. Message-ID: <46B976F2B698FF46A4FE7636509B22DF3CB747@stekelbes.ithelps.local> When having a long memofield and using copyrecordset to excel then call fails when having lengthy texts in the memofield. I'm not sure of the maximum length but in this case the text is 1102 karakters long. 480 characters seems to pass. When using copy/paste the excel cell can accept this 1102 long tekst, os its not a cell text limitation, but I supose a DAO or Excel object limitation? Is there a simple workaround still using the copyrecordset function? The only simple solution I see is to truncate my memofield to the maximum length (which I don't know) but this i want to avoid. It's not that a big deal because is the cast list from a movie, so an actor in the +1000 character is probably not that important. In this case it's the cast for the "World Trade Center" Movie! To sumerize my questions: Simple way to copy long memofields to excel using copyrecordset? and/or Whats the maximum fieldlength I can copyrecordset tot excel? greetings 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 Erwin.Craps at ithelps.be Thu May 4 07:42:41 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 4 May 2006 14:42:41 +0200 Subject: [AccessD] Copyrcordset to Excel fails on lenthy memo field. Message-ID: <46B976F2B698FF46A4FE7636509B22DF3CB74B@stekelbes.ithelps.local> I just modified my query to left([Cast[;1024) But when dooing this I get this strange id at the end (identifier?) of my text in Excel. "Doug Aguirre, Rob Armstrong, Michael Arthur, Maria Bello, Jon Bernthal, Robert Blanche, Lucia Brawley, Kurt Caceres, Nicolas Cage, Francesca Casale, Jude Ciccolella, Lori M. Cincotta, Dara Coleman, Nick Damici, Patti D'Arbanville, Stephen Dorff, Thomas F.-21-1935655697-343818398-725345543-1132" Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, May 04, 2006 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Copyrcordset to Excel fails on lenthy memo field. When having a long memofield and using copyrecordset to excel then call fails when having lengthy texts in the memofield. I'm not sure of the maximum length but in this case the text is 1102 karakters long. 480 characters seems to pass. When using copy/paste the excel cell can accept this 1102 long tekst, os its not a cell text limitation, but I supose a DAO or Excel object limitation? Is there a simple workaround still using the copyrecordset function? The only simple solution I see is to truncate my memofield to the maximum length (which I don't know) but this i want to avoid. It's not that a big deal because is the cast list from a movie, so an actor in the +1000 character is probably not that important. In this case it's the cast for the "World Trade Center" Movie! To sumerize my questions: Simple way to copy long memofields to excel using copyrecordset? and/or Whats the maximum fieldlength I can copyrecordset tot excel? greetings 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From nanette.j.gould at Vanderbilt.Edu Thu May 4 09:16:16 2006 From: nanette.j.gould at Vanderbilt.Edu (Gould, Nanette) Date: Thu, 4 May 2006 09:16:16 -0500 Subject: [AccessD] Building criteria with check-box choices Message-ID: <33E923DF3EB78B4D8DCD3A743427425CB1D64E@mailbe07.mc.vanderbilt.edu> I've got a problem that seems like it should be easy but I can't get it right. I have an unbound form that allows the user to choose any number of PayGroups (12 total) and the exported Excel file uses those choices as criteria to pull from the PayGroup field from tblCurrentInvoice. The PayGroup is a 3-character text field. They also choose a PayPeriodEndDate from a calendar. Those two choices constitute the only criteria for running the export. Can someone help me extract the values of the checked boxes and make those the criteria for my export? Thanks! Nanette Nanette Gould | Dept of Finance | Crystal Terrace | 3319 West End Ave, Ste. 700 | 615.322.3540 | nanette.gould at vanderbilt.edu The information transmitted with any attachments is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this email in error, please contact the sender and delete the material from your system. From reuben at gfconsultants.com Thu May 4 09:39:15 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 4 May 2006 10:39:15 -0400 Subject: [AccessD] Building criteria with check-box choices In-Reply-To: <33E923DF3EB78B4D8DCD3A743427425CB1D64E@mailbe07.mc.vanderbilt.edu> Message-ID: I assume you mean each check box specifies a pay group Can you just check each box for yes/no and write to the "where" accordingly. If chk1 = -1 then strWhere = strwhere & "or tblCurrentInvoice.PayGroup = AAA" end if if chk2 = -1 then strWhere = strwhere & "or tblCurrentInvoice.PayGroup = BBB" end if if chk3 = -1 then strWhere = strwhere & "or tblCurrentInvoice.PayGroup = CCC" end if You end up with a criteria string. Strip off the first "or " and append it to your SQL. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gould, Nanette > Sent: Thursday, May 04, 2006 10:16 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Building criteria with check-box choices > > > I've got a problem that seems like it should be easy but I can't get it > right. I have an unbound form that allows the user to choose any number > of PayGroups (12 total) and the exported Excel file uses those choices > as criteria to pull from the PayGroup field from tblCurrentInvoice. The > PayGroup is a 3-character text field. They also choose a > PayPeriodEndDate from a calendar. Those two choices constitute the only > criteria for running the export. Can someone help me extract the values > of the checked boxes and make those the criteria for my export? > > Thanks! > > > Nanette > > > > Nanette Gould | Dept of Finance | Crystal Terrace | 3319 West End Ave, > Ste. 700 | 615.322.3540 | nanette.gould at vanderbilt.edu > > > > > The information transmitted with any attachments is intended solely for > the individual or entity to which it is addressed and may contain > confidential and/or privileged material. If you have received this > email in error, please contact the sender and delete the material from > your system. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From reuben at gfconsultants.com Thu May 4 09:48:39 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 4 May 2006 10:48:39 -0400 Subject: [AccessD] Building criteria with check-box choices In-Reply-To: <33E923DF3EB78B4D8DCD3A743427425CB1D64E@mailbe07.mc.vanderbilt.edu> Message-ID: You could also loop thru the check boxes and use the tag property for the PayGroup name. I just wrote the easy to read version. I've done this several times, but can't find one right now. This may not be exactly right, but it gives you the basic idea of how to perform it in a loop. dim ctl as control dim x as integer dim strWhere as string do while x < me.controls.count if ctl.type = accheckbox then if ctl = -1 then strwhere = strwhere & "or tblCurrentInvoice.Paygroup = """ & ctl.tag & """" end if end if x=x+1 loop Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gould, Nanette > Sent: Thursday, May 04, 2006 10:16 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Building criteria with check-box choices > > > I've got a problem that seems like it should be easy but I can't get it > right. I have an unbound form that allows the user to choose any number > of PayGroups (12 total) and the exported Excel file uses those choices > as criteria to pull from the PayGroup field from tblCurrentInvoice. The > PayGroup is a 3-character text field. They also choose a > PayPeriodEndDate from a calendar. Those two choices constitute the only > criteria for running the export. Can someone help me extract the values > of the checked boxes and make those the criteria for my export? > > Thanks! > > > Nanette > > > > Nanette Gould | Dept of Finance | Crystal Terrace | 3319 West End Ave, > Ste. 700 | 615.322.3540 | nanette.gould at vanderbilt.edu > > > > > The information transmitted with any attachments is intended solely for > the individual or entity to which it is addressed and may contain > confidential and/or privileged material. If you have received this > email in error, please contact the sender and delete the material from > your system. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From nanette.j.gould at Vanderbilt.Edu Thu May 4 10:02:39 2006 From: nanette.j.gould at Vanderbilt.Edu (Gould, Nanette) Date: Thu, 4 May 2006 10:02:39 -0500 Subject: [AccessD] Building criteria with check-box choices Message-ID: <33E923DF3EB78B4D8DCD3A743427425CB1D661@mailbe07.mc.vanderbilt.edu> Thank you, Reuben. I think I understand this solution better than your other one so I'll try this one first. I really appreciate the help. Thanks, Nanette -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Thursday, May 04, 2006 9:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Building criteria with check-box choices I assume you mean each check box specifies a pay group Can you just check each box for yes/no and write to the "where" accordingly. If chk1 = -1 then strWhere = strwhere & "or tblCurrentInvoice.PayGroup = AAA" end if if chk2 = -1 then strWhere = strwhere & "or tblCurrentInvoice.PayGroup = BBB" end if if chk3 = -1 then strWhere = strwhere & "or tblCurrentInvoice.PayGroup = CCC" end if You end up with a criteria string. Strip off the first "or " and append it to your SQL. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gould, > Nanette > Sent: Thursday, May 04, 2006 10:16 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Building criteria with check-box choices > > > I've got a problem that seems like it should be easy but I can't get > it right. I have an unbound form that allows the user to choose any > number of PayGroups (12 total) and the exported Excel file uses those > choices as criteria to pull from the PayGroup field from > tblCurrentInvoice. The PayGroup is a 3-character text field. They also > choose a PayPeriodEndDate from a calendar. Those two choices > constitute the only criteria for running the export. Can someone help > me extract the values of the checked boxes and make those the criteria for my export? > > Thanks! > > > Nanette > > > > Nanette Gould | Dept of Finance | Crystal Terrace | 3319 West End Ave, > Ste. 700 | 615.322.3540 | nanette.gould at vanderbilt.edu > > > > > The information transmitted with any attachments is intended solely > for the individual or entity to which it is addressed and may contain > confidential and/or privileged material. If you have received this > email in error, please contact the sender and delete the material from > your system. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From developer at ultradnt.com Thu May 4 11:09:18 2006 From: developer at ultradnt.com (Steve Conklin) Date: Thu, 4 May 2006 12:09:18 -0400 Subject: [AccessD] OT-VB6 need a key/mouse recorder In-Reply-To: <33E923DF3EB78B4D8DCD3A743427425CB1D661@mailbe07.mc.vanderbilt.edu> Message-ID: <200605041609.k44G9Mm36151@ultradnt.com> I am debugging a VB6 app that is not mine. It is taking me nearly 15 clicks from app startup to get to the point in the program that I am working on. Any suggestions on keyboard macro utility would save me a lot of time. I googled and tried a few; none were right for the job. I am in this project pro-bono, so a freeware solution, if possible, would be prefrerred. Thanks in advance, Steve From markamatte at hotmail.com Thu May 4 11:31:18 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 04 May 2006 16:31:18 +0000 Subject: [AccessD] Is mouse Clicked? In-Reply-To: <200605041609.k44G9Mm36151@ultradnt.com> Message-ID: Hello All, Is there a way when the mouse passes over an object on a form to tell if the right or left mouse button is down? Thanks, Mark A. Matte From cfoust at infostatsystems.com Thu May 4 11:39:12 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 May 2006 09:39:12 -0700 Subject: [AccessD] Is mouse Clicked? Message-ID: What are you trying to accomplish? If the mouse button is down at the time is passes over an object, the click action already occurred elsewhere and the behavior/meaning of the mouse activity has changed. Are you trying for something like the click and drag you can do in design view to select objects? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, May 04, 2006 9:31 AM To: accessd at databaseadvisors.com Subject: [AccessD] Is mouse Clicked? Hello All, Is there a way when the mouse passes over an object on a form to tell if the right or left mouse button is down? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lembit.dbamail at t-online.de Thu May 4 11:40:13 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Thu, 4 May 2006 18:40:13 +0200 Subject: [AccessD] Access resources page on Conrad Systems Development website. References: <916187228923D311A6FE00A0CC3FAA30D3532B@ADGSERVER> Message-ID: <003701c66f99$6aed64e0$1400a8c0@v1000> that's a great list. Can you get us listed there? thanks Lembit ----- Original Message ----- From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Sent: Thursday, May 04, 2006 1:31 PM Subject: [AccessD] Access resources page on Conrad Systems Development website. >I came across this today and thought it might be useful for some. > > http://home.bendbroadband.com/conradsystems/accessjunkie/resources.html > > Bobby > > -- > 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.392 / Virus Database: 268.5.3/331 - Release Date: 03.05.2006 > > From martyconnelly at shaw.ca Thu May 4 11:48:34 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 04 May 2006 09:48:34 -0700 Subject: [AccessD] OT-VB6 need a key/mouse recorder References: <200605041609.k44G9Mm36151@ultradnt.com> Message-ID: <445A3062.90905@shaw.ca> A long SendKeys string maybe? Steve Conklin wrote: >I am debugging a VB6 app that is not mine. It is taking me nearly 15 clicks >from app startup to get to the point in the program that I am working on. >Any suggestions on keyboard macro utility would save me a lot of time. I >googled and tried a few; none were right for the job. I am in this project >pro-bono, so a freeware solution, if possible, would be prefrerred. > >Thanks in advance, >Steve > > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Thu May 4 11:55:05 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 May 2006 09:55:05 -0700 Subject: [AccessD] Access resources page on Conrad Systems Developmentwebsite. Message-ID: But how would anyone find us in all those links?? Yikes! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lembit Soobik Sent: Thursday, May 04, 2006 9:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access resources page on Conrad Systems Developmentwebsite. that's a great list. Can you get us listed there? thanks Lembit ----- Original Message ----- From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Sent: Thursday, May 04, 2006 1:31 PM Subject: [AccessD] Access resources page on Conrad Systems Development website. >I came across this today and thought it might be useful for some. > > http://home.bendbroadband.com/conradsystems/accessjunkie/resources.htm > l > > Bobby > > -- > 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.392 / Virus Database: 268.5.3/331 - Release Date: > 03.05.2006 > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From developer at ultradnt.com Thu May 4 12:06:14 2006 From: developer at ultradnt.com (Steve Conklin) Date: Thu, 4 May 2006 13:06:14 -0400 Subject: [AccessD] OT-VB6 need a key/mouse recorder In-Reply-To: <445A3062.90905@shaw.ca> Message-ID: <200605041706.k44H6Im43299@ultradnt.com> Some of her forms have objects w/o key accelerators; I'm hoping for mouse recording too ... Something external that could, after F5 in VB6, execute a script that would get me right to the point in the app I am debugging. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, May 04, 2006 12:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder A long SendKeys string maybe? Steve Conklin wrote: >I am debugging a VB6 app that is not mine. It is taking me nearly 15 >clicks from app startup to get to the point in the program that I am working on. >Any suggestions on keyboard macro utility would save me a lot of time. >I googled and tried a few; none were right for the job. I am in this >project pro-bono, so a freeware solution, if possible, would be prefrerred. > >Thanks in advance, >Steve > > > -- 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 Lambert.Heenan at AIG.com Thu May 4 12:20:14 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 4 May 2006 12:20:14 -0500 Subject: [AccessD] OT-VB6 need a key/mouse recorder Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F211EFFAF@xlivmbx21.aig.com> How about you add the missing accelerator keys. Then you'll be able to use SendKeys? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Conklin Sent: Thursday, May 04, 2006 1:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder Some of her forms have objects w/o key accelerators; I'm hoping for mouse recording too ... Something external that could, after F5 in VB6, execute a script that would get me right to the point in the app I am debugging. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, May 04, 2006 12:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder A long SendKeys string maybe? Steve Conklin wrote: >I am debugging a VB6 app that is not mine. It is taking me nearly 15 >clicks from app startup to get to the point in the program that I am working on. >Any suggestions on keyboard macro utility would save me a lot of time. >I googled and tried a few; none were right for the job. I am in this >project pro-bono, so a freeware solution, if possible, would be prefrerred. > >Thanks in advance, >Steve > > > -- 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 Thu May 4 13:11:18 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 04 May 2006 18:11:18 +0000 Subject: [AccessD] Is mouse Clicked? In-Reply-To: Message-ID: Charlotte, I'm not trying to do the drag thing. I have a number of objects on a form...and as the mouse moves over these objects...I would like to do something depending on whether the right, left, or neither button is held in the down position. Thanks, Mark A. Matte >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Is mouse Clicked? >Date: Thu, 4 May 2006 09:39:12 -0700 > >What are you trying to accomplish? If the mouse button is down at the >time is passes over an object, the click action already occurred >elsewhere and the behavior/meaning of the mouse activity has changed. >Are you trying for something like the click and drag you can do in >design view to select objects? > > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Thursday, May 04, 2006 9:31 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Is mouse Clicked? > >Hello All, > >Is there a way when the mouse passes over an object on a form to tell if >the right or left mouse button is down? > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From developer at ultradnt.com Thu May 4 14:30:50 2006 From: developer at ultradnt.com (Steve Conklin) Date: Thu, 4 May 2006 15:30:50 -0400 Subject: [AccessD] OT-VB6 need a key/mouse recorder In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F211EFFAF@xlivmbx21.aig.com> Message-ID: <200605041930.k44JUrm61786@ultradnt.com> I think the functionality I am looking for is in WinBatch. I don't know where that disk is (my 1999 archives?). Maybe they have a trial version that could get me thru this project. Thanks, Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, May 04, 2006 1:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder How about you add the missing accelerator keys. Then you'll be able to use SendKeys? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Conklin Sent: Thursday, May 04, 2006 1:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder Some of her forms have objects w/o key accelerators; I'm hoping for mouse recording too ... Something external that could, after F5 in VB6, execute a script that would get me right to the point in the app I am debugging. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, May 04, 2006 12:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder A long SendKeys string maybe? Steve Conklin wrote: >I am debugging a VB6 app that is not mine. It is taking me nearly 15 >clicks from app startup to get to the point in the program that I am working on. >Any suggestions on keyboard macro utility would save me a lot of time. >I googled and tried a few; none were right for the job. I am in this >project pro-bono, so a freeware solution, if possible, would be prefrerred. > >Thanks in advance, >Steve > > > -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mfisch4 at capex.com.ar Thu May 4 14:42:38 2006 From: mfisch4 at capex.com.ar (MF) Date: Thu, 04 May 2006 16:42:38 -0300 Subject: [AccessD] OT-VB6 need a key/mouse recorder In-Reply-To: <200605041609.k44G9Mm36151@ultradnt.com> References: <33E923DF3EB78B4D8DCD3A743427425CB1D661@mailbe07.mc.vanderbilt.edu> <200605041609.k44G9Mm36151@ultradnt.com> Message-ID: <6.2.3.4.0.20060504163953.031ecd48@indy> I can vouch for how good this is: The company I work for bought it for me and it has solved amongst others, problems of the kind you describe. It is not free. MF __________________________ At 13:09 04/05/2006, you wrote: >I am debugging a VB6 app that is not mine. It is taking me nearly 15 clicks >from app startup to get to the point in the program that I am working on. >Any suggestions on keyboard macro utility would save me a lot of time. I >googled and tried a few; none were right for the job. I am in this project >pro-bono, so a freeware solution, if possible, would be prefrerred. > >Thanks in advance, >Steve > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu May 4 14:59:15 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 May 2006 12:59:15 -0700 Subject: [AccessD] Is mouse Clicked? Message-ID: Then use the MouseMove event of the control. It has a button argument, but it can be a bit tricky since each control only reacts to the mouse entering its range, not to it leaving. You can use the MouseMove event of the form to trap some of that, but another way is to create a transparent control that covers the area, put it behind the other controls and set its MouseMove event to cancel whatever action you took. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, May 04, 2006 11:11 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Is mouse Clicked? Charlotte, I'm not trying to do the drag thing. I have a number of objects on a form...and as the mouse moves over these objects...I would like to do something depending on whether the right, left, or neither button is held in the down position. Thanks, Mark A. Matte >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Is mouse Clicked? >Date: Thu, 4 May 2006 09:39:12 -0700 > >What are you trying to accomplish? If the mouse button is down at the >time is passes over an object, the click action already occurred >elsewhere and the behavior/meaning of the mouse activity has changed. >Are you trying for something like the click and drag you can do in >design view to select objects? > > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Thursday, May 04, 2006 9:31 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Is mouse Clicked? > >Hello All, > >Is there a way when the mouse passes over an object on a form to tell >if the right or left mouse button is down? > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 May 4 15:10:48 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 04 May 2006 13:10:48 -0700 Subject: [AccessD] Is mouse Clicked? References: Message-ID: <445A5FC8.4010409@shaw.ca> You could try some variation of this code. You may have middle button too. Lots of VB methods and getkeystate on google For mouseover (no button pressed) see http://www.mvps.org/access/forms/frm0037.htm > Public Declare Function GetKeyState Lib "user32" _ > (ByVal nVirtKey As Long) As Integer > Public Const VK_LBUTTON = &H1 > Public Const VK_RBUTTON = &H2 > Public Const VK_MBUTTON = &H4 > Public Const KeyIsDown = &H8000& On a textbox object in a form Private Sub Text0_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) If (GetKeyState(VK_LBUTTON) And &H8000) Then Debug.Print "Left Button is Down" Else Debug.Print "Left Button is Up" End If Debug.Print GetKeyState(VK_LBUTTON) Debug.Print GetKeyState(VK_RBUTTON) End Sub Private Sub Text0_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Debug.Print GetKeyState(VK_LBUTTON) Debug.Print GetKeyState(VK_RBUTTON) End Sub Mark A Matte wrote: >Charlotte, > >I'm not trying to do the drag thing. I have a number of objects on a >form...and as the mouse moves over these objects...I would like to do >something depending on whether the right, left, or neither button is held in >the down position. > >Thanks, > >Mark A. Matte > > > > >>From: "Charlotte Foust" >>Reply-To: Access Developers discussion and problem >>solving >>To: "Access Developers discussion and problem >>solving" >>Subject: Re: [AccessD] Is mouse Clicked? >>Date: Thu, 4 May 2006 09:39:12 -0700 >> >>What are you trying to accomplish? If the mouse button is down at the >>time is passes over an object, the click action already occurred >>elsewhere and the behavior/meaning of the mouse activity has changed. >>Are you trying for something like the click and drag you can do in >>design view to select objects? >> >> >>Charlotte Foust >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >>Sent: Thursday, May 04, 2006 9:31 AM >>To: accessd at databaseadvisors.com >>Subject: [AccessD] Is mouse Clicked? >> >>Hello All, >> >>Is there a way when the mouse passes over an object on a form to tell if >>the right or left mouse button is down? >> >>Thanks, >> >>Mark A. Matte >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/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 developer at ultradnt.com Thu May 4 15:38:47 2006 From: developer at ultradnt.com (Steve Conklin) Date: Thu, 4 May 2006 16:38:47 -0400 Subject: [AccessD] OT-VB6 need a key/mouse recorder In-Reply-To: <6.2.3.4.0.20060504163953.031ecd48@indy> Message-ID: <200605042038.k44Kcnm69636@ultradnt.com> Thanks, MF, that prog does the job. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MF Sent: Thursday, May 04, 2006 3:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder I can vouch for how good this is: The company I work for bought it for me and it has solved amongst others, problems of the kind you describe. It is not free. MF __________________________ At 13:09 04/05/2006, you wrote: >I am debugging a VB6 app that is not mine. It is taking me nearly 15 >clicks from app startup to get to the point in the program that I am working on. >Any suggestions on keyboard macro utility would save me a lot of time. >I googled and tried a few; none were right for the job. I am in this >project pro-bono, so a freeware solution, if possible, would be prefrerred. > >Thanks in advance, >Steve > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 May 4 16:31:24 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 May 2006 07:31:24 +1000 Subject: [AccessD] Is mouse Clicked? In-Reply-To: References: Message-ID: <445AFF4C.2257.6F5DE91@stuart.lexacorp.com.pg> On 4 May 2006 at 18:11, Mark A Matte wrote: > Charlotte, > > I'm not trying to do the drag thing. I have a number of objects on a > form...and as the mouse moves over these objects...I would like to do > something depending on whether the right, left, or neither button is held in > the down position. > When you click and hold down a button, all mouse events are sunk in the object that was under the mouse at the time you clicked. So if a mouse button is already down when the mouse moves over an object, the object doesn't even know that the mouse is over it, let alone the state of the mouse buttons. You have to do all your handling in the MouseMove of the of the object that was under the mouse at the time of the click. -- Stuart From stuart at lexacorp.com.pg Thu May 4 16:34:51 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 May 2006 07:34:51 +1000 Subject: [AccessD] OT-VB6 need a key/mouse recorder In-Reply-To: <200605041609.k44G9Mm36151@ultradnt.com> References: <33E923DF3EB78B4D8DCD3A743427425CB1D661@mailbe07.mc.vanderbilt.edu> Message-ID: <445B001B.7189.6F90516@stuart.lexacorp.com.pg> On 4 May 2006 at 12:09, Steve Conklin wrote: > I am debugging a VB6 app that is not mine. It is taking me nearly 15 clicks > from app startup to get to the point in the program that I am working on. > Any suggestions on keyboard macro utility would save me a lot of time. I > googled and tried a few; none were right for the job. I am in this project > pro-bono, so a freeware solution, if possible, would be prefrerred. > AutoIt. http://www.autoitscript.com/autoit3/ Quite BASIC-like in it's syntax and you can easily write a script (or a compile application) to do this sort of thing. -- Stuart From stuart at lexacorp.com.pg Thu May 4 16:36:40 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 May 2006 07:36:40 +1000 Subject: [AccessD] Is mouse Clicked? In-Reply-To: Message-ID: <445B0088.927.6FAB094@stuart.lexacorp.com.pg> On 4 May 2006 at 12:59, Charlotte Foust wrote: > Then use the MouseMove event of the control. Doesn't fire if a mouse button is down when the the mouse moves onto the control. -- Stuart From cfoust at infostatsystems.com Thu May 4 17:01:58 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 May 2006 15:01:58 -0700 Subject: [AccessD] Is mouse Clicked? Message-ID: I forgot about that! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, May 04, 2006 2:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Is mouse Clicked? On 4 May 2006 at 12:59, Charlotte Foust wrote: > Then use the MouseMove event of the control. Doesn't fire if a mouse button is down when the the mouse moves onto the control. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From developer at ultradnt.com Thu May 4 18:06:16 2006 From: developer at ultradnt.com (Steve Conklin) Date: Thu, 4 May 2006 19:06:16 -0400 Subject: [AccessD] OT-VB6 need a key/mouse recorder In-Reply-To: <445B001B.7189.6F90516@stuart.lexacorp.com.pg> Message-ID: <200605042306.k44N6Im86419@ultradnt.com> Thank Stuart. This is cool too, I definetly use it after trial for Macro express runs out. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, May 04, 2006 5:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder On 4 May 2006 at 12:09, Steve Conklin wrote: > I am debugging a VB6 app that is not mine. It is taking me nearly 15 > clicks from app startup to get to the point in the program that I am working on. > Any suggestions on keyboard macro utility would save me a lot of time. > I googled and tried a few; none were right for the job. I am in this > project pro-bono, so a freeware solution, if possible, would be prefrerred. > AutoIt. http://www.autoitscript.com/autoit3/ Quite BASIC-like in it's syntax and you can easily write a script (or a compile application) to do this sort of thing. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri May 5 11:12:03 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 5 May 2006 12:12:03 -0400 Subject: [AccessD] Access resources page on Conrad Systems Developmentwebsite. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DA5030@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3538A@ADGSERVER> I have no affiliation with him. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lembit Soobik Sent: Thursday, May 04, 2006 12:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access resources page on Conrad Systems Developmentwebsite. that's a great list. Can you get us listed there? thanks Lembit ----- Original Message ----- From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Sent: Thursday, May 04, 2006 1:31 PM Subject: [AccessD] Access resources page on Conrad Systems Development website. >I came across this today and thought it might be useful for some. > > http://home.bendbroadband.com/conradsystems/accessjunkie/resources.html > > Bobby From Gustav at cactus.dk Fri May 5 13:51:20 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 May 2006 20:51:20 +0200 Subject: [AccessD] MySQL insert records Message-ID: Hi all When inserting records by a pass-through query from Access, I've found that reading the records off a text file using LOAD DATA INFILE '../data/test.txt' INTO TABLE tempload into an empty non-indexed table runs at about 50,000 records per second even using very modest hardware. This is way faster than any normal "Insert Into ... " I've tried. However, it's a bit clumsy first to have to write the data to a file. Any comments or suggestions? /gustav From mwp.reid at qub.ac.uk Fri May 5 14:05:14 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 5 May 2006 20:05:14 +0100 Subject: [AccessD] Enumerate SQL Servers References: Message-ID: Anyone got an example of populating a drop down list in Access with all available SQL Servers? I am building a new login procedure. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From James at fcidms.com Fri May 5 14:36:37 2006 From: James at fcidms.com (James Barash) Date: Fri, 5 May 2006 15:36:37 -0400 Subject: [AccessD] Enumerate SQL Servers In-Reply-To: Message-ID: <008401c6707b$39dab280$800101df@fci.local> Martin: Here is a example which should work in Access. You will need to reference the SQLDMO library to make it work. Dim oApp As SQLDMO.Application Dim oNames As SQLDMO.NameList Dim oName As Variant Set oApp = New SQLDMO.Application Set oNames = oApp.ListAvailableSQLServers() For Each oName In oNames cboServers.AddItem oName Next Hope it helps. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, May 05, 2006 3:05 PM To: Access Developers discussion and problem solving Subject: [AccessD] Enumerate SQL Servers Anyone got an example of populating a drop down list in Access with all available SQL Servers? I am building a new login procedure. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Fri May 5 14:47:37 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 5 May 2006 20:47:37 +0100 Subject: [AccessD] Enumerate SQL Servers References: <008401c6707b$39dab280$800101df@fci.local> Message-ID: Thanks James. Just did something similar for the actual database names which is step 2. Idea is combo 1 lists the servers, then combo 2 lists the databases on each server. Best Wishes Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of James Barash Sent: Fri 05/05/2006 20:36 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Enumerate SQL Servers Martin: Here is a example which should work in Access. You will need to reference the SQLDMO library to make it work. Dim oApp As SQLDMO.Application Dim oNames As SQLDMO.NameList Dim oName As Variant Set oApp = New SQLDMO.Application Set oNames = oApp.ListAvailableSQLServers() For Each oName In oNames cboServers.AddItem oName Next Hope it helps. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, May 05, 2006 3:05 PM To: Access Developers discussion and problem solving Subject: [AccessD] Enumerate SQL Servers Anyone got an example of populating a drop down list in Access with all available SQL Servers? I am building a new login procedure. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri May 5 19:46:03 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 05 May 2006 17:46:03 -0700 Subject: [AccessD] Enumerate SQL Servers References: <008401c6707b$39dab280$800101df@fci.local> Message-ID: <445BF1CB.5000802@shaw.ca> You might have problems with SQLDMO on SQL 2005 as it has been supplanted with SQLSMO and you might have to use WMI, I haven't checked the differences. Martin Reid wrote: >Thanks James. > >Just did something similar for the actual database names which is step 2. Idea is combo 1 lists the servers, then combo 2 lists the databases on each server. > > > >Best Wishes > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of James Barash >Sent: Fri 05/05/2006 20:36 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Enumerate SQL Servers > > > >Martin: > >Here is a example which should work in Access. You will need to reference >the SQLDMO library to make it work. > > Dim oApp As SQLDMO.Application > Dim oNames As SQLDMO.NameList > Dim oName As Variant > > Set oApp = New SQLDMO.Application > Set oNames = oApp.ListAvailableSQLServers() > For Each oName In oNames > cboServers.AddItem oName > Next > >Hope it helps. > >James Barash > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Friday, May 05, 2006 3:05 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] Enumerate SQL Servers > > >Anyone got an example of populating a drop down list in Access with all >available SQL Servers? >I am building a new login procedure. > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >-- >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.392 / Virus Database: 268.5.5/333 - Release Date: 05/05/2006 > > -- Marty Connelly Victoria, B.C. Canada From darrend at nimble.com.au Fri May 5 21:21:58 2006 From: darrend at nimble.com.au (Darren DICK) Date: Sat, 6 May 2006 12:21:58 +1000 Subject: [AccessD] A2003:Extract Images embedded in a table Message-ID: <20060506022202.BUUM17345.omta04ps.mx.bigpond.com@DENZILLAP> Hi All I Just inherited a dB There are about 120 images in this dB - 1 image for each record The Images for each record have been 'embedded' into the table as OLE Objects Is there a way I can extract each image and put 'em somewhere as bmp's or jpg's etc? Many thanks in advance Darren From stuart at lexacorp.com.pg Fri May 5 21:47:29 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 May 2006 12:47:29 +1000 Subject: [AccessD] A2003:Extract Images embedded in a table In-Reply-To: <20060506022202.BUUM17345.omta04ps.mx.bigpond.com@DENZILLAP> Message-ID: <445C9AE1.22522.D3D9287@stuart.lexacorp.com.pg> On 6 May 2006 at 12:21, Darren DICK wrote: > Hi All > I Just inherited a dB > There are about 120 images in this dB - 1 image for each record > The Images for each record have been 'embedded' into the table as OLE > Objects Is there a way I can extract each image and put 'em somewhere as > bmp's or jpg's etc? > See http://www.lebans.com/oletodisk.htm and grab: A2KExportOLEtoJPEG.zip A2K ONLY! This version saves the entire contents of a table containing OLE Object Images to disk based Jpeg files. User selectable compression rate. Version 1.5 or ExtractInventoryOLE.zip A2K or higher ONLY! This version saves the entire contents of a table containing OLE Objects to disk. Does NOT require the original application that served as the OLE server to insert the object. Supports all MS Office documents, PDF, All images inserted by MS Photo Editor, MS Paint, and Paint Shop Pro. Also supports extraction of PACKAGE class including original Filename. Contains function to produce a full Inventory of the OLE field including LINKED path and Filenames. Uses Structured Storage API's to read the actual contents of the field. Version BETA 1.56 -- Stuart From newsgrps at dalyn.co.nz Fri May 5 22:02:20 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Sat, 06 May 2006 15:02:20 +1200 Subject: [AccessD] VB.Net 2.0 Print Web Page Message-ID: <7.0.1.0.0.20060506145757.01aaddd8@dalyn.co.nz> I have a web page that I would like to add a button to that prints out the page (actually it is two pages but I only want page 1 printed). The functionality is the same as selecting File .. Print, selecting page 1 only. I have tried searching the help but all I seem to get is commands for windows forms, not web pages. From mwp.reid at qub.ac.uk Sat May 6 05:41:10 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 6 May 2006 11:41:10 +0100 Subject: [AccessD] Multi value field contents References: <008401c6707b$39dab280$800101df@fci.local> <445BF1CB.5000802@shaw.ca> Message-ID: I am sorting this myself but was wondering what you think about this and any non obvious solutionsyou may have? I have a field containing value1; value2; value3 Breaks all notions of relational design. The table is a table project associated with many developers. In the Project Task Name Field the values are the developer names associated with the projects. Is it possible in code to Break out the developer names and populate a table properly. This is Access 2007 and SQL Server 2005. The data is in SQL Server 2005 You response may be reused but full credit will be given. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Sat 06/05/2006 01:46 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Enumerate SQL Servers You might have problems with SQLDMO on SQL 2005 as it has been supplanted with SQLSMO and you might have to use WMI, I haven't checked the differences. Martin Reid wrote: >Thanks James. > >Just did something similar for the actual database names which is step 2. Idea is combo 1 lists the servers, then combo 2 lists the databases on each server. > > > >Best Wishes > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of James Barash >Sent: Fri 05/05/2006 20:36 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Enumerate SQL Servers > > > >Martin: > >Here is a example which should work in Access. You will need to reference >the SQLDMO library to make it work. > > Dim oApp As SQLDMO.Application > Dim oNames As SQLDMO.NameList > Dim oName As Variant > > Set oApp = New SQLDMO.Application > Set oNames = oApp.ListAvailableSQLServers() > For Each oName In oNames > cboServers.AddItem oName > Next > >Hope it helps. > >James Barash > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Friday, May 05, 2006 3:05 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] Enumerate SQL Servers > > >Anyone got an example of populating a drop down list in Access with all >available SQL Servers? >I am building a new login procedure. > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >-- >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.392 / Virus Database: 268.5.5/333 - Release Date: 05/05/2006 > > -- 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 stuart at lexacorp.com.pg Sat May 6 07:28:22 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 May 2006 22:28:22 +1000 Subject: [AccessD] Multi value field contents In-Reply-To: Message-ID: <445D2306.24372.F51614A@stuart.lexacorp.com.pg> On 6 May 2006 at 11:41, Martin Reid wrote: > I am sorting this myself but was wondering what you think about this and any > non obvious solutionsyou may have? > > > I have a field containing value1; value2; value3 > > Breaks all notions of relational design. > > The table is a table project associated with many developers. In the Project > Task Name Field the values are the developer names associated with the > projects. > > Is it possible in code to > > Break out the developer names and populate a table properly. > > This is Access 2007 and SQL Server 2005. The data is in SQL Server 2005 > Good old Split() once again :-) Below is just the crux, it's up to you how you grab and write the data (ADO command objects, DAO recordset, CurrentDB.Execute or whatever) ...'Fill recordset rs with Project table .... While not rs.eof strDevelopers() = split(rs!DeveloperNames) For lngLoop = 0 to UBound(strDevelopers) strSQL = "Insert into tblDevelopers (Project,Developer) Values (" & _ rs!Project & +,'" & strDevelopers(lngLoop) & "')" ......'write new record using the SQL string Next rs.movenext Wend -- Stuart From stuart at lexacorp.com.pg Sat May 6 07:35:24 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 May 2006 22:35:24 +1000 Subject: [AccessD] Multi value field contents In-Reply-To: <445D2306.24372.F51614A@stuart.lexacorp.com.pg> References: Message-ID: <445D24AC.10167.F57CEAD@stuart.lexacorp.com.pg> Correction: > > ...'Fill recordset rs with Project table > .... > While not rs.eof > strDevelopers() = split(rs!DeveloperNames,";") > For lngLoop = 0 to UBound(strDevelopers) > strSQL = "Insert into tblDevelopers (Project,Developer) Values (" & _ > rs!Project & ",'" & strDevelopers(lngLoop) & "')" > ......'write new record using the SQL string > Next > rs.movenext > Wend > -- Stuart From dwaters at usinternet.com Sat May 6 10:02:27 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 6 May 2006 10:02:27 -0500 Subject: [AccessD] New Programming Font - Consolas Message-ID: <000001c6711e$17d8a770$0200a8c0@danwaters> MS has just released a new monospaced font intended for programming environments. I've tried it and I think it's easier to look at than Courier New. http://www.microsoft.com/downloads/details.aspx?familyid=22E69AE4-7E40-4807- 8A86-B3D36FAB68D3 &displaylang=en By the way, this web page says that this is only intended for VS 2005, but the license itself says Windows OS or VS 2005. Anyway, it shows up in all font lists. Dan From mwp.reid at qub.ac.uk Sat May 6 13:31:31 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 6 May 2006 19:31:31 +0100 Subject: [AccessD] Access 2007 - QUick Survery References: <000001c6711e$17d8a770$0200a8c0@danwaters> Message-ID: Quick Survey Access 2007. What sort of information as professionals would you like to see about Access 2007? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From gustav at cactus.dk Sat May 6 14:26:34 2006 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 06 May 2006 21:26:34 +0200 Subject: [AccessD] Access 2007 - QUick Survery Message-ID: Hi Martin 1. If code for A2003 needs any change to run under A2007. 2. Pros/cons for using the new database format. 3. How to run an A2003 app in an A2007 runtime environment - without the new band menu (custom menus only). 4. Minimum OS requirement. 5. New features aimed at developers. 6. ...! /gustav >>> mwp.reid at qub.ac.uk 06-05-06 20:31 >>> Quick Survey Access 2007. What sort of information as professionals would you like to see about Access 2007? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From jwcolby at ColbyConsulting.com Sat May 6 15:08:35 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Sat, 6 May 2006 16:08:35 -0400 Subject: [AccessD] Access 2007 - QUick Survery In-Reply-To: Message-ID: <012e01c67148$dc6b6e90$657aa8c0@JWCM6805> All the bugs they fixed from versions past. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Saturday, May 06, 2006 2:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2007 - QUick Survery Quick Survey Access 2007. What sort of information as professionals would you like to see about Access 2007? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Sat May 6 15:34:24 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 6 May 2006 21:34:24 +0100 Subject: [AccessD] Access 2007 - QUick Survery References: <012e01c67148$dc6b6e90$657aa8c0@JWCM6805> Message-ID: Ha could tell you that now - Very few JC this would be interesting. Gimme a list of your top bugs and I will ask them in the beta newsgroup. Be an intersting post. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of John Colby Sent: Sat 06/05/2006 21:08 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - QUick Survery All the bugs they fixed from versions past. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Saturday, May 06, 2006 2:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2007 - QUick Survery Quick Survey Access 2007. What sort of information as professionals would you like to see about Access 2007? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- 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 Sat May 6 16:13:02 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 6 May 2006 22:13:02 +0100 Subject: [AccessD] Enumerate SQL Servers Message-ID: <007d01c67152$1c652f51$1b0e758f@ads.qub.ac.uk> Ah I need to do this with both!! Martin -----Original Message----- From: "MartyConnelly" Sent: 5/6/06 1:51:16 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Enumerate SQL Servers You might have problems with SQLDMO on SQL 2005 as it has been supplanted with SQLSMO and you might have to use WMI, I haven't checked the differences. Martin Reid wrote: >Thanks James. > >Just did something similar for the actual database names which is step 2. Idea is combo 1 lists the servers, then combo 2 lists the databases on each server. > > > >Best Wishes > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of James Barash >Sent: Fri 05/05/2006 20:36 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Enumerate SQL Servers > > > >Martin: > >Here is a example which should work in Access. You will need to reference >the SQLDMO library to make it work. > > Dim oApp As SQLDMO.Application > Dim oNames As SQLDMO.NameList > Dim oName As Variant > > Set oApp = New SQLDMO.Application > Set oNames = oApp.ListAvailableSQLServers() > For Each oName In oNames > cboServers.AddItem oName > Next > >Hope it helps. > >James Barash > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Friday, May 05, 2006 3:05 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] Enumerate SQL Servers > > >Anyone got an example of populating a drop down list in Access with all >available SQL Servers? >I am building a new login procedure. > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >-- >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.392 / Virus Database: 268.5.5/333 - Release Date: 05/05/2006 > > -- 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 May 7 04:49:48 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 07 May 2006 11:49:48 +0200 Subject: [AccessD] Access 2007 - QUick Survery Message-ID: Hi Martin The TimeSerial bug: http://databaseadvisors.com/mailman/htdig/accessd/2006-April/043624.html Probably a VBA bug, not Access specific though. /gustav >>> mwp.reid at qub.ac.uk 06-05-2006 22:34 >>> Ha could tell you that now - Very few JC this would be interesting. Gimme a list of your top bugs and I will ask them in the beta newsgroup. Be an intersting post. Martin From mwp.reid at qub.ac.uk Sun May 7 06:18:03 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 7 May 2006 12:18:03 +0100 Subject: [AccessD] FOR JC References: Message-ID: John Can you give me a list of the main bugs. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From jwcolby at ColbyConsulting.com Sun May 7 06:52:23 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Sun, 7 May 2006 07:52:23 -0400 Subject: [AccessD] FOR JC In-Reply-To: Message-ID: <01f001c671cc$b6939470$657aa8c0@JWCM6805> Martin, I have so given up on MS ever fixing the bugs that I no longer collect them. A couple that I run into regularly - Access just closes with no warning One I ran into just the other day... An ADO recordset pulls info (field names and data) from the parent query to the query specified. What you should do is ask MICROSOFT for a list of KNOWN bugs in A2K/XP and then ask them which of those bugs have been fixed. They already have a list of bugs. If they aren't even fixing the bugs on their own lists, what use is it to supply them more bugs that they will never fix? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Sunday, May 07, 2006 7:18 AM To: Access Developers discussion and problem solving Subject: [AccessD] FOR JC John Can you give me a list of the main bugs. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Sun May 7 07:31:22 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 7 May 2006 13:31:22 +0100 Subject: [AccessD] FOR JC References: <01f001c671cc$b6939470$657aa8c0@JWCM6805> Message-ID: Will do that.Might piss em of (<: Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of John Colby Sent: Sun 07/05/2006 12:52 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FOR JC Martin, I have so given up on MS ever fixing the bugs that I no longer collect them. A couple that I run into regularly - Access just closes with no warning One I ran into just the other day... An ADO recordset pulls info (field names and data) from the parent query to the query specified. What you should do is ask MICROSOFT for a list of KNOWN bugs in A2K/XP and then ask them which of those bugs have been fixed. They already have a list of bugs. If they aren't even fixing the bugs on their own lists, what use is it to supply them more bugs that they will never fix? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Sunday, May 07, 2006 7:18 AM To: Access Developers discussion and problem solving Subject: [AccessD] FOR JC John Can you give me a list of the main bugs. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Sun May 7 07:42:43 2006 From: darrend at nimble.com.au (Darren DICK) Date: Sun, 7 May 2006 22:42:43 +1000 Subject: [AccessD] A2003:Extract Images embedded in a table In-Reply-To: <445C9AE1.22522.D3D9287@stuart.lexacorp.com.pg> Message-ID: <20060507124248.MKJX26978.omta01sl.mx.bigpond.com@DENZILLAP> Brilliant - Thanks Stuart Darren ------------------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Saturday, 6 May 2006 12:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Extract Images embedded in a table On 6 May 2006 at 12:21, Darren DICK wrote: > Hi All > I Just inherited a dB > There are about 120 images in this dB - 1 image for each record > The Images for each record have been 'embedded' into the table as OLE > Objects Is there a way I can extract each image and put 'em somewhere as > bmp's or jpg's etc? > See http://www.lebans.com/oletodisk.htm and grab: A2KExportOLEtoJPEG.zip A2K ONLY! This version saves the entire contents of a table containing OLE Object Images to disk based Jpeg files. User selectable compression rate. Version 1.5 or ExtractInventoryOLE.zip A2K or higher ONLY! This version saves the entire contents of a table containing OLE Objects to disk. Does NOT require the original application that served as the OLE server to insert the object. Supports all MS Office documents, PDF, All images inserted by MS Photo Editor, MS Paint, and Paint Shop Pro. Also supports extraction of PACKAGE class including original Filename. Contains function to produce a full Inventory of the OLE field including LINKED path and Filenames. Uses Structured Storage API's to read the actual contents of the field. Version BETA 1.56 -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Sun May 7 08:03:26 2006 From: darrend at nimble.com.au (Darren DICK) Date: Sun, 7 May 2006 23:03:26 +1000 Subject: [AccessD] A2003:Reading text box Line by Line and inserting each line into a dB field Message-ID: <20060507130330.MQHZ26978.omta01sl.mx.bigpond.com@DENZILLAP> Hi all I am doing some pro-bono work for some General orphanages and AIDS orphanages in Thailand (Feel free to email me off list for any info - Shameless plug - Yes we are always looking for sponsors - another shameless plug) I have just been handed a CD of Publisher files with photos and a small 'blurb' about each child There are about 600 on this CD alone Each MS Publisher 'record' contains the photo and a short 'blurb' that looks like this DUANPEN OONBOON <-- Childs Full Name Gender: Male Born: 23rd June 1995 Grade: 2005-2006- Primary 4 Favourite Subject: English Favourite Sport: Volley Ball Favourite Food: Fried Rice Favourite Colour: Red Child Ref. # MCS-072 You can see there is 9 or so lines of text for each record. And it's all in one text field - an MS Publisher text box And I have to get each line out of that one field and send the first line to the FullName field of the dB the second line to the Gender field of the dB. The third line to the DoB field of the dB etc etc Essentially read that text box line by line and have the contents of each line 'mapped' to a field in a table Any suggestions? I'm also open to suggestions of getting the images out of publisher and onto the HardDrive in some meaningful name format If you need a copy of the Publisher file - I am more than willing to share a snip off line Many many thanks in advance Darren From mwp.reid at qub.ac.uk Sun May 7 08:02:53 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 7 May 2006 14:02:53 +0100 Subject: [AccessD] FOR JC References: <01f001c671cc$b6939470$657aa8c0@JWCM6805> Message-ID: JOhn I posted the following Can I have a list showing all Bugd that have been fixed in Access 2007. Not a list of improvments but actual bugs from previous versions that have been repaired. Will see what happens. Will not hold my breath for a response. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of John Colby Sent: Sun 07/05/2006 12:52 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FOR JC Martin, I have so given up on MS ever fixing the bugs that I no longer collect them. A couple that I run into regularly - Access just closes with no warning One I ran into just the other day... An ADO recordset pulls info (field names and data) from the parent query to the query specified. What you should do is ask MICROSOFT for a list of KNOWN bugs in A2K/XP and then ask them which of those bugs have been fixed. They already have a list of bugs. If they aren't even fixing the bugs on their own lists, what use is it to supply them more bugs that they will never fix? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Sunday, May 07, 2006 7:18 AM To: Access Developers discussion and problem solving Subject: [AccessD] FOR JC John Can you give me a list of the main bugs. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sun May 7 11:55:13 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 07 May 2006 09:55:13 -0700 Subject: [AccessD] Access 2007 - QUick Survery References: <000001c6711e$17d8a770$0200a8c0@danwaters> Message-ID: <445E2671.3010206@shaw.ca> One question I am seeing is what are the exact restrictions on running either Access 2003 or 2007 ADP's versus SQL 2005. Will they handle new complex data types? What modifications will be needed. Can you use Access 2007 ADP's for any future development. Can you run an ADP developed under 2003 and run it in 2007 against SQL 2005 by just changing the connection string, assuming you have done an SQL 2000 to 2005 conversion? Martin Reid wrote: >Quick Survey > >Access 2007. What sort of information as professionals would you like to see about Access 2007? > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Sun May 7 15:08:13 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 7 May 2006 21:08:13 +0100 Subject: [AccessD] Access 2007 - QUick Survery References: <000001c6711e$17d8a770$0200a8c0@danwaters> <445E2671.3010206@shaw.ca> Message-ID: Marty This MAY be incorrect and is written as of tonight so could change totally between now and release. They will not handle the new data types but should function as before with SQL 2005 peovided you have only those DTs supported by SQL Server 2000. At the moment there is no way to work with 2005 via ADPs. There are some issues still that appear to be outstanding. In fact I have posted to them about several including the fact that no server object appear when using 2005 but they are picked up by the wizards but dont show in teh Access container. Asd of about 5mins ago I have had no luck at all with ADPs and SQLS erver 2005 other than linking to the tables in Access as before. They are REALLY pushing linking tables as first choice over ADPS. ADPs will not receive the same focus in future development as linking to MDBs etc will I did get that much out of them Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Sun 07/05/2006 17:55 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery One question I am seeing is what are the exact restrictions on running either Access 2003 or 2007 ADP's versus SQL 2005. Will they handle new complex data types? What modifications will be needed. Can you use Access 2007 ADP's for any future development. Can you run an ADP developed under 2003 and run it in 2007 against SQL 2005 by just changing the connection string, assuming you have done an SQL 2000 to 2005 conversion? Martin Reid wrote: >Quick Survey > >Access 2007. What sort of information as professionals would you like to see about Access 2007? > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > > > -- 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 brogers at drhorton.com Sun May 7 16:39:50 2006 From: brogers at drhorton.com (Brian Rogers) Date: Sun, 7 May 2006 16:39:50 -0500 Subject: [AccessD] trouble with minicalendar on a subform A2003 Message-ID: <248A614DAEE9A2478D90BDDEEFEACD3402A114E2@dfw-exch-apps25.drhorton.com> I have been using the minicalendar with no problem until I took the form it was on and made it into a subform. Now I can't get Access to find the subform and the control I want the date to go to. Below works great when [f builder schedule] is the main form, but when I use it as a subform, it doesn't work. I will no longer need it as a main form. Private Sub Command87_Click() 'Call the MiniCalendar to set the date Call fMiniCalendar(, , "[f builder schedule]", "[ Plan Rev Date]") End Sub Please help with syntax Brian From dwaters at usinternet.com Sun May 7 19:28:03 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 7 May 2006 19:28:03 -0500 Subject: [AccessD] trouble with minicalendar on a subform A2003 In-Reply-To: <13318654.1147038503101.JavaMail.root@sniper13> Message-ID: <000001c67236$4674fbb0$0300a8c0@danwaters> Brian, You'll need to call the calendar as a subform, and yes, the syntax is different. Let's say that your Main form is called frmMain. And let's say the calendar form name is frmCalendar. And let's say the subform object your put the calendar form in is called subCalendar. And the control you're looking for on frmCalendar is txtCalendarDate. Dim txt as TextBox Set txt = Forms("frmMain").subCalendar.Form.txtCalendarDate '-- OR (if you are setting this reference in the frmMain's code) Set txt = Me.subCalendar.Form.txtCalendarDate '-- OR Set txt = subCalendar.Form.txtCalendarDate Hope this Helps! Dan -----Original Message----- I have been using the minicalendar with no problem until I took the form it was on and made it into a subform. Now I can't get Access to find the subform and the control I want the date to go to. Below works great when [f builder schedule] is the main form, but when I use it as a subform, it doesn't work. I will no longer need it as a main form. Private Sub Command87_Click() 'Call the MiniCalendar to set the date Call fMiniCalendar(, , "[f builder schedule]", "[ Plan Rev Date]") End Sub Please help with syntax Brian -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From oost at e-business2start.com Mon May 8 05:05:35 2006 From: oost at e-business2start.com (E-business2start.com - Marcel Vreuls) Date: Mon, 8 May 2006 03:05:35 -0700 Subject: [AccessD] analyse code and performance Message-ID: Hi all, Does anyone has a good hint to analyse my vba code and performance of the database. I searched on google if there are some good vba codeanalysers but could not find any. Thanks, Marcel From cyx5 at cdc.gov Mon May 8 05:32:02 2006 From: cyx5 at cdc.gov (Long, Karen S. (CDC/NIOSH/NPPTL) (CTR)) Date: Mon, 8 May 2006 06:32:02 -0400 Subject: [AccessD] .PDF Without Driver? Message-ID: I am trying to find the posting of the .pdf driver/routine that was posted a while back that was on someone's site - it did not require a .pdf program being installed. Anyone remember what that was? Thanks. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov From Gustav at cactus.dk Mon May 8 05:43:08 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 08 May 2006 12:43:08 +0200 Subject: [AccessD] .PDF Without Driver? Message-ID: Hi Karen Here I guess: http://www.lebans.com/reporttopdf.htm /gustav >>> cyx5 at cdc.gov 08-05-2006 12:32 >>> I am trying to find the posting of the .pdf driver/routine that was posted a while back that was on someone's site - it did not require a .pdf program being installed. Anyone remember what that was? Thanks. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov From JRojas at tnco-inc.com Mon May 8 08:21:28 2006 From: JRojas at tnco-inc.com (Joe Rojas) Date: Mon, 8 May 2006 09:21:28 -0400 Subject: [AccessD] New Programming Font - Consolas Message-ID: <758E92433C4F3740B67BE4DD369AF577156AF9@ex2k3.corp.tnco-inc.com> Hi Dan, When you installed this font, did you have VS2005 installed? I went to install it and it kept coming back telling me that it was interrupted before it could install. I don't have VS2005 installed. Thanks, Joe Rojas IT Manager TNCO, Inc. 781-447-6661 x7506 jrojas at tnco-inc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, May 06, 2006 11:02 AM To: AccessD Subject: [AccessD] New Programming Font - Consolas MS has just released a new monospaced font intended for programming environments. I've tried it and I think it's easier to look at than Courier New. http://www.microsoft.com/downloads/details.aspx?familyid=22E69AE4-7E40-4 807- 8A86-B3D36FAB68D3 &displaylang=en By the way, this web page says that this is only intended for VS 2005, but the license itself says Windows OS or VS 2005. Anyway, it shows up in all font lists. Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon May 8 08:29:14 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 8 May 2006 08:29:14 -0500 Subject: [AccessD] New Programming Font - Consolas In-Reply-To: <5078391.1147094663676.JavaMail.root@sniper19> Message-ID: <000201c672a3$6a18e550$0200a8c0@danwaters> Joe, I don't have VS 2005 installed - but I do have VB 2005 Express installed, which is free. Perhaps that helped. Dan -----Original Message----- Hi Dan, When you installed this font, did you have VS2005 installed? I went to install it and it kept coming back telling me that it was interrupted before it could install. I don't have VS2005 installed. Thanks, Joe Rojas -----Original Message----- MS has just released a new monospaced font intended for programming environments. I've tried it and I think it's easier to look at than Courier New. http://www.microsoft.com/downloads/details.aspx?familyid=22E69AE4-7E40-4 807- 8A86-B3D36FAB68D3 &displaylang=en By the way, this web page says that this is only intended for VS 2005, but the license itself says Windows OS or VS 2005. Anyway, it shows up in all font lists. Dan From DWUTKA at marlow.com Mon May 8 10:04:35 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 8 May 2006 10:04:35 -0500 Subject: [AccessD] trouble with minicalendar on a subform A2003 Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B1F07@main2.marlow.com> Sorry, the Minicalendar v. 3 was a little clunky, not designed to run as a subform. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Sunday, May 07, 2006 4:40 PM To: accessD at databaseadvisors.com Subject: [AccessD] trouble with minicalendar on a subform A2003 I have been using the minicalendar with no problem until I took the form it was on and made it into a subform. Now I can't get Access to find the subform and the control I want the date to go to. Below works great when [f builder schedule] is the main form, but when I use it as a subform, it doesn't work. I will no longer need it as a main form. Private Sub Command87_Click() 'Call the MiniCalendar to set the date Call fMiniCalendar(, , "[f builder schedule]", "[ Plan Rev Date]") End Sub Please help with syntax Brian -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Mon May 8 12:43:38 2006 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Mon, 8 May 2006 12:43:38 -0500 Subject: [AccessD] New Programming Font - Consolas Message-ID: Consolas ... Sounds like a Mexican Restaurant "Yes, I'll have your Binary Blob Burritos. My friend will have the Entity-Relationship Enchiladas, and we'll have a side of QueryDef Quesadillas" Mmmm.... -Ken -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Monday, May 08, 2006 8:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] New Programming Font - Consolas Joe, I don't have VS 2005 installed - but I do have VB 2005 Express installed, which is free. Perhaps that helped. Dan -----Original Message----- Hi Dan, When you installed this font, did you have VS2005 installed? I went to install it and it kept coming back telling me that it was interrupted before it could install. I don't have VS2005 installed. Thanks, Joe Rojas -----Original Message----- MS has just released a new monospaced font intended for programming environments. I've tried it and I think it's easier to look at than Courier New. http://www.microsoft.com/downloads/details.aspx?familyid=22E69AE4-7E40-4 807- 8A86-B3D36FAB68D3 &displaylang=en By the way, this web page says that this is only intended for VS 2005, but the license itself says Windows OS or VS 2005. Anyway, it shows up in all font lists. Dan From cfoust at infostatsystems.com Mon May 8 13:16:07 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 May 2006 11:16:07 -0700 Subject: [AccessD] New Programming Font - Consolas Message-ID: ROTFL Ole! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Monday, May 08, 2006 10:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] New Programming Font - Consolas Consolas ... Sounds like a Mexican Restaurant "Yes, I'll have your Binary Blob Burritos. My friend will have the Entity-Relationship Enchiladas, and we'll have a side of QueryDef Quesadillas" Mmmm.... -Ken -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Monday, May 08, 2006 8:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] New Programming Font - Consolas Joe, I don't have VS 2005 installed - but I do have VB 2005 Express installed, which is free. Perhaps that helped. Dan -----Original Message----- Hi Dan, When you installed this font, did you have VS2005 installed? I went to install it and it kept coming back telling me that it was interrupted before it could install. I don't have VS2005 installed. Thanks, Joe Rojas -----Original Message----- MS has just released a new monospaced font intended for programming environments. I've tried it and I think it's easier to look at than Courier New. http://www.microsoft.com/downloads/details.aspx?familyid=22E69AE4-7E40-4 807- 8A86-B3D36FAB68D3 &displaylang=en By the way, this web page says that this is only intended for VS 2005, but the license itself says Windows OS or VS 2005. Anyway, it shows up in all font lists. Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon May 8 13:49:54 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 8 May 2006 13:49:54 -0500 Subject: [AccessD] New Programming Font - Consolas In-Reply-To: <1995298.1147110675092.JavaMail.root@sniper39> Message-ID: <000001c672d0$32d5bc30$0200a8c0@danwaters> You know . . . I can see this font easier - And - I can spot a burrito a mile away!! Must be something to it! Dan -----Original Message----- Consolas ... Sounds like a Mexican Restaurant "Yes, I'll have your Binary Blob Burritos. My friend will have the Entity-Relationship Enchiladas, and we'll have a side of QueryDef Quesadillas" Mmmm.... -Ken -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Monday, May 08, 2006 8:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] New Programming Font - Consolas Joe, I don't have VS 2005 installed - but I do have VB 2005 Express installed, which is free. Perhaps that helped. Dan -----Original Message----- Hi Dan, When you installed this font, did you have VS2005 installed? I went to install it and it kept coming back telling me that it was interrupted before it could install. I don't have VS2005 installed. Thanks, Joe Rojas -----Original Message----- MS has just released a new monospaced font intended for programming environments. I've tried it and I think it's easier to look at than Courier New. http://www.microsoft.com/downloads/details.aspx?familyid=22E69AE4-7E40-4 807- 8A86-B3D36FAB68D3 &displaylang=en By the way, this web page says that this is only intended for VS 2005, but the license itself says Windows OS or VS 2005. Anyway, it shows up in all font lists. Dan From nanette.j.gould at Vanderbilt.Edu Mon May 8 14:03:43 2006 From: nanette.j.gould at Vanderbilt.Edu (Gould, Nanette) Date: Mon, 8 May 2006 14:03:43 -0500 Subject: [AccessD] Access 2007 - QUick Survery Message-ID: <33E923DF3EB78B4D8DCD3A743427425CB1D6E6@mailbe07.mc.vanderbilt.edu> Something that should be so easy! The ability to align form and report objects Middle and Center, just like you can in every other Office program! Thanks, Nanette -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Saturday, May 06, 2006 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2007 - QUick Survery Quick Survey Access 2007. What sort of information as professionals would you like to see about Access 2007? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From cfoust at infostatsystems.com Mon May 8 16:12:14 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 May 2006 14:12:14 -0700 Subject: [AccessD] Access 2007 - QUick Survery Message-ID: I'd settle for the kind of alignment you get in VS 2005, where little lines appear to help you align a control with others already there. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gould, Nanette Sent: Monday, May 08, 2006 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery Something that should be so easy! The ability to align form and report objects Middle and Center, just like you can in every other Office program! Thanks, Nanette -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Saturday, May 06, 2006 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2007 - QUick Survery Quick Survey Access 2007. What sort of information as professionals would you like to see about Access 2007? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kp at sdsonline.net Mon May 8 18:20:42 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 9 May 2006 09:20:42 +1000 Subject: [AccessD] Access 2007 - QUick Survery References: <33E923DF3EB78B4D8DCD3A743427425CB1D6E6@mailbe07.mc.vanderbilt.edu> Message-ID: <006501c672f6$07ab0e90$6601a8c0@office> Martin - I don't know whether you are also asking for the 'wish list' - are you? If so then I would ask for a real global find/replace of anything which would do the same job as SpeedFerret or Fisher Find / replace without leaving Access. I'd also like to see a much better facility to create runtimes, to get out of the Sage / Wise situation. Maybe they should buy them out? In terms of information about it, I would basically like to see a summary of the overall differences, benefits, code changes to allow for. And lastly, a low price for software developers :) Kath -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Saturday, May 06, 2006 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2007 - QUick Survery Quick Survey Access 2007. What sort of information as professionals would you like to see about Access 2007? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From brogers at drhorton.com Mon May 8 19:38:31 2006 From: brogers at drhorton.com (Brian Rogers) Date: Mon, 8 May 2006 19:38:31 -0500 Subject: [AccessD] trouble with minicalendar on a subform A2003 Message-ID: <248A614DAEE9A2478D90BDDEEFEACD340154B652@dfw-exch-apps25.drhorton.com> Thanks for the reply. Is there a later version? Brian ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of DWUTKA at marlow.com Sent: Mon 5/8/2006 10:04 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Sorry, the Minicalendar v. 3 was a little clunky, not designed to run as a subform. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Sunday, May 07, 2006 4:40 PM To: accessD at databaseadvisors.com Subject: [AccessD] trouble with minicalendar on a subform A2003 I have been using the minicalendar with no problem until I took the form it was on and made it into a subform. Now I can't get Access to find the subform and the control I want the date to go to. Below works great when [f builder schedule] is the main form, but when I use it as a subform, it doesn't work. I will no longer need it as a main form. Private Sub Command87_Click() 'Call the MiniCalendar to set the date Call fMiniCalendar(, , "[f builder schedule]", "[ Plan Rev Date]") End Sub Please help with syntax Brian -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Tue May 9 01:07:48 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 9 May 2006 16:07:48 +1000 Subject: [AccessD] analyse code and performance Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116A5B0@ddi-01.DDI.local> Hi Marcel, I seem to recall FMS had some products which analyse mdbs. Cannot recommend anything though. cheers Michael M DDI Solutions Pty Ltd www.ddisolutions.com.au -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of E-business2start.com - Marcel Vreuls Sent: Monday, 8 May 2006 8:06 PM To: accessd at databaseadvisors.com Subject: [AccessD] analyse code and performance Hi all, Does anyone has a good hint to analyse my vba code and performance of the database. I searched on google if there are some good vba codeanalysers but could not find any. Thanks, Marcel -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Tue May 9 01:19:14 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 9 May 2006 16:19:14 +1000 Subject: [AccessD] VB.Net 2.0 Print Web Page Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116A5B1@ddi-01.DDI.local> G'day, I doubt you will find anything that doesn't use a 3rd party tool, activeX eg. Printing is the domain of the browser not the web page. What a lot of sites do is have a print friendly version of the page. You still have to use the browser print commands though. HTH Michael M www.ddisolutions.com.au -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Saturday, 6 May 2006 1:02 PM To: accessd at databaseadvisors.com Subject: [AccessD] VB.Net 2.0 Print Web Page I have a web page that I would like to add a button to that prints out the page (actually it is two pages but I only want page 1 printed). The functionality is the same as selecting File .. Print, selecting page 1 only. I have tried searching the help but all I seem to get is commands for windows forms, not web pages. -- 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 May 9 03:30:34 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 09 May 2006 20:30:34 +1200 Subject: [AccessD] VB.Net 2.0 Print Web Page In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D0116A5B1@ddi-01.DDI.local> References: <59A61174B1F5B54B97FD4ADDE71E7D0116A5B1@ddi-01.DDI.local> Message-ID: <7.0.1.0.0.20060509203023.01a9e520@dalyn.co.nz> Thanks. At 9/05/2006, you wrote: >G'day, > >I doubt you will find anything that doesn't use a 3rd party tool, >activeX eg. >Printing is the domain of the browser not the web page. >What a lot of sites do is have a print friendly version of the page. >You still have >to use the browser print commands though. > >HTH > > >Michael M >www.ddisolutions.com.au > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Saturday, 6 May 2006 1:02 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] VB.Net 2.0 Print Web Page > >I have a web page that I would like to add a button to that prints out >the page (actually it is two pages but I only want page 1 printed). The >functionality is the same as selecting File .. Print, selecting page 1 >only. > >I have tried searching the help but all I seem to get is commands for >windows forms, not web pages. > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Tue May 9 06:37:51 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 9 May 2006 07:37:51 -0400 Subject: [AccessD] Timer class suggestions... Message-ID: <916187228923D311A6FE00A0CC3FAA30D3539D@ADGSERVER> Hey, I had a need to time some code the other day and decided to come up with a somewhat generic class to help perform this task. I'd like to ask for your opinion/suggestions about what I came up with. This is what I came up with. First, since all users are on Win XP, I am using QueryPerformanceCounter and QueryPerformanceFrequency to calculate timings. There are three classes: clsTimer, clsTimerData, and clsTimerInstance clsTimer is the main class. It contains 2 collections that hold instances of the other two classes and a timestamp of the time that the class was instantiated (called RunTS). clsTimerInstance holds data about a timer that has been started (ID, start value of timer, and a time stamp). clsTimerData holds the complete timer data record for a given timer event (ID, start value of timer, end value of timer, difference between end and start, elapsed time in seconds, time stamp of timer, and RunTS). This class holds the completed timer data until the data is persisted. To use the timers, an instance of clsTimer is instantiated. For each timer that is to be started, make a call to the clsTimer.StartTimer with an ID (long value) that is used as the key for the timer instance. This function returns an index to that timer that is used to stop the timer. This function creates an instance of the clsTimerInstance class that contains the starting values of the timer and adds it to the Instance collection. When a given timer is stopped, the ending timer value is obtained. The starting values are located in the Instance collection. A new clsTimerData instance is created and populated with the timer data and added to the TimerData collection. The clsTimerInstance collection item is then deleted. The data can be persisted to a table with a call to clsTimer.PersistData. Right now, this function simply iterates the TimerData collection and dumps it to a table. I plan on being able to pass this function a value so that this function can also call two other functions to dump to a formatted flat file and a CSV file. To use the timers is a simple as: Dim cTimer as new clsTimer ... x=ctimer.StartTimer(1) 'some code cTimer.StopTimer 1 x=ctimer.StartTimer(1) for i=0 to 100000 y=cTimer.StartTimer(2) 'we can nest them 'some more code cTimer.StopTimer 2 next i ctimer.StopTimer 1 ctimer.PersistData set ctimer=nothing The output would look something like (from a different test run): TimerID StartVal EndVal Elapsed Seconds TimeStamp RunTS 1 215002386.2371 215002420.5905 34.3534 0.096 5/9/2006 7:32:13 AM 5/9/2006 7:32:13 AM 2 ... 2 ... 2 ... How does this sound to you all? Thanks for even making it this far! Thanks, Bobby From Gustav at cactus.dk Tue May 9 09:24:05 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 09 May 2006 16:24:05 +0200 Subject: [AccessD] Timer class suggestions... Message-ID: Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav >>> bheid at appdevgrp.com 09-05-2006 13:37:51 >>> Hey, I had a need to time some code the other day and decided to come up with a somewhat generic class to help perform this task. I'd like to ask for your opinion/suggestions about what I came up with. This is what I came up with. First, since all users are on Win XP, I am using QueryPerformanceCounter and QueryPerformanceFrequency to calculate timings. There are three classes: clsTimer, clsTimerData, and clsTimerInstance clsTimer is the main class. It contains 2 collections that hold instances of the other two classes and a timestamp of the time that the class was instantiated (called RunTS). clsTimerInstance holds data about a timer that has been started (ID, start value of timer, and a time stamp). clsTimerData holds the complete timer data record for a given timer event (ID, start value of timer, end value of timer, difference between end and start, elapsed time in seconds, time stamp of timer, and RunTS). This class holds the completed timer data until the data is persisted. To use the timers, an instance of clsTimer is instantiated. For each timer that is to be started, make a call to the clsTimer.StartTimer with an ID (long value) that is used as the key for the timer instance. This function returns an index to that timer that is used to stop the timer. This function creates an instance of the clsTimerInstance class that contains the starting values of the timer and adds it to the Instance collection. When a given timer is stopped, the ending timer value is obtained. The starting values are located in the Instance collection. A new clsTimerData instance is created and populated with the timer data and added to the TimerData collection. The clsTimerInstance collection item is then deleted. The data can be persisted to a table with a call to clsTimer.PersistData. Right now, this function simply iterates the TimerData collection and dumps it to a table. I plan on being able to pass this function a value so that this function can also call two other functions to dump to a formatted flat file and a CSV file. To use the timers is a simple as: Dim cTimer as new clsTimer ... x=ctimer.StartTimer(1) 'some code cTimer.StopTimer 1 x=ctimer.StartTimer(1) for i=0 to 100000 y=cTimer.StartTimer(2) 'we can nest them 'some more code cTimer.StopTimer 2 next i ctimer.StopTimer 1 ctimer.PersistData set ctimer=nothing The output would look something like (from a different test run): TimerID StartVal EndVal Elapsed Seconds TimeStamp RunTS 1 215002386.2371 215002420.5905 34.3534 0.096 5/9/2006 7:32:13 AM 5/9/2006 7:32:13 AM 2 ... 2 ... 2 ... How does this sound to you all? Thanks for even making it this far! Thanks, Bobby From Lambert.Heenan at AIG.com Tue May 9 09:43:29 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 9 May 2006 09:43:29 -0500 Subject: [AccessD] Timer class suggestions... Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F21759D1B@xlivmbx21.aig.com> Hello Gustav, As the kBase article says that GetTickCount and TimeGetTime have ~10ms resolution I wonder if there is anything to be gained in using them rather that the built-in function Timer, which also has ~10ms resolution? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 10:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav >>> bheid at appdevgrp.com 09-05-2006 13:37:51 >>> Hey, I had a need to time some code the other day and decided to come up with a somewhat generic class to help perform this task. I'd like to ask for your opinion/suggestions about what I came up with. This is what I came up with. First, since all users are on Win XP, I am using QueryPerformanceCounter and QueryPerformanceFrequency to calculate timings. There are three classes: clsTimer, clsTimerData, and clsTimerInstance clsTimer is the main class. It contains 2 collections that hold instances of the other two classes and a timestamp of the time that the class was instantiated (called RunTS). clsTimerInstance holds data about a timer that has been started (ID, start value of timer, and a time stamp). clsTimerData holds the complete timer data record for a given timer event (ID, start value of timer, end value of timer, difference between end and start, elapsed time in seconds, time stamp of timer, and RunTS). This class holds the completed timer data until the data is persisted. To use the timers, an instance of clsTimer is instantiated. For each timer that is to be started, make a call to the clsTimer.StartTimer with an ID (long value) that is used as the key for the timer instance. This function returns an index to that timer that is used to stop the timer. This function creates an instance of the clsTimerInstance class that contains the starting values of the timer and adds it to the Instance collection. When a given timer is stopped, the ending timer value is obtained. The starting values are located in the Instance collection. A new clsTimerData instance is created and populated with the timer data and added to the TimerData collection. The clsTimerInstance collection item is then deleted. The data can be persisted to a table with a call to clsTimer.PersistData. Right now, this function simply iterates the TimerData collection and dumps it to a table. I plan on being able to pass this function a value so that this function can also call two other functions to dump to a formatted flat file and a CSV file. To use the timers is a simple as: Dim cTimer as new clsTimer ... x=ctimer.StartTimer(1) 'some code cTimer.StopTimer 1 x=ctimer.StartTimer(1) for i=0 to 100000 y=cTimer.StartTimer(2) 'we can nest them 'some more code cTimer.StopTimer 2 next i ctimer.StopTimer 1 ctimer.PersistData set ctimer=nothing The output would look something like (from a different test run): TimerID StartVal EndVal Elapsed Seconds TimeStamp RunTS 1 215002386.2371 215002420.5905 34.3534 0.096 5/9/2006 7:32:13 AM 5/9/2006 7:32:13 AM 2 ... 2 ... 2 ... How does this sound to you all? Thanks for even making it this far! Thanks, Bobby -- 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 May 9 09:52:46 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 9 May 2006 09:52:46 -0500 Subject: [AccessD] Timer class suggestions... Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F21759D29@xlivmbx21.aig.com> To answer my own question... I added the following block of code to the article's test code... ' ' Time timer ' Dim sCount1 As Single, sCount2 As Single Debug.Print Loops = 0 sCount1 = Timer() Do sCount2 = Timer() Loops = Loops + 1 Loop Until sCount1 <> sCount2 Debug.Print "timer minimum resolution: "; _ (sCount2 - sCount1); "ms" Debug.Print "Took"; Loops; "loops" ... And here is the result... Test_Timers Start Value: 2196010.9816 End Value: 2196010.9826 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2.79365114840015E-06 seconds GetTickCount minimum resolution: 10 ms Took 52952 loops timeGetTime minimum resolution: 1 ms Took 4795 loops timer minimum resolution: 0.0078125 ms Took 11716 loops So Timer has about the same resolution as timeGetTime, but it runs about twice as fast. Lambert -----Original Message----- From: Heenan, Lambert Sent: Tuesday, May 09, 2006 10:43 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Timer class suggestions... Hello Gustav, As the kBase article says that GetTickCount and TimeGetTime have ~10ms resolution I wonder if there is anything to be gained in using them rather that the built-in function Timer, which also has ~10ms resolution? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 10:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav >>> bheid at appdevgrp.com 09-05-2006 13:37:51 >>> Hey, I had a need to time some code the other day and decided to come up with a somewhat generic class to help perform this task. I'd like to ask for your opinion/suggestions about what I came up with. This is what I came up with. First, since all users are on Win XP, I am using QueryPerformanceCounter and QueryPerformanceFrequency to calculate timings. There are three classes: clsTimer, clsTimerData, and clsTimerInstance clsTimer is the main class. It contains 2 collections that hold instances of the other two classes and a timestamp of the time that the class was instantiated (called RunTS). clsTimerInstance holds data about a timer that has been started (ID, start value of timer, and a time stamp). clsTimerData holds the complete timer data record for a given timer event (ID, start value of timer, end value of timer, difference between end and start, elapsed time in seconds, time stamp of timer, and RunTS). This class holds the completed timer data until the data is persisted. To use the timers, an instance of clsTimer is instantiated. For each timer that is to be started, make a call to the clsTimer.StartTimer with an ID (long value) that is used as the key for the timer instance. This function returns an index to that timer that is used to stop the timer. This function creates an instance of the clsTimerInstance class that contains the starting values of the timer and adds it to the Instance collection. When a given timer is stopped, the ending timer value is obtained. The starting values are located in the Instance collection. A new clsTimerData instance is created and populated with the timer data and added to the TimerData collection. The clsTimerInstance collection item is then deleted. The data can be persisted to a table with a call to clsTimer.PersistData. Right now, this function simply iterates the TimerData collection and dumps it to a table. I plan on being able to pass this function a value so that this function can also call two other functions to dump to a formatted flat file and a CSV file. To use the timers is a simple as: Dim cTimer as new clsTimer ... x=ctimer.StartTimer(1) 'some code cTimer.StopTimer 1 x=ctimer.StartTimer(1) for i=0 to 100000 y=cTimer.StartTimer(2) 'we can nest them 'some more code cTimer.StopTimer 2 next i ctimer.StopTimer 1 ctimer.PersistData set ctimer=nothing The output would look something like (from a different test run): TimerID StartVal EndVal Elapsed Seconds TimeStamp RunTS 1 215002386.2371 215002420.5905 34.3534 0.096 5/9/2006 7:32:13 AM 5/9/2006 7:32:13 AM 2 ... 2 ... 2 ... How does this sound to you all? Thanks for even making it this far! Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Tue May 9 09:57:39 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 9 May 2006 10:57:39 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: Timer class suggestions... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DA555F@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353A4@ADGSERVER> Hi Gustav, So you are saying to use the TimeGetTime function? One thing to note is that the resolution on the QueryperformanceCounter is dependant on the user's system. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 10:24 AM To: accessd at databaseadvisors.com Subject: [SPAM SUSPECT] Re: [AccessD] Timer class suggestions... Importance: Low Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav >>> bheid at appdevgrp.com 09-05-2006 13:37:51 >>> Hey, I had a need to time some code the other day and decided to come up with a somewhat generic class to help perform this task. I'd like to ask for your opinion/suggestions about what I came up with. This is what I came up with. First, since all users are on Win XP, I am using QueryPerformanceCounter and QueryPerformanceFrequency to calculate timings. There are three classes: clsTimer, clsTimerData, and clsTimerInstance clsTimer is the main class. It contains 2 collections that hold instances of the other two classes and a timestamp of the time that the class was instantiated (called RunTS). clsTimerInstance holds data about a timer that has been started (ID, start value of timer, and a time stamp). clsTimerData holds the complete timer data record for a given timer event (ID, start value of timer, end value of timer, difference between end and start, elapsed time in seconds, time stamp of timer, and RunTS). This class holds the completed timer data until the data is persisted. To use the timers, an instance of clsTimer is instantiated. For each timer that is to be started, make a call to the clsTimer.StartTimer with an ID (long value) that is used as the key for the timer instance. This function returns an index to that timer that is used to stop the timer. This function creates an instance of the clsTimerInstance class that contains the starting values of the timer and adds it to the Instance collection. When a given timer is stopped, the ending timer value is obtained. The starting values are located in the Instance collection. A new clsTimerData instance is created and populated with the timer data and added to the TimerData collection. The clsTimerInstance collection item is then deleted. The data can be persisted to a table with a call to clsTimer.PersistData. Right now, this function simply iterates the TimerData collection and dumps it to a table. I plan on being able to pass this function a value so that this function can also call two other functions to dump to a formatted flat file and a CSV file. To use the timers is a simple as: Dim cTimer as new clsTimer ... x=ctimer.StartTimer(1) 'some code cTimer.StopTimer 1 x=ctimer.StartTimer(1) for i=0 to 100000 y=cTimer.StartTimer(2) 'we can nest them 'some more code cTimer.StopTimer 2 next i ctimer.StopTimer 1 ctimer.PersistData set ctimer=nothing The output would look something like (from a different test run): TimerID StartVal EndVal Elapsed Seconds TimeStamp RunTS 1 215002386.2371 215002420.5905 34.3534 0.096 5/9/2006 7:32:13 AM 5/9/2006 7:32:13 AM 2 ... 2 ... 2 ... How does this sound to you all? Thanks for even making it this far! Thanks, Bobby -- From bheid at appdevgrp.com Tue May 9 10:08:42 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 9 May 2006 11:08:42 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: Timer class suggestions... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DA556B@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353A5@ADGSERVER> Lambert, The whole idea was to be able to time sections of code (or any elapsed event). So having an active timer is just a waste of resources in that it causes an event to be fired at x intervals. Sorry if I misinterpreted your email. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, May 09, 2006 10:43 AM To: 'Access Developers discussion and problem solving' Subject: [SPAM SUSPECT] Re: [AccessD] Timer class suggestions... Importance: Low Hello Gustav, As the kBase article says that GetTickCount and TimeGetTime have ~10ms resolution I wonder if there is anything to be gained in using them rather that the built-in function Timer, which also has ~10ms resolution? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 10:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav From bheid at appdevgrp.com Tue May 9 10:17:16 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 9 May 2006 11:17:16 -0400 Subject: [AccessD] Timer class suggestions... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DA5573@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353A7@ADGSERVER> What timer are you referring to in the article? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, May 09, 2006 10:53 AM To: Heenan, Lambert; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer class suggestions... To answer my own question... I added the following block of code to the article's test code... ' ' Time timer ' Dim sCount1 As Single, sCount2 As Single Debug.Print Loops = 0 sCount1 = Timer() Do sCount2 = Timer() Loops = Loops + 1 Loop Until sCount1 <> sCount2 Debug.Print "timer minimum resolution: "; _ (sCount2 - sCount1); "ms" Debug.Print "Took"; Loops; "loops" ... And here is the result... Test_Timers Start Value: 2196010.9816 End Value: 2196010.9826 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2.79365114840015E-06 seconds GetTickCount minimum resolution: 10 ms Took 52952 loops timeGetTime minimum resolution: 1 ms Took 4795 loops timer minimum resolution: 0.0078125 ms Took 11716 loops So Timer has about the same resolution as timeGetTime, but it runs about twice as fast. Lambert -----Original Message----- From: Heenan, Lambert Sent: Tuesday, May 09, 2006 10:43 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Timer class suggestions... Hello Gustav, As the kBase article says that GetTickCount and TimeGetTime have ~10ms resolution I wonder if there is anything to be gained in using them rather that the built-in function Timer, which also has ~10ms resolution? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 10:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav From markamatte at hotmail.com Tue May 9 10:31:36 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 09 May 2006 15:31:36 +0000 Subject: [AccessD] GoTo a record on form In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D353A5@ADGSERVER> Message-ID: Hello All, In A2K I have a form(continuous)...I want to type in text box and have the form goto the first record that matches what I typed...but I don't want to filter...just goto??? Thanks, Mark A. Matte From DWUTKA at marlow.com Tue May 9 10:35:02 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 9 May 2006 10:35:02 -0500 Subject: [AccessD] trouble with minicalendar on a subform A2003 Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDB18@main2.marlow.com> Yes, but it's not finished yet. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Monday, May 08, 2006 7:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Thanks for the reply. Is there a later version? Brian ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of DWUTKA at marlow.com Sent: Mon 5/8/2006 10:04 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Sorry, the Minicalendar v. 3 was a little clunky, not designed to run as a subform. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Sunday, May 07, 2006 4:40 PM To: accessD at databaseadvisors.com Subject: [AccessD] trouble with minicalendar on a subform A2003 I have been using the minicalendar with no problem until I took the form it was on and made it into a subform. Now I can't get Access to find the subform and the control I want the date to go to. Below works great when [f builder schedule] is the main form, but when I use it as a subform, it doesn't work. I will no longer need it as a main form. Private Sub Command87_Click() 'Call the MiniCalendar to set the date Call fMiniCalendar(, , "[f builder schedule]", "[ Plan Rev Date]") End Sub Please help with syntax Brian -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 May 9 10:46:40 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 9 May 2006 10:46:40 -0500 Subject: [AccessD] trouble with minicalendar on a subform A2003 Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC1C@corp-es01.fleetpride.com> Since when did you start working for Microsoft? Jim -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, May 09, 2006 10:35 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Yes, but it's not finished yet. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Monday, May 08, 2006 7:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Thanks for the reply. Is there a later version? Brian ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of DWUTKA at marlow.com Sent: Mon 5/8/2006 10:04 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Sorry, the Minicalendar v. 3 was a little clunky, not designed to run as a subform. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Sunday, May 07, 2006 4:40 PM To: accessD at databaseadvisors.com Subject: [AccessD] trouble with minicalendar on a subform A2003 I have been using the minicalendar with no problem until I took the form it was on and made it into a subform. Now I can't get Access to find the subform and the control I want the date to go to. Below works great when [f builder schedule] is the main form, but when I use it as a subform, it doesn't work. I will no longer need it as a main form. Private Sub Command87_Click() 'Call the MiniCalendar to set the date Call fMiniCalendar(, , "[f builder schedule]", "[ Plan Rev Date]") End Sub Please help with syntax Brian -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Gustav at cactus.dk Tue May 9 10:53:55 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 09 May 2006 17:53:55 +0200 Subject: [AccessD] Timer class suggestions... Message-ID: Hi Lambert First, as I wrote, that article is - ehh - not precise. Second, Timer does not have a resolution of 1/100 s, it just looks like that: http://databaseadvisors.com/pipermail/accessd/2005-February/031736.html /gustav >>> Lambert.Heenan at AIG.com 09-05-2006 16:43:29 >>> Hello Gustav, As the kBase article says that GetTickCount and TimeGetTime have ~10ms resolution I wonder if there is anything to be gained in using them rather that the built-in function Timer, which also has ~10ms resolution? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 10:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav >>> bheid at appdevgrp.com 09-05-2006 13:37:51 >>> Hey, I had a need to time some code the other day and decided to come up with a somewhat generic class to help perform this task. I'd like to ask for your opinion/suggestions about what I came up with. This is what I came up with. First, since all users are on Win XP, I am using QueryPerformanceCounter and QueryPerformanceFrequency to calculate timings. There are three classes: clsTimer, clsTimerData, and clsTimerInstance clsTimer is the main class. It contains 2 collections that hold instances of the other two classes and a timestamp of the time that the class was instantiated (called RunTS). clsTimerInstance holds data about a timer that has been started (ID, start value of timer, and a time stamp). clsTimerData holds the complete timer data record for a given timer event (ID, start value of timer, end value of timer, difference between end and start, elapsed time in seconds, time stamp of timer, and RunTS). This class holds the completed timer data until the data is persisted. To use the timers, an instance of clsTimer is instantiated. For each timer that is to be started, make a call to the clsTimer.StartTimer with an ID (long value) that is used as the key for the timer instance. This function returns an index to that timer that is used to stop the timer. This function creates an instance of the clsTimerInstance class that contains the starting values of the timer and adds it to the Instance collection. When a given timer is stopped, the ending timer value is obtained. The starting values are located in the Instance collection. A new clsTimerData instance is created and populated with the timer data and added to the TimerData collection. The clsTimerInstance collection item is then deleted. The data can be persisted to a table with a call to clsTimer.PersistData. Right now, this function simply iterates the TimerData collection and dumps it to a table. I plan on being able to pass this function a value so that this function can also call two other functions to dump to a formatted flat file and a CSV file. To use the timers is a simple as: Dim cTimer as new clsTimer ... x=ctimer.StartTimer(1) 'some code cTimer.StopTimer 1 x=ctimer.StartTimer(1) for i=0 to 100000 y=cTimer.StartTimer(2) 'we can nest them 'some more code cTimer.StopTimer 2 next i ctimer.StopTimer 1 ctimer.PersistData set ctimer=nothing The output would look something like (from a different test run): TimerID StartVal EndVal Elapsed Seconds TimeStamp RunTS 1 215002386.2371 215002420.5905 34.3534 0.096 5/9/2006 7:32:13 AM 5/9/2006 7:32:13 AM 2 ... 2 ... 2 ... How does this sound to you all? Thanks for even making it this far! Thanks, Bobby From Gustav at cactus.dk Tue May 9 10:56:51 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 09 May 2006 17:56:51 +0200 Subject: [AccessD] Timer class suggestions... Message-ID: Hi Bobby Yes, why not? It's very simple to use and can be set to the highest resolution (1 ms) should you need it. /gustav >>> bheid at appdevgrp.com 09-05-2006 16:57:39 >>> Hi Gustav, So you are saying to use the TimeGetTime function? .. From DWUTKA at marlow.com Tue May 9 10:57:41 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 9 May 2006 10:57:41 -0500 Subject: [AccessD] trouble with minicalendar on a subform A2003 Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDB1C@main2.marlow.com> LOL. Drew -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Tuesday, May 09, 2006 10:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Since when did you start working for Microsoft? Jim -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, May 09, 2006 10:35 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Yes, but it's not finished yet. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Monday, May 08, 2006 7:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Thanks for the reply. Is there a later version? Brian ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of DWUTKA at marlow.com Sent: Mon 5/8/2006 10:04 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Sorry, the Minicalendar v. 3 was a little clunky, not designed to run as a subform. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Sunday, May 07, 2006 4:40 PM To: accessD at databaseadvisors.com Subject: [AccessD] trouble with minicalendar on a subform A2003 I have been using the minicalendar with no problem until I took the form it was on and made it into a subform. Now I can't get Access to find the subform and the control I want the date to go to. Below works great when [f builder schedule] is the main form, but when I use it as a subform, it doesn't work. I will no longer need it as a main form. Private Sub Command87_Click() 'Call the MiniCalendar to set the date Call fMiniCalendar(, , "[f builder schedule]", "[ Plan Rev Date]") End Sub Please help with syntax Brian -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Lambert.Heenan at AIG.com Tue May 9 11:23:24 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 9 May 2006 11:23:24 -0500 Subject: [AccessD] Timer class suggestions... Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F21759DBD@xlivmbx21.aig.com> Ah. So it's really giving a resolution that's similar to the old, old (way back in the mists of time, MS DOS 1.x) PC clock resolution of about 20 ms (IIRC). :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 11:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Lambert First, as I wrote, that article is - ehh - not precise. Second, Timer does not have a resolution of 1/100 s, it just looks like that: http://databaseadvisors.com/pipermail/accessd/2005-February/031736.html /gustav >>> Lambert.Heenan at AIG.com 09-05-2006 16:43:29 >>> Hello Gustav, As the kBase article says that GetTickCount and TimeGetTime have ~10ms resolution I wonder if there is anything to be gained in using them rather that the built-in function Timer, which also has ~10ms resolution? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 10:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav >>> bheid at appdevgrp.com 09-05-2006 13:37:51 >>> Hey, I had a need to time some code the other day and decided to come up with a somewhat generic class to help perform this task. I'd like to ask for your opinion/suggestions about what I came up with. This is what I came up with. First, since all users are on Win XP, I am using QueryPerformanceCounter and QueryPerformanceFrequency to calculate timings. There are three classes: clsTimer, clsTimerData, and clsTimerInstance clsTimer is the main class. It contains 2 collections that hold instances of the other two classes and a timestamp of the time that the class was instantiated (called RunTS). clsTimerInstance holds data about a timer that has been started (ID, start value of timer, and a time stamp). clsTimerData holds the complete timer data record for a given timer event (ID, start value of timer, end value of timer, difference between end and start, elapsed time in seconds, time stamp of timer, and RunTS). This class holds the completed timer data until the data is persisted. To use the timers, an instance of clsTimer is instantiated. For each timer that is to be started, make a call to the clsTimer.StartTimer with an ID (long value) that is used as the key for the timer instance. This function returns an index to that timer that is used to stop the timer. This function creates an instance of the clsTimerInstance class that contains the starting values of the timer and adds it to the Instance collection. When a given timer is stopped, the ending timer value is obtained. The starting values are located in the Instance collection. A new clsTimerData instance is created and populated with the timer data and added to the TimerData collection. The clsTimerInstance collection item is then deleted. The data can be persisted to a table with a call to clsTimer.PersistData. Right now, this function simply iterates the TimerData collection and dumps it to a table. I plan on being able to pass this function a value so that this function can also call two other functions to dump to a formatted flat file and a CSV file. To use the timers is a simple as: Dim cTimer as new clsTimer ... x=ctimer.StartTimer(1) 'some code cTimer.StopTimer 1 x=ctimer.StartTimer(1) for i=0 to 100000 y=cTimer.StartTimer(2) 'we can nest them 'some more code cTimer.StopTimer 2 next i ctimer.StopTimer 1 ctimer.PersistData set ctimer=nothing The output would look something like (from a different test run): TimerID StartVal EndVal Elapsed Seconds TimeStamp RunTS 1 215002386.2371 215002420.5905 34.3534 0.096 5/9/2006 7:32:13 AM 5/9/2006 7:32:13 AM 2 ... 2 ... 2 ... How does this sound to you all? Thanks for even making it this far! Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue May 9 12:38:48 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 09 May 2006 19:38:48 +0200 Subject: [AccessD] Timer class suggestions... Message-ID: Hi Lambert Yes. >>> Lambert.Heenan at AIG.com 09-05-2006 18:23:24 >>> Ah. So it's really giving a resolution that's similar to the old, old (way back in the mists of time, MS DOS 1.x) PC clock resolution of about 20 ms (IIRC). :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 11:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Lambert First, as I wrote, that article is - ehh - not precise. Second, Timer does not have a resolution of 1/100 s, it just looks like that: http://databaseadvisors.com/pipermail/accessd/2005-February/031736.html /gustav From Gustav at cactus.dk Tue May 9 12:43:59 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 09 May 2006 19:43:59 +0200 Subject: [AccessD] Multithreading in VBA Message-ID: Hi all I noticed this article about multithreading in VB6: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=14479&lngWId=1 and wonder if that tip can be transferred to VBA (Access)? /gustav From martyconnelly at shaw.ca Tue May 9 14:45:16 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 09 May 2006 12:45:16 -0700 Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA In-Reply-To: References: Message-ID: <4460F14C.6010802@shaw.ca> This might be interesting and is fairly simple Call Into The .NET Framework From Existing Visual Basic 6.0 Apps http://msdn.microsoft.com/msdnmag/issues/06/05/WrapItUp/default.aspx This article adresses VB6 but there is no reason, it can't be used from VBA You will need VB Express installed along with .Net Framework 2.0 to create the wrapper dll. And perhaps register as COM object. It should save you using a lot of 3'd party controls by using the NET Framework class library instead. There are a lot of things that can be quickly written in .Net The .NET Framework classes must be called through a wrapper. The wrappers are built using the COM Class item in VB Express, and they behave like any other COM objects -- Marty Connelly Victoria, B.C. Canada From DWUTKA at marlow.com Tue May 9 15:09:05 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 9 May 2006 15:09:05 -0500 Subject: [AccessD] Multithreading in VBA Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDB23@main2.marlow.com> Unfortunately no. Even in VB6, you cannot run multiple threads in debug mode. Technically, when you run VBA, it's similar to debug mode. Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Tuesday, May 09, 2006 12:44 PM To: accessd at databaseadvisors.com Subject: [AccessD] Multithreading in VBA Hi all I noticed this article about multithreading in VB6: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=14479&ln gWId=1 and wonder if that tip can be transferred to VBA (Access)? /gustav -- 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 May 9 16:34:37 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 9 May 2006 16:34:37 -0500 Subject: [AccessD] Top values query problem Message-ID: When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; 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 andy at minstersystems.co.uk Tue May 9 16:40:55 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 9 May 2006 22:40:55 +0100 Subject: [AccessD] GoTo a record on form In-Reply-To: Message-ID: <028301c673b1$40af8c50$d1b20c54@minster33c3r25> Hi Mark Top of my head dim rst as a recordset, set rst to me.recordsetclone, do a FindFirst the set me.bookmark to rst.bookmark. Will that do it? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mark A Matte > Sent: 09 May 2006 16:32 > To: accessd at databaseadvisors.com > Subject: [AccessD] GoTo a record on form > > > Hello All, > > In A2K I have a form(continuous)...I want to type in text > box and have the > form goto the first record that matches what I typed...but I > don't want to > filter...just goto??? > > 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 Tue May 9 17:45:48 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 9 May 2006 18:45:48 -0400 Subject: [AccessD] Top values query problem In-Reply-To: Message-ID: <000901c673ba$52044280$8fb3d6d1@SUSANONE> You want to limit the number of records in each ordered group -- is this correct? Susan H. When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.5.5/334 - Release Date: 5/8/2006 From jwcolby at ColbyConsulting.com Tue May 9 18:24:02 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 9 May 2006 19:24:02 -0400 Subject: [AccessD] Access 2007 - QUick Survery - BUGS In-Reply-To: <006501c672f6$07ab0e90$6601a8c0@office> Message-ID: <004f01c673bf$a91d1100$657aa8c0@JWCM6805> Well, I found two "features" today. Working with an ADO recordset to do a "pushbutton" comma delimited file code ("csv" file), I passed in a query name with a dash in it. The code apparently truncated the query name at the dash and actually selected a query that happened to be named the remainder of the name. IOW I had a query called ABCD I had another query called ABCD-XYZ In the rst.Open I passed in ABCD-XYZ. ADO truncated the name to ABCD and opened the ABCD query. QUITE CONFUSING!!! It took me a long time to figure out what was happening. In another case I had a query with a long name. Apparently ADO has some internal limit which treats any string passed in to the rst.open as a query / table name if shorter than X characters but as a SQL statement if longer than X characters. Thus (once I took out the dash) I started getting "not a valid SQL statement, should contain SELECT etc." error messages from my long named query. As soon as I shortened up the query name (removing the dash of course), everything worked just fine. I spent the better part of the day on THAT pair of "features". John W. Colby www.ColbyConsulting.com From kp at sdsonline.net Tue May 9 18:30:28 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 10 May 2006 09:30:28 +1000 Subject: [AccessD] sample non disclosue agreement Message-ID: <000701c673c0$8f21a620$6601a8c0@office> Does anyone on list have a sample of a non disclosure agreement I could use with a subcontractor? (I have an employment contract - but just need a non-disclosure doc.) rgds ______________________________________ Kath Pelletti Software Design and Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 Email: KP at SDSOnline.net From cfoust at infostatsystems.com Tue May 9 18:35:01 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 9 May 2006 16:35:01 -0700 Subject: [AccessD] Access 2007 - QUick Survery - BUGS Message-ID: Now, John, you know by now that dashes require square brackets around the object name to distinguish them from mathmatical operations! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, May 09, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Well, I found two "features" today. Working with an ADO recordset to do a "pushbutton" comma delimited file code ("csv" file), I passed in a query name with a dash in it. The code apparently truncated the query name at the dash and actually selected a query that happened to be named the remainder of the name. IOW I had a query called ABCD I had another query called ABCD-XYZ In the rst.Open I passed in ABCD-XYZ. ADO truncated the name to ABCD and opened the ABCD query. QUITE CONFUSING!!! It took me a long time to figure out what was happening. In another case I had a query with a long name. Apparently ADO has some internal limit which treats any string passed in to the rst.open as a query / table name if shorter than X characters but as a SQL statement if longer than X characters. Thus (once I took out the dash) I started getting "not a valid SQL statement, should contain SELECT etc." error messages from my long named query. As soon as I shortened up the query name (removing the dash of course), everything worked just fine. I spent the better part of the day on THAT pair of "features". John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at ColbyConsulting.com Tue May 9 19:24:49 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 9 May 2006 20:24:49 -0400 Subject: [AccessD] Access 2007 - QUick Survery - BUGS In-Reply-To: Message-ID: <005101c673c8$269d8a30$657aa8c0@JWCM6805> It is a STRING passed in as a table/query name!!! Dashes are quite valid in table names. 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: Tuesday, May 09, 2006 7:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Now, John, you know by now that dashes require square brackets around the object name to distinguish them from mathmatical operations! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, May 09, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Well, I found two "features" today. Working with an ADO recordset to do a "pushbutton" comma delimited file code ("csv" file), I passed in a query name with a dash in it. The code apparently truncated the query name at the dash and actually selected a query that happened to be named the remainder of the name. IOW I had a query called ABCD I had another query called ABCD-XYZ In the rst.Open I passed in ABCD-XYZ. ADO truncated the name to ABCD and opened the ABCD query. QUITE CONFUSING!!! It took me a long time to figure out what was happening. In another case I had a query with a long name. Apparently ADO has some internal limit which treats any string passed in to the rst.open as a query / table name if shorter than X characters but as a SQL statement if longer than X characters. Thus (once I took out the dash) I started getting "not a valid SQL statement, should contain SELECT etc." error messages from my long named query. As soon as I shortened up the query name (removing the dash of course), everything worked just fine. I spent the better part of the day on THAT pair of "features". 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 artful at rogers.com Tue May 9 21:01:25 2006 From: artful at rogers.com (Arthur Fuller) Date: Tue, 9 May 2006 22:01:25 -0400 (EDT) Subject: [AccessD] Access 2007 - QUick Survery In-Reply-To: Message-ID: <20060510020125.89256.qmail@web88201.mail.re2.yahoo.com> What a bummer. Now that I am on this project where the whole focus is SQL, I have taken enormous pleasure in puncturing opinions of Access. In a very few minutes, I knocked together an app that would talk to the system tables, with combo-boxes and listboxes etc. Heads turned and eyes rolled. These SQL guys simply had no idea that Access could do that. I would hate to see ADP go the way of the dodo. Arthur Martin Reid wrote: Marty This MAY be incorrect and is written as of tonight so could change totally between now and release. They will not handle the new data types but should function as before with SQL 2005 peovided you have only those DTs supported by SQL Server 2000. At the moment there is no way to work with 2005 via ADPs. There are some issues still that appear to be outstanding. In fact I have posted to them about several including the fact that no server object appear when using 2005 but they are picked up by the wizards but dont show in teh Access container. Asd of about 5mins ago I have had no luck at all with ADPs and SQLS erver 2005 other than linking to the tables in Access as before. They are REALLY pushing linking tables as first choice over ADPS. ADPs will not receive the same focus in future development as linking to MDBs etc will I did get that much out of them Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Sun 07/05/2006 17:55 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery One question I am seeing is what are the exact restrictions on running either Access 2003 or 2007 ADP's versus SQL 2005. Will they handle new complex data types? What modifications will be needed. Can you use Access 2007 ADP's for any future development. Can you run an ADP developed under 2003 and run it in 2007 against SQL 2005 by just changing the connection string, assuming you have done an SQL 2000 to 2005 conversion? Martin Reid wrote: >Quick Survey > >Access 2007. What sort of information as professionals would you like to see about Access 2007? > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > > > -- 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 cyx5 at cdc.gov Wed May 10 05:17:07 2006 From: cyx5 at cdc.gov (Long, Karen S. (CDC/NIOSH/NPPTL) (CTR)) Date: Wed, 10 May 2006 06:17:07 -0400 Subject: [AccessD] Access 2007 - QUick Survery - BUGS Message-ID: Mad Cow. He is getting old. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 09, 2006 7:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Now, John, you know by now that dashes require square brackets around the object name to distinguish them from mathmatical operations! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, May 09, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Well, I found two "features" today. Working with an ADO recordset to do a "pushbutton" comma delimited file code ("csv" file), I passed in a query name with a dash in it. The code apparently truncated the query name at the dash and actually selected a query that happened to be named the remainder of the name. IOW I had a query called ABCD I had another query called ABCD-XYZ In the rst.Open I passed in ABCD-XYZ. ADO truncated the name to ABCD and opened the ABCD query. QUITE CONFUSING!!! It took me a long time to figure out what was happening. In another case I had a query with a long name. Apparently ADO has some internal limit which treats any string passed in to the rst.open as a query / table name if shorter than X characters but as a SQL statement if longer than X characters. Thus (once I took out the dash) I started getting "not a valid SQL statement, should contain SELECT etc." error messages from my long named query. As soon as I shortened up the query name (removing the dash of course), everything worked just fine. I spent the better part of the day on THAT pair of "features". 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 cyx5 at cdc.gov Wed May 10 05:33:07 2006 From: cyx5 at cdc.gov (Long, Karen S. (CDC/NIOSH/NPPTL) (CTR)) Date: Wed, 10 May 2006 06:33:07 -0400 Subject: [AccessD] Access 2007 - QUick Survery - BUGS Message-ID: Not in SQL2005 and .net. Need to enclose them in brackets. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, May 09, 2006 8:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS It is a STRING passed in as a table/query name!!! Dashes are quite valid in table names. 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: Tuesday, May 09, 2006 7:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Now, John, you know by now that dashes require square brackets around the object name to distinguish them from mathmatical operations! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, May 09, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Well, I found two "features" today. Working with an ADO recordset to do a "pushbutton" comma delimited file code ("csv" file), I passed in a query name with a dash in it. The code apparently truncated the query name at the dash and actually selected a query that happened to be named the remainder of the name. IOW I had a query called ABCD I had another query called ABCD-XYZ In the rst.Open I passed in ABCD-XYZ. ADO truncated the name to ABCD and opened the ABCD query. QUITE CONFUSING!!! It took me a long time to figure out what was happening. In another case I had a query with a long name. Apparently ADO has some internal limit which treats any string passed in to the rst.open as a query / table name if shorter than X characters but as a SQL statement if longer than X characters. Thus (once I took out the dash) I started getting "not a valid SQL statement, should contain SELECT etc." error messages from my long named query. As soon as I shortened up the query name (removing the dash of course), everything worked just fine. I spent the better part of the day on THAT pair of "features". John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed May 10 06:02:19 2006 From: cyx5 at cdc.gov (Long, Karen S. (CDC/NIOSH/NPPTL) (CTR)) Date: Wed, 10 May 2006 07:02:19 -0400 Subject: [AccessD] sample non disclosue agreement Message-ID: Sent to you offline... Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, May 09, 2006 7:30 PM To: Access D Normal List Subject: [AccessD] sample non disclosue agreement Does anyone on list have a sample of a non disclosure agreement I could use with a subcontractor? (I have an employment contract - but just need a non-disclosure doc.) rgds ______________________________________ Kath Pelletti Software Design and Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 Email: KP at SDSOnline.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 May 10 04:00:34 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 11:00:34 +0200 Subject: [AccessD] Top values query problem Message-ID: Hi Chester Something like this where you use a pseudo key if you don't have a unique key: SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE Str(PT_Well) & "x" & Str(PT_Date) & "x" & Str(PT_Status) IN (SELECT TOP 6 Str(T.PT_Well) & "x" & Str(T.PT_Date) & "x" & Str(T.PT_Status) FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; This assumes you have only one record for each Well/Date. /gustav >>> Chester_Kaup at kindermorgan.com 09-05-2006 23:34 >>> When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; From Gustav at cactus.dk Wed May 10 03:28:14 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 10:28:14 +0200 Subject: [AccessD] Multithreading in VBA Message-ID: Thanks Drew. It would have been nice, of course, and would it had been possible, I guess I would have read about it elsewhere but I haven't. /gustav >>> DWUTKA at marlow.com 09-05-2006 22:09 >>> Unfortunately no. Even in VB6, you cannot run multiple threads in debug mode. Technically, when you run VBA, it's similar to debug mode. Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Tuesday, May 09, 2006 12:44 PM To: accessd at databaseadvisors.com Subject: [AccessD] Multithreading in VBA Hi all I noticed this article about multithreading in VB6: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=14479&lngWId=1 and wonder if that tip can be transferred to VBA (Access)? /gustav From Gustav at cactus.dk Wed May 10 04:19:51 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 11:19:51 +0200 Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA Message-ID: Hi Marty This is very interesting. Thanks a lot for that link! /gustav >>> martyconnelly at shaw.ca 09-05-2006 21:45 >>> This might be interesting and is fairly simple Call Into The .NET Framework From Existing Visual Basic 6.0 Apps http://msdn.microsoft.com/msdnmag/issues/06/05/WrapItUp/default.aspx This article adresses VB6 but there is no reason, it can't be used from VBA You will need VB Express installed along with .Net Framework 2.0 to create the wrapper dll. And perhaps register as COM object. It should save you using a lot of 3'd party controls by using the NET Framework class library instead. There are a lot of things that can be quickly written in .Net The .NET Framework classes must be called through a wrapper. The wrappers are built using the COM Class item in VB Express, and they behave like any other COM objects -- Marty Connelly Victoria, B.C. Canada From Jdemarco at hudsonhealthplan.org Wed May 10 06:59:27 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 10 May 2006 07:59:27 -0400 Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA Message-ID: <08F823FD83787D4BA0B99CA580AD3C740371769D@TTNEXCHCL2.hshhp.com> Yes this is a great article. I read it a few weeks back in the paper mag and had the same thought. I've always been a proponent of writing COM objects in VB6 for use in Access apps but we stopped using VB6 for new development a few months ago. This gives us an opportunity to begin implementing processes via COM through .NET. A must read IMO. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, May 09, 2006 3:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA This might be interesting and is fairly simple Call Into The .NET Framework From Existing Visual Basic 6.0 Apps http://msdn.microsoft.com/msdnmag/issues/06/05/WrapItUp/default.aspx This article adresses VB6 but there is no reason, it can't be used from VBA You will need VB Express installed along with .Net Framework 2.0 to create the wrapper dll. And perhaps register as COM object. It should save you using a lot of 3'd party controls by using the NET Framework class library instead. There are a lot of things that can be quickly written in .Net The .NET Framework classes must be called through a wrapper. The wrappers are built using the COM Class item in VB Express, and they behave like any other COM objects -- 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 adtp at hotmail.com Wed May 10 07:01:04 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 10 May 2006 17:31:04 +0530 Subject: [AccessD] A2003:Reading text box Line by Line and inserting eachline into a dB field References: <445C9AE1.22522.D3D9287@stuart.lexacorp.com.pg> Message-ID: Darren, Each individual line in a multi-line text box in Access can be grabbed via Split() function. For example, if Rtv is a variant type variable, the statement Rtv = Split(MyTextbox, vbCrLf) will generate an array holding the values of individual lines. Rtv(0) represents the first line, while Rtv(UBound(Rtv)) represents the last line. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Sunday, May 07, 2006 18:33 Subject: [AccessD] A2003:Reading text box Line by Line and inserting eachline into a dB field Hi all I am doing some pro-bono work for some General orphanages and AIDS orphanages in Thailand (Feel free to email me off list for any info - Shameless plug - Yes we are always looking for sponsors - another shameless plug) I have just been handed a CD of Publisher files with photos and a small 'blurb' about each child There are about 600 on this CD alone Each MS Publisher 'record' contains the photo and a short 'blurb' that looks like this DUANPEN OONBOON <-- Childs Full Name Gender: Male Born: 23rd June 1995 Grade: 2005-2006- Primary 4 Favourite Subject: English Favourite Sport: Volley Ball Favourite Food: Fried Rice Favourite Colour: Red Child Ref. # MCS-072 You can see there is 9 or so lines of text for each record. And it's all in one text field - an MS Publisher text box And I have to get each line out of that one field and send the first line to the FullName field of the dB the second line to the Gender field of the dB. The third line to the DoB field of the dB etc etc Essentially read that text box line by line and have the contents of each line 'mapped' to a field in a table Any suggestions? I'm also open to suggestions of getting the images out of publisher and onto the HardDrive in some meaningful name format If you need a copy of the Publisher file - I am more than willing to share a snip off line Many many thanks in advance Darren From Chester_Kaup at kindermorgan.com Wed May 10 07:11:51 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 10 May 2006 07:11:51 -0500 Subject: [AccessD] Top values query problem Message-ID: Yes if you mean the field PT_Well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, May 09, 2006 5:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Top values query problem You want to limit the number of records in each ordered group -- is this correct? Susan H. When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.5.5/334 - Release Date: 5/8/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Wed May 10 07:23:07 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 10 May 2006 17:53:07 +0530 Subject: [AccessD] GoTo a record on form References: <445C9AE1.22522.D3D9287@stuart.lexacorp.com.pg> Message-ID: Mark, If the form is used independently, sample code in form's module as at (A) below will do the needful. If the form is used as a subform and desired search value is contained in a text box on the parent form, sample code in parent form's module as at (B) below would apply. MyNumberField & MyTextField are names of pertinent bound controls on the continuous form. Note - Value of ControlSource is used in VBA statements in order to provide situations where name of bound control is different from its control source. Best wishes, A.D.Tejpal --------------- (A) - Code in module of independent continuous form (TxtSearch is a text box in header or footer of the form) ======================================= ' For locating number type field Me.Recordset.FindFirst _ Me.MyNumberField.ControlSource & _ " = " & Me.TxtSearch ' For locating text type field Me.Recordset.FindFirst _ Me.MyTextField.ControlSource & _ " = '" & Me.TxtSearch & "'" ======================================= (B) - Code in module of parent form (TxtSearch is a text box on parent form SF_SearchSub is the name of control on the parent form, acting as container for the subform) ======================================= ' For locating number type field on subform Me.SF_SearchSub.Form.Recordset.FindFirst _ Me.SF_SearchSub("MyNumberField").ControlSource & _ " = " & Me.TxtSearch ' For locating text type field on subform Me.SF_SearchSub.Form.Recordset.FindFirst _ Me.SF_SearchSub("MyTextField").ControlSource & _ " = '" & Me.TxtSearch & "'" ======================================= ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Tuesday, May 09, 2006 21:01 Subject: [AccessD] GoTo a record on form Hello All, In A2K I have a form(continuous)...I want to type in text box and have the form goto the first record that matches what I typed...but I don't want to filter...just goto??? Thanks, Mark A. Matte From harkinsss at bellsouth.net Wed May 10 07:39:50 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 10 May 2006 08:39:50 -0400 Subject: [AccessD] Access 2007 - QUick Survery In-Reply-To: <20060510020125.89256.qmail@web88201.mail.re2.yahoo.com> Message-ID: <001701c6742e$d5c60580$8fb3d6d1@SUSANONE> Arthur, VB Express does require a bit more work than Access, but it is still extremely easy to use and for people like us (already know Access and SQL Server) the learning curve is almost nothing. Susan H. I would hate to see ADP go the way of the dodo. From darrend at nimble.com.au Wed May 10 09:24:34 2006 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 11 May 2006 00:24:34 +1000 Subject: [AccessD] A2003:Reading text box Line by Line and insertingeachline into a dB field In-Reply-To: Message-ID: <20060510142440.CDDQ3168.omta02ps.mx.bigpond.com@DENZILLAP> Brilliant A.D - Ill give it a whirl Many thanks Darren ------------------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Wednesday, 10 May 2006 10:01 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] A2003:Reading text box Line by Line and insertingeachline into a dB field Darren, Each individual line in a multi-line text box in Access can be grabbed via Split() function. For example, if Rtv is a variant type variable, the statement Rtv = Split(MyTextbox, vbCrLf) will generate an array holding the values of individual lines. Rtv(0) represents the first line, while Rtv(UBound(Rtv)) represents the last line. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Sunday, May 07, 2006 18:33 Subject: [AccessD] A2003:Reading text box Line by Line and inserting eachline into a dB field Hi all I am doing some pro-bono work for some General orphanages and AIDS orphanages in Thailand (Feel free to email me off list for any info - Shameless plug - Yes we are always looking for sponsors - another shameless plug) I have just been handed a CD of Publisher files with photos and a small 'blurb' about each child There are about 600 on this CD alone Each MS Publisher 'record' contains the photo and a short 'blurb' that looks like this DUANPEN OONBOON <-- Childs Full Name Gender: Male Born: 23rd June 1995 Grade: 2005-2006- Primary 4 Favourite Subject: English Favourite Sport: Volley Ball Favourite Food: Fried Rice Favourite Colour: Red Child Ref. # MCS-072 You can see there is 9 or so lines of text for each record. And it's all in one text field - an MS Publisher text box And I have to get each line out of that one field and send the first line to the FullName field of the dB the second line to the Gender field of the dB. The third line to the DoB field of the dB etc etc Essentially read that text box line by line and have the contents of each line 'mapped' to a field in a table Any suggestions? I'm also open to suggestions of getting the images out of publisher and onto the HardDrive in some meaningful name format If you need a copy of the Publisher file - I am more than willing to share a snip off line Many many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed May 10 09:40:37 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 10 May 2006 14:40:37 +0000 Subject: [AccessD] GoTo a record on form In-Reply-To: Message-ID: Thanks A.D. This is exactly what I needed. Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] GoTo a record on form >Date: Wed, 10 May 2006 17:53:07 +0530 > >Mark, > > If the form is used independently, sample code in form's module as at >(A) below will do the needful. If the form is used as a subform and desired >search value is contained in a text box on the parent form, sample code in >parent form's module as at (B) below would apply. > > MyNumberField & MyTextField are names of pertinent bound controls on >the continuous form. > > Note - Value of ControlSource is used in VBA statements in order to >provide situations where name of bound control is different from its >control source. > >Best wishes, >A.D.Tejpal >--------------- > >(A) - Code in module of independent continuous form >(TxtSearch is a text box in header or footer of the form) >======================================= > ' For locating number type field > Me.Recordset.FindFirst _ > Me.MyNumberField.ControlSource & _ > " = " & Me.TxtSearch > > ' For locating text type field > Me.Recordset.FindFirst _ > Me.MyTextField.ControlSource & _ > " = '" & Me.TxtSearch & "'" >======================================= > >(B) - Code in module of parent form >(TxtSearch is a text box on parent form > SF_SearchSub is the name of control on the parent > form, acting as container for the subform) >======================================= > ' For locating number type field on subform > Me.SF_SearchSub.Form.Recordset.FindFirst _ > Me.SF_SearchSub("MyNumberField").ControlSource & _ > " = " & Me.TxtSearch > ' For locating text type field on subform > Me.SF_SearchSub.Form.Recordset.FindFirst _ > Me.SF_SearchSub("MyTextField").ControlSource & _ > " = '" & Me.TxtSearch & "'" >======================================= > > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Tuesday, May 09, 2006 21:01 > Subject: [AccessD] GoTo a record on form > > > Hello All, > > In A2K I have a form(continuous)...I want to type in text box and have >the form goto the first record that matches what I typed...but I don't want >to filter...just goto??? > > Thanks, > > Mark A. Matte >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed May 10 09:49:48 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 10 May 2006 07:49:48 -0700 Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA In-Reply-To: References: Message-ID: <4461FD8C.5000601@shaw.ca> Now I just have to sort out the deployment issues. You need to set a reference to the .tlb file but you have to register the .dll on the client machine to get at the class GUID's in the COM registry. Gustav Brock wrote: >Hi Marty > >This is very interesting. Thanks a lot for that link! > >/gustav > > > >>>>martyconnelly at shaw.ca 09-05-2006 21:45 >>> >>>> >>>> >This might be interesting and is fairly simple > >Call Into The .NET Framework From Existing Visual Basic 6.0 Apps >http://msdn.microsoft.com/msdnmag/issues/06/05/WrapItUp/default.aspx > >This article adresses VB6 but there is no reason, it can't be used from VBA >You will need VB Express installed along with .Net Framework 2.0 >to create the wrapper dll. And perhaps register as COM object. > >It should save you using a lot of 3'd party controls by using the >NET Framework class library instead. There are a lot of things >that can be quickly written in .Net > >The .NET Framework classes must be called through a wrapper. >The wrappers are built using the COM Class item in VB Express, > and they behave like any other COM objects > > > -- Marty Connelly Victoria, B.C. Canada From DWUTKA at marlow.com Wed May 10 10:07:38 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 10 May 2006 10:07:38 -0500 Subject: [AccessD] Multithreading in VBA Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDB28@main2.marlow.com> Actually, when dealing with Access, Multithreading would be a problem even if VBA let you. I've written multithreading VB 6 .exes. It works great, but you can't have more then one thread dealing with one .mdb at a time. I have a test program that just dumps data into a table in an .mdb. One thread will go until the database fills up. However, the more threads you have the faster they will crash (from write errors), and when the last thread is closed the database is corrupted. (Recoverable, but corrupted). That is because the threads are being 'cycled' by the OS, and it doesn't really care when, so JET could be checking for a lock in one thread, and then the next thread to run may be setting a lock that the early thread just set. As you might guess, that will add up to trouble in a hurry. Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Wednesday, May 10, 2006 3:28 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Multithreading in VBA Thanks Drew. It would have been nice, of course, and would it had been possible, I guess I would have read about it elsewhere but I haven't. /gustav >>> DWUTKA at marlow.com 09-05-2006 22:09 >>> Unfortunately no. Even in VB6, you cannot run multiple threads in debug mode. Technically, when you run VBA, it's similar to debug mode. Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Tuesday, May 09, 2006 12:44 PM To: accessd at databaseadvisors.com Subject: [AccessD] Multithreading in VBA Hi all I noticed this article about multithreading in VB6: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=14479&ln gWId=1 and wonder if that tip can be transferred to VBA (Access)? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed May 10 10:10:52 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 May 2006 08:10:52 -0700 Subject: [AccessD] Access 2007 - QUick Survery - BUGS Message-ID: ROTFLMAO So true! ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Long, Karen S. (CDC/NIOSH/NPPTL) (CTR) Sent: Wednesday, May 10, 2006 3:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Mad Cow. He is getting old. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 09, 2006 7:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Now, John, you know by now that dashes require square brackets around the object name to distinguish them from mathmatical operations! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, May 09, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Well, I found two "features" today. Working with an ADO recordset to do a "pushbutton" comma delimited file code ("csv" file), I passed in a query name with a dash in it. The code apparently truncated the query name at the dash and actually selected a query that happened to be named the remainder of the name. IOW I had a query called ABCD I had another query called ABCD-XYZ In the rst.Open I passed in ABCD-XYZ. ADO truncated the name to ABCD and opened the ABCD query. QUITE CONFUSING!!! It took me a long time to figure out what was happening. In another case I had a query with a long name. Apparently ADO has some internal limit which treats any string passed in to the rst.open as a query / table name if shorter than X characters but as a SQL statement if longer than X characters. Thus (once I took out the dash) I started getting "not a valid SQL statement, should contain SELECT etc." error messages from my long named query. As soon as I shortened up the query name (removing the dash of course), everything worked just fine. I spent the better part of the day on THAT pair of "features". John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Robin at rolledgold.net Wed May 10 10:01:35 2006 From: Robin at rolledgold.net (Robin ) Date: Wed, 10 May 2006 16:01:35 +0100 Subject: [AccessD] Resetting Autonumber seed Message-ID: <560E2B80EC8F624B93A87B943B7A9CD54A3F22@rgiserv.rg.local> Using Access 97 - found this example but keep getting syntax error ... Don't want to use ADOX because of references .... Sub testit() Dim lngordnomax As Long, strsql As String lngordnomax = DMax("OrdOrderID", "PostedOrders", "OrdOrderID>0") lngordnomax = lngordnomax + 1 strsql = "ALTER TABLE [Orders] ALTER Column [OrdOrderID] Counter (" & lngordnomax & ",1)" CurrentDb.Execute strsql End Sub Can anyone advise what the problem may be Rgds Robin Lawrence From martyconnelly at shaw.ca Wed May 10 11:38:53 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 10 May 2006 09:38:53 -0700 Subject: [AccessD] Resetting Autonumber seed In-Reply-To: <560E2B80EC8F624B93A87B943B7A9CD54A3F22@rgiserv.rg.local> References: <560E2B80EC8F624B93A87B943B7A9CD54A3F22@rgiserv.rg.local> Message-ID: <4462171D.8020001@shaw.ca> could it be just a line wrap problem, if so try this strsql = "ALTER TABLE [Orders] ALTER Column [OrdOrderID] Counter" & _ "(" & lngordnomax & ",1)" Robin wrote: >Using Access 97 - found this example but keep getting syntax error ... > >Don't want to use ADOX because of references .... > >Sub testit() >Dim lngordnomax As Long, strsql As String >lngordnomax = DMax("OrdOrderID", "PostedOrders", "OrdOrderID>0") > lngordnomax = lngordnomax + 1 > strsql = "ALTER TABLE [Orders] ALTER Column [OrdOrderID] Counter >(" & lngordnomax & ",1)" > CurrentDb.Execute strsql >End Sub > >Can anyone advise what the problem may be > >Rgds >Robin Lawrence > > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Wed May 10 11:44:21 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 18:44:21 +0200 Subject: [AccessD] Multithreading in VBA Message-ID: Hi Drew So true, but it could have given you some options for, say, printing a report while updating a (non-related) recordset. I have not used it, but you could shell out to another Access instance which could perform some batch printing while your code leaves the shell command and let the user move on. /gustav >>> DWUTKA at marlow.com 10-05-2006 17:07:38 >>> Actually, when dealing with Access, Multithreading would be a problem even if VBA let you. I've written multithreading VB 6 .exes. It works great, but you can't have more then one thread dealing with one .mdb at a time. I have a test program that just dumps data into a table in an .mdb. One thread will go until the database fills up. However, the more threads you have the faster they will crash (from write errors), and when the last thread is closed the database is corrupted. (Recoverable, but corrupted). That is because the threads are being 'cycled' by the OS, and it doesn't really care when, so JET could be checking for a lock in one thread, and then the next thread to run may be setting a lock that the early thread just set. As you might guess, that will add up to trouble in a hurry. Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Wednesday, May 10, 2006 3:28 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Multithreading in VBA Thanks Drew. It would have been nice, of course, and would it had been possible, I guess I would have read about it elsewhere but I haven't. /gustav >>> DWUTKA at marlow.com 09-05-2006 22:09 >>> Unfortunately no. Even in VB6, you cannot run multiple threads in debug mode. Technically, when you run VBA, it's similar to debug mode. Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Tuesday, May 09, 2006 12:44 PM To: accessd at databaseadvisors.com Subject: [AccessD] Multithreading in VBA Hi all I noticed this article about multithreading in VB6: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=14479&lngWId=1 and wonder if that tip can be transferred to VBA (Access)? /gustav From Robin at rolledgold.net Wed May 10 11:37:10 2006 From: Robin at rolledgold.net (Robin ) Date: Wed, 10 May 2006 17:37:10 +0100 Subject: [AccessD] Resetting Autonumber seed Message-ID: <560E2B80EC8F624B93A87B943B7A9CD54A3F24@rgiserv.rg.local> Thanks Marty - The line wrap is just in Outlook - viewing strsql gives the intended line ... Does anyone know if the syntax is valid - checking help in Access 97 doesn't give the "counter" option Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: 10 May 2006 17:39 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resetting Autonumber seed could it be just a line wrap problem, if so try this strsql = "ALTER TABLE [Orders] ALTER Column [OrdOrderID] Counter" & _ "(" & lngordnomax & ",1)" Robin wrote: >Using Access 97 - found this example but keep getting syntax error ... > >Don't want to use ADOX because of references .... > >Sub testit() >Dim lngordnomax As Long, strsql As String >lngordnomax = DMax("OrdOrderID", "PostedOrders", "OrdOrderID>0") > lngordnomax = lngordnomax + 1 > strsql = "ALTER TABLE [Orders] ALTER Column [OrdOrderID] >Counter (" & lngordnomax & ",1)" > CurrentDb.Execute strsql >End Sub > >Can anyone advise what the problem may be > >Rgds >Robin Lawrence > > > -- 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 bchacc at san.rr.com Wed May 10 12:07:57 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 10 May 2006 10:07:57 -0700 Subject: [AccessD] GoTo a record on form In-Reply-To: References: Message-ID: <44621DED.5020302@san.rr.com> Mark: I use this format: Me.RecordsetClone.FindFirst "[fldSRHID] = " & cboSubRentals.Value If Me.RecordsetClone.NoMatch Then MsgBox "Agreement Number not found.", vbExclamation Else Me.Bookmark = Me.RecordsetClone.Bookmark End If HTH Rocky Mark A Matte wrote: > Hello All, > > In A2K I have a form(continuous)...I want to type in text box and have the > form goto the first record that matches what I typed...but I don't want to > filter...just goto??? > > Thanks, > > Mark A. Matte > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Gustav at cactus.dk Wed May 10 12:07:40 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 19:07:40 +0200 Subject: [AccessD] Resetting Autonumber seed Message-ID: Hi Robin It doesn't look so: http://support.microsoft.com/kb/q275561/ This article describes the new features of Microsoft Jet 4.0, and the article also compares some of the changes between Microsoft Jet 3.5 and Jet 4.0. /gustav >>> Robin at rolledgold.net 10-05-2006 18:37:10 >>> Thanks Marty - The line wrap is just in Outlook - viewing strsql gives the intended line ... Does anyone know if the syntax is valid - checking help in Access 97 doesn't give the "counter" option Rgds Robin From Robin at rolledgold.net Wed May 10 12:09:31 2006 From: Robin at rolledgold.net (Robin ) Date: Wed, 10 May 2006 18:09:31 +0100 Subject: [AccessD] Resetting Autonumber seed Message-ID: <560E2B80EC8F624B93A87B943B7A9CD54A3F26@rgiserv.rg.local> Thanks Gustav, Reading the 'Alter Table' section seem to agree with you - then I saw this ? 'As a side note (and in addition) to changing field data types or changing the seed and increment value of an Auto-increment data type, the programmer can also drop fields and constraints. ' But I can't decipher the syntax to see how it can be done... Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 10 May 2006 18:08 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Resetting Autonumber seed Hi Robin It doesn't look so: http://support.microsoft.com/kb/q275561/ This article describes the new features of Microsoft Jet 4.0, and the article also compares some of the changes between Microsoft Jet 3.5 and Jet 4.0. /gustav >>> Robin at rolledgold.net 10-05-2006 18:37:10 >>> Thanks Marty - The line wrap is just in Outlook - viewing strsql gives the intended line ... Does anyone know if the syntax is valid - checking help in Access 97 doesn't give the "counter" option Rgds Robin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed May 10 12:35:15 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 19:35:15 +0200 Subject: [AccessD] Resetting Autonumber seed Message-ID: Hi Robin The author tries to tell you that you can remove (delete) the autonumber field and all its relations and recreate these - not exactly what you want. /gustav >>> Robin at rolledgold.net 10-05-2006 19:09:31 >>> Thanks Gustav, Reading the 'Alter Table' section seem to agree with you - then I saw this ? 'As a side note (and in addition) to changing field data types or changing the seed and increment value of an Auto-increment data type, the programmer can also drop fields and constraints. ' But I can't decipher the syntax to see how it can be done... Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 10 May 2006 18:08 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Resetting Autonumber seed Hi Robin It doesn't look so: http://support.microsoft.com/kb/q275561/ This article describes the new features of Microsoft Jet 4.0, and the article also compares some of the changes between Microsoft Jet 3.5 and Jet 4.0. /gustav >>> Robin at rolledgold.net 10-05-2006 18:37:10 >>> Thanks Marty - The line wrap is just in Outlook - viewing strsql gives the intended line ... Does anyone know if the syntax is valid - checking help in Access 97 doesn't give the "counter" option Rgds Robin From Robin at rolledgold.net Wed May 10 12:28:30 2006 From: Robin at rolledgold.net (Robin ) Date: Wed, 10 May 2006 18:28:30 +0100 Subject: [AccessD] Resetting Autonumber seed Message-ID: <560E2B80EC8F624B93A87B943B7A9CD54A3F27@rgiserv.rg.local> Gustav, Read a bit further through this and this is exactly what I need - Both the seed and the increment can be modified using an ALTER TABLE statement. New records inserted into the table will have values that are automatically generated for the field based on the new seed and increment values. If the new seed and increment can yield new values that match existing values generated by the preceding seed and increment, duplicates will be created. If the field is a Primary Key, then inserting new records may result in errors when duplicate primary keys are created. The following is an example of using the ALTER TABLE statement to set new seed and increment values for an auto-increment field: ALTER TABLE TableName ALTER COLUMN FieldName SET IDENTITY (2,4) Are you thinking I can't do this because I'm using Acess97 ? (I've tried sbstituting IDENTITY for COUNTER but get the same error) Rgds Robin From markamatte at hotmail.com Wed May 10 13:01:32 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 10 May 2006 18:01:32 +0000 Subject: [AccessD] Resetting Autonumber seed In-Reply-To: <560E2B80EC8F624B93A87B943B7A9CD54A3F27@rgiserv.rg.local> Message-ID: Robin, Just to clarify...you are trying to reset the autonumber field...so if your have records 1-10...then delete 5-10...the next number will be 11 even though 10 has been deleted. In this example...you want the next number to be 6? Thanks, Mark >From: "Robin " >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Resetting Autonumber seed >Date: Wed, 10 May 2006 18:28:30 +0100 > >Gustav, >Read a bit further through this and this is exactly what I need - > >Both the seed and the increment can be modified using an ALTER TABLE >statement. New records inserted into the table will have values that are >automatically generated for the field based on the new seed and >increment values. If the new seed and increment can yield new values >that match existing values generated by the preceding seed and >increment, duplicates will be created. If the field is a Primary Key, >then inserting new records may result in errors when duplicate primary >keys are created. >The following is an example of using the ALTER TABLE statement to set >new seed and increment values for an auto-increment field: > > ALTER TABLE TableName ALTER COLUMN FieldName SET IDENTITY (2,4) > >Are you thinking I can't do this because I'm using Acess97 ? >(I've tried sbstituting IDENTITY for COUNTER but get the same error) >Rgds >Robin >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed May 10 13:01:58 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 20:01:58 +0200 Subject: [AccessD] Resetting Autonumber seed Message-ID: Hi Robin No, the Counter syntax works in Access 2000+. But why at all trouble with resetting of Autonumber? It's generally a very bad idea. /gustav >>> Robin at rolledgold.net 10-05-2006 19:28:30 >>> Gustav, Read a bit further through this and this is exactly what I need - Both the seed and the increment can be modified using an ALTER TABLE statement. New records inserted into the table will have values that are automatically generated for the field based on the new seed and increment values. If the new seed and increment can yield new values that match existing values generated by the preceding seed and increment, duplicates will be created. If the field is a Primary Key, then inserting new records may result in errors when duplicate primary keys are created. The following is an example of using the ALTER TABLE statement to set new seed and increment values for an auto-increment field: ALTER TABLE TableName ALTER COLUMN FieldName SET IDENTITY (2,4) Are you thinking I can't do this because I'm using Acess97 ? (I've tried sbstituting IDENTITY for COUNTER but get the same error) Rgds Robin From Robin at rolledgold.net Wed May 10 13:04:27 2006 From: Robin at rolledgold.net (Robin ) Date: Wed, 10 May 2006 19:04:27 +0100 Subject: [AccessD] Resetting Autonumber seed Message-ID: <560E2B80EC8F624B93A87B943B7A9CD54A3F28@rgiserv.rg.local> Gustav, Matt, The problem is deleting Orders from one table and transferring to Posted Table via queries- Database is compacted overnight which resets the seed to the lowest order no left - this results in duplicate order numbers when they are eventually transferred... Thanks for your help so far - must leave this for tonight...!! Will return to it tomorrow Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 10 May 2006 19:02 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Resetting Autonumber seed Hi Robin No, the Counter syntax works in Access 2000+. But why at all trouble with resetting of Autonumber? It's generally a very bad idea. /gustav >>> Robin at rolledgold.net 10-05-2006 19:28:30 >>> Gustav, Read a bit further through this and this is exactly what I need - Both the seed and the increment can be modified using an ALTER TABLE statement. New records inserted into the table will have values that are automatically generated for the field based on the new seed and increment values. If the new seed and increment can yield new values that match existing values generated by the preceding seed and increment, duplicates will be created. If the field is a Primary Key, then inserting new records may result in errors when duplicate primary keys are created. The following is an example of using the ALTER TABLE statement to set new seed and increment values for an auto-increment field: ALTER TABLE TableName ALTER COLUMN FieldName SET IDENTITY (2,4) Are you thinking I can't do this because I'm using Acess97 ? (I've tried sbstituting IDENTITY for COUNTER but get the same error) Rgds Robin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed May 10 13:31:54 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 20:31:54 +0200 Subject: [AccessD] Resetting Autonumber seed Message-ID: Hi Robin Then read the highest order no. before deleting records, delete records, compact, append one record (dummy order) with order no. set to the read order no.; finally, delete this record. Now the next order created will have the read order no. plus one. /gustav >>> Robin at rolledgold.net 10-05-2006 20:04:27 >>> Gustav, Matt, The problem is deleting Orders from one table and transferring to Posted Table via queries- Database is compacted overnight which resets the seed to the lowest order no left - this results in duplicate order numbers when they are eventually transferred... Thanks for your help so far - must leave this for tonight...!! Will return to it tomorrow Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 10 May 2006 19:02 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Resetting Autonumber seed Hi Robin No, the Counter syntax works in Access 2000+. But why at all trouble with resetting of Autonumber? It's generally a very bad idea. From martyconnelly at shaw.ca Wed May 10 13:58:18 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 10 May 2006 11:58:18 -0700 Subject: [AccessD] Resetting Autonumber seed In-Reply-To: References: Message-ID: <446237CA.1020002@shaw.ca> Or just use GUID's instead of sequential autonumbers although this might frighten auditors. Gustav Brock wrote: >Hi Robin > >Then read the highest order no. before deleting records, delete records, compact, append one record (dummy order) with order no. set to the read order no.; finally, delete this record. >Now the next order created will have the read order no. plus one. > >/gustav > > > >>>>Robin at rolledgold.net 10-05-2006 20:04:27 >>> >>>> >>>> >Gustav, Matt, >The problem is deleting Orders from one table and transferring to Posted >Table via queries- Database is compacted overnight which resets the seed >to the lowest order no left - this results in duplicate order numbers >when they are eventually transferred... > >Thanks for your help so far - must leave this for tonight...!! > >Will return to it tomorrow > >Rgds >Robin > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: 10 May 2006 19:02 >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Resetting Autonumber seed > > >Hi Robin > >No, the Counter syntax works in Access 2000+. > >But why at all trouble with resetting of Autonumber? It's generally a >very bad idea. > > > > -- Marty Connelly Victoria, B.C. Canada From mastercafe at ctv.es Wed May 10 14:22:15 2006 From: mastercafe at ctv.es (MastercafeCTV) Date: Wed, 10 May 2006 21:22:15 +0200 Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA In-Reply-To: <4460F14C.6010802@shaw.ca> Message-ID: <000001c67467$0c53a660$0500a8c0@masterserv> Hi Marty, have you try to construct any Vba code like the samples ping or ftp?? I try today and i have installed on my computer Net Framework 2 and VB.net 2005, but can't execute... the wrapper dll or anything..?? Thanks Juan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: martes, 09 de mayo de 2006 21:45 To: Access Developers discussion and problem solving Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA This might be interesting and is fairly simple Call Into The .NET Framework From Existing Visual Basic 6.0 Apps http://msdn.microsoft.com/msdnmag/issues/06/05/WrapItUp/default.aspx This article adresses VB6 but there is no reason, it can't be used from VBA You will need VB Express installed along with .Net Framework 2.0 to create the wrapper dll. And perhaps register as COM object. It should save you using a lot of 3'd party controls by using the NET Framework class library instead. There are a lot of things that can be quickly written in .Net The .NET Framework classes must be called through a wrapper. The wrappers are built using the COM Class item in VB Express, and they behave like any other COM objects -- 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 Chester_Kaup at kindermorgan.com Wed May 10 16:28:53 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 10 May 2006 16:28:53 -0500 Subject: [AccessD] Top values query problem Message-ID: Got around to trying this and had to make 2 changes. PT_Well and PT_Status were already strings so I removed the Str function. Query runs fine for a few records. The table I am working against has ~500,000 records. I gave up letting it run it was taking so long. Am I missing something or is there a better way to do this such as VBA? My query SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE PT_Well & "x" & Str(PT_Date) & "x" & PT_Status IN (SELECT TOP 6 T.PT_Well & "x" & Str(T.PT_Date) & "x" & T.PT_Status FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, May 10, 2006 4:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester Something like this where you use a pseudo key if you don't have a unique key: SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE Str(PT_Well) & "x" & Str(PT_Date) & "x" & Str(PT_Status) IN (SELECT TOP 6 Str(T.PT_Well) & "x" & Str(T.PT_Date) & "x" & Str(T.PT_Status) FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; This assumes you have only one record for each Well/Date. /gustav >>> Chester_Kaup at kindermorgan.com 09-05-2006 23:34 >>> When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; -- 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 May 10 16:58:47 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 May 2006 07:58:47 +1000 Subject: [AccessD] Resetting Autonumber seed In-Reply-To: <446237CA.1020002@shaw.ca> References: Message-ID: <4462EEB7.13420.71F391E@stuart.lexacorp.com.pg> Or even better - Never use autonumber for meaningful keys like Order Numbers. Autonumber is a great tool for generating the *surrogate* primary key which you should always have in your tables (DARFC) - but it causes no end of trouble when you try to use it for real data. On 10 May 2006 at 11:58, MartyConnelly wrote: > Or just use GUID's instead of sequential autonumbers although this might > frighten auditors. > > Gustav Brock wrote: > > >Hi Robin > > > >Then read the highest order no. before deleting records, delete records, > >compact, append one record (dummy order) with order no. set to the read > >order no.; finally, delete this record. Now the next order created will > >have the read order no. plus one. > > > >/gustav > > > > > > > >>>>Robin at rolledgold.net 10-05-2006 20:04:27 >>> > >>>> > >>>> > >Gustav, Matt, > >The problem is deleting Orders from one table and transferring to Posted > >Table via queries- Database is compacted overnight which resets the seed to > >the lowest order no left - this results in duplicate order numbers when > >they are eventually transferred... > > -- Stuart From martyconnelly at shaw.ca Wed May 10 17:48:55 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 10 May 2006 15:48:55 -0700 Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA In-Reply-To: <000001c67467$0c53a660$0500a8c0@masterserv> References: <000001c67467$0c53a660$0500a8c0@masterserv> Message-ID: <44626DD7.5080704@shaw.ca> I was just going to post this but the download from the article is missing a comclass.zip It is only 2 or 3 K, you need this to build any new classes. It is installed by Visual Studio but not VB Express. I don't have Visual Studio but found it in a msi file downloadable from this simlar article by same author. Just install it in the directory indicated in the article then it will appear in temporary templates in vb.Net IDE. It contains the COM Class template necessary for building new class projects. Visual Basic Fusion: Best Practices to Use Visual Basic 6 and Visual Basic .NET Together http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/vbbestprac.asp However your problem maybe in the registering of the dll. Two ways to do this Install the project and open it in VB.Net, then do a Build this will register the dll with the com registry. There are step by step instuctions except for doing the final build in the first article. The build will also create a new tlb file. In Access set a reference to the tlb file that will be in a directory like below depending on where you installed the project. C:\Access files\VBFusion\VB2005\FX20Wrapper\bin\Release\FX20Wrapper.tlb The tlb will allow Access to see the class definitions and do a compile. Then just run your routine The other way is to use the included install.bat to register the dll It uses regasm and gacutil to remove any previously named dll and reinstall in the registry. Haven't tried this method. But I have been having fun with it running .Net XML Text classes from Access and SQL. Console.Write will come up something like a message box from Access. Imports System.Data.SqlClient Imports System.IO Imports System.Xml _ Public Class ComClass1 #Region "COM GUIDs" ' These GUIDs provide the COM identity for this class ' and its COM interfaces. If you change them, existing ' clients will no longer be able to access the class. Public Const ClassId As String = "e93440c0-fad6-478e-a01a-ad5965fcf9c4" Public Const InterfaceId As String = "1ecdb897-9d67-42b9-8465-7fc1d53119d6" Public Const EventsId As String = "4c78673d-bb4e-4e26-aed0-2a14e06f2f44" #End Region ' A creatable COM class must have a Public Sub New() ' with no parameters, otherwise, the class will not be ' registered in the COM registry and cannot be created ' via CreateObject. Public Sub New() MyBase.New() End Sub Public Function MainSQLTest() MsgBox("MainSQL Start") Dim cn As SqlConnection = New SqlConnection _ ("Data Source=localhost;user id=sa;" & _ "pwd=gribnif;Initial Catalog=Pubs") Dim authorCommand As SqlCommand = New SqlCommand("SELECT * FROM Authors", cn) Dim authorDA As SqlDataAdapter = New SqlDataAdapter() authorDA.SelectCommand = authorCommand cn.Open() Dim authorDS As DataSet = New DataSet() authorDA.Fill(authorDS, "Authors") Dim sFileName As String = "c:\temp2\testsql.xml" Dim xmlAuthor As String = authorDS.GetXml MsgBox(xmlAuthor) Dim srFile As StreamWriter = _ File.CreateText(sFileName) srFile.WriteLine(authorDS.GetXml) srFile.Close() cn.Close() Dim reader = New XmlTextReader(sFileName) reader.WhitespaceHandling = WhitespaceHandling.None 'Parse the file and display each of the nodes. While reader.Read() Select Case reader.NodeType Case XmlNodeType.Element Console.Write("<{0}>", reader.Name) Case XmlNodeType.Text Console.Write(reader.Value) Case XmlNodeType.XmlDeclaration Console.Write("") Case XmlNodeType.Document Case XmlNodeType.DocumentType Console.Write("", reader.Name) End Select End While End Function End Class MastercafeCTV wrote: >Hi Marty, >have you try to construct any Vba code like the samples ping or ftp?? >I try today and i have installed on my computer Net Framework 2 and VB.net >2005, but can't execute... the wrapper dll or anything..?? > >Thanks > >Juan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: martes, 09 de mayo de 2006 21:45 >To: Access Developers discussion and problem solving >Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA > > >This might be interesting and is fairly simple > >Call Into The .NET Framework From Existing Visual Basic 6.0 Apps >http://msdn.microsoft.com/msdnmag/issues/06/05/WrapItUp/default.aspx > >This article adresses VB6 but there is no reason, it can't be used from VBA >You will need VB Express installed along with .Net Framework 2.0 to create >the wrapper dll. And perhaps register as COM object. > >It should save you using a lot of 3'd party controls by using the NET >Framework class library instead. There are a lot of things that can be >quickly written in .Net > >The .NET Framework classes must be called through a wrapper. The wrappers >are built using the COM Class item in VB Express, and they behave like any >other COM objects > > > -- Marty Connelly Victoria, B.C. Canada From carbonnb at gmail.com Wed May 10 20:21:04 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 10 May 2006 21:21:04 -0400 Subject: [AccessD] Resetting Autonumber seed In-Reply-To: <560E2B80EC8F624B93A87B943B7A9CD54A3F27@rgiserv.rg.local> References: <560E2B80EC8F624B93A87B943B7A9CD54A3F27@rgiserv.rg.local> Message-ID: On 5/10/06, Robin wrote: > ALTER TABLE TableName ALTER COLUMN FieldName SET IDENTITY (2,4) > > Are you thinking I can't do this because I'm using Acess97 ? > (I've tried sbstituting IDENTITY for COUNTER but get the same error) The problem is ALTER TABLE is part of the DDL SQL Syntax, which is not supported in A97. -- 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 bchacc at san.rr.com Thu May 11 00:21:34 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 10 May 2006 22:21:34 -0700 Subject: [AccessD] Outlook and Access Message-ID: <4462C9DE.3090303@san.rr.com> Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: "If an email comes in with a 6 digit (alphanumeric) code in the Subject line, Outlook would make a call to Access, passing along the code and then delete the email. No code, email automatically deleted. The call to access would cause the code to be looked up and a status report emailed to the client if the code is current. " I suppose the receipt of any email would have to trigger this hunk of code. I've put a lot of code behind Excel sheets to push data into an Access database but never from Outlook. Does anyone know of any code samples, snips, explanations, etc. that could get me started on this? 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 Gustav at cactus.dk Thu May 11 06:06:59 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 11 May 2006 13:06:59 +0200 Subject: [AccessD] Top values query problem Message-ID: Hi Chester You could sort on Well and Date in a recordset you open in VBA. Then loop through this writing the first six records for each Well to a new (temp) table. That should run pretty fast. /gustav >>> Chester_Kaup at kindermorgan.com 10-05-2006 23:28 >>> Got around to trying this and had to make 2 changes. PT_Well and PT_Status were already strings so I removed the Str function. Query runs fine for a few records. The table I am working against has ~500,000 records. I gave up letting it run it was taking so long. Am I missing something or is there a better way to do this such as VBA? My query SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE PT_Well & "x" & Str(PT_Date) & "x" & PT_Status IN (SELECT TOP 6 T.PT_Well & "x" & Str(T.PT_Date) & "x" & T.PT_Status FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, May 10, 2006 4:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester Something like this where you use a pseudo key if you don't have a unique key: SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE Str(PT_Well) & "x" & Str(PT_Date) & "x" & Str(PT_Status) IN (SELECT TOP 6 Str(T.PT_Well) & "x" & Str(T.PT_Date) & "x" & Str(T.PT_Status) FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; This assumes you have only one record for each Well/Date. /gustav >>> Chester_Kaup at kindermorgan.com 09-05-2006 23:34 >>> When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; From Gustav at cactus.dk Thu May 11 06:12:56 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 11 May 2006 13:12:56 +0200 Subject: [AccessD] Resetting Autonumber seed Message-ID: Hi Bryan You mean ALTER COLUMN? /gustav >>> carbonnb at gmail.com 11-05-2006 03:21 >>> On 5/10/06, Robin wrote: > ALTER TABLE TableName ALTER COLUMN FieldName SET IDENTITY (2,4) > > Are you thinking I can't do this because I'm using Acess97 ? > (I've tried sbstituting IDENTITY for COUNTER but get the same error) The problem is ALTER TABLE is part of the DDL SQL Syntax, which is not supported in A97. From Chester_Kaup at kindermorgan.com Thu May 11 07:11:25 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 11 May 2006 07:11:25 -0500 Subject: [AccessD] Top values query problem Message-ID: Thanks. That is what I am going to do. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, May 11, 2006 6:07 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester You could sort on Well and Date in a recordset you open in VBA. Then loop through this writing the first six records for each Well to a new (temp) table. That should run pretty fast. /gustav >>> Chester_Kaup at kindermorgan.com 10-05-2006 23:28 >>> Got around to trying this and had to make 2 changes. PT_Well and PT_Status were already strings so I removed the Str function. Query runs fine for a few records. The table I am working against has ~500,000 records. I gave up letting it run it was taking so long. Am I missing something or is there a better way to do this such as VBA? My query SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE PT_Well & "x" & Str(PT_Date) & "x" & PT_Status IN (SELECT TOP 6 T.PT_Well & "x" & Str(T.PT_Date) & "x" & T.PT_Status FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, May 10, 2006 4:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester Something like this where you use a pseudo key if you don't have a unique key: SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE Str(PT_Well) & "x" & Str(PT_Date) & "x" & Str(PT_Status) IN (SELECT TOP 6 Str(T.PT_Well) & "x" & Str(T.PT_Date) & "x" & Str(T.PT_Status) FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; This assumes you have only one record for each Well/Date. /gustav >>> Chester_Kaup at kindermorgan.com 09-05-2006 23:34 >>> When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Thu May 11 07:30:54 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 11 May 2006 08:30:54 -0400 Subject: [AccessD] Outlook and Access Message-ID: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> Rocky, We had some code on our admin's Outlook that took a help desk e-mail with a certain subject and inserted it in an Access database. It's triggered by Outlook's Application_NewMail event but I have to warn you it's very inconsistent (at least it was here). On occasion (more frequently than occasionally) it missed items. The code is the same code you'd use to insert a record in Access from any system (Excel, web, etc.) the only difference is when the NewMail event triggers you read the new message's subject to determine what to do. We ended up disabling or removing the code from Outlook when we moved to Track-It to handle these requests. I have the code if you'd like to take a look (1 class module, 1 standard module, then Outlook code althought I do believe we ended up moving the class code right into NewMail event out of frustration). Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, May 11, 2006 1:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Outlook and Access Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: "If an email comes in with a 6 digit (alphanumeric) code in the Subject line, Outlook would make a call to Access, passing along the code and then delete the email. No code, email automatically deleted. The call to access would cause the code to be looked up and a status report emailed to the client if the code is current. " I suppose the receipt of any email would have to trigger this hunk of code. I've put a lot of code behind Excel sheets to push data into an Access database but never from Outlook. Does anyone know of any code samples, snips, explanations, etc. that could get me started on this? 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Thu May 11 07:46:40 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Thu, 11 May 2006 08:46:40 -0400 Subject: [AccessD] Outlook and Access In-Reply-To: <4462C9DE.3090303@san.rr.com> Message-ID: <000001c674f8$f97b5a00$b5b3d6d1@SUSANONE> Truly, working with Outlook and Access is one of those mysteries whereby the chosen developer is given code from the Gods while s/he sleeps... ;) Check Helen Feddema's site -- she does a lot of Outlook work, but I don't know that she'll have anything to help, but it's worth a look. http://www.feddema.com Susan H. Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: From harkinsss at bellsouth.net Thu May 11 07:53:05 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Thu, 11 May 2006 08:53:05 -0400 Subject: [AccessD] Outlook and Access In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> Message-ID: <000601c674f9$d949d0d0$b5b3d6d1@SUSANONE> I know this probably won't help, but Rocky -- did you know that you can export messages into an Access database -- it's really a simple process. If you could filter those messages into a specific folder as they arrived, you could easily export the entire folder. I don't know what your client really needs, and certainly don't want to talk you out of any work, but sometimes the easy way really is enough. ;) This is something they wouldn't have to automate -- just do it -- would take a short phone call over the phone to show them how. If I remember correctly, you can't export into an existing database, so they'd also have to work through that, but again -- we're talking about a few minutes work to import the new messages from a temp db into the production db. Susan H. Rocky, We had some code on our admin's Outlook that took a help desk e-mail with a certain subject and inserted it in an Access database. It's triggered by Outlook's Application_NewMail event but I have to warn you it's very inconsistent (at least it was here). On occasion (more frequently than occasionally) it missed items. The code is the same code you'd use to insert a record in Access from any system (Excel, web, etc.) the only difference is when the NewMail event triggers you read the new message's subject to determine what to do. We ended up disabling or removing the code from Outlook when we moved to Track-It to handle these requests. I have the code if you'd like to take a look (1 class module, 1 standard module, then Outlook code althought I do believe we ended up moving the class code right into NewMail event out of frustration). Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, May 11, 2006 1:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Outlook and Access Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: "If an email comes in with a 6 digit (alphanumeric) code in the Subject line, Outlook would make a call to Access, passing along the code and then delete the email. No code, email automatically deleted. The call to access would cause the code to be looked up and a status report emailed to the client if the code is current. " I suppose the receipt of any email would have to trigger this hunk of code. I've put a lot of code behind Excel sheets to push data into an Access database but never from Outlook. Does anyone know of any code samples, snips, explanations, etc. that could get me started on this? 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.392 / Virus Database: 268.5.5/335 - Release Date: 5/9/2006 From carbonnb at gmail.com Thu May 11 07:46:05 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 11 May 2006 08:46:05 -0400 Subject: [AccessD] Resetting Autonumber seed In-Reply-To: References: Message-ID: On 5/11/06, Gustav Brock wrote: > Hi Bryan > > You mean ALTER COLUMN? Um, yea. Sorry 'bout that. -- 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 bchacc at san.rr.com Thu May 11 08:23:45 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 06:23:45 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> Message-ID: <44633AE1.5070500@san.rr.com> Jim: I'd be grateful for a copy. You could send it offline - bchacc at san.rr.com. Is there a property sheet with event properties to set the event in Outlook like there is in Access? Or how does the event get triggered in Outlook? TIA Rocky Jim DeMarco wrote: > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail > with a certain subject and inserted it in an Access database. It's > triggered by Outlook's Application_NewMail event but I have to warn you > it's very inconsistent (at least it was here). On occasion (more > frequently than occasionally) it missed items. The code is the same > code you'd use to insert a record in Access from any system (Excel, web, > etc.) the only difference is when the NewMail event triggers you read > the new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved to > Track-It to handle these requests. I have the code if you'd like to > take a look (1 class module, 1 standard module, then Outlook code > althought I do believe we ended up moving the class code right into > NewMail event out of frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and > then delete the email. No code, email automatically deleted. The call > to access would cause the code to be looked up and a status report > emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > 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 > > -- > 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 Jdemarco at hudsonhealthplan.org Thu May 11 08:37:29 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 11 May 2006 09:37:29 -0400 Subject: [AccessD] Outlook and Access Message-ID: <08F823FD83787D4BA0B99CA580AD3C74037177D7@TTNEXCHCL2.hshhp.com> Yes there's a drop down. Choose "Application" from the left side and NewMail from the list on the right. I'll send it in a sec. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, May 11, 2006 9:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook and Access Jim: I'd be grateful for a copy. You could send it offline - bchacc at san.rr.com. Is there a property sheet with event properties to set the event in Outlook like there is in Access? Or how does the event get triggered in Outlook? TIA Rocky Jim DeMarco wrote: > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail > with a certain subject and inserted it in an Access database. It's > triggered by Outlook's Application_NewMail event but I have to warn > you it's very inconsistent (at least it was here). On occasion (more > frequently than occasionally) it missed items. The code is the same > code you'd use to insert a record in Access from any system (Excel, > web, > etc.) the only difference is when the NewMail event triggers you read > the new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved > to Track-It to handle these requests. I have the code if you'd like > to take a look (1 class module, 1 standard module, then Outlook code > althought I do believe we ended up moving the class code right into > NewMail event out of frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the > Subject line, Outlook would make a call to Access, passing along the > code and then delete the email. No code, email automatically deleted. > The call to access would cause the code to be looked up and a status > report emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code > samples, snips, explanations, etc. that could get me started on this? > > 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 > > -- > 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 Jdemarco at hudsonhealthplan.org Thu May 11 08:38:57 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 11 May 2006 09:38:57 -0400 Subject: [AccessD] Outlook and Access Message-ID: <08F823FD83787D4BA0B99CA580AD3C74037177D8@TTNEXCHCL2.hshhp.com> You can (or could at least) link to an Outlook folder too if that's an option. The data that shows in Access IIRC is not what you might expect though (sorry I can't be more clear but it's been quite a while since I tried that). Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, May 11, 2006 8:53 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook and Access I know this probably won't help, but Rocky -- did you know that you can export messages into an Access database -- it's really a simple process. If you could filter those messages into a specific folder as they arrived, you could easily export the entire folder. I don't know what your client really needs, and certainly don't want to talk you out of any work, but sometimes the easy way really is enough. ;) This is something they wouldn't have to automate -- just do it -- would take a short phone call over the phone to show them how. If I remember correctly, you can't export into an existing database, so they'd also have to work through that, but again -- we're talking about a few minutes work to import the new messages from a temp db into the production db. Susan H. Rocky, We had some code on our admin's Outlook that took a help desk e-mail with a certain subject and inserted it in an Access database. It's triggered by Outlook's Application_NewMail event but I have to warn you it's very inconsistent (at least it was here). On occasion (more frequently than occasionally) it missed items. The code is the same code you'd use to insert a record in Access from any system (Excel, web, etc.) the only difference is when the NewMail event triggers you read the new message's subject to determine what to do. We ended up disabling or removing the code from Outlook when we moved to Track-It to handle these requests. I have the code if you'd like to take a look (1 class module, 1 standard module, then Outlook code althought I do believe we ended up moving the class code right into NewMail event out of frustration). Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, May 11, 2006 1:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Outlook and Access Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: "If an email comes in with a 6 digit (alphanumeric) code in the Subject line, Outlook would make a call to Access, passing along the code and then delete the email. No code, email automatically deleted. The call to access would cause the code to be looked up and a status report emailed to the client if the code is current. " I suppose the receipt of any email would have to trigger this hunk of code. I've put a lot of code behind Excel sheets to push data into an Access database but never from Outlook. Does anyone know of any code samples, snips, explanations, etc. that could get me started on this? 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.392 / Virus Database: 268.5.5/335 - Release Date: 5/9/2006 -- 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 May 11 08:54:52 2006 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 11 May 2006 23:54:52 +1000 Subject: [AccessD] A2003:Syntax for NEXT on a subform called from main form Message-ID: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> Hi All I have a mainform that has a sub form I want the sub form to go to its next record when I push the Next button on the main form Anyone know what the syntax is? many thanks Darren From bchacc at san.rr.com Thu May 11 08:55:22 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 06:55:22 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74037177D8@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C74037177D8@TTNEXCHCL2.hshhp.com> Message-ID: <4463424A.30600@san.rr.com> It looks like running the whole thing from Access would be much easier and more reliable. I could set it up to run on a trimer interval and go look at Outlook to see if any of the messages he's looking for are there. But I think he wants the receipt of the email to trigger the code to push some data into access and then delete the email. Rocky Jim DeMarco wrote: > You can (or could at least) link to an Outlook folder too if that's an > option. The data that shows in Access IIRC is not what you might expect > though (sorry I can't be more clear but it's been quite a while since I > tried that). > > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Thursday, May 11, 2006 8:53 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook and Access > > I know this probably won't help, but Rocky -- did you know that you can > export messages into an Access database -- it's really a simple process. > If you could filter those messages into a specific folder as they > arrived, you could easily export the entire folder. I don't know what > your client really needs, and certainly don't want to talk you out of > any work, but sometimes the easy way really is enough. ;) This is > something they wouldn't have to automate -- just do it -- would take a > short phone call over the phone to show them how. If I remember > correctly, you can't export into an existing database, so they'd also > have to work through that, but again -- we're talking about a few > minutes work to import the new messages from a temp db into the > production db. > > Susan H. > > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail > with a certain subject and inserted it in an Access database. It's > triggered by Outlook's Application_NewMail event but I have to warn you > it's very inconsistent (at least it was here). On occasion (more > frequently than > occasionally) it missed items. The code is the same code you'd use to > insert a record in Access from any system (Excel, web, > etc.) the only difference is when the NewMail event triggers you read > the new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved to > Track-It to handle these requests. I have the code if you'd like to > take a look (1 class module, 1 standard module, then Outlook code > althought I do believe we ended up moving the class code right into > NewMail event out of frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and > then delete the email. No code, email automatically deleted. The call > to access would cause the code to be looked up and a status report > emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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.392 / Virus Database: 268.5.5/335 - Release Date: 5/9/2006 > > > -- > 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 Lambert.Heenan at AIG.com Thu May 11 09:57:38 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 11 May 2006 10:57:38 -0400 Subject: [AccessD] Outlook and Access Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F2175A3ED@xlivmbx21.aig.com> FYI: Helen's site is now at http://www.helenfeddema.com/ Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, May 11, 2006 8:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook and Access Truly, working with Outlook and Access is one of those mysteries whereby the chosen developer is given code from the Gods while s/he sleeps... ;) Check Helen Feddema's site -- she does a lot of Outlook work, but I don't know that she'll have anything to help, but it's worth a look. http://www.feddema.com Susan H. Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu May 11 10:24:31 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 08:24:31 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> Message-ID: <4463572F.1010309@san.rr.com> If someone knew what they were doing, about how many hours do you think it would take - 1? 2-4? 5-10? (anybody feel free to chime in here) Rocky Jim DeMarco wrote: > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail > with a certain subject and inserted it in an Access database. It's > triggered by Outlook's Application_NewMail event but I have to warn you > it's very inconsistent (at least it was here). On occasion (more > frequently than occasionally) it missed items. The code is the same > code you'd use to insert a record in Access from any system (Excel, web, > etc.) the only difference is when the NewMail event triggers you read > the new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved to > Track-It to handle these requests. I have the code if you'd like to > take a look (1 class module, 1 standard module, then Outlook code > althought I do believe we ended up moving the class code right into > NewMail event out of frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and > then delete the email. No code, email automatically deleted. The call > to access would cause the code to be looked up and a status report > emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > 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 > > -- > 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 DWUTKA at marlow.com Thu May 11 10:22:41 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 11 May 2006 10:22:41 -0500 Subject: [AccessD] Outlook and Access Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B2078@main2.marlow.com> What version of Outlook is your client using? Outlook 2003 has NewMailEx as an event, which will handle multiple incoming email events. The help file has sample code on how to 'capture' the new email coming in, and then you are simply dealing with working with an .mdb through VBA. However, you mentioned that you wanted to delete the emails that don't have a proper code, so am I to assume that this is not a 'users' email address? If it's not, you would need a machine dedicated to running Outlook for an 'unused' email address. What would work better there would be a service running on their mail server. Are they using an Exchange mail server? The service could just monitor that account, and do what you want. I have built services like that before. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, May 11, 2006 12:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Outlook and Access Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: "If an email comes in with a 6 digit (alphanumeric) code in the Subject line, Outlook would make a call to Access, passing along the code and then delete the email. No code, email automatically deleted. The call to access would cause the code to be looked up and a status report emailed to the client if the code is current. " I suppose the receipt of any email would have to trigger this hunk of code. I've put a lot of code behind Excel sheets to push data into an Access database but never from Outlook. Does anyone know of any code samples, snips, explanations, etc. that could get me started on this? 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu May 11 10:28:23 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 08:28:23 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <000601c674f9$d949d0d0$b5b3d6d1@SUSANONE> References: <000601c674f9$d949d0d0$b5b3d6d1@SUSANONE> Message-ID: <44635817.5050301@san.rr.com> James: Here's a two-step process - export from Outlook, import into Access. You might be able to handle the whole thing yourself this way. Depends on how much automation you want for this function. Rocky Susan Harkins wrote: > I know this probably won't help, but Rocky -- did you know that you can > export messages into an Access database -- it's really a simple process. If > you could filter those messages into a specific folder as they arrived, you > could easily export the entire folder. I don't know what your client really > needs, and certainly don't want to talk you out of any work, but sometimes > the easy way really is enough. ;) This is something they wouldn't have to > automate -- just do it -- would take a short phone call over the phone to > show them how. If I remember correctly, you can't export into an existing > database, so they'd also have to work through that, but again -- we're > talking about a few minutes work to import the new messages from a temp db > into the production db. > > Susan H. > > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail with a > certain subject and inserted it in an Access database. It's triggered by > Outlook's Application_NewMail event but I have to warn you it's very > inconsistent (at least it was here). On occasion (more frequently than > occasionally) it missed items. The code is the same code you'd use to > insert a record in Access from any system (Excel, web, > etc.) the only difference is when the NewMail event triggers you read the > new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved to > Track-It to handle these requests. I have the code if you'd like to take a > look (1 class module, 1 standard module, then Outlook code althought I do > believe we ended up moving the class code right into NewMail event out of > frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I have no > idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and then > delete the email. No code, email automatically deleted. The call to access > would cause the code to be looked up and a status report emailed to the > client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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.392 / Virus Database: 268.5.5/335 - Release Date: 5/9/2006 > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Thu May 11 10:29:09 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 08:29:09 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <000601c674f9$d949d0d0$b5b3d6d1@SUSANONE> References: <000601c674f9$d949d0d0$b5b3d6d1@SUSANONE> Message-ID: <44635845.2040303@san.rr.com> Susan: I forwarded your suggestion to the client. He's got a little bit of facility with Access and might find this solution practical. I don't know how much he wants this function to be automated. Rocky Susan Harkins wrote: > I know this probably won't help, but Rocky -- did you know that you can > export messages into an Access database -- it's really a simple process. If > you could filter those messages into a specific folder as they arrived, you > could easily export the entire folder. I don't know what your client really > needs, and certainly don't want to talk you out of any work, but sometimes > the easy way really is enough. ;) This is something they wouldn't have to > automate -- just do it -- would take a short phone call over the phone to > show them how. If I remember correctly, you can't export into an existing > database, so they'd also have to work through that, but again -- we're > talking about a few minutes work to import the new messages from a temp db > into the production db. > > Susan H. > > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail with a > certain subject and inserted it in an Access database. It's triggered by > Outlook's Application_NewMail event but I have to warn you it's very > inconsistent (at least it was here). On occasion (more frequently than > occasionally) it missed items. The code is the same code you'd use to > insert a record in Access from any system (Excel, web, > etc.) the only difference is when the NewMail event triggers you read the > new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved to > Track-It to handle these requests. I have the code if you'd like to take a > look (1 class module, 1 standard module, then Outlook code althought I do > believe we ended up moving the class code right into NewMail event out of > frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I have no > idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and then > delete the email. No code, email automatically deleted. The call to access > would cause the code to be looked up and a status report emailed to the > client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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.392 / Virus Database: 268.5.5/335 - Release Date: 5/9/2006 > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From DWUTKA at marlow.com Thu May 11 10:48:29 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 11 May 2006 10:48:29 -0500 Subject: [AccessD] Outlook and Access Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B2081@main2.marlow.com> Knew what they were doing? 30 minutes, depending on how fast you type. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, May 11, 2006 10:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook and Access If someone knew what they were doing, about how many hours do you think it would take - 1? 2-4? 5-10? (anybody feel free to chime in here) Rocky Jim DeMarco wrote: > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail > with a certain subject and inserted it in an Access database. It's > triggered by Outlook's Application_NewMail event but I have to warn you > it's very inconsistent (at least it was here). On occasion (more > frequently than occasionally) it missed items. The code is the same > code you'd use to insert a record in Access from any system (Excel, web, > etc.) the only difference is when the NewMail event triggers you read > the new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved to > Track-It to handle these requests. I have the code if you'd like to > take a look (1 class module, 1 standard module, then Outlook code > althought I do believe we ended up moving the class code right into > NewMail event out of frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and > then delete the email. No code, email automatically deleted. The call > to access would cause the code to be looked up and a status report > emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > 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 > > -- > 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 Jim.Hale at FleetPride.com Thu May 11 10:50:56 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 11 May 2006 10:50:56 -0500 Subject: [AccessD] Top values query problem Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC25@corp-es01.fleetpride.com> Check this out. It gives the top 6 values for each well. If a well has two records for a date it only returns one record for that date. Let me know if this does the trick. Jim Hale SELECT dbo_Prod_Tests.PT_Well, dbo_Prod_Tests.PT_Date, dbo_Prod_Tests.PT_Status FROM dbo_Prod_Tests INNER JOIN qryWells ON dbo_Prod_Tests.PT_Well = qryWells.PT_Well WHERE (((dbo_Prod_Tests.PT_Date) In (SELECT TOP 6 dbo_Prod_Tests.PT_Date FROM dbo_Prod_Tests WHERE (dbo_Prod_Tests.PT_Well=qrywells.PT_well) ORDER BY dbo_Prod_Tests.PT_Date DESC;))) ORDER BY dbo_Prod_Tests.PT_Well, dbo_Prod_Tests.PT_Date; where qryWells is a simple groupby query: SELECT dbo_Prod_Tests.PT_Well FROM dbo_Prod_Tests GROUP BY dbo_Prod_Tests.PT_Well; -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Tuesday, May 09, 2006 4:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] Top values query problem When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 *********************************************************************** 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 Jdemarco at hudsonhealthplan.org Thu May 11 11:09:25 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 11 May 2006 12:09:25 -0400 Subject: [AccessD] Outlook and Access Message-ID: <08F823FD83787D4BA0B99CA580AD3C740371784B@TTNEXCHCL2.hshhp.com> Shouldn't take long at all really. Should mention that if Outlook 2003 the security warnings may be an issue although you're not sending mail. I seem to recall we might have had an issue with that (because there was code running in an Outlook session). There's always ClickYes for that. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Thursday, May 11, 2006 11:48 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Outlook and Access Knew what they were doing? 30 minutes, depending on how fast you type. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, May 11, 2006 10:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook and Access If someone knew what they were doing, about how many hours do you think it would take - 1? 2-4? 5-10? (anybody feel free to chime in here) Rocky Jim DeMarco wrote: > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail > with a certain subject and inserted it in an Access database. It's > triggered by Outlook's Application_NewMail event but I have to warn > you it's very inconsistent (at least it was here). On occasion (more > frequently than occasionally) it missed items. The code is the same > code you'd use to insert a record in Access from any system (Excel, > web, > etc.) the only difference is when the NewMail event triggers you read > the new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved > to Track-It to handle these requests. I have the code if you'd like > to take a look (1 class module, 1 standard module, then Outlook code > althought I do believe we ended up moving the class code right into > NewMail event out of frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the > Subject line, Outlook would make a call to Access, passing along the > code and then delete the email. No code, email automatically deleted. > The call to access would cause the code to be looked up and a status > report emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code > samples, snips, explanations, etc. that could get me started on this? > > 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 > > -- > 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 Jdemarco at hudsonhealthplan.org Thu May 11 11:10:13 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 11 May 2006 12:10:13 -0400 Subject: [AccessD] Outlook and Access Message-ID: <08F823FD83787D4BA0B99CA580AD3C740371784C@TTNEXCHCL2.hshhp.com> I noticed that NewMailEx event when I went snooping into Outlook VBA this AM. That may have done the trick for us. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Thursday, May 11, 2006 11:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Outlook and Access What version of Outlook is your client using? Outlook 2003 has NewMailEx as an event, which will handle multiple incoming email events. The help file has sample code on how to 'capture' the new email coming in, and then you are simply dealing with working with an .mdb through VBA. However, you mentioned that you wanted to delete the emails that don't have a proper code, so am I to assume that this is not a 'users' email address? If it's not, you would need a machine dedicated to running Outlook for an 'unused' email address. What would work better there would be a service running on their mail server. Are they using an Exchange mail server? The service could just monitor that account, and do what you want. I have built services like that before. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, May 11, 2006 12:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Outlook and Access Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: "If an email comes in with a 6 digit (alphanumeric) code in the Subject line, Outlook would make a call to Access, passing along the code and then delete the email. No code, email automatically deleted. The call to access would cause the code to be looked up and a status report emailed to the client if the code is current. " I suppose the receipt of any email would have to trigger this hunk of code. I've put a lot of code behind Excel sheets to push data into an Access database but never from Outlook. Does anyone know of any code samples, snips, explanations, etc. that could get me started on this? 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 May 11 11:34:26 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 11 May 2006 09:34:26 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <4462C9DE.3090303@san.rr.com> References: <4462C9DE.3090303@san.rr.com> Message-ID: <44636792.2040100@shaw.ca> Here is a Sue Mosher's Outlook VBA code site It is sister site to http://www.slipstick.com which is more directed to user solutions and addons for Exchange and Outlook http://www.outlookcode.com This might be a starting point http://www.outlookcode.com/d/taskform.htm send reminders by email Rocky Smolin - Beach Access Software wrote: >Dear list: > >I have a request from a client to program something in Outlook but I >have no idea where to start. Quote: > >"If an email comes in with a 6 digit (alphanumeric) code in the Subject >line, Outlook would make a call to Access, passing along the code and >then delete the email. No code, email automatically deleted. The call >to access would cause the code to be looked up and a status report >emailed to the client if the code is current. " > >I suppose the receipt of any email would have to trigger this hunk of >code. > >I've put a lot of code behind Excel sheets to push data into an Access >database but never from Outlook. Does anyone know of any code samples, >snips, explanations, etc. that could get me started on this? > >MTIA, > >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 Thu May 11 11:45:01 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 09:45:01 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <44636792.2040100@shaw.ca> References: <4462C9DE.3090303@san.rr.com> <44636792.2040100@shaw.ca> Message-ID: <44636A0D.40904@san.rr.com> Thanks. Looks like a good resource. Rocky MartyConnelly wrote: > Here is a Sue Mosher's Outlook VBA code site > It is sister site to http://www.slipstick.com > which is more directed to user solutions and addons for Exchange and Outlook > > http://www.outlookcode.com > > This might be a starting point > http://www.outlookcode.com/d/taskform.htm send reminders by email > > Rocky Smolin - Beach Access Software wrote: > > >> Dear list: >> >> I have a request from a client to program something in Outlook but I >> have no idea where to start. Quote: >> >> "If an email comes in with a 6 digit (alphanumeric) code in the Subject >> line, Outlook would make a call to Access, passing along the code and >> then delete the email. No code, email automatically deleted. The call >> to access would cause the code to be looked up and a status report >> emailed to the client if the code is current. " >> >> I suppose the receipt of any email would have to trigger this hunk of >> code. >> >> I've put a lot of code behind Excel sheets to push data into an Access >> database but never from Outlook. Does anyone know of any code samples, >> snips, explanations, etc. that could get me started on this? >> >> 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 adtp at hotmail.com Thu May 11 12:52:16 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Thu, 11 May 2006 23:22:16 +0530 Subject: [AccessD] Top values query problem References: Message-ID: Chester, Sample subroutine given below should get you exceptionally fast results. T_Result is the target table to which top 6 results for each value of PT_Well get appended. Could you please try it out on your large size data set and confirm ? A.D.Tejpal --------------- Code in Click event of command button on Main form (SF_ResultSub is the name of control on main form acting as container for the subform fed by table T_Result) ============================================= Private Sub CmdResult_Click() Dim db As DAO.Database Dim rst As DAO.Recordset Dim Qst As String, PtWell As String Qst = "SELECT DISTINCT PT_Well " & _ "FROM dbo_Prod_Tests ORDER BY PT_Well;" Set db = CurrentDb Set rst = db.OpenRecordset(Qst) ' Clear table T_Result Qst = "Delete * From T_Result;" db.Execute Qst, dbFailOnError Do While Not rst.EOF ' Append Top 6 records pertaining to current value ' of PT_Wells, from main table into T_Result PtWell = rst.Fields("PT_Well") Qst = "INSERT INTO T_Result " & _ "(PT_Well, PT_Date, PT_Status) " & _ "SELECT Q1.PT_Well, Q1.PT_Date, " & _ "Q1.PT_Status FROM [SELECT TOP 6 " & _ "PT_Well, PT_Date, PT_Status " & _ "FROM dbo_Prod_Tests " & _ "WHERE PT_Well = '" & PtWell & "' " & _ "ORDER BY PT_Well, PT_Date DESC]. AS Q1;" db.Execute Qst, dbFailOnError rst.MoveNext Loop Me.SF_ResultSub.Requery rst.Close Set rst = Nothing Set db = Nothing End Sub ============================================= ----- Original Message ----- From: Kaup, Chester To: Access Developers discussion and problem solving Sent: Thursday, May 11, 2006 17:41 Subject: Re: [AccessD] Top values query problem Thanks. That is what I am going to do. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, May 11, 2006 6:07 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester You could sort on Well and Date in a recordset you open in VBA. Then loop through this writing the first six records for each Well to a new (temp) table. That should run pretty fast. /gustav >>> Chester_Kaup at kindermorgan.com 10-05-2006 23:28 >>> Got around to trying this and had to make 2 changes. PT_Well and PT_Status were already strings so I removed the Str function. Query runs fine for a few records. The table I am working against has ~500,000 records. I gave up letting it run it was taking so long. Am I missing something or is there a better way to do this such as VBA? My query SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE PT_Well & "x" & Str(PT_Date) & "x" & PT_Status IN (SELECT TOP 6 T.PT_Well & "x" & Str(T.PT_Date) & "x" & T.PT_Status FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, May 10, 2006 4:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester Something like this where you use a pseudo key if you don't have a unique key: SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE Str(PT_Well) & "x" & Str(PT_Date) & "x" & Str(PT_Status) IN (SELECT TOP 6 Str(T.PT_Well) & "x" & Str(T.PT_Date) & "x" & Str(T.PT_Status) FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; This assumes you have only one record for each Well/Date. /gustav >>> Chester_Kaup at kindermorgan.com 09-05-2006 23:34 >>> When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; From adtp at hotmail.com Thu May 11 13:00:55 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Thu, 11 May 2006 23:30:55 +0530 Subject: [AccessD] A2003:Syntax for NEXT on a subform called from main form References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> Message-ID: Darren, You can use the following syntax : Me.SF_Sub.Form.Recordset.MoveNext (SF_Sub is the name of control on the main form, serving as container for the subform). This does not require prior setting of focus on the subform. A.D.Tejpal --------------- ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Thursday, May 11, 2006 19:24 Subject: [AccessD] A2003:Syntax for NEXT on a subform called from main form Hi All I have a mainform that has a sub form. I want the sub form to go to its next record when I push the Next button on the main form Anyone know what the syntax is? many thanks Darren From John.Clark at niagaracounty.com Thu May 11 13:21:36 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 11 May 2006 14:21:36 -0400 Subject: [AccessD] Splitting up names In-Reply-To: References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> Message-ID: <44634870.167F.006B.0@niagaracounty.com> If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing From bchacc at san.rr.com Thu May 11 13:36:32 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 11:36:32 -0700 Subject: [AccessD] Splitting up names In-Reply-To: <44634870.167F.006B.0@niagaracounty.com> References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> <44634870.167F.006B.0@niagaracounty.com> Message-ID: <44638430.20105@san.rr.com> Look for the first space (intI = instr(1,strName," ")), then take the left and right parts based on the value of intI? Rocky John Clark wrote: > If got a user running a db in Access. She has a list of names and they > were all input into a single "name" field, rather than "last name" & > "first name." She would now like to split these names up, but there are > some double first names, as well as "jr" and "sr" suffixes. > > Is there a way to do this? > > Basically names might be like this: > > JOHN SMITH JR > MARY ELLEN SMITH > BARBARA SMITH > > And I'd need to get them like this into a first name field like: > > JOHN > MARY ELLEN > BARBARA > > and a last name field like: > > SMITH JR > SMITH > SMITH > > John W. Clark > Computer Programmer > Niagara County > Central Data Processing > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From DElam at jenkens.com Thu May 11 13:38:04 2006 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 11 May 2006 13:38:04 -0500 Subject: [AccessD] Splitting up names Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0492D651@natexch.jenkens.com> Hmm, there are a few things you might be able to pick out reliably like common prefixes and suffixes (Jr.), but the bulk will probably be best handled with a splitting fields on the spaces with manual cross checking. Data like the following make it impossible to tell which field that middle name belongs in. MARY ELLEN SMITH JOHN VAN HORN Debbie -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, May 11, 2006 1:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From reuben at gfconsultants.com Thu May 11 14:03:55 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 11 May 2006 15:03:55 -0400 Subject: [AccessD] Splitting up names In-Reply-To: <44634870.167F.006B.0@niagaracounty.com> Message-ID: How many records are there? I had a system that I needed to split addresses. Sometimes they even had an institution with them so I had to account for that as well. I had someone here do it somewhat manually. I created a form that showed the full text and had a field for every resulting piece. They would enter the complete text, insert a $ where the split should be, hit tab, and the data was split accordingly and the proper pieces went to the appropriate field. Then focus was set to the second field and the same thing happened. This allowed the splits to happen very quickly while also being confirmed by a person. I could have also had the user just enter my chosen delimiter ($) several times in one string and split it all in one step. The person that did this fixed about 2,000 address in 5-6 hours. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark > Sent: Thursday, May 11, 2006 2:22 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Splitting up names > > > If got a user running a db in Access. She has a list of names and they > were all input into a single "name" field, rather than "last name" & > "first name." She would now like to split these names up, but there are > some double first names, as well as "jr" and "sr" suffixes. > > Is there a way to do this? > > Basically names might be like this: > > JOHN SMITH JR > MARY ELLEN SMITH > BARBARA SMITH > > And I'd need to get them like this into a first name field like: > > JOHN > MARY ELLEN > BARBARA > > and a last name field like: > > SMITH JR > SMITH > SMITH > > John W. Clark > Computer Programmer > Niagara County > Central Data Processing > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tom.p at piedpiper.com.au Thu May 11 14:31:59 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Fri, 12 May 2006 03:31:59 +0800 Subject: [AccessD] Outlook and Access References: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> Message-ID: <005401c67531$927b4fc0$2900a8c0@TOMNEW> Rocky... Why involve Outlook? There are command line email clients that will check email on a time scale you specify that will save the individual emails to a folder ....you could then have an Access Database poll that directory for subject line codes and import what it deems important and delete any that are not. In turn Access could then reply to the emails with a certain code. The client could be set to NOT delete emails from the server when certain criteria were met. That way the email would come in to Outlook as per normal. I had something similar a few years ago for orders. Where it failed (for me) was I couldnt get a CONSISTENT subject line in the incoming email . I used http://www.infradig.com/postiex/index.shtml Regards Tom Keatley > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and > then delete the email. No code, email automatically deleted. The call > to access would cause the code to be looked up and a status report > emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > MTIA, > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com From Jdemarco at hudsonhealthplan.org Thu May 11 14:43:19 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 11 May 2006 15:43:19 -0400 Subject: [AccessD] Splitting up names Message-ID: <08F823FD83787D4BA0B99CA580AD3C74037178A4@TTNEXCHCL2.hshhp.com> John, I've got a module that does just that including middle initial and pedigree. Let me know if you want it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, May 11, 2006 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu May 11 14:51:24 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 12:51:24 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <005401c67531$927b4fc0$2900a8c0@TOMNEW> References: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> <005401c67531$927b4fc0$2900a8c0@TOMNEW> Message-ID: <446395BC.4070800@san.rr.com> Tom: Thanks. Sounds like a good alternative. I'll forward to the client. Best, Rocky Tom Keatley wrote: > Rocky... > > Why involve Outlook? > > There are command line email clients that will check email on a time scale > you specify that will save the individual emails to a folder ....you could > then have an Access Database poll that directory for subject line codes and > import what it deems important and delete any that are not. > > In turn Access could then reply to the emails with a certain code. > > The client could be set to NOT delete emails from the server when certain > criteria were met. That way the email would come in to Outlook as per > normal. > > I had something similar a few years ago for orders. Where it failed (for me) > was I couldnt get a CONSISTENT subject line in the incoming email . I used > http://www.infradig.com/postiex/index.shtml > > Regards > > Tom Keatley > > > >> Dear list: >> >> I have a request from a client to program something in Outlook but I >> have no idea where to start. Quote: >> >> "If an email comes in with a 6 digit (alphanumeric) code in the Subject >> line, Outlook would make a call to Access, passing along the code and >> then delete the email. No code, email automatically deleted. The call >> to access would cause the code to be looked up and a status report >> emailed to the client if the code is current. " >> >> I suppose the receipt of any email would have to trigger this hunk of >> code. >> >> I've put a lot of code behind Excel sheets to push data into an Access >> database but never from Outlook. Does anyone know of any code samples, >> snips, explanations, etc. that could get me started on this? >> >> 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 Jdemarco at hudsonhealthplan.org Thu May 11 14:54:09 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 11 May 2006 15:54:09 -0400 Subject: [AccessD] Splitting up names Message-ID: <08F823FD83787D4BA0B99CA580AD3C74037178AB@TTNEXCHCL2.hshhp.com> Apologies. That code is not to be found at the moment. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Thursday, May 11, 2006 3:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Splitting up names John, I've got a module that does just that including middle initial and pedigree. Let me know if you want it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, May 11, 2006 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu May 11 16:01:11 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 11 May 2006 16:01:11 -0500 Subject: [AccessD] Splitting up names Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B20A0@main2.marlow.com> The Split() function will split them into a string array, however, the JR and two name first names are going to be an issue. I would create a list of known suffixes, and then create a suffix field. Whatever you do is going to probably require a human to 'review' the results. Drew -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, May 11, 2006 1:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Thu May 11 16:13:43 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 11 May 2006 16:13:43 -0500 Subject: [AccessD] Top values query problem Message-ID: Against an SQL server table with the wells and the date sorted ascending 461,569 records run time was 23.6094 seconds. Against a native Access table with the wells sorted ascending and date sorted descending run time was 11.7656 seconds. The only problem I found was dates did not sort ascending. I see any reason why. Thanks for the code. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Thursday, May 11, 2006 12:52 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] Top values query problem Chester, Sample subroutine given below should get you exceptionally fast results. T_Result is the target table to which top 6 results for each value of PT_Well get appended. Could you please try it out on your large size data set and confirm ? A.D.Tejpal --------------- Code in Click event of command button on Main form (SF_ResultSub is the name of control on main form acting as container for the subform fed by table T_Result) ============================================= Private Sub CmdResult_Click() Dim db As DAO.Database Dim rst As DAO.Recordset Dim Qst As String, PtWell As String Qst = "SELECT DISTINCT PT_Well " & _ "FROM dbo_Prod_Tests ORDER BY PT_Well;" Set db = CurrentDb Set rst = db.OpenRecordset(Qst) ' Clear table T_Result Qst = "Delete * From T_Result;" db.Execute Qst, dbFailOnError Do While Not rst.EOF ' Append Top 6 records pertaining to current value ' of PT_Wells, from main table into T_Result PtWell = rst.Fields("PT_Well") Qst = "INSERT INTO T_Result " & _ "(PT_Well, PT_Date, PT_Status) " & _ "SELECT Q1.PT_Well, Q1.PT_Date, " & _ "Q1.PT_Status FROM [SELECT TOP 6 " & _ "PT_Well, PT_Date, PT_Status " & _ "FROM dbo_Prod_Tests " & _ "WHERE PT_Well = '" & PtWell & "' " & _ "ORDER BY PT_Well, PT_Date DESC]. AS Q1;" db.Execute Qst, dbFailOnError rst.MoveNext Loop Me.SF_ResultSub.Requery rst.Close Set rst = Nothing Set db = Nothing End Sub ============================================= ----- Original Message ----- From: Kaup, Chester To: Access Developers discussion and problem solving Sent: Thursday, May 11, 2006 17:41 Subject: Re: [AccessD] Top values query problem Thanks. That is what I am going to do. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, May 11, 2006 6:07 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester You could sort on Well and Date in a recordset you open in VBA. Then loop through this writing the first six records for each Well to a new (temp) table. That should run pretty fast. /gustav >>> Chester_Kaup at kindermorgan.com 10-05-2006 23:28 >>> Got around to trying this and had to make 2 changes. PT_Well and PT_Status were already strings so I removed the Str function. Query runs fine for a few records. The table I am working against has ~500,000 records. I gave up letting it run it was taking so long. Am I missing something or is there a better way to do this such as VBA? My query SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE PT_Well & "x" & Str(PT_Date) & "x" & PT_Status IN (SELECT TOP 6 T.PT_Well & "x" & Str(T.PT_Date) & "x" & T.PT_Status FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, May 10, 2006 4:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester Something like this where you use a pseudo key if you don't have a unique key: SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE Str(PT_Well) & "x" & Str(PT_Date) & "x" & Str(PT_Status) IN (SELECT TOP 6 Str(T.PT_Well) & "x" & Str(T.PT_Date) & "x" & Str(T.PT_Status) FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; This assumes you have only one record for each Well/Date. /gustav >>> Chester_Kaup at kindermorgan.com 09-05-2006 23:34 >>> When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu May 11 16:13:57 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 11 May 2006 14:13:57 -0700 Subject: [AccessD] Splitting up names In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B8B20A0@main2.marlow.com> References: <17724746D360394AA3BFE5B8D40A9C1B8B20A0@main2.marlow.com> Message-ID: <4463A915.2000506@shaw.ca> http://www.helenfeddema.com/access.htm Parsing Name and Address Data -- The Utilities accarch83.zip This might be helpful. There are companies that do address cleaning for $0.05 to $0.10 each DWUTKA at marlow.com wrote: >The Split() function will split them into a string array, however, the JR >and two name first names are going to be an issue. I would create a list of >known suffixes, and then create a suffix field. Whatever you do is going to >probably require a human to 'review' the results. > >Drew > >-----Original Message----- >From: John Clark [mailto:John.Clark at niagaracounty.com] >Sent: Thursday, May 11, 2006 1:22 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Splitting up names > >If got a user running a db in Access. She has a list of names and they >were all input into a single "name" field, rather than "last name" & >"first name." She would now like to split these names up, but there are >some double first names, as well as "jr" and "sr" suffixes. > >Is there a way to do this? > >Basically names might be like this: > >JOHN SMITH JR >MARY ELLEN SMITH >BARBARA SMITH > >And I'd need to get them like this into a first name field like: > >JOHN >MARY ELLEN >BARBARA > >and a last name field like: > >SMITH JR >SMITH >SMITH > >John W. Clark >Computer Programmer >Niagara County >Central Data Processing > > > -- Marty Connelly Victoria, B.C. Canada From harkinsss at bellsouth.net Thu May 11 17:01:41 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Thu, 11 May 2006 18:01:41 -0400 Subject: [AccessD] Splitting up names In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B8B20A0@main2.marlow.com> Message-ID: <000901c67546$7d038120$aeb3d6d1@SUSANONE> I was thinking the same thing Drew -- you can automate the split, but with inconsistent values to start with, there's no substitute for the human review to clean up the few that just don't fit. You might could even flag the ones that seem inconsistent to help out a bit. Susan H. The Split() function will split them into a string array, however, the JR and two name first names are going to be an issue. I would create a list of known suffixes, and then create a suffix field. Whatever you do is going to probably require a human to 'review' the results. From darrend at nimble.com.au Thu May 11 17:12:23 2006 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 12 May 2006 08:12:23 +1000 Subject: [AccessD] A2003:Syntax for NEXT on a subform called from mainform In-Reply-To: Message-ID: <20060511221225.MKKI4761.omta01ps.mx.bigpond.com@DENZILLAP> Brilliant AD You've been my 'lifesaver' these last 2 days Many many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Friday, 12 May 2006 4:01 AM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] A2003:Syntax for NEXT on a subform called from mainform Darren, You can use the following syntax : Me.SF_Sub.Form.Recordset.MoveNext (SF_Sub is the name of control on the main form, serving as container for the subform). This does not require prior setting of focus on the subform. A.D.Tejpal --------------- ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Thursday, May 11, 2006 19:24 Subject: [AccessD] A2003:Syntax for NEXT on a subform called from main form Hi All I have a mainform that has a sub form. I want the sub form to go to its next record when I push the Next button on the main form Anyone know what the syntax is? many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu May 11 17:33:18 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 11 May 2006 17:33:18 -0500 Subject: [AccessD] Splitting up names Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDB2D@main2.marlow.com> Sure, create a name count field, so anything that isn't 2 goes at the top... Drew -----Original Message----- From: Susan Harkins [mailto:harkinsss at bellsouth.net] Sent: Thursday, May 11, 2006 5:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Splitting up names I was thinking the same thing Drew -- you can automate the split, but with inconsistent values to start with, there's no substitute for the human review to clean up the few that just don't fit. You might could even flag the ones that seem inconsistent to help out a bit. Susan H. The Split() function will split them into a string array, however, the JR and two name first names are going to be an issue. I would create a list of known suffixes, and then create a suffix field. Whatever you do is going to probably require a human to 'review' the results. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu May 11 18:08:48 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 11 May 2006 16:08:48 -0700 Subject: [AccessD] Splitting up names In-Reply-To: <000901c67546$7d038120$aeb3d6d1@SUSANONE> Message-ID: What I used to do about this what use split to break the names up, then dim a dynamic array with 5 dimensions that I used to hold Salutation, FirstName, MiddleName, LastName, Title. I examined the last item in the split array and if it was Jr, Sr, III, PhD, DDS, etc. and if so put it into the dynamic(4). Then I looked at the first item in the split to see if it was a salutation like Mr, Mrs, Dr, etc. and if so, I put it into dynamic(0). If there was no salutation or title, the first word (or the first after the salutation) went into firstname and the last went into lastname, with anything left over going into middlename. That was handled by code--then I reviewed it all and made manual corrections. I was working with huge mailing lists at the time, so anything that reduced the need to manually split 50,000+ names was a huge benefit. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, May 11, 2006 3:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Splitting up names I was thinking the same thing Drew -- you can automate the split, but with inconsistent values to start with, there's no substitute for the human review to clean up the few that just don't fit. You might could even flag the ones that seem inconsistent to help out a bit. Susan H. The Split() function will split them into a string array, however, the JR and two name first names are going to be an issue. I would create a list of known suffixes, and then create a suffix field. Whatever you do is going to probably require a human to 'review' the results. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Fri May 12 00:01:02 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Fri, 12 May 2006 10:31:02 +0530 Subject: [AccessD] Splitting up names References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> <44634870.167F.006B.0@niagaracounty.com> Message-ID: John, Functions Fn_FirstName() & Fn_LastName() as given below, should get you the desired results as per pattern indicated by you.. Just make sure that the string variable named SuffixList in Fn_FirstName() includes all the likely suffixes. Could you please try it out and let me know whether any further fine tuning is needed. Best wishes, A.D.Tejpal ---------------- =========================================== Function Fn_FirstName(ByVal FullName As _ String) As String ' Returns First Name Dim Txt As String, Cnt As Long Dim SuffixList As String, Rtv As Variant SuffixList = "Sr-Jr-Dr-Esq-Rev-Hon-Sir-Lord" Txt = FullName Rtv = Split(SuffixList, "-") For Cnt = 0 To UBound(Rtv) Txt = Trim(Replace(Txt, " " & Rtv(Cnt), "")) Next Fn_FirstName = Trim(Left(Txt, InStrRev(Txt, " ") - 1)) End Function ------------------------------------------------------------------------------ Function Fn_LastName(ByVal FullName As _ String) As String ' Returns Last Name Dim Txt As String Txt = Fn_FirstName(FullName) Fn_LastName = Trim(Mid(FullName, Len(Txt) + 1)) End Function =========================================== ----- Original Message ----- From: John Clark To: accessd at databaseadvisors.com Sent: Thursday, May 11, 2006 23:51 Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing From kp at sdsonline.net Fri May 12 02:41:45 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 12 May 2006 17:41:45 +1000 Subject: [AccessD] Outlook and Access References: <4462C9DE.3090303@san.rr.com> Message-ID: <00b401c67597$86b099f0$6601a8c0@office> Rocky - I had a similiar requirement once and I used the following logic. 1. I made a subfolder of Inbox in Outlook and in my case called it 'Customer Inquiries'. 2. Create a mail rule in Outlook which checks for the 6 digit code you are looking for and puts it into the subfolder you created in step 1. 3. The code I have pasted below comes from an app of mine which then uses an on-click event to read messages into a table in Access called TblOutlookMail from the Customer Inquiries folder in Outlook. Hope this help - cheers -------------------------------------------------------------------------------- Public Function ProcessMailMessagesInFolder() 'Adapted by K Pelletti from code from Helen Feddema 3-28-2002 Dim strerrormsg As String On Error GoTo Err_Handler Dim appOutlook As New Outlook.Application Dim nms As Outlook.NameSpace Dim fld As Outlook.MAPIFolder Dim myfld As Outlook.MAPIFolder Dim itm As Object Dim msg As Outlook.MailItem Dim strMessage As String Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim strsql As String Dim prj As Object Dim lngItemCount As Long Dim IntFolderNo As Integer Dim IntTotalNoFoldersInInbox As Integer Dim IntNoMailItems As Integer Dim BoolFolderFound As Boolean BoolFolderFound = False Set nms = appOutlook.GetNamespace("MAPI") Set fld = nms.GetDefaultFolder(olFolderInbox) IntFolderNo = 0 IntTotalNoFoldersInInbox = 0 IntNoMailItems = 0 IntTotalNoFoldersInInbox = fld.Folders.Count ' MsgBox ("Inbox has: " & fld.Folders.Count & "subfolders.") Do Until IntFolderNo = IntTotalNoFoldersInInbox ' Inner loop. IntFolderNo = IntFolderNo + 1 Set myfld = fld.Folders(IntFolderNo) If myfld.Name = "Customer Inquiries" Then 'Rocky - put your subfolder Outlook name here BoolFolderFound = True IntNoMailItems = myfld.Items.Count ' MsgBox ("No messages is: " & IntNoMailItems) Exit Do End If Loop If BoolFolderFound = False Then MsgBox ("Unable to find the Customer Inquiries Folder in Outlook." & vbCrLf & vbCrLf & "(The folder should be a subfolder of inbox.)"), , "Hudsons Database" GoTo Normal_exit End If If myfld Is Nothing Then GoTo Err_Handler End If Debug.Print "Folder default item type: " & myfld.DefaultItemType If myfld.DefaultItemType <> olMailItem Then MsgBox "Folder does not contain mail messages; Exiting", , "Importing Mail" GoTo Normal_exit End If lngItemCount = myfld.Items.Count ' Debug.Print "Number of messages in folder: " _ ' & lngItemCount If lngItemCount = 0 Then MsgBox ("There are no mail messages in the Customer Inquiries folder."), , "Hudsons Database" GoTo Normal_exit End If 'Process items in selected folder strsql = "DELETE * FROM tblOutlookMail" DoCmd.SetWarnings False DoCmd.RunSQL strsql Set dbs = CurrentDb Set rst = dbs.OpenRecordset("tblOutlookMail") For Each itm In myfld.Items If itm.Class = olMail Then Set msg = itm With rst .AddNew !Subject = msg.Subject !Body = msg.Body !CC = msg.CC !BCC = msg.BCC !Sent = msg.SentOn !FromName = msg.SenderName .Update End With End If Next itm rst.Close Set prj = Application.CurrentProject If prj.AllForms("frmOutlookMail").IsLoaded = True Then Forms("frmOutlookMail").Requery Else DoCmd.OpenForm "frmOutlookMail", , , , , acDialog End If 'Forms("frmOutlookMail").SetFocus Normal_exit: ' MsgBox ("No of new mail messages: " & IntNoMailItems), , "Mail Import" Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" hCursor = CursorID RetVal = SetCursor(hCursor) Resume Normal_exit End Function -------------------------------------------------------------------------------- Kath Pelletti ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, May 11, 2006 3:21 PM Subject: [AccessD] Outlook and Access Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: "If an email comes in with a 6 digit (alphanumeric) code in the Subject line, Outlook would make a call to Access, passing along the code and then delete the email. No code, email automatically deleted. The call to access would cause the code to be looked up and a status report emailed to the client if the code is current. " I suppose the receipt of any email would have to trigger this hunk of code. I've put a lot of code behind Excel sheets to push data into an Access database but never from Outlook. Does anyone know of any code samples, snips, explanations, etc. that could get me started on this? 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Fri May 12 07:24:58 2006 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Fri, 12 May 2006 08:24:58 -0400 Subject: [AccessD] Trimmean Function in Excel - How to in Access In-Reply-To: Message-ID: Hi Mark, I did implement the changes that I needed yesterday. I had to modify the code to drop the zero values from the dataset before they went into the function to use the trimmean that you created. I was able to do so. Thank you so much for your help in this. It seemed like such a simple thing to do, but it turned out to be a little more complicated than I originally thought it would be. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business From bchacc at san.rr.com Fri May 12 08:18:37 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 12 May 2006 06:18:37 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <00b401c67597$86b099f0$6601a8c0@office> References: <4462C9DE.3090303@san.rr.com> <00b401c67597$86b099f0$6601a8c0@office> Message-ID: <44648B2D.6070501@san.rr.com> Kath: Thanks for the code. If he can compromise by having Access look at Outlook instead of having Outlook push stuff into Access this looks like it will do the job. He could even put it into a timer event and check every five minutes instead of an on-click. Best, Rocky Kath Pelletti wrote: > Rocky - I had a similiar requirement once and I used the following logic. > > 1. I made a subfolder of Inbox in Outlook and in my case called it 'Customer Inquiries'. > > 2. Create a mail rule in Outlook which checks for the 6 digit code you are looking for and puts it into the subfolder you created in step 1. > > 3. The code I have pasted below comes from an app of mine which then uses an on-click event to read messages into a table in Access called TblOutlookMail from the Customer Inquiries folder in Outlook. > > Hope this help - cheers > > -------------------------------------------------------------------------------- > > Public Function ProcessMailMessagesInFolder() > 'Adapted by K Pelletti from code from Helen Feddema 3-28-2002 > Dim strerrormsg As String > On Error GoTo Err_Handler > > Dim appOutlook As New Outlook.Application > > Dim nms As Outlook.NameSpace > Dim fld As Outlook.MAPIFolder > Dim myfld As Outlook.MAPIFolder > > Dim itm As Object > Dim msg As Outlook.MailItem > Dim strMessage As String > Dim dbs As DAO.Database > Dim rst As DAO.Recordset > Dim strsql As String > Dim prj As Object > Dim lngItemCount As Long > Dim IntFolderNo As Integer > Dim IntTotalNoFoldersInInbox As Integer > Dim IntNoMailItems As Integer > Dim BoolFolderFound As Boolean > BoolFolderFound = False > > Set nms = appOutlook.GetNamespace("MAPI") > Set fld = nms.GetDefaultFolder(olFolderInbox) > IntFolderNo = 0 > IntTotalNoFoldersInInbox = 0 > IntNoMailItems = 0 > IntTotalNoFoldersInInbox = fld.Folders.Count > ' MsgBox ("Inbox has: " & fld.Folders.Count & "subfolders.") > > Do Until IntFolderNo = IntTotalNoFoldersInInbox ' Inner loop. > IntFolderNo = IntFolderNo + 1 > Set myfld = fld.Folders(IntFolderNo) > If myfld.Name = "Customer Inquiries" Then 'Rocky - put your subfolder Outlook name here > BoolFolderFound = True > IntNoMailItems = myfld.Items.Count > ' MsgBox ("No messages is: " & IntNoMailItems) > Exit Do > End If > Loop > > If BoolFolderFound = False Then > MsgBox ("Unable to find the Customer Inquiries Folder in Outlook." & vbCrLf & vbCrLf & "(The folder should be a subfolder of inbox.)"), , "Hudsons Database" > GoTo Normal_exit > End If > > If myfld Is Nothing Then > GoTo Err_Handler > End If > > Debug.Print "Folder default item type: " & myfld.DefaultItemType > > If myfld.DefaultItemType <> olMailItem Then > MsgBox "Folder does not contain mail messages; Exiting", , "Importing Mail" > GoTo Normal_exit > End If > > lngItemCount = myfld.Items.Count > ' Debug.Print "Number of messages in folder: " _ > ' & lngItemCount > > If lngItemCount = 0 Then > MsgBox ("There are no mail messages in the Customer Inquiries folder."), , "Hudsons Database" > GoTo Normal_exit > End If > > 'Process items in selected folder > strsql = "DELETE * FROM tblOutlookMail" > DoCmd.SetWarnings False > DoCmd.RunSQL strsql > Set dbs = CurrentDb > Set rst = dbs.OpenRecordset("tblOutlookMail") > > For Each itm In myfld.Items > If itm.Class = olMail Then > Set msg = itm > With rst > .AddNew > !Subject = msg.Subject > !Body = msg.Body > !CC = msg.CC > !BCC = msg.BCC > !Sent = msg.SentOn > !FromName = msg.SenderName > .Update > End With > End If > Next itm > rst.Close > > Set prj = Application.CurrentProject > > If prj.AllForms("frmOutlookMail").IsLoaded = True Then > Forms("frmOutlookMail").Requery > Else > DoCmd.OpenForm "frmOutlookMail", , , , , acDialog > End If > > 'Forms("frmOutlookMail").SetFocus > > Normal_exit: > ' MsgBox ("No of new mail messages: " & IntNoMailItems), , "Mail Import" > Exit Function > Err_Handler: > MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" > hCursor = CursorID > RetVal = SetCursor(hCursor) > Resume Normal_exit > > End Function > > -------------------------------------------------------------------------------- > > Kath Pelletti > > ----- Original Message ----- > From: Rocky Smolin - Beach Access Software > To: Access Developers discussion and problem solving > Sent: Thursday, May 11, 2006 3:21 PM > Subject: [AccessD] Outlook and Access > > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and > then delete the email. No code, email automatically deleted. The call > to access would cause the code to be looked up and a status report > emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > 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 > > -- > 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 Jim.Hale at FleetPride.com Fri May 12 08:58:38 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 12 May 2006 08:58:38 -0500 Subject: [AccessD] Top values query problem Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC2E@corp-es01.fleetpride.com> I am really curious if the SQL solution I sent you is faster. Did you have an opportunity to try it? I always tend to use SQL solutions if they are available over code on the theory they are faster. This may just be programmer's lore however, so I am curious about this instance. Jim Hale -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Thursday, May 11, 2006 4:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Top values query problem Against an SQL server table with the wells and the date sorted ascending 461,569 records run time was 23.6094 seconds. Against a native Access table with the wells sorted ascending and date sorted descending run time was 11.7656 seconds. The only problem I found was dates did not sort ascending. I see any reason why. Thanks for the code. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Thursday, May 11, 2006 12:52 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] Top values query problem Chester, Sample subroutine given below should get you exceptionally fast results. T_Result is the target table to which top 6 results for each value of PT_Well get appended. Could you please try it out on your large size data set and confirm ? A.D.Tejpal --------------- Code in Click event of command button on Main form (SF_ResultSub is the name of control on main form acting as container for the subform fed by table T_Result) ============================================= Private Sub CmdResult_Click() Dim db As DAO.Database Dim rst As DAO.Recordset Dim Qst As String, PtWell As String Qst = "SELECT DISTINCT PT_Well " & _ "FROM dbo_Prod_Tests ORDER BY PT_Well;" Set db = CurrentDb Set rst = db.OpenRecordset(Qst) ' Clear table T_Result Qst = "Delete * From T_Result;" db.Execute Qst, dbFailOnError Do While Not rst.EOF ' Append Top 6 records pertaining to current value ' of PT_Wells, from main table into T_Result PtWell = rst.Fields("PT_Well") Qst = "INSERT INTO T_Result " & _ "(PT_Well, PT_Date, PT_Status) " & _ "SELECT Q1.PT_Well, Q1.PT_Date, " & _ "Q1.PT_Status FROM [SELECT TOP 6 " & _ "PT_Well, PT_Date, PT_Status " & _ "FROM dbo_Prod_Tests " & _ "WHERE PT_Well = '" & PtWell & "' " & _ "ORDER BY PT_Well, PT_Date DESC]. AS Q1;" db.Execute Qst, dbFailOnError rst.MoveNext Loop Me.SF_ResultSub.Requery rst.Close Set rst = Nothing Set db = Nothing End Sub ============================================= *********************************************************************** 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 May 12 09:00:05 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 12 May 2006 09:00:05 -0500 Subject: [AccessD] Outlook and Access Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC2F@corp-es01.fleetpride.com> Very nice. What datatype did you use for tblOutlookMail.body? Jim Hale -----Original Message----- From: Kath Pelletti [mailto:kp at sdsonline.net] Sent: Friday, May 12, 2006 2:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook and Access Rocky - I had a similiar requirement once and I used the following logic. 1. I made a subfolder of Inbox in Outlook and in my case called it 'Customer Inquiries'. 2. Create a mail rule in Outlook which checks for the 6 digit code you are looking for and puts it into the subfolder you created in step 1. 3. The code I have pasted below comes from an app of mine which then uses an on-click event to read messages into a table in Access called TblOutlookMail from the Customer Inquiries folder in Outlook. Hope this help - cheers *********************************************************************** 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 harkinsss at bellsouth.net Fri May 12 09:16:51 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Fri, 12 May 2006 10:16:51 -0400 Subject: [AccessD] Top values query problem In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC2E@corp-es01.fleetpride.com> Message-ID: <000001c675ce$b73c4150$8eb3d6d1@SUSANONE> I am really curious if the SQL solution I sent you is faster. Did you have an opportunity to try it? I always tend to use SQL solutions if they are available over code on the theory they are faster. This may just be programmer's lore however, so I am curious about this instance. ============Jim, since SQL speaks directly to the engine, I'm sure it's faster. You might not "see" the difference in performance, but it's bound to be faster. Susan H. From dgibso at uark.edu Fri May 12 10:30:33 2006 From: dgibso at uark.edu (David A. Gibson) Date: Fri, 12 May 2006 10:30:33 -0500 Subject: [AccessD] Control within a Control In-Reply-To: References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> <44634870.167F.006B.0@niagaracounty.com> Message-ID: <7.0.1.0.0.20060512100746.0191a910@uark.edu> A coworker has just presented a conundrum of sorts. He has been tasked to display data from a table within a combobox, no prob with that except some are checkboxes. User wants checkboxes displayed within the combobox and not Yes/No, True/False, or -1/0. How can a checkbox be displayed within a combobox? David G. From markamatte at hotmail.com Fri May 12 11:11:37 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 12 May 2006 16:11:37 +0000 Subject: [AccessD] Select Multiple records on form In-Reply-To: <7.0.1.0.0.20060512100746.0191a910@uark.edu> Message-ID: Hello All, I'm probably missing something simple here...but...I have a continuous form in A2K using a NON-updateable recordset. I would like the user to be able to select multiple records...and then click a button to do some other stuff. My issue is how to select multiple records on this form...I'm thinking some sort of conditional formatting...but not sure. Any ideas/suggestions/direction? Thanks, Mark A. Matte From Lambert.Heenan at AIG.com Fri May 12 11:14:34 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 12 May 2006 11:14:34 -0500 Subject: [AccessD] Control within a Control Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F2175A755@xlivmbx21.aig.com> A combo box is so-called because it is a combination of a textbox and a list. It is designed to accept textual input and nothing else. It might be possible to *display* a checkbox value by converting the true/false values to particular characters. For instance the Unicode Arial font has a square root symbol that could be used as a checkmark, and the same font has a 'white square' character that could represent an unchecked checkbox. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David A. Gibson Sent: Friday, May 12, 2006 11:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] Control within a Control A coworker has just presented a conundrum of sorts. He has been tasked to display data from a table within a combobox, no prob with that except some are checkboxes. User wants checkboxes displayed within the combobox and not Yes/No, True/False, or -1/0. How can a checkbox be displayed within a combobox? David G. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 12 11:28:29 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 12 May 2006 09:28:29 -0700 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: Hold down the Ctl key when selecting the records. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, May 12, 2006 9:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Select Multiple records on form Hello All, I'm probably missing something simple here...but...I have a continuous form in A2K using a NON-updateable recordset. I would like the user to be able to select multiple records...and then click a button to do some other stuff. My issue is how to select multiple records on this form...I'm thinking some sort of conditional formatting...but not sure. Any ideas/suggestions/direction? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri May 12 11:47:04 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 12 May 2006 16:47:04 +0000 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: That was the first thing I tried...not working...is there a setting or something that would prevent this from working? Thanks, Mark >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Select Multiple records on form >Date: Fri, 12 May 2006 09:28:29 -0700 > >Hold down the Ctl key when selecting the records. > > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, May 12, 2006 9:12 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Select Multiple records on form > >Hello All, > >I'm probably missing something simple here...but...I have a continuous >form in A2K using a NON-updateable recordset. I would like the user to >be able to select multiple records...and then click a button to do some >other stuff. > >My issue is how to select multiple records on this form...I'm thinking >some sort of conditional formatting...but not sure. Any >ideas/suggestions/direction? > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Donald.A.McGillivray at sprint.com Fri May 12 12:19:00 2006 From: Donald.A.McGillivray at sprint.com (Mcgillivray, Don [IT]) Date: Fri, 12 May 2006 12:19:00 -0500 Subject: [AccessD] Select Multiple records on form Message-ID: Just guessing here, but maybe because it's a "NON-updateable" recordset. If it can't be modified, the ability to select may be disabled. HTH, Don From KIsmert at TexasSystems.com Fri May 12 12:31:34 2006 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Fri, 12 May 2006 12:31:34 -0500 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: Mark, Not possible using just Access. The user is free to select a range, but the instant they click on any other Access control, the range collapses to the last record touched. I have had success using the Toolbar from Microsoft Common Controls (mscomctl.ocx). When the user clicks on an ActiveX Toolbar button, Access doesn't see the click, and doesn't collapse the range. Your code can then process the range. -Ken -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Friday, May 12, 2006 11:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Select Multiple records on form Hello All, I'm probably missing something simple here...but...I have a continuous form in A2K using a NON-updateable recordset. I would like the user to be able to select multiple records...and then click a button to do some other stuff. My issue is how to select multiple records on this form...I'm thinking some sort of conditional formatting...but not sure. Any ideas/suggestions/direction? Thanks, Mark A. Matte From KIsmert at TexasSystems.com Fri May 12 12:37:43 2006 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Fri, 12 May 2006 12:37:43 -0500 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: Mark, Show Record Selectors. The user can click and drag on the selectors. -Ken -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Friday, May 12, 2006 11:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Select Multiple records on form That was the first thing I tried...not working...is there a setting or something that would prevent this from working? Thanks, Mark From adtp at hotmail.com Fri May 12 13:39:27 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Sat, 13 May 2006 00:09:27 +0530 Subject: [AccessD] Select Multiple records on form References: Message-ID: Mark, On a continuous form, so long as record selectors are available, you can pick up the selection via form's click event and then apply dynamic conditional formatting so as to highlight only the records covered by current selection. Form's SelTop & SelHeight properties are handy in this context. Sample code as given below, will ensure that all records currently selected by the user get distinctly highlighted across the full row. Note - The performance of conditional formatting in Access 2003 is found to be better than that in Access 2000 (Access 2000 file format in both cases). Best wishes, A.D.Tejpal --------------- Code in module of continuous form (ID is the name of primary key field) ========================================= Private Sub Form_Click() P_SetFormat_A End Sub ---------------------------------------------------------------------------- Private Sub Form_Current() P_SetFormat_A End Sub ---------------------------------------------------------------------------- Private Function Fn_SelectedBlock(ByVal PkNumber _ As Long) As Long ' Returns 1 if the record with this PkNumber ' falls in selected block, otherwise 0 Dim rst As DAO.Recordset Dim RecNum As Long, InSelection As Long InSelection = 0 ' Default Set rst = Me.RecordsetClone rst.FindFirst "ID = " & PkNumber If Not rst.NoMatch Then RecNum = rst.AbsolutePosition + 1 If RecNum >= Me.SelTop And _ RecNum <= Me.SelTop + _ (Me.SelHeight - 1) Then InSelection = 1 End If End If Fn_SelectedBlock = InSelection rst.Close Set rst = Nothing End Function ---------------------------------------------------------------------------- Public Sub P_SetFormat_A() ' Sets fresh Conditional Formatting in Detail section Dim ct As Control For Each ct In Me.Detail.Controls P_SetFormat_B ct.Name Next Me.Repaint End Sub ---------------------------------------------------------------------------- Private Sub P_SetFormat_B(ByVal ControlName As String) ' Sets fresh Conditional Formatting ' (in text box named ControlName) Dim Cdn As String On Error Resume Next ' For controls not suited to ' conditional formatting With Me(ControlName).FormatConditions .Delete Cdn = "Fn_SelectedBlock(ID) <> 0" With .Add(acExpression, , Cdn) .BackColor = 16777164 .FontBold = True End With End With On Error GoTo 0 End Sub ========================================= ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Friday, May 12, 2006 21:41 Subject: [AccessD] Select Multiple records on form Hello All, I'm probably missing something simple here...but...I have a continuous form in A2K using a NON-updateable recordset. I would like the user to be able to select multiple records...and then click a button to do some other stuff. My issue is how to select multiple records on this form...I'm thinking some sort of conditional formatting...but not sure. Any ideas/suggestions/direction? Thanks, Mark A. Matte From mwp.reid at qub.ac.uk Fri May 12 13:50:17 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 12 May 2006 19:50:17 +0100 Subject: [AccessD] ADPs in Access 2007 - Update References: <445D24AC.10167.F57CEAD@stuart.lexacorp.com.pg> Message-ID: Update >From what I can see there are still some issues but the GUI tools will be available and usable with limits in an Access 2007 ADP. I apologise but NDA stops me detailing anything. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From markamatte at hotmail.com Fri May 12 15:13:02 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 12 May 2006 20:13:02 +0000 Subject: [AccessD] Select Multiple records on form Message-ID: A.D., Thank you very much for the code. It is acting strange...I think...If I click or navigate to a record...all other records are 'grayed' out...and the single row is highlighted for about 3 seconds...then the screen is back to normal. I think I'm in the right direction...I just need to select more than one(non-sequential), have them stay selected, and do something with the ones selected. Thanks, Mark >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] Select Multiple records on form >Date: Sat, 13 May 2006 00:09:27 +0530 > >Mark, > > On a continuous form, so long as record selectors are available, you >can pick up the selection via form's click event and then apply dynamic >conditional formatting so as to highlight only the records covered by >current selection. Form's SelTop & SelHeight properties are handy in this >context. > > Sample code as given below, will ensure that all records currently >selected by the user get distinctly highlighted across the full row. > > Note - The performance of conditional formatting in Access 2003 is >found to be better than that in Access 2000 (Access 2000 file format in >both cases). > >Best wishes, >A.D.Tejpal >--------------- > >Code in module of continuous form >(ID is the name of primary key field) >========================================= >Private Sub Form_Click() > P_SetFormat_A >End Sub >---------------------------------------------------------------------------- >Private Sub Form_Current() > P_SetFormat_A >End Sub >---------------------------------------------------------------------------- >Private Function Fn_SelectedBlock(ByVal PkNumber _ > As Long) As Long > ' Returns 1 if the record with this PkNumber > ' falls in selected block, otherwise 0 > Dim rst As DAO.Recordset > Dim RecNum As Long, InSelection As Long > > InSelection = 0 ' Default > Set rst = Me.RecordsetClone > rst.FindFirst "ID = " & PkNumber > If Not rst.NoMatch Then > RecNum = rst.AbsolutePosition + 1 > If RecNum >= Me.SelTop And _ > RecNum <= Me.SelTop + _ > (Me.SelHeight - 1) Then > InSelection = 1 > End If > End If > > Fn_SelectedBlock = InSelection > > rst.Close > Set rst = Nothing >End Function >---------------------------------------------------------------------------- >Public Sub P_SetFormat_A() > ' Sets fresh Conditional Formatting in Detail section > Dim ct As Control > > For Each ct In Me.Detail.Controls > P_SetFormat_B ct.Name > Next > > Me.Repaint >End Sub >---------------------------------------------------------------------------- >Private Sub P_SetFormat_B(ByVal ControlName As String) >' Sets fresh Conditional Formatting >' (in text box named ControlName) > Dim Cdn As String > > On Error Resume Next ' For controls not suited to > ' conditional formatting > With Me(ControlName).FormatConditions > .Delete > > Cdn = "Fn_SelectedBlock(ID) <> 0" > With .Add(acExpression, , Cdn) > .BackColor = 16777164 > .FontBold = True > End With > End With > On Error GoTo 0 >End Sub >========================================= > > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Friday, May 12, 2006 21:41 > Subject: [AccessD] Select Multiple records on form > > > Hello All, > > I'm probably missing something simple here...but...I have a continuous >form > in A2K using a NON-updateable recordset. I would like the user to be >able > to select multiple records...and then click a button to do some other >stuff. > > My issue is how to select multiple records on this form...I'm thinking >some > sort of conditional formatting...but not sure. Any > ideas/suggestions/direction? > > Thanks, > > Mark A. Matte >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From john at winhaven.net Fri May 12 17:31:32 2006 From: john at winhaven.net (John Bartow) Date: Fri, 12 May 2006 17:31:32 -0500 Subject: [AccessD] Control within a Control In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F2175A755@xlivmbx21.aig.com> Message-ID: <05d701c67613$d26a5d00$6502a8c0@ScuzzPaq> David, Beyond Lambert's suggestion I think the only solution would be to use an active X control from a third party. There are some out there that can present data in various formats and may be able to do what you need. I haven't used this but it looks as if the List Component of Solutions::PIM Professional will do this. Here's a web link: http://www.databasecreations.com/prod_solpim.htm HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, May 12, 2006 11:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Control within a Control A combo box is so-called because it is a combination of a textbox and a list. It is designed to accept textual input and nothing else. It might be possible to *display* a checkbox value by converting the true/false values to particular characters. For instance the Unicode Arial font has a square root symbol that could be used as a checkmark, and the same font has a 'white square' character that could represent an unchecked checkbox. Lambert From kp at sdsonline.net Fri May 12 19:27:24 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Sat, 13 May 2006 10:27:24 +1000 Subject: [AccessD] Outlook and Access References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC2F@corp-es01.fleetpride.com> Message-ID: <001001c67624$0255b770$6601a8c0@office> Jim - datatype is memo Kath ----- Original Message ----- From: Hale, Jim To: 'Access Developers discussion and problem solving' Sent: Saturday, May 13, 2006 12:00 AM Subject: Re: [AccessD] Outlook and Access Very nice. What datatype did you use for tblOutlookMail.body? Jim Hale -----Original Message----- From: Kath Pelletti [mailto:kp at sdsonline.net] Sent: Friday, May 12, 2006 2:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook and Access Rocky - I had a similiar requirement once and I used the following logic. 1. I made a subfolder of Inbox in Outlook and in my case called it 'Customer Inquiries'. 2. Create a mail rule in Outlook which checks for the 6 digit code you are looking for and puts it into the subfolder you created in step 1. 3. The code I have pasted below comes from an app of mine which then uses an on-click event to read messages into a table in Access called TblOutlookMail from the Customer Inquiries folder in Outlook. Hope this help - cheers *********************************************************************** 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 artful at rogers.com Sat May 13 04:55:53 2006 From: artful at rogers.com (Arthur Fuller) Date: Sat, 13 May 2006 05:55:53 -0400 (EDT) Subject: [AccessD] Multi value field contents In-Reply-To: Message-ID: <20060513095553.25354.qmail@web88206.mail.re2.yahoo.com> Assuming that every value has been hit at least once, what's wrong with "SELECT DISTINCT value INTO tableName"? Once you've got them, you can add an identity column, add an int column to the table, do a join and an update query to populate it, then drop the original column. Nothing to it. Or am I missing something? Arthur Martin Reid wrote: I am sorting this myself but was wondering what you think about this and any non obvious solutionsyou may have? I have a field containing value1; value2; value3 Breaks all notions of relational design. The table is a table project associated with many developers. In the Project Task Name Field the values are the developer names associated with the projects. Is it possible in code to Break out the developer names and populate a table properly. This is Access 2007 and SQL Server 2005. The data is in SQL Server 2005 You response may be reused but full credit will be given. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Sat 06/05/2006 01:46 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Enumerate SQL Servers You might have problems with SQLDMO on SQL 2005 as it has been supplanted with SQLSMO and you might have to use WMI, I haven't checked the differences. Martin Reid wrote: >Thanks James. > >Just did something similar for the actual database names which is step 2. Idea is combo 1 lists the servers, then combo 2 lists the databases on each server. > > > >Best Wishes > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of James Barash >Sent: Fri 05/05/2006 20:36 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Enumerate SQL Servers > > > >Martin: > >Here is a example which should work in Access. You will need to reference >the SQLDMO library to make it work. > > Dim oApp As SQLDMO.Application > Dim oNames As SQLDMO.NameList > Dim oName As Variant > > Set oApp = New SQLDMO.Application > Set oNames = oApp.ListAvailableSQLServers() > For Each oName In oNames > cboServers.AddItem oName > Next > >Hope it helps. > >James Barash > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Friday, May 05, 2006 3:05 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] Enumerate SQL Servers > > >Anyone got an example of populating a drop down list in Access with all >available SQL Servers? >I am building a new login procedure. > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >-- >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.392 / Virus Database: 268.5.5/333 - Release Date: 05/05/2006 > > -- 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 mwp.reid at qub.ac.uk Sat May 13 06:02:33 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 13 May 2006 12:02:33 +0100 Subject: [AccessD] Multi value field contents References: <20060513095553.25354.qmail@web88206.mail.re2.yahoo.com> Message-ID: Arthur In Access 2007 you can have a field that displays multi values. Its a new property for Lookups Allow MultipleValues. For example A Task has many developers associated with it. (Yeah I no but its an example) So in the Access window you can double click the field and Access opens a little floating window showing all the tasks. You select multiple tasks by clicking a check box. Works fine in Access. Under the covers the engine builds a fully relational model but you cant get at it yet via code. When you upsize this to SQL Server or SQL Server 2005, the field is upsized as text and the multi values are in the field as task1;task2;task3 Thus breaking relational design What I wanted to do was to recreate the true relational design via code to correct this in SQL Server. Now the REAL MS reason for this is to enable you to hook this up with SharePoint which does deal with this properly. As it also works with attachment data types. OH and there is good news re ADPs in SQL 2005 but I cant tell you HA I can send youa couple of scree shots of list if you would liek to see this effect. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Arthur Fuller Sent: Sat 13/05/2006 10:55 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi value field contents Assuming that every value has been hit at least once, what's wrong with "SELECT DISTINCT value INTO tableName"? Once you've got them, you can add an identity column, add an int column to the table, do a join and an update query to populate it, then drop the original column. Nothing to it. Or am I missing something? Arthur Martin Reid wrote: I am sorting this myself but was wondering what you think about this and any non obvious solutionsyou may have? I have a field containing value1; value2; value3 Breaks all notions of relational design. The table is a table project associated with many developers. In the Project Task Name Field the values are the developer names associated with the projects. Is it possible in code to Break out the developer names and populate a table properly. This is Access 2007 and SQL Server 2005. The data is in SQL Server 2005 You response may be reused but full credit will be given. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Sat 06/05/2006 01:46 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Enumerate SQL Servers You might have problems with SQLDMO on SQL 2005 as it has been supplanted with SQLSMO and you might have to use WMI, I haven't checked the differences. Martin Reid wrote: >Thanks James. > >Just did something similar for the actual database names which is step 2. Idea is combo 1 lists the servers, then combo 2 lists the databases on each server. > > > >Best Wishes > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of James Barash >Sent: Fri 05/05/2006 20:36 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Enumerate SQL Servers > > > >Martin: > >Here is a example which should work in Access. You will need to reference >the SQLDMO library to make it work. > > Dim oApp As SQLDMO.Application > Dim oNames As SQLDMO.NameList > Dim oName As Variant > > Set oApp = New SQLDMO.Application > Set oNames = oApp.ListAvailableSQLServers() > For Each oName In oNames > cboServers.AddItem oName > Next > >Hope it helps. > >James Barash > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Friday, May 05, 2006 3:05 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] Enumerate SQL Servers > > >Anyone got an example of populating a drop down list in Access with all >available SQL Servers? >I am building a new login procedure. > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >-- >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.392 / Virus Database: 268.5.5/333 - Release Date: 05/05/2006 > > -- 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 -- 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 Sat May 13 16:49:28 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 13 May 2006 22:49:28 +0100 Subject: [AccessD] OT Reporting Services References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC2F@corp-es01.fleetpride.com> <001001c67624$0255b770$6601a8c0@office> Message-ID: Anyone have any luck importing real reports into Reporting Services from Access. I dont mean Northwind, I mean real reports with VBA and stuff. Northwind is easy few fixes and they run. I tried it and got 2 working reports out of about 30 imported. The rest I reckon would dbe easier to actually do from scratch in the report designer. Must admid SQL Express 2005 Advanced with the free development toolkit is most impressive. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From harkinsss at bellsouth.net Sat May 13 18:15:07 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sat, 13 May 2006 19:15:07 -0400 Subject: [AccessD] OT Reporting Services In-Reply-To: Message-ID: <001601c676e3$13c9e4d0$bfb3d6d1@SUSANONE> When you say they're not working, what do you mean? How are they not working? What's their source? Susan H. Anyone have any luck importing real reports into Reporting Services from Access. I dont mean Northwind, I mean real reports with VBA and stuff. Northwind is easy few fixes and they run. From mwp.reid at qub.ac.uk Sun May 14 02:40:15 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 14 May 2006 08:40:15 +0100 Subject: [AccessD] OT Reporting Services Message-ID: <001f01c67729$ea6770e1$1b0e758f@ads.qub.ac.uk> Take northwind. Import reports few fixes and it easy. They all can work. Take a real report, vba events etc waste of time, Be just as quick to use reporting services to start again. Was wondering if anyone had got this work for real stuff. Just by importing. Reporting Services dosnt support events,linking sub reports etc of course it has it own way of dealing with this. Martin -----Original Message----- From: "Susan Harkins" Sent: 5/14/06 12:20:37 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] OT Reporting Services When you say they're not working, what do you mean? How are they not working? What's their source? Susan H. Anyone have any luck importing real reports into Reporting Services from Access. I dont mean Northwind, I mean real reports with VBA and stuff. Northwind is easy few fixes and they run. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Sun May 14 08:12:23 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sun, 14 May 2006 09:12:23 -0400 Subject: [AccessD] OT Reporting Services In-Reply-To: <001f01c67729$ea6770e1$1b0e758f@ads.qub.ac.uk> Message-ID: <001d01c67758$0a8b8160$bfb3d6d1@SUSANONE> I haven't even looked at Reporting Services. That sure sounds like a mess though. :( I checked my copy of Mike's book and there's a huge chapter on Reporting Services, but no mention of problems importing existing reports -- just the instructions for how to do it. :( There's one warning blurb about RS not supporting many Access Report objects. Susan H. Take northwind. Import reports few fixes and it easy. They all can work. Take a real report, vba events etc waste of time, Be just as quick to use reporting services to start again. Was wondering if anyone had got this work for real stuff. Just by importing. Reporting Services dosnt support events,linking sub reports etc of course it has it own way of dealing with this. From mwp.reid at qub.ac.uk Sun May 14 08:33:20 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 14 May 2006 14:33:20 +0100 Subject: [AccessD] OT Reporting Services References: <001d01c67758$0a8b8160$bfb3d6d1@SUSANONE> Message-ID: Its a powerful and flexible tool no doubt and has many advantages. Lots of things are much the same just need to relearn a lot. Its also FREE with Express which is good. Almost every example uses Northwind which is easy to sort out. A real report is a totally different story particulary one that uses a lot of VBA etc. I was wondering if anyone had converted or managed to work with real reports in the environment. The impression I get is it would be as quick to start all over as fix up a complex report. Express itself is very impressive. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Susan Harkins Sent: Sun 14/05/2006 14:12 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT Reporting Services I haven't even looked at Reporting Services. That sure sounds like a mess though. :( I checked my copy of Mike's book and there's a huge chapter on Reporting Services, but no mention of problems importing existing reports -- just the instructions for how to do it. :( There's one warning blurb about RS not supporting many Access Report objects. Susan H. Take northwind. Import reports few fixes and it easy. They all can work. Take a real report, vba events etc waste of time, Be just as quick to use reporting services to start again. Was wondering if anyone had got this work for real stuff. Just by importing. Reporting Services dosnt support events,linking sub reports etc of course it has it own way of dealing with this. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Sun May 14 12:08:33 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 14 May 2006 12:08:33 -0500 Subject: [AccessD] Update Name Mapping for Name Autocorrect Message-ID: <000601c67779$084b7970$0200a8c0@danwaters> Hello to everyone, I like the concept of the Name Autocorrect option in Access, but everyone seems to say to stay away from it. I did a search in the Archive and learned about Name Mapping in Access. In the Archives you'll find an entry with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. This last half of this entry explains what name mapping is. So, to get name mapping up to date, I wrote the following procedure. It opens most objects in design view and then saves them. Now I can use Name Autocorrect as it was intended. Time will tell if it helps or hurts! If you want to give it a try, copy the following code into a standard module and run it. Good Luck! Dan ---------------------------------------------------------------------------- Option Compare Database Option Explicit Private Sub ResetObjectNameMaps() On Error GoTo EH '-- This procedure will open almost all of the tables, queries, forms, and reports in design view, and then close them _ with acSaveYes. This will prepare these objects to be able to correctly take advantage _ of the Name Autocorrect option. There is a behind the scenes functionality called 'Name Mapping' that is managed by Access _ when Name Autocorrect is turned on. If it has been off, then each table, query, report, and form must be _ opened and saved in design view to completely update Name Mapping. '-- 1) Turn on Perform Name AutoCorrect in Access options. _ 2) Second, run this procedure. _ 3) Then leave Perform Name Autocorrect on. Dim tbl As TableDef Dim qry As QueryDef Dim frm As Object Dim rpt As Object Dim stgName As String Dim intObjectCount As Integer Application.Echo False '-- Tables For Each tbl In CurrentDb.TableDefs '-- Skip linked tables or Access System tables If Not (tbl.Attributes = dbAttachedTable Or tbl.Attributes = dbAttachedODBC Or Left(tbl.Name, 4) = "Msys") Then intObjectCount = intObjectCount + 1 stgName = tbl.Name DoCmd.OpenTable stgName, acViewDesign, acEdit DoCmd.Close acTable, stgName, acSaveYes End If Next MsgBox intObjectCount & " Tables!" intObjectCount = 0 '-- Queries '-- Note: If a query has Owner permission and you are not the Owner, this will error out. For Each qry In CurrentDb.QueryDefs If Not (Left(qry.Name, 4)) = "~sq_" Then intObjectCount = intObjectCount + 1 stgName = qry.Name DoCmd.OpenQuery stgName, acViewDesign, acEdit DoCmd.Close acQuery, stgName, acSaveYes End If Next MsgBox intObjectCount & " Queries!" intObjectCount = 0 '-- Forms For Each frm In Application.CurrentProject.AllForms intObjectCount = intObjectCount + 1 stgName = frm.Name DoCmd.OpenForm stgName, acDesign DoCmd.Close acForm, stgName, acSaveYes Next MsgBox intObjectCount & " Forms!" intObjectCount = 0 '-- Reports For Each rpt In Application.CurrentProject.AllReports intObjectCount = intObjectCount + 1 stgName = rpt.Name DoCmd.OpenReport stgName, acDesign DoCmd.Close acReport, stgName, acSaveYes Next MsgBox intObjectCount & " Reports!" Application.Echo True Exit Sub EH: Application.Echo True MsgBox Err.Number & ": " & Err.Description & vbCrLf & vbCrLf & "Object Name: " & stgName End Sub From bheid at appdevgrp.com Mon May 15 10:33:21 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 15 May 2006 11:33:21 -0400 Subject: [AccessD] To re-link or not to re-link... Message-ID: <916187228923D311A6FE00A0CC3FAA30D353DC@ADGSERVER> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby From markamatte at hotmail.com Mon May 15 10:41:39 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 15 May 2006 15:41:39 +0000 Subject: [AccessD] Select Multiple records on form Message-ID: In stepping through the code and watching the screen change with each line of code I isolated the quirk I had noticed Friday. When you execute the line "With .Add(acExpression, , Cdn)"...the control it is on turns gray for about 3 seconds and then changes back...before the next line is executed. What would cause this? The same thing happens as the next 2 lines are executed. Thanks, Mark >From: "Mark A Matte" >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Select Multiple records on form >Date: Fri, 12 May 2006 20:13:02 +0000 > >A.D., > >Thank you very much for the code. It is acting strange...I think...If I >click or navigate to a record...all other records are 'grayed' out...and >the >single row is highlighted for about 3 seconds...then the screen is back to >normal. > >I think I'm in the right direction...I just need to select more than >one(non-sequential), have them stay selected, and do something with the >ones >selected. > >Thanks, > >Mark > > >From: "A.D.TEJPAL" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >CC: ADT > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Sat, 13 May 2006 00:09:27 +0530 > > > >Mark, > > > > On a continuous form, so long as record selectors are available, you > >can pick up the selection via form's click event and then apply dynamic > >conditional formatting so as to highlight only the records covered by > >current selection. Form's SelTop & SelHeight properties are handy in this > >context. > > > > Sample code as given below, will ensure that all records currently > >selected by the user get distinctly highlighted across the full row. > > > > Note - The performance of conditional formatting in Access 2003 is > >found to be better than that in Access 2000 (Access 2000 file format in > >both cases). > > > >Best wishes, > >A.D.Tejpal > >--------------- > > > >Code in module of continuous form > >(ID is the name of primary key field) > >========================================= > >Private Sub Form_Click() > > P_SetFormat_A > >End Sub > >---------------------------------------------------------------------------- > >Private Sub Form_Current() > > P_SetFormat_A > >End Sub > >---------------------------------------------------------------------------- > >Private Function Fn_SelectedBlock(ByVal PkNumber _ > > As Long) As Long > > ' Returns 1 if the record with this PkNumber > > ' falls in selected block, otherwise 0 > > Dim rst As DAO.Recordset > > Dim RecNum As Long, InSelection As Long > > > > InSelection = 0 ' Default > > Set rst = Me.RecordsetClone > > rst.FindFirst "ID = " & PkNumber > > If Not rst.NoMatch Then > > RecNum = rst.AbsolutePosition + 1 > > If RecNum >= Me.SelTop And _ > > RecNum <= Me.SelTop + _ > > (Me.SelHeight - 1) Then > > InSelection = 1 > > End If > > End If > > > > Fn_SelectedBlock = InSelection > > > > rst.Close > > Set rst = Nothing > >End Function > >---------------------------------------------------------------------------- > >Public Sub P_SetFormat_A() > > ' Sets fresh Conditional Formatting in Detail section > > Dim ct As Control > > > > For Each ct In Me.Detail.Controls > > P_SetFormat_B ct.Name > > Next > > > > Me.Repaint > >End Sub > >---------------------------------------------------------------------------- > >Private Sub P_SetFormat_B(ByVal ControlName As String) > >' Sets fresh Conditional Formatting > >' (in text box named ControlName) > > Dim Cdn As String > > > > On Error Resume Next ' For controls not suited to > > ' conditional formatting > > With Me(ControlName).FormatConditions > > .Delete > > > > Cdn = "Fn_SelectedBlock(ID) <> 0" > > With .Add(acExpression, , Cdn) > > .BackColor = 16777164 > > .FontBold = True > > End With > > End With > > On Error GoTo 0 > >End Sub > >========================================= > > > > ----- Original Message ----- > > From: Mark A Matte > > To: accessd at databaseadvisors.com > > Sent: Friday, May 12, 2006 21:41 > > Subject: [AccessD] Select Multiple records on form > > > > > > Hello All, > > > > I'm probably missing something simple here...but...I have a continuous > >form > > in A2K using a NON-updateable recordset. I would like the user to be > >able > > to select multiple records...and then click a button to do some other > >stuff. > > > > My issue is how to select multiple records on this form...I'm thinking > >some > > sort of conditional formatting...but not sure. Any > > ideas/suggestions/direction? > > > > Thanks, > > > > Mark A. Matte > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From dgibso at uark.edu Mon May 15 10:45:39 2006 From: dgibso at uark.edu (David A. Gibson) Date: Mon, 15 May 2006 10:45:39 -0500 Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect In-Reply-To: <000601c67779$084b7970$0200a8c0@danwaters> References: <000601c67779$084b7970$0200a8c0@danwaters> Message-ID: <7.0.1.0.0.20060515104329.019e0d80@uark.edu> How do you manage to access posts 2 months in the future??? :-D :-D :-D :-D David G. At 12:08 PM 5/14/2006, you wrote: >Hello to everyone, > >In the Archives you'll find an entry >with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. > >Good Luck! >Dan From DWUTKA at marlow.com Mon May 15 11:01:04 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 15 May 2006 11:01:04 -0500 Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDB35@main2.marlow.com> It's a new feature of Outlook 2008. Microsoft decided that their clients were tired of waiting for emails to come through, so now they have 'predictive' email, which lets you organize your email before it was ever even sent... ;) Drew -----Original Message----- From: David A. Gibson [mailto:dgibso at uark.edu] Sent: Monday, May 15, 2006 10:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect How do you manage to access posts 2 months in the future??? :-D :-D :-D :-D David G. At 12:08 PM 5/14/2006, you wrote: >Hello to everyone, > >In the Archives you'll find an entry >with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. > >Good Luck! >Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon May 15 11:09:03 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 15 May 2006 18:09:03 +0200 Subject: [AccessD] To re-link or not to re-link... Message-ID: Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby From Gustav at cactus.dk Mon May 15 11:30:29 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 15 May 2006 18:30:29 +0200 Subject: [AccessD] Select Multiple records on form Message-ID: Hi Mark With Me(ControlName).FormatConditions .Delete Cdn = "Fn_SelectedBlock(ID) <> 0" With .Add(acExpression, , Cdn) .BackColor = 16777164 .FontBold = True End With End With That code looks clunky to me. Did you try changing it to something that specifically Set a FormatCondition object, then adjusts properties BackColor and FontBold of this? /gustav >>> markamatte at hotmail.com 15-05-2006 17:41 >>> In stepping through the code and watching the screen change with each line of code I isolated the quirk I had noticed Friday. When you execute the line "With .Add(acExpression, , Cdn)"...the control it is on turns gray for about 3 seconds and then changes back...before the next line is executed. What would cause this? The same thing happens as the next 2 lines are executed. Thanks, Mark >From: "Mark A Matte" >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Select Multiple records on form >Date: Fri, 12 May 2006 20:13:02 +0000 > >A.D., > >Thank you very much for the code. It is acting strange...I think...If I >click or navigate to a record...all other records are 'grayed' out...and >the >single row is highlighted for about 3 seconds...then the screen is back to >normal. > >I think I'm in the right direction...I just need to select more than >one(non-sequential), have them stay selected, and do something with the >ones >selected. > >Thanks, > >Mark > > >From: "A.D.TEJPAL" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >CC: ADT > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Sat, 13 May 2006 00:09:27 +0530 > > > >Mark, > > > > On a continuous form, so long as record selectors are available, you > >can pick up the selection via form's click event and then apply dynamic > >conditional formatting so as to highlight only the records covered by > >current selection. Form's SelTop & SelHeight properties are handy in this > >context. > > > > Sample code as given below, will ensure that all records currently > >selected by the user get distinctly highlighted across the full row. > > > > Note - The performance of conditional formatting in Access 2003 is > >found to be better than that in Access 2000 (Access 2000 file format in > >both cases). > > > >Best wishes, > >A.D.Tejpal > >--------------- > > > >Code in module of continuous form > >(ID is the name of primary key field) > >========================================= > >Private Sub Form_Click() > > P_SetFormat_A > >End Sub > >---------------------------------------------------------------------------- > >Private Sub Form_Current() > > P_SetFormat_A > >End Sub > >---------------------------------------------------------------------------- > >Private Function Fn_SelectedBlock(ByVal PkNumber _ > > As Long) As Long > > ' Returns 1 if the record with this PkNumber > > ' falls in selected block, otherwise 0 > > Dim rst As DAO.Recordset > > Dim RecNum As Long, InSelection As Long > > > > InSelection = 0 ' Default > > Set rst = Me.RecordsetClone > > rst.FindFirst "ID = " & PkNumber > > If Not rst.NoMatch Then > > RecNum = rst.AbsolutePosition + 1 > > If RecNum >= Me.SelTop And _ > > RecNum <= Me.SelTop + _ > > (Me.SelHeight - 1) Then > > InSelection = 1 > > End If > > End If > > > > Fn_SelectedBlock = InSelection > > > > rst.Close > > Set rst = Nothing > >End Function > >---------------------------------------------------------------------------- > >Public Sub P_SetFormat_A() > > ' Sets fresh Conditional Formatting in Detail section > > Dim ct As Control > > > > For Each ct In Me.Detail.Controls > > P_SetFormat_B ct.Name > > Next > > > > Me.Repaint > >End Sub > >---------------------------------------------------------------------------- > >Private Sub P_SetFormat_B(ByVal ControlName As String) > >' Sets fresh Conditional Formatting > >' (in text box named ControlName) > > Dim Cdn As String > > > > On Error Resume Next ' For controls not suited to > > ' conditional formatting > > With Me(ControlName).FormatConditions > > .Delete > > > > Cdn = "Fn_SelectedBlock(ID) <> 0" > > With .Add(acExpression, , Cdn) > > .BackColor = 16777164 > > .FontBold = True > > End With > > End With > > On Error GoTo 0 > >End Sub > >========================================= > > > > ----- Original Message ----- > > From: Mark A Matte > > To: accessd at databaseadvisors.com > > Sent: Friday, May 12, 2006 21:41 > > Subject: [AccessD] Select Multiple records on form > > > > > > Hello All, > > > > I'm probably missing something simple here...but...I have a continuous form > > in A2K using a NON-updateable recordset. I would like the user to be able > > to select multiple records...and then click a button to do some other stuff. > > > > My issue is how to select multiple records on this form...I'm thinking some > > sort of conditional formatting...but not sure. Any > > ideas/suggestions/direction? > > > > Thanks, > > > > Mark A. Matte From Jim.Hale at FleetPride.com Mon May 15 11:37:20 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 15 May 2006 11:37:20 -0500 Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC37@corp-es01.fleetpride.com> Could you please send me the future email that mentions their stock price? ;-> Jim Hale -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, May 15, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Update Name Mapping for Name Autocorrect It's a new feature of Outlook 2008. Microsoft decided that their clients were tired of waiting for emails to come through, so now they have 'predictive' email, which lets you organize your email before it was ever even sent... ;) Drew -----Original Message----- From: David A. Gibson [mailto:dgibso at uark.edu] Sent: Monday, May 15, 2006 10:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect How do you manage to access posts 2 months in the future??? :-D :-D :-D :-D David G. At 12:08 PM 5/14/2006, you wrote: >Hello to everyone, > >In the Archives you'll find an entry >with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. > >Good Luck! >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 *********************************************************************** 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 markamatte at hotmail.com Mon May 15 11:39:03 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 15 May 2006 16:39:03 +0000 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: Gustav, A.D.Tejpal sent this code...I hate to admit...but I don't quite understand. I've tried to step through the code...but it doesn't do the "Fn_SelectedBlock" part until after I finish stepping though( I can actually see the VBA window "zip" through that function...after it appeard to be done) if that makes any sense???...and in all honesty I'm not sure what to change. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Select Multiple records on form >Date: Mon, 15 May 2006 18:30:29 +0200 > >Hi Mark > > With Me(ControlName).FormatConditions > .Delete > Cdn = "Fn_SelectedBlock(ID) <> 0" > With .Add(acExpression, , Cdn) > .BackColor = 16777164 > .FontBold = True > End With > End With > >That code looks clunky to me. Did you try changing it to something that >specifically Set a FormatCondition object, then adjusts properties >BackColor and FontBold of this? > >/gustav > > > >>> markamatte at hotmail.com 15-05-2006 17:41 >>> >In stepping through the code and watching the screen change with each line >of code I isolated the quirk I had noticed Friday. When you execute the >line "With .Add(acExpression, , Cdn)"...the control it is on turns gray for >about 3 seconds and then changes back...before the next line is executed. >What would cause this? The same thing happens as the next 2 lines are >executed. > >Thanks, > >Mark > > > >From: "Mark A Matte" > >Reply-To: Access Developers discussion and problem > >solving > >To: accessd at databaseadvisors.com > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Fri, 12 May 2006 20:13:02 +0000 > > > >A.D., > > > >Thank you very much for the code. It is acting strange...I think...If I > >click or navigate to a record...all other records are 'grayed' out...and > >the > >single row is highlighted for about 3 seconds...then the screen is back >to > >normal. > > > >I think I'm in the right direction...I just need to select more than > >one(non-sequential), have them stay selected, and do something with the > >ones > >selected. > > > >Thanks, > > > >Mark > > > > >From: "A.D.TEJPAL" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: "Access Developers discussion and problem > > >solving" > > >CC: ADT > > >Subject: Re: [AccessD] Select Multiple records on form > > >Date: Sat, 13 May 2006 00:09:27 +0530 > > > > > >Mark, > > > > > > On a continuous form, so long as record selectors are available, >you > > >can pick up the selection via form's click event and then apply dynamic > > >conditional formatting so as to highlight only the records covered by > > >current selection. Form's SelTop & SelHeight properties are handy in >this > > >context. > > > > > > Sample code as given below, will ensure that all records currently > > >selected by the user get distinctly highlighted across the full row. > > > > > > Note - The performance of conditional formatting in Access 2003 is > > >found to be better than that in Access 2000 (Access 2000 file format in > > >both cases). > > > > > >Best wishes, > > >A.D.Tejpal > > >--------------- > > > > > >Code in module of continuous form > > >(ID is the name of primary key field) > > >========================================= > > >Private Sub Form_Click() > > > P_SetFormat_A > > >End Sub > > > >---------------------------------------------------------------------------- > > >Private Sub Form_Current() > > > P_SetFormat_A > > >End Sub > > > >---------------------------------------------------------------------------- > > >Private Function Fn_SelectedBlock(ByVal PkNumber _ > > > As Long) As >Long > > > ' Returns 1 if the record with this PkNumber > > > ' falls in selected block, otherwise 0 > > > Dim rst As DAO.Recordset > > > Dim RecNum As Long, InSelection As Long > > > > > > InSelection = 0 ' Default > > > Set rst = Me.RecordsetClone > > > rst.FindFirst "ID = " & PkNumber > > > If Not rst.NoMatch Then > > > RecNum = rst.AbsolutePosition + 1 > > > If RecNum >= Me.SelTop And _ > > > RecNum <= Me.SelTop + _ > > > (Me.SelHeight - 1) Then > > > InSelection = 1 > > > End If > > > End If > > > > > > Fn_SelectedBlock = InSelection > > > > > > rst.Close > > > Set rst = Nothing > > >End Function > > > >---------------------------------------------------------------------------- > > >Public Sub P_SetFormat_A() > > > ' Sets fresh Conditional Formatting in Detail section > > > Dim ct As Control > > > > > > For Each ct In Me.Detail.Controls > > > P_SetFormat_B ct.Name > > > Next > > > > > > Me.Repaint > > >End Sub > > > >---------------------------------------------------------------------------- > > >Private Sub P_SetFormat_B(ByVal ControlName As String) > > >' Sets fresh Conditional Formatting > > >' (in text box named ControlName) > > > Dim Cdn As String > > > > > > On Error Resume Next ' For controls not suited to > > > ' conditional formatting > > > With Me(ControlName).FormatConditions > > > .Delete > > > > > > Cdn = "Fn_SelectedBlock(ID) <> 0" > > > With .Add(acExpression, , Cdn) > > > .BackColor = 16777164 > > > .FontBold = True > > > End With > > > End With > > > On Error GoTo 0 > > >End Sub > > >========================================= > > > > > > ----- Original Message ----- > > > From: Mark A Matte > > > To: accessd at databaseadvisors.com > > > Sent: Friday, May 12, 2006 21:41 > > > Subject: [AccessD] Select Multiple records on form > > > > > > > > > Hello All, > > > > > > I'm probably missing something simple here...but...I have a >continuous form > > > in A2K using a NON-updateable recordset. I would like the user to >be able > > > to select multiple records...and then click a button to do some >other stuff. > > > > > > My issue is how to select multiple records on this form...I'm >thinking some > > > sort of conditional formatting...but not sure. Any > > > ideas/suggestions/direction? > > > > > > Thanks, > > > > > > Mark A. Matte > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon May 15 11:40:16 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 15 May 2006 09:40:16 -0700 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: Message-ID: It seems to me there were some issues in the early versions if the linked database were not available (moved, renamed, network down) because the condition seemed to persist even when the linked file became available again, but I may be misremembering. In any case, that was overcome long ago and may have had more to do with the OS than with Access itself. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Mon May 15 11:41:23 2006 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Mon, 15 May 2006 11:41:23 -0500 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: Mark, >> I just need to select more than one(non-sequential), have them stay selected... Well, neither A.D.'s or my solution will work with discontinuous selections. Access forms simply don't natively support that. If your recordset is non-updatable, and you have to have discontinuous selections, you really have two choices: * Write the recordset to a temporary table. Include a yes/no field in the table for the user to select. Set the form to the table. The user selects a record by checking the box. You can easily set conditional formatting keying off of that field. If you choose to go the conditional formatting route, you can simplify highlighting rows by making the backgrounds of all the controls transparent. Insert a single large textbox the size of the row, and set its ControlSource to the yes/no field. Set its foreground and background colors to gray. Set conditional formatting to show your highlight color (foreground and background) when the user checks the checkbox. Send the background control to back, and put it behind your record controls. That way you can highlight the whole record with just one control. * If the list of things is under several hundred, you can use a select list dialog, the kind that shows a list of choices on the left window, and lets you click arrow buttons to move your selections to the window on the right. I have a Select List userform dialog that can read DAO or ADO recordsets, and let the user choose, if you like. -Ken From DWUTKA at marlow.com Mon May 15 11:47:48 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 15 May 2006 11:47:48 -0500 Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDB37@main2.marlow.com> Sorry, can't, only Outlook 2008 has the ability to predict the future email. There are a few bugs in the system, from what I hear. Apparently it generates more 'future' spam then legitimate emails.... Drew -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Monday, May 15, 2006 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Update Name Mapping for Name Autocorrect Could you please send me the future email that mentions their stock price? ;-> Jim Hale -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, May 15, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Update Name Mapping for Name Autocorrect It's a new feature of Outlook 2008. Microsoft decided that their clients were tired of waiting for emails to come through, so now they have 'predictive' email, which lets you organize your email before it was ever even sent... ;) Drew -----Original Message----- From: David A. Gibson [mailto:dgibso at uark.edu] Sent: Monday, May 15, 2006 10:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect How do you manage to access posts 2 months in the future??? :-D :-D :-D :-D David G. At 12:08 PM 5/14/2006, you wrote: >Hello to everyone, > >In the Archives you'll find an entry >with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. > >Good Luck! >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 *********************************************************************** 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 Mon May 15 11:53:48 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 15 May 2006 18:53:48 +0200 Subject: [AccessD] Select Multiple records on form Message-ID: Hi Mark and A.D. Sorry A.D. - didn't notice that. You normally know very well what you are doing but this With .Add(..) thingy looks strange to me. It may be perfectly OK ... but 3 seconds? /gustav >>> markamatte at hotmail.com 15-05-2006 18:39 >>> Gustav, A.D.Tejpal sent this code...I hate to admit...but I don't quite understand. I've tried to step through the code...but it doesn't do the "Fn_SelectedBlock" part until after I finish stepping though( I can actually see the VBA window "zip" through that function...after it appeard to be done) if that makes any sense???...and in all honesty I'm not sure what to change. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Select Multiple records on form >Date: Mon, 15 May 2006 18:30:29 +0200 > >Hi Mark > > With Me(ControlName).FormatConditions > .Delete > Cdn = "Fn_SelectedBlock(ID) <> 0" > With .Add(acExpression, , Cdn) > .BackColor = 16777164 > .FontBold = True > End With > End With > >That code looks clunky to me. Did you try changing it to something that >specifically Set a FormatCondition object, then adjusts properties >BackColor and FontBold of this? > >/gustav From bheid at appdevgrp.com Mon May 15 12:08:40 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 15 May 2006 13:08:40 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: To re-link or not to re-link... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB2E4A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353DE@ADGSERVER> Hi Gustav, That is what I was suggesting we do. But my boss wanted facts. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 12:09 PM To: accessd at databaseadvisors.com Subject: [SPAM SUSPECT] Re: [AccessD] To re-link or not to re-link... Importance: Low Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby From bheid at appdevgrp.com Mon May 15 12:09:53 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 15 May 2006 13:09:53 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: To re-link or not to re-link... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB2E62@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353DF@ADGSERVER> Hi Charlotte, Thanks for the reply. This is what I was thinking also. I am just trying to get some ammo to back me for suggesting that we skip the relinking if they are loading the previous database. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 15, 2006 12:40 PM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] To re-link or not to re-link... Importance: Low It seems to me there were some issues in the early versions if the linked database were not available (moved, renamed, network down) because the condition seemed to persist even when the linked file became available again, but I may be misremembering. In any case, that was overcome long ago and may have had more to do with the OS than with Access itself. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby From dwaters at usinternet.com Mon May 15 12:24:36 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 15 May 2006 12:24:36 -0500 Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect In-Reply-To: <15204681.1147712392119.JavaMail.root@sniper21> Message-ID: <000601c67844$70e912f0$0200a8c0@danwaters> Sorry folks, I was reading one of the Microsoft Partner Newsletters this morning, and I ended up in a future state! Dan -----Original Message----- Sorry, can't, only Outlook 2008 has the ability to predict the future email. There are a few bugs in the system, from what I hear. Apparently it generates more 'future' spam then legitimate emails.... Drew -----Original Message----- Could you please send me the future email that mentions their stock price? ;-> Jim Hale -----Original Message----- It's a new feature of Outlook 2008. Microsoft decided that their clients were tired of waiting for emails to come through, so now they have 'predictive' email, which lets you organize your email before it was ever even sent... ;) Drew -----Original Message----- How do you manage to access posts 2 months in the future??? :-D :-D :-D :-D David G. At 12:08 PM 5/14/2006, you wrote: >Hello to everyone, > >In the Archives you'll find an entry >with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. > >Good Luck! >Dan -- From martyconnelly at shaw.ca Mon May 15 12:40:03 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 15 May 2006 10:40:03 -0700 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D353DC@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA30D353DC@ADGSERVER> Message-ID: <4468BCF3.6080100@shaw.ca> When re-linking try to keep one table open during relink process to avoid opening and closing ldb file, remove subdatasheets on backend tables. Once the first table has been refreshed, open a recordset based on that table. Continue refreshing. Once finished refreshing close the recordset after you've opened a bound form (perhaps hidden) for performance reasons <../performancefaq.htm>. Performance FAQ's See http://www.granite.ab.ca/access/performanceldblocking.htm and also http://www.granite.ab.ca/access/performancefaq.htm Bobby Heid wrote: >Hey, > >We have a system that was originally developed in Access 97. There were a >number of tables that were linked to the FE. There were issues (not sure >what they were as no one remembers and I did not write the original) with >the system if the tables were not re-linked each time the system is loaded. > >Well, here we are today and the app has grown into Access XP. The system >has grown and now has over 100 tables. As such, it takes about .6 seconds >per table to re-link them all. > >Does anyone know what the issues may have been before and if they still >exist in Access XP? Anyone have any pointers to further information? > >Thanks, >Bobby > > > -- Marty Connelly Victoria, B.C. Canada From Lambert.Heenan at AIG.com Mon May 15 12:41:19 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 15 May 2006 13:41:19 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: To re-link or not to re-link.. . Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F21C85BD7@xlivmbx21.aig.com> Your boss maybe needs to consider where 'facts' come form. :-) The most important source is empirical testing. Here's a fact for him: Been running various Access applications for 10 year, in both Access 97 and 2002. Never needed to relink any tables at startup. Why might you need to do so? 1/ The drive mappings on a user's system might change, making the backend seem to have disappeared. Solution? Use UNC path not drive mappings. 2/ The backend might have been moved to a different file server, so the UNC path does not point to it any more. Solution? Develop a relationship with the network managers so you'll know in advance if things are going to move. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, May 15, 2006 1:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [SPAM SUSPECT] Re: To re-link or not to re-link... Hi Gustav, That is what I was suggesting we do. But my boss wanted facts. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 12:09 PM To: accessd at databaseadvisors.com Subject: [SPAM SUSPECT] Re: [AccessD] To re-link or not to re-link... Importance: Low Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon May 15 12:41:42 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 15 May 2006 17:41:42 +0000 Subject: [AccessD] Select Multiple records on form Message-ID: Gustav, Thanks for the compliment. As I started going through the code line by line...it got more confusing. Apparently the function "Fn_SelectedBlock" goes through each control...but 1 record at a time. The thing is if you are stepping through the code...when it gets to where it calls "Fn_SelectedBlock"...it does NOT go there...it just continues on...then when you get to the end of the code(hit F8 1 last time on END SUB)...it zips through the function"Fn_SelectedBlock", without breaking. This code, in my opinion, is doing something very 'cool'...almost what I need...but just out of my understanding. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Select Multiple records on form >Date: Mon, 15 May 2006 18:53:48 +0200 > >Hi Mark and A.D. > >Sorry A.D. - didn't notice that. You normally know very well what you are >doing but this With .Add(..) thingy looks strange to me. >It may be perfectly OK ... but 3 seconds? > >/gustav > > >>> markamatte at hotmail.com 15-05-2006 18:39 >>> >Gustav, > >A.D.Tejpal sent this code...I hate to admit...but I don't quite understand. >I've tried to step through the code...but it doesn't do the >"Fn_SelectedBlock" part until after I finish stepping though( I can >actually >see the VBA window "zip" through that function...after it appeard to be >done) if that makes any sense???...and in all honesty I'm not sure what to >change. > >Thanks, > >Mark A. Matte > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Mon, 15 May 2006 18:30:29 +0200 > > > >Hi Mark > > > > With Me(ControlName).FormatConditions > > .Delete > > Cdn = "Fn_SelectedBlock(ID) <> 0" > > With .Add(acExpression, , Cdn) > > .BackColor = 16777164 > > .FontBold = True > > End With > > End With > > > >That code looks clunky to me. Did you try changing it to something that > >specifically Set a FormatCondition object, then adjusts properties > >BackColor and FontBold of this? > > > >/gustav > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon May 15 13:00:23 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 15 May 2006 11:00:23 -0700 Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1BDB35@main2.marlow.com> References: <17724746D360394AA3BFE5B8D40A9C1BDB35@main2.marlow.com> Message-ID: <4468C1B7.3050503@shaw.ca> It is not that unusual I have Access-D messages in my own Email archives from 2010 and 2014. I suppose it is either a machine time issue or Microsoft is using wormholes. DWUTKA at marlow.com wrote: >It's a new feature of Outlook 2008. Microsoft decided that their clients >were tired of waiting for emails to come through, so now they have >'predictive' email, which lets you organize your email before it was ever >even sent... ;) > >Drew > >-----Original Message----- >From: David A. Gibson [mailto:dgibso at uark.edu] >Sent: Monday, May 15, 2006 10:46 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect > > >How do you manage to access posts 2 months in the future??? > >:-D :-D :-D :-D > >David G. > > >At 12:08 PM 5/14/2006, you wrote: > > >>Hello to everyone, >> >>In the Archives you'll find an entry >>with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. >> >>Good Luck! >>Dan >> >> -- Marty Connelly Victoria, B.C. Canada From dwaters at usinternet.com Mon May 15 13:32:19 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 15 May 2006 13:32:19 -0500 Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect In-Reply-To: <1331851.1147716315130.JavaMail.root@sniper23> Message-ID: <002d01c6784d$e6877610$0200a8c0@danwaters> So if my PC gets a worm, all the data gets moved to the future? That's bad - someday all that data will just show up again! Dan -----Original Message----- It is not that unusual I have Access-D messages in my own Email archives from 2010 and 2014. I suppose it is either a machine time issue or Microsoft is using wormholes. DWUTKA at marlow.com wrote: >It's a new feature of Outlook 2008. Microsoft decided that their clients >were tired of waiting for emails to come through, so now they have >'predictive' email, which lets you organize your email before it was ever >even sent... ;) > >Drew > >-----Original Message----- >From: David A. Gibson [mailto:dgibso at uark.edu] >Sent: Monday, May 15, 2006 10:46 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect > > >How do you manage to access posts 2 months in the future??? > >:-D :-D :-D :-D > >David G. > > >At 12:08 PM 5/14/2006, you wrote: > > >>Hello to everyone, >> >>In the Archives you'll find an entry >>with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. >> >>Good Luck! >>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 bheid at appdevgrp.com Mon May 15 14:47:45 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 15 May 2006 15:47:45 -0400 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB2E93@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353E6@ADGSERVER> Thanks Marty. I'll check that out. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, May 15, 2006 1:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... When re-linking try to keep one table open during relink process to avoid opening and closing ldb file, remove subdatasheets on backend tables. Once the first table has been refreshed, open a recordset based on that table. Continue refreshing. Once finished refreshing close the recordset after you've opened a bound form (perhaps hidden) for performance reasons <../performancefaq.htm>. Performance FAQ's See http://www.granite.ab.ca/access/performanceldblocking.htm and also http://www.granite.ab.ca/access/performancefaq.htm Bobby Heid wrote: >Hey, > >We have a system that was originally developed in Access 97. There were a >number of tables that were linked to the FE. There were issues (not sure >what they were as no one remembers and I did not write the original) with >the system if the tables were not re-linked each time the system is loaded. > >Well, here we are today and the app has grown into Access XP. The system >has grown and now has over 100 tables. As such, it takes about .6 seconds >per table to re-link them all. > >Does anyone know what the issues may have been before and if they still >exist in Access XP? Anyone have any pointers to further information? > >Thanks, >Bobby > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Mon May 15 16:05:45 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 15 May 2006 14:05:45 -0700 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: References: Message-ID: <4468ED29.9040702@san.rr.com> I sometimes put a relink command button on a client app if they have the occasional need to relink or refresh the links. Rocky Charlotte Foust wrote: > It seems to me there were some issues in the early versions if the > linked database were not available (moved, renamed, network down) > because the condition seemed to persist even when the linked file became > available again, but I may be misremembering. In any case, that was > overcome long ago and may have had more to do with the OS than with > Access itself. > > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, May 15, 2006 9:09 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] To re-link or not to re-link... > > Hi Bobby > > We've never (since and including Access 2.0) seen any issues by _not_ > relinking at every launch of the app. > That's for JET tables. Neither have I seen such a need for SQL Server. > It may be different for other (ODBC connected) engines though. > > Why not just disable the relinking and watch what happens? > > /gustav > > >>>> bheid at appdevgrp.com 15-05-2006 17:33 >>> >>>> > Hey, > > We have a system that was originally developed in Access 97. There were > a number of tables that were linked to the FE. There were issues (not > sure what they were as no one remembers and I did not write the > original) with the system if the tables were not re-linked each time the > system is loaded. > > Well, here we are today and the app has grown into Access XP. The > system has grown and now has over 100 tables. As such, it takes about > .6 seconds per table to re-link them all. > > Does anyone know what the issues may have been before and if they still > exist in Access XP? Anyone have any pointers to further information? > > Thanks, > Bobby > > > -- > 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 kp at sdsonline.net Mon May 15 18:10:26 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 16 May 2006 09:10:26 +1000 Subject: [AccessD] To re-link or not to re-link... References: <916187228923D311A6FE00A0CC3FAA30D353DC@ADGSERVER> <4468BCF3.6080100@shaw.ca> Message-ID: <007801c67874$c10f4260$6601a8c0@office> I think that re-linking to just one table is a good idea if you have only one BE file. If you get the first link then you know that the BE has been successfully located and you can bail out from there. Kath ----- Original Message ----- From: MartyConnelly To: Access Developers discussion and problem solving Sent: Tuesday, May 16, 2006 3:40 AM Subject: Re: [AccessD] To re-link or not to re-link... When re-linking try to keep one table open during relink process to avoid opening and closing ldb file, remove subdatasheets on backend tables. Once the first table has been refreshed, open a recordset based on that table. Continue refreshing. Once finished refreshing close the recordset after you've opened a bound form (perhaps hidden) for performance reasons <../performancefaq.htm>. Performance FAQ's See http://www.granite.ab.ca/access/performanceldblocking.htm and also http://www.granite.ab.ca/access/performancefaq.htm Bobby Heid wrote: >Hey, > >We have a system that was originally developed in Access 97. There were a >number of tables that were linked to the FE. There were issues (not sure >what they were as no one remembers and I did not write the original) with >the system if the tables were not re-linked each time the system is loaded. > >Well, here we are today and the app has grown into Access XP. The system >has grown and now has over 100 tables. As such, it takes about .6 seconds >per table to re-link them all. > >Does anyone know what the issues may have been before and if they still >exist in Access XP? Anyone have any pointers to further information? > >Thanks, >Bobby > > > -- 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 jimdettman at earthlink.net Mon May 15 19:28:33 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 15 May 2006 20:28:33 -0400 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D353DC@ADGSERVER> Message-ID: Bobby, << As such, it takes about .6 seconds per table to re-link them all. >> Make sure you keep an object open to the BE (database itself, first table, or whatever). You'll find your re-linking will fly right along that way. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, May 15, 2006 10:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] To re-link or not to re-link... Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Mon May 15 19:28:33 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 15 May 2006 20:28:33 -0400 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: Message-ID: Charlotte, A2 had "attachment fatigue". For no apparent reason, at some point, linked tables would simply stop working. A lot of developers got into the habit of re-linking at startup every time. I myself check one table in each BE and if it can't open the table, I force a re-link of all the tables associated with that BE. I prompt the user for the location of the BE to, so if it's been moved or it's un-available, they can correct it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 15, 2006 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... It seems to me there were some issues in the early versions if the linked database were not available (moved, renamed, network down) because the condition seemed to persist even when the linked file became available again, but I may be misremembering. In any case, that was overcome long ago and may have had more to do with the OS than with Access itself. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon May 15 21:37:14 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Tue, 16 May 2006 10:37:14 +0800 Subject: [AccessD] To re-link or not to re-link... References: <916187228923D311A6FE00A0CC3FAA30D353E6@ADGSERVER> Message-ID: <002b01c67891$a46150f0$2900a8c0@TOMNEW> Just to have my 2 cents..... I have been running a FE BE relationship with around 10 users for some years now and do not re-link at all. Access is looking for a shared drive at DRIVE X on every machine. Our operating systems are XP and win2000 and occasionally win2000 fails to reconnect the network which of course results in an error when opening Access. It happens so infrequently as to be not worth bothering with. Usually clicking on drive x will refresh the connection and everything is fine. When I used to re-link every table it used to take AGES to open Access. I would suggest not doing it at all....if the network connection is working Access will as well Regards Tom Keatley ----- Original Message ----- From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, May 16, 2006 3:47 AM Subject: Re: [AccessD] To re-link or not to re-link... > Thanks Marty. I'll check that out. > > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Monday, May 15, 2006 1:40 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] To re-link or not to re-link... > > > When re-linking try to keep one table open during relink process to avoid > opening and closing ldb file, remove subdatasheets on backend tables. > Once the first table has been refreshed, open a recordset based on that > table. > Continue refreshing. Once finished refreshing close the recordset after > you've opened a bound form (perhaps hidden) for performance reasons > <../performancefaq.htm>. > Performance FAQ's > See > http://www.granite.ab.ca/access/performanceldblocking.htm > and also > http://www.granite.ab.ca/access/performancefaq.htm > > > Bobby Heid wrote: > >>Hey, >> >>We have a system that was originally developed in Access 97. There were a >>number of tables that were linked to the FE. There were issues (not sure >>what they were as no one remembers and I did not write the original) with >>the system if the tables were not re-linked each time the system is >>loaded. >> >>Well, here we are today and the app has grown into Access XP. The system >>has grown and now has over 100 tables. As such, it takes about .6 seconds >>per table to re-link them all. >> >>Does anyone know what the issues may have been before and if they still >>exist in Access XP? Anyone have any pointers to further information? >> >>Thanks, >>Bobby >> >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > 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.392 / Virus Database: 268.5.6/339 - Release Date: 14/05/2006 > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.392 / Virus Database: 268.5.6/339 - Release Date: 14/05/2006 > > From bheid at appdevgrp.com Tue May 16 06:08:56 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 16 May 2006 07:08:56 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: To re-link or not to re-link... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB2F0B@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353E7@ADGSERVER> Interesting idea Kath. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, May 15, 2006 7:10 PM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] To re-link or not to re-link... Importance: Low I think that re-linking to just one table is a good idea if you have only one BE file. If you get the first link then you know that the BE has been successfully located and you can bail out from there. Kath ----- Original Message ----- From: MartyConnelly To: Access Developers discussion and problem solving Sent: Tuesday, May 16, 2006 3:40 AM Subject: Re: [AccessD] To re-link or not to re-link... When re-linking try to keep one table open during relink process to avoid opening and closing ldb file, remove subdatasheets on backend tables. Once the first table has been refreshed, open a recordset based on that table. Continue refreshing. Once finished refreshing close the recordset after you've opened a bound form (perhaps hidden) for performance reasons <../performancefaq.htm>. Performance FAQ's See http://www.granite.ab.ca/access/performanceldblocking.htm and also http://www.granite.ab.ca/access/performancefaq.htm Bobby Heid wrote: >Hey, > >We have a system that was originally developed in Access 97. There were a >number of tables that were linked to the FE. There were issues (not sure >what they were as no one remembers and I did not write the original) with >the system if the tables were not re-linked each time the system is loaded. > >Well, here we are today and the app has grown into Access XP. The system >has grown and now has over 100 tables. As such, it takes about .6 seconds >per table to re-link them all. > >Does anyone know what the issues may have been before and if they still >exist in Access XP? Anyone have any pointers to further information? > >Thanks, >Bobby > > > -- Marty Connelly Victoria, B.C. Canada From bheid at appdevgrp.com Tue May 16 06:16:15 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 16 May 2006 07:16:15 -0400 Subject: [AccessD] OT: Virtual OS software... Message-ID: <916187228923D311A6FE00A0CC3FAA30D353E8@ADGSERVER> Any of you have any preferences between Virtual PC and VMWare Workstation? I am looking at getting one of these to: 1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, etc. 2) To check beta or new software. 3) Run various flavors of Linux. 4) And in general, be able to play around with stuff without worrying about hosing my main system. 5) So I don't have to multi-boot any more. So, if you have any thoughts on these, I'd love to hear them. Thanks, Bobby From Jdemarco at hudsonhealthplan.org Tue May 16 07:37:27 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 16 May 2006 08:37:27 -0400 Subject: [AccessD] To re-link or not to re-link... Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C46AD@TTNEXCHCL2.hshhp.com> This is the technique I subscribe to. If your tables are in more than one BE test the link to one table in each BE. That's enough to know there's an issue. If an issue is discovered remember to take the advice in other messages in this thread to keep an open connection to a table to speed up relinking. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, May 15, 2006 7:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... I think that re-linking to just one table is a good idea if you have only one BE file. If you get the first link then you know that the BE has been successfully located and you can bail out from there. Kath ----- Original Message ----- From: MartyConnelly To: Access Developers discussion and problem solving Sent: Tuesday, May 16, 2006 3:40 AM Subject: Re: [AccessD] To re-link or not to re-link... When re-linking try to keep one table open during relink process to avoid opening and closing ldb file, remove subdatasheets on backend tables. Once the first table has been refreshed, open a recordset based on that table. Continue refreshing. Once finished refreshing close the recordset after you've opened a bound form (perhaps hidden) for performance reasons <../performancefaq.htm>. Performance FAQ's See http://www.granite.ab.ca/access/performanceldblocking.htm and also http://www.granite.ab.ca/access/performancefaq.htm Bobby Heid wrote: >Hey, > >We have a system that was originally developed in Access 97. There were a >number of tables that were linked to the FE. There were issues (not sure >what they were as no one remembers and I did not write the original) with >the system if the tables were not re-linked each time the system is loaded. > >Well, here we are today and the app has grown into Access XP. The system >has grown and now has over 100 tables. As such, it takes about .6 seconds >per table to re-link them all. > >Does anyone know what the issues may have been before and if they still >exist in Access XP? Anyone have any pointers to further information? > >Thanks, >Bobby > > > -- 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 Jdemarco at hudsonhealthplan.org Tue May 16 07:39:49 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 16 May 2006 08:39:49 -0400 Subject: [AccessD] OT: Virtual OS software... Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C46AE@TTNEXCHCL2.hshhp.com> We used VMWare a couple of years back to help us create an install that needed to work in NT 4.0, Win2K and WinXP. It was easy to use and saved tons of time in reboot time alone. We are going to use it again to create some virtual sandboxes for developer tests by recreating user's machines in the VM. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, May 16, 2006 7:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Virtual OS software... Any of you have any preferences between Virtual PC and VMWare Workstation? I am looking at getting one of these to: 1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, etc. 2) To check beta or new software. 3) Run various flavors of Linux. 4) And in general, be able to play around with stuff without worrying about hosing my main system. 5) So I don't have to multi-boot any more. So, if you have any thoughts on these, I'd love to hear them. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Tue May 16 08:27:42 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 16 May 2006 09:27:42 -0400 Subject: [AccessD] OT: Virtual OS software... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB2F88@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353F2@ADGSERVER> Hi Jim. Thanks for the reply. Everything I've seen seems to point to the VMWare product. That is a really cool idea about recreating the user's machines. Can you take any image from any system and do this? Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Tuesday, May 16, 2006 8:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Virtual OS software... We used VMWare a couple of years back to help us create an install that needed to work in NT 4.0, Win2K and WinXP. It was easy to use and saved tons of time in reboot time alone. We are going to use it again to create some virtual sandboxes for developer tests by recreating user's machines in the VM. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, May 16, 2006 7:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Virtual OS software... Any of you have any preferences between Virtual PC and VMWare Workstation? I am looking at getting one of these to: 1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, etc. 2) To check beta or new software. 3) Run various flavors of Linux. 4) And in general, be able to play around with stuff without worrying about hosing my main system. 5) So I don't have to multi-boot any more. So, if you have any thoughts on these, I'd love to hear them. Thanks, Bobby From adtp at hotmail.com Tue May 16 09:25:10 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Tue, 16 May 2006 19:55:10 +0530 Subject: [AccessD] Select Multiple records on form References: Message-ID: Mark, Gustav, 1 - Comments on points raised by Gustav: 1.1 - Change of status requiring re-rendering of colors on controls governed by conditional formatting involves slight time lag, though in simplest of cases it may hardly be noticeable. 1.2 - The phenomenon gets further accentuated when max allowed limit of three format conditions is fully exploited, and the expressions used therein are not merely verifying the status of a particular record but are dependant upon user defined functions dealing with recordsets. 1.3 - Block-size involved (number of cells i.e. rows x columns), for which re-rendering of colors is to be implemented, also contributes to time lag. Overall number of records in form's record source also has a bearing, as each record needs to be tested against the condition even if it does not qualify for application of color. 1.4 - For dynamic formatting at run time, editing the expression / color / font of existing condition visa-vis application of brand new condition is not found to provide any advantage in respect of time lag discussed above. On the other hand, with edit approach, the revision does not take effect unless refresh action is also performed on the form. 1.5 - For the present case, involving conditional formatting of selected block of records on a continuous form (Access 2000 file format), performance of dynamic conditional highlighting is found to be much better in Access 2003 installation, where the status change gets implemented in just a flicker. In case of Access 2K & XP installations, the time lag is found to be significantly more noticeable. 2 - Comments on points raised by Mark: 2.1 - When you drag the mouse over record selectors for multiple selection, form's click event fires only after the mouse button is finally released on reaching the last selected record. It is this click event that sets up revised conditional formatting of records falling in the selected block. 2.2 - Fn_SelectedBlock() is used by the expression in format condition and verifies whether the given record falls in currently selected block. It takes primary key number as its argument and returns 1 if true, otherwise zero. AS explained in para 2.1 above, Fn_SelectedBlock() comes into play only after the mouse button is finally released on reaching the last selected record. 2.3 - In one of your posts, you stated that you also wish to keep track of non-contiguous selected records. Non-contiguous records can not simultaneously form part of a given block of current selection. Perhaps you want to keep track of all previously selected records, even those not falling in current selection block. If so, this can be done. 2.4 - My sample db ContFormsKeyNavAndHighLightMultiSelect, covers this requirement and should become available at Rogers Access Library shortly. It features: (a) Key Navigation (Datasheet Style) (b) Graded Highlighting Of Multiple Selected Records identifying: (i) Current record (ii) Current selection block (iii) Other records, selected any time earlier in current session Note - Primary key numbers of all selected records (whether forming part of current block or not) are stored in a form level global variable. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Monday, May 15, 2006 23:11 Subject: Re: [AccessD] Select Multiple records on form Gustav, Thanks for the compliment. As I started going through the code line by line...it got more confusing. Apparently the function "Fn_SelectedBlock" goes through each control...but 1 record at a time. The thing is if you are stepping through the code...when it gets to where it calls "Fn_SelectedBlock"...it does NOT go there...it just continues on...then when you get to the end of the code(hit F8 1 last time on END SUB)...it zips through the function"Fn_SelectedBlock", without breaking. This code, in my opinion, is doing something very 'cool'...almost what I need...but just out of my understanding. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Select Multiple records on form >Date: Mon, 15 May 2006 18:53:48 +0200 > >Hi Mark and A.D. > >Sorry A.D. - didn't notice that. You normally know very well what you are doing but this With .Add(..) thingy looks strange to me. >It may be perfectly OK ... but 3 seconds? > >/gustav > > >>> markamatte at hotmail.com 15-05-2006 18:39 >>> >Gustav, > >A.D.Tejpal sent this code...I hate to admit...but I don't quite understand.I've tried to step through the code...but it doesn't do the >"Fn_SelectedBlock" part until after I finish stepping though( I can >actually see the VBA window "zip" through that function...after it appeard to be done) if that makes any sense???...and in all honesty I'm not sure what to change. > >Thanks, > >Mark A. Matte > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Mon, 15 May 2006 18:30:29 +0200 > > > >Hi Mark > > > > With Me(ControlName).FormatConditions > > .Delete > > Cdn = "Fn_SelectedBlock(ID) <> 0" > > With .Add(acExpression, , Cdn) > > .BackColor = 16777164 > > .FontBold = True > > End With > > End With > > > >That code looks clunky to me. Did you try changing it to something that > >specifically Set a FormatCondition object, then adjusts properties > >BackColor and FontBold of this? > > > >/gustav From markamatte at hotmail.com Tue May 16 09:41:27 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 16 May 2006 14:41:27 +0000 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: Thanks A.D With the code you sent...when I click on a record...was it supposed to stay selected? or was the form supposed to return to its original state on its own? The 3 seconds referred to wasn't a 'lag' as much as the duration of the formatting. The selection only lasted that long. If I used a shorter recordset...I didn't see the formatting at all. Thanks, Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] Select Multiple records on form >Date: Tue, 16 May 2006 19:55:10 +0530 > >Mark, Gustav, > > 1 - Comments on points raised by Gustav: > 1.1 - Change of status requiring re-rendering of colors on >controls governed by conditional formatting involves slight time lag, >though in simplest of cases it may hardly be noticeable. > 1.2 - The phenomenon gets further accentuated when max allowed >limit of three format conditions is fully exploited, and the expressions >used therein are not merely verifying the status of a particular record but >are dependant upon user defined functions dealing with recordsets. > 1.3 - Block-size involved (number of cells i.e. rows x columns), >for which re-rendering of colors is to be implemented, also contributes to >time lag. Overall number of records in form's record source also has a >bearing, as each record needs to be tested against the condition even if it >does not qualify for application of color. > 1.4 - For dynamic formatting at run time, editing the expression / >color / font of existing condition visa-vis application of brand new >condition is not found to provide any advantage in respect of time lag >discussed above. On the other hand, with edit approach, the revision does >not take effect unless refresh action is also performed on the form. > 1.5 - For the present case, involving conditional formatting of >selected block of records on a continuous form (Access 2000 file format), >performance of dynamic conditional highlighting is found to be much better >in Access 2003 installation, where the status change gets implemented in >just a flicker. In case of Access 2K & XP installations, the time lag is >found to be significantly more noticeable. > > 2 - Comments on points raised by Mark: > 2.1 - When you drag the mouse over record selectors for multiple >selection, form's click event fires only after the mouse button is finally >released on reaching the last selected record. It is this click event that >sets up revised conditional formatting of records falling in the selected >block. > 2.2 - Fn_SelectedBlock() is used by the expression in format >condition and verifies whether the given record falls in currently selected >block. It takes primary key number as its argument and returns 1 if true, >otherwise zero. AS explained in para 2.1 above, Fn_SelectedBlock() comes >into play only after the mouse button is finally released on reaching the >last selected record. > 2.3 - In one of your posts, you stated that you also wish to keep >track of non-contiguous selected records. Non-contiguous records can not >simultaneously form part of a given block of current selection. Perhaps you >want to keep track of all previously selected records, even those not >falling in current selection block. If so, this can be done. > 2.4 - My sample db ContFormsKeyNavAndHighLightMultiSelect, covers >this requirement and should become available at Rogers Access Library >shortly. It features: > (a) Key Navigation (Datasheet Style) > (b) Graded Highlighting Of Multiple Selected Records identifying: > (i) Current record > (ii) Current selection block > (iii) Other records, selected any time earlier in current >session > Note - Primary key numbers of all selected records (whether >forming part of current block or not) are stored in a form level global >variable. > >Best wishes, >A.D.Tejpal >--------------- > > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Monday, May 15, 2006 23:11 > Subject: Re: [AccessD] Select Multiple records on form > > > Gustav, > > Thanks for the compliment. As I started going through the code line by >line...it got more confusing. Apparently the function "Fn_SelectedBlock" >goes through each control...but 1 record at a time. > > The thing is if you are stepping through the code...when it gets to >where it calls "Fn_SelectedBlock"...it does NOT go there...it just >continues on...then when you get to the end of the code(hit F8 1 last time >on END SUB)...it zips through the function"Fn_SelectedBlock", without >breaking. > > This code, in my opinion, is doing something very 'cool'...almost what I >need...but just out of my understanding. > > Thanks, > > Mark A. Matte > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Mon, 15 May 2006 18:53:48 +0200 > > > >Hi Mark and A.D. > > > >Sorry A.D. - didn't notice that. You normally know very well what you >are doing but this With .Add(..) thingy looks strange to me. > >It may be perfectly OK ... but 3 seconds? > > > >/gustav > > > > >>> markamatte at hotmail.com 15-05-2006 18:39 >>> > > >Gustav, > > > >A.D.Tejpal sent this code...I hate to admit...but I don't quite >understand.I've tried to step through the code...but it doesn't do the > >"Fn_SelectedBlock" part until after I finish stepping though( I can > >actually see the VBA window "zip" through that function...after it >appeard to be done) if that makes any sense???...and in all honesty I'm not >sure what to change. > > > >Thanks, > > > >Mark A. Matte > > > > >From: "Gustav Brock" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: > > >Subject: Re: [AccessD] Select Multiple records on form > > >Date: Mon, 15 May 2006 18:30:29 +0200 > > > > > >Hi Mark > > > > > > With Me(ControlName).FormatConditions > > > .Delete > > > Cdn = "Fn_SelectedBlock(ID) <> 0" > > > With .Add(acExpression, , Cdn) > > > .BackColor = 16777164 > > > .FontBold = True > > > End With > > > End With > > > > > >That code looks clunky to me. Did you try changing it to something >that > > >specifically Set a FormatCondition object, then adjusts properties > > >BackColor and FontBold of this? > > > > > >/gustav >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue May 16 10:12:22 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 16 May 2006 08:12:22 -0700 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: Message-ID: Thanks for the memory boost, Jim. I knew I had encountered it but couldn't remember the details. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, May 15, 2006 5:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] To re-link or not to re-link... Charlotte, A2 had "attachment fatigue". For no apparent reason, at some point, linked tables would simply stop working. A lot of developers got into the habit of re-linking at startup every time. I myself check one table in each BE and if it can't open the table, I force a re-link of all the tables associated with that BE. I prompt the user for the location of the BE to, so if it's been moved or it's un-available, they can correct it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 15, 2006 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... It seems to me there were some issues in the early versions if the linked database were not available (moved, renamed, network down) because the condition seemed to persist even when the linked file became available again, but I may be misremembering. In any case, that was overcome long ago and may have had more to do with the OS than with Access itself. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Tue May 16 10:33:14 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 16 May 2006 11:33:14 -0400 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB2FCF@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353F4@ADGSERVER> Thanks everyone for your input. I think we'll try the one table relink thing that several have suggested. I'll also look at making sure I have a connection to the BE when I do have to re-link all of the tables (the user switch back ends every now and then). Thanks again, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 16, 2006 11:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... Thanks for the memory boost, Jim. I knew I had encountered it but couldn't remember the details. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, May 15, 2006 5:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] To re-link or not to re-link... Charlotte, A2 had "attachment fatigue". For no apparent reason, at some point, linked tables would simply stop working. A lot of developers got into the habit of re-linking at startup every time. I myself check one table in each BE and if it can't open the table, I force a re-link of all the tables associated with that BE. I prompt the user for the location of the BE to, so if it's been moved or it's un-available, they can correct it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 15, 2006 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... It seems to me there were some issues in the early versions if the linked database were not available (moved, renamed, network down) because the condition seemed to persist even when the linked file became available again, but I may be misremembering. In any case, that was overcome long ago and may have had more to do with the OS than with Access itself. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby From Jdemarco at hudsonhealthplan.org Tue May 16 10:35:53 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 16 May 2006 11:35:53 -0400 Subject: [AccessD] OT: Virtual OS software... Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C46B4@TTNEXCHCL2.hshhp.com> I don't see why not. We haven't implemented yet but that's the plan. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, May 16, 2006 9:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Virtual OS software... Hi Jim. Thanks for the reply. Everything I've seen seems to point to the VMWare product. That is a really cool idea about recreating the user's machines. Can you take any image from any system and do this? Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Tuesday, May 16, 2006 8:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Virtual OS software... We used VMWare a couple of years back to help us create an install that needed to work in NT 4.0, Win2K and WinXP. It was easy to use and saved tons of time in reboot time alone. We are going to use it again to create some virtual sandboxes for developer tests by recreating user's machines in the VM. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, May 16, 2006 7:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Virtual OS software... Any of you have any preferences between Virtual PC and VMWare Workstation? I am looking at getting one of these to: 1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, etc. 2) To check beta or new software. 3) Run various flavors of Linux. 4) And in general, be able to play around with stuff without worrying about hosing my main system. 5) So I don't have to multi-boot any more. So, if you have any thoughts on these, I'd love to hear them. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue May 16 11:08:40 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 16 May 2006 09:08:40 -0700 Subject: [AccessD] OT: Virtual OS software... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D353F2@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA30D353F2@ADGSERVER> Message-ID: <4469F908.5020607@shaw.ca> A lot of big shops are getting into this with a slightly different flavour What they used to do was have one application per server, if they had more than that and an app failed it could bring down multiple applications. Now they put the one application on a virtual pc via an image copy, but you can have multiple virtual pc's running on a server, if one fails it doesn't bring down the entire server. This reduces the number of servers required on a site. And you have a new hot buzz word Virtual Servers. This is the gist of it but is a bit more involved. Sooner or later you maybe installing Access applications as a virtual PC. By the way you can also install Windows on a 2 gig PC flash drive via PCBart. I have users who run small Access apps this way in shops that don't allow Access installations. Bobby Heid wrote: >Hi Jim. > >Thanks for the reply. Everything I've seen seems to point to the VMWare >product. > >That is a really cool idea about recreating the user's machines. Can you >take any image from any system and do this? > >Thanks, >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >Sent: Tuesday, May 16, 2006 8:40 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: Virtual OS software... > > >We used VMWare a couple of years back to help us create an install that >needed to work in NT 4.0, Win2K and WinXP. It was easy to use and saved >tons of time in reboot time alone. > >We are going to use it again to create some virtual sandboxes for >developer tests by recreating user's machines in the VM. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid >Sent: Tuesday, May 16, 2006 7:16 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] OT: Virtual OS software... > >Any of you have any preferences between Virtual PC and VMWare >Workstation? > >I am looking at getting one of these to: >1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, >etc. >2) To check beta or new software. >3) Run various flavors of Linux. >4) And in general, be able to play around with stuff without worrying >about hosing my main system. >5) So I don't have to multi-boot any more. > >So, if you have any thoughts on these, I'd love to hear them. > >Thanks, >Bobby > > > -- Marty Connelly Victoria, B.C. Canada From adtp at hotmail.com Tue May 16 11:42:36 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Tue, 16 May 2006 22:12:36 +0530 Subject: [AccessD] Select Multiple records on form References: Message-ID: Mark, So long as the group of records remain in a selected state, and after you have released the mouse button, the code provided by me earlier, ensures continued highlighting of such records in a special color, till the selection gets undone (e.g. user clicking on any control). For your ready reference, selection of records is done as follows: (a) Single record - Click on record selector. (b) Multiple records at a time - Click on record selector of top desired record and drag the mouse to record selector of bottom desired record. (Alternatively, you can hold down shift key and then click the record selector for bottom desired record, or use Dn Arrow key to expand the selection suitably). Note - Using Up/Dn arrow keys alone, when a group of records is already in selected state, moves the whole selection mask accordingly. Apparently, something might be amiss in actual implementation of suggested solution at your end. It might be helpful to look at the sample db mentioned in my previous post. It is in Access 2000 file format and is working smoothly on Access 2003 installation. On Access 2K, time lag is encountered as stated earlier, but results are consistent. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Tuesday, May 16, 2006 20:11 Subject: Re: [AccessD] Select Multiple records on form Thanks A.D With the code you sent...when I click on a record...was it supposed to stay selected? or was the form supposed to return to its original state on its own? The 3 seconds referred to wasn't a 'lag' as much as the duration of the formatting. The selection only lasted that long. If I used a shorter recordset...I didn't see the formatting at all. Thanks, Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] Select Multiple records on form >Date: Tue, 16 May 2006 19:55:10 +0530 > >Mark, Gustav, > > 1 - Comments on points raised by Gustav: > 1.1 - Change of status requiring re-rendering of colors on >controls governed by conditional formatting involves slight time lag, >though in simplest of cases it may hardly be noticeable. > 1.2 - The phenomenon gets further accentuated when max allowed >limit of three format conditions is fully exploited, and the expressions >used therein are not merely verifying the status of a particular record but >are dependant upon user defined functions dealing with recordsets. > 1.3 - Block-size involved (number of cells i.e. rows x columns), >for which re-rendering of colors is to be implemented, also contributes to >time lag. Overall number of records in form's record source also has a >bearing, as each record needs to be tested against the condition even if it >does not qualify for application of color. > 1.4 - For dynamic formatting at run time, editing the expression / >color / font of existing condition visa-vis application of brand new >condition is not found to provide any advantage in respect of time lag >discussed above. On the other hand, with edit approach, the revision does >not take effect unless refresh action is also performed on the form. > 1.5 - For the present case, involving conditional formatting of >selected block of records on a continuous form (Access 2000 file format), >performance of dynamic conditional highlighting is found to be much better >in Access 2003 installation, where the status change gets implemented in >just a flicker. In case of Access 2K & XP installations, the time lag is >found to be significantly more noticeable. > > 2 - Comments on points raised by Mark: > 2.1 - When you drag the mouse over record selectors for multiple >selection, form's click event fires only after the mouse button is finally >released on reaching the last selected record. It is this click event that >sets up revised conditional formatting of records falling in the selected >block. > 2.2 - Fn_SelectedBlock() is used by the expression in format >condition and verifies whether the given record falls in currently selected >block. It takes primary key number as its argument and returns 1 if true, >otherwise zero. AS explained in para 2.1 above, Fn_SelectedBlock() comes >into play only after the mouse button is finally released on reaching the >last selected record. > 2.3 - In one of your posts, you stated that you also wish to keep >track of non-contiguous selected records. Non-contiguous records can not >simultaneously form part of a given block of current selection. Perhaps you >want to keep track of all previously selected records, even those not >falling in current selection block. If so, this can be done. > 2.4 - My sample db ContFormsKeyNavAndHighLightMultiSelect, covers >this requirement and should become available at Rogers Access Library >shortly. It features: > (a) Key Navigation (Datasheet Style) > (b) Graded Highlighting Of Multiple Selected Records identifying: > (i) Current record > (ii) Current selection block > (iii) Other records, selected any time earlier in current >session > Note - Primary key numbers of all selected records (whether >forming part of current block or not) are stored in a form level global >variable. > >Best wishes, >A.D.Tejpal >--------------- > > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Monday, May 15, 2006 23:11 > Subject: Re: [AccessD] Select Multiple records on form> > > Gustav, > > Thanks for the compliment. As I started going through the code line by >line...it got more confusing. Apparently the function "Fn_SelectedBlock" >goes through each control...but 1 record at a time. > > The thing is if you are stepping through the code...when it gets to >where it calls "Fn_SelectedBlock"...it does NOT go there...it just >continues on...then when you get to the end of the code(hit F8 1 last time >on END SUB)...it zips through the function"Fn_SelectedBlock", without >breaking. > > This code, in my opinion, is doing something very 'cool'...almost what I >need...but just out of my understanding. > > Thanks, > > Mark A. Matte > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Mon, 15 May 2006 18:53:48 +0200 > > > >Hi Mark and A.D. > > > >Sorry A.D. - didn't notice that. You normally know very well what you are doing but this With .Add(..) thingy looks strange to me. > >It may be perfectly OK ... but 3 seconds? > > > >/gustav From markamatte at hotmail.com Tue May 16 11:50:04 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 16 May 2006 16:50:04 +0000 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: A.D Thanks...I must have done something wrong...when I click on a record...it is selected for about 3 seconds and then the formatting "goes away", simply put. If I use a smaller recordset...I don't see the formatting at all. I will check out the example. Thanks Again, Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] Select Multiple records on form >Date: Tue, 16 May 2006 22:12:36 +0530 > >Mark, > > So long as the group of records remain in a selected state, and after >you have released the mouse button, the code provided by me earlier, >ensures continued highlighting of such records in a special color, till the >selection gets undone (e.g. user clicking on any control). > > For your ready reference, selection of records is done as follows: > (a) Single record - Click on record selector. > (b) Multiple records at a time - Click on record selector of top >desired record and drag the mouse to record selector of bottom desired >record. (Alternatively, you can hold down shift key and then click the >record selector for bottom desired record, or use Dn Arrow key to expand >the selection suitably). > Note - Using Up/Dn arrow keys alone, when a group of records is >already in selected state, moves the whole selection mask accordingly. > > Apparently, something might be amiss in actual implementation of >suggested solution at your end. It might be helpful to look at the sample >db mentioned in my previous post. It is in Access 2000 file format and is >working smoothly on Access 2003 installation. On Access 2K, time lag is >encountered as stated earlier, but results are consistent. > >Best wishes, >A.D.Tejpal >--------------- > > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Tuesday, May 16, 2006 20:11 > Subject: Re: [AccessD] Select Multiple records on form > > > Thanks A.D > > With the code you sent...when I click on a record...was it supposed to >stay selected? or was the form supposed to return to its original state on >its own? > > The 3 seconds referred to wasn't a 'lag' as much as the duration of the > formatting. The selection only lasted that long. If I used a shorter > recordset...I didn't see the formatting at all. > > Thanks, > > Mark A. Matte > > > >From: "A.D.TEJPAL" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >CC: ADT > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Tue, 16 May 2006 19:55:10 +0530 > > > >Mark, Gustav, > > > > 1 - Comments on points raised by Gustav: > > 1.1 - Change of status requiring re-rendering of colors on > >controls governed by conditional formatting involves slight time lag, > >though in simplest of cases it may hardly be noticeable. > > 1.2 - The phenomenon gets further accentuated when max allowed > >limit of three format conditions is fully exploited, and the >expressions > >used therein are not merely verifying the status of a particular record >but > >are dependant upon user defined functions dealing with recordsets. > > 1.3 - Block-size involved (number of cells i.e. rows x >columns), > >for which re-rendering of colors is to be implemented, also contributes >to > >time lag. Overall number of records in form's record source also has a > >bearing, as each record needs to be tested against the condition even >if it > >does not qualify for application of color. > > 1.4 - For dynamic formatting at run time, editing the >expression / > >color / font of existing condition visa-vis application of brand new > >condition is not found to provide any advantage in respect of time lag > >discussed above. On the other hand, with edit approach, the revision >does > >not take effect unless refresh action is also performed on the form. > > 1.5 - For the present case, involving conditional formatting >of > >selected block of records on a continuous form (Access 2000 file >format), > >performance of dynamic conditional highlighting is found to be much >better > >in Access 2003 installation, where the status change gets implemented >in > >just a flicker. In case of Access 2K & XP installations, the time lag >is > >found to be significantly more noticeable. > > > > 2 - Comments on points raised by Mark: > > 2.1 - When you drag the mouse over record selectors for >multiple > >selection, form's click event fires only after the mouse button is >finally > >released on reaching the last selected record. It is this click event >that > >sets up revised conditional formatting of records falling in the >selected > >block. > > 2.2 - Fn_SelectedBlock() is used by the expression in format > >condition and verifies whether the given record falls in currently >selected > >block. It takes primary key number as its argument and returns 1 if >true, > >otherwise zero. AS explained in para 2.1 above, Fn_SelectedBlock() >comes > >into play only after the mouse button is finally released on reaching >the > >last selected record. > > 2.3 - In one of your posts, you stated that you also wish to >keep > >track of non-contiguous selected records. Non-contiguous records can >not > >simultaneously form part of a given block of current selection. Perhaps >you > >want to keep track of all previously selected records, even those not > >falling in current selection block. If so, this can be done. > > 2.4 - My sample db ContFormsKeyNavAndHighLightMultiSelect, >covers > >this requirement and should become available at Rogers Access Library > >shortly. It features: > > (a) Key Navigation (Datasheet Style) > > (b) Graded Highlighting Of Multiple Selected Records >identifying: > > (i) Current record > > (ii) Current selection block > > (iii) Other records, selected any time earlier in current > >session > > Note - Primary key numbers of all selected records >(whether > >forming part of current block or not) are stored in a form level global > >variable. > > > >Best wishes, > >A.D.Tejpal > >--------------- > > > > ----- Original Message ----- > > From: Mark A Matte > > To: accessd at databaseadvisors.com > > Sent: Monday, May 15, 2006 23:11 > > Subject: Re: [AccessD] Select Multiple records on form> > > > > Gustav, > > > > Thanks for the compliment. As I started going through the code line >by > >line...it got more confusing. Apparently the function >"Fn_SelectedBlock" > >goes through each control...but 1 record at a time. > > > > The thing is if you are stepping through the code...when it gets to > >where it calls "Fn_SelectedBlock"...it does NOT go there...it just > >continues on...then when you get to the end of the code(hit F8 1 last >time > >on END SUB)...it zips through the function"Fn_SelectedBlock", without > >breaking. > > > > This code, in my opinion, is doing something very 'cool'...almost >what I > >need...but just out of my understanding. > > > > Thanks, > > > > Mark A. Matte > > > > > > >From: "Gustav Brock" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: > > >Subject: Re: [AccessD] Select Multiple records on form > > >Date: Mon, 15 May 2006 18:53:48 +0200 > > > > > >Hi Mark and A.D. > > > > > >Sorry A.D. - didn't notice that. You normally know very well what >you are doing but this With .Add(..) thingy looks strange to me. > > >It may be perfectly OK ... but 3 seconds? > > > > > >/gustav >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue May 16 11:57:55 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 16 May 2006 09:57:55 -0700 Subject: [AccessD] OT: Virtual OS software... In-Reply-To: <4469F908.5020607@shaw.ca> References: <916187228923D311A6FE00A0CC3FAA30D353F2@ADGSERVER> <4469F908.5020607@shaw.ca> Message-ID: <446A0493.8030503@shaw.ca> Ooops got that wrong it is BartPE, it creates a bootable WinXP CD that you can add various debugging tools to or Access programs etc. This is no cost. Bart's Preinstalled Environment (BartPE) bootable live windows CD/DVD http://www.nu2.nu/pebuilder/ Then use Flash Boot a 20 Euro product to - convert BartPE bootable CD-ROM to bootable USB disk - convert a bootable CD-ROM to USB Flash disk - duplicate USB flash disk. http://www.prime-expert.com/flashboot/features.php More info http://techrepublic.com.com/5254-6257-0.html?forumID=99&threadID=173921&messageID=2006318&id=3334484 http://www.911cd.net/forums/lofiversion/index.php/t14180.html http://www.911cd.net/forums//index.php?showtopic=12771&pid=103660&st=20&#entry103660 MartyConnelly wrote: >A lot of big shops are getting into this with a slightly different flavour >What they used to do was have one application per server, if they had more >than that and an app failed it could bring down multiple applications. >Now they put the one application on a virtual pc via an image copy, but you >can have multiple virtual pc's running on a server, if one fails it doesn't >bring down the entire server. This reduces the number of servers required >on a site. And you have a new hot buzz word Virtual Servers. >This is the gist of it but is a bit more involved. >Sooner or later you maybe installing Access applications as a virtual PC. > >By the way you can also install Windows on a 2 gig PC flash drive via >PCBart. >I have users who run small Access apps this way in shops that don't >allow Access >installations. > > >Bobby Heid wrote: > > > >>Hi Jim. >> >>Thanks for the reply. Everything I've seen seems to point to the VMWare >>product. >> >>That is a really cool idea about recreating the user's machines. Can you >>take any image from any system and do this? >> >>Thanks, >>Bobby >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >>Sent: Tuesday, May 16, 2006 8:40 AM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] OT: Virtual OS software... >> >> >>We used VMWare a couple of years back to help us create an install that >>needed to work in NT 4.0, Win2K and WinXP. It was easy to use and saved >>tons of time in reboot time alone. >> >>We are going to use it again to create some virtual sandboxes for >>developer tests by recreating user's machines in the VM. >> >>Jim DeMarco >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid >>Sent: Tuesday, May 16, 2006 7:16 AM >>To: 'Access Developers discussion and problem solving' >>Subject: [AccessD] OT: Virtual OS software... >> >>Any of you have any preferences between Virtual PC and VMWare >>Workstation? >> >>I am looking at getting one of these to: >>1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, >>etc. >>2) To check beta or new software. >>3) Run various flavors of Linux. >>4) And in general, be able to play around with stuff without worrying >>about hosing my main system. >>5) So I don't have to multi-boot any more. >> >>So, if you have any thoughts on these, I'd love to hear them. >> >>Thanks, >>Bobby >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From bheid at appdevgrp.com Tue May 16 12:31:40 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 16 May 2006 13:31:40 -0400 Subject: [AccessD] OT: Virtual OS software... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB300A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353F5@ADGSERVER> Thanks for the info Marty. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, May 16, 2006 12:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Virtual OS software... Ooops got that wrong it is BartPE, it creates a bootable WinXP CD that you can add various debugging tools to or Access programs etc. This is no cost. Bart's Preinstalled Environment (BartPE) bootable live windows CD/DVD http://www.nu2.nu/pebuilder/ Then use Flash Boot a 20 Euro product to - convert BartPE bootable CD-ROM to bootable USB disk - convert a bootable CD-ROM to USB Flash disk - duplicate USB flash disk. http://www.prime-expert.com/flashboot/features.php More info http://techrepublic.com.com/5254-6257-0.html?forumID=99&threadID=173921&mess ageID=2006318&id=3334484 http://www.911cd.net/forums/lofiversion/index.php/t14180.html http://www.911cd.net/forums//index.php?showtopic=12771&pid=103660&st=20&#ent ry103660 MartyConnelly wrote: >A lot of big shops are getting into this with a slightly different flavour >What they used to do was have one application per server, if they had more >than that and an app failed it could bring down multiple applications. >Now they put the one application on a virtual pc via an image copy, but you >can have multiple virtual pc's running on a server, if one fails it doesn't >bring down the entire server. This reduces the number of servers required >on a site. And you have a new hot buzz word Virtual Servers. >This is the gist of it but is a bit more involved. >Sooner or later you maybe installing Access applications as a virtual PC. > >By the way you can also install Windows on a 2 gig PC flash drive via >PCBart. >I have users who run small Access apps this way in shops that don't >allow Access >installations. > > >Bobby Heid wrote: > > > >>Hi Jim. >> >>Thanks for the reply. Everything I've seen seems to point to the VMWare >>product. >> >>That is a really cool idea about recreating the user's machines. Can you >>take any image from any system and do this? >> >>Thanks, >>Bobby >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >>Sent: Tuesday, May 16, 2006 8:40 AM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] OT: Virtual OS software... >> >> >>We used VMWare a couple of years back to help us create an install that >>needed to work in NT 4.0, Win2K and WinXP. It was easy to use and saved >>tons of time in reboot time alone. >> >>We are going to use it again to create some virtual sandboxes for >>developer tests by recreating user's machines in the VM. >> >>Jim DeMarco >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid >>Sent: Tuesday, May 16, 2006 7:16 AM >>To: 'Access Developers discussion and problem solving' >>Subject: [AccessD] OT: Virtual OS software... >> >>Any of you have any preferences between Virtual PC and VMWare >>Workstation? >> >>I am looking at getting one of these to: >>1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, >>etc. >>2) To check beta or new software. >>3) Run various flavors of Linux. >>4) And in general, be able to play around with stuff without worrying >>about hosing my main system. >>5) So I don't have to multi-boot any more. >> >>So, if you have any thoughts on these, I'd love to hear them. >> >>Thanks, >>Bobby >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From fhtapia at gmail.com Tue May 16 12:36:11 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 16 May 2006 10:36:11 -0700 Subject: [AccessD] OT: Virtual OS software... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D353E8@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA30D353E8@ADGSERVER> Message-ID: We went with VMware for our Virtual Machines and Servers. Primarily because if you go with VPC you need to also make sure you have SP1 installed otherwise it doesn't perform very well. I know less about how it works with diffrent operating systems as I have not fully tested it. With VMware Workstation and Server (beta3) all my machines work flawlessly I have a Linux/Oracle VM, Ubuntu (linux flavors). and some Windows 2003/XP/2000 VMs as well. I use a clean VM where nothing else is installed to test my Access2003 installs on. And when new shareware hits the streets I can also use these machines as the test beds. typically I also use briddged networking adapters so that the machine has it's own IP and Mac diffrent from the hosts. What's neat is that it's easy enough to move around your VMs from machine to machine, and that's not necessarily true of VPCs. On 5/16/06, Bobby Heid wrote: > Any of you have any preferences between Virtual PC and VMWare Workstation? > > I am looking at getting one of these to: > 1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, etc. > 2) To check beta or new software. > 3) Run various flavors of Linux. > 4) And in general, be able to play around with stuff without worrying about > hosing my main system. > 5) So I don't have to multi-boot any more. > > So, if you have any thoughts on these, I'd love to hear them. > > Thanks, > Bobby -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From bchacc at san.rr.com Tue May 16 12:41:35 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 16 May 2006 10:41:35 -0700 Subject: [AccessD] Import Foxpro into Access Message-ID: <446A0ECF.8030608@san.rr.com> Dear List: I've got a bunch of FoxPro dbf files and their corresponding CDX files I'm trying to link or import into an access database. In the import there are dbase 'files of type' but that doesn't work. The import wizard looks for .ndx files which I think are the dbase index files. Has anyone done this before? MTIA, Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From martyconnelly at shaw.ca Tue May 16 13:29:12 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 16 May 2006 11:29:12 -0700 Subject: [AccessD] Import Foxpro into Access In-Reply-To: <446A0ECF.8030608@san.rr.com> References: <446A0ECF.8030608@san.rr.com> Message-ID: <446A19F8.7020901@shaw.ca> You cannot connect directly to FoxPro databases in Access 2003 http://support.microsoft.com/?kbid=824264 You maybe skipping this step 3. In the Administrative Tools window, double-click Data Sources (ODBC), and then add a new ODBC data source for your FoxPro database or tables by selecting the appropriate Visual FoxPro driver. Rocky Smolin - Beach Access Software wrote: >Dear List: > >I've got a bunch of FoxPro dbf files and their corresponding CDX files >I'm trying to link or import into an access database. In the import >there are dbase 'files of type' but that doesn't work. The import >wizard looks for .ndx files which I think are the dbase index files. >Has anyone done this before? > >MTIA, > >Rocky > > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Tue May 16 13:37:54 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 16 May 2006 20:37:54 +0200 Subject: [AccessD] To re-link or not to re-link... Message-ID: Hi Bobby In my experience you don't even need to go that "far". Just open a mandatory table and catch the error. If success, fine; if fail, either the backend has been moved or - more likely - a network error exists or the drive mapping has been lost or the backend is corrupted. Each of these errors calls for very different further checks as well as messages to and actions from the user. But still no relinking - as soon as the error has been corrected, the app will run again. /gustav >>> bheid at appdevgrp.com 16-05-2006 17:33:14 >>> Thanks everyone for your input. I think we'll try the one table relink thing that several have suggested. I'll also look at making sure I have a connection to the BE when I do have to re-link all of the tables (the user switch back ends every now and then). Thanks again, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 16, 2006 11:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... Thanks for the memory boost, Jim. I knew I had encountered it but couldn't remember the details. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, May 15, 2006 5:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] To re-link or not to re-link... Charlotte, A2 had "attachment fatigue". For no apparent reason, at some point, linked tables would simply stop working. A lot of developers got into the habit of re-linking at startup every time. I myself check one table in each BE and if it can't open the table, I force a re-link of all the tables associated with that BE. I prompt the user for the location of the BE to, so if it's been moved or it's un-available, they can correct it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 15, 2006 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... It seems to me there were some issues in the early versions if the linked database were not available (moved, renamed, network down) because the condition seemed to persist even when the linked file became available again, but I may be misremembering. In any case, that was overcome long ago and may have had more to do with the OS than with Access itself. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby From Gustav at cactus.dk Tue May 16 14:14:49 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 16 May 2006 21:14:49 +0200 Subject: [AccessD] To re-link or not to re-link... Message-ID: Hi Bobby Sorry, too fast, of course if the path to the backend has changed permanently, relinking is needed. /gustav >>> Gustav at cactus.dk 16-05-2006 20:37:54 >>> Hi Bobby In my experience you don't even need to go that "far". Just open a mandatory table and catch the error. If success, fine; if fail, either the backend has been moved or - more likely - a network error exists or the drive mapping has been lost or the backend is corrupted. Each of these errors calls for very different further checks as well as messages to and actions from the user. But still no relinking - as soon as the error has been corrected, the app will run again. /gustav From JHewson at karta.com Tue May 16 14:30:52 2006 From: JHewson at karta.com (Jim Hewson) Date: Tue, 16 May 2006 14:30:52 -0500 Subject: [AccessD] To re-link or not to re-link... Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C040E359D@karta-exc-int.Karta.com> I concur. I have several databases that use the BE/FE split. I use the UNC path with no problems. The shortcut vs. file on the user's machine debate is an issue that needs to be addressed. I did learned (from this list) - once loaded, it's faster to have the FE on the user's machine; especially if several queries run when opening the main form. If the path to the BE does not change, it's quite easy to move the FE without relinking. For example: The BE is located on C:\Data. The FE can reside anywhere on the machine. That includes my Dev Machine; since I have a directory C:\Data on my machine. The user can place the modified FE anywhere on the C: Drive and it will run correctly. Also, if the path is UNC, the FE can be placed anywhere on the network. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 16, 2006 1:38 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby In my experience you don't even need to go that "far". Just open a mandatory table and catch the error. If success, fine; if fail, either the backend has been moved or - more likely - a network error exists or the drive mapping has been lost or the backend is corrupted. Each of these errors calls for very different further checks as well as messages to and actions from the user. But still no relinking - as soon as the error has been corrected, the app will run again. /gustav >>> bheid at appdevgrp.com 16-05-2006 17:33:14 >>> Thanks everyone for your input. I think we'll try the one table relink thing that several have suggested. I'll also look at making sure I have a connection to the BE when I do have to re-link all of the tables (the user switch back ends every now and then). Thanks again, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 16, 2006 11:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... Thanks for the memory boost, Jim. I knew I had encountered it but couldn't remember the details. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, May 15, 2006 5:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] To re-link or not to re-link... Charlotte, A2 had "attachment fatigue". For no apparent reason, at some point, linked tables would simply stop working. A lot of developers got into the habit of re-linking at startup every time. I myself check one table in each BE and if it can't open the table, I force a re-link of all the tables associated with that BE. I prompt the user for the location of the BE to, so if it's been moved or it's un-available, they can correct it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 15, 2006 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... It seems to me there were some issues in the early versions if the linked database were not available (moved, renamed, network down) because the condition seemed to persist even when the linked file became available again, but I may be misremembering. In any case, that was overcome long ago and may have had more to do with the OS than with Access itself. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby -- 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 May 16 14:48:10 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 16 May 2006 12:48:10 -0700 Subject: [AccessD] Import Foxpro into Access In-Reply-To: <446A19F8.7020901@shaw.ca> References: <446A0ECF.8030608@san.rr.com> <446A19F8.7020901@shaw.ca> Message-ID: <446A2C7A.8030702@san.rr.com> Thanks Marty. That got me a little closer. The two tables I need, though, don't show up when trying to import. The client is sending me a CD with all the files. Maybe then... Rocky MartyConnelly wrote: > You cannot connect directly to FoxPro databases in Access 2003 > > http://support.microsoft.com/?kbid=824264 > > You maybe skipping this step > > 3. In the Administrative Tools window, double-click Data Sources (ODBC), > and then add a new ODBC data source for your FoxPro database or tables > by selecting the appropriate Visual FoxPro driver. > > Rocky Smolin - Beach Access Software wrote: > > >> Dear List: >> >> I've got a bunch of FoxPro dbf files and their corresponding CDX files >> I'm trying to link or import into an access database. In the import >> there are dbase 'files of type' but that doesn't work. The import >> wizard looks for .ndx files which I think are the dbase index files. >> Has anyone done this before? >> >> MTIA, >> >> Rocky >> >> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From kp at sdsonline.net Tue May 16 18:18:36 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 17 May 2006 09:18:36 +1000 Subject: [AccessD] Other lists Message-ID: <005f01c6793f$103272c0$6601a8c0@office> (Cross posted - AccessD and AccessD VB) Has anyone encountered a vb.net forum that posts email to members the way ours does? (Also for SQL Server?) ______________________________________ Kath Pelletti Software Design and Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 Email: KP at SDSOnline.net From john at winhaven.net Tue May 16 21:14:14 2006 From: john at winhaven.net (John Bartow) Date: Tue, 16 May 2006 21:14:14 -0500 Subject: [AccessD] Other lists In-Reply-To: <005f01c6793f$103272c0$6601a8c0@office> Message-ID: <016b01c67957$989205a0$6502a8c0@ScuzzPaq> Hi Kath, We had discussed adding a .net list here on dba but only 10 people responded to the feeler mail. So for now vb.net can be discussed on the dba-VB list. Otherwise, I can't be of much help. Most technical lists have been going to forum format and I find that I just don't participate much when involved in forums so I haven't looked lately. John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, May 16, 2006 6:19 PM To: AccessD VB List; Access D Normal List Subject: [AccessD] Other lists (Cross posted - AccessD and AccessD VB) Has anyone encountered a vb.net forum that posts email to members the way ours does? (Also for SQL Server?) ______________________________________ Kath Pelletti Software Design and Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 Email: KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kp at sdsonline.net Tue May 16 21:20:33 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 17 May 2006 12:20:33 +1000 Subject: [AccessD] Other lists References: <016b01c67957$989205a0$6502a8c0@ScuzzPaq> Message-ID: <004301c67958$7a683350$6601a8c0@office> Thanks Jonh - well in that case hopefully the numbers will grow - it's hard to find anything out there which uses this format - I find it much easier than forums. rgds ----- Original Message ----- From: John Bartow To: 'Access Developers discussion and problem solving' Sent: Wednesday, May 17, 2006 12:14 PM Subject: Re: [AccessD] Other lists Hi Kath, We had discussed adding a .net list here on dba but only 10 people responded to the feeler mail. So for now vb.net can be discussed on the dba-VB list. Otherwise, I can't be of much help. Most technical lists have been going to forum format and I find that I just don't participate much when involved in forums so I haven't looked lately. John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, May 16, 2006 6:19 PM To: AccessD VB List; Access D Normal List Subject: [AccessD] Other lists (Cross posted - AccessD and AccessD VB) Has anyone encountered a vb.net forum that posts email to members the way ours does? (Also for SQL Server?) ______________________________________ Kath Pelletti Software Design and Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 Email: KP at SDSOnline.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 newsgrps at dalyn.co.nz Tue May 16 21:46:26 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 17 May 2006 14:46:26 +1200 Subject: [AccessD] Other lists In-Reply-To: <004301c67958$7a683350$6601a8c0@office> References: <016b01c67957$989205a0$6502a8c0@ScuzzPaq> <004301c67958$7a683350$6601a8c0@office> Message-ID: <7.0.1.0.0.20060517144451.01b3b940@dalyn.co.nz> Kath, You could try http://discuss.develop.com They have a number of lists that email. I can't speak for any of them as I have just joined DOTNET-WEB recently. From kp at sdsonline.net Tue May 16 22:07:59 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 17 May 2006 13:07:59 +1000 Subject: [AccessD] Other lists References: <016b01c67957$989205a0$6502a8c0@ScuzzPaq><004301c67958$7a683350$6601a8c0@office> <7.0.1.0.0.20060517144451.01b3b940@dalyn.co.nz> Message-ID: <003001c6795f$1a9feba0$6601a8c0@office> thanks David - I have signed up for the dotnet web and dotnet winforms. It'll be interesting to see how much traffic they get, rgds ----- Original Message ----- From: David Emerson To: Access Developers discussion and problem solving Sent: Wednesday, May 17, 2006 12:46 PM Subject: Re: [AccessD] Other lists Kath, You could try http://discuss.develop.com They have a number of lists that email. I can't speak for any of them as I have just joined DOTNET-WEB recently. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Tue May 16 23:03:22 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 17 May 2006 09:33:22 +0530 Subject: [AccessD] Select Multiple records on form References: Message-ID: Mark, Sample db ContFormsKeyNavAndHighLightMultiSelect is now available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. It would be helpful if on opening the db, you first go through the tips (click the command button captioned "Show Tips"). Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Tuesday, May 16, 2006 22:20 Subject: Re: [AccessD] Select Multiple records on form A.D Thanks...I must have done something wrong...when I click on a record...it is selected for about 3 seconds and then the formatting "goes away", simply put. If I use a smaller recordset...I don't see the formatting at all. I will check out the example. Thanks Again, Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] Select Multiple records on form >Date: Tue, 16 May 2006 22:12:36 +0530 > >Mark, > > So long as the group of records remain in a selected state, and after you have released the mouse button, the code provided by me earlier, ensures continued highlighting of such records in a special color, till the selection gets undone (e.g. user clicking on any control). > > For your ready reference, selection of records is done as follows: > (a) Single record - Click on record selector. > (b) Multiple records at a time - Click on record selector of top >desired record and drag the mouse to record selector of bottom desired record. (Alternatively, you can hold down shift key and then click the record selector for bottom desired record, or use Dn Arrow key to expand the selection suitably). > Note - Using Up/Dn arrow keys alone, when a group of records is already in selected state, moves the whole selection mask accordingly. > > Apparently, something might be amiss in actual implementation of >suggested solution at your end. It might be helpful to look at the sample db mentioned in my previous post. It is in Access 2000 file format and is working smoothly on Access 2003 installation. On Access 2K, time lag is encountered as stated earlier, but results are consistent. > >Best wishes, >A.D.Tejpal >--------------- From martyconnelly at shaw.ca Wed May 17 02:24:05 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 17 May 2006 00:24:05 -0700 Subject: [AccessD] Import Foxpro into Access In-Reply-To: <446A2C7A.8030702@san.rr.com> References: <446A0ECF.8030608@san.rr.com> <446A19F8.7020901@shaw.ca> <446A2C7A.8030702@san.rr.com> Message-ID: <446ACF95.1020509@shaw.ca> If I remember right the cdx file is a metafile showing the connections between the dbf and ndx files.and the files used by the foxpro database Rocky Smolin - Beach Access Software wrote: >Thanks Marty. That got me a little closer. The two tables I need, >though, don't show up when trying to import. The client is sending me a >CD with all the files. Maybe then... > >Rocky > > >MartyConnelly wrote: > > >>You cannot connect directly to FoxPro databases in Access 2003 >> >>http://support.microsoft.com/?kbid=824264 >> >>You maybe skipping this step >> >>3. In the Administrative Tools window, double-click Data Sources (ODBC), >>and then add a new ODBC data source for your FoxPro database or tables >>by selecting the appropriate Visual FoxPro driver. >> >>Rocky Smolin - Beach Access Software wrote: >> >> >> >> >>>Dear List: >>> >>>I've got a bunch of FoxPro dbf files and their corresponding CDX files >>>I'm trying to link or import into an access database. In the import >>>there are dbase 'files of type' but that doesn't work. The import >>>wizard looks for .ndx files which I think are the dbase index files. >>>Has anyone done this before? >>> >>>MTIA, >>> >>>Rocky >>> >>> >>> >>> >>> >>> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From markamatte at hotmail.com Wed May 17 09:41:05 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 17 May 2006 14:41:05 +0000 Subject: [AccessD] Other lists In-Reply-To: <004301c67958$7a683350$6601a8c0@office> Message-ID: Kath, For the 'also' part of your post. DBA does have an SQL list. Good Luck, Mark A. Matte >From: "Kath Pelletti" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Other lists >Date: Wed, 17 May 2006 12:20:33 +1000 > >Thanks Jonh - well in that case hopefully the numbers will grow - it's hard >to find anything out there which uses this format - I find it much easier >than forums. > >rgds > ----- Original Message ----- > From: John Bartow > To: 'Access Developers discussion and problem solving' > Sent: Wednesday, May 17, 2006 12:14 PM > Subject: Re: [AccessD] Other lists > > > Hi Kath, > We had discussed adding a .net list here on dba but only 10 people >responded > to the feeler mail. So for now vb.net can be discussed on the dba-VB >list. > > Otherwise, I can't be of much help. Most technical lists have been going >to > forum format and I find that I just don't participate much when involved >in > forums so I haven't looked lately. > > John Bartow, President > Database Advisors, Inc. > Email: mailto:president at databaseadvisors.com > Website: http://www.databaseadvisors.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti > Sent: Tuesday, May 16, 2006 6:19 PM > To: AccessD VB List; Access D Normal List > Subject: [AccessD] Other lists > > (Cross posted - AccessD and AccessD VB) > > Has anyone encountered a vb.net forum that posts email to members the >way > ours does? (Also for SQL Server?) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.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 markamatte at hotmail.com Wed May 17 09:41:21 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 17 May 2006 14:41:21 +0000 Subject: [AccessD] Other lists In-Reply-To: <004301c67958$7a683350$6601a8c0@office> Message-ID: Kath, For the 'also' part of your post. DBA does have an SQL list. Good Luck, Mark A. Matte >From: "Kath Pelletti" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Other lists >Date: Wed, 17 May 2006 12:20:33 +1000 > >Thanks Jonh - well in that case hopefully the numbers will grow - it's hard >to find anything out there which uses this format - I find it much easier >than forums. > >rgds > ----- Original Message ----- > From: John Bartow > To: 'Access Developers discussion and problem solving' > Sent: Wednesday, May 17, 2006 12:14 PM > Subject: Re: [AccessD] Other lists > > > Hi Kath, > We had discussed adding a .net list here on dba but only 10 people >responded > to the feeler mail. So for now vb.net can be discussed on the dba-VB >list. > > Otherwise, I can't be of much help. Most technical lists have been going >to > forum format and I find that I just don't participate much when involved >in > forums so I haven't looked lately. > > John Bartow, President > Database Advisors, Inc. > Email: mailto:president at databaseadvisors.com > Website: http://www.databaseadvisors.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti > Sent: Tuesday, May 16, 2006 6:19 PM > To: AccessD VB List; Access D Normal List > Subject: [AccessD] Other lists > > (Cross posted - AccessD and AccessD VB) > > Has anyone encountered a vb.net forum that posts email to members the >way > ours does? (Also for SQL Server?) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.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 Patricia.O'Connor at otda.state.ny.us Wed May 17 09:55:27 2006 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Wed, 17 May 2006 10:55:27 -0400 Subject: [AccessD] Import Foxpro into Access References: <446A0ECF.8030608@san.rr.com> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE838CA14@EXCNYSM0A1AI.nysemail.nyenet> I have done this before for several colleagues over the last few years. They received them from another or an outside sources. It has been in Access 97 and Access 2k..not sure if I have attempted for Access 2003. I go through the FoxPro ODBC. One thing that I have had to do is make sure the name of the FoxPro file is max 8 (maybe 10) characters otherwise it won't work. So I would usually copy the files so the original is intact and mess with the copy. hth ************************************************************* * Patricia E. 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: accessd-bounces at databaseadvisors.com on behalf of Rocky Smolin - Beach Access Software Sent: Tue 05/16/2006 1:41 PM To: Access Developers discussion and problem solving Subject: [AccessD] Import Foxpro into Access Dear List: I've got a bunch of FoxPro dbf files and their corresponding CDX files I'm trying to link or import into an access database. In the import there are dbase 'files of type' but that doesn't work. The import wizard looks for .ndx files which I think are the dbase index files. Has anyone done this before? 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 john at winhaven.net Wed May 17 10:06:46 2006 From: john at winhaven.net (John Bartow) Date: Wed, 17 May 2006 10:06:46 -0500 Subject: [AccessD] Other lists In-Reply-To: Message-ID: <008901c679c3$843c8460$6502a8c0@ScuzzPaq> Good catch Mark! Thanks, I missed the "also" part completely! Our DBA-SQLServer, DBA-VB and DBA-Tech lists are quite active. DBA-Tech being the catch all list for things not covered on any other list (mostly security issues and hardware lately). John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Kath, For the 'also' part of your post. DBA does have an SQL list. Good Luck, Mark A. Matte > -----Original Message----- > Has anyone encountered a vb.net forum that posts email to members >the way > ours does? (Also for SQL Server?) > > ______________________________________ > Kath Pelletti From bchacc at san.rr.com Wed May 17 10:37:21 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 17 May 2006 08:37:21 -0700 Subject: [AccessD] Import Foxpro into Access In-Reply-To: <446ACF95.1020509@shaw.ca> References: <446A0ECF.8030608@san.rr.com> <446A19F8.7020901@shaw.ca> <446A2C7A.8030702@san.rr.com> <446ACF95.1020509@shaw.ca> Message-ID: <446B4331.9020209@san.rr.com> Foxpro got ndx files? I didn't get any of those from my client. :( He's sending me a CD with as he puts it "the whole fool program". So I'll see what's there. I think with all the right files I could get this stuff into Access. At least with your help I got the ODBC thing working and I think I'd quicker understand Aramaic than those ODBC driver things. Rocky MartyConnelly wrote: > If I remember right the cdx file is a metafile showing the connections > between the dbf and ndx files.and the files used by the foxpro database > > Rocky Smolin - Beach Access Software wrote: > > >> Thanks Marty. That got me a little closer. The two tables I need, >> though, don't show up when trying to import. The client is sending me a >> CD with all the files. Maybe then... >> >> Rocky >> >> >> MartyConnelly wrote: >> >> >> >>> You cannot connect directly to FoxPro databases in Access 2003 >>> >>> http://support.microsoft.com/?kbid=824264 >>> >>> You maybe skipping this step >>> >>> 3. In the Administrative Tools window, double-click Data Sources (ODBC), >>> and then add a new ODBC data source for your FoxPro database or tables >>> by selecting the appropriate Visual FoxPro driver. >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>> >>> >>> >>> >>>> Dear List: >>>> >>>> I've got a bunch of FoxPro dbf files and their corresponding CDX files >>>> I'm trying to link or import into an access database. In the import >>>> there are dbase 'files of type' but that doesn't work. The import >>>> wizard looks for .ndx files which I think are the dbase index files. >>>> Has anyone done this before? >>>> >>>> MTIA, >>>> >>>> Rocky >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From fhtapia at gmail.com Wed May 17 12:36:48 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 17 May 2006 10:36:48 -0700 Subject: [AccessD] Foxpro Message-ID: I'm getting ready to begin working on a "foxpro" db. It's been a really long time since I've used a foxpro db, last time was somewhere in 1992. One question that arose, is in a client/server app is the processing done on the server or the client like access? Thanks, -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From KIsmert at TexasSystems.com Wed May 17 13:49:13 2006 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 17 May 2006 13:49:13 -0500 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: A.D.: >> Sample db ContFormsKeyNavAndHighLightMultiSelect is now available at Rogers Access Library (other developers library). I tried it, and it works as advertized. There is about a 1/2 second delay on my machine for highlighting. Scrolling drops the highlights, but they re-appear after about a half-second (but this is typical Conditional Formatting behaviour) -Ken -----Original Message----- From: A.D.TEJPAL [mailto:adtp at hotmail.com] Sent: Tuesday, May 16, 2006 11:03 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] Select Multiple records on form Mark, Sample db ContFormsKeyNavAndHighLightMultiSelect is now available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. It would be helpful if on opening the db, you first go through the tips (click the command button captioned "Show Tips"). Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Tuesday, May 16, 2006 22:20 Subject: Re: [AccessD] Select Multiple records on form A.D Thanks...I must have done something wrong...when I click on a record...it is selected for about 3 seconds and then the formatting "goes away", simply put. If I use a smaller recordset...I don't see the formatting at all. I will check out the example. Thanks Again, Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] Select Multiple records on form >Date: Tue, 16 May 2006 22:12:36 +0530 > >Mark, > > So long as the group of records remain in a selected state, and after you have released the mouse button, the code provided by me earlier, ensures continued highlighting of such records in a special color, till the selection gets undone (e.g. user clicking on any control). > > For your ready reference, selection of records is done as follows: > (a) Single record - Click on record selector. > (b) Multiple records at a time - Click on record selector of top >desired record and drag the mouse to record selector of bottom desired record. (Alternatively, you can hold down shift key and then click the record selector for bottom desired record, or use Dn Arrow key to expand the selection suitably). > Note - Using Up/Dn arrow keys alone, when a group of records is already in selected state, moves the whole selection mask accordingly. > > Apparently, something might be amiss in actual implementation of >suggested solution at your end. It might be helpful to look at the sample db mentioned in my previous post. It is in Access 2000 file format and is working smoothly on Access 2003 installation. On Access 2K, time lag is encountered as stated earlier, but results are consistent. > >Best wishes, >A.D.Tejpal >--------------- From fhtapia at gmail.com Wed May 17 15:50:03 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 17 May 2006 13:50:03 -0700 Subject: [AccessD] Odd XP machine Message-ID: I have an application that is used accross the company here. It was written in Access2000 as an ADP. This app works on all windows 2000/XP machines running SP4 and SP2 (respectively). I do have a newer XP machine that was just issued to a user and her system just closes out for no reason after just some usage. Another user that shares her responsiblities is running the exact same version and does not have this problem. I tried upgrading her to Jet4 sp8, and mdac 2.8 but this did not solve her problem. I am working on getting the program up to Access2003, but at this moment in time it's a problem she just has to deal with :(, and I don't have any re-assurance that the problem will go away when we move to 2003. -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From stuart at lexacorp.com.pg Wed May 17 16:29:15 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 18 May 2006 07:29:15 +1000 Subject: [AccessD] Foxpro In-Reply-To: Message-ID: <446C224B.15969.1991BAC9@stuart.lexacorp.com.pg> On 17 May 2006 at 10:36, Francisco Tapia wrote: > I'm getting ready to begin working on a "foxpro" db. It's been a > really long time since I've used a foxpro db, last time was somewhere > in 1992. One question that arose, is in a client/server app is the > processing done on the server or the client like access? > AFAIK, Foxpro doesn't have a separate database engine. At least, the last time I worked with it it didn't. So, like Access, there is nothing to do any processing on the server - it's all client process. -- Stuart From stuart at lexacorp.com.pg Wed May 17 17:24:41 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 18 May 2006 08:24:41 +1000 Subject: [AccessD] Odd XP machine In-Reply-To: Message-ID: <446C2F49.18959.19C47A4D@stuart.lexacorp.com.pg> On 17 May 2006 at 13:50, Francisco Tapia wrote: > I have an application that is used accross the company here. It was > written in Access2000 as an ADP. This app works on all windows > 2000/XP machines running SP4 and SP2 (respectively). I do have a > newer XP machine that was just issued to a user and her system just > closes out for no reason after just some usage. Great technical term, very detailed description of the symptoms - just what we love to hear from users when trying to diagnose problems. What does "system just closes out" mean? Application closes itself? Application fails with an error message? Application disappears with no warning and without cleaning itself up? Application disappears but task manager shows it is still running? OS locks up? BSOD? Computer reboots spontaneously? or something else entirely? -- Stuart From fhtapia at gmail.com Wed May 17 17:33:19 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 17 May 2006 15:33:19 -0700 Subject: [AccessD] Foxpro In-Reply-To: <446C224B.15969.1991BAC9@stuart.lexacorp.com.pg> References: <446C224B.15969.1991BAC9@stuart.lexacorp.com.pg> Message-ID: That's what I suspected. I couldn't find any documentation on the ms site pertaining to this tho. On 5/17/06, Stuart McLachlan wrote: > On 17 May 2006 at 10:36, Francisco Tapia wrote: > > > I'm getting ready to begin working on a "foxpro" db. It's been a > > really long time since I've used a foxpro db, last time was somewhere > > in 1992. One question that arose, is in a client/server app is the > > processing done on the server or the client like access? > > > > AFAIK, Foxpro doesn't have a separate database engine. At least, the last > time I worked with it it didn't. So, like Access, there is nothing to do > any processing on the server - it's all client process. > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Wed May 17 17:40:24 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 17 May 2006 15:40:24 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: <446C2F49.18959.19C47A4D@stuart.lexacorp.com.pg> References: <446C2F49.18959.19C47A4D@stuart.lexacorp.com.pg> Message-ID: the "system just closes out" is defined as: the user will be in her order entry screen either inputting a line item, or header info, or the main status screen when the system for no explainable reason closes and there is no error message displayed, "OR" even logged in event log or anywhere else, its' not a BSOD, or a GPF or an OS lockup, it's just "now you see it now you don't". The app is an ADE format, there are no LDB files, When the app dies, it is not on the task manager, so it's not hung up in the background and just not redrawn. The computer seems to run every other applications just fine w/o fail, it's just this app, and when I run it on her neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they both type about the same words per minute, and fly past the screens at about the same speed. If I trade this user to the other pc, the problem does not surface so it's not her work method. About the biggest diffrence is that the user with the problems has a newer dell than the other user. On 5/17/06, Stuart McLachlan wrote: > On 17 May 2006 at 13:50, Francisco Tapia wrote: > > > I have an application that is used accross the company here. It was > > written in Access2000 as an ADP. This app works on all windows > > 2000/XP machines running SP4 and SP2 (respectively). I do have a > > newer XP machine that was just issued to a user and her system just > > closes out for no reason after just some usage. > > Great technical term, very detailed description of the symptoms - just what > we love to hear from users when trying to diagnose problems. > > What does "system just closes out" mean? > > Application closes itself? > Application fails with an error message? > Application disappears with no warning and without cleaning itself up? > Application disappears but task manager shows it is still running? > OS locks up? > BSOD? > Computer reboots spontaneously? > or something else entirely? > > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From cfoust at infostatsystems.com Wed May 17 17:40:11 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 May 2006 15:40:11 -0700 Subject: [AccessD] Foxpro In-Reply-To: <446C224B.15969.1991BAC9@stuart.lexacorp.com.pg> Message-ID: FoxPro is built on the Rushmore engine, which is why Microsoft bought it in the first place. It's analogous to Access using Jet. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, May 17, 2006 2:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Foxpro On 17 May 2006 at 10:36, Francisco Tapia wrote: > I'm getting ready to begin working on a "foxpro" db. It's been a > really long time since I've used a foxpro db, last time was somewhere > in 1992. One question that arose, is in a client/server app is the > processing done on the server or the client like access? > AFAIK, Foxpro doesn't have a separate database engine. At least, the last time I worked with it it didn't. So, like Access, there is nothing to do any processing on the server - it's all client process. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed May 17 17:47:24 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 May 2006 15:47:24 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: Message-ID: If it isn't an MDAC issue or a Jet service pack issue, it sounds like garbage collection. I've seen that behavior before and have a wretched time tracking it down to things like trying to use the value of a checkbox as an implicit boolean in code. Good luck. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, May 17, 2006 3:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Odd XP machine the "system just closes out" is defined as: the user will be in her order entry screen either inputting a line item, or header info, or the main status screen when the system for no explainable reason closes and there is no error message displayed, "OR" even logged in event log or anywhere else, its' not a BSOD, or a GPF or an OS lockup, it's just "now you see it now you don't". The app is an ADE format, there are no LDB files, When the app dies, it is not on the task manager, so it's not hung up in the background and just not redrawn. The computer seems to run every other applications just fine w/o fail, it's just this app, and when I run it on her neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they both type about the same words per minute, and fly past the screens at about the same speed. If I trade this user to the other pc, the problem does not surface so it's not her work method. About the biggest diffrence is that the user with the problems has a newer dell than the other user. On 5/17/06, Stuart McLachlan wrote: > On 17 May 2006 at 13:50, Francisco Tapia wrote: > > > I have an application that is used accross the company here. It was > > written in Access2000 as an ADP. This app works on all windows > > 2000/XP machines running SP4 and SP2 (respectively). I do have a > > newer XP machine that was just issued to a user and her system just > > closes out for no reason after just some usage. > > Great technical term, very detailed description of the symptoms - just > what we love to hear from users when trying to diagnose problems. > > What does "system just closes out" mean? > > Application closes itself? > Application fails with an error message? > Application disappears with no warning and without cleaning itself up? > Application disappears but task manager shows it is still running? > OS locks up? > BSOD? > Computer reboots spontaneously? > or something else entirely? > > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fhtapia at gmail.com Wed May 17 19:21:12 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 17 May 2006 17:21:12 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: References: Message-ID: ACK! but why just this machine, on her old pc this never occured :( On 5/17/06, Charlotte Foust wrote: > If it isn't an MDAC issue or a Jet service pack issue, it sounds like > garbage collection. I've seen that behavior before and have a wretched > time tracking it down to things like trying to use the value of a > checkbox as an implicit boolean in code. Good luck. > > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco > Tapia > Sent: Wednesday, May 17, 2006 3:40 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Odd XP machine > > the "system just closes out" is defined as: > > the user will be in her order entry screen either inputting a line item, > or header info, or the main status screen when the system for no > explainable reason closes and there is no error message displayed, "OR" > even logged in event log or anywhere else, its' not a BSOD, or a GPF or > an OS lockup, it's just "now you see it now you don't". > > The app is an ADE format, there are no LDB files, When the app dies, it > is not on the task manager, so it's not hung up in the background and > just not redrawn. The computer seems to run every other applications > just fine w/o fail, it's just this app, and when I run it on her > neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they > both type about the same words per minute, and fly past the screens at > about the same speed. If I trade this user to the other pc, the problem > does not surface so it's not her work method. About the biggest > diffrence is that the user with the problems has a newer dell than the > other user. > > > > On 5/17/06, Stuart McLachlan wrote: > > On 17 May 2006 at 13:50, Francisco Tapia wrote: > > > > > I have an application that is used accross the company here. It was > > > > written in Access2000 as an ADP. This app works on all windows > > > 2000/XP machines running SP4 and SP2 (respectively). I do have a > > > newer XP machine that was just issued to a user and her system just > > > closes out for no reason after just some usage. > > > > Great technical term, very detailed description of the symptoms - just > > > what we love to hear from users when trying to diagnose problems. > > > > What does "system just closes out" mean? > > > > Application closes itself? > > Application fails with an error message? > > Application disappears with no warning and without cleaning itself up? > > Application disappears but task manager shows it is still running? > > OS locks up? > > BSOD? > > Computer reboots spontaneously? > > or something else entirely? > > > > > > > > -- > > Stuart > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From dmcafee at pacbell.net Wed May 17 19:34:11 2006 From: dmcafee at pacbell.net (David Mcafee) Date: Wed, 17 May 2006 17:34:11 -0700 (PDT) Subject: [AccessD] Odd XP machine In-Reply-To: Message-ID: <20060518003411.70798.qmail@web80832.mail.yahoo.com> We had issues here some Dells would reboot (the whole computer would restart) some users computers when using Access and others wouldnt. It was driving us nuts. It ended up being that the problem machines had a certain firmware on their ethernet or video card ( I cant remember which) and a certain driver for the card. Others users with just the firmware or just the driver (but not both) wouldn't have the problems. Francisco Tapia wrote: ACK! but why just this machine, on her old pc this never occured :( On 5/17/06, Charlotte Foust wrote: > If it isn't an MDAC issue or a Jet service pack issue, it sounds like > garbage collection. I've seen that behavior before and have a wretched > time tracking it down to things like trying to use the value of a > checkbox as an implicit boolean in code. Good luck. > > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco > Tapia > Sent: Wednesday, May 17, 2006 3:40 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Odd XP machine > > the "system just closes out" is defined as: > > the user will be in her order entry screen either inputting a line item, > or header info, or the main status screen when the system for no > explainable reason closes and there is no error message displayed, "OR" > even logged in event log or anywhere else, its' not a BSOD, or a GPF or > an OS lockup, it's just "now you see it now you don't". > > The app is an ADE format, there are no LDB files, When the app dies, it > is not on the task manager, so it's not hung up in the background and > just not redrawn. The computer seems to run every other applications > just fine w/o fail, it's just this app, and when I run it on her > neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they > both type about the same words per minute, and fly past the screens at > about the same speed. If I trade this user to the other pc, the problem > does not surface so it's not her work method. About the biggest > diffrence is that the user with the problems has a newer dell than the > other user. > > > > On 5/17/06, Stuart McLachlan wrote: > > On 17 May 2006 at 13:50, Francisco Tapia wrote: > > > > > I have an application that is used accross the company here. It was > > > > written in Access2000 as an ADP. This app works on all windows > > > 2000/XP machines running SP4 and SP2 (respectively). I do have a > > > newer XP machine that was just issued to a user and her system just > > > closes out for no reason after just some usage. > > > > Great technical term, very detailed description of the symptoms - just > > > what we love to hear from users when trying to diagnose problems. > > > > What does "system just closes out" mean? > > > > Application closes itself? > > Application fails with an error message? > > Application disappears with no warning and without cleaning itself up? > > Application disappears but task manager shows it is still running? > > OS locks up? > > BSOD? > > Computer reboots spontaneously? > > or something else entirely? > > > > > > > > -- > > Stuart > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kp at sdsonline.net Wed May 17 19:38:19 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Thu, 18 May 2006 10:38:19 +1000 Subject: [AccessD] Other lists References: Message-ID: <002201c67a13$5d9f0df0$6601a8c0@office> Hi Mark - yes, I am on that one. I just thought that while our SQL list (hopefully) builds up, I would try to find another that uses this format, Rgds Kath ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Thursday, May 18, 2006 12:41 AM Subject: Re: [AccessD] Other lists Kath, For the 'also' part of your post. DBA does have an SQL list. Good Luck, Mark A. Matte >From: "Kath Pelletti" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Other lists >Date: Wed, 17 May 2006 12:20:33 +1000 > >Thanks Jonh - well in that case hopefully the numbers will grow - it's hard >to find anything out there which uses this format - I find it much easier >than forums. > >rgds > ----- Original Message ----- > From: John Bartow > To: 'Access Developers discussion and problem solving' > Sent: Wednesday, May 17, 2006 12:14 PM > Subject: Re: [AccessD] Other lists > > > Hi Kath, > We had discussed adding a .net list here on dba but only 10 people >responded > to the feeler mail. So for now vb.net can be discussed on the dba-VB >list. > > Otherwise, I can't be of much help. Most technical lists have been going >to > forum format and I find that I just don't participate much when involved >in > forums so I haven't looked lately. > > John Bartow, President > Database Advisors, Inc. > Email: mailto:president at databaseadvisors.com > Website: http://www.databaseadvisors.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti > Sent: Tuesday, May 16, 2006 6:19 PM > To: AccessD VB List; Access D Normal List > Subject: [AccessD] Other lists > > (Cross posted - AccessD and AccessD VB) > > Has anyone encountered a vb.net forum that posts email to members the >way > ours does? (Also for SQL Server?) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.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 newsgrps at dalyn.co.nz Wed May 17 20:35:24 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Thu, 18 May 2006 13:35:24 +1200 Subject: [AccessD] OT - Relative URL Message-ID: <7.0.1.0.0.20060518133425.01b51560@dalyn.co.nz> I am using Visual Studio 2005 Express to create a web site. It is a subset of a larger website and sits in a subfolder to the main web site. I have the default.aspx in a directory called /root1/Subroot1. This is where my web site begins. I would like to link to an image in /root1/Subroot2. What is the syntax for a relative URL to move from Subroot1 down to root1 and then up to Subroot2? From stuart at lexacorp.com.pg Wed May 17 19:41:15 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 18 May 2006 10:41:15 +1000 Subject: [AccessD] Odd XP machine In-Reply-To: <20060518003411.70798.qmail@web80832.mail.yahoo.com> References: Message-ID: <446C4F4B.7031.426C64B1@stuart.lexacorp.com.pg> Another thing than can cause these sorts of problems is bad memory. Try running a memory tester on the PC. A google for "memory tester " will return links to lots of suitable freeware On 17 May 2006 at 17:34, David Mcafee wrote: > We had issues here some Dells would reboot (the whole computer would > restart) some users computers when using Access and others wouldnt. It > was driving us nuts. > > It ended up being that the problem machines had a certain firmware > on their ethernet or video card ( I cant remember which) and a > certain driver for the card. Others users with just the firmware or > just the driver (but not both) wouldn't have the problems. > From bchacc at san.rr.com Wed May 17 21:44:46 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 17 May 2006 19:44:46 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: <446C4F4B.7031.426C64B1@stuart.lexacorp.com.pg> References: <446C4F4B.7031.426C64B1@stuart.lexacorp.com.pg> Message-ID: <446BDF9E.2030100@san.rr.com> Here's a good general purpose diagnostic program: http://www.smithmicro.com/default.tpl?group=family&id1=2 HTH Rocky Stuart McLachlan wrote: > Another thing than can cause these sorts of problems is bad memory. > Try running a memory tester on the PC. A google for "memory tester " will return links to lots > of suitable freeware > > On 17 May 2006 at 17:34, David Mcafee wrote: > > >> We had issues here some Dells would reboot (the whole computer would >> restart) some users computers when using Access and others wouldnt. It >> was driving us nuts. >> >> It ended up being that the problem machines had a certain firmware >> on their ethernet or video card ( I cant remember which) and a >> certain driver for the card. Others users with just the firmware or >> just the driver (but not both) wouldn't have the problems. >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From adtp at hotmail.com Wed May 17 23:31:51 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Thu, 18 May 2006 10:01:51 +0530 Subject: [AccessD] Select Multiple records on form References: Message-ID: My sincere thanks Ken! The feedback provided by you is valuable. A.D.Tejpal --------------- ----- Original Message ----- From: Ken Ismert To: Access Developers discussion and problem solving Sent: Thursday, May 18, 2006 00:19 Subject: Re: [AccessD] Select Multiple records on form A.D.: >> Sample db ContFormsKeyNavAndHighLightMultiSelect is now available at Rogers Access Library (other developers library). I tried it, and it works as advertized. There is about a 1/2 second delay on my machine for highlighting. Scrolling drops the highlights, but they re-appear after about a half-second (but this is typical Conditional Formatting behaviour) -Ken -----Original Message----- From: A.D.TEJPAL [mailto:adtp at hotmail.com] Sent: Tuesday, May 16, 2006 11:03 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] Select Multiple records on form Mark, Sample db ContFormsKeyNavAndHighLightMultiSelect is now available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. It would be helpful if on opening the db, you first go through the tips (click the command button captioned "Show Tips"). Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Tuesday, May 16, 2006 22:20 Subject: Re: [AccessD] Select Multiple records on form A.D Thanks...I must have done something wrong...when I click on a record...it is selected for about 3 seconds and then the formatting "goes away", simply put. If I use a smaller recordset...I don't see the formatting at all. I will check out the example. Thanks Again, Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] Select Multiple records on form >Date: Tue, 16 May 2006 22:12:36 +0530 > >Mark, > > So long as the group of records remain in a selected state, and after you have released the mouse button, the code provided by me earlier, ensures continued highlighting of such records in a special color, till the selection gets undone (e.g. user clicking on any control). > > For your ready reference, selection of records is done as follows: > (a) Single record - Click on record selector. > (b) Multiple records at a time - Click on record selector of top desired record and drag the mouse to record selector of bottom desired record. (Alternatively, you can hold down shift key and then click the record selector for bottom desired record, or use Dn Arrow key to expand the selection suitably). > Note - Using Up/Dn arrow keys alone, when a group of records is already in selected state, moves the whole selection mask accordingly. > > Apparently, something might be amiss in actual implementation of suggested solution at your end. It might be helpful to look at the sample db mentioned in my previous post. It is in Access 2000 file format and is working smoothly on Access 2003 installation. On Access 2K, time lag is encountered as stated earlier, but results are consistent. > >Best wishes, >A.D.Tejpal >--------------- From stuart at lexacorp.com.pg Wed May 17 21:56:33 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 18 May 2006 12:56:33 +1000 Subject: [AccessD] OT - Relative URL In-Reply-To: <7.0.1.0.0.20060518132759.01ae5df0@dalyn.co.nz> Message-ID: <446C6F01.15157.42E846BE@stuart.lexacorp.com.pg> On 18 May 2006 at 13:35, David Emerson wrote: > I am using Visual Studio 2005 Express to create a web site. It is a > subset of a larger website and sits in a subfolder to the main web > site. > > I have the default.aspx in a directory called /root1/Subroot1. This > is where my web site begins. I would like to link to an image in > /root1/Subroot2. > > What is the syntax for a relative URL to move from Subroot1 down to > root1 and then up to Subroot2? > Just use the standard ".." for parent: ..\Subroot2 From Erwin.Craps at ithelps.be Thu May 18 03:45:02 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 18 May 2006 10:45:02 +0200 Subject: [AccessD] OT - Relative URL Message-ID: <46B976F2B698FF46A4FE7636509B22DF3CB78E@stekelbes.ithelps.local> Is'nt it necesary to activate parent paths for this? Which is by default off in IIS. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, May 18, 2006 4:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT - Relative URL On 18 May 2006 at 13:35, David Emerson wrote: > I am using Visual Studio 2005 Express to create a web site. It is a > subset of a larger website and sits in a subfolder to the main web > site. > > I have the default.aspx in a directory called /root1/Subroot1. This > is where my web site begins. I would like to link to an image in > /root1/Subroot2. > > What is the syntax for a relative URL to move from Subroot1 down to > root1 and then up to Subroot2? > Just use the standard ".." for parent: ..\Subroot2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Thu May 18 05:59:45 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 18 May 2006 06:59:45 -0400 Subject: [AccessD] Foxpro In-Reply-To: Message-ID: Francisco, VFP is pretty much like Access; a "default" database engine that is integrated with VFP. It is considerably faster then JET. Processing is client based. VFP can also use BE database engines such as mySQL, SQL Server, etc. using remote views or the cursor adapter. This is where the VFP community is now. Most, except for small apps, don't use the default engine any more as this moves them to client/server computing. Overall, VFP and Access share similar overall concepts, but with VFP, there is just about nothing you can't fiddle with. It has a richer event model and the programming language has more features and commands, and of course VFP is totally OOP based. The data environment for forms is something I'd kill for in Access. On the down side; the query designer does not work as well as Access's and the report engine I feel is weaker (although you can do a drill down report if you want to). Then there are some just plain weird ways to do things, like adding a column to a grid control, or changing the text of a label on a report. VFP started as a DOS based tool and it shows. Most developers skip the visual aspect and make heavy use of the command window. As a result, the visual design tools are not up to what they should be. Overall much more of a developers tool then Access. STEEP learning curve; figure on using it for a year at least before you'll be somewhat proficient. Also, use of a framework of some type is almost a given. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, May 17, 2006 1:37 PM To: Access Developers discussion and problem solving; access-l at peach.ease.lsoft.com Subject: [AccessD] Foxpro I'm getting ready to begin working on a "foxpro" db. It's been a really long time since I've used a foxpro db, last time was somewhere in 1992. One question that arose, is in a client/server app is the processing done on the server or the client like access? Thanks, -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... -- 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 May 18 09:59:23 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 18 May 2006 10:59:23 -0400 Subject: [AccessD] Splitting up names In-Reply-To: References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> <44634870.167F.006B.0@niagaracounty.com> Message-ID: <446C538B.167F.006B.0@niagaracounty.com> Sorry that it has taken so long to get back to y'all...been extremely busy, and every time I sit down to do something, something else comes up. As usual I've gotten some good ideas from you all. As I suspected, there doesn't seem to be a clear-cut solution. I picked up a little from many of these posts, and I have actually begun some code that is progressing nicely toward a solution. I haven't tried this code here yet...I'll try to get to it in a little bit...but I'm sure it too will help me out. This project isn't exactly high priority...it is basically helping a former co-worker that has moved on...so it has been difficult to put much time into it, with everything else going on. Thanks again though! John W. Clark >>> adtp at hotmail.com 5/12/2006 1:01 am >>> John, Functions Fn_FirstName() & Fn_LastName() as given below, should get you the desired results as per pattern indicated by you.. Just make sure that the string variable named SuffixList in Fn_FirstName() includes all the likely suffixes. Could you please try it out and let me know whether any further fine tuning is needed. Best wishes, A.D.Tejpal ---------------- =========================================== Function Fn_FirstName(ByVal FullName As _ String) As String ' Returns First Name Dim Txt As String, Cnt As Long Dim SuffixList As String, Rtv As Variant SuffixList = "Sr-Jr-Dr-Esq-Rev-Hon-Sir-Lord" Txt = FullName Rtv = Split(SuffixList, "-") For Cnt = 0 To UBound(Rtv) Txt = Trim(Replace(Txt, " " & Rtv(Cnt), "")) Next Fn_FirstName = Trim(Left(Txt, InStrRev(Txt, " ") - 1)) End Function ------------------------------------------------------------------------------ Function Fn_LastName(ByVal FullName As _ String) As String ' Returns Last Name Dim Txt As String Txt = Fn_FirstName(FullName) Fn_LastName = Trim(Mid(FullName, Len(Txt) + 1)) End Function =========================================== ----- Original Message ----- From: John Clark To: accessd at databaseadvisors.com Sent: Thursday, May 11, 2006 23:51 Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Thu May 18 10:13:07 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 18 May 2006 16:13:07 +0100 Subject: [AccessD] Cheecking field exists References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP><44634870.167F.006B.0@niagaracounty.com> <446C538B.167F.006B.0@niagaracounty.com> Message-ID: Is there an easy way to check if a field exists in a particular table vai vba? Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of John Clark Sent: Thu 18/05/2006 15:59 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Splitting up names Sorry that it has taken so long to get back to y'all...been extremely busy, and every time I sit down to do something, something else comes up. As usual I've gotten some good ideas from you all. As I suspected, there doesn't seem to be a clear-cut solution. I picked up a little from many of these posts, and I have actually begun some code that is progressing nicely toward a solution. I haven't tried this code here yet...I'll try to get to it in a little bit...but I'm sure it too will help me out. This project isn't exactly high priority...it is basically helping a former co-worker that has moved on...so it has been difficult to put much time into it, with everything else going on. Thanks again though! John W. Clark >>> adtp at hotmail.com 5/12/2006 1:01 am >>> John, Functions Fn_FirstName() & Fn_LastName() as given below, should get you the desired results as per pattern indicated by you.. Just make sure that the string variable named SuffixList in Fn_FirstName() includes all the likely suffixes. Could you please try it out and let me know whether any further fine tuning is needed. Best wishes, A.D.Tejpal ---------------- =========================================== Function Fn_FirstName(ByVal FullName As _ String) As String ' Returns First Name Dim Txt As String, Cnt As Long Dim SuffixList As String, Rtv As Variant SuffixList = "Sr-Jr-Dr-Esq-Rev-Hon-Sir-Lord" Txt = FullName Rtv = Split(SuffixList, "-") For Cnt = 0 To UBound(Rtv) Txt = Trim(Replace(Txt, " " & Rtv(Cnt), "")) Next Fn_FirstName = Trim(Left(Txt, InStrRev(Txt, " ") - 1)) End Function ------------------------------------------------------------------------------ Function Fn_LastName(ByVal FullName As _ String) As String ' Returns Last Name Dim Txt As String Txt = Fn_FirstName(FullName) Fn_LastName = Trim(Mid(FullName, Len(Txt) + 1)) End Function =========================================== ----- Original Message ----- From: John Clark To: accessd at databaseadvisors.com Sent: Thursday, May 11, 2006 23:51 Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu May 18 10:21:34 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 18 May 2006 08:21:34 -0700 Subject: [AccessD] Cheecking field exists In-Reply-To: Message-ID: Simplest way I can think of would be open a recordset based on the table and then try to read a value from that field and trap for the error if it doesn't exist. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, May 18, 2006 8:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Cheecking field exists Is there an easy way to check if a field exists in a particular table vai vba? Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of John Clark Sent: Thu 18/05/2006 15:59 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Splitting up names Sorry that it has taken so long to get back to y'all...been extremely busy, and every time I sit down to do something, something else comes up. As usual I've gotten some good ideas from you all. As I suspected, there doesn't seem to be a clear-cut solution. I picked up a little from many of these posts, and I have actually begun some code that is progressing nicely toward a solution. I haven't tried this code here yet...I'll try to get to it in a little bit...but I'm sure it too will help me out. This project isn't exactly high priority...it is basically helping a former co-worker that has moved on...so it has been difficult to put much time into it, with everything else going on. Thanks again though! John W. Clark >>> adtp at hotmail.com 5/12/2006 1:01 am >>> John, Functions Fn_FirstName() & Fn_LastName() as given below, should get you the desired results as per pattern indicated by you.. Just make sure that the string variable named SuffixList in Fn_FirstName() includes all the likely suffixes. Could you please try it out and let me know whether any further fine tuning is needed. Best wishes, A.D.Tejpal ---------------- =========================================== Function Fn_FirstName(ByVal FullName As _ String) As String ' Returns First Name Dim Txt As String, Cnt As Long Dim SuffixList As String, Rtv As Variant SuffixList = "Sr-Jr-Dr-Esq-Rev-Hon-Sir-Lord" Txt = FullName Rtv = Split(SuffixList, "-") For Cnt = 0 To UBound(Rtv) Txt = Trim(Replace(Txt, " " & Rtv(Cnt), "")) Next Fn_FirstName = Trim(Left(Txt, InStrRev(Txt, " ") - 1)) End Function ------------------------------------------------------------------------ ------ Function Fn_LastName(ByVal FullName As _ String) As String ' Returns Last Name Dim Txt As String Txt = Fn_FirstName(FullName) Fn_LastName = Trim(Mid(FullName, Len(Txt) + 1)) End Function =========================================== ----- Original Message ----- From: John Clark To: accessd at databaseadvisors.com Sent: Thursday, May 11, 2006 23:51 Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu May 18 10:26:42 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 18 May 2006 08:26:42 -0700 Subject: [AccessD] Cheecking field exists In-Reply-To: References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> <44634870.167F.006B.0@niagaracounty.com> <446C538B.167F.006B.0@niagaracounty.com> Message-ID: <446C9232.5070505@san.rr.com> Martin: Here's a snip where I add a field based on the field count of a table. I suppose instead of checking the field count you could loop through the fields collection looking at the field names. HTH Rocky Dim wrk As DAO.Workspace Dim tdf As DAO.TableDef Dim fld As DAO.Field Set wrk = DBEngine.Workspaces(0) Set Db = wrk.OpenDatabase(gstrDatabaseName) Set tdf = Db.TableDefs("tblPartMaster") If tdf.Fields.Count = 24 Then Set fld = tdf.CreateField("Picture", DB_TEXT, 255) fld.Properties("AllowZeroLength") = True tdf.Fields.Append fld End If Set fld = Nothing Set tdf = Nothing Set Db = Nothing Set wrk = Nothing Martin Reid wrote: > Is there an easy way to check if a field exists in a particular table vai vba? > > Maritn > > Martin WP Reid > Training and Assessment Unit > Riddle Hall > Belfast > > tel: 02890 974477 > > > ________________________________ > > From: accessd-bounces at databaseadvisors.com on behalf of John Clark > Sent: Thu 18/05/2006 15:59 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Splitting up names > > > > Sorry that it has taken so long to get back to y'all...been extremely > busy, and every time I sit down to do something, something else comes > up. > > As usual I've gotten some good ideas from you all. As I suspected, > there doesn't seem to be a clear-cut solution. I picked up a little from > many of these posts, and I have actually begun some code that is > progressing nicely toward a solution. > > I haven't tried this code here yet...I'll try to get to it in a little > bit...but I'm sure it too will help me out. > > This project isn't exactly high priority...it is basically helping a > former co-worker that has moved on...so it has been difficult to put > much time into it, with everything else going on. > > Thanks again though! > > John W. Clark > > > >>>> adtp at hotmail.com 5/12/2006 1:01 am >>> >>>> > John, > > Functions Fn_FirstName() & Fn_LastName() as given below, should > get you the desired results as per pattern indicated by you.. > > Just make sure that the string variable named SuffixList in > Fn_FirstName() includes all the likely suffixes. > > Could you please try it out and let me know whether any further > fine tuning is needed. > > Best wishes, > A.D.Tejpal > ---------------- > > =========================================== > Function Fn_FirstName(ByVal FullName As _ > String) As String > ' Returns First Name > Dim Txt As String, Cnt As Long > Dim SuffixList As String, Rtv As Variant > > SuffixList = "Sr-Jr-Dr-Esq-Rev-Hon-Sir-Lord" > > Txt = FullName > > Rtv = Split(SuffixList, "-") > For Cnt = 0 To UBound(Rtv) > Txt = Trim(Replace(Txt, " " & Rtv(Cnt), "")) > Next > > Fn_FirstName = Trim(Left(Txt, InStrRev(Txt, " ") - 1)) > > End Function > ------------------------------------------------------------------------------ > > Function Fn_LastName(ByVal FullName As _ > String) As String > ' Returns Last Name > Dim Txt As String > > Txt = Fn_FirstName(FullName) > > Fn_LastName = Trim(Mid(FullName, Len(Txt) + 1)) > > End Function > =========================================== > > ----- Original Message ----- > From: John Clark > To: accessd at databaseadvisors.com > Sent: Thursday, May 11, 2006 23:51 > Subject: [AccessD] Splitting up names > > > If got a user running a db in Access. She has a list of names and > they > were all input into a single "name" field, rather than "last name" & > "first name." She would now like to split these names up, but there > are > some double first names, as well as "jr" and "sr" suffixes. > > Is there a way to do this? > > Basically names might be like this: > > JOHN SMITH JR > MARY ELLEN SMITH > BARBARA SMITH > > And I'd need to get them like this into a first name field like: > > JOHN > MARY ELLEN > BARBARA > > and a last name field like: > > SMITH JR > SMITH > SMITH > > John W. Clark > Computer Programmer > Niagara County > Central Data Processing > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From cfoust at infostatsystems.com Thu May 18 10:33:37 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 18 May 2006 08:33:37 -0700 Subject: [AccessD] Cheecking field exists In-Reply-To: Message-ID: Oh, and here's some code I had tucked away that does it another way: strSQL = "SELECT * FROM " & strTDF Set cnn = CurrentProject.Connection Set rst = New ADODB.Recordset With rst .ActiveConnection = cnn .Source = strSQL .CursorType = adOpenStatic .Open If Not .EOF And Not .BOF Then For Each fld In .Fields If fld.Name = strFldNm Then blnFldExists = True Exit For End If Next fld End If End With Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, May 18, 2006 8:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cheecking field exists Simplest way I can think of would be open a recordset based on the table and then try to read a value from that field and trap for the error if it doesn't exist. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, May 18, 2006 8:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Cheecking field exists Is there an easy way to check if a field exists in a particular table vai vba? Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of John Clark Sent: Thu 18/05/2006 15:59 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Splitting up names Sorry that it has taken so long to get back to y'all...been extremely busy, and every time I sit down to do something, something else comes up. As usual I've gotten some good ideas from you all. As I suspected, there doesn't seem to be a clear-cut solution. I picked up a little from many of these posts, and I have actually begun some code that is progressing nicely toward a solution. I haven't tried this code here yet...I'll try to get to it in a little bit...but I'm sure it too will help me out. This project isn't exactly high priority...it is basically helping a former co-worker that has moved on...so it has been difficult to put much time into it, with everything else going on. Thanks again though! John W. Clark >>> adtp at hotmail.com 5/12/2006 1:01 am >>> John, Functions Fn_FirstName() & Fn_LastName() as given below, should get you the desired results as per pattern indicated by you.. Just make sure that the string variable named SuffixList in Fn_FirstName() includes all the likely suffixes. Could you please try it out and let me know whether any further fine tuning is needed. Best wishes, A.D.Tejpal ---------------- =========================================== Function Fn_FirstName(ByVal FullName As _ String) As String ' Returns First Name Dim Txt As String, Cnt As Long Dim SuffixList As String, Rtv As Variant SuffixList = "Sr-Jr-Dr-Esq-Rev-Hon-Sir-Lord" Txt = FullName Rtv = Split(SuffixList, "-") For Cnt = 0 To UBound(Rtv) Txt = Trim(Replace(Txt, " " & Rtv(Cnt), "")) Next Fn_FirstName = Trim(Left(Txt, InStrRev(Txt, " ") - 1)) End Function ------------------------------------------------------------------------ ------ Function Fn_LastName(ByVal FullName As _ String) As String ' Returns Last Name Dim Txt As String Txt = Fn_FirstName(FullName) Fn_LastName = Trim(Mid(FullName, Len(Txt) + 1)) End Function =========================================== ----- Original Message ----- From: John Clark To: accessd at databaseadvisors.com Sent: Thursday, May 11, 2006 23:51 Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu May 18 10:42:54 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 May 2006 17:42:54 +0200 Subject: [AccessD] Cheecking field exists Message-ID: Hi Martin Here's a function we use (DAO): Public Function IsField( _ ByVal strTable As String, _ ByVal strField As String) _ As Boolean Dim dbs As Database Dim tdf As TableDef Dim lngCount As Long Dim booFound As Boolean On Error GoTo Fejl_IsField Set dbs = CurrentDb() Set tdf = dbs.TableDefs(strTable) lngCount = tdf.Fields.Count While lngCount > 0 And Not booFound booFound = (StrComp(tdf.Fields(lngCount - 1).Name, strField, vbTextCompare) = 0) lngCount = lngCount - 1 Wend Set tdf = Nothing Set dbs = Nothing IsField = booFound Exit_IsField: Exit Function Fejl_IsField: IsField = False Resume Exit_IsField End Function /gustav >>> mwp.reid at qub.ac.uk 18-05-2006 17:13 >>> Is there an easy way to check if a field exists in a particular table vai vba? Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Thu May 18 10:47:07 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 18 May 2006 16:47:07 +0100 Subject: [AccessD] Cheecking field exists References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP><44634870.167F.006B.0@niagaracounty.com><446C538B.167F.006B.0@niagaracounty.com> <446C9232.5070505@san.rr.com> Message-ID: Thanks folks One of our medical people wants a highly interactive search screen built for doctors to use. Sets of check boxes etc. Was stuck there for a bit. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Rocky Smolin - Beach Access Software Sent: Thu 18/05/2006 16:26 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cheecking field exists Martin: Here's a snip where I add a field based on the field count of a table. I suppose instead of checking the field count you could loop through the fields collection looking at the field names. HTH Rocky Dim wrk As DAO.Workspace Dim tdf As DAO.TableDef Dim fld As DAO.Field Set wrk = DBEngine.Workspaces(0) Set Db = wrk.OpenDatabase(gstrDatabaseName) Set tdf = Db.TableDefs("tblPartMaster") If tdf.Fields.Count = 24 Then Set fld = tdf.CreateField("Picture", DB_TEXT, 255) fld.Properties("AllowZeroLength") = True tdf.Fields.Append fld End If Set fld = Nothing Set tdf = Nothing Set Db = Nothing Set wrk = Nothing Martin Reid wrote: > Is there an easy way to check if a field exists in a particular table vai vba? > > Maritn > > Martin WP Reid > Training and Assessment Unit > Riddle Hall > Belfast > > tel: 02890 974477 > > > ________________________________ > > From: accessd-bounces at databaseadvisors.com on behalf of John Clark > Sent: Thu 18/05/2006 15:59 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Splitting up names > > > > Sorry that it has taken so long to get back to y'all...been extremely > busy, and every time I sit down to do something, something else comes > up. > > As usual I've gotten some good ideas from you all. As I suspected, > there doesn't seem to be a clear-cut solution. I picked up a little from > many of these posts, and I have actually begun some code that is > progressing nicely toward a solution. > > I haven't tried this code here yet...I'll try to get to it in a little > bit...but I'm sure it too will help me out. > > This project isn't exactly high priority...it is basically helping a > former co-worker that has moved on...so it has been difficult to put > much time into it, with everything else going on. > > Thanks again though! > > John W. Clark > > > >>>> adtp at hotmail.com 5/12/2006 1:01 am >>> >>>> > John, > > Functions Fn_FirstName() & Fn_LastName() as given below, should > get you the desired results as per pattern indicated by you.. > > Just make sure that the string variable named SuffixList in > Fn_FirstName() includes all the likely suffixes. > > Could you please try it out and let me know whether any further > fine tuning is needed. > > Best wishes, > A.D.Tejpal > ---------------- > > =========================================== > Function Fn_FirstName(ByVal FullName As _ > String) As String > ' Returns First Name > Dim Txt As String, Cnt As Long > Dim SuffixList As String, Rtv As Variant > > SuffixList = "Sr-Jr-Dr-Esq-Rev-Hon-Sir-Lord" > > Txt = FullName > > Rtv = Split(SuffixList, "-") > For Cnt = 0 To UBound(Rtv) > Txt = Trim(Replace(Txt, " " & Rtv(Cnt), "")) > Next > > Fn_FirstName = Trim(Left(Txt, InStrRev(Txt, " ") - 1)) > > End Function > ------------------------------------------------------------------------------ > > Function Fn_LastName(ByVal FullName As _ > String) As String > ' Returns Last Name > Dim Txt As String > > Txt = Fn_FirstName(FullName) > > Fn_LastName = Trim(Mid(FullName, Len(Txt) + 1)) > > End Function > =========================================== > > ----- Original Message ----- > From: John Clark > To: accessd at databaseadvisors.com > Sent: Thursday, May 11, 2006 23:51 > Subject: [AccessD] Splitting up names > > > If got a user running a db in Access. She has a list of names and > they > were all input into a single "name" field, rather than "last name" & > "first name." She would now like to split these names up, but there > are > some double first names, as well as "jr" and "sr" suffixes. > > Is there a way to do this? > > Basically names might be like this: > > JOHN SMITH JR > MARY ELLEN SMITH > BARBARA SMITH > > And I'd need to get them like this into a first name field like: > > JOHN > MARY ELLEN > BARBARA > > and a last name field like: > > SMITH JR > SMITH > SMITH > > John W. Clark > Computer Programmer > Niagara County > Central Data Processing > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- 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 adtp at hotmail.com Thu May 18 12:38:27 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Thu, 18 May 2006 23:08:27 +0530 Subject: [AccessD] Cheecking field exists References: Message-ID: Maritn, Function Fn_FieldExists() as given below, would return True if field exists, otherwise False. Best wishes, A.D.Tejpal --------------- ==================================== Function Fn_FieldExists(ByVal FieldName As String, _ ByVal TableName As String) As Boolean On Error Resume Next Fn_FieldExists = Not IsError(DLookup(FieldName, TableName)) End Function ==================================== ----- Original Message ----- From: Martin Reid To: Access Developers discussion and problem solving Sent: Thursday, May 18, 2006 20:43 Subject: [AccessD] Cheecking field exists Is there an easy way to check if a field exists in a particular table vai vba? Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From newsgrps at dalyn.co.nz Thu May 18 14:15:14 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 19 May 2006 07:15:14 +1200 Subject: [AccessD] OT - Relative URL In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF3CB78E@stekelbes.ithelps.l ocal> References: <46B976F2B698FF46A4FE7636509B22DF3CB78E@stekelbes.ithelps.local> Message-ID: <7.0.1.0.0.20060519071336.01af9548@dalyn.co.nz> Thanks. Too long away from DOS made me rusty. As usual, once you know what to look for you can find it in help :-( The .. worked so the active parent paths may already be set. David At 18/05/2006, you wrote: >Is'nt it necesary to activate parent paths for this? >Which is by default off in IIS. > >Erwin > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Thursday, May 18, 2006 4:57 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT - Relative URL > > > >On 18 May 2006 at 13:35, David Emerson wrote: > > > I am using Visual Studio 2005 Express to create a web site. It is a > > subset of a larger website and sits in a subfolder to the main web > > site. > > > > I have the default.aspx in a directory called /root1/Subroot1. This > > is where my web site begins. I would like to link to an image in > > /root1/Subroot2. > > > > What is the syntax for a relative URL to move from Subroot1 down to > > root1 and then up to Subroot2? > > > >Just use the standard ".." for parent: > >..\Subroot2 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Thu May 18 16:49:06 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 18 May 2006 16:49:06 -0500 Subject: [AccessD] Convert SQL Server Date/Time to Date Message-ID: I have an access database linked to an SQL server table. SQL server stores a time with the date. I want to extract only the date part when using this field in a query. I know I have done it before but can someone refresh my memory. 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 darrend at nimble.com.au Thu May 18 16:58:17 2006 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 19 May 2006 07:58:17 +1000 Subject: [AccessD] Convert SQL Server Date/Time to Date In-Reply-To: Message-ID: <20060518215819.PVYR15358.omta04ps.mx.bigpond.com@DENZILLAP> Hi Chester Assume your Date Field is called 'SomeDateField (I'm an Aussie so we order our dates as Date/Month/Year) In Access... Format(Me.SomeDAteField, "dd/mm/yyyy) In SQL convert (char(10), SomeTableName.SomeDateField, 103) AS 'SomeDate' Hope this helps Have a great day Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Friday, 19 May 2006 7:49 AM To: Access Developers discussion and problem solving Subject: [AccessD] Convert SQL Server Date/Time to Date I have an access database linked to an SQL server table. SQL server stores a time with the date. I want to extract only the date part when using this field in a query. I know I have done it before but can someone refresh my memory. 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu May 18 16:58:45 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 18 May 2006 14:58:45 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: <20060518003411.70798.qmail@web80832.mail.yahoo.com> References: <20060518003411.70798.qmail@web80832.mail.yahoo.com> Message-ID: <446CEE15.4030008@shaw.ca> Try running Belarc on the two machines and compare the two lists. http://www.belarc.com/free_download.html It builds a detailed profile of your installed software and hardware, missing Microsoft hotfixes, anti-virus status, etc. and displays the results in your Web browser One other thing it lists your Windows and Office activation Keys just in case you forgot them You could also run the actual ADP on the machine to find a possible untrapped error. David Mcafee wrote: >We had issues here some Dells would reboot (the whole computer would restart) some users computers when using Access and others wouldnt. It was driving us nuts. > > It ended up being that the problem machines had a certain firmware on their ethernet or video card ( I cant remember which) and a certain driver for the card. Others users with just the firmware or just the driver (but not both) wouldn't have the problems. > > > > > >Francisco Tapia wrote: ACK! but why just this machine, on her old pc this never occured :( > >On 5/17/06, Charlotte Foust wrote: > > >>If it isn't an MDAC issue or a Jet service pack issue, it sounds like >>garbage collection. I've seen that behavior before and have a wretched >>time tracking it down to things like trying to use the value of a >>checkbox as an implicit boolean in code. Good luck. >> >> >>Charlotte Foust >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco >>Tapia >>Sent: Wednesday, May 17, 2006 3:40 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Odd XP machine >> >>the "system just closes out" is defined as: >> >>the user will be in her order entry screen either inputting a line item, >>or header info, or the main status screen when the system for no >>explainable reason closes and there is no error message displayed, "OR" >>even logged in event log or anywhere else, its' not a BSOD, or a GPF or >>an OS lockup, it's just "now you see it now you don't". >> >>The app is an ADE format, there are no LDB files, When the app dies, it >>is not on the task manager, so it's not hung up in the background and >>just not redrawn. The computer seems to run every other applications >>just fine w/o fail, it's just this app, and when I run it on her >>neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they >>both type about the same words per minute, and fly past the screens at >>about the same speed. If I trade this user to the other pc, the problem >>does not surface so it's not her work method. About the biggest >>diffrence is that the user with the problems has a newer dell than the >>other user. >> >> >> >>On 5/17/06, Stuart McLachlan wrote: >> >> >>>On 17 May 2006 at 13:50, Francisco Tapia wrote: >>> >>> >>> >>>>I have an application that is used accross the company here. It was >>>> >>>> >>>>written in Access2000 as an ADP. This app works on all windows >>>>2000/XP machines running SP4 and SP2 (respectively). I do have a >>>>newer XP machine that was just issued to a user and her system just >>>>closes out for no reason after just some usage. >>>> >>>> >>>Great technical term, very detailed description of the symptoms - just >>> >>> >>>what we love to hear from users when trying to diagnose problems. >>> >>>What does "system just closes out" mean? >>> >>>Application closes itself? >>>Application fails with an error message? >>>Application disappears with no warning and without cleaning itself up? >>>Application disappears but task manager shows it is still running? >>>OS locks up? >>>BSOD? >>>Computer reboots spontaneously? >>> or something else entirely? >>> >>> >>> >>>-- >>>Stuart >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>> >>-- >>-Francisco >>http://pcthis.blogspot.com |PC news with out the jargon! >>http://sqlthis.blogspot.com | Tsql and More... >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/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 fhtapia at gmail.com Thu May 18 17:33:40 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 18 May 2006 15:33:40 -0700 Subject: [AccessD] Foxpro In-Reply-To: References: Message-ID: Thanks Jim, I know that I'm going to be working with the vendor, on the basic optimization points that they need to work on. One step that should be automated is the re-indexing that they perform every tuesday. :| On 5/18/06, Jim Dettman wrote: > Francisco, > > VFP is pretty much like Access; a "default" database engine that is > integrated with VFP. It is considerably faster then JET. Processing is > client based. > > VFP can also use BE database engines such as mySQL, SQL Server, etc. using > remote views or the cursor adapter. This is where the VFP community is now. > Most, except for small apps, don't use the default engine any more as this > moves them to client/server computing. > > Overall, VFP and Access share similar overall concepts, but with VFP, > there is just about nothing you can't fiddle with. It has a richer event > model and the programming language has more features and commands, and of > course VFP is totally OOP based. > > The data environment for forms is something I'd kill for in Access. On > the down side; the query designer does not work as well as Access's and the > report engine I feel is weaker (although you can do a drill down report if > you want to). Then there are some just plain weird ways to do things, like > adding a column to a grid control, or changing the text of a label on a > report. > > VFP started as a DOS based tool and it shows. Most developers skip the > visual aspect and make heavy use of the command window. As a result, the > visual design tools are not up to what they should be. > > Overall much more of a developers tool then Access. STEEP learning curve; > figure on using it for a year at least before you'll be somewhat proficient. > Also, use of a framework of some type is almost a given. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia > Sent: Wednesday, May 17, 2006 1:37 PM > To: Access Developers discussion and problem solving; > access-l at peach.ease.lsoft.com > Subject: [AccessD] Foxpro > > I'm getting ready to begin working on a "foxpro" db. It's been a > really long time since I've used a foxpro db, last time was somewhere > in 1992. One question that arose, is in a client/server app is the > processing done on the server or the client like access? > > Thanks, > > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Thu May 18 17:35:00 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 18 May 2006 15:35:00 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: <20060518003411.70798.qmail@web80832.mail.yahoo.com> References: <20060518003411.70798.qmail@web80832.mail.yahoo.com> Message-ID: Hey why didn't you mention that before :D. since we only have dells here too (as you remember), i'll put out the helpdesk team on it. On 5/17/06, David Mcafee wrote: > We had issues here some Dells would reboot (the whole computer would restart) some users computers when using Access and others wouldnt. It was driving us nuts. > > It ended up being that the problem machines had a certain firmware on their ethernet or video card ( I cant remember which) and a certain driver for the card. Others users with just the firmware or just the driver (but not both) wouldn't have the problems. > > > > > > Francisco Tapia wrote: ACK! but why just this machine, on her old pc this never occured :( > > On 5/17/06, Charlotte Foust wrote: > > If it isn't an MDAC issue or a Jet service pack issue, it sounds like > > garbage collection. I've seen that behavior before and have a wretched > > time tracking it down to things like trying to use the value of a > > checkbox as an implicit boolean in code. Good luck. > > > > > > Charlotte Foust > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco > > Tapia > > Sent: Wednesday, May 17, 2006 3:40 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Odd XP machine > > > > the "system just closes out" is defined as: > > > > the user will be in her order entry screen either inputting a line item, > > or header info, or the main status screen when the system for no > > explainable reason closes and there is no error message displayed, "OR" > > even logged in event log or anywhere else, its' not a BSOD, or a GPF or > > an OS lockup, it's just "now you see it now you don't". > > > > The app is an ADE format, there are no LDB files, When the app dies, it > > is not on the task manager, so it's not hung up in the background and > > just not redrawn. The computer seems to run every other applications > > just fine w/o fail, it's just this app, and when I run it on her > > neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they > > both type about the same words per minute, and fly past the screens at > > about the same speed. If I trade this user to the other pc, the problem > > does not surface so it's not her work method. About the biggest > > diffrence is that the user with the problems has a newer dell than the > > other user. > > > > > > > > On 5/17/06, Stuart McLachlan wrote: > > > On 17 May 2006 at 13:50, Francisco Tapia wrote: > > > > > > > I have an application that is used accross the company here. It was > > > > > > written in Access2000 as an ADP. This app works on all windows > > > > 2000/XP machines running SP4 and SP2 (respectively). I do have a > > > > newer XP machine that was just issued to a user and her system just > > > > closes out for no reason after just some usage. > > > > > > Great technical term, very detailed description of the symptoms - just > > > > > what we love to hear from users when trying to diagnose problems. > > > > > > What does "system just closes out" mean? > > > > > > Application closes itself? > > > Application fails with an error message? > > > Application disappears with no warning and without cleaning itself up? > > > Application disappears but task manager shows it is still running? > > > OS locks up? > > > BSOD? > > > Computer reboots spontaneously? > > > or something else entirely? > > > > > > > > > > > > -- > > > Stuart > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > -Francisco > > http://pcthis.blogspot.com |PC news with out the jargon! > > http://sqlthis.blogspot.com | Tsql and More... > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Thu May 18 17:36:18 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 18 May 2006 15:36:18 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: <446CEE15.4030008@shaw.ca> References: <20060518003411.70798.qmail@web80832.mail.yahoo.com> <446CEE15.4030008@shaw.ca> Message-ID: I tried that, the user still managed to get it to "poof" out of the screen as she put it. On 5/18/06, MartyConnelly wrote: > Try running Belarc on the two machines and compare the two lists. > http://www.belarc.com/free_download.html > > It builds a detailed profile of your installed software and hardware, > missing Microsoft hotfixes, anti-virus status, etc. and > displays the results in your Web browser > One other thing it lists your Windows and Office activation Keys > just in case you forgot them > > You could also run the actual ADP on the machine to find a possible > untrapped error. > > David Mcafee wrote: > > >We had issues here some Dells would reboot (the whole computer would restart) some users computers when using Access and others wouldnt. It was driving us nuts. > > > > It ended up being that the problem machines had a certain firmware on their ethernet or video card ( I cant remember which) and a certain driver for the card. Others users with just the firmware or just the driver (but not both) wouldn't have the problems. > > > > > > > > > > > >Francisco Tapia wrote: ACK! but why just this machine, on her old pc this never occured :( > > > >On 5/17/06, Charlotte Foust wrote: > > > > > >>If it isn't an MDAC issue or a Jet service pack issue, it sounds like > >>garbage collection. I've seen that behavior before and have a wretched > >>time tracking it down to things like trying to use the value of a > >>checkbox as an implicit boolean in code. Good luck. > >> > >> > >>Charlotte Foust > >> > >>-----Original Message----- > >>From: accessd-bounces at databaseadvisors.com > >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco > >>Tapia > >>Sent: Wednesday, May 17, 2006 3:40 PM > >>To: Access Developers discussion and problem solving > >>Subject: Re: [AccessD] Odd XP machine > >> > >>the "system just closes out" is defined as: > >> > >>the user will be in her order entry screen either inputting a line item, > >>or header info, or the main status screen when the system for no > >>explainable reason closes and there is no error message displayed, "OR" > >>even logged in event log or anywhere else, its' not a BSOD, or a GPF or > >>an OS lockup, it's just "now you see it now you don't". > >> > >>The app is an ADE format, there are no LDB files, When the app dies, it > >>is not on the task manager, so it's not hung up in the background and > >>just not redrawn. The computer seems to run every other applications > >>just fine w/o fail, it's just this app, and when I run it on her > >>neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they > >>both type about the same words per minute, and fly past the screens at > >>about the same speed. If I trade this user to the other pc, the problem > >>does not surface so it's not her work method. About the biggest > >>diffrence is that the user with the problems has a newer dell than the > >>other user. > >> > >> > >> > >>On 5/17/06, Stuart McLachlan wrote: > >> > >> > >>>On 17 May 2006 at 13:50, Francisco Tapia wrote: > >>> > >>> > >>> > >>>>I have an application that is used accross the company here. It was > >>>> > >>>> > >>>>written in Access2000 as an ADP. This app works on all windows > >>>>2000/XP machines running SP4 and SP2 (respectively). I do have a > >>>>newer XP machine that was just issued to a user and her system just > >>>>closes out for no reason after just some usage. > >>>> > >>>> > >>>Great technical term, very detailed description of the symptoms - just > >>> > >>> > >>>what we love to hear from users when trying to diagnose problems. > >>> > >>>What does "system just closes out" mean? > >>> > >>>Application closes itself? > >>>Application fails with an error message? > >>>Application disappears with no warning and without cleaning itself up? > >>>Application disappears but task manager shows it is still running? > >>>OS locks up? > >>>BSOD? > >>>Computer reboots spontaneously? > >>> or something else entirely? > >>> > >>> > >>> > >>>-- > >>>Stuart > >>> > >>> > >>>-- > >>>AccessD mailing list > >>>AccessD at databaseadvisors.com > >>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>Website: http://www.databaseadvisors.com > >>> > >>> > >>> > >>-- > >>-Francisco > >>http://pcthis.blogspot.com |PC news with out the jargon! > >>http://sqlthis.blogspot.com | Tsql and More... > >>-- > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/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 > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From bheid at appdevgrp.com Fri May 19 05:32:52 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 19 May 2006 06:32:52 -0400 Subject: [AccessD] Cheecking field exists In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB3336@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35425@ADGSERVER> I use something like: '(air code) On error resume next td=currentdb.tabledefs("sometable") strFld=td.fields("somefield") if err.number=0 then 'field exists somecode else 'field does not exist someothercode end if on error goto Proc_Err 'reset error handler Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, May 18, 2006 11:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Cheecking field exists Is there an easy way to check if a field exists in a particular table vai vba? Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From Lambert.Heenan at AIG.com Fri May 19 08:21:26 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 19 May 2006 08:21:26 -0500 Subject: [AccessD] Convert SQL Server Date/Time to Date Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F21C86766@xlivmbx21.aig.com> In Access land, using Format will give you a *String* that looks like a date. If you want an actual Date type try... Cdate(Int(SomeDateField)) Using Int() strips off the decimal fraction, which is the time of day, and the remaining integer value is then converted to a real date type. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, May 18, 2006 5:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert SQL Server Date/Time to Date Hi Chester Assume your Date Field is called 'SomeDateField (I'm an Aussie so we order our dates as Date/Month/Year) In Access... Format(Me.SomeDAteField, "dd/mm/yyyy) In SQL convert (char(10), SomeTableName.SomeDateField, 103) AS 'SomeDate' Hope this helps Have a great day Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Friday, 19 May 2006 7:49 AM To: Access Developers discussion and problem solving Subject: [AccessD] Convert SQL Server Date/Time to Date I have an access database linked to an SQL server table. SQL server stores a time with the date. I want to extract only the date part when using this field in a query. I know I have done it before but can someone refresh my memory. 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 May 19 09:02:28 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 19 May 2006 16:02:28 +0200 Subject: [AccessD] Convert SQL Server Date/Time to Date Message-ID: Hi Lambert Just a note of caution. You must use Fix() if you expect negative date values (prior to 1899-12-30) CDate(Fix(SomeDateField)) and/or - if you expect Null values (empty date field) - good old CVDate(): CVDate(Fix(SomeDateField)) /gustav >>> Lambert.Heenan at AIG.com 19-05-2006 15:21:26 >>> In Access land, using Format will give you a *String* that looks like a date. If you want an actual Date type try... Cdate(Int(SomeDateField)) Using Int() strips off the decimal fraction, which is the time of day, and the remaining integer value is then converted to a real date type. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, May 18, 2006 5:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert SQL Server Date/Time to Date Hi Chester Assume your Date Field is called 'SomeDateField (I'm an Aussie so we order our dates as Date/Month/Year) In Access... Format(Me.SomeDAteField, "dd/mm/yyyy) In SQL convert (char(10), SomeTableName.SomeDateField, 103) AS 'SomeDate' Hope this helps Have a great day Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Friday, 19 May 2006 7:49 AM To: Access Developers discussion and problem solving Subject: [AccessD] Convert SQL Server Date/Time to Date I have an access database linked to an SQL server table. SQL server stores a time with the date. I want to extract only the date part when using this field in a query. I know I have done it before but can someone refresh my memory. Thanks. From Lambert.Heenan at AIG.com Fri May 19 10:33:31 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 19 May 2006 10:33:31 -0500 Subject: [AccessD] Convert SQL Server Date/Time to Date Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F21C86849@xlivmbx21.aig.com> Very true. I my normal daily life I never need to work with dates earlier that 1900, but other do for sure. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 19, 2006 10:02 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Convert SQL Server Date/Time to Date Hi Lambert Just a note of caution. You must use Fix() if you expect negative date values (prior to 1899-12-30) CDate(Fix(SomeDateField)) and/or - if you expect Null values (empty date field) - good old CVDate(): CVDate(Fix(SomeDateField)) /gustav >>> Lambert.Heenan at AIG.com 19-05-2006 15:21:26 >>> In Access land, using Format will give you a *String* that looks like a date. If you want an actual Date type try... Cdate(Int(SomeDateField)) Using Int() strips off the decimal fraction, which is the time of day, and the remaining integer value is then converted to a real date type. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, May 18, 2006 5:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert SQL Server Date/Time to Date Hi Chester Assume your Date Field is called 'SomeDateField (I'm an Aussie so we order our dates as Date/Month/Year) In Access... Format(Me.SomeDAteField, "dd/mm/yyyy) In SQL convert (char(10), SomeTableName.SomeDateField, 103) AS 'SomeDate' Hope this helps Have a great day Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Friday, 19 May 2006 7:49 AM To: Access Developers discussion and problem solving Subject: [AccessD] Convert SQL Server Date/Time to Date I have an access database linked to an SQL server table. SQL server stores a time with the date. I want to extract only the date part when using this field in a query. I know I have done it before but can someone refresh my memory. Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri May 19 12:04:30 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 19 May 2006 10:04:30 -0700 Subject: [AccessD] Convert SQL Server Date/Time to Date In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F21C86849@xlivmbx21.aig.com> References: <1D7828CDB8350747AFE9D69E0E90DA1F21C86849@xlivmbx21.aig.com> Message-ID: <446DFA9E.9090004@shaw.ca> Ah, but then there is the Year 1752 bug at least for British dates. and its resultant 10 lost days. The best known case in the U.S. is that of George Washington, whose birthday was for many years a national holiday. It was observed on February 22, which is when Washington observed it--after 1752. He was born 1732-02-11 (O.S.). A further complication for dates in England and her colonies is that the official year began in March, so that Washington's birthday would have been written Feb. 11, 1732/31 (O.S.). This supposed birthdate for Issac Newton (4 Jan 1642) is a cute example of calendar confusion. Newton was born on Christmas, 25 Dec 1642. Or, at least, that's what day it was in England. Across the Channel in France, that same day was 4 Jan 1643; because France had switched to the Gregorian calendar, which England did not adopt until 1752. The confusion here presumably came from switching to the modern calendar date but trying to keep the familiar year of birth. Heenan, Lambert wrote: >Very true. I my normal daily life I never need to work with dates earlier >that 1900, but other do for sure. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Friday, May 19, 2006 10:02 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Convert SQL Server Date/Time to Date > > >Hi Lambert > >Just a note of caution. >You must use Fix() if you expect negative date values (prior to 1899-12-30) > > CDate(Fix(SomeDateField)) > >and/or - if you expect Null values (empty date field) - good old CVDate(): > > CVDate(Fix(SomeDateField)) > >/gustav > > > >>>>Lambert.Heenan at AIG.com 19-05-2006 15:21:26 >>> >>>> >>>> >In Access land, using Format will give you a *String* that looks like a >date. If you want an actual Date type try... > > Cdate(Int(SomeDateField)) > >Using Int() strips off the decimal fraction, which is the time of day, and >the remaining integer value is then converted to a real date type. > >HTH > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK >Sent: Thursday, May 18, 2006 5:58 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Convert SQL Server Date/Time to Date > > >Hi Chester > >Assume your Date Field is called 'SomeDateField >(I'm an Aussie so we order our dates as Date/Month/Year) > >In Access... > Format(Me.SomeDAteField, "dd/mm/yyyy) >In SQL > convert (char(10), SomeTableName.SomeDateField, 103) AS 'SomeDate' > >Hope this helps > >Have a great day > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester >Sent: Friday, 19 May 2006 7:49 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Convert SQL Server Date/Time to Date > >I have an access database linked to an SQL server table. SQL server stores a >time with the date. I want to extract only the date part when using this >field in a query. I know I have done it before but can someone refresh my >memory. Thanks. > > > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Fri May 19 12:30:38 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 19 May 2006 18:30:38 +0100 Subject: [AccessD] ADPs ETC in 2007 - Upsizing to 2005 References: <1D7828CDB8350747AFE9D69E0E90DA1F21C86849@xlivmbx21.aig.com> <446DFA9E.9090004@shaw.ca> Message-ID: For Information I have just received the new SQL Server 2005 upsizing tool provided by Microsoft.This is not released yet and still early beta. It blows the upsizing wizard, other third party tools and DTS out of the water. Its a stand alone tool and not part of Access. It can be used to prepare everything from 97 up to SQL Server 2005, full or Express. Now my opinion may change when I test it and see what bugs etc they have actually removed but on first look it is way ahead of what we have. Dosnt work for 2000. ADPs to SQL Server 2005 look very hopeful.I should have more concrete stuff soon. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From martyconnelly at shaw.ca Fri May 19 21:48:18 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 19 May 2006 19:48:18 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: References: <20060518003411.70798.qmail@web80832.mail.yahoo.com> <446CEE15.4030008@shaw.ca> Message-ID: <446E8372.6090809@shaw.ca> Hmm, just wondering if user is running under a admin account or not? Francisco Tapia wrote: >I tried that, the user still managed to get it to "poof" out of the >screen as she put it. > >On 5/18/06, MartyConnelly wrote: > > >>Try running Belarc on the two machines and compare the two lists. >>http://www.belarc.com/free_download.html >> >>It builds a detailed profile of your installed software and hardware, >>missing Microsoft hotfixes, anti-virus status, etc. and >>displays the results in your Web browser >>One other thing it lists your Windows and Office activation Keys >>just in case you forgot them >> >>You could also run the actual ADP on the machine to find a possible >>untrapped error. >> >>David Mcafee wrote: >> >> >> >>>We had issues here some Dells would reboot (the whole computer would restart) some users computers when using Access and others wouldnt. It was driving us nuts. >>> >>> It ended up being that the problem machines had a certain firmware on their ethernet or video card ( I cant remember which) and a certain driver for the card. Others users with just the firmware or just the driver (but not both) wouldn't have the problems. >>> >>> >>> >>> >>> >>>Francisco Tapia wrote: ACK! but why just this machine, on her old pc this never occured :( >>> >>>On 5/17/06, Charlotte Foust wrote: >>> >>> >>> >>> >>>>If it isn't an MDAC issue or a Jet service pack issue, it sounds like >>>>garbage collection. I've seen that behavior before and have a wretched >>>>time tracking it down to things like trying to use the value of a >>>>checkbox as an implicit boolean in code. Good luck. >>>> >>>> >>>>Charlotte Foust >>>> >>>>-----Original Message----- >>>>From: accessd-bounces at databaseadvisors.com >>>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco >>>>Tapia >>>>Sent: Wednesday, May 17, 2006 3:40 PM >>>>To: Access Developers discussion and problem solving >>>>Subject: Re: [AccessD] Odd XP machine >>>> >>>>the "system just closes out" is defined as: >>>> >>>>the user will be in her order entry screen either inputting a line item, >>>>or header info, or the main status screen when the system for no >>>>explainable reason closes and there is no error message displayed, "OR" >>>>even logged in event log or anywhere else, its' not a BSOD, or a GPF or >>>>an OS lockup, it's just "now you see it now you don't". >>>> >>>>The app is an ADE format, there are no LDB files, When the app dies, it >>>>is not on the task manager, so it's not hung up in the background and >>>>just not redrawn. The computer seems to run every other applications >>>>just fine w/o fail, it's just this app, and when I run it on her >>>>neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they >>>>both type about the same words per minute, and fly past the screens at >>>>about the same speed. If I trade this user to the other pc, the problem >>>>does not surface so it's not her work method. About the biggest >>>>diffrence is that the user with the problems has a newer dell than the >>>>other user. >>>> >>>> >>>> >>>>On 5/17/06, Stuart McLachlan wrote: >>>> >>>> >>>> >>>> >>>>>On 17 May 2006 at 13:50, Francisco Tapia wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>I have an application that is used accross the company here. It was >>>>>> >>>>>> >>>>>>written in Access2000 as an ADP. This app works on all windows >>>>>>2000/XP machines running SP4 and SP2 (respectively). I do have a >>>>>>newer XP machine that was just issued to a user and her system just >>>>>>closes out for no reason after just some usage. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Great technical term, very detailed description of the symptoms - just >>>>> >>>>> >>>>>what we love to hear from users when trying to diagnose problems. >>>>> >>>>>What does "system just closes out" mean? >>>>> >>>>>Application closes itself? >>>>>Application fails with an error message? >>>>>Application disappears with no warning and without cleaning itself up? >>>>>Application disappears but task manager shows it is still running? >>>>>OS locks up? >>>>>BSOD? >>>>>Computer reboots spontaneously? >>>>>or something else entirely? >>>>> >>>>> >>>>> >>>>>-- >>>>>Stuart >>>>> >>>>> >>>>>-- >>>>>AccessD mailing list >>>>>AccessD at databaseadvisors.com >>>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>>Website: http://www.databaseadvisors.com >>>>> >>>>> >>>>> >>>>> >>>>> >>>>-- >>>>-Francisco >>>>http://pcthis.blogspot.com |PC news with out the jargon! >>>>http://sqlthis.blogspot.com | Tsql and More... >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/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 >> >> >> > > > > -- Marty Connelly Victoria, B.C. Canada From shamil at users.mns.ru Sat May 20 03:54:11 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 20 May 2006 12:54:11 +0400 Subject: [AccessD] OT: .NET Framework Compact Reference Message-ID: <000f01c67bea$f80308f0$6401a8c0@Nant> Hi All, Have anybody seen everywhere on .NET something like a .NET Framework Compact Reference? I mean a very short reference of all/main of its classes in the form like the following: public sealed class Path { // Fields public static readonly char AltDirectorySeparatorChar = '/'; public static readonly char DirectorySeparatorChar = '\\'; public static readonly char[] InvalidPathChars = {'\"', '<', '>', '|', '\0', '\b', (Char)16, (Char)17, (Char)18, (Char)20, (Char)21, (Char)22, (Char)23, (Char)24, (Char)25 }; public static readonly char PathSeparator = ';'; public static readonly char VolumeSeparatorChar = ':'; // Methods public static string ChangeExtension (string path, string extension); public static string Combine (string path1, string path2); public static string GetDirectoryName (string path); public static string GetExtension (string path); public static string GetFileName (string path); public static string GetFileNameWithoutExtension (string path); public static string GetFullPath (string path); public static string GetPathRoot (string path); public static string GetTempFileName (); public static string GetTempPath (); public static bool HasExtension (string path); public static bool IsPathRooted (string path); } Thank you. Shamil From mwp.reid at qub.ac.uk Sat May 20 06:34:00 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 20 May 2006 12:34:00 +0100 Subject: [AccessD] OT: .NET Framework Compact Reference References: <000f01c67bea$f80308f0$6401a8c0@Nant> Message-ID: THis sort of thing http://msdn2.microsoft.com/en-us/library/ms306608.aspx Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Sat 20/05/2006 09:54 To: !DBA-MAIN Subject: [AccessD] OT: .NET Framework Compact Reference Hi All, Have anybody seen everywhere on .NET something like a .NET Framework Compact Reference? I mean a very short reference of all/main of its classes in the form like the following: public sealed class Path { // Fields public static readonly char AltDirectorySeparatorChar = '/'; public static readonly char DirectorySeparatorChar = '\\'; public static readonly char[] InvalidPathChars = {'\"', '<', '>', '|', '\0', '\b', (Char)16, (Char)17, (Char)18, (Char)20, (Char)21, (Char)22, (Char)23, (Char)24, (Char)25 }; public static readonly char PathSeparator = ';'; public static readonly char VolumeSeparatorChar = ':'; // Methods public static string ChangeExtension (string path, string extension); public static string Combine (string path1, string path2); public static string GetDirectoryName (string path); public static string GetExtension (string path); public static string GetFileName (string path); public static string GetFileNameWithoutExtension (string path); public static string GetFullPath (string path); public static string GetPathRoot (string path); public static string GetTempFileName (); public static string GetTempPath (); public static bool HasExtension (string path); public static bool IsPathRooted (string path); } Thank you. Shamil -- 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 May 20 06:53:48 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 20 May 2006 15:53:48 +0400 Subject: [AccessD] OT: .NET Framework Compact Reference References: <000f01c67bea$f80308f0$6401a8c0@Nant> Message-ID: <001801c67c04$117c4cb0$6401a8c0@Nant> Yes, Martin, it looks not bad but still I'm looking for something more dense as in my sample below... Shamil ----- Original Message ----- From: "Martin Reid" To: "Access Developers discussion and problem solving" Sent: Saturday, May 20, 2006 3:34 PM Subject: Re: [AccessD] OT: .NET Framework Compact Reference THis sort of thing http://msdn2.microsoft.com/en-us/library/ms306608.aspx Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Sat 20/05/2006 09:54 To: !DBA-MAIN Subject: [AccessD] OT: .NET Framework Compact Reference Hi All, Have anybody seen everywhere on .NET something like a .NET Framework Compact Reference? I mean a very short reference of all/main of its classes in the form like the following: public sealed class Path { // Fields public static readonly char AltDirectorySeparatorChar = '/'; public static readonly char DirectorySeparatorChar = '\\'; public static readonly char[] InvalidPathChars = {'\"', '<', '>', '|', '\0', '\b', (Char)16, (Char)17, (Char)18, (Char)20, (Char)21, (Char)22, (Char)23, (Char)24, (Char)25 }; public static readonly char PathSeparator = ';'; public static readonly char VolumeSeparatorChar = ':'; // Methods public static string ChangeExtension (string path, string extension); public static string Combine (string path1, string path2); public static string GetDirectoryName (string path); public static string GetExtension (string path); public static string GetFileName (string path); public static string GetFileNameWithoutExtension (string path); public static string GetFullPath (string path); public static string GetPathRoot (string path); public static string GetTempFileName (); public static string GetTempPath (); public static bool HasExtension (string path); public static bool IsPathRooted (string path); } Thank you. Shamil From darrend at nimble.com.au Sat May 20 07:35:54 2006 From: darrend at nimble.com.au (Darren DICK) Date: Sat, 20 May 2006 22:35:54 +1000 Subject: [AccessD] A2003:Pictures in a report Message-ID: <20060520123603.JVBO25409.omta05sl.mx.bigpond.com@DENZILLAP> Hi all having a brain fade here I have a report that shows staff images I want to have the report show 3 images (each different from the other) per page I have set the report up to have 3 columns All the data is being represented in 3 separate vertical 'blurbs' as desired But how do I change the dot picture property for each record thus have 3 different faces in each of the 3 records per page? I am missing something simple and am having a brain fade Many thanks in advance Darren From Gustav at cactus.dk Sat May 20 08:34:22 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 20 May 2006 15:34:22 +0200 Subject: [AccessD] Convert SQL Server Date/Time to Date Message-ID: Hi Marty Yes, that's why the minimum date in SQL Server is 1753-01-01. I guess it's inherited from the original Sybase code. Access dates go back to 100-01-01. But dates in VBA follow a pseudo Gregorian calender from year 100 to the introduction of the Gregorian calendar in October 1582: http://www.ghgrb.ch/genealogicalIntroduction/kalender_gregorianisch.html where it started replacing the Julian calender and simply cut out the 11 days between the 4. and the 15. of October. VBA does not correct for this. Note that the World's move to the Gregorian calendar was a very long process lasting about 340 years. Russia delayed the switch until the time of the revolution, and the last country, Turkey, switched as late as in 1923: http://www.ghgrb.ch/genealogicalIntroduction/kalender_greg_start_chron.html /gustav >>> martyconnelly at shaw.ca 19-05-2006 19:04 >>> Ah, but then there is the Year 1752 bug at least for British dates. and its resultant 10 lost days. The best known case in the U.S. is that of George Washington, whose birthday was for many years a national holiday. It was observed on February 22, which is when Washington observed it--after 1752. He was born 1732-02-11 (O.S.). A further complication for dates in England and her colonies is that the official year began in March, so that Washington's birthday would have been written Feb. 11, 1732/31 (O.S.). This supposed birthdate for Issac Newton (4 Jan 1642) is a cute example of calendar confusion. Newton was born on Christmas, 25 Dec 1642. Or, at least, that's what day it was in England. Across the Channel in France, that same day was 4 Jan 1643; because France had switched to the Gregorian calendar, which England did not adopt until 1752. The confusion here presumably came from switching to the modern calendar date but trying to keep the familiar year of birth. Heenan, Lambert wrote: >Very true. I my normal daily life I never need to work with dates earlier >that 1900, but other do for sure. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Friday, May 19, 2006 10:02 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Convert SQL Server Date/Time to Date > > >Hi Lambert > >Just a note of caution. >You must use Fix() if you expect negative date values (prior to 1899-12-30) > > CDate(Fix(SomeDateField)) > >and/or - if you expect Null values (empty date field) - good old CVDate(): > > CVDate(Fix(SomeDateField)) > >/gustav > > > >>>>Lambert.Heenan at AIG.com 19-05-2006 15:21:26 >>> >>>> >>>> >In Access land, using Format will give you a *String* that looks like a >date. If you want an actual Date type try... > > Cdate(Int(SomeDateField)) > >Using Int() strips off the decimal fraction, which is the time of day, and >the remaining integer value is then converted to a real date type. > >HTH > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK >Sent: Thursday, May 18, 2006 5:58 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Convert SQL Server Date/Time to Date > > >Hi Chester > >Assume your Date Field is called 'SomeDateField >(I'm an Aussie so we order our dates as Date/Month/Year) > >In Access... > Format(Me.SomeDAteField, "dd/mm/yyyy) >In SQL > convert (char(10), SomeTableName.SomeDateField, 103) AS 'SomeDate' > >Hope this helps > >Have a great day > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester >Sent: Friday, 19 May 2006 7:49 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Convert SQL Server Date/Time to Date > >I have an access database linked to an SQL server table. SQL server stores a >time with the date. I want to extract only the date part when using this >field in a query. I know I have done it before but can someone refresh my >memory. Thanks. From martyconnelly at shaw.ca Sat May 20 12:10:59 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 20 May 2006 10:10:59 -0700 Subject: [AccessD] OFFICE 2007 Beta 2 registration In-Reply-To: References: Message-ID: <446F4DA3.4070504@shaw.ca> Beta is due out sometime at end of summer http://www.microsoft.com/office/preview/ This is the link to sign up for beta news 'Register Now' and you'll be notified when the public preview is available. Registration doesn't necessarily mean you'll get the beta. You'll need a 'Windows Live ID' which is the latest name for the Microsoft Passport. Or just get a Hotmail account. -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Sat May 20 17:59:37 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 21 May 2006 08:59:37 +1000 Subject: [AccessD] A2003:Pictures in a report In-Reply-To: <20060520123603.JVBO25409.omta05sl.mx.bigpond.com@DENZILLAP> Message-ID: <44702BF9.25741.29577422@stuart.lexacorp.com.pg> On 20 May 2006 at 22:35, Darren DICK wrote: > Hi all > having a brain fade here > I have a report that shows staff images > I want to have the report show 3 images (each different from the other) per > page I have set the report up to have 3 columns All the data is being > represented in 3 separate vertical 'blurbs' as desired > > But how do I change the dot picture property for each record thus have 3 > different faces in each of the 3 records per page? > Assuming that the images are filed separately and your staff details table contains the path to the image in the field PhotoDirectory, in the Detail.OnFormat put imgStaffPhoto.Picture = PhotoDirectory -- Stuart From accessd at shaw.ca Sun May 21 14:07:40 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 21 May 2006 12:07:40 -0700 Subject: [AccessD] IE 7 In-Reply-To: <44702BF9.25741.29577422@stuart.lexacorp.com.pg> Message-ID: <0IZM003JYQDKTPB1@l-daemon> Hi All: Has anyone heard anything good, bad or indifferent about IE 7? Jim From bheid at appdevgrp.com Mon May 22 06:26:09 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 22 May 2006 07:26:09 -0400 Subject: [AccessD] OFFICE 2007 Beta 2 registration In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB356A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3543C@ADGSERVER> Thanks for the link Marty. When I follow that link, it loads up a page, but after about 5 seconds, it goes to another page that has "We're sorry, but there is no Microsoft.com Web page that matches your entry. It is possible you typed the address incorrectly, or the page may no longer exist. You may wish to try another entry or choose from the links below, which we hope will help you find what you're looking for." at the top. There are links to various places on MS on that new page. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Saturday, May 20, 2006 1:11 PM To: Access Developers discussion and problem solving Subject: [AccessD] OFFICE 2007 Beta 2 registration Beta is due out sometime at end of summer http://www.microsoft.com/office/preview/ This is the link to sign up for beta news 'Register Now' and you'll be notified when the public preview is available. Registration doesn't necessarily mean you'll get the beta. You'll need a 'Windows Live ID' which is the latest name for the Microsoft Passport. Or just get a Hotmail account. -- Marty Connelly Victoria, B.C. Canada From prosoft6 at hotmail.com Mon May 22 07:10:10 2006 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 22 May 2006 08:10:10 -0400 Subject: [AccessD] OFFICE 2007 Beta 2 registration In-Reply-To: <446F4DA3.4070504@shaw.ca> Message-ID: The link worked for me. Maybe your firewall is blocking it. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business From bheid at appdevgrp.com Mon May 22 07:34:50 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 22 May 2006 08:34:50 -0400 Subject: [AccessD] OFFICE 2007 Beta 2 registration In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB3628@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3543D@ADGSERVER> Hi Julie, I went back to look at it again. It does load the page. But the flash?? part that loads after the page, shows some activity. But after it shows those two buttons, it basically gives me a 404 page. http://www.microsoft.com/info/404error.htm Ok, I clicked on the developer type under that window and was able to continue on properly. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon-Taylor Sent: Monday, May 22, 2006 8:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OFFICE 2007 Beta 2 registration The link worked for me. Maybe your firewall is blocking it. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business From cfoust at infostatsystems.com Mon May 22 10:46:42 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 22 May 2006 08:46:42 -0700 Subject: [AccessD] IE 7 In-Reply-To: <0IZM003JYQDKTPB1@l-daemon> Message-ID: Well, I know MS already has an XP patch for problems with IE 7, but I don't know how to categorize that information. ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, May 21, 2006 12:08 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] IE 7 Hi All: Has anyone heard anything good, bad or indifferent about IE 7? Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon May 22 14:31:31 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 22 May 2006 12:31:31 -0700 Subject: [AccessD] IE 7 In-Reply-To: Message-ID: <0IZO0042AM5ARG40@l-daemon> Hi Charlotte: Classify it as 'indifferent' as it seems to be fairly standard IP deployment. Issues and Patch. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 22, 2006 8:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] IE 7 Well, I know MS already has an XP patch for problems with IE 7, but I don't know how to categorize that information. ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, May 21, 2006 12:08 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] IE 7 Hi All: Has anyone heard anything good, bad or indifferent about IE 7? 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 bchacc at san.rr.com Mon May 22 15:50:49 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 22 May 2006 13:50:49 -0700 Subject: [AccessD] FTP From Access Message-ID: <44722429.6090500@san.rr.com> Dear List: What is the quickest, easiest, and./or fastest way to FTP something from Access to a website? MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From stuart at lexacorp.com.pg Mon May 22 16:27:57 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 23 May 2006 07:27:57 +1000 Subject: [AccessD] FTP From Access In-Reply-To: <44722429.6090500@san.rr.com> Message-ID: <4472B97D.20383.33502D15@stuart.lexacorp.com.pg> On 22 May 2006 at 13:50, Rocky Smolin - Beach Access S wrote: > Dear List: > > What is the quickest, easiest, and./or fastest way to FTP something from > Access to a website? > Shell out to an FTP app. You can script a session in the built in Windows FTP CLI - see details at http://www.robvanderwoude.com/index.html or to make it a bit easier, grab a copy of my FTPSend utility from http://www.lexacorp.com.pg (under Free Siftware - Misceellaneous utilities) A 17KB download: "FTPSend will upload a specified file to a web site based on parameters passed to it on the command line or in an encrypted parameter file. By putting it in a batch file or calling it from a macro/procedure in another application, you can automate updating of files on your site." -- Stuart From bchacc at san.rr.com Mon May 22 17:02:19 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 22 May 2006 15:02:19 -0700 Subject: [AccessD] FTP From Access In-Reply-To: <4472B97D.20383.33502D15@stuart.lexacorp.com.pg> References: <4472B97D.20383.33502D15@stuart.lexacorp.com.pg> Message-ID: <447234EB.9070700@san.rr.com> Staurt: I'm looking at your FTPSend.exe help screen. It says you need to use /C first to create the encrypted parameter file then call it again (I guess) using /R? On the web site however it says you call it based on parameters passed to it on the command line. With the parameters to avoid the parameter file? Would you then not use either /C or /R? Regards, Rocky Stuart McLachlan wrote: > On 22 May 2006 at 13:50, Rocky Smolin - Beach Access S wrote: > > >> Dear List: >> >> What is the quickest, easiest, and./or fastest way to FTP something from >> Access to a website? >> >> > > Shell out to an FTP app. > > You can script a session in the built in Windows FTP CLI - see details at > http://www.robvanderwoude.com/index.html > > or to make it a bit easier, grab a copy of my FTPSend utility from > http://www.lexacorp.com.pg (under Free Siftware - Misceellaneous utilities) > A 17KB download: > > "FTPSend will upload a specified file to a web site based on parameters > passed to it on the command line or in an encrypted parameter file. By > putting it in a batch file or calling it from a macro/procedure in another > application, you can automate updating of files on your site." > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From accessd at shaw.ca Mon May 22 17:05:45 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 22 May 2006 15:05:45 -0700 Subject: [AccessD] FTP From Access In-Reply-To: <44722429.6090500@san.rr.com> Message-ID: <0IZO007DRTACO850@l-daemon> Hi Rocky: Why not check out the article, code and download supplied through the DBA by the efforts of William Hindman, Darren Dick, myself and others at: http://www.databaseadvisors.com/newsletters/newsletter200503/0503howtocreate anftpclientwithinaccess/howtocreateanftpclientwithinaccess.htm There is a complete FTP application written in Access. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, May 22, 2006 1:51 PM To: Access Developers discussion and problem solving Subject: [AccessD] FTP From Access Dear List: What is the quickest, easiest, and./or fastest way to FTP something from Access to a website? 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 Mon May 22 17:08:17 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 22 May 2006 15:08:17 -0700 Subject: [AccessD] FTP From Access In-Reply-To: <0IZO007DRTACO850@l-daemon> References: <0IZO007DRTACO850@l-daemon> Message-ID: <44723651.40302@san.rr.com> Jim: That might be way too easy :) I'll take a look. Thanks. Rocky Jim Lawrence wrote: > Hi Rocky: > > Why not check out the article, code and download supplied through the DBA by > the efforts of William Hindman, Darren Dick, myself and others at: > http://www.databaseadvisors.com/newsletters/newsletter200503/0503howtocreate > anftpclientwithinaccess/howtocreateanftpclientwithinaccess.htm > > There is a complete FTP application written in Access. > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Monday, May 22, 2006 1:51 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] FTP From Access > > Dear List: > > What is the quickest, easiest, and./or fastest way to FTP something from > Access to a website? > > MTIA > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dw-murphy at cox.net Mon May 22 17:26:29 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 22 May 2006 15:26:29 -0700 Subject: [AccessD] FTP From Access In-Reply-To: <44723651.40302@san.rr.com> Message-ID: <006e01c67dee$c5629ae0$0200a8c0@murphy3234aaf1> Rocky, This is the way to go. I use William's code in several apps and have never had a problem with it. The code I the article may have more features, but the code I got from William has worked flawlesly. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, May 22, 2006 3:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FTP From Access Jim: That might be way too easy :) I'll take a look. Thanks. Rocky Jim Lawrence wrote: > Hi Rocky: > > Why not check out the article, code and download supplied through the > DBA by the efforts of William Hindman, Darren Dick, myself and others at: > http://www.databaseadvisors.com/newsletters/newsletter200503/0503howto > create anftpclientwithinaccess/howtocreateanftpclientwithinaccess.htm > > There is a complete FTP application written in Access. > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin - Beach Access Software > Sent: Monday, May 22, 2006 1:51 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] FTP From Access > > Dear List: > > What is the quickest, easiest, and./or fastest way to FTP something > from Access to a website? > > 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 DWUTKA at marlow.com Mon May 22 18:44:18 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 22 May 2006 18:44:18 -0500 Subject: [AccessD] FTP From Access Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B242D@main2.marlow.com> Put the following in a class module and save it. (I call it FTPSite): Option Explicit Private Declare Function FtpFindFirstFile Lib "wininet.dll" Alias "FtpFindFirstFileA" (ByVal hFtpSession As Long, ByVal lpszSearchFile As String, lpFindFileData As WIN32_FIND_DATA, ByVal dwFlags As Long, ByVal dwContent As Long) As Long Private Declare Function InternetConnect Lib "wininet.dll" Alias "InternetConnectA" (ByVal hInternetSession As Long, ByVal sServerName As String, ByVal nServerPort As Integer, ByVal sUsername As String, ByVal sPassword As String, ByVal lService As Long, ByVal lFlags As Long, ByVal lContext As Long) As Long Private Declare Function InternetFindNextFile Lib "wininet.dll" Alias "InternetFindNextFileA" (ByVal hFind As Long, lpvFindData As WIN32_FIND_DATA) As Long Private Declare Function InternetCloseHandle Lib "wininet.dll" (ByVal hInet As Long) As Integer Private Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" (ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long Private Declare Function FileTimeToSystemTime Lib "kernel32" (lpFileTime As FILETIME, lpSystemTime As SYSTEMTIME) As Long Private Declare Function FtpOpenFile Lib "wininet.dll" Alias "FtpOpenFileA" (ByVal hFtpSession As Long, ByVal sBuff As String, ByVal Access As Long, ByVal Flags As Long, ByVal Context As Long) As Long Private Declare Function InternetReadFile Lib "wininet.dll" (ByVal hFile As Long, ByVal sBuffer As String, ByVal lNumBytesToRead As Long, lNumberOfBytesRead As Long) As Integer Private Declare Function InternetWriteFile Lib "wininet.dll" (ByVal hFile As Long, ByRef sBuffer As Byte, ByVal lNumBytesToWrite As Long, dwNumberOfBytesWritten As Long) As Integer Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long) Private Const MAX_PATH = 260 Private Type FILETIME dwLowDateTime As Long dwHighDateTime As Long End Type Private Type WIN32_FIND_DATA dwFileAttributes As Long ftCreationTime As FILETIME ftLastAccessTime As FILETIME ftLastWriteTime As FILETIME nFileSizeHigh As Long nFileSizeLow As Long dwReserved0 As Long dwReserved1 As Long cFileName As String * MAX_PATH cAlternate As String * 14 End Type Private 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 Private Const INTERNET_OPEN_TYPE_PRECONFIG = 0 Private Const INTERNET_SERVICE_FTP = 1 Private Const INTERNET_FLAG_TRANSFER_BINARY = &H2 Private Const INTERNET_FLAG_NO_CACHE_WRITE = &H4000000 Private Const GENERIC_READ = &H80000000 Private Const GENERIC_WRITE = &H40000000 Private Const INTERNET_FLAG_PASSIVE = &H8000000 Public SiteName As String Public Port As Long Public UserName As String Public Password As Variant Public NewestFile As Date Dim blConnected As Boolean Dim hOpen As Long Dim hConnect As Long Dim hFile As Long Dim f As Long Dim int10KDownloaded As Long Dim blPause As Boolean Dim blCancel As Boolean Dim blDeleteDownloadedFile As Boolean Dim FTPFiles As Collection Dim SaveFilePath As String Event ConnectionStateChange() Event FTPError(strErrorMessage As String) Const intChunkSize As Long = 10240 Event StartingDownload() Event ProgressAlert(intTenthsDownloaded As Long) Event DownloadComplete(intTotalTenths As Long, blCanceled As Boolean) 'Event AllFilesUnzipped() Event UnzippingFile(strFileName As String) Event FileUnzipped(strFileName As String) Public AllFilesUnzipped As Boolean Public Function StartingUnzip(strFileName As String) RaiseEvent UnzippingFile(strFileName) End Function Public Function CloseUploadFile() InternetCloseHandle hFile End Function Public Function UploadData(ByVal strData As String) Dim intBuffer As Long Dim dwReturn As Long Dim intLen As Long 'Dim strTemp As String Dim byteBuffer() As Byte 'strTemp = strData intLen = Len(strData) ReDim byteBuffer(0 To intLen - 1) CopyMemory byteBuffer(0), ByVal strData, intLen dwReturn = InternetWriteFile(hFile, byteBuffer(0), intLen, intBuffer) End Function Public Function StartUploadFile(strNewName As String) If Not blConnected Then Connect hFile = FtpOpenFile(hConnect, strNewName, GENERIC_WRITE, 2, 0) End Function Property Get Paused() As Boolean Paused = blPause End Property Property Get FileCount() As Long FileCount = FTPFiles.Count End Property Property Get Connected() As Boolean Connected = blConnected End Property Public Function Connect() hOpen = InternetOpen("Dean File Upload Testing", INTERNET_OPEN_TYPE_PRECONFIG, vbNullString, vbNullString, 0) If hOpen = 0 Then RaiseEvent FTPError("Error with InternetOpen") Else hConnect = InternetConnect(hOpen, SiteName, Port, UserName, Password, INTERNET_SERVICE_FTP, 0, 0) 'hConnect = InternetConnect(hOpen, SiteName, Port, UserName, Password, INTERNET_SERVICE_FTP, 0, 0) If hConnect = 0 Then RaiseEvent FTPError("Error with InternetConnect") Else blConnected = True RaiseEvent ConnectionStateChange DoEvents End If End If End Function Public Function Disconnect() If hConnect <> 0 Then InternetCloseHandle hConnect If hOpen <> 0 Then InternetCloseHandle hOpen If blConnected Then blConnected = False RaiseEvent ConnectionStateChange End If End Function Private Sub Class_Initialize() 'RestoreToStoredSettings Set FTPFiles = New Collection blPause = False blCancel = False blDeleteDownloadedFile = False AllFilesUnzipped = False End Sub Private Sub Class_Terminate() Disconnect Set FTPFiles = Nothing End Sub TO run this, the code would be something like this: Dim fSite As FTPSite Dim strTemp As String Set fSite = New FTPSite fSite.Connect fSite.SiteName="ftp.whateveryourftpserveris.com" fSite.Port=21 'this is the usual FTP port fSite.UserName="whateverusername" fsite.Password="whateverpassword" fSite.StartUploadFile "File name you want on the ftp server.txt" strTemp="you would set strtemp to the data you want to upload....." fSite.UploadData strTemp fSite.CloseUploadFile Set fSite = Nothing A few notes on this. FTPSite's 'UploadData' function can be used over and over. So, for example, let's say you want to upload the data from a recordset. You could put fSite.UploadData in the loop, looping through the fields (putting in a delimiter after each field) and looping through records. If you are uploading a lot of data, you can break it up, and have a 'progress' indication going as you are uploading chunks. If you try sending a few megs at once, the code is going to pause a while at that command, where as a few k at a time go pretty fast (depending on the connection) Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Monday, May 22, 2006 3:51 PM To: Access Developers discussion and problem solving Subject: [AccessD] FTP From Access Dear List: What is the quickest, easiest, and./or fastest way to FTP something from Access to a website? 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 stuart at lexacorp.com.pg Tue May 23 02:31:14 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 23 May 2006 17:31:14 +1000 Subject: [AccessD] FTP From Access In-Reply-To: <447234EB.9070700@san.rr.com> References: <4472B97D.20383.33502D15@stuart.lexacorp.com.pg> Message-ID: <447346E2.9815.35787F8D@stuart.lexacorp.com.pg> On 22 May 2006 at 15:02, Rocky Smolin - Beach Access S wrote: > Staurt: > > I'm looking at your FTPSend.exe help screen. It says you need to use /C > first to create the encrypted parameter file then call it again (I guess) > using /R? On the web site however it says you call it based on parameters > passed to it on the command line. With the parameters to avoid the > parameter file? Would you then not use either /C or /R? > That's why the "/C ParamterFileName" is in square brackets on the help screen. It means that it is an optional parameter. If you start with a /C it will create the parameter file and then quit. It won't perform an FTP session. If you start with a /R it will read the parameter file first to get the default parameters, these will be overridden by other parameters which follow, if any. If you don't have either /C or /R at the start of the command line, it will not even think about a parameter file. It will just run with the parameters on the command line. -- Stuart From fhtapia at gmail.com Tue May 23 11:34:39 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 23 May 2006 09:34:39 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: <446E8372.6090809@shaw.ca> References: <20060518003411.70798.qmail@web80832.mail.yahoo.com> <446CEE15.4030008@shaw.ca> <446E8372.6090809@shaw.ca> Message-ID: I just checked, and on the good PC, the user is explicitly a Power user (not admin). On the pc w/ the problems it has \everyone in the power users group. So I added her so she is explicitly a power user. maybe this will help out? -- Francisco On 5/19/06, MartyConnelly wrote: > Hmm, just wondering if user is running under a admin account or not? > > Francisco Tapia wrote: > > >I tried that, the user still managed to get it to "poof" out of the > >screen as she put it. > > > >On 5/18/06, MartyConnelly wrote: > > > > > >>Try running Belarc on the two machines and compare the two lists. > >>http://www.belarc.com/free_download.html > >> > >>It builds a detailed profile of your installed software and hardware, > >>missing Microsoft hotfixes, anti-virus status, etc. and > >>displays the results in your Web browser > >>One other thing it lists your Windows and Office activation Keys > >>just in case you forgot them > >> > >>You could also run the actual ADP on the machine to find a possible > >>untrapped error. > >> > >>David Mcafee wrote: > >> > >> > >> > >>>We had issues here some Dells would reboot (the whole computer would restart) some users computers when using Access and others wouldnt. It was driving us nuts. > >>> > >>> It ended up being that the problem machines had a certain firmware on their ethernet or video card ( I cant remember which) and a certain driver for the card. Others users with just the firmware or just the driver (but not both) wouldn't have the problems. > >>> > >>> > >>> > >>> > >>> > >>>Francisco Tapia wrote: ACK! but why just this machine, on her old pc this never occured :( > >>> > >>>On 5/17/06, Charlotte Foust wrote: > >>> > >>> > >>> > >>> > >>>>If it isn't an MDAC issue or a Jet service pack issue, it sounds like > >>>>garbage collection. I've seen that behavior before and have a wretched > >>>>time tracking it down to things like trying to use the value of a > >>>>checkbox as an implicit boolean in code. Good luck. > >>>> > >>>> > >>>>Charlotte Foust > >>>> > >>>>-----Original Message----- > >>>>From: accessd-bounces at databaseadvisors.com > >>>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco > >>>>Tapia > >>>>Sent: Wednesday, May 17, 2006 3:40 PM > >>>>To: Access Developers discussion and problem solving > >>>>Subject: Re: [AccessD] Odd XP machine > >>>> > >>>>the "system just closes out" is defined as: > >>>> > >>>>the user will be in her order entry screen either inputting a line item, > >>>>or header info, or the main status screen when the system for no > >>>>explainable reason closes and there is no error message displayed, "OR" > >>>>even logged in event log or anywhere else, its' not a BSOD, or a GPF or > >>>>an OS lockup, it's just "now you see it now you don't". > >>>> > >>>>The app is an ADE format, there are no LDB files, When the app dies, it > >>>>is not on the task manager, so it's not hung up in the background and > >>>>just not redrawn. The computer seems to run every other applications > >>>>just fine w/o fail, it's just this app, and when I run it on her > >>>>neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they > >>>>both type about the same words per minute, and fly past the screens at > >>>>about the same speed. If I trade this user to the other pc, the problem > >>>>does not surface so it's not her work method. About the biggest > >>>>diffrence is that the user with the problems has a newer dell than the > >>>>other user. > >>>> > >>>> > >>>> > >>>>On 5/17/06, Stuart McLachlan wrote: > >>>> > >>>> > >>>> > >>>> > >>>>>On 17 May 2006 at 13:50, Francisco Tapia wrote: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>I have an application that is used accross the company here. It was > >>>>>> > >>>>>> > >>>>>>written in Access2000 as an ADP. This app works on all windows > >>>>>>2000/XP machines running SP4 and SP2 (respectively). I do have a > >>>>>>newer XP machine that was just issued to a user and her system just > >>>>>>closes out for no reason after just some usage. > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>Great technical term, very detailed description of the symptoms - just > >>>>> > >>>>> > >>>>>what we love to hear from users when trying to diagnose problems. > >>>>> > >>>>>What does "system just closes out" mean? > >>>>> > >>>>>Application closes itself? > >>>>>Application fails with an error message? > >>>>>Application disappears with no warning and without cleaning itself up? > >>>>>Application disappears but task manager shows it is still running? > >>>>>OS locks up? > >>>>>BSOD? > >>>>>Computer reboots spontaneously? > >>>>>or something else entirely? > >>>>> > >>>>> > >>>>> > >>>>>-- > >>>>>Stuart > >>>>> > >>>>> > >>>>>-- > >>>>>AccessD mailing list > >>>>>AccessD at databaseadvisors.com > >>>>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>>>Website: http://www.databaseadvisors.com > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>-- > >>>>-Francisco > >>>>http://pcthis.blogspot.com |PC news with out the jargon! > >>>>http://sqlthis.blogspot.com | Tsql and More... > >>>>-- > >>>>AccessD mailing list > >>>>AccessD at databaseadvisors.com > >>>>http://databaseadvisors.com/mailman/listinfo/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 > >> > >> > >> > > > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Tue May 23 11:35:10 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 23 May 2006 09:35:10 -0700 Subject: [AccessD] IE 7 In-Reply-To: <0IZM003JYQDKTPB1@l-daemon> References: <44702BF9.25741.29577422@stuart.lexacorp.com.pg> <0IZM003JYQDKTPB1@l-daemon> Message-ID: it looks like Firefox ;) On 5/21/06, Jim Lawrence wrote: > Hi All: > > Has anyone heard anything good, bad or indifferent about IE 7? > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Tue May 23 11:36:14 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 23 May 2006 09:36:14 -0700 Subject: [AccessD] IE 7 In-Reply-To: References: <44702BF9.25741.29577422@stuart.lexacorp.com.pg> <0IZM003JYQDKTPB1@l-daemon> Message-ID: actually a user here who loaded it found that some of our "IE" only sites do not render correctly in IE7. On 5/23/06, Francisco Tapia wrote: > it looks like Firefox ;) > > On 5/21/06, Jim Lawrence wrote: > > Hi All: > > > > Has anyone heard anything good, bad or indifferent about IE 7? > > > > Jim > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From bheid at appdevgrp.com Tue May 23 11:59:08 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 23 May 2006 12:59:08 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: IE 7 In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB37D0@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35449@ADGSERVER> >From what I understand, IE7 is much more web compliant. IE6 and all were not web compliant, but since it was the major player, everyone did stuff so that it would run in older IE versions. Therefore, some items may not work correctly in IE7. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Tuesday, May 23, 2006 12:36 PM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] IE 7 Importance: Low actually a user here who loaded it found that some of our "IE" only sites do not render correctly in IE7. On 5/23/06, Francisco Tapia wrote: > it looks like Firefox ;) > > On 5/21/06, Jim Lawrence wrote: > > Hi All: > > > > Has anyone heard anything good, bad or indifferent about IE 7? > > > > Jim From cfoust at infostatsystems.com Tue May 23 12:59:46 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 23 May 2006 10:59:46 -0700 Subject: [AccessD] IE 7 In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D35449@ADGSERVER> Message-ID: That kind of reasoning makes my head ache!! :o< Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, May 23, 2006 9:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [SPAM SUSPECT] Re: IE 7 >From what I understand, IE7 is much more web compliant. IE6 and all >were not web compliant, but since it was the major player, everyone did stuff so that it would run in older IE versions. Therefore, some items may not work correctly in IE7. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Tuesday, May 23, 2006 12:36 PM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] IE 7 Importance: Low actually a user here who loaded it found that some of our "IE" only sites do not render correctly in IE7. On 5/23/06, Francisco Tapia wrote: > it looks like Firefox ;) > > On 5/21/06, Jim Lawrence wrote: > > Hi All: > > > > Has anyone heard anything good, bad or indifferent about IE 7? > > > > Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue May 23 14:56:32 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 23 May 2006 19:56:32 +0000 Subject: [AccessD] OT: This Wonderful List Message-ID: Hello All, I use a Hotmail email account to receive/manage my AccessD messages. I just went through and cleaned up the folders, for space issues, from the last year or so(threads that I kept for one reason or another). I read through a number of them and started laughing at some points and impressed at others. The camaraderie , joking, seriousness, and brilliance in the different postings, and sometimes combined in one posting made me glad to be a part of this list. A large group of people providing help (FREE help) to other people that in most cases, they have never met. I just wanted to say thanks to everyone here. Below is one that I gave a good laugh.(Thanks Steve and Roz) Mark A. Matte P.S...The one humorous post that stuck out the most was from Apr05...subject" How to Learn Access" On Apr 6, 2005 9:40 AM, Roz Clarke wrote: >Step number 1, join this list. Start a random project, and bug people until >you make sense of it. > >I learned everything by trial and error, and listening to the several gurus >we have here. IMO, there's just no better way to push yourself. On Apr 6, 2005 10:27 Steve Erbach wrote: >I call that the "frog dissection" method: open that puppy up and poke >around with your scalpel and an electricified wire until something >jumps. From harkinsss at bellsouth.net Tue May 23 15:59:24 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 23 May 2006 16:59:24 -0400 Subject: [AccessD] Setting field name in recordset Message-ID: <002101c67eab$c65f9ca0$cfb3d6d1@SUSANONE> ctl.Caption = rstControls.Fields(language) I'm trying to grab a value from a recordset where the field changes. The variable language is a string that holds the field name and I don't know whether that's the problem or whether I'm using the wrong syntax. Should I be referring to a field object instead of a string? I'm sure I've done this before, but I just can't remember how. I'm using ADO, not DAO. Susan H. From accessd at shaw.ca Tue May 23 16:30:22 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 23 May 2006 14:30:22 -0700 Subject: [AccessD] IE7 In-Reply-To: Message-ID: <0IZQ00BVHMBANLF0@l-daemon> Thank you, Francisco, Charlotte and Bobby for your input I guess IE7 is ready for prime-time use... on the virtual PC. I have been using Firefox extensively and am still concerned whether there will be some grim conflict between my non-MS products. After the battle to get SQL Express (beta) and SQL 2005 happy, that ended up requiring 2 complete installs, in the middle of a contact and a weeks lost work, I am a little gun shy. Until the group gives this product the stamp of approval testing can wait until the mid summer doldrums. Jim From andy at minstersystems.co.uk Tue May 23 17:03:01 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 23 May 2006 23:03:01 +0100 Subject: [AccessD] Setting field name in recordset In-Reply-To: <002101c67eab$c65f9ca0$cfb3d6d1@SUSANONE> Message-ID: <00b401c67eb4$a959b740$e53b0c54@minster33c3r25> Susan Isn't it rstControls(language)? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Susan Harkins > Sent: 23 May 2006 21:59 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Setting field name in recordset > > > ctl.Caption = rstControls.Fields(language) > > I'm trying to grab a value from a recordset where the field > changes. The variable language is a string that holds the > field name and I don't know whether that's the problem or > whether I'm using the wrong syntax. Should I be referring to > a field object instead of a string? I'm sure I've done this > before, but I just can't remember how. > > I'm using ADO, not DAO. > > 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 Tue May 23 17:14:06 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 23 May 2006 18:14:06 -0400 Subject: [AccessD] Setting field name in recordset In-Reply-To: <00b401c67eb4$a959b740$e53b0c54@minster33c3r25> Message-ID: <005e01c67eb6$35a87d20$cfb3d6d1@SUSANONE> I tried that already -- I get a type mismatch error. Susan H. Susan Isn't it rstControls(language)? > > > ctl.Caption = rstControls.Fields(language) > > I'm trying to grab a value from a recordset where the field changes. > The variable language is a string that holds the field name and I > don't know whether that's the problem or whether I'm using the wrong > syntax. Should I be referring to a field object instead of a string? > I'm sure I've done this before, but I just can't remember how. > > I'm using ADO, not DAO. > From harkinsss at bellsouth.net Tue May 23 17:18:29 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 23 May 2006 18:18:29 -0400 Subject: [AccessD] Setting field name in recordset In-Reply-To: <00b401c67eb4$a959b740$e53b0c54@minster33c3r25> Message-ID: <005f01c67eb6$d26fd590$cfb3d6d1@SUSANONE> FWIW, I'm passing the string value to a function. The Tooltip shows Language = "English" Debug.Print prints English It's there -- but rstControls doesn't like it. The mismatch type is the hint I guess -- that's why I asked if maybe the variable, language, needs to be an object instead of a string. Susan H. Susan Isn't it rstControls(language)? From harkinsss at bellsouth.net Tue May 23 17:44:14 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 23 May 2006 18:44:14 -0400 Subject: [AccessD] Nevermind: RE: Setting field name in recordset In-Reply-To: <00b401c67eb4$a959b740$e53b0c54@minster33c3r25> Message-ID: <006501c67eba$6b569110$cfb3d6d1@SUSANONE> The problem doesn't seem to be the rstControls(language) statement at all, although that's where the actual problem actually shows up -- sorry. Susan Isn't it rstControls(language)? From pharold at proftesting.com Tue May 23 17:55:07 2006 From: pharold at proftesting.com (Perry L Harold) Date: Tue, 23 May 2006 18:55:07 -0400 Subject: [AccessD] Setting field name in recordset In-Reply-To: <002101c67eab$c65f9ca0$cfb3d6d1@SUSANONE> Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD1FD034@EXCHANGE.ptiorl.local> Language may be a reserved word. Maybe use strLanguage or strLang? The syntax looks correct Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, May 23, 2006 4:59 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Setting field name in recordset ctl.Caption = rstControls.Fields(language) I'm trying to grab a value from a recordset where the field changes. The variable language is a string that holds the field name and I don't know whether that's the problem or whether I'm using the wrong syntax. Should I be referring to a field object instead of a string? I'm sure I've done this before, but I just can't remember how. I'm using ADO, not DAO. 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 Tue May 23 18:10:59 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 23 May 2006 19:10:59 -0400 Subject: [AccessD] Setting field name in recordset In-Reply-To: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD1FD034@EXCHANGE.ptiorl.local> Message-ID: <000901c67ebe$2786f5c0$cfb3d6d1@SUSANONE> No, but thank you -- that was a good guess. I don't even want to tell you what I did -- it had nothing to do with syntax and everything to do with forgetting to update a different reference. Susan H. Language may be a reserved word. Maybe use strLanguage or strLang? The syntax looks correct From kp at sdsonline.net Tue May 23 18:59:23 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 24 May 2006 09:59:23 +1000 Subject: [AccessD] OT: This Wonderful List References: Message-ID: <004e01c67ec4$eaa54fb0$6601a8c0@office> Mark - it only really hits you how nice a group we have here when you join other lists - I am amazed at the way people speak to each other on some of the forums. Home sweet home! Kath ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Wednesday, May 24, 2006 5:56 AM Subject: [AccessD] OT: This Wonderful List Hello All, I use a Hotmail email account to receive/manage my AccessD messages. I just went through and cleaned up the folders, for space issues, from the last year or so(threads that I kept for one reason or another). I read through a number of them and started laughing at some points and impressed at others. The camaraderie , joking, seriousness, and brilliance in the different postings, and sometimes combined in one posting made me glad to be a part of this list. A large group of people providing help (FREE help) to other people that in most cases, they have never met. I just wanted to say thanks to everyone here. Below is one that I gave a good laugh.(Thanks Steve and Roz) Mark A. Matte P.S...The one humorous post that stuck out the most was from Apr05...subject" How to Learn Access" On Apr 6, 2005 9:40 AM, Roz Clarke wrote: >Step number 1, join this list. Start a random project, and bug people until >you make sense of it. > >I learned everything by trial and error, and listening to the several gurus >we have here. IMO, there's just no better way to push yourself. On Apr 6, 2005 10:27 Steve Erbach wrote: >I call that the "frog dissection" method: open that puppy up and poke >around with your scalpel and an electricified wire until something >jumps. -- 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 May 23 19:07:20 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 23 May 2006 17:07:20 -0700 Subject: [AccessD] FTP From Access In-Reply-To: <447346E2.9815.35787F8D@stuart.lexacorp.com.pg> References: <4472B97D.20383.33502D15@stuart.lexacorp.com.pg> <447346E2.9815.35787F8D@stuart.lexacorp.com.pg> Message-ID: <4473A3B8.4040607@san.rr.com> Many thanks to all who responded. I talked myself out of a job by sending the Lawrence/Hindman/Dick solution to my client who will try to implement it himself. I think he may be able to do it. If he wants to pay me anything I'll have him send it to DBA. Best, Rocky Stuart McLachlan wrote: > On 22 May 2006 at 15:02, Rocky Smolin - Beach Access S wrote: > > >> Staurt: >> >> I'm looking at your FTPSend.exe help screen. It says you need to use /C >> first to create the encrypted parameter file then call it again (I guess) >> using /R? On the web site however it says you call it based on parameters >> passed to it on the command line. With the parameters to avoid the >> parameter file? Would you then not use either /C or /R? >> >> > > That's why the "/C ParamterFileName" is in square brackets on the help > screen. It means that it is an optional parameter. > If you start with a /C it will create the parameter file and then quit. It > won't perform an FTP session. > If you start with a /R it will read the parameter file first to get the > default parameters, these will be overridden by other parameters which > follow, if any. > > If you don't have either /C or /R at the start of the command line, it will > not even think about a parameter file. It will just run with the > parameters on the command line. > > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Tue May 23 19:09:37 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 23 May 2006 17:09:37 -0700 Subject: [AccessD] OT: This Wonderful List In-Reply-To: <004e01c67ec4$eaa54fb0$6601a8c0@office> References: <004e01c67ec4$eaa54fb0$6601a8c0@office> Message-ID: <4473A441.2020005@san.rr.com> You want some DBA trash talk? C'mon over to OT. Rocky Kath Pelletti wrote: > Mark - it only really hits you how nice a group we have here when you join other lists - I am amazed at the way people speak to each other on some of the forums. > > Home sweet home! > Kath > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Wednesday, May 24, 2006 5:56 AM > Subject: [AccessD] OT: This Wonderful List > > > Hello All, > > I use a Hotmail email account to receive/manage my AccessD messages. I just > went through and cleaned up the folders, for space issues, from the last > year or so(threads that I kept for one reason or another). I read through a > number of them and started laughing at some points and impressed at others. > The camaraderie , joking, seriousness, and brilliance in the different > postings, and sometimes combined in one posting made me glad to be a part of > this list. A large group of people providing help (FREE help) to other > people that in most cases, they have never met. > > I just wanted to say thanks to everyone here. Below is one that I gave a > good laugh.(Thanks Steve and Roz) > > Mark A. Matte > > P.S...The one humorous post that stuck out the most was from > Apr05...subject" How to Learn Access" > > On Apr 6, 2005 9:40 AM, Roz Clarke wrote: > >Step number 1, join this list. Start a random project, and bug people until > >you make sense of it. > > > >I learned everything by trial and error, and listening to the several gurus > >we have here. IMO, there's just no better way to push yourself. > > On Apr 6, 2005 10:27 Steve Erbach wrote: > >I call that the "frog dissection" method: open that puppy up and poke > >around with your scalpel and an electricified wire until something > >jumps. > > > -- > 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 kp at sdsonline.net Tue May 23 19:24:29 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 24 May 2006 10:24:29 +1000 Subject: [AccessD] OT: This Wonderful List References: <004e01c67ec4$eaa54fb0$6601a8c0@office> <4473A441.2020005@san.rr.com> Message-ID: <005b01c67ec8$6c483bb0$6601a8c0@office> Not even tempted...... ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, May 24, 2006 10:09 AM Subject: Re: [AccessD] OT: This Wonderful List You want some DBA trash talk? C'mon over to OT. Rocky Kath Pelletti wrote: > Mark - it only really hits you how nice a group we have here when you join other lists - I am amazed at the way people speak to each other on some of the forums. > > Home sweet home! > Kath > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Wednesday, May 24, 2006 5:56 AM > Subject: [AccessD] OT: This Wonderful List > > > Hello All, > > I use a Hotmail email account to receive/manage my AccessD messages. I just > went through and cleaned up the folders, for space issues, from the last > year or so(threads that I kept for one reason or another). I read through a > number of them and started laughing at some points and impressed at others. > The camaraderie , joking, seriousness, and brilliance in the different > postings, and sometimes combined in one posting made me glad to be a part of > this list. A large group of people providing help (FREE help) to other > people that in most cases, they have never met. > > I just wanted to say thanks to everyone here. Below is one that I gave a > good laugh.(Thanks Steve and Roz) > > Mark A. Matte > > P.S...The one humorous post that stuck out the most was from > Apr05...subject" How to Learn Access" > > On Apr 6, 2005 9:40 AM, Roz Clarke wrote: > >Step number 1, join this list. Start a random project, and bug people until > >you make sense of it. > > > >I learned everything by trial and error, and listening to the several gurus > >we have here. IMO, there's just no better way to push yourself. > > On Apr 6, 2005 10:27 Steve Erbach wrote: > >I call that the "frog dissection" method: open that puppy up and poke > >around with your scalpel and an electricified wire until something > >jumps. > > > -- > 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 carbonnb at gmail.com Tue May 23 20:38:57 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 23 May 2006 21:38:57 -0400 Subject: [AccessD] OT: This Wonderful List In-Reply-To: <005b01c67ec8$6c483bb0$6601a8c0@office> References: <004e01c67ec4$eaa54fb0$6601a8c0@office> <4473A441.2020005@san.rr.com> <005b01c67ec8$6c483bb0$6601a8c0@office> Message-ID: On 5/23/06, Kath Pelletti wrote: > Not even tempted...... Aw, come on over just for the entertainment value :-)) -- 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 lmrazek at lcm-res.com Tue May 23 21:35:06 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Tue, 23 May 2006 21:35:06 -0500 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel In-Reply-To: Message-ID: <0b1b01c67eda$abb2a620$026fa8c0@stormy> Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314.432.5886 fx. 314.432.3304 From darrend at nimble.com.au Tue May 23 21:44:48 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 24 May 2006 12:44:48 +1000 Subject: [AccessD] OT: This Wonderful List In-Reply-To: Message-ID: <20060524024543.UOEJ25409.omta05sl.mx.bigpond.com@DENZILLAP> Here here An awesome list - I love it Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, 24 May 2006 5:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: This Wonderful List Hello All, I use a Hotmail email account to receive/manage my AccessD messages. I just went through and cleaned up the folders, for space issues, from the last year or so(threads that I kept for one reason or another). I read through a number of them and started laughing at some points and impressed at others. The camaraderie , joking, seriousness, and brilliance in the different postings, and sometimes combined in one posting made me glad to be a part of this list. A large group of people providing help (FREE help) to other people that in most cases, they have never met. I just wanted to say thanks to everyone here. Below is one that I gave a good laugh.(Thanks Steve and Roz) Mark A. Matte P.S...The one humorous post that stuck out the most was from Apr05...subject" How to Learn Access" On Apr 6, 2005 9:40 AM, Roz Clarke wrote: >Step number 1, join this list. Start a random project, and bug people until >you make sense of it. > >I learned everything by trial and error, and listening to the several gurus >we have here. IMO, there's just no better way to push yourself. On Apr 6, 2005 10:27 Steve Erbach wrote: >I call that the "frog dissection" method: open that puppy up and poke >around with your scalpel and an electricified wire until something >jumps. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed May 24 02:49:13 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 24 May 2006 00:49:13 -0700 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel In-Reply-To: <0b1b01c67eda$abb2a620$026fa8c0@stormy> Message-ID: <0IZR00IBDEYOXOS0@l-daemon> Hi Larry: This problem should not be an issue on the current versions of Access. Which version are you using? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Tuesday, May 23, 2006 7:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 harkinsss at bellsouth.net Wed May 24 07:38:31 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 24 May 2006 08:38:31 -0400 Subject: [AccessD] OT: This Wonderful List In-Reply-To: <4473A441.2020005@san.rr.com> Message-ID: <000901c67f2e$f89d0120$a2b3d6d1@SUSANONE> Yeah, Rocky's the KING of OT trash talk! ;) No kidding! ;) Susan H. You want some DBA trash talk? C'mon over to OT. From lmrazek at lcm-res.com Wed May 24 08:03:49 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 24 May 2006 08:03:49 -0500 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel In-Reply-To: <0IZR00IBDEYOXOS0@l-daemon> Message-ID: <0bc701c67f32$801d8b30$026fa8c0@stormy> Hi Jim: Running Access XP, all current service packs installed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, May 24, 2006 2:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Larry: This problem should not be an issue on the current versions of Access. Which version are you using? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Tuesday, May 23, 2006 7:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 prosoft6 at hotmail.com Wed May 24 08:24:25 2006 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Wed, 24 May 2006 09:24:25 -0400 Subject: [AccessD] Replication Deployed Database Message-ID: Hi, I finally bit the bullet and packaged one of my apps using the packaging wizard with developer extensions. I was very thrilled to find that it was so easy! Was wondering however, how this effects replication? I would like to package one of my apps that is being used front-end, back-end scenario in an organization. However, one of the inspectors takes a copy out in the field and make entries on a tablet pc, then comes back to the office and synchronizes the data. If I package my app, does that have an impact on the replication? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business From bchacc at san.rr.com Wed May 24 08:29:06 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 24 May 2006 06:29:06 -0700 Subject: [AccessD] OT: This Wonderful List In-Reply-To: <000901c67f2e$f89d0120$a2b3d6d1@SUSANONE> References: <000901c67f2e$f89d0120$a2b3d6d1@SUSANONE> Message-ID: <44745FA2.6000709@san.rr.com> I have to work hard to stay ahead of the ^%#&%#$ competition. Rocky Susan Harkins wrote: > Yeah, Rocky's the KING of OT trash talk! ;) No kidding! ;) > > Susan H. > > You want some DBA trash talk? C'mon over to OT. > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Jim.Hale at FleetPride.com Wed May 24 08:41:52 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 24 May 2006 08:41:52 -0500 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC5B@corp-es01.fleetpride.com> Is it possible old instances of Excel are still in memory? Excel loves to hang around even when you think you have properly closed it from previous runs. Use task manager to see if this is the case. If it is there are a number of voodoo rituals availasble to kill the zombies. Jim Hale -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Tuesday, May 23, 2006 9:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 *********************************************************************** 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 lmrazek at lcm-res.com Wed May 24 09:07:43 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 24 May 2006 09:07:43 -0500 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC5B@corp-es01.fleetpride.com> Message-ID: <0be001c67f3b$6d5b5d20$026fa8c0@stormy> Hi Jim: No, I don't think so. This has happened on the first run after a reboot, and I haven't been able to identify any open processes using task manager even after a run completed. Would saving (before the last worksheet generated), closing the instance of excel, then re-opening excel possibly solve this? Like I said, these are pretty large files. Thanks. 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 Hale, Jim Sent: Wednesday, May 24, 2006 8:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel Is it possible old instances of Excel are still in memory? Excel loves to hang around even when you think you have properly closed it from previous runs. Use task manager to see if this is the case. If it is there are a number of voodoo rituals availasble to kill the zombies. Jim Hale -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Tuesday, May 23, 2006 9:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 *********************************************************************** 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 Jim.Hale at FleetPride.com Wed May 24 09:28:50 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 24 May 2006 09:28:50 -0500 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC5C@corp-es01.fleetpride.com> I don't think that would help. If it runs on one machine and not the other it may truly be out of memory although this seems strange. I have sheets that exceed 8 mg. Of course not all workbooks are equal in the kind of resources they use. Check out Microsoft Excel specifications in the Excel help and see if any of those limits apply to your situation. Depending on the situation I have cured this problem in the past by changing lookup formulas to values, reducing pivot tables, etc to shrink the worksheet. Good luck Jim Hale -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Wednesday, May 24, 2006 9:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Jim: No, I don't think so. This has happened on the first run after a reboot, and I haven't been able to identify any open processes using task manager even after a run completed. Would saving (before the last worksheet generated), closing the instance of excel, then re-opening excel possibly solve this? Like I said, these are pretty large files. Thanks. 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 Hale, Jim Sent: Wednesday, May 24, 2006 8:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel Is it possible old instances of Excel are still in memory? Excel loves to hang around even when you think you have properly closed it from previous runs. Use task manager to see if this is the case. If it is there are a number of voodoo rituals availasble to kill the zombies. Jim Hale -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Tuesday, May 23, 2006 9:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 *********************************************************************** 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 *********************************************************************** 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 lmrazek at lcm-res.com Wed May 24 11:20:11 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 24 May 2006 11:20:11 -0500 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC5C@corp-es01.fleetpride.com> Message-ID: <0c0f01c67f4d$ee9ddbd0$026fa8c0@stormy> I'm using a lot of named ranges, since these data groupings change from month to month. I wonder if this could have something to do with the issue. I'll check Excel help and report back to the list ... Thanks! Larry -----Original Message----- I don't think that would help. If it runs on one machine and not the other it may truly be out of memory although this seems strange. I have sheets that exceed 8 mg. Of course not all workbooks are equal in the kind of resources they use. Check out Microsoft Excel specifications in the Excel help and see if any of those limits apply to your situation. Depending on the situation I have cured this problem in the past by changing lookup formulas to values, reducing pivot tables, etc to shrink the worksheet. Good luck Jim Hale -----Original Message----- Hi Jim: No, I don't think so. This has happened on the first run after a reboot, and I haven't been able to identify any open processes using task manager even after a run completed. Would saving (before the last worksheet generated), closing the instance of excel, then re-opening excel possibly solve this? Like I said, these are pretty large files. Thanks. 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 Hale, Jim Sent: Wednesday, May 24, 2006 8:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel Is it possible old instances of Excel are still in memory? Excel loves to hang around even when you think you have properly closed it from previous runs. Use task manager to see if this is the case. If it is there are a number of voodoo rituals availasble to kill the zombies. Jim Hale -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Tuesday, May 23, 2006 9:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 *********************************************************************** 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 *********************************************************************** 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 DWUTKA at marlow.com Wed May 24 11:21:09 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 24 May 2006 11:21:09 -0500 Subject: [AccessD] OT: This Wonderful List Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B24D9@main2.marlow.com> LOL....the dark world of DBA. ;) Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Tuesday, May 23, 2006 7:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: This Wonderful List You want some DBA trash talk? C'mon over to OT. Rocky Kath Pelletti wrote: > Mark - it only really hits you how nice a group we have here when you join other lists - I am amazed at the way people speak to each other on some of the forums. > > Home sweet home! > Kath > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Wednesday, May 24, 2006 5:56 AM > Subject: [AccessD] OT: This Wonderful List > > > Hello All, > > I use a Hotmail email account to receive/manage my AccessD messages. I just > went through and cleaned up the folders, for space issues, from the last > year or so(threads that I kept for one reason or another). I read through a > number of them and started laughing at some points and impressed at others. > The camaraderie , joking, seriousness, and brilliance in the different > postings, and sometimes combined in one posting made me glad to be a part of > this list. A large group of people providing help (FREE help) to other > people that in most cases, they have never met. > > I just wanted to say thanks to everyone here. Below is one that I gave a > good laugh.(Thanks Steve and Roz) > > Mark A. Matte > > P.S...The one humorous post that stuck out the most was from > Apr05...subject" How to Learn Access" > > On Apr 6, 2005 9:40 AM, Roz Clarke wrote: > >Step number 1, join this list. Start a random project, and bug people until > >you make sense of it. > > > >I learned everything by trial and error, and listening to the several gurus > >we have here. IMO, there's just no better way to push yourself. > > On Apr 6, 2005 10:27 Steve Erbach wrote: > >I call that the "frog dissection" method: open that puppy up and poke > >around with your scalpel and an electricified wire until something > >jumps. > > > -- > 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 DWUTKA at marlow.com Wed May 24 11:21:43 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 24 May 2006 11:21:43 -0500 Subject: [AccessD] OT: This Wonderful List Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B24DB@main2.marlow.com> >From the man who dragged me here. ;) Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Tuesday, May 23, 2006 9:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: This Wonderful List Here here An awesome list - I love it Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, 24 May 2006 5:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: This Wonderful List Hello All, I use a Hotmail email account to receive/manage my AccessD messages. I just went through and cleaned up the folders, for space issues, from the last year or so(threads that I kept for one reason or another). I read through a number of them and started laughing at some points and impressed at others. The camaraderie , joking, seriousness, and brilliance in the different postings, and sometimes combined in one posting made me glad to be a part of this list. A large group of people providing help (FREE help) to other people that in most cases, they have never met. I just wanted to say thanks to everyone here. Below is one that I gave a good laugh.(Thanks Steve and Roz) Mark A. Matte P.S...The one humorous post that stuck out the most was from Apr05...subject" How to Learn Access" On Apr 6, 2005 9:40 AM, Roz Clarke wrote: >Step number 1, join this list. Start a random project, and bug people until >you make sense of it. > >I learned everything by trial and error, and listening to the several gurus >we have here. IMO, there's just no better way to push yourself. On Apr 6, 2005 10:27 Steve Erbach wrote: >I call that the "frog dissection" method: open that puppy up and poke >around with your scalpel and an electricified wire until something >jumps. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed May 24 11:22:23 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 24 May 2006 11:22:23 -0500 Subject: [AccessD] OT: This Wonderful List Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B24DC@main2.marlow.com> I still think we need a parliamentary ruling on that.... ;) Drew -----Original Message----- From: Susan Harkins [mailto:harkinsss at bellsouth.net] Sent: Wednesday, May 24, 2006 7:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: This Wonderful List Yeah, Rocky's the KING of OT trash talk! ;) No kidding! ;) Susan H. You want some DBA trash talk? C'mon over to OT. -- 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 May 24 11:41:37 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 24 May 2006 09:41:37 -0700 Subject: [AccessD] Replication Deployed Database In-Reply-To: Message-ID: <004501c67f50$ecdd5fc0$0200a8c0@murphy3234aaf1> Julie, I wouldn't think it packaging would affect replication. You do need to make sure the packaging wizard includes the dll with the jet replication objects in it. Look in your references to see what the dll name is an make sure it is included in the installation package. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon-Taylor Sent: Wednesday, May 24, 2006 6:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Replication Deployed Database Hi, I finally bit the bullet and packaged one of my apps using the packaging wizard with developer extensions. I was very thrilled to find that it was so easy! Was wondering however, how this effects replication? I would like to package one of my apps that is being used front-end, back-end scenario in an organization. However, one of the inspectors takes a copy out in the field and make entries on a tablet pc, then comes back to the office and synchronizes the data. If I package my app, does that have an impact on the replication? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business -- 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 May 24 11:49:48 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 24 May 2006 09:49:48 -0700 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel In-Reply-To: <0b1b01c67eda$abb2a620$026fa8c0@stormy> Message-ID: <004601c67f52$17320e00$0200a8c0@murphy3234aaf1> This may be way off track but I have seen the same error message when saving snapshots. The problem comes from the path length of the location you are saving to. I found that if the file path string that I was using to save the file was over something like 136 characters I'd could reliably reproduce the error. Shorter path, no error. There should be an FYI message on this in the archives with the exact string length that I found as the culprit. This may not be your problem but it is worth looking at. Took me a few hours to track the problem down. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Tuesday, May 23, 2006 7:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 prosoft6 at hotmail.com Wed May 24 12:16:44 2006 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Wed, 24 May 2006 13:16:44 -0400 Subject: [AccessD] Replication Deployed Database In-Reply-To: <004501c67f50$ecdd5fc0$0200a8c0@murphy3234aaf1> Message-ID: Thanks Doug. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business From cfoust at infostatsystems.com Wed May 24 12:58:06 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 24 May 2006 10:58:06 -0700 Subject: [AccessD] Replication Deployed Database In-Reply-To: Message-ID: If you're packaging replication, how are you going to handle conflicts and failures? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon-Taylor Sent: Wednesday, May 24, 2006 10:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Replication Deployed Database Thanks Doug. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Wed May 24 14:22:17 2006 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Wed, 24 May 2006 15:22:17 -0400 Subject: [AccessD] Replication Deployed Database In-Reply-To: Message-ID: That's a good question. Not really sure. I was hoping that replication would work under this scenario, but I'm not sure that it will. Has anyone tried this? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business From newsgrps at dalyn.co.nz Wed May 24 14:36:55 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Thu, 25 May 2006 07:36:55 +1200 Subject: [AccessD] Replication Deployed Database In-Reply-To: References: Message-ID: <7.0.1.0.0.20060525073608.01a42e40@dalyn.co.nz> Julie, I used replication several years ago with A97. I used Wise/Sagekey combination for creating the distribution setup. One thing I remember is that when the program is installed you will need to provide the new user with a recent copy of the replicated database and have it synchronised back to the master. Unless you have a very long period before a replica will not synchronise (not recommended) the copy in your distribution pack will become outdated and will not synchronise at all. Regards David Emerson Dalyn Software Ltd New Zealand At 25/05/2006, you wrote: >That's a good question. Not really sure. I was hoping that replication >would work under this scenario, but I'm not sure that it will. Has anyone >tried this? > > > >Julie Reardon-Taylor >PRO-SOFT OF NY, INC. >44 Public Square Suite #5 >Watertown, NY 13601 >Phone: 315.785.0319 >Fax: 315.785.0323 >www.pro-soft.net >NYS IT Services Contract CMT026A >NYS Certified Woman-Owned Business From fhtapia at gmail.com Wed May 24 17:12:53 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 24 May 2006 15:12:53 -0700 Subject: [AccessD] IE7 In-Reply-To: <0IZQ00BVHMBANLF0@l-daemon> References: <0IZQ00BVHMBANLF0@l-daemon> Message-ID: VirtualPCs / VMs are excellent platforms to test new software. I just loaded SQLPrompt from Red-Gate on my VM machine, it went off w/o any issues that I loaded it to the host system :) I'm waiting for a ram upgrade so I can move my dev environment to the vm machine wich will save me many headaches as I can easily snapshot between software installs etc. On 5/23/06, Jim Lawrence wrote: > Thank you, Francisco, Charlotte and Bobby for your input > > I guess IE7 is ready for prime-time use... on the virtual PC. I have been > using Firefox extensively and am still concerned whether there will be some > grim conflict between my non-MS products. > > After the battle to get SQL Express (beta) and SQL 2005 happy, that ended up > requiring 2 complete installs, in the middle of a contact and a weeks lost > work, I am a little gun shy. Until the group gives this product the stamp of > approval testing can wait until the mid summer doldrums. > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From darrend at nimble.com.au Wed May 24 17:44:07 2006 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 25 May 2006 08:44:07 +1000 Subject: [AccessD] OT: This Wonderful List In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B8B24DB@main2.marlow.com> Message-ID: <20060524224509.UUHG10328.omta05ps.mx.bigpond.com@DENZILLAP> Kickin and screeeeemin' Kickin' and a screemin' :-) Have a great day 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: Thursday, 25 May 2006 2:22 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: This Wonderful List >From the man who dragged me here. ;) Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Tuesday, May 23, 2006 9:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: This Wonderful List Here here An awesome list - I love it Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, 24 May 2006 5:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: This Wonderful List Hello All, I use a Hotmail email account to receive/manage my AccessD messages. I just went through and cleaned up the folders, for space issues, from the last year or so(threads that I kept for one reason or another). I read through a number of them and started laughing at some points and impressed at others. The camaraderie , joking, seriousness, and brilliance in the different postings, and sometimes combined in one posting made me glad to be a part of this list. A large group of people providing help (FREE help) to other people that in most cases, they have never met. I just wanted to say thanks to everyone here. Below is one that I gave a good laugh.(Thanks Steve and Roz) Mark A. Matte P.S...The one humorous post that stuck out the most was from Apr05...subject" How to Learn Access" On Apr 6, 2005 9:40 AM, Roz Clarke wrote: >Step number 1, join this list. Start a random project, and bug people until >you make sense of it. > >I learned everything by trial and error, and listening to the several gurus >we have here. IMO, there's just no better way to push yourself. On Apr 6, 2005 10:27 Steve Erbach wrote: >I call that the "frog dissection" method: open that puppy up and poke >around with your scalpel and an electricified wire until something >jumps. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed May 24 18:10:08 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 24 May 2006 16:10:08 -0700 Subject: [AccessD] IE7 In-Reply-To: Message-ID: <0IZS00ATILLJU1C0@l-daemon> Hi Francisco: It my old box can be upgrade to 2 GB of RAM then maybe a test run in the Virtual PC, of the beta Vista might be in order... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, May 24, 2006 3:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] IE7 VirtualPCs / VMs are excellent platforms to test new software. I just loaded SQLPrompt from Red-Gate on my VM machine, it went off w/o any issues that I loaded it to the host system :) I'm waiting for a ram upgrade so I can move my dev environment to the vm machine wich will save me many headaches as I can easily snapshot between software installs etc. On 5/23/06, Jim Lawrence wrote: > Thank you, Francisco, Charlotte and Bobby for your input > > I guess IE7 is ready for prime-time use... on the virtual PC. I have been > using Firefox extensively and am still concerned whether there will be some > grim conflict between my non-MS products. > > After the battle to get SQL Express (beta) and SQL 2005 happy, that ended up > requiring 2 complete installs, in the middle of a contact and a weeks lost > work, I am a little gun shy. Until the group gives this product the stamp of > approval testing can wait until the mid summer doldrums. > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From spikee at oatlandspark.org.uk Thu May 25 02:29:57 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Thu, 25 May 2006 08:29:57 +0100 Subject: [AccessD] Record number in query In-Reply-To: <4472B97D.20383.33502D15@stuart.lexacorp.com.pg> Message-ID: <200605250729.k4P7ToS06467@databaseadvisors.com> Good day! Dumb question here. I've got a SELECT query and wish to add a calculated field with row number. The number needs to start at 1, for the first record, and increment to n for record n. I'm sure I've seen a post here recently about this but I cannot find it in the archives. TIA! Chris Foote From markamatte at hotmail.com Thu May 25 08:23:11 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 25 May 2006 13:23:11 +0000 Subject: [AccessD] Record number in query In-Reply-To: <200605250729.k4P7ToS06467@databaseadvisors.com> Message-ID: Chris, I sent you a sample db offline that shows what you need. Its a simple 2 line function...but you have to reset it each time you use it. Also, this works best with MAKE,APPEND,UPDATE type queries...if you display a query using this function...the numbers will change as you scroll. Let me know if you don't get the offline sample. Thanks, Mark A. Matte >From: "Chris Foote (Spike)" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] Record number in query >Date: Thu, 25 May 2006 08:29:57 +0100 > >Good day! > >Dumb question here. > >I've got a SELECT query and wish to add a calculated field with row number. >The number needs to start at 1, for the first record, and increment to n >for >record n. I'm sure I've seen a post here recently about this but I cannot >find it in the archives. > >TIA! >Chris Foote > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From spikee at oatlandspark.org.uk Thu May 25 08:47:12 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Thu, 25 May 2006 14:47:12 +0100 Subject: [AccessD] Record number in query In-Reply-To: Message-ID: <200605251347.k4PDkxS10697@databaseadvisors.com> Cheers Matt! That's not quite what I'm after sadly. I'm using Access to write SQL queries to be used in PHP. I'm sure I saw somewhere/sometime a bit of SQL using COUNT that can do this. I could use the SQL query to populate a temporary table and then use the row numbers, but I'm trying to avoid this if poss. I found this on Tek-Tips: ---------------------------------- -Assume the primary key is a composite of Col1 and Col2. Select RowNum=(Select Count(*) From TableName Where Col1<=t1.Col1 And Col2 <=t1.Col2) Col1, Col2, Col3, Col4 >From TableName t1 Order By Col1, Col2 ---------------------------------- But could not get it to work. Thanks for trying to help! Regards Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: 25 May 2006 14:23 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Record number in query Chris, I sent you a sample db offline that shows what you need. Its a simple 2 line function...but you have to reset it each time you use it. Also, this works best with MAKE,APPEND,UPDATE type queries...if you display a query using this function...the numbers will change as you scroll. Let me know if you don't get the offline sample. Thanks, Mark A. Matte >From: "Chris Foote (Spike)" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] Record number in query >Date: Thu, 25 May 2006 08:29:57 +0100 > >Good day! > >Dumb question here. > >I've got a SELECT query and wish to add a calculated field with row number. >The number needs to start at 1, for the first record, and increment to >n for record n. I'm sure I've seen a post here recently about this but >I cannot find it in the archives. > >TIA! >Chris Foote From spikee at oatlandspark.org.uk Thu May 25 09:00:01 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Thu, 25 May 2006 15:00:01 +0100 Subject: [AccessD] Record number in query In-Reply-To: <200605251347.k4PDkxS10697@databaseadvisors.com> Message-ID: <200605251400.k4PE01S14218@databaseadvisors.com> Urm. Sort of got this to work for a simple SELECT query based upon one table. SELECT (SELECT COUNT (*) FROM tblClubs WHERE fldClubCode<=t1.fldClubCode) AS RowNum, fldClubCode FROM tblClubs t1; Gives me what I want, a calculated, incremental 'RowNum' field with the fldClubCode. I wonder if I should mosey over to the SQL list before the Mods notice me ;-) Regards Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote (Spike) Sent: 25 May 2006 14:47 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Record number in query Cheers Matt! That's not quite what I'm after sadly. I'm using Access to write SQL queries to be used in PHP. I'm sure I saw somewhere/sometime a bit of SQL using COUNT that can do this. I could use the SQL query to populate a temporary table and then use the row numbers, but I'm trying to avoid this if poss. I found this on Tek-Tips: ---------------------------------- -Assume the primary key is a composite of Col1 and Col2. Select RowNum=(Select Count(*) From TableName Where Col1<=t1.Col1 And Col2 <=t1.Col2) Col1, Col2, Col3, Col4 >From TableName t1 Order By Col1, Col2 ---------------------------------- But could not get it to work. Thanks for trying to help! Regards Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: 25 May 2006 14:23 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Record number in query Chris, I sent you a sample db offline that shows what you need. Its a simple 2 line function...but you have to reset it each time you use it. Also, this works best with MAKE,APPEND,UPDATE type queries...if you display a query using this function...the numbers will change as you scroll. Let me know if you don't get the offline sample. Thanks, Mark A. Matte >From: "Chris Foote (Spike)" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] Record number in query >Date: Thu, 25 May 2006 08:29:57 +0100 > >Good day! > >Dumb question here. > >I've got a SELECT query and wish to add a calculated field with row number. >The number needs to start at 1, for the first record, and increment to >n for record n. I'm sure I've seen a post here recently about this but >I cannot find it in the archives. > >TIA! >Chris Foote -- 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 May 25 09:03:04 2006 From: max at sherman.org.uk (Max Home) Date: Thu, 25 May 2006 15:03:04 +0100 Subject: [AccessD] Record number in query In-Reply-To: AAAAAFWZt4UlhGRNs4nf35oT6aSEkiQA Message-ID: <000501c68003$f41fa690$e26b1152@Max> Mark, can you post this to the list please. Especially if it is only a 2 line function. I was also waiting for somebody to reply to Chris. Regards Max Ps. Although this has come from my home email address, please reply to my work Email address (max.sherman at mga-charity.org) as I will still be picking up my email -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: 25 May 2006 14:23 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Record number in query Chris, I sent you a sample db offline that shows what you need. Its a simple 2 line function...but you have to reset it each time you use it. Also, this works best with MAKE,APPEND,UPDATE type queries...if you display a query using this function...the numbers will change as you scroll. Let me know if you don't get the offline sample. Thanks, Mark A. Matte >From: "Chris Foote (Spike)" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] Record number in query >Date: Thu, 25 May 2006 08:29:57 +0100 > >Good day! > >Dumb question here. > >I've got a SELECT query and wish to add a calculated field with row number. >The number needs to start at 1, for the first record, and increment to n >for >record n. I'm sure I've seen a post here recently about this but I cannot >find it in the archives. > >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 Gustav at cactus.dk Thu May 25 10:03:21 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 25 May 2006 17:03:21 +0200 Subject: [AccessD] Record number in query Message-ID: Hi Chris This is the function we use. Note it allows for browsing and is very fast. For large recordsets you should run a reset afterwards to kill the collection and free memory. Public Function RowCounter( _ ByVal strKey As String, _ ByVal booReset As Boolean) _ As Long ' Builds consecutive RowIDs in select, append or create query ' with the possibility of automatic reset. ' ' Usage (typical select query): ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable ' WHERE (RowCounter(CStr([ID]),False) <> RowCounter("",True)); ' ' The Where statement resets the counter when the query is run ' and is needed for browsing a select query. ' ' Usage (typical append query, manual reset): ' 1. Reset counter manually: ' Call RowCounter(vbNullString, False) ' 2. Run query: ' INSERT INTO tblTemp ( RowID ) ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable; ' ' Usage (typical append query, automatic reset): ' INSERT INTO tblTemp ( RowID ) ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable ' WHERE (RowCounter("",True)=0); ' ' 2002-04-13. Cactus Data ApS. CPH ' 2002-09-09. Str() sometimes fails. Replaced with CStr(). ' 2005-10-21. Str(col.Count + 1) reduced to col.Count + 1. Static col As New Collection On Error GoTo Err_RowCounter If booReset = True Then Set col = Nothing Else col.Add col.Count + 1, strKey End If RowCounter = col(strKey) Exit_RowCounter: Exit Function Err_RowCounter: Select Case Err Case 457 ' Key is present. Resume Next Case Else ' Some other error. Resume Exit_RowCounter End Select End Function /gustav >>> spikee at oatlandspark.org.uk 25-05-2006 09:29 >>> Good day! Dumb question here. I've got a SELECT query and wish to add a calculated field with row number. The number needs to start at 1, for the first record, and increment to n for record n. I'm sure I've seen a post here recently about this but I cannot find it in the archives. TIA! Chris Foote From carbonnb at gmail.com Thu May 25 10:14:18 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 25 May 2006 11:14:18 -0400 Subject: [AccessD] Creating Filter Form for Report Message-ID: I need some help (with Access this time :) because my brain isnt' working well today and I haven't really done any dev in Access for far too long. Here is what I am trying to do: I need to generate a report that will shom me what courses individuals have had. I need to be able to select one or a varyiong number of participants and then have it show me what courses they have had. What I was thinking was have a form that lists the individuals in a multi-select listbox, and then use that as a parameter for the query the report is based on, but I'm having a serious mind gap as to how to get the info from the lsit box to the query. HELP!!! Please??!?! -- 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 spikee at oatlandspark.org.uk Thu May 25 10:27:57 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Thu, 25 May 2006 16:27:57 +0100 Subject: [AccessD] Record number in query In-Reply-To: Message-ID: <200605251527.k4PFRgS06571@databaseadvisors.com> Cheers Gustav! I'm really looking for a SQL solution for this. I need to drop the SQL string into a PHP generated webpage. Thanks anyway! Regards Spike F -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 25 May 2006 16:03 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Record number in query Hi Chris This is the function we use. Note it allows for browsing and is very fast. For large recordsets you should run a reset afterwards to kill the collection and free memory. Public Function RowCounter( _ ByVal strKey As String, _ ByVal booReset As Boolean) _ As Long ' Builds consecutive RowIDs in select, append or create query ' with the possibility of automatic reset. ' ' Usage (typical select query): ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable ' WHERE (RowCounter(CStr([ID]),False) <> RowCounter("",True)); ' ' The Where statement resets the counter when the query is run ' and is needed for browsing a select query. ' ' Usage (typical append query, manual reset): ' 1. Reset counter manually: ' Call RowCounter(vbNullString, False) ' 2. Run query: ' INSERT INTO tblTemp ( RowID ) ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable; ' ' Usage (typical append query, automatic reset): ' INSERT INTO tblTemp ( RowID ) ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable ' WHERE (RowCounter("",True)=0); ' ' 2002-04-13. Cactus Data ApS. CPH ' 2002-09-09. Str() sometimes fails. Replaced with CStr(). ' 2005-10-21. Str(col.Count + 1) reduced to col.Count + 1. Static col As New Collection On Error GoTo Err_RowCounter If booReset = True Then Set col = Nothing Else col.Add col.Count + 1, strKey End If RowCounter = col(strKey) Exit_RowCounter: Exit Function Err_RowCounter: Select Case Err Case 457 ' Key is present. Resume Next Case Else ' Some other error. Resume Exit_RowCounter End Select End Function /gustav >>> spikee at oatlandspark.org.uk 25-05-2006 09:29 >>> Good day! Dumb question here. I've got a SELECT query and wish to add a calculated field with row number. The number needs to start at 1, for the first record, and increment to n for record n. I'm sure I've seen a post here recently about this but I cannot find it in the archives. TIA! Chris Foote From rusty.hammond at cpiqpc.com Thu May 25 10:33:04 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Thu, 25 May 2006 10:33:04 -0500 Subject: [AccessD] Creating Filter Form for Report Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8788@cpixchng-1.cpiqpc.net> Hi Bryan, What I've done with this sort of thing in the past is to loop through each selected item in the list box and set a hidden text field (Me.BrokerDealer)to the value of the selected item, then run an append query (qryBrokerPlans) to a temp table. In the query I set the criteria to the hidden text field on the form. The report is based on the temp table that query appends to. You have to be sure to clear the table before starting the procedure. The code is in the on-click property of a command buton. The code to loop through the listbox is as follows: For Each varItem In Me.BrokerFirmList.ItemsSelected Me.BrokerDealer = Me.BrokerFirmList.ItemData(varItem) DoCmd.SetWarnings False DoCmd.OpenQuery "qryBrokerPlans", acViewNormal DoCmd.SetWarnings True Next varItem HTH Rusty -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at gmail.com] Sent: Thursday, May 25, 2006 10:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] Creating Filter Form for Report I need some help (with Access this time :) because my brain isnt' working well today and I haven't really done any dev in Access for far too long. Here is what I am trying to do: I need to generate a report that will shom me what courses individuals have had. I need to be able to select one or a varyiong number of participants and then have it show me what courses they have had. What I was thinking was have a form that lists the individuals in a multi-select listbox, and then use that as a parameter for the query the report is based on, but I'm having a serious mind gap as to how to get the info from the lsit box to the query. HELP!!! Please??!?! -- 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 ********************************************************************** 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 Donald.A.McGillivray at sprint.com Thu May 25 10:38:08 2006 From: Donald.A.McGillivray at sprint.com (Mcgillivray, Don [IT]) Date: Thu, 25 May 2006 10:38:08 -0500 Subject: [AccessD] Creating Filter Form for Report Message-ID: Bryan, You have to loop thru the items selected in the list box to build the SQL. This ought to get your synapses firing (shooting from the hip and a sometimes faulty memory of the exact property names): Dim varItem as Variant, strSQL as String For each varItem in Me!lstStudents.ItemsSelected strSQL = strSQL & "StudentID = " & Me!lstStudents.ItemData(varItem) & " OR " Next . . . Then trim and pretty up the SQL and pass it to the report, or whatever. Hope this helps . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, May 25, 2006 8:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] Creating Filter Form for Report I need some help (with Access this time :) because my brain isnt' working well today and I haven't really done any dev in Access for far too long. Here is what I am trying to do: I need to generate a report that will shom me what courses individuals have had. I need to be able to select one or a varyiong number of participants and then have it show me what courses they have had. What I was thinking was have a form that lists the individuals in a multi-select listbox, and then use that as a parameter for the query the report is based on, but I'm having a serious mind gap as to how to get the info from the lsit box to the query. HELP!!! Please??!?! -- 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 Thu May 25 10:52:18 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 25 May 2006 08:52:18 -0700 Subject: [AccessD] Creating Filter Form for Report In-Reply-To: References: Message-ID: <4475D2B2.1070901@san.rr.com> Bryan: I use a multi-select list box of equipment in this snip in the open event of the report to create a filter which will display selected equipment in a report and set the filter this way: If Forms!frmMaintenanceSchedule!fraEquipment = 2 Then Me.Filter = "" For Each varItem In Forms!frmMaintenanceSchedule!lstEquipmentRatings.ItemsSelected If Me.Filter <> "" Then Me.Filter = Me.Filter & " OR " Me.Filter = Me.Filter & "fldEquipmentID = " & Forms!frmMaintenanceSchedule!lstEquipmentRatings.Column(0, varItem) Next varItem Me.FilterOn = True Else Me.Filter = "" Me.FilterOn = False End If where Forms!frmMaintenanceSchedule!fraEquipment is an option frame which asks All Equipment (1) or Selected Equipment(2) and column(0) of Forms!frmMaintenanceSchedule!lstEquipmentRatings, the multi-select list box, has the Autonumber ID of the equipment record. HTH Rocky Bryan Carbonnell wrote: > I need some help (with Access this time :) because my brain isnt' > working well today and I haven't really done any dev in Access for far > too long. > > Here is what I am trying to do: I need to generate a report that will > shom me what courses individuals have had. I need to be able to select > one or a varyiong number of participants and then have it show me what > courses they have had. > > What I was thinking was have a form that lists the individuals in a > multi-select listbox, and then use that as a parameter for the query > the report is based on, but I'm having a serious mind gap as to how to > get the info from the lsit box to the query. > > HELP!!! Please??!?! > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From markamatte at hotmail.com Thu May 25 10:56:00 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 25 May 2006 15:56:00 +0000 Subject: [AccessD] Record number in query In-Reply-To: <000501c68003$f41fa690$e26b1152@Max> Message-ID: Max, Below is the condensed version of what the sample showed. Hope it helps. Mark A. Matte IN QUERY as Field where counting Empid or some field ***************************** Countfld: MyAutoCtr([Empid]) ***************************** BEHIND FORM or somewhere to be called EVERYTIME before running query with this function ***************************** lngTableCounter = 1 ***************************** IN A MODULE ***************************** Option Compare Database Option Explicit Global lngTableCounter As Long Function MyAutoCtr(prmAny) 'Trick is to pass a field from the input table(s) so that function called for each record 'otherwise Access thinks that the function will always return the same value and 'only calls it once, and every output record gets the same value MyAutoCtr = lngTableCounter lngTableCounter = lngTableCounter + 1 End Function **************************************** >From: "Max Home" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Record number in query >Date: Thu, 25 May 2006 15:03:04 +0100 > >Mark, can you post this to the list please. Especially if it is only a 2 >line function. I was also waiting for somebody to reply to Chris. > >Regards > >Max > >Ps. Although this has come from my home email address, please reply to my >work Email address (max.sherman at mga-charity.org) as I will still be picking >up my email > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: 25 May 2006 14:23 >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Record number in query > >Chris, > >I sent you a sample db offline that shows what you need. Its a simple 2 >line function...but you have to reset it each time you use it. Also, this >works best with MAKE,APPEND,UPDATE type queries...if you display a query >using this function...the numbers will change as you scroll. > >Let me know if you don't get the offline sample. > >Thanks, > >Mark A. Matte > > > >From: "Chris Foote (Spike)" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: [AccessD] Record number in query > >Date: Thu, 25 May 2006 08:29:57 +0100 > > > >Good day! > > > >Dumb question here. > > > >I've got a SELECT query and wish to add a calculated field with row >number. > >The number needs to start at 1, for the first record, and increment to n > >for > >record n. I'm sure I've seen a post here recently about this but I cannot > >find it in the archives. > > > >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 Thu May 25 11:00:29 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 25 May 2006 16:00:29 +0000 Subject: [AccessD] Creating Filter Form for Report In-Reply-To: Message-ID: Bryan, Below is code I use to open a report filtered by a multi-select list box. Good Luck, Mark A. Matte P.S...Don't forget to tweak the LEN function to trim up your filter. **************************************** Dim frm As Form, ctl As Control Dim varItem As Variant Dim strSQL As String Set frm = Me Set ctl = frm!lstBusType strSQL = "[BusTypeID]=" For Each varItem In ctl.ItemsSelected strSQL = strSQL & ctl.ItemData(varItem) & " OR [BusTypeID]=" Next varItem strSQL = Left$(strSQL, Len(strSQL) - 16) DoCmd.OpenReport "rptBusinessType", acViewPreview, , strSQL ******************************************** >From: "Bryan Carbonnell" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] Creating Filter Form for Report >Date: Thu, 25 May 2006 11:14:18 -0400 > >I need some help (with Access this time :) because my brain isnt' >working well today and I haven't really done any dev in Access for far >too long. > >Here is what I am trying to do: I need to generate a report that will >shom me what courses individuals have had. I need to be able to select >one or a varyiong number of participants and then have it show me what >courses they have had. > >What I was thinking was have a form that lists the individuals in a >multi-select listbox, and then use that as a parameter for the query >the report is based on, but I'm having a serious mind gap as to how to >get the info from the lsit box to the query. > >HELP!!! Please??!?! > >-- >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 Thu May 25 11:55:26 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 25 May 2006 18:55:26 +0200 Subject: [AccessD] Record number in query Message-ID: Hi Spike Then you are left with the "Select Count(*) ..." method you wrote about. It does work if you have a unique key (or can construct a unique compound key) but it is very slow for large recordsets. /gustav >>> spikee at oatlandspark.org.uk 25-05-2006 17:27 >>> Cheers Gustav! I'm really looking for a SQL solution for this. I need to drop the SQL string into a PHP generated webpage. Thanks anyway! Regards Spike F From ldoering at symphonyinfo.com Thu May 25 13:25:04 2006 From: ldoering at symphonyinfo.com (Liz Doering) Date: Thu, 25 May 2006 13:25:04 -0500 Subject: [AccessD] Creating Filter Form for Report In-Reply-To: <000001c68016$7e79b8a0$0210a8c0@Symphony.local> Message-ID: <02F5B8F3D893A845A3DF342F14D80F015893@LAKATOS.Symphony.local> If you get too long a string of 'OR' items, Access will complain of the string being more than 2000-some characters. Then you move to an IN string (where lngMyVariable in (1234, 2345, 3456)), because you waste fewer characters on OR that way. However, if that gets too long, a truly mysterious group of overflow errors is generated. Then you have to move to a temp table. The experience that generated this knowledge did not involve users selecting thousands of items from a multi-select listbox directly, but instead a group of criteria working together to produce puzzling results. Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, May 25, 2006 11:16 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Creating Filter Form for Report Bryan, Below is code I use to open a report filtered by a multi-select list box. Good Luck, Mark A. Matte P.S...Don't forget to tweak the LEN function to trim up your filter. **************************************** Dim frm As Form, ctl As Control Dim varItem As Variant Dim strSQL As String Set frm = Me Set ctl = frm!lstBusType strSQL = "[BusTypeID]=" For Each varItem In ctl.ItemsSelected strSQL = strSQL & ctl.ItemData(varItem) & " OR [BusTypeID]=" Next varItem strSQL = Left$(strSQL, Len(strSQL) - 16) DoCmd.OpenReport "rptBusinessType", acViewPreview, , strSQL ******************************************** >From: "Bryan Carbonnell" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] Creating Filter Form for Report >Date: Thu, 25 May 2006 11:14:18 -0400 > >I need some help (with Access this time :) because my brain isnt' >working well today and I haven't really done any dev in Access for far >too long. > >Here is what I am trying to do: I need to generate a report that will >shom me what courses individuals have had. I need to be able to select >one or a varyiong number of participants and then have it show me what >courses they have had. > >What I was thinking was have a form that lists the individuals in a >multi-select listbox, and then use that as a parameter for the query >the report is based on, but I'm having a serious mind gap as to how to >get the info from the lsit box to the query. > >HELP!!! Please??!?! > >-- >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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Thu May 25 16:25:43 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 25 May 2006 17:25:43 -0400 Subject: [AccessD] Creating Filter Form for Report In-Reply-To: References: Message-ID: On 5/25/06, Bryan Carbonnell wrote: > Here is what I am trying to do: I need to generate a report that will > shom me what courses individuals have had. I need to be able to select > one or a varyiong number of participants and then have it show me what > courses they have had. > > What I was thinking was have a form that lists the individuals in a > multi-select listbox, and then use that as a parameter for the query > the report is based on, but I'm having a serious mind gap as to how to > get the info from the lsit box to the query. Here's what I finally did Created a form with the listbox on it and a command button to run the report. In the Click even of the report, this is the code I used: Dim strFilter As String strFilter = "RESOURCE_ID " & InParticipant DoCmd.OpenReport "Resource_Class_List_LOCAL", acViewPreview, , strFilter and the InParticipant function is as follows: Public Function InParticipant() As String Dim frm As Form Dim ctl As Control Dim varItem As Variant Dim strIn As String Set frm = Forms!frmReportSelectParticipant Set ctl = frm!lstParticipants For Each varItem In ctl.ItemsSelected strIn = strIn & """" & ctl.Column(0, varItem) & """, " Next varItem If Right$(strIn, 2) = ", " Then strIn = Left$(strIn, Len(strIn) - 2) strIn = "In (" & strIn & ")" Else strIn = "" End If InParticipant = strIn Set varItem = Nothing Set ctl = Nothing Set frm = Nothing End Function Thanks all for your help. I really need to do more dev work and lett management work :( Thanks again. -- 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 bheid at appdevgrp.com Fri May 26 09:16:16 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 26 May 2006 10:16:16 -0400 Subject: [AccessD] Byref and recordset field question Message-ID: <916187228923D311A6FE00A0CC3FAA30D3546F@ADGSERVER> Hi all, I am passing a recordset to a sub byref. In that sub, I am calling a method in a class and passing several of the fields in the recordset as byref to be like output parameters. The trouble is that when the method exits, it is not setting the value in the byref fields. If you look at the variables in the method definition right before the method exits, it looks like it is set. But when you look at the value in the calling sub, it's value has not changed. A short example: set rs=db.openrecordset(strSQL,dbopendynaset) Somefunction rs 'call the first function, passing recordset byref ... public Somefunction(byref rs as recordset) with rs someclass.somemethod !a,!b,!c,!x,!y,!z end with end sub 'x,y,z are the byref "return" variables public sub Somemethod(byval a as double,byval b as double,byval c as double, _ byref x as double,byref y as double,byref z as double) 'some calcs... x=a+1 y=a*b z=2*a exit sub If I pass local variables for x,y, and z, everything works properly. Anyone know if there is a way to make this work? There are 5 return parameters and I'd hate to have to make up 5 variables each time I have to call this method. Thanks, Bobby From Gustav at cactus.dk Fri May 26 09:33:42 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 26 May 2006 16:33:42 +0200 Subject: [AccessD] Byref and recordset field question Message-ID: Hi Bobby You need to Edit and (for ADO) Update the recordset: With rs .Edit someclass.somemethod !a,!b,!c,!x,!y,!z .Update End With /gustav >>> bheid at appdevgrp.com 26-05-2006 16:16:16 >>> Hi all, I am passing a recordset to a sub byref. In that sub, I am calling a method in a class and passing several of the fields in the recordset as byref to be like output parameters. The trouble is that when the method exits, it is not setting the value in the byref fields. If you look at the variables in the method definition right before the method exits, it looks like it is set. But when you look at the value in the calling sub, it's value has not changed. A short example: set rs=db.openrecordset(strSQL,dbopendynaset) Somefunction rs 'call the first function, passing recordset byref ... public Somefunction(byref rs as recordset) with rs someclass.somemethod !a,!b,!c,!x,!y,!z end with end sub 'x,y,z are the byref "return" variables public sub Somemethod(byval a as double,byval b as double,byval c as double, _ byref x as double,byref y as double,byref z as double) 'some calcs... x=a+1 y=a*b z=2*a exit sub If I pass local variables for x,y, and z, everything works properly. Anyone know if there is a way to make this work? There are 5 return parameters and I'd hate to have to make up 5 variables each time I have to call this method. Thanks, Bobby From bheid at appdevgrp.com Fri May 26 10:06:02 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 26 May 2006 11:06:02 -0400 Subject: [AccessD] Byref and recordset field question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DC16DA@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35472@ADGSERVER> Sorry, forgot to mention that I am using DAO and there is an .edit and .update in there. so we have: public Somefunction(byref rs as recordset) with rs .edit someclass.somemethod !a,!b,!c,!x,!y,!z .update end with end sub Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 26, 2006 10:34 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Byref and recordset field question Hi Bobby You need to Edit and (for ADO) Update the recordset: With rs .Edit someclass.somemethod !a,!b,!c,!x,!y,!z .Update End With /gustav >>> bheid at appdevgrp.com 26-05-2006 16:16:16 >>> Hi all, I am passing a recordset to a sub byref. In that sub, I am calling a method in a class and passing several of the fields in the recordset as byref to be like output parameters. The trouble is that when the method exits, it is not setting the value in the byref fields. If you look at the variables in the method definition right before the method exits, it looks like it is set. But when you look at the value in the calling sub, it's value has not changed. A short example: set rs=db.openrecordset(strSQL,dbopendynaset) Somefunction rs 'call the first function, passing recordset byref ... public Somefunction(byref rs as recordset) with rs someclass.somemethod !a,!b,!c,!x,!y,!z end with end sub 'x,y,z are the byref "return" variables public sub Somemethod(byval a as double,byval b as double,byval c as double, _ byref x as double,byref y as double,byref z as double) 'some calcs... x=a+1 y=a*b z=2*a exit sub If I pass local variables for x,y, and z, everything works properly. Anyone know if there is a way to make this work? There are 5 return parameters and I'd hate to have to make up 5 variables each time I have to call this method. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri May 26 10:19:53 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 26 May 2006 17:19:53 +0200 Subject: [AccessD] Byref and recordset field question Message-ID: Hi Bobby Missed this: public sub Somemethod(byval a as double,byval b as double,byval c as double) You are passing the Values of the fields, not the Field objects themselves. /gustav >>> bheid at appdevgrp.com 26-05-2006 17:06:02 >>> Sorry, forgot to mention that I am using DAO and there is an .edit and .update in there. so we have: public Somefunction(byref rs as recordset) with rs .edit someclass.somemethod !a,!b,!c,!x,!y,!z .update end with end sub Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 26, 2006 10:34 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Byref and recordset field question Hi Bobby You need to Edit and (for ADO) Update the recordset: With rs .Edit someclass.somemethod !a,!b,!c,!x,!y,!z .Update End With /gustav >>> bheid at appdevgrp.com 26-05-2006 16:16:16 >>> Hi all, I am passing a recordset to a sub byref. In that sub, I am calling a method in a class and passing several of the fields in the recordset as byref to be like output parameters. The trouble is that when the method exits, it is not setting the value in the byref fields. If you look at the variables in the method definition right before the method exits, it looks like it is set. But when you look at the value in the calling sub, it's value has not changed. A short example: set rs=db.openrecordset(strSQL,dbopendynaset) Somefunction rs 'call the first function, passing recordset byref ... public Somefunction(byref rs as recordset) with rs someclass.somemethod !a,!b,!c,!x,!y,!z end with end sub 'x,y,z are the byref "return" variables public sub Somemethod(byval a as double,byval b as double,byval c as double, _ byref x as double,byref y as double,byref z as double) 'some calcs... x=a+1 y=a*b z=2*a exit sub If I pass local variables for x,y, and z, everything works properly. Anyone know if there is a way to make this work? There are 5 return parameters and I'd hate to have to make up 5 variables each time I have to call this method. Thanks, Bobby From john at winhaven.net Fri May 26 11:26:28 2006 From: john at winhaven.net (John Bartow) Date: Fri, 26 May 2006 11:26:28 -0500 Subject: [AccessD] Toolbar staying put on one line Message-ID: <021a01c680e1$24d825e0$6502a8c0@ScuzzPaq> IIRC there was some way to prevent the toolbars from docking on more than one line. I can't find it by searching the archives, anyone know? TIA John B From prodevmg at yahoo.com Fri May 26 12:47:02 2006 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 26 May 2006 10:47:02 -0700 (PDT) Subject: [AccessD] Unorthodox Page Break Message-ID: <20060526174702.34833.qmail@web33114.mail.mud.yahoo.com> Is there a way to programatically start a new page within the detail format or detail print section if a certain condition was met with criteria in the records of a report? May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get Yahoo! Messenger with Voice From prodevmg at yahoo.com Fri May 26 12:56:22 2006 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 26 May 2006 10:56:22 -0700 (PDT) Subject: [AccessD] Unorthodox Page Break Message-ID: <20060526175622.82426.qmail@web33115.mail.mud.yahoo.com> Is there a way to programatically start a new page within the detail format or detail print section if a certain condition was met with criteria in the records of a report? May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. From jimdettman at earthlink.net Fri May 26 13:43:20 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 26 May 2006 14:43:20 -0400 Subject: [AccessD] Unorthodox Page Break In-Reply-To: <20060526175622.82426.qmail@web33115.mail.mud.yahoo.com> Message-ID: Yes. Include a page break control in the detail section. In the OnFormat event, set the control visible or hide it based on the condition. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Friday, May 26, 2006 1:56 PM To: AccessD solving' Subject: [AccessD] Unorthodox Page Break Is there a way to programatically start a new page within the detail format or detail print section if a certain condition was met with criteria in the records of a report? May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelbroadband.in Fri May 26 14:26:29 2006 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Sat, 27 May 2006 00:56:29 +0530 Subject: [AccessD] Unorthodox Page Break References: <20060526175622.82426.qmail@web33115.mail.mud.yahoo.com> Message-ID: <007e01c680fa$7639b2f0$450265cb@pcadt> Lonnie, Sample code in Detail section's format event is given below: If << Criteria Expression >> Then Me.Detail.ForceNewPage = 2 Else Me.Detail.ForceNewPage = 0 ' (A) End If Choice of values for ForceNewPage property is as follows: 0 - No forced page break 1 - Before Section 2 - After Section 3 - Before & After Section Note - Inclusion of statement (A) in Else clause is necessary, otherwise the page break, once invoked, will continue to take place indiscriminately. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Lonnie Johnson To: AccessD solving' Sent: Friday, May 26, 2006 23:26 Subject: [AccessD] Unorthodox Page Break Is there a way to programatically start a new page within the detail format or detail print section if a certain condition was met with criteria in the records of a report? May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us From lmrazek at lcm-res.com Fri May 26 14:51:09 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Fri, 26 May 2006 14:51:09 -0500 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel (SOLVED) In-Reply-To: <0c0f01c67f4d$ee9ddbd0$026fa8c0@stormy> Message-ID: <02dd01c680fd$beff9560$026fa8c0@stormy> Hi Folks: Well, I was looking in the wrong place for this error. Since these are fairly complex worksheets, with a lot of formulas using named ranges, I SHOULD have looked at Excel to make sure that what I was trying to write to the cell was valid. Of course, it wasn't, as some of my grand total formulas exceeded the 1024 character limit of a formula in excel. This caused the generic "out of memory" error. I was able to fix the error by shortening my naming convention, and everything is building correctly. Thanks to everyone who responded, you helped me eliminate some of the other possibilities for this error. Hope everyone has a safe weekend! 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 Lawrence Mrazek Sent: Wednesday, May 24, 2006 11:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel I'm using a lot of named ranges, since these data groupings change from month to month. I wonder if this could have something to do with the issue. I'll check Excel help and report back to the list ... Thanks! Larry -----Original Message----- I don't think that would help. If it runs on one machine and not the other it may truly be out of memory although this seems strange. I have sheets that exceed 8 mg. Of course not all workbooks are equal in the kind of resources they use. Check out Microsoft Excel specifications in the Excel help and see if any of those limits apply to your situation. Depending on the situation I have cured this problem in the past by changing lookup formulas to values, reducing pivot tables, etc to shrink the worksheet. Good luck Jim Hale -----Original Message----- Hi Jim: No, I don't think so. This has happened on the first run after a reboot, and I haven't been able to identify any open processes using task manager even after a run completed. Would saving (before the last worksheet generated), closing the instance of excel, then re-opening excel possibly solve this? Like I said, these are pretty large files. Thanks. 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 Hale, Jim Sent: Wednesday, May 24, 2006 8:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel Is it possible old instances of Excel are still in memory? Excel loves to hang around even when you think you have properly closed it from previous runs. Use task manager to see if this is the case. If it is there are a number of voodoo rituals availasble to kill the zombies. Jim Hale -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Tuesday, May 23, 2006 9:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 *********************************************************************** 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 *********************************************************************** 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 cfoust at infostatsystems.com Fri May 26 15:18:39 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 26 May 2006 13:18:39 -0700 Subject: [AccessD] Toolbar staying put on one line In-Reply-To: <021a01c680e1$24d825e0$6502a8c0@ScuzzPaq> Message-ID: Have you set the toolbar properties to AllowMoving = False? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, May 26, 2006 9:26 AM To: _DBA-Access Subject: [AccessD] Toolbar staying put on one line IIRC there was some way to prevent the toolbars from docking on more than one line. I can't find it by searching the archives, anyone know? TIA John B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri May 26 15:50:17 2006 From: john at winhaven.net (John Bartow) Date: Fri, 26 May 2006 15:50:17 -0500 Subject: [AccessD] Toolbar staying put on one line In-Reply-To: Message-ID: <031f01c68105$ff3e9970$6502a8c0@ScuzzPaq> Yes, but here's what happens. If I have a toolbar that's designated for a form and I manually turn another one on in design mode that is in the same location as the designated toolbar (far left), when I display the form it makes the forms drop down to a second row. I though I saw something - a switch or a technique which would only allow one row of toolbars which, in this case, would force the designated form toolbar to go to the right of the existing one. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Have you set the toolbar properties to AllowMoving = False? Charlotte Foust From cfoust at infostatsystems.com Fri May 26 16:23:19 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 26 May 2006 14:23:19 -0700 Subject: [AccessD] Toolbar staying put on one line In-Reply-To: <031f01c68105$ff3e9970$6502a8c0@ScuzzPaq> Message-ID: Ah, then I think you're on a fool's errand, but I haven't looked into it since Access XP, when we discovered that we didn't have the control over toolbars we thought we should have. Sorry. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, May 26, 2006 1:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Toolbar staying put on one line Yes, but here's what happens. If I have a toolbar that's designated for a form and I manually turn another one on in design mode that is in the same location as the designated toolbar (far left), when I display the form it makes the forms drop down to a second row. I though I saw something - a switch or a technique which would only allow one row of toolbars which, in this case, would force the designated form toolbar to go to the right of the existing one. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Have you set the toolbar properties to AllowMoving = False? Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri May 26 17:43:22 2006 From: john at winhaven.net (John Bartow) Date: Fri, 26 May 2006 17:43:22 -0500 Subject: [AccessD] Toolbar staying put on one line In-Reply-To: Message-ID: <037a01c68115$cbe756b0$6502a8c0@ScuzzPaq> I don't see any method for exact placement of toolbars. I suppose I could develop a module function that goes through all toolbars and turns them off except the one I want and have the code run at Form|Open but that seems a bit extreme. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Ah, then I think you're on a fool's errand, but I haven't looked into it since Access XP, when we discovered that we didn't have the control over toolbars we thought we should have. Sorry. From cfoust at infostatsystems.com Fri May 26 18:41:21 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 26 May 2006 16:41:21 -0700 Subject: [AccessD] Toolbar staying put on one line In-Reply-To: <037a01c68115$cbe756b0$6502a8c0@ScuzzPaq> Message-ID: Actually, that's our main solution. We have a default menubar with limited choices and we show and hide custom menubars/toolbars depending on the form or report being displayed. It isn't foolproof, but it's the closest we could come. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, May 26, 2006 3:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Toolbar staying put on one line I don't see any method for exact placement of toolbars. I suppose I could develop a module function that goes through all toolbars and turns them off except the one I want and have the code run at Form|Open but that seems a bit extreme. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Ah, then I think you're on a fool's errand, but I haven't looked into it since Access XP, when we discovered that we didn't have the control over toolbars we thought we should have. Sorry. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Sat May 27 10:41:11 2006 From: john at winhaven.net (John Bartow) Date: Sat, 27 May 2006 10:41:11 -0500 Subject: [AccessD] Toolbar staying put on one line In-Reply-To: Message-ID: <06a901c681a3$fc05d1d0$6502a8c0@ScuzzPaq> I'd appreciate anything you can post. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Actually, that's our main solution. We have a default menubar with limited choices and we show and hide custom menubars/toolbars depending on the form or report being displayed. It isn't foolproof, but it's the closest we could come. From mwp.reid at qub.ac.uk Sun May 28 13:14:08 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 28 May 2006 19:14:08 +0100 Subject: [AccessD] Access 2007 and ADPs References: <011d01c6688c$3fa5d2e0$dc1565cb@pcadt> Message-ID: ADPs are interesting and important to many of our customers. We are committed to making sure they continue to work. You can download beta 2 today and use the ADP visual designers (Tables, Views, Stored Procedures, and Functions) with SQL Server 2005 objects just as you would have used Access 2003 and SQL Server 2000. The two weaknesses of ADPs that likely won't be fixed because of the underlying architecture include the inability to link to external data sources (without setting up linked servers) and local queries. Combining adhoc heterogeneous data sources is a big part of Access functionality that is used heavily by most customers. The Access team is making a big investment in using the Access Dara Engine as the way to get to external data sources. I expect that to continue in the future. For new SQL Server projects where you are evaluating which platform to start from, we recommend MDBs or ACCDBs with linked tables because they offer more flexibility and that is likely where the Access team will invest the most when building new features. We have also found that applications that are upsized from mdb back-end tables to SQL Server link tables require far less application changes than upsizing to ADPs. The upsizing wizard defaults have been changed from upsizing to ADPs to move the data to SQL Server and replace local tables with link tables. In other words, the upsizing wizard will not default to ADPs. Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From dwaters at usinternet.com Sun May 28 17:49:59 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 28 May 2006 17:49:59 -0500 Subject: [AccessD] Access 2007 and ADPs In-Reply-To: <13573329.1148840381787.JavaMail.root@sniper38> Message-ID: <000601c682a9$0cf36740$0200a8c0@danwaters> Martin, I just wanted to say Thanks for continuing to update everyone with this excellent information! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Sunday, May 28, 2006 1:14 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2007 and ADPs ADPs are interesting and important to many of our customers. We are committed to making sure they continue to work. You can download beta 2 today and use the ADP visual designers (Tables, Views, Stored Procedures, and Functions) with SQL Server 2005 objects just as you would have used Access 2003 and SQL Server 2000. The two weaknesses of ADPs that likely won't be fixed because of the underlying architecture include the inability to link to external data sources (without setting up linked servers) and local queries. Combining adhoc heterogeneous data sources is a big part of Access functionality that is used heavily by most customers. The Access team is making a big investment in using the Access Dara Engine as the way to get to external data sources. I expect that to continue in the future. For new SQL Server projects where you are evaluating which platform to start from, we recommend MDBs or ACCDBs with linked tables because they offer more flexibility and that is likely where the Access team will invest the most when building new features. We have also found that applications that are upsized from mdb back-end tables to SQL Server link tables require far less application changes than upsizing to ADPs. The upsizing wizard defaults have been changed from upsizing to ADPs to move the data to SQL Server and replace local tables with link tables. In other words, the upsizing wizard will not default to ADPs. Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From bchacc at san.rr.com Mon May 29 11:10:17 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 29 May 2006 09:10:17 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] Message-ID: <447B1CE9.70603@san.rr.com> Dear List: Didn't get any response to this on tech. Maybe someone here knows the answer. MTIA Rocky -------- Original Message -------- Subject: [dba-Tech] Printer Tank Counter Date: Fri, 26 May 2006 09:06:54 -0700 From: Rocky Smolin - Beach Access Software Reply-To: Discussion of Hardware and Software issues To: dba-tech Dear List: I got a couple of Canon PIXMA iP1600s free with the purchase of a couple of 19 inch flat screen monitors at Fry's. Of course, the low ink warning comes up when the carts are still about 1/3 full but that's the scam. Give away the razor, sell the blade. Anyway, I refilled the cartridges but the warning still comes up every time I print something. Apparently these printers are "chipped" with some kind of bogus counter rather than actually sensing the ink level. In any event I combed the net looking for info on resetting this counter (without actually having to spend $40-50 on new carts which is what the printer retails for anyway). Does anyone know how or even if this counter can be reset so the low ink nag screen doesn't pop up every time I print something. MTIA, Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From lembit.dbamail at t-online.de Mon May 29 12:40:10 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Mon, 29 May 2006 19:40:10 +0200 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] References: <447B1CE9.70603@san.rr.com> Message-ID: <000401c68346$eefb3df0$1400a8c0@v1000> Rocky, I have the useless info that I did read something detailed how to reset them, but since I dont have such printer, I did not make a note and I do not remember where I saw that. :( Should I find it, I will let you know. Lembit ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Monday, May 29, 2006 6:10 PM Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] > Dear List: > > Didn't get any response to this on tech. Maybe someone here knows the > answer. > > MTIA > > Rocky > > > -------- Original Message -------- > Subject: [dba-Tech] Printer Tank Counter > Date: Fri, 26 May 2006 09:06:54 -0700 > From: Rocky Smolin - Beach Access Software > Reply-To: Discussion of Hardware and Software issues > > To: dba-tech > > > > Dear List: > > I got a couple of Canon PIXMA iP1600s free with the purchase of a couple > of 19 inch flat screen monitors at Fry's. > > Of course, the low ink warning comes up when the carts are still about > 1/3 full but that's the scam. Give away the razor, sell the blade. > > Anyway, I refilled the cartridges but the warning still comes up every > time I print something. Apparently these printers are "chipped" with > some kind of bogus counter rather than actually sensing the ink level. > > In any event I combed the net looking for info on resetting this counter > (without actually having to spend $40-50 on new carts which is what the > printer retails for anyway). > > Does anyone know how or even if this counter can be reset so the low ink > nag screen doesn't pop up every time I print something. > > MTIA, > > Rocky > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > 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 > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.7.3/350 - Release Date: 28.05.2006 > > From lembit.dbamail at t-online.de Mon May 29 13:02:12 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Mon, 29 May 2006 20:02:12 +0200 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] References: <447B1CE9.70603@san.rr.com> <000401c68346$eefb3df0$1400a8c0@v1000> Message-ID: <000801c6834a$032ff150$1400a8c0@v1000> found the article. (German magazin CHIP 01/2006) your printer is not mentioned, but a similar problem with an Epson Stylus C46: this one has a dropcounter which stops printing while there is still 17% ink in it. They found a Chip-Resetter on Ebay which costs about 2 to 3 Euro and works ok to use the remaining ink. Maybe if you search ebay, you might find a similar resetter for your cartridges. Lembit ----- Original Message ----- From: "Lembit Soobik" To: "Access Developers discussion and problem solving" Sent: Monday, May 29, 2006 7:40 PM Subject: Re: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] > Rocky, > I have the useless info that I did read something detailed how to reset > them, but since I dont have such printer, I did not make a note and I do > not > remember where I saw that. :( > Should I find it, I will let you know. > > Lembit > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: "Access Developers discussion and problem solving" > > Sent: Monday, May 29, 2006 6:10 PM > Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] > > >> Dear List: >> >> Didn't get any response to this on tech. Maybe someone here knows the >> answer. >> >> MTIA >> >> Rocky >> >> >> -------- Original Message -------- >> Subject: [dba-Tech] Printer Tank Counter >> Date: Fri, 26 May 2006 09:06:54 -0700 >> From: Rocky Smolin - Beach Access Software >> Reply-To: Discussion of Hardware and Software issues >> >> To: dba-tech >> >> >> >> Dear List: >> >> I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >> of 19 inch flat screen monitors at Fry's. >> >> Of course, the low ink warning comes up when the carts are still about >> 1/3 full but that's the scam. Give away the razor, sell the blade. >> >> Anyway, I refilled the cartridges but the warning still comes up every >> time I print something. Apparently these printers are "chipped" with >> some kind of bogus counter rather than actually sensing the ink level. >> >> In any event I combed the net looking for info on resetting this counter >> (without actually having to spend $40-50 on new carts which is what the >> printer retails for anyway). >> >> Does anyone know how or even if this counter can be reset so the low ink >> nag screen doesn't pop up every time I print something. >> >> MTIA, >> >> Rocky >> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> _______________________________________________ >> dba-Tech mailing list >> dba-Tech at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-tech >> 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 >> >> >> -- >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.1.394 / Virus Database: 268.7.3/350 - Release Date: 28.05.2006 >> >> > > -- > 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.394 / Virus Database: 268.7.3/350 - Release Date: 28.05.2006 > > From bchacc at san.rr.com Mon May 29 13:11:35 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 29 May 2006 11:11:35 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: <000801c6834a$032ff150$1400a8c0@v1000> References: <447B1CE9.70603@san.rr.com> <000401c68346$eefb3df0$1400a8c0@v1000> <000801c6834a$032ff150$1400a8c0@v1000> Message-ID: <447B3957.7050400@san.rr.com> Thanks. I'll take a look. Rocky Lembit Soobik wrote: > found the article. (German magazin CHIP 01/2006) > > your printer is not mentioned, but a similar problem with an Epson Stylus > C46: > this one has a dropcounter which stops printing while there is still 17% ink > in it. > They found a Chip-Resetter on Ebay which costs about 2 to 3 Euro and works > ok to use the remaining ink. > > Maybe if you search ebay, you might find a similar resetter for your > cartridges. > > Lembit > > ----- Original Message ----- > From: "Lembit Soobik" > To: "Access Developers discussion and problem solving" > > Sent: Monday, May 29, 2006 7:40 PM > Subject: Re: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] > > > >> Rocky, >> I have the useless info that I did read something detailed how to reset >> them, but since I dont have such printer, I did not make a note and I do >> not >> remember where I saw that. :( >> Should I find it, I will let you know. >> >> Lembit >> >> ----- Original Message ----- >> From: "Rocky Smolin - Beach Access Software" >> To: "Access Developers discussion and problem solving" >> >> Sent: Monday, May 29, 2006 6:10 PM >> Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] >> >> >> >>> Dear List: >>> >>> Didn't get any response to this on tech. Maybe someone here knows the >>> answer. >>> >>> MTIA >>> >>> Rocky >>> >>> >>> -------- Original Message -------- >>> Subject: [dba-Tech] Printer Tank Counter >>> Date: Fri, 26 May 2006 09:06:54 -0700 >>> From: Rocky Smolin - Beach Access Software >>> Reply-To: Discussion of Hardware and Software issues >>> >>> To: dba-tech >>> >>> >>> >>> Dear List: >>> >>> I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >>> of 19 inch flat screen monitors at Fry's. >>> >>> Of course, the low ink warning comes up when the carts are still about >>> 1/3 full but that's the scam. Give away the razor, sell the blade. >>> >>> Anyway, I refilled the cartridges but the warning still comes up every >>> time I print something. Apparently these printers are "chipped" with >>> some kind of bogus counter rather than actually sensing the ink level. >>> >>> In any event I combed the net looking for info on resetting this counter >>> (without actually having to spend $40-50 on new carts which is what the >>> printer retails for anyway). >>> >>> Does anyone know how or even if this counter can be reset so the low ink >>> nag screen doesn't pop up every time I print something. >>> >>> MTIA, >>> >>> Rocky >>> >>> -- >>> Rocky Smolin >>> Beach Access Software >>> 858-259-4334 >>> www.e-z-mrp.com >>> >>> _______________________________________________ >>> dba-Tech mailing list >>> dba-Tech at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-tech >>> 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 >>> >>> >>> -- >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.1.394 / Virus Database: 268.7.3/350 - Release Date: 28.05.2006 >>> >>> >>> >> -- >> 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.394 / Virus Database: 268.7.3/350 - Release Date: 28.05.2006 >> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From martyconnelly at shaw.ca Mon May 29 16:35:22 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 29 May 2006 14:35:22 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: <447B1CE9.70603@san.rr.com> References: <447B1CE9.70603@san.rr.com> Message-ID: <447B691A.3010003@shaw.ca> Almost all Canons are resettable using a series of buttons presses.. or search the forums here http://www.nifty-stuff.com/forum/viewforum.php?id=4 I found this on this thread: There is more here http://www.fixyourownprinter.com/forums/inkjet/15284 Canon PIXMA iP1500 Waste Ink Counter Reset. Manual for Service mode 1. Turn off the printer. And disconnect the printer cable. 2. Press and hold the POWER button, turn on the printer. 3. The indicator (L.E.D.) should be green. 4. Press and release the RESUME button , the indicator (L.E.D.) should be orange. 5. Press and release the RESUME button again, the indicator (L.E.D.) should be green 6. Release both buttons Rocky Smolin - Beach Access Software wrote: >Dear List: > >Didn't get any response to this on tech. Maybe someone here knows the >answer. > >MTIA > >Rocky > > >-------- Original Message -------- >Subject: [dba-Tech] Printer Tank Counter >Date: Fri, 26 May 2006 09:06:54 -0700 >From: Rocky Smolin - Beach Access Software >Reply-To: Discussion of Hardware and Software issues > >To: dba-tech > > > >Dear List: > >I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >of 19 inch flat screen monitors at Fry's. > >Of course, the low ink warning comes up when the carts are still about >1/3 full but that's the scam. Give away the razor, sell the blade. > >Anyway, I refilled the cartridges but the warning still comes up every >time I print something. Apparently these printers are "chipped" with >some kind of bogus counter rather than actually sensing the ink level. > >In any event I combed the net looking for info on resetting this counter >(without actually having to spend $40-50 on new carts which is what the >printer retails for anyway). > >Does anyone know how or even if this counter can be reset so the low ink >nag screen doesn't pop up every time I print something. > >MTIA, > >Rocky > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Mon May 29 18:07:51 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 29 May 2006 16:07:51 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: <447B691A.3010003@shaw.ca> References: <447B1CE9.70603@san.rr.com> <447B691A.3010003@shaw.ca> Message-ID: <447B7EC7.9090707@san.rr.com> Marty: I saw that procedure for the 1500. Apparently they 'fixed' it for the 1600. So it don't work no more. :-( I'll see what the fora have to say. Thanks and regards, Rocky MartyConnelly wrote: > Almost all Canons are resettable using a series of buttons presses.. > or search the forums here > http://www.nifty-stuff.com/forum/viewforum.php?id=4 > > > I found this on this thread: There is more here > > http://www.fixyourownprinter.com/forums/inkjet/15284 > > > Canon PIXMA iP1500 > Waste Ink Counter Reset. Manual for Service mode > > 1. Turn off the printer. And disconnect the printer cable. > 2. Press and hold the POWER button, turn on the printer. > 3. The indicator (L.E.D.) should be green. > 4. Press and release the RESUME button , the indicator (L.E.D.) > should be orange. > 5. Press and release the RESUME button again, the indicator > (L.E.D.) should be green > 6. Release both buttons > > > > Rocky Smolin - Beach Access Software wrote: > > >> Dear List: >> >> Didn't get any response to this on tech. Maybe someone here knows the >> answer. >> >> MTIA >> >> Rocky >> >> >> -------- Original Message -------- >> Subject: [dba-Tech] Printer Tank Counter >> Date: Fri, 26 May 2006 09:06:54 -0700 >> From: Rocky Smolin - Beach Access Software >> Reply-To: Discussion of Hardware and Software issues >> >> To: dba-tech >> >> >> >> Dear List: >> >> I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >> of 19 inch flat screen monitors at Fry's. >> >> Of course, the low ink warning comes up when the carts are still about >> 1/3 full but that's the scam. Give away the razor, sell the blade. >> >> Anyway, I refilled the cartridges but the warning still comes up every >> time I print something. Apparently these printers are "chipped" with >> some kind of bogus counter rather than actually sensing the ink level. >> >> In any event I combed the net looking for info on resetting this counter >> (without actually having to spend $40-50 on new carts which is what the >> printer retails for anyway). >> >> Does anyone know how or even if this counter can be reset so the low ink >> nag screen doesn't pop up every time I print something. >> >> MTIA, >> >> Rocky >> >> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From martyconnelly at shaw.ca Mon May 29 18:40:29 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 29 May 2006 16:40:29 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: <447B7EC7.9090707@san.rr.com> References: <447B1CE9.70603@san.rr.com> <447B691A.3010003@shaw.ca> <447B7EC7.9090707@san.rr.com> Message-ID: <447B866D.2080507@shaw.ca> You may have to spend $10.00 To reset waste ink pads counters you have to use iP1600 Service Tool http://www.2manuals.com/product_info.php?products_id=680 Rocky Smolin - Beach Access Software wrote: >I saw that procedure for the 1500. Apparently they 'fixed' it for the >1600. So it don't work no more. :-( > >I'll see what the fora have to say. > >Thanks and regards, > >Rocky > > >MartyConnelly wrote: > > >> Almost all Canons are resettable using a series of buttons presses.. >>or search the forums here >>http://www.nifty-stuff.com/forum/viewforum.php?id=4 >> >> >>I found this on this thread: There is more here >> >>http://www.fixyourownprinter.com/forums/inkjet/15284 >> >> >> Canon PIXMA iP1500 >> Waste Ink Counter Reset. Manual for Service mode >> >> 1. Turn off the printer. And disconnect the printer cable. >> 2. Press and hold the POWER button, turn on the printer. >> 3. The indicator (L.E.D.) should be green. >> 4. Press and release the RESUME button , the indicator (L.E.D.) >> should be orange. >> 5. Press and release the RESUME button again, the indicator >> (L.E.D.) should be green >> 6. Release both buttons >> >> >> >>Rocky Smolin - Beach Access Software wrote: >> >> >> >> >>>Dear List: >>> >>>Didn't get any response to this on tech. Maybe someone here knows the >>>answer. >>> >>>MTIA >>> >>>Rocky >>> >>> >>>-------- Original Message -------- >>>Subject: [dba-Tech] Printer Tank Counter >>>Date: Fri, 26 May 2006 09:06:54 -0700 >>>From: Rocky Smolin - Beach Access Software >>>Reply-To: Discussion of Hardware and Software issues >>> >>>To: dba-tech >>> >>> >>> >>>Dear List: >>> >>>I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >>>of 19 inch flat screen monitors at Fry's. >>> >>>Of course, the low ink warning comes up when the carts are still about >>>1/3 full but that's the scam. Give away the razor, sell the blade. >>> >>>Anyway, I refilled the cartridges but the warning still comes up every >>>time I print something. Apparently these printers are "chipped" with >>>some kind of bogus counter rather than actually sensing the ink level. >>> >>>In any event I combed the net looking for info on resetting this counter >>>(without actually having to spend $40-50 on new carts which is what the >>>printer retails for anyway). >>> >>>Does anyone know how or even if this counter can be reset so the low ink >>>nag screen doesn't pop up every time I print something. >>> >>>MTIA, >>> >>>Rocky >>> >>> >>> >>> >>> >>> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Mon May 29 19:04:55 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 29 May 2006 17:04:55 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: <447B866D.2080507@shaw.ca> References: <447B1CE9.70603@san.rr.com> <447B691A.3010003@shaw.ca> <447B7EC7.9090707@san.rr.com> <447B866D.2080507@shaw.ca> Message-ID: <447B8C27.2010805@san.rr.com> Yeah. Might have to. That low ink message is annoying. You think the 'waste ink pad counter' is the same as the 'low ink' message? Rocky MartyConnelly wrote: > You may have to spend $10.00 > To reset waste ink pads counters you have to use iP1600 Service Tool > http://www.2manuals.com/product_info.php?products_id=680 > > > Rocky Smolin - Beach Access Software wrote: > > >> I saw that procedure for the 1500. Apparently they 'fixed' it for the >> 1600. So it don't work no more. :-( >> >> I'll see what the fora have to say. >> >> Thanks and regards, >> >> Rocky >> >> >> MartyConnelly wrote: >> >> >> >>> Almost all Canons are resettable using a series of buttons presses.. >>> or search the forums here >>> http://www.nifty-stuff.com/forum/viewforum.php?id=4 >>> >>> >>> I found this on this thread: There is more here >>> >>> http://www.fixyourownprinter.com/forums/inkjet/15284 >>> >>> >>> Canon PIXMA iP1500 >>> Waste Ink Counter Reset. Manual for Service mode >>> >>> 1. Turn off the printer. And disconnect the printer cable. >>> 2. Press and hold the POWER button, turn on the printer. >>> 3. The indicator (L.E.D.) should be green. >>> 4. Press and release the RESUME button , the indicator (L.E.D.) >>> should be orange. >>> 5. Press and release the RESUME button again, the indicator >>> (L.E.D.) should be green >>> 6. Release both buttons >>> >>> >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>> >>> >>> >>> >>>> Dear List: >>>> >>>> Didn't get any response to this on tech. Maybe someone here knows the >>>> answer. >>>> >>>> MTIA >>>> >>>> Rocky >>>> >>>> >>>> -------- Original Message -------- >>>> Subject: [dba-Tech] Printer Tank Counter >>>> Date: Fri, 26 May 2006 09:06:54 -0700 >>>> From: Rocky Smolin - Beach Access Software >>>> Reply-To: Discussion of Hardware and Software issues >>>> >>>> To: dba-tech >>>> >>>> >>>> >>>> Dear List: >>>> >>>> I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >>>> of 19 inch flat screen monitors at Fry's. >>>> >>>> Of course, the low ink warning comes up when the carts are still about >>>> 1/3 full but that's the scam. Give away the razor, sell the blade. >>>> >>>> Anyway, I refilled the cartridges but the warning still comes up every >>>> time I print something. Apparently these printers are "chipped" with >>>> some kind of bogus counter rather than actually sensing the ink level. >>>> >>>> In any event I combed the net looking for info on resetting this counter >>>> (without actually having to spend $40-50 on new carts which is what the >>>> printer retails for anyway). >>>> >>>> Does anyone know how or even if this counter can be reset so the low ink >>>> nag screen doesn't pop up every time I print something. >>>> >>>> MTIA, >>>> >>>> Rocky >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From martyconnelly at shaw.ca Mon May 29 23:39:47 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 29 May 2006 21:39:47 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: <447B8C27.2010805@san.rr.com> References: <447B1CE9.70603@san.rr.com> <447B691A.3010003@shaw.ca> <447B7EC7.9090707@san.rr.com> <447B866D.2080507@shaw.ca> <447B8C27.2010805@san.rr.com> Message-ID: <447BCC93.80500@shaw.ca> Dunno, I use a local dropbox refill service. Stick in a envelope, put in a computer store box and it is mailed back within a week. Rocky Smolin - Beach Access Software wrote: >Yeah. Might have to. That low ink message is annoying. You think the >'waste ink pad counter' is the same as the 'low ink' message? > >Rocky > > >MartyConnelly wrote: > > >>You may have to spend $10.00 >>To reset waste ink pads counters you have to use iP1600 Service Tool >>http://www.2manuals.com/product_info.php?products_id=680 >> >> >>Rocky Smolin - Beach Access Software wrote: >> >> >> >> >>>I saw that procedure for the 1500. Apparently they 'fixed' it for the >>>1600. So it don't work no more. :-( >>> >>>I'll see what the fora have to say. >>> >>>Thanks and regards, >>> >>>Rocky >>> >>> >>>MartyConnelly wrote: >>> >>> >>> >>> >>> >>>>Almost all Canons are resettable using a series of buttons presses.. >>>>or search the forums here >>>>http://www.nifty-stuff.com/forum/viewforum.php?id=4 >>>> >>>> >>>>I found this on this thread: There is more here >>>> >>>>http://www.fixyourownprinter.com/forums/inkjet/15284 >>>> >>>> >>>> Canon PIXMA iP1500 >>>> Waste Ink Counter Reset. Manual for Service mode >>>> >>>> 1. Turn off the printer. And disconnect the printer cable. >>>> 2. Press and hold the POWER button, turn on the printer. >>>> 3. The indicator (L.E.D.) should be green. >>>> 4. Press and release the RESUME button , the indicator (L.E.D.) >>>> should be orange. >>>> 5. Press and release the RESUME button again, the indicator >>>> (L.E.D.) should be green >>>> 6. Release both buttons >>>> >>>> >>>> >>>>Rocky Smolin - Beach Access Software wrote: >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>>Dear List: >>>>> >>>>>Didn't get any response to this on tech. Maybe someone here knows the >>>>>answer. >>>>> >>>>>MTIA >>>>> >>>>>Rocky >>>>> >>>>> >>>>>-------- Original Message -------- >>>>>Subject: [dba-Tech] Printer Tank Counter >>>>>Date: Fri, 26 May 2006 09:06:54 -0700 >>>>>From: Rocky Smolin - Beach Access Software >>>>>Reply-To: Discussion of Hardware and Software issues >>>>> >>>>>To: dba-tech >>>>> >>>>> >>>>> >>>>>Dear List: >>>>> >>>>>I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >>>>>of 19 inch flat screen monitors at Fry's. >>>>> >>>>>Of course, the low ink warning comes up when the carts are still about >>>>>1/3 full but that's the scam. Give away the razor, sell the blade. >>>>> >>>>>Anyway, I refilled the cartridges but the warning still comes up every >>>>>time I print something. Apparently these printers are "chipped" with >>>>>some kind of bogus counter rather than actually sensing the ink level. >>>>> >>>>>In any event I combed the net looking for info on resetting this counter >>>>>(without actually having to spend $40-50 on new carts which is what the >>>>>printer retails for anyway). >>>>> >>>>>Does anyone know how or even if this counter can be reset so the low ink >>>>>nag screen doesn't pop up every time I print something. >>>>> >>>>>MTIA, >>>>> >>>>>Rocky >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From jimdettman at earthlink.net Tue May 30 06:01:02 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 30 May 2006 07:01:02 -0400 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: <447B8C27.2010805@san.rr.com> Message-ID: Rocky, <> No, but most ink jets show the low ink pad counter as a problem with the ink cart. The ink pad is an absorbent pad under the head. When an ink jet parks the head, it sits on the pad and the pad absorbs the excess ink. Since the amount of ink cannot be easily measured, the counter is a "best guess" of when the pad is about to become full. You usually can reset the counter easily enough, but you run the risk of finding ink all over your desk at some point. Most are on the conservative side, so it's not a big risk, but it can happen. Search the net for the reset procedure. If you can't find it, I'd toss the printer. Their cheap enough. By the time you locate the part, do the replacement, etc. your are probably well over the cost of a new printer. Plus, usually by the time you hit an ink pad full error, the printer is fairly old and outdated anyway. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, May 29, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] Yeah. Might have to. That low ink message is annoying. You think the 'waste ink pad counter' is the same as the 'low ink' message? Rocky MartyConnelly wrote: > You may have to spend $10.00 > To reset waste ink pads counters you have to use iP1600 Service Tool > http://www.2manuals.com/product_info.php?products_id=680 > > > Rocky Smolin - Beach Access Software wrote: > > >> I saw that procedure for the 1500. Apparently they 'fixed' it for the >> 1600. So it don't work no more. :-( >> >> I'll see what the fora have to say. >> >> Thanks and regards, >> >> Rocky >> >> >> MartyConnelly wrote: >> >> >> >>> Almost all Canons are resettable using a series of buttons presses.. >>> or search the forums here >>> http://www.nifty-stuff.com/forum/viewforum.php?id=4 >>> >>> >>> I found this on this thread: There is more here >>> >>> http://www.fixyourownprinter.com/forums/inkjet/15284 >>> >>> >>> Canon PIXMA iP1500 >>> Waste Ink Counter Reset. Manual for Service mode >>> >>> 1. Turn off the printer. And disconnect the printer cable. >>> 2. Press and hold the POWER button, turn on the printer. >>> 3. The indicator (L.E.D.) should be green. >>> 4. Press and release the RESUME button , the indicator (L.E.D.) >>> should be orange. >>> 5. Press and release the RESUME button again, the indicator >>> (L.E.D.) should be green >>> 6. Release both buttons >>> >>> >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>> >>> >>> >>> >>>> Dear List: >>>> >>>> Didn't get any response to this on tech. Maybe someone here knows the >>>> answer. >>>> >>>> MTIA >>>> >>>> Rocky >>>> >>>> >>>> -------- Original Message -------- >>>> Subject: [dba-Tech] Printer Tank Counter >>>> Date: Fri, 26 May 2006 09:06:54 -0700 >>>> From: Rocky Smolin - Beach Access Software >>>> Reply-To: Discussion of Hardware and Software issues >>>> >>>> To: dba-tech >>>> >>>> >>>> >>>> Dear List: >>>> >>>> I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >>>> of 19 inch flat screen monitors at Fry's. >>>> >>>> Of course, the low ink warning comes up when the carts are still about >>>> 1/3 full but that's the scam. Give away the razor, sell the blade. >>>> >>>> Anyway, I refilled the cartridges but the warning still comes up every >>>> time I print something. Apparently these printers are "chipped" with >>>> some kind of bogus counter rather than actually sensing the ink level. >>>> >>>> In any event I combed the net looking for info on resetting this counter >>>> (without actually having to spend $40-50 on new carts which is what the >>>> printer retails for anyway). >>>> >>>> Does anyone know how or even if this counter can be reset so the low ink >>>> nag screen doesn't pop up every time I print something. >>>> >>>> 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 bheid at appdevgrp.com Tue May 30 07:45:50 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 30 May 2006 08:45:50 -0400 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel (SOLVED) In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DC177F@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3547B@ADGSERVER> Glad to hear you figured it out. I learned about the 1024 byte limit. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Friday, May 26, 2006 3:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel (SOLVED) Hi Folks: Well, I was looking in the wrong place for this error. Since these are fairly complex worksheets, with a lot of formulas using named ranges, I SHOULD have looked at Excel to make sure that what I was trying to write to the cell was valid. Of course, it wasn't, as some of my grand total formulas exceeded the 1024 character limit of a formula in excel. This caused the generic "out of memory" error. I was able to fix the error by shortening my naming convention, and everything is building correctly. Thanks to everyone who responded, you helped me eliminate some of the other possibilities for this error. Hope everyone has a safe weekend! Larry Mrazek From bchacc at san.rr.com Tue May 30 08:42:24 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 30 May 2006 06:42:24 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: References: Message-ID: <447C4BC0.7050704@san.rr.com> Well, these two were "free", so I've a mind to toss them both into a garage sale. The second one's still in the box - I don't have a computer which needs one right now. But they're not bad little printers. Rocky Jim Dettman wrote: > Rocky, > > < 'waste ink pad counter' is the same as the 'low ink' message?>> > > No, but most ink jets show the low ink pad counter as a problem with the > ink cart. > > The ink pad is an absorbent pad under the head. When an ink jet parks the > head, it sits on the pad and the pad absorbs the excess ink. > > Since the amount of ink cannot be easily measured, the counter is a "best > guess" of when the pad is about to become full. > > You usually can reset the counter easily enough, but you run the risk of > finding ink all over your desk at some point. Most are on the conservative > side, so it's not a big risk, but it can happen. > > Search the net for the reset procedure. If you can't find it, I'd toss > the printer. Their cheap enough. By the time you locate the part, do the > replacement, etc. your are probably well over the cost of a new printer. > > Plus, usually by the time you hit an ink pad full error, the printer is > fairly old and outdated anyway. > > Jim. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Monday, May 29, 2006 8:05 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] > > Yeah. Might have to. That low ink message is annoying. You think the > 'waste ink pad counter' is the same as the 'low ink' message? > > Rocky > > > MartyConnelly wrote: > >> You may have to spend $10.00 >> To reset waste ink pads counters you have to use iP1600 Service Tool >> http://www.2manuals.com/product_info.php?products_id=680 >> >> >> Rocky Smolin - Beach Access Software wrote: >> >> >> >>> I saw that procedure for the 1500. Apparently they 'fixed' it for the >>> 1600. So it don't work no more. :-( >>> >>> I'll see what the fora have to say. >>> >>> Thanks and regards, >>> >>> Rocky >>> >>> >>> MartyConnelly wrote: >>> >>> >>> >>> >>>> Almost all Canons are resettable using a series of buttons presses.. >>>> or search the forums here >>>> http://www.nifty-stuff.com/forum/viewforum.php?id=4 >>>> >>>> >>>> I found this on this thread: There is more here >>>> >>>> http://www.fixyourownprinter.com/forums/inkjet/15284 >>>> >>>> >>>> Canon PIXMA iP1500 >>>> Waste Ink Counter Reset. Manual for Service mode >>>> >>>> 1. Turn off the printer. And disconnect the printer cable. >>>> 2. Press and hold the POWER button, turn on the printer. >>>> 3. The indicator (L.E.D.) should be green. >>>> 4. Press and release the RESUME button , the indicator (L.E.D.) >>>> should be orange. >>>> 5. Press and release the RESUME button again, the indicator >>>> (L.E.D.) should be green >>>> 6. Release both buttons >>>> >>>> >>>> >>>> Rocky Smolin - Beach Access Software wrote: >>>> >>>> >>>> >>>> >>>> >>>> >>>>> Dear List: >>>>> >>>>> Didn't get any response to this on tech. Maybe someone here knows the >>>>> answer. >>>>> >>>>> MTIA >>>>> >>>>> Rocky >>>>> >>>>> >>>>> -------- Original Message -------- >>>>> Subject: [dba-Tech] Printer Tank Counter >>>>> Date: Fri, 26 May 2006 09:06:54 -0700 >>>>> From: Rocky Smolin - Beach Access Software >>>>> Reply-To: Discussion of Hardware and Software issues >>>>> >>>>> To: dba-tech >>>>> >>>>> >>>>> >>>>> Dear List: >>>>> >>>>> I got a couple of Canon PIXMA iP1600s free with the purchase of a >>>>> > couple > >>>>> of 19 inch flat screen monitors at Fry's. >>>>> >>>>> Of course, the low ink warning comes up when the carts are still about >>>>> 1/3 full but that's the scam. Give away the razor, sell the blade. >>>>> >>>>> Anyway, I refilled the cartridges but the warning still comes up every >>>>> time I print something. Apparently these printers are "chipped" with >>>>> some kind of bogus counter rather than actually sensing the ink level. >>>>> >>>>> In any event I combed the net looking for info on resetting this >>>>> > counter > >>>>> (without actually having to spend $40-50 on new carts which is what the >>>>> > > >>>>> printer retails for anyway). >>>>> >>>>> Does anyone know how or even if this counter can be reset so the low >>>>> > ink > >>>>> nag screen doesn't pop up every time I print something. >>>>> >>>>> MTIA, >>>>> >>>>> Rocky >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From cfoust at infostatsystems.com Tue May 30 10:33:12 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 30 May 2006 08:33:12 -0700 Subject: [AccessD] Toolbar staying put on one line In-Reply-To: <06a901c681a3$fc05d1d0$6502a8c0@ScuzzPaq> Message-ID: Not much to post since I could never convince the powers that be to let me use a class. We typically create a series of menu bars for things like the main screen and of course for reports. We distribute runtimes and can't use the built in form property to show a toolbar, so it has to be done in code. We use these as required from a standard module: Function ToolBarsOff() As Boolean ' Turns Built In Tool Bars Off On Error Resume Next Application.SetOption "Built-In ToolBars Available", False ToolBarsOff = True End Function Sub ToolBarsOn() ' Turns the Built In Tool Bars On On Error Resume Next Application.SetOption "Built-In ToolBars Available", True End Sub Each object that requires a menu/toolbar has code in its Open or Activate event: DoCmd.ShowToolbar "RIMBaseMain", acToolbarYes DoCmd.ShowToolbar "RIMBaseMenu", acToolbarNo And we reverse that in the close event: DoCmd.ShowToolbar "RIMBaseMain", acToolbarNo DoCmd.ShowToolbar "RIMBaseMenu", acToolbarNo If it happens to be the main menu form that is being closed (which also closed the application), we call ToolBarsOn to make sure we leave a full version of Access in the condition we found it. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Saturday, May 27, 2006 8:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Toolbar staying put on one line I'd appreciate anything you can post. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Actually, that's our main solution. We have a default menubar with limited choices and we show and hide custom menubars/toolbars depending on the form or report being displayed. It isn't foolproof, but it's the closest we could come. -- 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 May 30 16:12:55 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 31 May 2006 09:12:55 +1200 Subject: [AccessD] Dot Net 2.0 - Clicking into Text Boxes Message-ID: <7.0.1.0.0.20060531091216.01a59768@dalyn.co.nz> I have a text box on my web page. When using a mouse, users can only go into the box when they click on text already entered. If they click in part of the box that doesn't have any text then the cursor doesn't move to the box. Also, if they delete everything in the box then the only way they can get back to the box is to click on the associated label (which also works if some text is in the field) This is confusing for the users. Is it possible to make a change so that clicking anywhere in a text box will move the cursor into the box? Regards David Emerson Dalyn Software Ltd New Zealand From donaread at ihug.co.nz Tue May 30 18:22:45 2006 From: donaread at ihug.co.nz (Don Read) Date: Wed, 31 May 2006 11:22:45 +1200 Subject: [AccessD] re printer tank counter Message-ID: <447CD3C5.5000707@ihug.co.nz> Had similar with an HP The level is a calculated value, rather than a sensor. The cartridge has an identifier. If all this is on board the printer, who knows? Try taking the cartridge out, and unplug printer for 30 min's say. If that doesn't work, try reinstalling the Printer. Don From bheygood at abestsystems.com Tue May 30 19:38:20 2006 From: bheygood at abestsystems.com (Bob Heygood) Date: Tue, 30 May 2006 17:38:20 -0700 Subject: [AccessD] ldb In-Reply-To: <447CD3C5.5000707@ihug.co.nz> Message-ID: Hello List, When advising a client about trying to run his dB from a CD, I had a thot. Where does Access place the .ldb when running a read only .mdb? Anyone have an idea? best, bob heygood From JHewson at karta.com Tue May 30 19:52:19 2006 From: JHewson at karta.com (Jim Hewson) Date: Tue, 30 May 2006 19:52:19 -0500 Subject: [AccessD] ldb References: Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C0285A041@karta-exc-int.Karta.com> The lbd is located in the same directory as the mdb. Therefore, unless the CD is a CDRW it won't work. Have the client copy the mdb to the hard drive and then run it. Most of the time when the mdb is copied from a read-only CD, it's also read-only. If that is the intent (that is, keep it read-only) then nothing needs to be done. If you want the mdb to be read-write then looking at the properties of file will reveal the read-only checkbox is checked. Uncheck the it and you're good. HTH Jim ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Bob Heygood Sent: Tue 5/30/2006 7:38 PM To: Access Developers discussion and problem solving Subject: [AccessD] ldb Hello List, When advising a client about trying to run his dB from a CD, I had a thot. Where does Access place the .ldb when running a read only .mdb? Anyone have an idea? best, bob heygood -- 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 May 30 21:25:50 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 31 May 2006 12:25:50 +1000 Subject: [AccessD] ldb In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C0285A041@karta-exc-int.Karta.com> Message-ID: <447D8B4E.2027.85BED0F6@stuart.lexacorp.com.pg> It will work - as long as you only want to view the content. When you open an Access .mdb on a CD, Access can't write the .ldb file so you get a pop- up warning that the file is RO and that you won't be able to save changes. You don't need to have an LDB file to open an Access database, as long as you are only accessing data and not trying to modify it. On 30 May 2006 at 19:52, Jim Hewson wrote: > The lbd is located in the same directory as the mdb. > Therefore, unless the CD is a CDRW it won't work. > Have the client copy the mdb to the hard drive and then run it. > Most of the time when the mdb is copied from a read-only CD, it's also > read-only. If that is the intent (that is, keep it read-only) then > nothing needs to be done. If you want the mdb to be read-write then > looking at the properties of file will reveal the read-only checkbox > is checked. Uncheck the it and you're good. HTH Jim > > ________________________________ > > From: accessd-bounces at databaseadvisors.com on behalf of Bob Heygood > Sent: Tue 5/30/2006 7:38 PM To: Access Developers discussion and > problem solving Subject: [AccessD] ldb > > > > Hello List, > When advising a client about trying to run his dB from a CD, I had a > thot. Where does Access place the .ldb when running a read only .mdb? > > Anyone have an idea? > > best, > > bob heygood > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > From accessd at shaw.ca Tue May 30 23:32:52 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 30 May 2006 21:32:52 -0700 Subject: [AccessD] Dot Net 2.0 - Clicking into Text Boxes In-Reply-To: <7.0.1.0.0.20060531091216.01a59768@dalyn.co.nz> Message-ID: <0J0400KAA4J4L8M1@l-daemon> Hi David: The following is air code but some similar code should work... have a real example but can not remember where it is at the moment: SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> ...
This is not specifically done through .Net but this would be the direct approach. This is by no means completed code but it should be a start. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Tuesday, May 30, 2006 2:13 PM To: accessd at databaseadvisors.com Subject: [AccessD] Dot Net 2.0 - Clicking into Text Boxes I have a text box on my web page. When using a mouse, users can only go into the box when they click on text already entered. If they click in part of the box that doesn't have any text then the cursor doesn't move to the box. Also, if they delete everything in the box then the only way they can get back to the box is to click on the associated label (which also works if some text is in the field) This is confusing for the users. Is it possible to make a change so that clicking anywhere in a text box will move the cursor into the box? Regards David Emerson Dalyn Software Ltd New Zealand -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed May 31 07:15:38 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 31 May 2006 08:15:38 -0400 Subject: [AccessD] VSS over internet??? Message-ID: <916187228923D311A6FE00A0CC3FAA30D35487@ADGSERVER> Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby From garykjos at gmail.com Wed May 31 08:05:32 2006 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 31 May 2006 08:05:32 -0500 Subject: [AccessD] ldb In-Reply-To: <447D8B4E.2027.85BED0F6@stuart.lexacorp.com.pg> References: <9C382E065F54AE48BC3AA7925DCBB01C0285A041@karta-exc-int.Karta.com> <447D8B4E.2027.85BED0F6@stuart.lexacorp.com.pg> Message-ID: And it's gotta be a single user at a time opening it too I think. GK On 5/30/06, Stuart McLachlan wrote: > It will work - as long as you only want to view the content. > > When you open an Access .mdb on a CD, Access can't write the .ldb file so you get a pop- > up warning that the file is RO and that you won't be able to save changes. You don't need to > have an LDB file to open an Access database, as long as you are only accessing data and > not trying to modify it. > > > > On 30 May 2006 at 19:52, Jim Hewson wrote: > > > The lbd is located in the same directory as the mdb. > > Therefore, unless the CD is a CDRW it won't work. > > Have the client copy the mdb to the hard drive and then run it. > > Most of the time when the mdb is copied from a read-only CD, it's also > > read-only. If that is the intent (that is, keep it read-only) then > > nothing needs to be done. If you want the mdb to be read-write then > > looking at the properties of file will reveal the read-only checkbox > > is checked. Uncheck the it and you're good. HTH Jim > > > > ________________________________ > > > > From: accessd-bounces at databaseadvisors.com on behalf of Bob Heygood > > Sent: Tue 5/30/2006 7:38 PM To: Access Developers discussion and > > problem solving Subject: [AccessD] ldb > > > > > > > > Hello List, > > When advising a client about trying to run his dB from a CD, I had a > > thot. Where does Access place the .ldb when running a read only .mdb? > > > > Anyone have an idea? > > > > best, > > > > bob heygood > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From artful at rogers.com Wed May 31 08:36:44 2006 From: artful at rogers.com (Arthur Fuller) Date: Wed, 31 May 2006 09:36:44 -0400 (EDT) Subject: [AccessD] VSS over internet??? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D35487@ADGSERVER> Message-ID: <20060531133644.56667.qmail@web88212.mail.re2.yahoo.com> SCC Bridge is a free download from gotdotnet. It's got issues but it's free. Source Off Site costs money but is way better. At the firm that I'm contracting with currently, we use it for everything. I think that the physical server is in Chicago, but people all over the world use it. In our case, there's a VPN token, but once in you're in and it's amazingly fast. Bobby Heid wrote: Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed May 31 09:05:02 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 31 May 2006 10:05:02 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: VSS over internet??? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DC1A4A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35488@ADGSERVER> Thanks Arthur. I saw the Source Off Site. I just don't think my boss would go for that. I'll look at the SCC Bridge. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, May 31, 2006 9:37 AM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] VSS over internet??? Importance: Low SCC Bridge is a free download from gotdotnet. It's got issues but it's free. Source Off Site costs money but is way better. At the firm that I'm contracting with currently, we use it for everything. I think that the physical server is in Chicago, but people all over the world use it. In our case, there's a VPN token, but once in you're in and it's amazingly fast. Bobby Heid wrote: Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby From bheid at appdevgrp.com Wed May 31 09:10:02 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 31 May 2006 10:10:02 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: VSS over internet??? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D35488@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35489@ADGSERVER> Arthur, do you know if either of the these products work with Access XP as VSS does? That is, can you check out forms, reports, etc? Thanks, Bobby -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Wednesday, May 31, 2006 10:05 AM To: 'Access Developers discussion and problem solving' Subject: RE: [SPAM SUSPECT] Re: [AccessD] VSS over internet??? Thanks Arthur. I saw the Source Off Site. I just don't think my boss would go for that. I'll look at the SCC Bridge. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, May 31, 2006 9:37 AM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] VSS over internet??? Importance: Low SCC Bridge is a free download from gotdotnet. It's got issues but it's free. Source Off Site costs money but is way better. At the firm that I'm contracting with currently, we use it for everything. I think that the physical server is in Chicago, but people all over the world use it. In our case, there's a VPN token, but once in you're in and it's amazingly fast. Bobby Heid wrote: Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby From paul.baumann at rtctech.com Wed May 31 09:14:51 2006 From: paul.baumann at rtctech.com (Paul Baumann) Date: Wed, 31 May 2006 09:14:51 -0500 Subject: [AccessD] Problem between Access 2002 and 2003 Message-ID: <003f01c684bc$952d2640$6465a8c0@scrptrkr.local> I have and Access application that was originally written in Access 97 and is now operating in Access 2000 format. It is divided into front end and back end components and the problem I am having is with the front end component. I have been modifying this database for some time now using Access 2002 for development yet keeping the 2000 format for compatibility issues. The problem occurs when I try to open the program in Access 2003 (Separate machine). If I try to open the mdb it crashes access (without any explanation of course). If I open an mde in 2000 format it works fine. I tried to isolate what was causing it by just copying components into a new db piece by piece and managed to get it all up and working in 2003 but then when I then tried to open it in 2002 it crashed 2002. It seems that they just cannot play nice together. Any advice on what the cause could be would be greatly appreciated! Paul O. Baumann RTC Technologies, Inc. Email: paulb at rtctech.com From cfoust at infostatsystems.com Wed May 31 10:17:47 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 31 May 2006 08:17:47 -0700 Subject: [AccessD] VSS over internet??? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D35487@ADGSERVER> Message-ID: Does it have to be over the internet? Do you have a laptop? You could connect it to your office network, create a database from VSS, check out the items you want to work on, and then disconnect and take the machine home. You can work on them, reconnect the next day, checkin and cross you fingers and pray. ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, May 31, 2006 5:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS over internet??? Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Wed May 31 10:35:12 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 31 May 2006 11:35:12 -0400 Subject: [AccessD] ldb In-Reply-To: <447D8B4E.2027.85BED0F6@stuart.lexacorp.com.pg> Message-ID: Stuart, Actually, that's not quite right. If Access/JET can't create an .LDB file, the database is placed in exclusive mode. The read-only is a separate issue. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 30, 2006 10:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ldb It will work - as long as you only want to view the content. When you open an Access .mdb on a CD, Access can't write the .ldb file so you get a pop- up warning that the file is RO and that you won't be able to save changes. You don't need to have an LDB file to open an Access database, as long as you are only accessing data and not trying to modify it. On 30 May 2006 at 19:52, Jim Hewson wrote: > The lbd is located in the same directory as the mdb. > Therefore, unless the CD is a CDRW it won't work. > Have the client copy the mdb to the hard drive and then run it. > Most of the time when the mdb is copied from a read-only CD, it's also > read-only. If that is the intent (that is, keep it read-only) then > nothing needs to be done. If you want the mdb to be read-write then > looking at the properties of file will reveal the read-only checkbox > is checked. Uncheck the it and you're good. HTH Jim > > ________________________________ > > From: accessd-bounces at databaseadvisors.com on behalf of Bob Heygood > Sent: Tue 5/30/2006 7:38 PM To: Access Developers discussion and > problem solving Subject: [AccessD] ldb > > > > Hello List, > When advising a client about trying to run his dB from a CD, I had a > thot. Where does Access place the .ldb when running a read only .mdb? > > Anyone have an idea? > > best, > > bob heygood > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed May 31 10:46:41 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 31 May 2006 11:46:41 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: VSS over internet??? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DC1A73@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3548A@ADGSERVER> Hi Charlotte, No, I do not have a laptop. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, May 31, 2006 11:18 AM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] VSS over internet??? Importance: Low Does it have to be over the internet? Do you have a laptop? You could connect it to your office network, create a database from VSS, check out the items you want to work on, and then disconnect and take the machine home. You can work on them, reconnect the next day, checkin and cross you fingers and pray. ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, May 31, 2006 5:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS over internet??? Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby From paul.hartland at fsmail.net Wed May 31 10:50:05 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 31 May 2006 17:50:05 +0200 (CEST) Subject: [AccessD] =?utf-8?b?W1NQQU0gU1VTUEVDVF0gwqBSZTogwqBWU1Mgb3ZlciBp?= =?utf-8?q?nternet=3F=3F=3F?= Message-ID: <28425192.1149090605134.JavaMail.www@wwinf3104.me-wanadoo.net> Don't know if this has been covered but couldn't you leave your work machine on then go into it via Remote Desktop....I use this whenever I need to work from home at the weekend as my machine never gets switched off. Message Received: May 31 2006, 04:47 PM From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Cc: Subject: Re: [AccessD] [SPAM SUSPECT] Re: VSS over internet??? Hi Charlotte, No, I do not have a laptop. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, May 31, 2006 11:18 AM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] VSS over internet??? Importance: Low Does it have to be over the internet? Do you have a laptop? You could connect it to your office network, create a database from VSS, check out the items you want to work on, and then disconnect and take the machine home. You can work on them, reconnect the next day, checkin and cross you fingers and pray. ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, May 31, 2006 5:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS over internet??? Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Wed May 31 10:56:13 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 31 May 2006 10:56:13 -0500 Subject: [AccessD] VSS over internet??? Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8799@cpixchng-1.cpiqpc.net> Bobby, Have you looked at www.logmein.com? Free for the standard version which doesn't allow you to print to the remote and do file transfers but it allows you to take control of your work computer from any computer that has an internet connection. Switch it to full screen and it's just like you're sitting in front of the office computer. You'll want to be sure to clear this with your network admin(s) since they may have to allow the connection through the network firewall. HTH, Rusty -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Wednesday, May 31, 2006 7:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS over internet??? Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby -- 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 Gustav at cactus.dk Wed May 31 10:48:22 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 31 May 2006 17:48:22 +0200 Subject: [AccessD] ldb Message-ID: Hi Bob and Gary On the contrary. To write-protect the mdb is a proven way to safely make a mdb shareable. /gustav >>> garykjos at gmail.com 31-05-2006 15:05:32 >>> And it's gotta be a single user at a time opening it too I think. GK On 5/30/06, Stuart McLachlan wrote: > It will work - as long as you only want to view the content. > > When you open an Access .mdb on a CD, Access can't write the .ldb file so you get a pop- > up warning that the file is RO and that you won't be able to save changes. You don't need to > have an LDB file to open an Access database, as long as you are only accessing data and > not trying to modify it. > > > > On 30 May 2006 at 19:52, Jim Hewson wrote: > > > The lbd is located in the same directory as the mdb. > > Therefore, unless the CD is a CDRW it won't work. > > Have the client copy the mdb to the hard drive and then run it. > > Most of the time when the mdb is copied from a read-only CD, it's also > > read-only. If that is the intent (that is, keep it read-only) then > > nothing needs to be done. If you want the mdb to be read-write then > > looking at the properties of file will reveal the read-only checkbox > > is checked. Uncheck the it and you're good. HTH Jim > > > > ________________________________ > > > > From: accessd-bounces at databaseadvisors.com on behalf of Bob Heygood > > Sent: Tue 5/30/2006 7:38 PM To: Access Developers discussion and > > problem solving Subject: [AccessD] ldb > > > > > > > > Hello List, > > When advising a client about trying to run his dB from a CD, I had a > > thot. Where does Access place the .ldb when running a read only .mdb? > > > > Anyone have an idea? > > > > best, > > > > bob heygood From bheid at appdevgrp.com Wed May 31 11:13:09 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 31 May 2006 12:13:09 -0400 Subject: [AccessD] VSS over internet??? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DC1A87@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3548B@ADGSERVER> No, no one has mentioned that. Basically, that allows me to remotely control my work machine, correct? I think that would be too slow to try to develop with. Although I have not tried it. I can access my machine via TightVNC over Hamachi. I don't know what happened to the subject line on your email, so I reset it. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Wednesday, May 31, 2006 11:50 AM To: Access Developers discussion and problem solving Subject: W1NQQU0gU1VTUEVDVF0gUmU6IFtBY2Nlc3NEXQ==W1NQQU0gU1VTUEVDVF0gwqBSZTogwqBWU1Mg b3ZlciBpnternet??? Importance: Low Don't know if this has been covered but couldn't you leave your work machine on then go into it via Remote Desktop....I use this whenever I need to work from home at the weekend as my machine never gets switched off. Message Received: May 31 2006, 04:47 PM From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Cc: Subject: Re: [AccessD] [SPAM SUSPECT] Re: VSS over internet??? Hi Charlotte, No, I do not have a laptop. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, May 31, 2006 11:18 AM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] VSS over internet??? Importance: Low Does it have to be over the internet? Do you have a laptop? You could connect it to your office network, create a database from VSS, check out the items you want to work on, and then disconnect and take the machine home. You can work on them, reconnect the next day, checkin and cross you fingers and pray. ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, May 31, 2006 5:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS over internet??? Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby From bheygood at abestsystems.com Wed May 31 11:31:13 2006 From: bheygood at abestsystems.com (Bob Heygood) Date: Wed, 31 May 2006 09:31:13 -0700 Subject: [AccessD] ldb In-Reply-To: Message-ID: Kind Responders, Yeah, I tested and as far as I can see no .ldb is being created. I just get a warning that we are in "Read Only" mode. Thot maybe Access/Windows was creating one on the "fly" as I am using a drive capable of burning files. This is a curiosity as I always found an .ldb when opening an .mdb and actually have had issues where I did not have rights to create one. thx, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Wednesday, May 31, 2006 8:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ldb Stuart, Actually, that's not quite right. If Access/JET can't create an .LDB file, the database is placed in exclusive mode. The read-only is a separate issue. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 30, 2006 10:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ldb It will work - as long as you only want to view the content. When you open an Access .mdb on a CD, Access can't write the .ldb file so you get a pop- up warning that the file is RO and that you won't be able to save changes. You don't need to have an LDB file to open an Access database, as long as you are only accessing data and not trying to modify it. On 30 May 2006 at 19:52, Jim Hewson wrote: > The lbd is located in the same directory as the mdb. > Therefore, unless the CD is a CDRW it won't work. > Have the client copy the mdb to the hard drive and then run it. > Most of the time when the mdb is copied from a read-only CD, it's also > read-only. If that is the intent (that is, keep it read-only) then > nothing needs to be done. If you want the mdb to be read-write then > looking at the properties of file will reveal the read-only checkbox > is checked. Uncheck the it and you're good. HTH Jim > > ________________________________ > > From: accessd-bounces at databaseadvisors.com on behalf of Bob Heygood > Sent: Tue 5/30/2006 7:38 PM To: Access Developers discussion and > problem solving Subject: [AccessD] ldb > > > > Hello List, > When advising a client about trying to run his dB from a CD, I had a > thot. Where does Access place the .ldb when running a read only .mdb? > > Anyone have an idea? > > best, > > bob heygood > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed May 31 13:50:38 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 31 May 2006 11:50:38 -0700 Subject: [AccessD] VSS over internet??? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D35487@ADGSERVER> Message-ID: <0J0500HH888OHX91@l-daemon> Hi Bobby: You can use Subversion (http://subversion.tigris.org/). It does not have all the functionality as VSS but it's free (but for an appropriate donation), runs securely across the web, on any port you want, on any platform, without any extra support software. It is easy to set up and use. We use it here and many of our .Net contemporaries use it instead of VSS (which has/had some problems) or Team Server which is too big, too complex and too expensive for most companies. If you are set using VSS across the web check this site out: http://www.sourceremoting.com/ HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, May 31, 2006 5:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS over internet??? Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed May 31 13:55:50 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 31 May 2006 11:55:50 -0700 Subject: [AccessD] VSS over internet??? In-Reply-To: <20060531133644.56667.qmail@web88212.mail.re2.yahoo.com> Message-ID: <0J0500HW48HCHX91@l-daemon> Hi Arthur: SCCBridge (http://www.nesterovsky-bros.com/html/css2/SCCBridge.htm) looks really interesting. Have you done much work with the product? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, May 31, 2006 6:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VSS over internet??? SCC Bridge is a free download from gotdotnet. It's got issues but it's free. Source Off Site costs money but is way better. At the firm that I'm contracting with currently, we use it for everything. I think that the physical server is in Chicago, but people all over the world use it. In our case, there's a VPN token, but once in you're in and it's amazingly fast. Bobby Heid wrote: Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed May 31 14:25:35 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 31 May 2006 12:25:35 -0700 Subject: [AccessD] VSS over internet??? In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8799@cpixchng-1.cpiqpc.net> Message-ID: <0J0500H3N9UXHXC1@l-daemon> Hi All: I have been setting all my remote sites up with Hamachi and UltraVNC. It is not that it is absolutely secure, which it is, but that it simply does not matter where the host and remote computer are or where they have been moved to, or what router configuration or network environment they are in, they always make easy contact. The process of setting them up is almost too simple. I just love this configuration and it has resolved so many problem sites. If you need any help, not that you should; just contact me off line. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Wednesday, May 31, 2006 8:56 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] VSS over internet??? Bobby, Have you looked at www.logmein.com? Free for the standard version which doesn't allow you to print to the remote and do file transfers but it allows you to take control of your work computer from any computer that has an internet connection. Switch it to full screen and it's just like you're sitting in front of the office computer. You'll want to be sure to clear this with your network admin(s) since they may have to allow the connection through the network firewall. HTH, Rusty -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Wednesday, May 31, 2006 7:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS over internet??? Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby -- 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. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Wed May 31 14:57:32 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 31 May 2006 20:57:32 +0100 Subject: [AccessD] OT SQL Server References: <0J0500H3N9UXHXC1@l-daemon> Message-ID: Got this email and its valid. Give it a go. As a valued member of the SQL Server Community, you have been authorized to receive a FREE digital subscription to SQL Server Magazine -- up to a $49.95* value. This is a one-time only exclusive offer and will not be repeated. With your subscription, you will be introduced to the #1 guide to building world-class applications and every month you will receive: --Expert advice from the most respected industry gurus --Up-to-the-minute information you can't be without --Comprehensive SQL Server 2005 coverage of high availability features, management tools, new CLR features, reporting services and other hot industry topics --Thousands of solutions to help you get more done in less time --Quick tips and practical "how-to" content --Comparative, independent product review --A community to connect and interact with your peers A very limited supply of these complimentary subscriptions are available (first come, first serve), so sign up for your free subscription now: http://lists.sqlmag.com/t?ctl=2CE5B:8DF71 *Sorry, this special offer is for new subscribers only! U.S. rate. Valid postal and email addresses are required to qualify. First issue will arrive in 4 to 6 weeks. From accessd at shaw.ca Wed May 31 17:40:30 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 31 May 2006 15:40:30 -0700 Subject: [AccessD] OT SQL Server In-Reply-To: Message-ID: <0J05006C6IVRH050@l-daemon> Hi Martin: Thank you; I have just completed my order. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, May 31, 2006 12:58 PM To: Access Developers discussion and problem solving Subject: [AccessD] OT SQL Server Got this email and its valid. Give it a go. As a valued member of the SQL Server Community, you have been authorized to receive a FREE digital subscription to SQL Server Magazine -- up to a $49.95* value. This is a one-time only exclusive offer and will not be repeated. With your subscription, you will be introduced to the #1 guide to building world-class applications and every month you will receive: --Expert advice from the most respected industry gurus --Up-to-the-minute information you can't be without --Comprehensive SQL Server 2005 coverage of high availability features, management tools, new CLR features, reporting services and other hot industry topics --Thousands of solutions to help you get more done in less time --Quick tips and practical "how-to" content --Comparative, independent product review --A community to connect and interact with your peers A very limited supply of these complimentary subscriptions are available (first come, first serve), so sign up for your free subscription now: http://lists.sqlmag.com/t?ctl=2CE5B:8DF71 *Sorry, this special offer is for new subscribers only! U.S. rate. Valid postal and email addresses are required to qualify. First issue will arrive in 4 to 6 weeks. From bchacc at san.rr.com Mon May 1 09:43:38 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 01 May 2006 07:43:38 -0700 Subject: [AccessD] Setting Box Forecolor Message-ID: <44561E9A.7030702@san.rr.com> Dear List: I have several manikin diagrams with boxes where a patient experience pain. When they click the box it turns from green to red (and v.v.). When the forecolor of the box changes I save it in a Yes/No field in the patient record in the patient table - Yes for red, No for green. On entering the form for the second or subsequent times, in the Form_Open event I want to change the boxes to red which were previously turned red but I'm having a problem with the syntax. The boxes are uniformly named "Boxnnnnnn" (length can vary) and the corresponding fields are named "fldPLnnnnnnn" So I'm using: Set db = CurrentDb Set rs = db.OpenRecordset("Select * FROM tblPatient WHERE fldPatientRecordID = " _ & Forms!frmPatient!fldPatientRecordID) For Each fld In rs.Fields If Left(fld.Name, 5) = "fldPL" Then If rs(fld.Name) = True Then strControl = ("Box" & Right(fld.Name, Len(fld.Name) - 5)) Set ctl = Me(strControl) ctl.ForeColor = 255 End If End If Next fld to find the fields beginning with fldPL and everything works, I get the box name in strControl, OK except where I want to set the forecolor of the box to red it doesn't work (property or method not supported). Does someone know the correct method/syntax? MTIA, Rocky P.S. - additional question for the future - this app is coming from a back pain specialist who saw The Sleep Advisor and wants to do a similar expert system to diagnose back pain. Very interesting idea. In the meantime, the areas of pain on the manikins are, of necessity, rectangles. But on his original drawings, they are irregular shapes conforming to the outlines of the body. As it is now, it will do for alpha and beta testing, but ultimately we'll need something more precise. Does anyone have any ideas on how to draw irregular shapes on a form which will respond to a mouse click? MTIA again. -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From stuart at lexacorp.com.pg Mon May 1 09:59:11 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 02 May 2006 00:59:11 +1000 Subject: [AccessD] Setting Box Forecolor In-Reply-To: <44561E9A.7030702@san.rr.com> Message-ID: <4456AEDF.13077.4FFC62D5@stuart.lexacorp.com.pg> On 1 May 2006 at 7:43, Rocky Smolin - Beach Access S wrote: > > to find the fields beginning with fldPL and everything works, I get the box > name in strControl, OK except where I want to set the forecolor of the box > to red it doesn't work (property or method not supported). Does someone know > the correct method/syntax? A box doesn't have a forecolor. It only has a backcolor and a bordercolor. Try setting ctl.backcolor -- Stuart From bchacc at san.rr.com Mon May 1 10:33:22 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 01 May 2006 08:33:22 -0700 Subject: [AccessD] Setting Box Forecolor In-Reply-To: <4456AEDF.13077.4FFC62D5@stuart.lexacorp.com.pg> References: <4456AEDF.13077.4FFC62D5@stuart.lexacorp.com.pg> Message-ID: <44562A42.8060706@san.rr.com> D'OH!! First dope slap of the week! (Thanks) Rocky Stuart McLachlan wrote: > On 1 May 2006 at 7:43, Rocky Smolin - Beach Access S wrote: > > >> to find the fields beginning with fldPL and everything works, I get the box >> name in strControl, OK except where I want to set the forecolor of the box >> to red it doesn't work (property or method not supported). Does someone know >> the correct method/syntax? >> > > A box doesn't have a forecolor. It only has a backcolor and a bordercolor. > Try setting ctl.backcolor > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From stuart at lexacorp.com.pg Mon May 1 10:54:28 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 02 May 2006 01:54:28 +1000 Subject: [AccessD] Setting Box Forecolor In-Reply-To: <44561E9A.7030702@san.rr.com> Message-ID: <4456BBD4.11554.502EFFCD@stuart.lexacorp.com.pg> On 1 May 2006 at 7:43, Rocky Smolin - Beach Access S wrote: > P.S. - additional question for the future - this app is coming from a > back pain specialist who saw The Sleep Advisor and wants to do a similar > expert system to diagnose back pain. Very interesting idea. In the > meantime, the areas of pain on the manikins are, of necessity, rectangles. > But on his original drawings, they are irregular shapes conforming to the > outlines of the body. As it is now, it will do for alpha and beta testing, > but ultimately we'll need something more precise. Does anyone have any > ideas on how to draw irregular shapes on a form which will respond to a > mouse click? > I don't know of any way to put irregular shaped objects on a form, but I can thing of two possible options, both using an imagebox to show the body: 1. lots of small transparent buttons over the image 2. Read the X and Y on the image's MouseDown event to find out exactly where the user clicked (they are the offset in twips from the top left corner of the image) In both cases, you'd have to store and display different images depending on the status of the various areas. -- Stuart From erbachs at gmail.com Mon May 1 11:45:05 2006 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 1 May 2006 11:45:05 -0500 Subject: [AccessD] [dba-SQLServer] VB.net reference books - experiences + SQL Server List In-Reply-To: <001e01c65e8a$6452bec0$6601a8c0@office> References: <001e01c65e8a$6452bec0$6601a8c0@office> Message-ID: <39cb22f30605010945g497cfb4cqfc0feff104b04ae6@mail.gmail.com> Kath, Just saw this thread today... As far as web sites, I'd suggest a visit to http://www.sqlservercentral.com . Free registration to get access to everything, a sprightly daily e-mail newsletter, e-books for cheap, and lots and lots of articles on SQL Server. As far as books go, you might want to look into Safari Bookshelf On-line ( http://www.safaribooksonline.com/ ). For $15 a month you get up to 10 books on your "bookshelf". You must keep a book for at least 30 days, at which time you may remove it from your shelf and replace it with another...or you can hang onto a book forever, taking up a "slot" on your bookshelf. About three dozen publishers have their books in Safari format, which is searchable across ALL books in the Safari library. Some publishers are missing from the "stable" of publishers available, but there are plenty. The two .NET Framework books Shamil mentioned are available on Safari, while the ASP.NET Tips, Tutorials and the Mastering Visual Basic 2005 are not. I can recommend Scott Mitchell as an author (the book recommended by Eric Barro is by Mitchell). Mitchell's web site is the famous 4 Guys from Rolla: http://www.4guysfromrolla.com . Regards, Steve Erbach http://TheTownCrank.blogspot.com On 4/12/06, Kath Pelletti wrote: > (Cross posted to SQl Server and AccessD normal list) > > I have been learning SQL Server 2005 and vb.net this year......I have found Mike Gunderloy's book "Mastering SQL Server 2005" an absolute god send. I would highly recommend this one to anyone going through this learning curve.... > > But the book I bought for learning vb.net is not so good - "Visual Basic 2005 - Programmer's reference' by Rod Stephens. It's not too bad - very much like reading the MS help screens - but I am looking for a book which will step me through it - a la Mike's style. Any recommendations? > > (I know O'Reilly's are good but I am told by my colleague here that that it is more of a reference book.) > > (While I am posting - it's very quiet on our SQL list for now - is there another list anyone has been using which they would recommend? > > ______________________________________ > Kath Pelletti From Gustav at cactus.dk Mon May 1 11:53:32 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 01 May 2006 18:53:32 +0200 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: Hi all The SQL Server ODBC driver sometimes does some funny rounding when handling doubles: ID RoundedID 0 0 1 0 2 3 3 3 4 3 5 7 6 7 7 7 8 7 9 10 10 10 11 10 12 13 13 13 14 13 15 17 16 17 17 17 18 17 19 20 ... 990 990 991 990 992 993 993 993 994 993 995 997 996 997 997 997 998 997 999 0 These are the last decimal part of Doubles. As you can see, they are rounded by 3, sort of. I need to simulate this rounding in Access SQL and came up with this solution using Sgn() and integer division: .. (([ID]\10)*10 +Sgn(([ID] Mod 10)\2)*3 +Sgn(([ID] Mod 10)\5)*4 +Sgn(([ID] Mod 10)\9)*3) Mod 1000 AS RoundedID The value must not exceed 1000, that's what the "Mod 1000" does. This works exactly as I wish but it looks clumsy. Would anyone have a simpler method? The tricky part is, that 7 is present four times per ten elements while 0 and 3 each only count for three; this breaks a sequence of integer dividing by 3. /gustav From marcus at tsstech.com Mon May 1 12:24:40 2006 From: marcus at tsstech.com (Scott Marcus) Date: Mon, 1 May 2006 13:24:40 -0400 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: I don't know if this is any better... ID + iif((ID mod 3) <= 1,0,3) - (ID mod 3) Scott Marcus Computer Programmer TSS Technologies Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 01, 2006 12:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Rounding in SQL Server ODBC Hi all The SQL Server ODBC driver sometimes does some funny rounding when handling doubles: ID RoundedID 0 0 1 0 2 3 3 3 4 3 5 7 6 7 7 7 8 7 9 10 10 10 11 10 12 13 13 13 14 13 15 17 16 17 17 17 18 17 19 20 ... 990 990 991 990 992 993 993 993 994 993 995 997 996 997 997 997 998 997 999 0 These are the last decimal part of Doubles. As you can see, they are rounded by 3, sort of. I need to simulate this rounding in Access SQL and came up with this solution using Sgn() and integer division: .. (([ID]\10)*10 +Sgn(([ID] Mod 10)\2)*3 +Sgn(([ID] Mod 10)\5)*4 +Sgn(([ID] Mod 10)\9)*3) Mod 1000 AS RoundedID The value must not exceed 1000, that's what the "Mod 1000" does. This works exactly as I wish but it looks clumsy. Would anyone have a simpler method? The tricky part is, that 7 is present four times per ten elements while 0 and 3 each only count for three; this breaks a sequence of integer dividing by 3. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com NOTICE: This electronic mail transmission is for the use of the named individual or entity to which it is directed and may contain information that is privileged or confidential. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of any information contained herein is prohibited. If you have received this electronic mail transmission in error, delete it from your system without copying or forwarding it, and notify the sender of the error by replying via email or calling TSS Technologies at (513) 772-7000, so that our address record can be corrected. Any information included in this email is provided on an ?as is? and ?where as? basis, and TSS Technologies makes no representations or warranties of any kind with respect to the completeness or accuracy of the information contained in this email. From kevinb at bepc.com Mon May 1 12:26:45 2006 From: kevinb at bepc.com (Kevin Bachmeier) Date: Mon, 1 May 2006 12:26:45 -0500 Subject: [AccessD] Audit trail of Deleted record. Message-ID: <5C210A2F04B76B4AB2A18E6FEB81713404D727C7@HDQ06.bepc.net> I am trying to find a means of auditing the deletion of records from a table (write a record in another table with the appropriate details of who, when, and key fields of the record being deleted). My attempt at using the BeforeDelConfirm event fails as the values of the form's fields of this bound form are already null (deleted). I was able to find some discussion of auditing changes to records in the archive, but am not able to find anything on deleted records. Anyone with some experience or suggestions on obtaining the values of a record once the user has selected the record and pressed Del, or selected Record Delete? Thank you in advance. Kevin From Jdemarco at hudsonhealthplan.org Mon May 1 13:07:55 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Mon, 1 May 2006 14:07:55 -0400 Subject: [AccessD] Audit trail of Deleted record. Message-ID: <08F823FD83787D4BA0B99CA580AD3C740371714C@TTNEXCHCL2.hshhp.com> You may find a concensus here of people who do not delete records but put a flag on them so they're hidden from users. You could then simply track who deleted a record and when (unless space is an issue and you really want the records gone). HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 1:27 PM To: accessd at databaseadvisors.com Subject: [AccessD] Audit trail of Deleted record. I am trying to find a means of auditing the deletion of records from a table (write a record in another table with the appropriate details of who, when, and key fields of the record being deleted). My attempt at using the BeforeDelConfirm event fails as the values of the form's fields of this bound form are already null (deleted). I was able to find some discussion of auditing changes to records in the archive, but am not able to find anything on deleted records. Anyone with some experience or suggestions on obtaining the values of a record once the user has selected the record and pressed Del, or selected Record Delete? Thank you in advance. Kevin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon May 1 13:07:57 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 1 May 2006 11:07:57 -0700 Subject: [AccessD] Audit trail of Deleted record. Message-ID: Assuming you're confirming the deletion before it happens (you are, aren't you?) you can simply use the confirmation routine to write a record to the table. We save the record's primary key (up to 3 separate fields) and the table name in a DeletedRecords table, which uses a system identifier and a long integer as its primary key. Once the user has pressed Del, the BeforeDelConfirm event fires, which happens before any delete confirm dialog is displayed (as long as you have the Record Changes checkbox set under Tools-->Options-->Edit/Find-->Confirm). BeforeDelConfirm still has access to the data which has been written to the buffer and removed from the active record. You could use this event to pop up your own custom confirmation dialog as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 10:27 AM To: accessd at databaseadvisors.com Subject: [AccessD] Audit trail of Deleted record. I am trying to find a means of auditing the deletion of records from a table (write a record in another table with the appropriate details of who, when, and key fields of the record being deleted). My attempt at using the BeforeDelConfirm event fails as the values of the form's fields of this bound form are already null (deleted). I was able to find some discussion of auditing changes to records in the archive, but am not able to find anything on deleted records. Anyone with some experience or suggestions on obtaining the values of a record once the user has selected the record and pressed Del, or selected Record Delete? Thank you in advance. Kevin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon May 1 13:21:29 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 01 May 2006 18:21:29 +0000 Subject: [AccessD] Audit trail of Deleted record. Message-ID: Kevin, I did something similar a few years ago. I had 100% control over the buttons/forms the user saw...I'm not sure how much access you allow your users. I gave them a delete button...it prompted "Are you sure"...if they said yes...it launched an append query to move the record to a new table...then a delete query to remove it from the original table. I later modified this because I didn't really need to move it out of the table...I just need to remove it from the user and reports. I created a delete flag in my table...and my delete button then just changed this flag to TRUE. My user forms and reports then used the same data source as before...just filtering out any records where Delete_Flag = TRUE. Hope it helps, Mark A. Matte >From: "Kevin Bachmeier" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: [AccessD] Audit trail of Deleted record. >Date: Mon, 1 May 2006 12:26:45 -0500 > >I am trying to find a means of auditing the deletion of records from a >table (write a record in another table with the appropriate details of >who, when, and key fields of the record being deleted). > >My attempt at using the BeforeDelConfirm event fails as the values of >the form's fields of this bound form are already null (deleted). > >I was able to find some discussion of auditing changes to records in the >archive, but am not able to find anything on deleted records. > >Anyone with some experience or suggestions on obtaining the values of a >record once the user has selected the record and pressed Del, or >selected Record Delete? > >Thank you in advance. >Kevin >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From kevinb at bepc.com Mon May 1 13:31:09 2006 From: kevinb at bepc.com (Kevin Bachmeier) Date: Mon, 1 May 2006 13:31:09 -0500 Subject: [AccessD] Audit trail of Deleted record. Message-ID: <5C210A2F04B76B4AB2A18E6FEB81713404D727CB@HDQ06.bepc.net> Thanks Jim and Charlotte for your response. Jim, I would use a status field rather than actually deleting if I had that control - that's not the case in my circumstances. Charlotte - I am trying to create the custom pop up, and I do have the 'record changes' option set, but referencing the value of the fields on the record is showing me that the current value is 'null' (via debug from immediate window). Is the 'record changes' option something I can control in code to ensure that it is set before opening this form? This is Access 2000 btw. Thank you. Kevin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 01, 2006 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Audit trail of Deleted record. Assuming you're confirming the deletion before it happens (you are, aren't you?) you can simply use the confirmation routine to write a record to the table. We save the record's primary key (up to 3 separate fields) and the table name in a DeletedRecords table, which uses a system identifier and a long integer as its primary key. Once the user has pressed Del, the BeforeDelConfirm event fires, which happens before any delete confirm dialog is displayed (as long as you have the Record Changes checkbox set under Tools-->Options-->Edit/Find-->Confirm). BeforeDelConfirm still has access to the data which has been written to the buffer and removed from the active record. You could use this event to pop up your own custom confirmation dialog as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 10:27 AM To: accessd at databaseadvisors.com Subject: [AccessD] Audit trail of Deleted record. I am trying to find a means of auditing the deletion of records from a table (write a record in another table with the appropriate details of who, when, and key fields of the record being deleted). My attempt at using the BeforeDelConfirm event fails as the values of the form's fields of this bound form are already null (deleted). I was able to find some discussion of auditing changes to records in the archive, but am not able to find anything on deleted records. Anyone with some experience or suggestions on obtaining the values of a record once the user has selected the record and pressed Del, or selected Record Delete? Thank you in advance. Kevin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From danielh at eti-canada.com Mon May 1 15:03:06 2006 From: danielh at eti-canada.com (Daniel Hurtubise) Date: Mon, 01 May 2006 16:03:06 -0400 Subject: [AccessD] access.exe process not terminating Message-ID: <4456697A.70506@eti-canada.com> Hello everyone: This is my first post. Sorry It might be a bit rough...... Objective: To have a screen change it labels depending on language selected. Situation: Labels are all successfully changed and application works perfectly. HOWEVER: when leaving the application MSACCESS.EXE does not close out in the task manager. This only happens if the translation module is called. The code is inoffensive but I've been at it now for two days !!!! The ghost being produced leaves me believing that something is not closed properly. Any ideas? Form A: Calls a function which sits within a Module ' ######################################################### ' Form Open Event ' ######################################################### Private Sub Form_Open(Cancel As Integer) ' ' Set Language to current form ' Call changeFormLanguage(glang, Me) End Sub Module Code: ' ######################################################### ' This section will cycle every form for a language change ' ######################################################### Public Function changeFormLanguage(strLang As String, strFormName As Form) Dim db As Database Dim recLang As Recordset Dim objAo As AccessObject Dim objCP As Object Dim FrmF As Form ' current form Dim ctlc As Control ' current control Dim strControlName As String ' name of control Dim intControlType As Integer ' control type Dim strLangField As String 'open the database and language recordset Set db = CurrentDb() Set recLang = db.OpenRecordset(wcs_LANGUAGE_TABLE) recLang.Index = "PrimaryKey" Set FrmF = strFormName strLangField = IIf(strLang = "English", "Lbl_DescEn", "Lbl_DescFr") With recLang .Seek "=", strFormName, strFormName 'add or update the form in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then FrmF.Caption = " " Else FrmF.Caption = .Fields(strLangField) End If 'now loop through the controls For Each ctlc In FrmF.Controls 'we are interested in the controls with captions intControlType = ctlc.ControlType If ControlHasCaption(intControlType) = True Then 'find the control in the language table strControlName = ctlc.Name .Seek "=", strFormName.Name, strControlName 'add or update the control in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then ctlc.Caption = "" Else ctlc.Caption = .Fields(strLangField) End If End If Next End With 'close up recLang.Close db.Close End Function From cfoust at infostatsystems.com Mon May 1 15:07:10 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 1 May 2006 13:07:10 -0700 Subject: [AccessD] Audit trail of Deleted record. Message-ID: Check the BeforeDelConfirm event in help for sample code. I am working with XP, so your mileage may vary. There were features that didn't exist in 2000, but I don't remember what they were after 7 years. :o< Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 11:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Audit trail of Deleted record. Thanks Jim and Charlotte for your response. Jim, I would use a status field rather than actually deleting if I had that control - that's not the case in my circumstances. Charlotte - I am trying to create the custom pop up, and I do have the 'record changes' option set, but referencing the value of the fields on the record is showing me that the current value is 'null' (via debug from immediate window). Is the 'record changes' option something I can control in code to ensure that it is set before opening this form? This is Access 2000 btw. Thank you. Kevin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 01, 2006 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Audit trail of Deleted record. Assuming you're confirming the deletion before it happens (you are, aren't you?) you can simply use the confirmation routine to write a record to the table. We save the record's primary key (up to 3 separate fields) and the table name in a DeletedRecords table, which uses a system identifier and a long integer as its primary key. Once the user has pressed Del, the BeforeDelConfirm event fires, which happens before any delete confirm dialog is displayed (as long as you have the Record Changes checkbox set under Tools-->Options-->Edit/Find-->Confirm). BeforeDelConfirm still has access to the data which has been written to the buffer and removed from the active record. You could use this event to pop up your own custom confirmation dialog as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 10:27 AM To: accessd at databaseadvisors.com Subject: [AccessD] Audit trail of Deleted record. I am trying to find a means of auditing the deletion of records from a table (write a record in another table with the appropriate details of who, when, and key fields of the record being deleted). My attempt at using the BeforeDelConfirm event fails as the values of the form's fields of this bound form are already null (deleted). I was able to find some discussion of auditing changes to records in the archive, but am not able to find anything on deleted records. Anyone with some experience or suggestions on obtaining the values of a record once the user has selected the record and pressed Del, or selected Record Delete? Thank you in advance. Kevin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon May 1 15:12:07 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 1 May 2006 13:12:07 -0700 Subject: [AccessD] Audit trail of Deleted record. Message-ID: OK, I reread your post and I think I see where we crossed purposed. The BeforeDelConfirm event fires after the record is "deleted" to the buffer, which is too late for what you want to do. What you can do is disable the AllowDeletions property of the form and provide a Delete command button. When the user selects a row and then clicks the command button, the record has not yet been deleted, and you can grab the information. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 11:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Audit trail of Deleted record. Thanks Jim and Charlotte for your response. Jim, I would use a status field rather than actually deleting if I had that control - that's not the case in my circumstances. Charlotte - I am trying to create the custom pop up, and I do have the 'record changes' option set, but referencing the value of the fields on the record is showing me that the current value is 'null' (via debug from immediate window). Is the 'record changes' option something I can control in code to ensure that it is set before opening this form? This is Access 2000 btw. Thank you. Kevin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 01, 2006 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Audit trail of Deleted record. Assuming you're confirming the deletion before it happens (you are, aren't you?) you can simply use the confirmation routine to write a record to the table. We save the record's primary key (up to 3 separate fields) and the table name in a DeletedRecords table, which uses a system identifier and a long integer as its primary key. Once the user has pressed Del, the BeforeDelConfirm event fires, which happens before any delete confirm dialog is displayed (as long as you have the Record Changes checkbox set under Tools-->Options-->Edit/Find-->Confirm). BeforeDelConfirm still has access to the data which has been written to the buffer and removed from the active record. You could use this event to pop up your own custom confirmation dialog as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 10:27 AM To: accessd at databaseadvisors.com Subject: [AccessD] Audit trail of Deleted record. I am trying to find a means of auditing the deletion of records from a table (write a record in another table with the appropriate details of who, when, and key fields of the record being deleted). My attempt at using the BeforeDelConfirm event fails as the values of the form's fields of this bound form are already null (deleted). I was able to find some discussion of auditing changes to records in the archive, but am not able to find anything on deleted records. Anyone with some experience or suggestions on obtaining the values of a record once the user has selected the record and pressed Del, or selected Record Delete? Thank you in advance. Kevin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at verizon.net Mon May 1 15:21:41 2006 From: mikedorism at verizon.net (Mike & Doris Manning) Date: Mon, 01 May 2006 16:21:41 -0400 Subject: [AccessD] access.exe process not terminating In-Reply-To: <4456697A.70506@eti-canada.com> Message-ID: <000b01c66d5c$dd0a81f0$2f01a8c0@dorismanning> You declare these two lines but don't do anything with them. Dim objAo As AccessObject Dim objCP As Object You close your database and recordset connection but then you don't release them by setting them to nothing. Doris Manning mikedorism at verizon.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Daniel Hurtubise Sent: Monday, May 01, 2006 4:03 PM To: accessd at databaseadvisors.com Subject: [AccessD] access.exe process not terminating Hello everyone: This is my first post. Sorry It might be a bit rough...... Objective: To have a screen change it labels depending on language selected. Situation: Labels are all successfully changed and application works perfectly. HOWEVER: when leaving the application MSACCESS.EXE does not close out in the task manager. This only happens if the translation module is called. The code is inoffensive but I've been at it now for two days !!!! The ghost being produced leaves me believing that something is not closed properly. Any ideas? Form A: Calls a function which sits within a Module ' ######################################################### ' Form Open Event ' ######################################################### Private Sub Form_Open(Cancel As Integer) ' ' Set Language to current form ' Call changeFormLanguage(glang, Me) End Sub Module Code: ' ######################################################### ' This section will cycle every form for a language change ' ######################################################### Public Function changeFormLanguage(strLang As String, strFormName As Form) Dim db As Database Dim recLang As Recordset Dim objAo As AccessObject Dim objCP As Object Dim FrmF As Form ' current form Dim ctlc As Control ' current control Dim strControlName As String ' name of control Dim intControlType As Integer ' control type Dim strLangField As String 'open the database and language recordset Set db = CurrentDb() Set recLang = db.OpenRecordset(wcs_LANGUAGE_TABLE) recLang.Index = "PrimaryKey" Set FrmF = strFormName strLangField = IIf(strLang = "English", "Lbl_DescEn", "Lbl_DescFr") With recLang .Seek "=", strFormName, strFormName 'add or update the form in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then FrmF.Caption = " " Else FrmF.Caption = .Fields(strLangField) End If 'now loop through the controls For Each ctlc In FrmF.Controls 'we are interested in the controls with captions intControlType = ctlc.ControlType If ControlHasCaption(intControlType) = True Then 'find the control in the language table strControlName = ctlc.Name .Seek "=", strFormName.Name, strControlName 'add or update the control in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then ctlc.Caption = "" Else ctlc.Caption = .Fields(strLangField) End If End If Next End With 'close up recLang.Close db.Close End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon May 1 15:29:30 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 01 May 2006 13:29:30 -0700 Subject: [AccessD] access.exe process not terminating References: <4456697A.70506@eti-canada.com> Message-ID: <44566FAA.4030703@shaw.ca> You may have the Form object still open after the close Set recLang = Nothing Set FrmF = Nothing Daniel Hurtubise wrote: >Hello everyone: > >This is my first post. Sorry It might be a bit rough...... > >Objective: To have a screen change it labels depending on language >selected. > >Situation: Labels are all successfully changed and application works >perfectly. HOWEVER: > when leaving the application MSACCESS.EXE does not close >out in > the task manager. This only happens if the translation >module is called. > >The code is inoffensive but I've been at it now for two days !!!! The >ghost being produced >leaves me believing that something is not closed properly. Any ideas? > >Form A: Calls a function which sits within a Module >' ######################################################### >' Form Open Event >' ######################################################### >Private Sub Form_Open(Cancel As Integer) > ' > ' Set Language to current form > ' > Call changeFormLanguage(glang, Me) >End Sub > > >Module Code: > >' ######################################################### >' This section will cycle every form for a language change >' ######################################################### >Public Function changeFormLanguage(strLang As String, strFormName As Form) > > Dim db As Database > Dim recLang As Recordset > Dim objAo As AccessObject > Dim objCP As Object > Dim FrmF As Form ' current form > Dim ctlc As Control ' current control > Dim strControlName As String ' name of control > Dim intControlType As Integer ' control type > Dim strLangField As String > > 'open the database and language recordset > Set db = CurrentDb() > Set recLang = db.OpenRecordset(wcs_LANGUAGE_TABLE) > recLang.Index = "PrimaryKey" > > Set FrmF = strFormName > > strLangField = IIf(strLang = "English", "Lbl_DescEn", "Lbl_DescFr") > With recLang > .Seek "=", strFormName, strFormName > > 'add or update the form in the language table > If .NoMatch Or IsNull(.Fields(strLangField)) Then > FrmF.Caption = " " > Else > FrmF.Caption = .Fields(strLangField) > End If > > 'now loop through the controls > For Each ctlc In FrmF.Controls > 'we are interested in the controls with captions > intControlType = ctlc.ControlType > If ControlHasCaption(intControlType) = True Then > 'find the control in the language table > strControlName = ctlc.Name > .Seek "=", strFormName.Name, strControlName > > 'add or update the control in the language table > If .NoMatch Or IsNull(.Fields(strLangField)) Then > ctlc.Caption = "" > Else > ctlc.Caption = .Fields(strLangField) > End If > End If > Next > End With > > 'close up > recLang.Close > db.Close >End Function > > > -- Marty Connelly Victoria, B.C. Canada From andy at minstersystems.co.uk Mon May 1 15:29:21 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 1 May 2006 21:29:21 +0100 Subject: [AccessD] access.exe process not terminating In-Reply-To: <4456697A.70506@eti-canada.com> Message-ID: <092c01c66d5d$ee37fab0$d1b20c54@minster33c3r25> Daniel As Doris says you need to set your objects to Nothing to resolve this, a long outstanding Access "feature". It's probably recLang that's your problem. Try: recLang.Close: Set recLang=Nothing db.Close: Set db = Nothing And if you ever do anything with the other 2 objects set them to nothing too. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Daniel Hurtubise > Sent: 01 May 2006 21:03 > To: accessd at databaseadvisors.com > Subject: [AccessD] access.exe process not terminating > > > Hello everyone: > > This is my first post. Sorry It might be a bit rough...... > > Objective: To have a screen change it labels depending on language > selected. > > Situation: Labels are all successfully changed and application works > perfectly. HOWEVER: > when leaving the application MSACCESS.EXE > does not close > out in > the task manager. This only happens if the > translation > module is called. > > The code is inoffensive but I've been at it now for two days > !!!! The > ghost being produced > leaves me believing that something is not closed properly. Any ideas? > > Form A: Calls a function which sits within a Module > ' ######################################################### > ' Form Open Event > ' ######################################################### > Private Sub Form_Open(Cancel As Integer) > ' > ' Set Language to current form > ' > Call changeFormLanguage(glang, Me) > End Sub > > > Module Code: > > ' ######################################################### > ' This section will cycle every form for a language change > ' ######################################################### > Public Function changeFormLanguage(strLang As String, > strFormName As Form) > > Dim db As Database > Dim recLang As Recordset > Dim objAo As AccessObject > Dim objCP As Object > Dim FrmF As Form ' current form > Dim ctlc As Control ' current control > Dim strControlName As String ' name of control > Dim intControlType As Integer ' control type > Dim strLangField As String > > 'open the database and language recordset > Set db = CurrentDb() > Set recLang = db.OpenRecordset(wcs_LANGUAGE_TABLE) > recLang.Index = "PrimaryKey" > > Set FrmF = strFormName > > strLangField = IIf(strLang = "English", "Lbl_DescEn", > "Lbl_DescFr") > With recLang > .Seek "=", strFormName, strFormName > > 'add or update the form in the language table > If .NoMatch Or IsNull(.Fields(strLangField)) Then > FrmF.Caption = " " > Else > FrmF.Caption = .Fields(strLangField) > End If > > 'now loop through the controls > For Each ctlc In FrmF.Controls > 'we are interested in the controls with captions > intControlType = ctlc.ControlType > If ControlHasCaption(intControlType) = True Then > 'find the control in the language table > strControlName = ctlc.Name > .Seek "=", strFormName.Name, strControlName > > 'add or update the control in the language table > If .NoMatch Or IsNull(.Fields(strLangField)) Then > ctlc.Caption = "" > Else > ctlc.Caption = .Fields(strLangField) > End If > End If > Next > End With > > 'close up > recLang.Close > db.Close > End Function > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From danielh at eti-canada.com Mon May 1 15:32:40 2006 From: danielh at eti-canada.com (Daniel Hurtubise) Date: Mon, 1 May 2006 16:32:40 -0400 Subject: [AccessD] access.exe process not terminating In-Reply-To: <000b01c66d5c$dd0a81f0$2f01a8c0@dorismanning> Message-ID: <20060501203425.PQYO24441.tomts29-srv.bellnexxia.net@DF2NX921> Hello Doris: Your right! However I took out the two Dim statements and I set Set ctlc = Nothing Set recLang = Nothing Set db = Nothing and I still get the same error. Should I post a new thread with those corrections so that everyone knows of the new code? Regards -- Daniel Hurtubise -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: May 1, 2006 4:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] access.exe process not terminating You declare these two lines but don't do anything with them. Dim objAo As AccessObject Dim objCP As Object You close your database and recordset connection but then you don't release them by setting them to nothing. Doris Manning mikedorism at verizon.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Daniel Hurtubise Sent: Monday, May 01, 2006 4:03 PM To: accessd at databaseadvisors.com Subject: [AccessD] access.exe process not terminating Hello everyone: This is my first post. Sorry It might be a bit rough...... Objective: To have a screen change it labels depending on language selected. Situation: Labels are all successfully changed and application works perfectly. HOWEVER: when leaving the application MSACCESS.EXE does not close out in the task manager. This only happens if the translation module is called. The code is inoffensive but I've been at it now for two days !!!! The ghost being produced leaves me believing that something is not closed properly. Any ideas? Form A: Calls a function which sits within a Module ' ######################################################### ' Form Open Event ' ######################################################### Private Sub Form_Open(Cancel As Integer) ' ' Set Language to current form ' Call changeFormLanguage(glang, Me) End Sub Module Code: ' ######################################################### ' This section will cycle every form for a language change ' ######################################################### Public Function changeFormLanguage(strLang As String, strFormName As Form) Dim db As Database Dim recLang As Recordset Dim objAo As AccessObject Dim objCP As Object Dim FrmF As Form ' current form Dim ctlc As Control ' current control Dim strControlName As String ' name of control Dim intControlType As Integer ' control type Dim strLangField As String 'open the database and language recordset Set db = CurrentDb() Set recLang = db.OpenRecordset(wcs_LANGUAGE_TABLE) recLang.Index = "PrimaryKey" Set FrmF = strFormName strLangField = IIf(strLang = "English", "Lbl_DescEn", "Lbl_DescFr") With recLang .Seek "=", strFormName, strFormName 'add or update the form in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then FrmF.Caption = " " Else FrmF.Caption = .Fields(strLangField) End If 'now loop through the controls For Each ctlc In FrmF.Controls 'we are interested in the controls with captions intControlType = ctlc.ControlType If ControlHasCaption(intControlType) = True Then 'find the control in the language table strControlName = ctlc.Name .Seek "=", strFormName.Name, strControlName 'add or update the control in the language table If .NoMatch Or IsNull(.Fields(strLangField)) Then ctlc.Caption = "" Else ctlc.Caption = .Fields(strLangField) End If End If Next End With 'close up recLang.Close db.Close 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 garykjos at gmail.com Mon May 1 15:43:24 2006 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 1 May 2006 15:43:24 -0500 Subject: [AccessD] access.exe process not terminating In-Reply-To: <20060501203425.PQYO24441.tomts29-srv.bellnexxia.net@DF2NX921> References: <000b01c66d5c$dd0a81f0$2f01a8c0@dorismanning> <20060501203425.PQYO24441.tomts29-srv.bellnexxia.net@DF2NX921> Message-ID: Hi Daniel, No need for an entire new thread but you can post a message with the same subject with the current code after the most recent changes that didn't do the trick for you jsut so we are current with where you are at now. GK On 5/1/06, Daniel Hurtubise wrote: > Hello Doris: > > Your right! However I took out the two Dim statements and I set > Set ctlc = Nothing > Set recLang = Nothing > Set db = Nothing > > and I still get the same error. Should I post a new thread with > those corrections so that everyone knows of the new code? > > Regards > -- > Daniel Hurtubise -- Gary Kjos garykjos at gmail.com From Gustav at cactus.dk Tue May 2 02:42:12 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 May 2006 09:42:12 +0200 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: Hi Scott Well, it could be, and I considered some IIf() constructs too, but they got too long-winded. Further, your suggestion doesn't return the expected output beyond 5: ID Sgn IIf 0 0 0 1 0 0 2 3 3 3 3 3 4 3 3 5 7 6 6 7 6 7 7 6 8 7 9 9 10 9 10 10 9 11 10 12 12 13 12 13 13 12 14 13 15 /gustav >>> marcus at tsstech.com 01-05-2006 19:24 >>> I don't know if this is any better... ID + iif((ID mod 3) <= 1,0,3) - (ID mod 3) Scott Marcus Computer Programmer TSS Technologies Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 01, 2006 12:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Rounding in SQL Server ODBC Hi all The SQL Server ODBC driver sometimes does some funny rounding when handling doubles: ID RoundedID 0 0 1 0 2 3 3 3 4 3 5 7 6 7 7 7 8 7 9 10 10 10 11 10 12 13 13 13 14 13 15 17 16 17 17 17 18 17 19 20 ... 990 990 991 990 992 993 993 993 994 993 995 997 996 997 997 997 998 997 999 0 These are the last decimal part of Doubles. As you can see, they are rounded by 3, sort of. I need to simulate this rounding in Access SQL and came up with this solution using Sgn() and integer division: .. (([ID]\10)*10 +Sgn(([ID] Mod 10)\2)*3 +Sgn(([ID] Mod 10)\5)*4 +Sgn(([ID] Mod 10)\9)*3) Mod 1000 AS RoundedID The value must not exceed 1000, that's what the "Mod 1000" does. This works exactly as I wish but it looks clumsy. Would anyone have a simpler method? The tricky part is, that 7 is present four times per ten elements while 0 and 3 each only count for three; this breaks a sequence of integer dividing by 3. /gustav From Gustav at cactus.dk Tue May 2 03:54:05 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 May 2006 10:54:05 +0200 Subject: [AccessD] access.exe process not terminating Message-ID: Hi Daniel These lines should not be needed: Dim objAo As AccessObject Dim objCP As Object db.Close Also, you are mixing up Me (a form object) and strFormName which you declare as a Form while you (correctly) think it is a string: Public Function changeFormLanguage(strLang As String, strFormName As Form) .Seek "=", strFormName, strFormName /gustav From stuart at lexacorp.com.pg Tue May 2 05:51:37 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 02 May 2006 20:51:37 +1000 Subject: [AccessD] Rounding in SQL Server ODBC In-Reply-To: Message-ID: <4457C659.19005.A9D943@stuart.lexacorp.com.pg> On 2 May 2006 at 9:42, Gustav Brock wrote: > Hi Scott > > Well, it could be, and I considered some IIf() constructs too, but they got > too long-winded. How about: (ID \ 10) * 10 + Choose(ID Mod 10 + 1, 0, 0, 3, 3, 3, 7, 7, 7, 7,10) -- Stuart From Gustav at cactus.dk Tue May 2 08:23:12 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 May 2006 15:23:12 +0200 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: Hi all My mistake - thought the underlying data type of datetime was double as in Access, but: Date and time data from January 1, 1753, through December 31, 9999, with an accuracy of three-hundredths of a second, or 3.33 milliseconds. Thus, if you wish to store datetime in SQL Server with millisecond resolution you'll have to use double - and run your own converting routines - or leave the date field rounded down to integer seconds and add another field for milliseconds resolution in double or smallint. /gustav >>> Gustav at cactus.dk 01-05-2006 18:53:32 >>> The SQL Server ODBC driver sometimes does some funny rounding when handling doubles: These are the last decimal part of Doubles. As you can see, they are rounded by 3, sort of. From Gustav at cactus.dk Tue May 2 08:39:48 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 May 2006 15:39:48 +0200 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: Hi Stuart Thanks! That could do it. I wish to avoid a custom external function but had forgotten Choose() which is external though not custom. >>> stuart at lexacorp.com.pg 02-05-2006 12:51:37 >>> On 2 May 2006 at 9:42, Gustav Brock wrote: > Hi Scott > > Well, it could be, and I considered some IIf() constructs too, but they got > too long-winded. How about: (ID \ 10) * 10 + Choose(ID Mod 10 + 1, 0, 0, 3, 3, 3, 7, 7, 7, 7,10) -- Stuart From Lambert.Heenan at AIG.com Tue May 2 08:49:16 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 2 May 2006 09:49:16 -0400 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F211EF7C0@xlivmbx21.aig.com> Looks like a neater solution, but I'm highly curious as to why SQL server has this bizarre form of rounding in the first place! Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 02, 2006 6:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding in SQL Server ODBC On 2 May 2006 at 9:42, Gustav Brock wrote: > Hi Scott > > Well, it could be, and I considered some IIf() constructs too, but > they got too long-winded. How about: (ID \ 10) * 10 + Choose(ID Mod 10 + 1, 0, 0, 3, 3, 3, 7, 7, 7, 7,10) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelbroadband.in Tue May 2 09:21:40 2006 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Tue, 2 May 2006 19:51:40 +0530 Subject: [AccessD] Audit trail of Deleted record. References: Message-ID: <009101c66df3$c682a8d0$b01265cb@pcadt> Kevin, Form's Delete event occurs before its BeforeDelConfirm event. Both can be cancelled if desired. At Delete event stage, the record under deletion is still the current one and correct values for various controls are returned. By the time you encounter BeforeDelConfirm event, the record next to that meant for deletion becomes the current record and the values returned become misleading. For your case, Delete event should be the one to use. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, May 02, 2006 01:42 Subject: Re: [AccessD] Audit trail of Deleted record. OK, I reread your post and I think I see where we crossed purposed. The BeforeDelConfirm event fires after the record is "deleted" to the buffer, which is too late for what you want to do. What you can do is disable the AllowDeletions property of the form and provide a Delete command button. When the user selects a row and then clicks the command button, the record has not yet been deleted, and you can grab the information. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 11:31 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Audit trail of Deleted record. Thanks Jim and Charlotte for your response. Jim, I would use a status field rather than actually deleting if I had that control - that's not the case in my circumstances. Charlotte - I am trying to create the custom pop up, and I do have the 'record changes' option set, but referencing the value of the fields on the record is showing me that the current value is 'null' (via debug from immediate window). Is the 'record changes' option something I can control in code to ensure that it is set before opening this form? This is Access 2000 btw. Thank you. Kevin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 01, 2006 1:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Audit trail of Deleted record. Assuming you're confirming the deletion before it happens (you are, aren't you?) you can simply use the confirmation routine to write a record to the table. We save the record's primary key (up to 3 separate fields) and the table name in a DeletedRecords table, which uses a system identifier and a long integer as its primary key. Once the user has pressed Del, the BeforeDelConfirm event fires, which happens before any delete confirm dialog is displayed (as long as you have the Record Changes checkbox set under Tools-->Options-->Edit/Find-->Confirm). BeforeDelConfirm still has access to the data which has been written to the buffer and removed from the active record. You could use this event to pop up your own custom confirmation dialog as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kevin Bachmeier Sent: Monday, May 01, 2006 10:27 AM To: accessd at databaseadvisors.com Subject: [AccessD] Audit trail of Deleted record. I am trying to find a means of auditing the deletion of records from a table (write a record in another table with the appropriate details of who, when, and key fields of the record being deleted). My attempt at using the BeforeDelConfirm event fails as the values of the form's fields of this bound form are already null (deleted). I was able to find some discussion of auditing changes to records in the archive, but am not able to find anything on deleted records. Anyone with some experience or suggestions on obtaining the values of a record once the user has selected the record and pressed Del, or selected Record Delete? Thank you in advance. Kevin From Gustav at cactus.dk Tue May 2 09:46:20 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 May 2006 16:46:20 +0200 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: Hi Lambert Historical reasons? Back to the common Sybase code base? I have no idea but that rounding method is truly weird. /gustav >>> Lambert.Heenan at AIG.com 02-05-2006 15:49:16 >>> Looks like a neater solution, but I'm highly curious as to why SQL server has this bizarre form of rounding in the first place! Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 02, 2006 6:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding in SQL Server ODBC On 2 May 2006 at 9:42, Gustav Brock wrote: > Hi Scott > > Well, it could be, and I considered some IIf() constructs too, but > they got too long-winded. How about: (ID \ 10) * 10 + Choose(ID Mod 10 + 1, 0, 0, 3, 3, 3, 7, 7, 7, 7,10) -- Stuart From bchacc at san.rr.com Tue May 2 10:28:23 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 02 May 2006 08:28:23 -0700 Subject: [AccessD] Access and AutoCAD Message-ID: <44577A97.9010100@san.rr.com> Dear List: A client is having problems running an A2K mde on one machine but not on any others. The machine where it fails has AutoCAD loaded on it. That's the only difference he notes. Are there any known incompatibilities between A2K and AutoCAD? MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From cfoust at infostatsystems.com Tue May 2 10:41:11 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 May 2006 08:41:11 -0700 Subject: [AccessD] Access and AutoCAD Message-ID: What are the problem he has, Rocky, and what level of A2k SPs? I seem to recall a problem with AutoCAD and A2k, but it's been years ago, so my memory is vague. 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: Tuesday, May 02, 2006 8:28 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access and AutoCAD Dear List: A client is having problems running an A2K mde on one machine but not on any others. The machine where it fails has AutoCAD loaded on it. That's the only difference he notes. Are there any known incompatibilities between A2K and AutoCAD? 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 Chester_Kaup at kindermorgan.com Tue May 2 11:10:59 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 2 May 2006 11:10:59 -0500 Subject: [AccessD] Data from a SQL Server Table Message-ID: I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? 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 cfoust at infostatsystems.com Tue May 2 11:28:40 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 May 2006 09:28:40 -0700 Subject: [AccessD] Data from a SQL Server Table Message-ID: Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? 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 becklesd at tiscali.co.uk Tue May 2 13:09:19 2006 From: becklesd at tiscali.co.uk (David Beckles) Date: Tue, 02 May 2006 18:09:19 +0000 Subject: [AccessD] Audit trail of Deleted record In-Reply-To: References: Message-ID: <4457A04F.4080505@tiscali.co.uk> Hi, Kevin, Take a look at these pages from Allen Browne: http://www.everythingaccess.com/tutorials.asp?ID=Creating-an-Audit-Trail and http://allenbrowne.com/AppAudit.html I think that you will find that they cover your problem fairly thoroughly. Hope that this helps, David ------------Original Message---------------------- > Date: Mon, 1 May 2006 12:26:45 -0500 > From: "Kevin Bachmeier" > Subject: [AccessD] Audit trail of Deleted record. > To: > Message-ID: <5C210A2F04B76B4AB2A18E6FEB81713404D727C7 at HDQ06.bepc.net> > Content-Type: text/plain; charset="us-ascii" > > I am trying to find a means of auditing the deletion of records from a > table (write a record in another table with the appropriate details of > who, when, and key fields of the record being deleted). > > My attempt at using the BeforeDelConfirm event fails as the values of > the form's fields of this bound form are already null (deleted). > > I was able to find some discussion of auditing changes to records in the > archive, but am not able to find anything on deleted records. > > Anyone with some experience or suggestions on obtaining the values of a > record once the user has selected the record and pressed Del, or > selected Record Delete? > > Thank you in advance. > Kevin > From Chester_Kaup at kindermorgan.com Tue May 2 13:52:06 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 2 May 2006 13:52:06 -0500 Subject: [AccessD] Data from a SQL Server Table Message-ID: Access 2003 SQL Server 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kevinb at bepc.com Tue May 2 13:54:51 2006 From: kevinb at bepc.com (Kevin Bachmeier) Date: Tue, 2 May 2006 13:54:51 -0500 Subject: [AccessD] Audit trail of Deleted record Message-ID: <5C210A2F04B76B4AB2A18E6FEB81713404D727D8@HDQ06.bepc.net> Thanks David - this looks like it will work! This list rocks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Beckles Sent: Tuesday, May 02, 2006 1:09 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Audit trail of Deleted record Hi, Kevin, Take a look at these pages from Allen Browne: http://www.everythingaccess.com/tutorials.asp?ID=Creating-an-Audit-Trail and http://allenbrowne.com/AppAudit.html I think that you will find that they cover your problem fairly thoroughly. Hope that this helps, David ------------Original Message---------------------- > Date: Mon, 1 May 2006 12:26:45 -0500 > From: "Kevin Bachmeier" > Subject: [AccessD] Audit trail of Deleted record. > To: > Message-ID: <5C210A2F04B76B4AB2A18E6FEB81713404D727C7 at HDQ06.bepc.net> > Content-Type: text/plain; charset="us-ascii" > > I am trying to find a means of auditing the deletion of records from a > table (write a record in another table with the appropriate details of > who, when, and key fields of the record being deleted). > > My attempt at using the BeforeDelConfirm event fails as the values of > the form's fields of this bound form are already null (deleted). > > I was able to find some discussion of auditing changes to records in > the archive, but am not able to find anything on deleted records. > > Anyone with some experience or suggestions on obtaining the values of > a record once the user has selected the record and pressed Del, or > selected Record Delete? > > Thank you in advance. > Kevin > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue May 2 14:58:55 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 May 2006 12:58:55 -0700 Subject: [AccessD] Data from a SQL Server Table Message-ID: Are you using a query to view the data? Are you trying to sort on the memo field? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 11:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Access 2003 SQL Server 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue May 2 15:18:37 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 03 May 2006 06:18:37 +1000 Subject: [AccessD] Rounding in SQL Server ODBC In-Reply-To: Message-ID: <44584B3D.32282.2B0F097@stuart.lexacorp.com.pg> On 2 May 2006 at 15:39, Gustav Brock wrote: > Hi Stuart > > Thanks! That could do it. > I wish to avoid a custom external function but had forgotten Choose() which > is external though not custom. > What do you mean by "external"? How does Choose() differ from Mod, Sgn(), IIf() etc? -- Stuart From Lambert.Heenan at AIG.com Tue May 2 15:32:06 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 2 May 2006 15:32:06 -0500 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F211EFA23@xlivmbx21.aig.com> Gustav did not want to use a "custom external function", i.e. one defined in a VBA module. Choose() (and Mod() and Sgn()) are all implemented in the various DLLs that go to make up Access and consequently run a lot faster than custom functions. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 02, 2006 4:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding in SQL Server ODBC On 2 May 2006 at 15:39, Gustav Brock wrote: > Hi Stuart > > Thanks! That could do it. > I wish to avoid a custom external function but had forgotten Choose() which > is external though not custom. > What do you mean by "external"? How does Choose() differ from Mod, Sgn(), IIf() etc? -- 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 May 2 16:25:57 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 02 May 2006 14:25:57 -0700 Subject: [AccessD] Access and AutoCAD In-Reply-To: References: Message-ID: <4457CE65.7050200@san.rr.com> Don't know. I'll ask. Rocky Charlotte Foust wrote: > What are the problem he has, Rocky, and what level of A2k SPs? I seem > to recall a problem with AutoCAD and A2k, but it's been years ago, so my > memory is vague. > > > 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: Tuesday, May 02, 2006 8:28 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Access and AutoCAD > > Dear List: > > A client is having problems running an A2K mde on one machine but not on > any others. The machine where it fails has AutoCAD loaded on it. > That's the only difference he notes. > > Are there any known incompatibilities between A2K and AutoCAD? > > 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 Chester_Kaup at kindermorgan.com Tue May 2 16:30:42 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 2 May 2006 16:30:42 -0500 Subject: [AccessD] Data from a SQL Server Table Message-ID: If I directly open the table I do not see the whole memo field. If I open it in a form I see the whole field. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Are you using a query to view the data? Are you trying to sort on the memo field? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 11:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Access 2003 SQL Server 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue May 2 17:16:49 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 May 2006 15:16:49 -0700 Subject: [AccessD] Data from a SQL Server Table Message-ID: Then if you can see the whole value in a form, what's the problem? You don't let users see the linked table anyhow. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 2:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table If I directly open the table I do not see the whole memo field. If I open it in a form I see the whole field. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Are you using a query to view the data? Are you trying to sort on the memo field? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 11:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Access 2003 SQL Server 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue May 2 17:18:07 2006 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 03 May 2006 00:18:07 +0200 Subject: [AccessD] Rounding in SQL Server ODBC Message-ID: Hi Stuart I mean external to JET SQL. Mod is not (it's an operator) but Sgn(), IIf() and Choose() are. But as they belong to VBA they run faster than a custom function. If that didn't matter I would probably use a custom function with a Select .. construct. But your suggestion with Choose() seems to work just fine. /gustav >>> stuart at lexacorp.com.pg 02-05-06 22:18 >>> On 2 May 2006 at 15:39, Gustav Brock wrote: > Hi Stuart > > Thanks! That could do it. > I wish to avoid a custom external function but had forgotten Choose() which > is external though not custom. > What do you mean by "external"? How does Choose() differ from Mod, Sgn(), IIf() etc? -- Stuart From rusty.hammond at cpiqpc.com Tue May 2 17:22:21 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Tue, 2 May 2006 17:22:21 -0500 Subject: [AccessD] Converting Access 97 to Access 2003 Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F86E1@cpixchng-1.cpiqpc.net> I'm just starting to work on converting our Access 97 databases over to Access 2003 and the first one I tried converted with no issues and seems to work fine so far. I still have lot of testing to do but I can hardly believe I haven't found issues yet. This is a fairly involved application (front end utilizing SQL 2000 linked tables, importing excel spreadsheets, exporting to excel and running code in the excel workbook, etc..) I ran the Access 2003 Conversion toolkit and the details of the database are: 111 Tables 186 Queries 65 Forms 52 Reports 12 Macros (for custom menu bar) 12 Modules (with thousands of lines of code). My question is, has everyone that has done this type of conversion had this same type of success with converting to A2003? Rusty Hammond IT Dept. - B-20 CPI Qualified Plan Consultants, Inc. (620) 793-8473 ext. 416 rusty.hammond at cpiqpc.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 bchacc at san.rr.com Tue May 2 22:56:52 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 02 May 2006 20:56:52 -0700 Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] Message-ID: <44582A04.1030800@san.rr.com> Charlotte: More information about the apparent incompatibility with AutoCAD. Although it could be due to some other cause, of course. Does this information give you any ideas? TIA Rocky -------- Original Message -------- Subject: Re: Re: [AccessD] Access and AutoCAD] Date: Wed, 03 May 2006 08:22:08 +0530 From: R Ramamurthy To: Rocky Smolin - Beach Access Software References: <4457AD11.7020700 at san.rr.com> Rocky, Here is the mail I sent you on the 3rd April: >>I never heard of an incompatibility with AutoCAD but I suppose it's possible. Do any other access mdbs have this problem on this machine? ## The Access program itself opens in that computer but only PPM does not. There are no other *.mdb files to try out. And all other computers in the LAN do not have this problem. ## The failure message that appears (under the PPM blue strip in the warning window) reads as: "The expression On Open you entered as the event property setting produced the following errors: Licence information for the component not found. You do not have an appropriate licence to use the functionality in the design environment. * The expression may not result in the name of a macro, the name of a user-defined function, or [ Event procedure ] * There may have been an error evaluating the function, event, or macro" ## Rocky, please note the words 'On Open', both with capital O's 'design environment' Do these provide a clue? Does the PPM program generate such a warning? R. Ramamurthy ----- Original Message ----- *From:* Rocky Smolin - Beach Access Software *To:* R. Ramamurthy *Sent:* Wednesday, May 03, 2006 12:33 AM *Subject:* [Fwd: Re: [AccessD] Access and AutoCAD] Ram: Can you give me any more details about exactly what happens when you try to run PPM on the machine with AutoCAD? Do you know if they're up to date on all Office and Windows service packs? Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From shamil at users.mns.ru Wed May 3 04:52:56 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 3 May 2006 13:52:56 +0400 Subject: [AccessD] .pdf form -> Word doc convesion Message-ID: <000d01c66e97$60139150$6501a8c0@Nant> Hi All, Could you please advise is there somewhere a free tool to fulfill the subject task? I need to convert just one form, fill it, print it and snail mail - therefore free solution is preferable. If anybody has commercial tool and can help me to convert the .pdf form to .doc format please write me privately. I have heard that MS Word 12 is able to import .pdf forms? Is that true? Thank you. Shamil From mwp.reid at qub.ac.uk Wed May 3 05:06:07 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 3 May 2006 11:06:07 +0100 Subject: [AccessD] .pdf form -> Word doc convesion References: <000d01c66e97$60139150$6501a8c0@Nant> Message-ID: Shamil Just tried to open a PDF with Word 12 and it dodnt work. It wil save as PDF If you want to send me the file and the instructions I have adobe here and can do this for you. I wil lbe in the office for another Hour then I have to go teach. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Wed 03/05/2006 10:52 To: !DBA-MAIN Subject: [AccessD] .pdf form -> Word doc convesion Hi All, Could you please advise is there somewhere a free tool to fulfill the subject task? I need to convert just one form, fill it, print it and snail mail - therefore free solution is preferable. If anybody has commercial tool and can help me to convert the .pdf form to .doc format please write me privately. I have heard that MS Word 12 is able to import .pdf forms? Is that true? Thank you. Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed May 3 05:44:54 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 03 May 2006 12:44:54 +0200 Subject: [AccessD] .pdf form -> Word doc convesion Message-ID: Hi Shamil Could this tool be used: http://www.accesspdf.com/pdftk/ By the way, it looks useful for many PDF tasks ... Runs on Windows, Linux, Mac OS X, FreeBSD and Solaris. /gustav >>> shamil at users.mns.ru 03-05-2006 11:52:56 >>> Hi All, Could you please advise is there somewhere a free tool to fulfill the subject task? I need to convert just one form, fill it, print it and snail mail - therefore free solution is preferable. If anybody has commercial tool and can help me to convert the .pdf form to .doc format please write me privately. I have heard that MS Word 12 is able to import .pdf forms? Is that true? Thank you. Shamil From Chester_Kaup at kindermorgan.com Wed May 3 07:42:59 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 3 May 2006 07:42:59 -0500 Subject: [AccessD] Data from a SQL Server Table Message-ID: The problem is I need to manipulate the data. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Then if you can see the whole value in a form, what's the problem? You don't let users see the linked table anyhow. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 2:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table If I directly open the table I do not see the whole memo field. If I open it in a form I see the whole field. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Are you using a query to view the data? Are you trying to sort on the memo field? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 11:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Access 2003 SQL Server 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed May 3 07:54:43 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 3 May 2006 08:54:43 -0400 Subject: [AccessD] Converting Access 97 to Access 2003 Message-ID: <08F823FD83787D4BA0B99CA580AD3C7403717223@TTNEXCHCL2.hshhp.com> Rusty, We're in the midst converting many Access 97 apps to 2003 and have encountered nothing to stop us thus far. The apps range from tiny workgroup level tools with mdb FE and BE to larger sytems with SQL BE's. HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Tuesday, May 02, 2006 6:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Converting Access 97 to Access 2003 I'm just starting to work on converting our Access 97 databases over to Access 2003 and the first one I tried converted with no issues and seems to work fine so far. I still have lot of testing to do but I can hardly believe I haven't found issues yet. This is a fairly involved application (front end utilizing SQL 2000 linked tables, importing excel spreadsheets, exporting to excel and running code in the excel workbook, etc..) I ran the Access 2003 Conversion toolkit and the details of the database are: 111 Tables 186 Queries 65 Forms 52 Reports 12 Macros (for custom menu bar) 12 Modules (with thousands of lines of code). My question is, has everyone that has done this type of conversion had this same type of success with converting to A2003? Rusty Hammond IT Dept. - B-20 CPI Qualified Plan Consultants, Inc. (620) 793-8473 ext. 416 rusty.hammond at cpiqpc.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed May 3 08:24:06 2006 From: cyx5 at cdc.gov (Long, Karen S. (CDC/NIOSH/NPPTL) (CTR)) Date: Wed, 3 May 2006 09:24:06 -0400 Subject: [AccessD] Data from a SQL Server Table Message-ID: Too bad you can't use the Rich Text Format box from .net. Have you thought about using vb script to write the contents of the memo field to a .txt file, displaying that document, making changes, and then send it back to SQL? I have some code that will do that - I had a problem sort of like yours. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, May 03, 2006 8:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table The problem is I need to manipulate the data. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Then if you can see the whole value in a form, what's the problem? You don't let users see the linked table anyhow. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 2:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table If I directly open the table I do not see the whole memo field. If I open it in a form I see the whole field. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Are you using a query to view the data? Are you trying to sort on the memo field? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 11:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Access 2003 SQL Server 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Wed May 3 08:37:50 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 3 May 2006 08:37:50 -0500 Subject: [AccessD] Data from a SQL Server Table Message-ID: I may have to do something like that because an export from access to a text file only got the first 474 characters of the memo field. Why that number I don't know. Certainly not a multiple of 2. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Long, Karen S. (CDC/NIOSH/NPPTL) (CTR) Sent: Wednesday, May 03, 2006 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Too bad you can't use the Rich Text Format box from .net. Have you thought about using vb script to write the contents of the memo field to a .txt file, displaying that document, making changes, and then send it back to SQL? I have some code that will do that - I had a problem sort of like yours. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, May 03, 2006 8:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table The problem is I need to manipulate the data. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Then if you can see the whole value in a form, what's the problem? You don't let users see the linked table anyhow. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 2:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table If I directly open the table I do not see the whole memo field. If I open it in a form I see the whole field. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Are you using a query to view the data? Are you trying to sort on the memo field? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 11:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Access 2003 SQL Server 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Which versions of Access and SQL Server? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 9:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data from a SQL Server Table I am try to view the data from a SQL table that has one field that Access shows in design mode to be a memo field. Only part of the field displays. I tried exporting it to a text file and viewing it in Wordpad. I see more of the field but not all of it There is a distinct cutoff point (474 characters total on one line). Any suggestions on how to see all the contents of the field. I tried the LEN function on the field for one long record and got a count of 240. I know there are more characters than that. Does LEN not work on memo fields? Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 May 3 08:50:42 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 03 May 2006 06:50:42 -0700 Subject: [AccessD] Query Linking Unlike Fields Message-ID: <4458B532.3050504@san.rr.com> Dear List: The affiliate ID in our affiliate program is a long integer - as it should be. However, the affiliate ID is recorded from the PayPal transaction in a text field. So When I try to link them in a query to show affiliate sales by affiliate name, of course, I get a data type mismatch. Is there a way around this short of altering the tables? MTIA, Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Chester_Kaup at kindermorgan.com Wed May 3 08:55:16 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 3 May 2006 08:55:16 -0500 Subject: [AccessD] Query Linking Unlike Fields Message-ID: Could you run an intermediate query to convert the data type? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, May 03, 2006 8:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query Linking Unlike Fields Dear List: The affiliate ID in our affiliate program is a long integer - as it should be. However, the affiliate ID is recorded from the PayPal transaction in a text field. So When I try to link them in a query to show affiliate sales by affiliate name, of course, I get a data type mismatch. Is there a way around this short of altering the tables? 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 rusty.hammond at cpiqpc.com Wed May 3 09:07:57 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 3 May 2006 09:07:57 -0500 Subject: [AccessD] Converting Access 97 to Access 2003 Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F86E5@cpixchng-1.cpiqpc.net> Thanks Jim, that's good news. It seems like when I played with converting apps to Access 2000 some years ago, there were some immediately noticeable things that we were going to have to fix after the conversion. Thanks again, Rusty -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Wednesday, May 03, 2006 7:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Converting Access 97 to Access 2003 Rusty, We're in the midst converting many Access 97 apps to 2003 and have encountered nothing to stop us thus far. The apps range from tiny workgroup level tools with mdb FE and BE to larger sytems with SQL BE's. HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Tuesday, May 02, 2006 6:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Converting Access 97 to Access 2003 I'm just starting to work on converting our Access 97 databases over to Access 2003 and the first one I tried converted with no issues and seems to work fine so far. I still have lot of testing to do but I can hardly believe I haven't found issues yet. This is a fairly involved application (front end utilizing SQL 2000 linked tables, importing excel spreadsheets, exporting to excel and running code in the excel workbook, etc..) I ran the Access 2003 Conversion toolkit and the details of the database are: 111 Tables 186 Queries 65 Forms 52 Reports 12 Macros (for custom menu bar) 12 Modules (with thousands of lines of code). My question is, has everyone that has done this type of conversion had this same type of success with converting to A2003? Rusty Hammond IT Dept. - B-20 CPI Qualified Plan Consultants, Inc. (620) 793-8473 ext. 416 rusty.hammond at cpiqpc.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- 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 papparuff at comcast.net Wed May 3 09:10:39 2006 From: papparuff at comcast.net (papparuff at comcast.net) Date: Wed, 03 May 2006 14:10:39 +0000 Subject: [AccessD] Query Linking Unlike Fields Message-ID: <050320061410.13473.4458B9DF00059423000034A1220642461300009A9D0E9F9F0E9F@comcast.net> create a query for your affiliate ID that is an integer and convert it to text in the query. MyAffiliateID: CStr([affiliate ID]) Then you can use this query to link to the PayPal affiliate ID. papparuff -- John V. Ruff ? The Eternal Optimist :-) ?Commit to the Lord whatever you do, and your plans will succeed.? Proverbs 16:3 -------------- Original message -------------- From: Rocky Smolin - Beach Access Software > Dear List: > > The affiliate ID in our affiliate program is a long integer - as it > should be. However, the affiliate ID is recorded from the PayPal > transaction in a text field. So When I try to link them in a query to > show affiliate sales by affiliate name, of course, I get a data type > mismatch. Is there a way around this short of altering the tables? > > 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 Wed May 3 09:22:57 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 03 May 2006 07:22:57 -0700 Subject: [AccessD] Query Linking Unlike Fields In-Reply-To: References: Message-ID: <4458BCC1.6060901@san.rr.com> I suppose...do a make table query with the payment fields I want and the affiliate number in a long integer field? Then run a second select query to get the info? Makes it a two-step process but it'll work. I could link them to a button on a form that would run the make-table and then run a report with the second query as the record source. Rocky Kaup, Chester wrote: > Could you run an intermediate query to convert the data type? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Wednesday, May 03, 2006 8:51 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Query Linking Unlike Fields > > Dear List: > > The affiliate ID in our affiliate program is a long integer - as it > should be. However, the affiliate ID is recorded from the PayPal > transaction in a text field. So When I try to link them in a query to > show affiliate sales by affiliate name, of course, I get a data type > mismatch. Is there a way around this short of altering the tables? > > MTIA, > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From rusty.hammond at cpiqpc.com Wed May 3 09:25:36 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 3 May 2006 09:25:36 -0500 Subject: [AccessD] Query Linking Unlike Fields Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F86EA@cpixchng-1.cpiqpc.net> I've pulled this off (in Access 97) by going to the SQL view of the query and converting one of the fields to the matching datatype, SELECT tblMyTable.AffiliateID, tblMyTable.Desc, tblPayPal.Desc FROM tblMyTable INNER JOIN tblPayPal ON tblMyTable.AffiliateID = clng(tblPayPal.AffiliateID); The drawback to this is while the clng is in the SQL of the query, the join can't be represented in design view. I would imagine with large tables you would see a performance hit but I haven't done any testing. HTH Rusty -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Wednesday, May 03, 2006 8:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query Linking Unlike Fields Dear List: The affiliate ID in our affiliate program is a long integer - as it should be. However, the affiliate ID is recorded from the PayPal transaction in a text field. So When I try to link them in a query to show affiliate sales by affiliate name, of course, I get a data type mismatch. Is there a way around this short of altering the tables? 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 ********************************************************************** 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 bchacc at san.rr.com Wed May 3 09:29:35 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 03 May 2006 07:29:35 -0700 Subject: [AccessD] Query Linking Unlike Fields In-Reply-To: <050320061410.13473.4458B9DF00059423000034A1220642461300009A9D0E9F9F0E9F@comcast.net> References: <050320061410.13473.4458B9DF00059423000034A1220642461300009A9D0E9F9F0E9F@comcast.net> Message-ID: <4458BE4F.8060606@san.rr.com> That does it!. Thanks Rocky papparuff at comcast.net wrote: > create a query for your affiliate ID that is an integer and convert it to text in the query. > > MyAffiliateID: CStr([affiliate ID]) > > Then you can use this query to link to the PayPal affiliate ID. > > papparuff > > -- > John V. Ruff ? The Eternal Optimist :-) > > ?Commit to the Lord whatever you do, > and your plans will succeed.? Proverbs 16:3 > > -------------- Original message -------------- > From: Rocky Smolin - Beach Access Software > > >> Dear List: >> >> The affiliate ID in our affiliate program is a long integer - as it >> should be. However, the affiliate ID is recorded from the PayPal >> transaction in a text field. So When I try to link them in a query to >> show affiliate sales by affiliate name, of course, I get a data type >> mismatch. Is there a way around this short of altering the tables? >> >> 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 cfoust at infostatsystems.com Wed May 3 10:12:05 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 May 2006 08:12:05 -0700 Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] Message-ID: I vaguely recall that AutoCAD had dll conflicts with Access, but that's all. What's happening in On Open? Are you loading anything besides a generic Access form? Any third party controls, licensed controls, etc.? 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: Tuesday, May 02, 2006 8:57 PM To: Access Developers discussion and problem solving Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] Charlotte: More information about the apparent incompatibility with AutoCAD. Although it could be due to some other cause, of course. Does this information give you any ideas? TIA Rocky -------- Original Message -------- Subject: Re: Re: [AccessD] Access and AutoCAD] Date: Wed, 03 May 2006 08:22:08 +0530 From: R Ramamurthy To: Rocky Smolin - Beach Access Software References: <4457AD11.7020700 at san.rr.com> Rocky, Here is the mail I sent you on the 3rd April: >>I never heard of an incompatibility with AutoCAD but I suppose it's possible. Do any other access mdbs have this problem on this machine? ## The Access program itself opens in that computer but only PPM does not. There are no other *.mdb files to try out. And all other computers in the LAN do not have this problem. ## The failure message that appears (under the PPM blue strip in the warning window) reads as: "The expression On Open you entered as the event property setting produced the following errors: Licence information for the component not found. You do not have an appropriate licence to use the functionality in the design environment. * The expression may not result in the name of a macro, the name of a user-defined function, or [ Event procedure ] * There may have been an error evaluating the function, event, or macro" ## Rocky, please note the words 'On Open', both with capital O's 'design environment' Do these provide a clue? Does the PPM program generate such a warning? R. Ramamurthy ----- Original Message ----- *From:* Rocky Smolin - Beach Access Software *To:* R. Ramamurthy *Sent:* Wednesday, May 03, 2006 12:33 AM *Subject:* [Fwd: Re: [AccessD] Access and AutoCAD] Ram: Can you give me any more details about exactly what happens when you try to run PPM on the machine with AutoCAD? Do you know if they're up to date on all Office and Windows service packs? 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 cfoust at infostatsystems.com Wed May 3 10:18:23 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 May 2006 08:18:23 -0700 Subject: [AccessD] Data from a SQL Server Table Message-ID: Manipulating the table should be done from the user interface. It sounds like you're talking about querying data out of the table and having the field truncated, which is a different issue entirely. If you include the memo field in a groupby clause, it will truncate the data. Check the archives for a couple of threads on query truncates memo field. Also keep in mind that the SQL Server text datatype will hold more than the Access memo type. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, May 03, 2006 6:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table I may have to do something like that because an export from access to a text file only got the first 474 characters of the memo field. Why that number I don't know. Certainly not a multiple of 2. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Long, Karen S. (CDC/NIOSH/NPPTL) (CTR) Sent: Wednesday, May 03, 2006 8:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Too bad you can't use the Rich Text Format box from .net. Have you thought about using vb script to write the contents of the memo field to a .txt file, displaying that document, making changes, and then send it back to SQL? I have some code that will do that - I had a problem sort of like yours. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Wednesday, May 03, 2006 8:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table The problem is I need to manipulate the data. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 02, 2006 5:17 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table Then if you can see the whole value in a form, what's the problem? You don't let users see the linked table anyhow. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Tuesday, May 02, 2006 2:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data from a SQL Server Table If I directly open the table I do not see the whole memo field. If I open it in a form I see the whole field. From bchacc at san.rr.com Wed May 3 10:38:00 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 03 May 2006 08:38:00 -0700 Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] In-Reply-To: References: Message-ID: <4458CE58.1070607@san.rr.com> Nope. No 3rd parties, no licensed controls. Just plain vanilla. I tried Googling AutoCAD and Access conflicts but came up empty. Rocky Charlotte Foust wrote: > I vaguely recall that AutoCAD had dll conflicts with Access, but that's > all. What's happening in On Open? Are you loading anything besides a > generic Access form? Any third party controls, licensed controls, etc.? > > > 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: Tuesday, May 02, 2006 8:57 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] > > Charlotte: > > More information about the apparent incompatibility with AutoCAD. > Although it could be due to some other cause, of course. Does this > information give you any ideas? > > TIA > > Rocky > > > -------- Original Message -------- > Subject: Re: Re: [AccessD] Access and AutoCAD] > Date: Wed, 03 May 2006 08:22:08 +0530 > From: R Ramamurthy > To: Rocky Smolin - Beach Access Software > References: <4457AD11.7020700 at san.rr.com> > > > > Rocky, > > Here is the mail I sent you on the 3rd April: > > >>I never heard of an incompatibility with AutoCAD but I suppose it's > possible. Do any other access mdbs have this problem on this machine? > ## The Access program itself opens in that computer but only PPM does > not. There are no other *.mdb files to try out. And all other computers > in the LAN do not have this problem. > > ## The failure message that appears (under the PPM blue strip in the > warning window) reads as: > > "The expression On Open you entered as the event property setting > produced the following errors: Licence information for the component not > found. You do not have an appropriate licence to use the functionality > in the design environment. > * The expression may not result in the name of a macro, the name of a > user-defined function, or [ Event procedure ] > * There may have been an error evaluating the function, event, or macro" > > ## Rocky, please note the words > 'On Open', both with capital O's > 'design environment' > Do these provide a clue? > > Does the PPM program generate such a warning? > > R. Ramamurthy > > ----- Original Message ----- > *From:* Rocky Smolin - Beach Access Software > > *To:* R. Ramamurthy > *Sent:* Wednesday, May 03, 2006 12:33 AM > *Subject:* [Fwd: Re: [AccessD] Access and AutoCAD] > > Ram: > > Can you give me any more details about exactly what happens when you > try to run PPM on the machine with AutoCAD? Do you know if they're > up to date on all Office and Windows service packs? > > 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 ralphb at cwgsy.net Wed May 3 11:07:52 2006 From: ralphb at cwgsy.net (Ralph Bryce) Date: Wed, 3 May 2006 17:07:52 +0100 Subject: [AccessD] Access and AutoCAD In-Reply-To: <4458CE58.1070607@san.rr.com> Message-ID: <000001c66ecb$bb6199b0$3500000a@RALPHA31P> Hi Rocky If it's any help... I've been running AutoCAD LT (several versions) for years with A95, A97 and A2000 with no problems. Regards, Ralph Bryce -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: 03 May 2006 16:38 To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] Nope. No 3rd parties, no licensed controls. Just plain vanilla. I tried Googling AutoCAD and Access conflicts but came up empty. Rocky Charlotte Foust wrote: > I vaguely recall that AutoCAD had dll conflicts with Access, but > that's all. What's happening in On Open? Are you loading anything > besides a generic Access form? Any third party controls, licensed controls, etc.? > > > Charlotte Foust From Jdemarco at hudsonhealthplan.org Wed May 3 13:59:28 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 3 May 2006 14:59:28 -0400 Subject: [AccessD] Converting Access 97 to Access 2003 Message-ID: <08F823FD83787D4BA0B99CA580AD3C74037172BF@TTNEXCHCL2.hshhp.com> Funny. I had a similar experience with A2K when it first came out and was also expecting nightmare problems this time but all is well so far. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Wednesday, May 03, 2006 10:08 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Converting Access 97 to Access 2003 Thanks Jim, that's good news. It seems like when I played with converting apps to Access 2000 some years ago, there were some immediately noticeable things that we were going to have to fix after the conversion. Thanks again, Rusty -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Wednesday, May 03, 2006 7:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Converting Access 97 to Access 2003 Rusty, We're in the midst converting many Access 97 apps to 2003 and have encountered nothing to stop us thus far. The apps range from tiny workgroup level tools with mdb FE and BE to larger sytems with SQL BE's. HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Tuesday, May 02, 2006 6:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Converting Access 97 to Access 2003 I'm just starting to work on converting our Access 97 databases over to Access 2003 and the first one I tried converted with no issues and seems to work fine so far. I still have lot of testing to do but I can hardly believe I haven't found issues yet. This is a fairly involved application (front end utilizing SQL 2000 linked tables, importing excel spreadsheets, exporting to excel and running code in the excel workbook, etc..) I ran the Access 2003 Conversion toolkit and the details of the database are: 111 Tables 186 Queries 65 Forms 52 Reports 12 Macros (for custom menu bar) 12 Modules (with thousands of lines of code). My question is, has everyone that has done this type of conversion had this same type of success with converting to A2003? Rusty Hammond IT Dept. - B-20 CPI Qualified Plan Consultants, Inc. (620) 793-8473 ext. 416 rusty.hammond at cpiqpc.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- 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. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed May 3 14:10:30 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 03 May 2006 12:10:30 -0700 Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] References: <4458CE58.1070607@san.rr.com> Message-ID: <44590026.3050100@shaw.ca> Autocad can run VBA and export mdb files but you have to install DAO or specific MDAC Autocad 2000 installs DAO 3.5 if specifically installed from CD. http://usa.autodesk.com/adsk/servlet/ps/item?siteID=123112&id=2863183&linkID=2475323 I just wonder if you have a MDAC conflict or unregistered DAO360 or DAO350.dll Rocky Smolin - Beach Access Software wrote: >Nope. No 3rd parties, no licensed controls. Just plain vanilla. I >tried Googling AutoCAD and Access conflicts but came up empty. >Mime-Version: 1.0 >Content-Transfer-Encoding: 7bit >Content-Type: text/plain; charset=us-ascii > >Rocky > > >Charlotte Foust wrote: > > >>I vaguely recall that AutoCAD had dll conflicts with Access, but that's >>all. What's happening in On Open? Are you loading anything besides a >>generic Access form? Any third party controls, licensed controls, etc.? >> >> >>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: Tuesday, May 02, 2006 8:57 PM >>To: Access Developers discussion and problem solving >>Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] >> >>Charlotte: >> >>More information about the apparent incompatibility with AutoCAD. >>Although it could be due to some other cause, of course. Does this >>information give you any ideas? >> >>TIA >> >>Rocky >> >> >>-------- Original Message -------- >>Subject: Re: Re: [AccessD] Access and AutoCAD] >>Date: Wed, 03 May 2006 08:22:08 +0530 >>From: R Ramamurthy >>To: Rocky Smolin - Beach Access Software >>References: <4457AD11.7020700 at san.rr.com> >> >> >> >>Rocky, >> >>Here is the mail I sent you on the 3rd April: >> >> >>I never heard of an incompatibility with AutoCAD but I suppose it's >>possible. Do any other access mdbs have this problem on this machine? >>## The Access program itself opens in that computer but only PPM does >>not. There are no other *.mdb files to try out. And all other computers >>in the LAN do not have this problem. >> >>## The failure message that appears (under the PPM blue strip in the >>warning window) reads as: >> >>"The expression On Open you entered as the event property setting >>produced the following errors: Licence information for the component not >>found. You do not have an appropriate licence to use the functionality >>in the design environment. >>* The expression may not result in the name of a macro, the name of a >>user-defined function, or [ Event procedure ] >>* There may have been an error evaluating the function, event, or macro" >> >>## Rocky, please note the words >>'On Open', both with capital O's >>'design environment' >>Do these provide a clue? >> >>Does the PPM program generate such a warning? >> >>R. Ramamurthy >> >> ----- Original Message ----- >> *From:* Rocky Smolin - Beach Access Software >> >> *To:* R. Ramamurthy >> *Sent:* Wednesday, May 03, 2006 12:33 AM >> *Subject:* [Fwd: Re: [AccessD] Access and AutoCAD] >> >> Ram: >> >> Can you give me any more details about exactly what happens when you >> try to run PPM on the machine with AutoCAD? Do you know if they're >> up to date on all Office and Windows service packs? >> >> 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 >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Wed May 3 15:32:49 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 03 May 2006 13:32:49 -0700 Subject: [AccessD] Access and AutoCAD In-Reply-To: <000001c66ecb$bb6199b0$3500000a@RALPHA31P> References: <000001c66ecb$bb6199b0$3500000a@RALPHA31P> Message-ID: <44591371.9050204@san.rr.com> Could be something else, then - some other difference. Yes, that's helpful. I'll forward to the client. Rocky Ralph Bryce wrote: > Hi Rocky > > If it's any help... > > I've been running AutoCAD LT (several versions) for years > with A95, A97 and A2000 with no problems. > > Regards, > > Ralph Bryce > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: 03 May 2006 16:38 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] > > Nope. No 3rd parties, no licensed controls. Just plain vanilla. I tried > Googling AutoCAD and Access conflicts but came up empty. > > Rocky > > > Charlotte Foust wrote: > >> I vaguely recall that AutoCAD had dll conflicts with Access, but >> that's all. What's happening in On Open? Are you loading anything >> besides a generic Access form? Any third party controls, licensed >> > controls, etc.? > >> Charlotte Foust >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Wed May 3 15:33:16 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 03 May 2006 13:33:16 -0700 Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] In-Reply-To: <44590026.3050100@shaw.ca> References: <4458CE58.1070607@san.rr.com> <44590026.3050100@shaw.ca> Message-ID: <4459138C.7050708@san.rr.com> Marty: I'll forward - they can check it out over there. Thanks. Rocky MartyConnelly wrote: > Autocad can run VBA and export mdb files but you have to install DAO or > specific MDAC > Autocad 2000 installs DAO 3.5 if specifically installed from CD. > http://usa.autodesk.com/adsk/servlet/ps/item?siteID=123112&id=2863183&linkID=2475323 > I just wonder if you have a MDAC conflict or unregistered DAO360 or > DAO350.dll > > Rocky Smolin - Beach Access Software wrote: > > >> Nope. No 3rd parties, no licensed controls. Just plain vanilla. I >> tried Googling AutoCAD and Access conflicts but came up empty. >> Mime-Version: 1.0 >> Content-Transfer-Encoding: 7bit >> Content-Type: text/plain; charset=us-ascii >> >> Rocky >> >> >> Charlotte Foust wrote: >> >> >> >>> I vaguely recall that AutoCAD had dll conflicts with Access, but that's >>> all. What's happening in On Open? Are you loading anything besides a >>> generic Access form? Any third party controls, licensed controls, etc.? >>> >>> >>> 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: Tuesday, May 02, 2006 8:57 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] [Fwd: Re: Re: Access and AutoCAD]] >>> >>> Charlotte: >>> >>> More information about the apparent incompatibility with AutoCAD. >>> Although it could be due to some other cause, of course. Does this >>> information give you any ideas? >>> >>> TIA >>> >>> Rocky >>> >>> >>> -------- Original Message -------- >>> Subject: Re: Re: [AccessD] Access and AutoCAD] >>> Date: Wed, 03 May 2006 08:22:08 +0530 >>> From: R Ramamurthy >>> To: Rocky Smolin - Beach Access Software >>> References: <4457AD11.7020700 at san.rr.com> >>> >>> >>> >>> Rocky, >>> >>> Here is the mail I sent you on the 3rd April: >>> >>> >>>>> I never heard of an incompatibility with AutoCAD but I suppose it's >>>>> >>> possible. Do any other access mdbs have this problem on this machine? >>> ## The Access program itself opens in that computer but only PPM does >>> not. There are no other *.mdb files to try out. And all other computers >>> in the LAN do not have this problem. >>> >>> ## The failure message that appears (under the PPM blue strip in the >>> warning window) reads as: >>> >>> "The expression On Open you entered as the event property setting >>> produced the following errors: Licence information for the component not >>> found. You do not have an appropriate licence to use the functionality >>> in the design environment. >>> * The expression may not result in the name of a macro, the name of a >>> user-defined function, or [ Event procedure ] >>> * There may have been an error evaluating the function, event, or macro" >>> >>> ## Rocky, please note the words >>> 'On Open', both with capital O's >>> 'design environment' >>> Do these provide a clue? >>> >>> Does the PPM program generate such a warning? >>> >>> R. Ramamurthy >>> >>> ----- Original Message ----- >>> *From:* Rocky Smolin - Beach Access Software >>> >>> *To:* R. Ramamurthy >>> *Sent:* Wednesday, May 03, 2006 12:33 AM >>> *Subject:* [Fwd: Re: [AccessD] Access and AutoCAD] >>> >>> Ram: >>> >>> Can you give me any more details about exactly what happens when you >>> try to run PPM on the machine with AutoCAD? Do you know if they're >>> up to date on all Office and Windows service packs? >>> >>> 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 tom.p at piedpiper.com.au Wed May 3 18:52:48 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Thu, 4 May 2006 07:52:48 +0800 Subject: [AccessD] MULTI SELECT LISTBOX dynamically selecting values from another listbox References: <4458CE58.1070607@san.rr.com> <44590026.3050100@shaw.ca> <4459138C.7050708@san.rr.com> Message-ID: <001601c66f0c$af004900$2900a8c0@TOMNEW> I think my brain has turned to toffee this morning..... I need to have multiple values select selected in a listbox from another listbox By selecting a line from the first listbox which contains the id's I then need those lines to appear selected in a second listbox For example my first listbox has a field with data in the form 73221,7259,13771,2 My second listbox contains those (and other)values 5698 7259 13771 2 73221 996589 23 38 and so on I choose the line in the first listbox I want the four lines selected in the second box The code below works fine for the single value but I need to loop thru the values in my first line to make it work.....should be simple but I simply cant get it to work Dim intI As Integer Dim strIDValue As String strIDValue = 73221 For intI = 0 To Me!listcon1.ListCount - 1 If Me!listcon1.ItemData(intI) = strIDValue Then Me!listcon1.Selected(intI) = True End If Next intI This code will select line 73221 Any suggestions? TIA Tom Keatley From stuart at lexacorp.com.pg Wed May 3 19:23:24 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 04 May 2006 10:23:24 +1000 Subject: [AccessD] MULTI SELECT LISTBOX dynamically selecting values from another listbox In-Reply-To: <001601c66f0c$af004900$2900a8c0@TOMNEW> Message-ID: <4459D61C.6606.2E76F909@stuart.lexacorp.com.pg> On 4 May 2006 at 7:52, Tom Keatley wrote: > > The code below works fine for the single value but I need to loop thru > the values in my first line to make it work.....should be simple but I > simply cant get it to work > > Dim intI As Integer > Dim strIDValue As String > strIDValue = 73221 > For intI = 0 To Me!listcon1.ListCount - 1 > If Me!listcon1.ItemData(intI) = strIDValue Then > Me!listcon1.Selected(intI) = True > End If > Next intI > This code will select line 73221 > Aircode so it may need some debugging, but the general idea is there: Dim intI As Integer Dim intl2 as Integer Dim strIDValue As String Dim strIDs() as String Dim strCurrentValue as String strIDValue = "73221,7259,13771,2" strIDs() = split(strIDValue,",") For intl2 = 0 to ubound(strIDs) strCurrentValue = strIDs(intl2) For intI = 0 To Me!listcon1.ListCount - 1 If Me!listcon1.ItemData(intI) = strCurrentValue Then Me!listcon1.Selected(intI) = True End If Next intI Next intl2 From kp at sdsonline.net Wed May 3 20:01:17 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Thu, 4 May 2006 11:01:17 +1000 Subject: [AccessD] VB.net form title bar not visible Message-ID: <001801c66f16$402f1970$6601a8c0@office> (Cross posted to AccessD and Access D VB) I have a main menu with a menu strip item. What I want is when the user clicks on that menu item, the Main menu stays in the background (which it does) and FrmPricing opens maximised without the title bar. I have the following properties set for frmpricing: WindowState: maximised Maximise box: false Minimise box: false My code to open frmpricing from the mainmenu is as follows: -------------------------------------------------------------------------------- Private Sub mnuSecuritiesPricing_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuSecuritiesPricing.Click Dim ifrmPricing As New frmPricing ifrmPricing.MdiParent = Me ifrmPricing.Dock = DockStyle.Fill Me.MenuStrip1.Enabled = False ifrmPricing.Show() 'Dialog() End Sub -------------------------------------------------------------------------------- Kath Pelletti From kp at sdsonline.net Wed May 3 20:07:46 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Thu, 4 May 2006 11:07:46 +1000 Subject: [AccessD] VB.net form title bar not visible Message-ID: <002801c66f17$2a47fe50$6601a8c0@office> Don't worry - got it - Frmborderstyle = none ______________________________________ Kath Pelletti From stuart at lexacorp.com.pg Wed May 3 22:09:35 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 04 May 2006 13:09:35 +1000 Subject: [AccessD] MULTI SELECT LISTBOX dynamically selecting valuesfrom another listbox In-Reply-To: <005901c66f1e$715d4dc0$2900a8c0@TOMNEW> Message-ID: <4459FD0F.3354.2F0F1EED@stuart.lexacorp.com.pg> On 4 May 2006 at 9:59, Tom Keatley wrote: > Hi Stuart..... > > It seems when you assist me it always is with a Split function > That's because it's a very useful function :-) > My problem in this case is this database is in A97 ....No split > function .... Any Idea how I can solve it WITHOUT using Split? > You can get an A97 Split function, along with A97 versions of several other A2K functions at http://www.tek-tips.com/faqs.cfm?fid=4342 I'd suggest you keep them all in a module that you can paste into your apps on demand :-) If you don't want to use Split(), you could do it this way: Dim intI As Integer Dim intl2 As Integer Dim strIDValue As String Dim lngCurrentValue As Long strIDValue = "73221,7259,13771,2" strIDValue = strIDValue & "," 'to pick up the last value in the loop below Do lngCurrentValue = Val(strIDValue) 'get the first number strIDValue = Mid$(strIDValue, InStr(strIDValue, ",") + 1) 'get rid of the first number For intI = 0 To Me!listcon1.ListCount - 1 If Me!listcon1.ItemData(intI) = lngCurrentValue Then Me!listcon1.Selected(intI) = True End If Next intI Loop Until InStr(strIDValue, ",") = 0 From tom.p at piedpiper.com.au Wed May 3 23:36:09 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Thu, 4 May 2006 12:36:09 +0800 Subject: [AccessD] MULTI SELECT LISTBOX dynamically selecting valuesfromanother listbox References: <4459FD0F.3354.2F0F1EED@stuart.lexacorp.com.pg> Message-ID: <007701c66f34$445e4890$2900a8c0@TOMNEW> Hi Stuart.... Hopefully the last one.... I have downloaded the code you suggested at tektips and have installed it in a module within the database but now get a compile error with the message "cant Assign to an array" .... It must be the syntax? I must admit this little wall is getting higher for me and I am considering finding another way. For some reason the other code (without split) you did for me is giving me a type mismatch error so I made strCurrentValue into a string and the code appeared to run giving all the correct numbers and iterating through the listbox (in the debug window) but no lines were selected.... can you shed any light? Dim intI As Integer Dim intl2 As Integer Dim strIDValue As String Dim strIDs() As String Dim strCurrentValue As String '' strIDValue = "13772,13773,13771" strIDs() = Split(strIDValue, ",") For intl2 = 0 To UBound(strIDs) strCurrentValue = strIDs(intl2) For intI = 0 To Me!listcon1.ListCount - 1 If Me!listcon1.ItemData(intI) = strCurrentValue Then Me!listcon1.Selected(intI) = True End If Next intI Next intl2 strIDValue = 13771 For intI = 0 To Me!listcon1.ListCount - 1 If Me!listcon1.ItemData(intI) = strIDValue Then Me!listcon1.Selected(intI) = True End If Next intI regards Tom Keatley ----- Original Message ----- From: "Stuart McLachlan" To: "access Developers discussion and problem solving" Sent: Thursday, May 04, 2006 11:09 AM Subject: Re: [AccessD] MULTI SELECT LISTBOX dynamically selecting valuesfromanother listbox > On 4 May 2006 at 9:59, Tom Keatley wrote: > >> Hi Stuart..... >> >> It seems when you assist me it always is with a Split function >> > That's because it's a very useful function :-) > >> My problem in this case is this database is in A97 ....No split >> function .... Any Idea how I can solve it WITHOUT using Split? >> > > You can get an A97 Split function, along with A97 versions of several > other A2K functions at > http://www.tek-tips.com/faqs.cfm?fid=4342 > > I'd suggest you keep them all in a module that you can paste into your > apps on demand :-) > > > > > If you don't want to use Split(), you could do it this way: > > Dim intI As Integer > Dim intl2 As Integer > Dim strIDValue As String > Dim lngCurrentValue As Long > strIDValue = "73221,7259,13771,2" > > strIDValue = strIDValue & "," 'to pick up the last value in the > loop below > Do > lngCurrentValue = Val(strIDValue) 'get the first number > strIDValue = Mid$(strIDValue, InStr(strIDValue, ",") + 1) 'get rid > of the first number > > For intI = 0 To Me!listcon1.ListCount - 1 > If Me!listcon1.ItemData(intI) = lngCurrentValue Then > Me!listcon1.Selected(intI) = True > End If > Next intI > Loop Until InStr(strIDValue, ",") = 0 > > -- > 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.392 / Virus Database: 268.5.3/331 - Release Date: 03/05/2006 > > From stuart at lexacorp.com.pg Thu May 4 00:09:19 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 04 May 2006 15:09:19 +1000 Subject: [AccessD] MULTI SELECT LISTBOX dynamically selecting valuesfromanother listbox In-Reply-To: <007701c66f34$445e4890$2900a8c0@TOMNEW> Message-ID: <445A191F.216.2F7CBBC7@stuart.lexacorp.com.pg> On 4 May 2006 at 12:36, Tom Keatley wrote: > Hi Stuart.... > > Hopefully the last one.... > > I have downloaded the code you suggested at tektips and have > installed it in a module within the database but now get a compile > error with the message "cant Assign to an array" .... It must be the > syntax? I must admit this little wall is getting higher for me and I > am considering finding another way. > Haven't got a copy of A97 handy to check it it. > For some reason the other code (without split) you did for me is > giving me a type mismatch error so I made strCurrentValue into a > string and the code appeared to run giving all the correct numbers and > iterating through the listbox (in the debug window) but no lines were > selected.... > > can you shed any light? Looks like your ItemData is not numeric. Try printing out Debug.Print Me!listcon1.ItemData(intI) & " - " & strCurrentValue in the loop to see what you are actually comparing. Let us know what you get. From kp at sdsonline.net Thu May 4 00:22:17 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Thu, 4 May 2006 15:22:17 +1000 Subject: [AccessD] Go to new record - vb.net Message-ID: <000d01c66f3a$b70b5f80$6601a8c0@office> (Cross posted vb list / access list) Does anyone know what code to use to move to a new record in a DataGridView control in vb.net? I have created a new menustripcontrol with an 'Add new record' button. When the user clicks it I want it to move to a new record in the grid. rgds ______________________________________ Kath Pelletti From bchacc at san.rr.com Thu May 4 00:48:11 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 03 May 2006 22:48:11 -0700 Subject: [AccessD] Query Linking Unlike Fields In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A154F86EA@cpixchng-1.cpiqpc.net> References: <8301C8A868251E4C8ECD3D4FFEA40F8A154F86EA@cpixchng-1.cpiqpc.net> Message-ID: <4459959B.3060207@san.rr.com> That's elegant. I don't mind losing the design view. It's a simple enough query that you can still understand it in SQL view. I hope the table gets large enough to see a performance hit. :) Rocky rusty.hammond at cpiqpc.com wrote: > I've pulled this off (in Access 97) by going to the SQL view of the query > and converting one of the fields to the matching datatype, > > SELECT tblMyTable.AffiliateID, tblMyTable.Desc, tblPayPal.Desc > FROM tblMyTable INNER JOIN tblPayPal ON tblMyTable.AffiliateID = > clng(tblPayPal.AffiliateID); > > The drawback to this is while the clng is in the SQL of the query, the join > can't be represented in design view. I would imagine with large tables you > would see a performance hit but I haven't done any testing. > > HTH > Rusty > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Wednesday, May 03, 2006 8:51 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Query Linking Unlike Fields > > > Dear List: > > The affiliate ID in our affiliate program is a long integer - as it > should be. However, the affiliate ID is recorded from the PayPal > transaction in a text field. So When I try to link them in a query to > show affiliate sales by affiliate name, of course, I get a data type > mismatch. Is there a way around this short of altering the tables? > > MTIA, > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From tom.p at piedpiper.com.au Thu May 4 01:47:37 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Thu, 4 May 2006 14:47:37 +0800 Subject: [AccessD] MULTI SELECT LISTBOX dynamically selectingvaluesfromanother listbox References: <445A191F.216.2F7CBBC7@stuart.lexacorp.com.pg> Message-ID: <00ab01c66f46$a1d0b000$2900a8c0@TOMNEW> Hi Stuart.... Thanks for the hand with this .....I think the end is in sight. I now have the code below that runs fine as is, my data mismatch problem turned out to be...... I had headers turned on in the listbox (i) and of course its an integer so after I turned headers on it ran without errors. The only problem is the list has only ONE line selected and that line is the first in the sequence (I assume the LAST to be processed) The box IS set to multiselect as I can select multiple values manually . I have put the results of the debug below the code.... Dim intI As Integer Dim i As Integer Dim strIDValue As String Dim lngCurrentValue As Long strIDValue = "13772,13773,13771" '' strIDValue = strIDValue & "," 'to pick up the last value in the loop below Do lngCurrentValue = Val(strIDValue) 'get the first number strIDValue = Mid$(strIDValue, InStr(strIDValue, ",") + 1) 'get rid of the first number''''' For intI = 0 To Me!listcon1.ListCount - 1 If Me!listcon1.ItemData(i) = lngCurrentValue Then Me!listcon1.Selected(i) = True End If Debug.Print Me!listcon1.ItemData(intI) & " - " & lngCurrentValue 'Debug.Print str(lngCurrentValue) Next intI Loop Until InStr(strIDValue, ",") = 0 13772 - 13772 13771 - 13772 13773 - 13772 7125 - 13772 7124 - 13772 7126 - 13772 7128 - 13772 13772 - 13773 13771 - 13773 13773 - 13773 7125 - 13773 7124 - 13773 7126 - 13773 7128 - 13773 13772 - 13771 13771 - 13771 13773 - 13771 7125 - 13771 7124 - 13771 7126 - 13771 7128 - 13771 On 4 May 2006 at 12:36, Tom Keatley wrote: > Hi Stuart.... > > Hopefully the last one.... > > I have downloaded the code you suggested at tektips and have > installed it in a module within the database but now get a compile > error with the message "cant Assign to an array" .... It must be the > syntax? I must admit this little wall is getting higher for me and I > am considering finding another way. > Haven't got a copy of A97 handy to check it it. > For some reason the other code (without split) you did for me is > giving me a type mismatch error so I made strCurrentValue into a > string and the code appeared to run giving all the correct numbers and > iterating through the listbox (in the debug window) but no lines were > selected.... > > can you shed any light? Looks like your ItemData is not numeric. Try printing out Debug.Print Me!listcon1.ItemData(intI) & " - " & strCurrentValue in the loop to see what you are actually comparing. Let us know what you get. From tom.p at piedpiper.com.au Thu May 4 04:32:19 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Thu, 4 May 2006 17:32:19 +0800 Subject: [AccessD] MULTI SELECT LISTBOX dynamically selectingvaluesfromanother listbox References: <445A191F.216.2F7CBBC7@stuart.lexacorp.com.pg> Message-ID: <003f01c66f5d$a41d1990$2900a8c0@TOMNEW> Hi All.... Many thanks go to Stuart McLachlan who supplied the code below to help me sort out a problem with a pair of multi-select list boxes I was working on. I needed to select multiple items in a list box from a second list box. The other problem was I was working in A97 and did not have the split function The second list box had the ID values of the table that was supplying the first list box in a field in the form 13771,13589,13654 etc The Name of the second list box is DisBurseList Thanks Stuart ....the problem I was having last of all was solved .... if you have a look at my precious email I had i dimmed as IntI as well and the code was trying to run with both variables ....of course it failed I have posted this for the archives thanks Tom Keatley '====================================================== Private Sub DisBurseList_Click() Dim i As Integer Dim strIDValue As String Dim lngCurrentValue As Long strIDValue = "13771,13589,13654" 'DisBurseList ' strIDValue = strIDValue & "," 'to pick up the last value in the loop below Do lngCurrentValue = Val(strIDValue) 'get the first number strIDValue = Mid$(strIDValue, InStr(strIDValue, ",") + 1) 'get rid of the first number For i = 0 To Me!listcon1.ListCount - 1 If Me!listcon1.ItemData(i) = lngCurrentValue Then Me!listcon1.Selected(i) = True End If Debug.Print Me!listcon1.ItemData(i) & " - " & lngCurrentValue Next i Loop Until InStr(strIDValue, ",") = 0 End Sub '=========================================================== From bheid at appdevgrp.com Thu May 4 06:31:12 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 4 May 2006 07:31:12 -0400 Subject: [AccessD] Access resources page on Conrad Systems Development web site. Message-ID: <916187228923D311A6FE00A0CC3FAA30D3532B@ADGSERVER> I came across this today and thought it might be useful for some. http://home.bendbroadband.com/conradsystems/accessjunkie/resources.html Bobby From Erwin.Craps at ithelps.be Thu May 4 06:32:08 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 4 May 2006 13:32:08 +0200 Subject: [AccessD] Copyrcordset to Excel fails on lenthy memo field. Message-ID: <46B976F2B698FF46A4FE7636509B22DF3CB747@stekelbes.ithelps.local> When having a long memofield and using copyrecordset to excel then call fails when having lengthy texts in the memofield. I'm not sure of the maximum length but in this case the text is 1102 karakters long. 480 characters seems to pass. When using copy/paste the excel cell can accept this 1102 long tekst, os its not a cell text limitation, but I supose a DAO or Excel object limitation? Is there a simple workaround still using the copyrecordset function? The only simple solution I see is to truncate my memofield to the maximum length (which I don't know) but this i want to avoid. It's not that a big deal because is the cast list from a movie, so an actor in the +1000 character is probably not that important. In this case it's the cast for the "World Trade Center" Movie! To sumerize my questions: Simple way to copy long memofields to excel using copyrecordset? and/or Whats the maximum fieldlength I can copyrecordset tot excel? greetings 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 Erwin.Craps at ithelps.be Thu May 4 07:42:41 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 4 May 2006 14:42:41 +0200 Subject: [AccessD] Copyrcordset to Excel fails on lenthy memo field. Message-ID: <46B976F2B698FF46A4FE7636509B22DF3CB74B@stekelbes.ithelps.local> I just modified my query to left([Cast[;1024) But when dooing this I get this strange id at the end (identifier?) of my text in Excel. "Doug Aguirre, Rob Armstrong, Michael Arthur, Maria Bello, Jon Bernthal, Robert Blanche, Lucia Brawley, Kurt Caceres, Nicolas Cage, Francesca Casale, Jude Ciccolella, Lori M. Cincotta, Dara Coleman, Nick Damici, Patti D'Arbanville, Stephen Dorff, Thomas F.-21-1935655697-343818398-725345543-1132" Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Thursday, May 04, 2006 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Copyrcordset to Excel fails on lenthy memo field. When having a long memofield and using copyrecordset to excel then call fails when having lengthy texts in the memofield. I'm not sure of the maximum length but in this case the text is 1102 karakters long. 480 characters seems to pass. When using copy/paste the excel cell can accept this 1102 long tekst, os its not a cell text limitation, but I supose a DAO or Excel object limitation? Is there a simple workaround still using the copyrecordset function? The only simple solution I see is to truncate my memofield to the maximum length (which I don't know) but this i want to avoid. It's not that a big deal because is the cast list from a movie, so an actor in the +1000 character is probably not that important. In this case it's the cast for the "World Trade Center" Movie! To sumerize my questions: Simple way to copy long memofields to excel using copyrecordset? and/or Whats the maximum fieldlength I can copyrecordset tot excel? greetings 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From nanette.j.gould at Vanderbilt.Edu Thu May 4 09:16:16 2006 From: nanette.j.gould at Vanderbilt.Edu (Gould, Nanette) Date: Thu, 4 May 2006 09:16:16 -0500 Subject: [AccessD] Building criteria with check-box choices Message-ID: <33E923DF3EB78B4D8DCD3A743427425CB1D64E@mailbe07.mc.vanderbilt.edu> I've got a problem that seems like it should be easy but I can't get it right. I have an unbound form that allows the user to choose any number of PayGroups (12 total) and the exported Excel file uses those choices as criteria to pull from the PayGroup field from tblCurrentInvoice. The PayGroup is a 3-character text field. They also choose a PayPeriodEndDate from a calendar. Those two choices constitute the only criteria for running the export. Can someone help me extract the values of the checked boxes and make those the criteria for my export? Thanks! Nanette Nanette Gould | Dept of Finance | Crystal Terrace | 3319 West End Ave, Ste. 700 | 615.322.3540 | nanette.gould at vanderbilt.edu The information transmitted with any attachments is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. If you have received this email in error, please contact the sender and delete the material from your system. From reuben at gfconsultants.com Thu May 4 09:39:15 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 4 May 2006 10:39:15 -0400 Subject: [AccessD] Building criteria with check-box choices In-Reply-To: <33E923DF3EB78B4D8DCD3A743427425CB1D64E@mailbe07.mc.vanderbilt.edu> Message-ID: I assume you mean each check box specifies a pay group Can you just check each box for yes/no and write to the "where" accordingly. If chk1 = -1 then strWhere = strwhere & "or tblCurrentInvoice.PayGroup = AAA" end if if chk2 = -1 then strWhere = strwhere & "or tblCurrentInvoice.PayGroup = BBB" end if if chk3 = -1 then strWhere = strwhere & "or tblCurrentInvoice.PayGroup = CCC" end if You end up with a criteria string. Strip off the first "or " and append it to your SQL. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gould, Nanette > Sent: Thursday, May 04, 2006 10:16 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Building criteria with check-box choices > > > I've got a problem that seems like it should be easy but I can't get it > right. I have an unbound form that allows the user to choose any number > of PayGroups (12 total) and the exported Excel file uses those choices > as criteria to pull from the PayGroup field from tblCurrentInvoice. The > PayGroup is a 3-character text field. They also choose a > PayPeriodEndDate from a calendar. Those two choices constitute the only > criteria for running the export. Can someone help me extract the values > of the checked boxes and make those the criteria for my export? > > Thanks! > > > Nanette > > > > Nanette Gould | Dept of Finance | Crystal Terrace | 3319 West End Ave, > Ste. 700 | 615.322.3540 | nanette.gould at vanderbilt.edu > > > > > The information transmitted with any attachments is intended solely for > the individual or entity to which it is addressed and may contain > confidential and/or privileged material. If you have received this > email in error, please contact the sender and delete the material from > your system. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From reuben at gfconsultants.com Thu May 4 09:48:39 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 4 May 2006 10:48:39 -0400 Subject: [AccessD] Building criteria with check-box choices In-Reply-To: <33E923DF3EB78B4D8DCD3A743427425CB1D64E@mailbe07.mc.vanderbilt.edu> Message-ID: You could also loop thru the check boxes and use the tag property for the PayGroup name. I just wrote the easy to read version. I've done this several times, but can't find one right now. This may not be exactly right, but it gives you the basic idea of how to perform it in a loop. dim ctl as control dim x as integer dim strWhere as string do while x < me.controls.count if ctl.type = accheckbox then if ctl = -1 then strwhere = strwhere & "or tblCurrentInvoice.Paygroup = """ & ctl.tag & """" end if end if x=x+1 loop Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gould, Nanette > Sent: Thursday, May 04, 2006 10:16 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Building criteria with check-box choices > > > I've got a problem that seems like it should be easy but I can't get it > right. I have an unbound form that allows the user to choose any number > of PayGroups (12 total) and the exported Excel file uses those choices > as criteria to pull from the PayGroup field from tblCurrentInvoice. The > PayGroup is a 3-character text field. They also choose a > PayPeriodEndDate from a calendar. Those two choices constitute the only > criteria for running the export. Can someone help me extract the values > of the checked boxes and make those the criteria for my export? > > Thanks! > > > Nanette > > > > Nanette Gould | Dept of Finance | Crystal Terrace | 3319 West End Ave, > Ste. 700 | 615.322.3540 | nanette.gould at vanderbilt.edu > > > > > The information transmitted with any attachments is intended solely for > the individual or entity to which it is addressed and may contain > confidential and/or privileged material. If you have received this > email in error, please contact the sender and delete the material from > your system. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From nanette.j.gould at Vanderbilt.Edu Thu May 4 10:02:39 2006 From: nanette.j.gould at Vanderbilt.Edu (Gould, Nanette) Date: Thu, 4 May 2006 10:02:39 -0500 Subject: [AccessD] Building criteria with check-box choices Message-ID: <33E923DF3EB78B4D8DCD3A743427425CB1D661@mailbe07.mc.vanderbilt.edu> Thank you, Reuben. I think I understand this solution better than your other one so I'll try this one first. I really appreciate the help. Thanks, Nanette -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Reuben Cummings Sent: Thursday, May 04, 2006 9:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Building criteria with check-box choices I assume you mean each check box specifies a pay group Can you just check each box for yes/no and write to the "where" accordingly. If chk1 = -1 then strWhere = strwhere & "or tblCurrentInvoice.PayGroup = AAA" end if if chk2 = -1 then strWhere = strwhere & "or tblCurrentInvoice.PayGroup = BBB" end if if chk3 = -1 then strWhere = strwhere & "or tblCurrentInvoice.PayGroup = CCC" end if You end up with a criteria string. Strip off the first "or " and append it to your SQL. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gould, > Nanette > Sent: Thursday, May 04, 2006 10:16 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Building criteria with check-box choices > > > I've got a problem that seems like it should be easy but I can't get > it right. I have an unbound form that allows the user to choose any > number of PayGroups (12 total) and the exported Excel file uses those > choices as criteria to pull from the PayGroup field from > tblCurrentInvoice. The PayGroup is a 3-character text field. They also > choose a PayPeriodEndDate from a calendar. Those two choices > constitute the only criteria for running the export. Can someone help > me extract the values of the checked boxes and make those the criteria for my export? > > Thanks! > > > Nanette > > > > Nanette Gould | Dept of Finance | Crystal Terrace | 3319 West End Ave, > Ste. 700 | 615.322.3540 | nanette.gould at vanderbilt.edu > > > > > The information transmitted with any attachments is intended solely > for the individual or entity to which it is addressed and may contain > confidential and/or privileged material. If you have received this > email in error, please contact the sender and delete the material from > your system. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From developer at ultradnt.com Thu May 4 11:09:18 2006 From: developer at ultradnt.com (Steve Conklin) Date: Thu, 4 May 2006 12:09:18 -0400 Subject: [AccessD] OT-VB6 need a key/mouse recorder In-Reply-To: <33E923DF3EB78B4D8DCD3A743427425CB1D661@mailbe07.mc.vanderbilt.edu> Message-ID: <200605041609.k44G9Mm36151@ultradnt.com> I am debugging a VB6 app that is not mine. It is taking me nearly 15 clicks from app startup to get to the point in the program that I am working on. Any suggestions on keyboard macro utility would save me a lot of time. I googled and tried a few; none were right for the job. I am in this project pro-bono, so a freeware solution, if possible, would be prefrerred. Thanks in advance, Steve From markamatte at hotmail.com Thu May 4 11:31:18 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 04 May 2006 16:31:18 +0000 Subject: [AccessD] Is mouse Clicked? In-Reply-To: <200605041609.k44G9Mm36151@ultradnt.com> Message-ID: Hello All, Is there a way when the mouse passes over an object on a form to tell if the right or left mouse button is down? Thanks, Mark A. Matte From cfoust at infostatsystems.com Thu May 4 11:39:12 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 May 2006 09:39:12 -0700 Subject: [AccessD] Is mouse Clicked? Message-ID: What are you trying to accomplish? If the mouse button is down at the time is passes over an object, the click action already occurred elsewhere and the behavior/meaning of the mouse activity has changed. Are you trying for something like the click and drag you can do in design view to select objects? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, May 04, 2006 9:31 AM To: accessd at databaseadvisors.com Subject: [AccessD] Is mouse Clicked? Hello All, Is there a way when the mouse passes over an object on a form to tell if the right or left mouse button is down? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lembit.dbamail at t-online.de Thu May 4 11:40:13 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Thu, 4 May 2006 18:40:13 +0200 Subject: [AccessD] Access resources page on Conrad Systems Development website. References: <916187228923D311A6FE00A0CC3FAA30D3532B@ADGSERVER> Message-ID: <003701c66f99$6aed64e0$1400a8c0@v1000> that's a great list. Can you get us listed there? thanks Lembit ----- Original Message ----- From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Sent: Thursday, May 04, 2006 1:31 PM Subject: [AccessD] Access resources page on Conrad Systems Development website. >I came across this today and thought it might be useful for some. > > http://home.bendbroadband.com/conradsystems/accessjunkie/resources.html > > Bobby > > -- > 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.392 / Virus Database: 268.5.3/331 - Release Date: 03.05.2006 > > From martyconnelly at shaw.ca Thu May 4 11:48:34 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 04 May 2006 09:48:34 -0700 Subject: [AccessD] OT-VB6 need a key/mouse recorder References: <200605041609.k44G9Mm36151@ultradnt.com> Message-ID: <445A3062.90905@shaw.ca> A long SendKeys string maybe? Steve Conklin wrote: >I am debugging a VB6 app that is not mine. It is taking me nearly 15 clicks >from app startup to get to the point in the program that I am working on. >Any suggestions on keyboard macro utility would save me a lot of time. I >googled and tried a few; none were right for the job. I am in this project >pro-bono, so a freeware solution, if possible, would be prefrerred. > >Thanks in advance, >Steve > > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Thu May 4 11:55:05 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 May 2006 09:55:05 -0700 Subject: [AccessD] Access resources page on Conrad Systems Developmentwebsite. Message-ID: But how would anyone find us in all those links?? Yikes! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lembit Soobik Sent: Thursday, May 04, 2006 9:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access resources page on Conrad Systems Developmentwebsite. that's a great list. Can you get us listed there? thanks Lembit ----- Original Message ----- From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Sent: Thursday, May 04, 2006 1:31 PM Subject: [AccessD] Access resources page on Conrad Systems Development website. >I came across this today and thought it might be useful for some. > > http://home.bendbroadband.com/conradsystems/accessjunkie/resources.htm > l > > Bobby > > -- > 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.392 / Virus Database: 268.5.3/331 - Release Date: > 03.05.2006 > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From developer at ultradnt.com Thu May 4 12:06:14 2006 From: developer at ultradnt.com (Steve Conklin) Date: Thu, 4 May 2006 13:06:14 -0400 Subject: [AccessD] OT-VB6 need a key/mouse recorder In-Reply-To: <445A3062.90905@shaw.ca> Message-ID: <200605041706.k44H6Im43299@ultradnt.com> Some of her forms have objects w/o key accelerators; I'm hoping for mouse recording too ... Something external that could, after F5 in VB6, execute a script that would get me right to the point in the app I am debugging. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, May 04, 2006 12:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder A long SendKeys string maybe? Steve Conklin wrote: >I am debugging a VB6 app that is not mine. It is taking me nearly 15 >clicks from app startup to get to the point in the program that I am working on. >Any suggestions on keyboard macro utility would save me a lot of time. >I googled and tried a few; none were right for the job. I am in this >project pro-bono, so a freeware solution, if possible, would be prefrerred. > >Thanks in advance, >Steve > > > -- 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 Lambert.Heenan at AIG.com Thu May 4 12:20:14 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 4 May 2006 12:20:14 -0500 Subject: [AccessD] OT-VB6 need a key/mouse recorder Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F211EFFAF@xlivmbx21.aig.com> How about you add the missing accelerator keys. Then you'll be able to use SendKeys? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Conklin Sent: Thursday, May 04, 2006 1:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder Some of her forms have objects w/o key accelerators; I'm hoping for mouse recording too ... Something external that could, after F5 in VB6, execute a script that would get me right to the point in the app I am debugging. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, May 04, 2006 12:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder A long SendKeys string maybe? Steve Conklin wrote: >I am debugging a VB6 app that is not mine. It is taking me nearly 15 >clicks from app startup to get to the point in the program that I am working on. >Any suggestions on keyboard macro utility would save me a lot of time. >I googled and tried a few; none were right for the job. I am in this >project pro-bono, so a freeware solution, if possible, would be prefrerred. > >Thanks in advance, >Steve > > > -- 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 Thu May 4 13:11:18 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 04 May 2006 18:11:18 +0000 Subject: [AccessD] Is mouse Clicked? In-Reply-To: Message-ID: Charlotte, I'm not trying to do the drag thing. I have a number of objects on a form...and as the mouse moves over these objects...I would like to do something depending on whether the right, left, or neither button is held in the down position. Thanks, Mark A. Matte >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Is mouse Clicked? >Date: Thu, 4 May 2006 09:39:12 -0700 > >What are you trying to accomplish? If the mouse button is down at the >time is passes over an object, the click action already occurred >elsewhere and the behavior/meaning of the mouse activity has changed. >Are you trying for something like the click and drag you can do in >design view to select objects? > > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Thursday, May 04, 2006 9:31 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Is mouse Clicked? > >Hello All, > >Is there a way when the mouse passes over an object on a form to tell if >the right or left mouse button is down? > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From developer at ultradnt.com Thu May 4 14:30:50 2006 From: developer at ultradnt.com (Steve Conklin) Date: Thu, 4 May 2006 15:30:50 -0400 Subject: [AccessD] OT-VB6 need a key/mouse recorder In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F211EFFAF@xlivmbx21.aig.com> Message-ID: <200605041930.k44JUrm61786@ultradnt.com> I think the functionality I am looking for is in WinBatch. I don't know where that disk is (my 1999 archives?). Maybe they have a trial version that could get me thru this project. Thanks, Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, May 04, 2006 1:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder How about you add the missing accelerator keys. Then you'll be able to use SendKeys? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Conklin Sent: Thursday, May 04, 2006 1:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder Some of her forms have objects w/o key accelerators; I'm hoping for mouse recording too ... Something external that could, after F5 in VB6, execute a script that would get me right to the point in the app I am debugging. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, May 04, 2006 12:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder A long SendKeys string maybe? Steve Conklin wrote: >I am debugging a VB6 app that is not mine. It is taking me nearly 15 >clicks from app startup to get to the point in the program that I am working on. >Any suggestions on keyboard macro utility would save me a lot of time. >I googled and tried a few; none were right for the job. I am in this >project pro-bono, so a freeware solution, if possible, would be prefrerred. > >Thanks in advance, >Steve > > > -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mfisch4 at capex.com.ar Thu May 4 14:42:38 2006 From: mfisch4 at capex.com.ar (MF) Date: Thu, 04 May 2006 16:42:38 -0300 Subject: [AccessD] OT-VB6 need a key/mouse recorder In-Reply-To: <200605041609.k44G9Mm36151@ultradnt.com> References: <33E923DF3EB78B4D8DCD3A743427425CB1D661@mailbe07.mc.vanderbilt.edu> <200605041609.k44G9Mm36151@ultradnt.com> Message-ID: <6.2.3.4.0.20060504163953.031ecd48@indy> I can vouch for how good this is: The company I work for bought it for me and it has solved amongst others, problems of the kind you describe. It is not free. MF __________________________ At 13:09 04/05/2006, you wrote: >I am debugging a VB6 app that is not mine. It is taking me nearly 15 clicks >from app startup to get to the point in the program that I am working on. >Any suggestions on keyboard macro utility would save me a lot of time. I >googled and tried a few; none were right for the job. I am in this project >pro-bono, so a freeware solution, if possible, would be prefrerred. > >Thanks in advance, >Steve > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu May 4 14:59:15 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 May 2006 12:59:15 -0700 Subject: [AccessD] Is mouse Clicked? Message-ID: Then use the MouseMove event of the control. It has a button argument, but it can be a bit tricky since each control only reacts to the mouse entering its range, not to it leaving. You can use the MouseMove event of the form to trap some of that, but another way is to create a transparent control that covers the area, put it behind the other controls and set its MouseMove event to cancel whatever action you took. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, May 04, 2006 11:11 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Is mouse Clicked? Charlotte, I'm not trying to do the drag thing. I have a number of objects on a form...and as the mouse moves over these objects...I would like to do something depending on whether the right, left, or neither button is held in the down position. Thanks, Mark A. Matte >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Is mouse Clicked? >Date: Thu, 4 May 2006 09:39:12 -0700 > >What are you trying to accomplish? If the mouse button is down at the >time is passes over an object, the click action already occurred >elsewhere and the behavior/meaning of the mouse activity has changed. >Are you trying for something like the click and drag you can do in >design view to select objects? > > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Thursday, May 04, 2006 9:31 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Is mouse Clicked? > >Hello All, > >Is there a way when the mouse passes over an object on a form to tell >if the right or left mouse button is down? > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 May 4 15:10:48 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 04 May 2006 13:10:48 -0700 Subject: [AccessD] Is mouse Clicked? References: Message-ID: <445A5FC8.4010409@shaw.ca> You could try some variation of this code. You may have middle button too. Lots of VB methods and getkeystate on google For mouseover (no button pressed) see http://www.mvps.org/access/forms/frm0037.htm > Public Declare Function GetKeyState Lib "user32" _ > (ByVal nVirtKey As Long) As Integer > Public Const VK_LBUTTON = &H1 > Public Const VK_RBUTTON = &H2 > Public Const VK_MBUTTON = &H4 > Public Const KeyIsDown = &H8000& On a textbox object in a form Private Sub Text0_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) If (GetKeyState(VK_LBUTTON) And &H8000) Then Debug.Print "Left Button is Down" Else Debug.Print "Left Button is Up" End If Debug.Print GetKeyState(VK_LBUTTON) Debug.Print GetKeyState(VK_RBUTTON) End Sub Private Sub Text0_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Debug.Print GetKeyState(VK_LBUTTON) Debug.Print GetKeyState(VK_RBUTTON) End Sub Mark A Matte wrote: >Charlotte, > >I'm not trying to do the drag thing. I have a number of objects on a >form...and as the mouse moves over these objects...I would like to do >something depending on whether the right, left, or neither button is held in >the down position. > >Thanks, > >Mark A. Matte > > > > >>From: "Charlotte Foust" >>Reply-To: Access Developers discussion and problem >>solving >>To: "Access Developers discussion and problem >>solving" >>Subject: Re: [AccessD] Is mouse Clicked? >>Date: Thu, 4 May 2006 09:39:12 -0700 >> >>What are you trying to accomplish? If the mouse button is down at the >>time is passes over an object, the click action already occurred >>elsewhere and the behavior/meaning of the mouse activity has changed. >>Are you trying for something like the click and drag you can do in >>design view to select objects? >> >> >>Charlotte Foust >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >>Sent: Thursday, May 04, 2006 9:31 AM >>To: accessd at databaseadvisors.com >>Subject: [AccessD] Is mouse Clicked? >> >>Hello All, >> >>Is there a way when the mouse passes over an object on a form to tell if >>the right or left mouse button is down? >> >>Thanks, >> >>Mark A. Matte >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/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 developer at ultradnt.com Thu May 4 15:38:47 2006 From: developer at ultradnt.com (Steve Conklin) Date: Thu, 4 May 2006 16:38:47 -0400 Subject: [AccessD] OT-VB6 need a key/mouse recorder In-Reply-To: <6.2.3.4.0.20060504163953.031ecd48@indy> Message-ID: <200605042038.k44Kcnm69636@ultradnt.com> Thanks, MF, that prog does the job. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MF Sent: Thursday, May 04, 2006 3:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder I can vouch for how good this is: The company I work for bought it for me and it has solved amongst others, problems of the kind you describe. It is not free. MF __________________________ At 13:09 04/05/2006, you wrote: >I am debugging a VB6 app that is not mine. It is taking me nearly 15 >clicks from app startup to get to the point in the program that I am working on. >Any suggestions on keyboard macro utility would save me a lot of time. >I googled and tried a few; none were right for the job. I am in this >project pro-bono, so a freeware solution, if possible, would be prefrerred. > >Thanks in advance, >Steve > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 May 4 16:31:24 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 May 2006 07:31:24 +1000 Subject: [AccessD] Is mouse Clicked? In-Reply-To: References: Message-ID: <445AFF4C.2257.6F5DE91@stuart.lexacorp.com.pg> On 4 May 2006 at 18:11, Mark A Matte wrote: > Charlotte, > > I'm not trying to do the drag thing. I have a number of objects on a > form...and as the mouse moves over these objects...I would like to do > something depending on whether the right, left, or neither button is held in > the down position. > When you click and hold down a button, all mouse events are sunk in the object that was under the mouse at the time you clicked. So if a mouse button is already down when the mouse moves over an object, the object doesn't even know that the mouse is over it, let alone the state of the mouse buttons. You have to do all your handling in the MouseMove of the of the object that was under the mouse at the time of the click. -- Stuart From stuart at lexacorp.com.pg Thu May 4 16:34:51 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 May 2006 07:34:51 +1000 Subject: [AccessD] OT-VB6 need a key/mouse recorder In-Reply-To: <200605041609.k44G9Mm36151@ultradnt.com> References: <33E923DF3EB78B4D8DCD3A743427425CB1D661@mailbe07.mc.vanderbilt.edu> Message-ID: <445B001B.7189.6F90516@stuart.lexacorp.com.pg> On 4 May 2006 at 12:09, Steve Conklin wrote: > I am debugging a VB6 app that is not mine. It is taking me nearly 15 clicks > from app startup to get to the point in the program that I am working on. > Any suggestions on keyboard macro utility would save me a lot of time. I > googled and tried a few; none were right for the job. I am in this project > pro-bono, so a freeware solution, if possible, would be prefrerred. > AutoIt. http://www.autoitscript.com/autoit3/ Quite BASIC-like in it's syntax and you can easily write a script (or a compile application) to do this sort of thing. -- Stuart From stuart at lexacorp.com.pg Thu May 4 16:36:40 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 May 2006 07:36:40 +1000 Subject: [AccessD] Is mouse Clicked? In-Reply-To: Message-ID: <445B0088.927.6FAB094@stuart.lexacorp.com.pg> On 4 May 2006 at 12:59, Charlotte Foust wrote: > Then use the MouseMove event of the control. Doesn't fire if a mouse button is down when the the mouse moves onto the control. -- Stuart From cfoust at infostatsystems.com Thu May 4 17:01:58 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 May 2006 15:01:58 -0700 Subject: [AccessD] Is mouse Clicked? Message-ID: I forgot about that! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, May 04, 2006 2:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Is mouse Clicked? On 4 May 2006 at 12:59, Charlotte Foust wrote: > Then use the MouseMove event of the control. Doesn't fire if a mouse button is down when the the mouse moves onto the control. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From developer at ultradnt.com Thu May 4 18:06:16 2006 From: developer at ultradnt.com (Steve Conklin) Date: Thu, 4 May 2006 19:06:16 -0400 Subject: [AccessD] OT-VB6 need a key/mouse recorder In-Reply-To: <445B001B.7189.6F90516@stuart.lexacorp.com.pg> Message-ID: <200605042306.k44N6Im86419@ultradnt.com> Thank Stuart. This is cool too, I definetly use it after trial for Macro express runs out. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, May 04, 2006 5:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT-VB6 need a key/mouse recorder On 4 May 2006 at 12:09, Steve Conklin wrote: > I am debugging a VB6 app that is not mine. It is taking me nearly 15 > clicks from app startup to get to the point in the program that I am working on. > Any suggestions on keyboard macro utility would save me a lot of time. > I googled and tried a few; none were right for the job. I am in this > project pro-bono, so a freeware solution, if possible, would be prefrerred. > AutoIt. http://www.autoitscript.com/autoit3/ Quite BASIC-like in it's syntax and you can easily write a script (or a compile application) to do this sort of thing. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri May 5 11:12:03 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 5 May 2006 12:12:03 -0400 Subject: [AccessD] Access resources page on Conrad Systems Developmentwebsite. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DA5030@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3538A@ADGSERVER> I have no affiliation with him. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lembit Soobik Sent: Thursday, May 04, 2006 12:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access resources page on Conrad Systems Developmentwebsite. that's a great list. Can you get us listed there? thanks Lembit ----- Original Message ----- From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Sent: Thursday, May 04, 2006 1:31 PM Subject: [AccessD] Access resources page on Conrad Systems Development website. >I came across this today and thought it might be useful for some. > > http://home.bendbroadband.com/conradsystems/accessjunkie/resources.html > > Bobby From Gustav at cactus.dk Fri May 5 13:51:20 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 May 2006 20:51:20 +0200 Subject: [AccessD] MySQL insert records Message-ID: Hi all When inserting records by a pass-through query from Access, I've found that reading the records off a text file using LOAD DATA INFILE '../data/test.txt' INTO TABLE tempload into an empty non-indexed table runs at about 50,000 records per second even using very modest hardware. This is way faster than any normal "Insert Into ... " I've tried. However, it's a bit clumsy first to have to write the data to a file. Any comments or suggestions? /gustav From mwp.reid at qub.ac.uk Fri May 5 14:05:14 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 5 May 2006 20:05:14 +0100 Subject: [AccessD] Enumerate SQL Servers References: Message-ID: Anyone got an example of populating a drop down list in Access with all available SQL Servers? I am building a new login procedure. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From James at fcidms.com Fri May 5 14:36:37 2006 From: James at fcidms.com (James Barash) Date: Fri, 5 May 2006 15:36:37 -0400 Subject: [AccessD] Enumerate SQL Servers In-Reply-To: Message-ID: <008401c6707b$39dab280$800101df@fci.local> Martin: Here is a example which should work in Access. You will need to reference the SQLDMO library to make it work. Dim oApp As SQLDMO.Application Dim oNames As SQLDMO.NameList Dim oName As Variant Set oApp = New SQLDMO.Application Set oNames = oApp.ListAvailableSQLServers() For Each oName In oNames cboServers.AddItem oName Next Hope it helps. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, May 05, 2006 3:05 PM To: Access Developers discussion and problem solving Subject: [AccessD] Enumerate SQL Servers Anyone got an example of populating a drop down list in Access with all available SQL Servers? I am building a new login procedure. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Fri May 5 14:47:37 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 5 May 2006 20:47:37 +0100 Subject: [AccessD] Enumerate SQL Servers References: <008401c6707b$39dab280$800101df@fci.local> Message-ID: Thanks James. Just did something similar for the actual database names which is step 2. Idea is combo 1 lists the servers, then combo 2 lists the databases on each server. Best Wishes Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of James Barash Sent: Fri 05/05/2006 20:36 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Enumerate SQL Servers Martin: Here is a example which should work in Access. You will need to reference the SQLDMO library to make it work. Dim oApp As SQLDMO.Application Dim oNames As SQLDMO.NameList Dim oName As Variant Set oApp = New SQLDMO.Application Set oNames = oApp.ListAvailableSQLServers() For Each oName In oNames cboServers.AddItem oName Next Hope it helps. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, May 05, 2006 3:05 PM To: Access Developers discussion and problem solving Subject: [AccessD] Enumerate SQL Servers Anyone got an example of populating a drop down list in Access with all available SQL Servers? I am building a new login procedure. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri May 5 19:46:03 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 05 May 2006 17:46:03 -0700 Subject: [AccessD] Enumerate SQL Servers References: <008401c6707b$39dab280$800101df@fci.local> Message-ID: <445BF1CB.5000802@shaw.ca> You might have problems with SQLDMO on SQL 2005 as it has been supplanted with SQLSMO and you might have to use WMI, I haven't checked the differences. Martin Reid wrote: >Thanks James. > >Just did something similar for the actual database names which is step 2. Idea is combo 1 lists the servers, then combo 2 lists the databases on each server. > > > >Best Wishes > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of James Barash >Sent: Fri 05/05/2006 20:36 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Enumerate SQL Servers > > > >Martin: > >Here is a example which should work in Access. You will need to reference >the SQLDMO library to make it work. > > Dim oApp As SQLDMO.Application > Dim oNames As SQLDMO.NameList > Dim oName As Variant > > Set oApp = New SQLDMO.Application > Set oNames = oApp.ListAvailableSQLServers() > For Each oName In oNames > cboServers.AddItem oName > Next > >Hope it helps. > >James Barash > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Friday, May 05, 2006 3:05 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] Enumerate SQL Servers > > >Anyone got an example of populating a drop down list in Access with all >available SQL Servers? >I am building a new login procedure. > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >-- >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.392 / Virus Database: 268.5.5/333 - Release Date: 05/05/2006 > > -- Marty Connelly Victoria, B.C. Canada From darrend at nimble.com.au Fri May 5 21:21:58 2006 From: darrend at nimble.com.au (Darren DICK) Date: Sat, 6 May 2006 12:21:58 +1000 Subject: [AccessD] A2003:Extract Images embedded in a table Message-ID: <20060506022202.BUUM17345.omta04ps.mx.bigpond.com@DENZILLAP> Hi All I Just inherited a dB There are about 120 images in this dB - 1 image for each record The Images for each record have been 'embedded' into the table as OLE Objects Is there a way I can extract each image and put 'em somewhere as bmp's or jpg's etc? Many thanks in advance Darren From stuart at lexacorp.com.pg Fri May 5 21:47:29 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 May 2006 12:47:29 +1000 Subject: [AccessD] A2003:Extract Images embedded in a table In-Reply-To: <20060506022202.BUUM17345.omta04ps.mx.bigpond.com@DENZILLAP> Message-ID: <445C9AE1.22522.D3D9287@stuart.lexacorp.com.pg> On 6 May 2006 at 12:21, Darren DICK wrote: > Hi All > I Just inherited a dB > There are about 120 images in this dB - 1 image for each record > The Images for each record have been 'embedded' into the table as OLE > Objects Is there a way I can extract each image and put 'em somewhere as > bmp's or jpg's etc? > See http://www.lebans.com/oletodisk.htm and grab: A2KExportOLEtoJPEG.zip A2K ONLY! This version saves the entire contents of a table containing OLE Object Images to disk based Jpeg files. User selectable compression rate. Version 1.5 or ExtractInventoryOLE.zip A2K or higher ONLY! This version saves the entire contents of a table containing OLE Objects to disk. Does NOT require the original application that served as the OLE server to insert the object. Supports all MS Office documents, PDF, All images inserted by MS Photo Editor, MS Paint, and Paint Shop Pro. Also supports extraction of PACKAGE class including original Filename. Contains function to produce a full Inventory of the OLE field including LINKED path and Filenames. Uses Structured Storage API's to read the actual contents of the field. Version BETA 1.56 -- Stuart From newsgrps at dalyn.co.nz Fri May 5 22:02:20 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Sat, 06 May 2006 15:02:20 +1200 Subject: [AccessD] VB.Net 2.0 Print Web Page Message-ID: <7.0.1.0.0.20060506145757.01aaddd8@dalyn.co.nz> I have a web page that I would like to add a button to that prints out the page (actually it is two pages but I only want page 1 printed). The functionality is the same as selecting File .. Print, selecting page 1 only. I have tried searching the help but all I seem to get is commands for windows forms, not web pages. From mwp.reid at qub.ac.uk Sat May 6 05:41:10 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 6 May 2006 11:41:10 +0100 Subject: [AccessD] Multi value field contents References: <008401c6707b$39dab280$800101df@fci.local> <445BF1CB.5000802@shaw.ca> Message-ID: I am sorting this myself but was wondering what you think about this and any non obvious solutionsyou may have? I have a field containing value1; value2; value3 Breaks all notions of relational design. The table is a table project associated with many developers. In the Project Task Name Field the values are the developer names associated with the projects. Is it possible in code to Break out the developer names and populate a table properly. This is Access 2007 and SQL Server 2005. The data is in SQL Server 2005 You response may be reused but full credit will be given. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Sat 06/05/2006 01:46 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Enumerate SQL Servers You might have problems with SQLDMO on SQL 2005 as it has been supplanted with SQLSMO and you might have to use WMI, I haven't checked the differences. Martin Reid wrote: >Thanks James. > >Just did something similar for the actual database names which is step 2. Idea is combo 1 lists the servers, then combo 2 lists the databases on each server. > > > >Best Wishes > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of James Barash >Sent: Fri 05/05/2006 20:36 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Enumerate SQL Servers > > > >Martin: > >Here is a example which should work in Access. You will need to reference >the SQLDMO library to make it work. > > Dim oApp As SQLDMO.Application > Dim oNames As SQLDMO.NameList > Dim oName As Variant > > Set oApp = New SQLDMO.Application > Set oNames = oApp.ListAvailableSQLServers() > For Each oName In oNames > cboServers.AddItem oName > Next > >Hope it helps. > >James Barash > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Friday, May 05, 2006 3:05 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] Enumerate SQL Servers > > >Anyone got an example of populating a drop down list in Access with all >available SQL Servers? >I am building a new login procedure. > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >-- >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.392 / Virus Database: 268.5.5/333 - Release Date: 05/05/2006 > > -- 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 stuart at lexacorp.com.pg Sat May 6 07:28:22 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 May 2006 22:28:22 +1000 Subject: [AccessD] Multi value field contents In-Reply-To: Message-ID: <445D2306.24372.F51614A@stuart.lexacorp.com.pg> On 6 May 2006 at 11:41, Martin Reid wrote: > I am sorting this myself but was wondering what you think about this and any > non obvious solutionsyou may have? > > > I have a field containing value1; value2; value3 > > Breaks all notions of relational design. > > The table is a table project associated with many developers. In the Project > Task Name Field the values are the developer names associated with the > projects. > > Is it possible in code to > > Break out the developer names and populate a table properly. > > This is Access 2007 and SQL Server 2005. The data is in SQL Server 2005 > Good old Split() once again :-) Below is just the crux, it's up to you how you grab and write the data (ADO command objects, DAO recordset, CurrentDB.Execute or whatever) ...'Fill recordset rs with Project table .... While not rs.eof strDevelopers() = split(rs!DeveloperNames) For lngLoop = 0 to UBound(strDevelopers) strSQL = "Insert into tblDevelopers (Project,Developer) Values (" & _ rs!Project & +,'" & strDevelopers(lngLoop) & "')" ......'write new record using the SQL string Next rs.movenext Wend -- Stuart From stuart at lexacorp.com.pg Sat May 6 07:35:24 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 May 2006 22:35:24 +1000 Subject: [AccessD] Multi value field contents In-Reply-To: <445D2306.24372.F51614A@stuart.lexacorp.com.pg> References: Message-ID: <445D24AC.10167.F57CEAD@stuart.lexacorp.com.pg> Correction: > > ...'Fill recordset rs with Project table > .... > While not rs.eof > strDevelopers() = split(rs!DeveloperNames,";") > For lngLoop = 0 to UBound(strDevelopers) > strSQL = "Insert into tblDevelopers (Project,Developer) Values (" & _ > rs!Project & ",'" & strDevelopers(lngLoop) & "')" > ......'write new record using the SQL string > Next > rs.movenext > Wend > -- Stuart From dwaters at usinternet.com Sat May 6 10:02:27 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 6 May 2006 10:02:27 -0500 Subject: [AccessD] New Programming Font - Consolas Message-ID: <000001c6711e$17d8a770$0200a8c0@danwaters> MS has just released a new monospaced font intended for programming environments. I've tried it and I think it's easier to look at than Courier New. http://www.microsoft.com/downloads/details.aspx?familyid=22E69AE4-7E40-4807- 8A86-B3D36FAB68D3 &displaylang=en By the way, this web page says that this is only intended for VS 2005, but the license itself says Windows OS or VS 2005. Anyway, it shows up in all font lists. Dan From mwp.reid at qub.ac.uk Sat May 6 13:31:31 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 6 May 2006 19:31:31 +0100 Subject: [AccessD] Access 2007 - QUick Survery References: <000001c6711e$17d8a770$0200a8c0@danwaters> Message-ID: Quick Survey Access 2007. What sort of information as professionals would you like to see about Access 2007? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From gustav at cactus.dk Sat May 6 14:26:34 2006 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 06 May 2006 21:26:34 +0200 Subject: [AccessD] Access 2007 - QUick Survery Message-ID: Hi Martin 1. If code for A2003 needs any change to run under A2007. 2. Pros/cons for using the new database format. 3. How to run an A2003 app in an A2007 runtime environment - without the new band menu (custom menus only). 4. Minimum OS requirement. 5. New features aimed at developers. 6. ...! /gustav >>> mwp.reid at qub.ac.uk 06-05-06 20:31 >>> Quick Survey Access 2007. What sort of information as professionals would you like to see about Access 2007? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From jwcolby at ColbyConsulting.com Sat May 6 15:08:35 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Sat, 6 May 2006 16:08:35 -0400 Subject: [AccessD] Access 2007 - QUick Survery In-Reply-To: Message-ID: <012e01c67148$dc6b6e90$657aa8c0@JWCM6805> All the bugs they fixed from versions past. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Saturday, May 06, 2006 2:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2007 - QUick Survery Quick Survey Access 2007. What sort of information as professionals would you like to see about Access 2007? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Sat May 6 15:34:24 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 6 May 2006 21:34:24 +0100 Subject: [AccessD] Access 2007 - QUick Survery References: <012e01c67148$dc6b6e90$657aa8c0@JWCM6805> Message-ID: Ha could tell you that now - Very few JC this would be interesting. Gimme a list of your top bugs and I will ask them in the beta newsgroup. Be an intersting post. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of John Colby Sent: Sat 06/05/2006 21:08 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - QUick Survery All the bugs they fixed from versions past. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Saturday, May 06, 2006 2:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2007 - QUick Survery Quick Survey Access 2007. What sort of information as professionals would you like to see about Access 2007? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- 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 Sat May 6 16:13:02 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 6 May 2006 22:13:02 +0100 Subject: [AccessD] Enumerate SQL Servers Message-ID: <007d01c67152$1c652f51$1b0e758f@ads.qub.ac.uk> Ah I need to do this with both!! Martin -----Original Message----- From: "MartyConnelly" Sent: 5/6/06 1:51:16 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Enumerate SQL Servers You might have problems with SQLDMO on SQL 2005 as it has been supplanted with SQLSMO and you might have to use WMI, I haven't checked the differences. Martin Reid wrote: >Thanks James. > >Just did something similar for the actual database names which is step 2. Idea is combo 1 lists the servers, then combo 2 lists the databases on each server. > > > >Best Wishes > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of James Barash >Sent: Fri 05/05/2006 20:36 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Enumerate SQL Servers > > > >Martin: > >Here is a example which should work in Access. You will need to reference >the SQLDMO library to make it work. > > Dim oApp As SQLDMO.Application > Dim oNames As SQLDMO.NameList > Dim oName As Variant > > Set oApp = New SQLDMO.Application > Set oNames = oApp.ListAvailableSQLServers() > For Each oName In oNames > cboServers.AddItem oName > Next > >Hope it helps. > >James Barash > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Friday, May 05, 2006 3:05 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] Enumerate SQL Servers > > >Anyone got an example of populating a drop down list in Access with all >available SQL Servers? >I am building a new login procedure. > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >-- >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.392 / Virus Database: 268.5.5/333 - Release Date: 05/05/2006 > > -- 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 May 7 04:49:48 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 07 May 2006 11:49:48 +0200 Subject: [AccessD] Access 2007 - QUick Survery Message-ID: Hi Martin The TimeSerial bug: http://databaseadvisors.com/mailman/htdig/accessd/2006-April/043624.html Probably a VBA bug, not Access specific though. /gustav >>> mwp.reid at qub.ac.uk 06-05-2006 22:34 >>> Ha could tell you that now - Very few JC this would be interesting. Gimme a list of your top bugs and I will ask them in the beta newsgroup. Be an intersting post. Martin From mwp.reid at qub.ac.uk Sun May 7 06:18:03 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 7 May 2006 12:18:03 +0100 Subject: [AccessD] FOR JC References: Message-ID: John Can you give me a list of the main bugs. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From jwcolby at ColbyConsulting.com Sun May 7 06:52:23 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Sun, 7 May 2006 07:52:23 -0400 Subject: [AccessD] FOR JC In-Reply-To: Message-ID: <01f001c671cc$b6939470$657aa8c0@JWCM6805> Martin, I have so given up on MS ever fixing the bugs that I no longer collect them. A couple that I run into regularly - Access just closes with no warning One I ran into just the other day... An ADO recordset pulls info (field names and data) from the parent query to the query specified. What you should do is ask MICROSOFT for a list of KNOWN bugs in A2K/XP and then ask them which of those bugs have been fixed. They already have a list of bugs. If they aren't even fixing the bugs on their own lists, what use is it to supply them more bugs that they will never fix? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Sunday, May 07, 2006 7:18 AM To: Access Developers discussion and problem solving Subject: [AccessD] FOR JC John Can you give me a list of the main bugs. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Sun May 7 07:31:22 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 7 May 2006 13:31:22 +0100 Subject: [AccessD] FOR JC References: <01f001c671cc$b6939470$657aa8c0@JWCM6805> Message-ID: Will do that.Might piss em of (<: Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of John Colby Sent: Sun 07/05/2006 12:52 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FOR JC Martin, I have so given up on MS ever fixing the bugs that I no longer collect them. A couple that I run into regularly - Access just closes with no warning One I ran into just the other day... An ADO recordset pulls info (field names and data) from the parent query to the query specified. What you should do is ask MICROSOFT for a list of KNOWN bugs in A2K/XP and then ask them which of those bugs have been fixed. They already have a list of bugs. If they aren't even fixing the bugs on their own lists, what use is it to supply them more bugs that they will never fix? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Sunday, May 07, 2006 7:18 AM To: Access Developers discussion and problem solving Subject: [AccessD] FOR JC John Can you give me a list of the main bugs. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Sun May 7 07:42:43 2006 From: darrend at nimble.com.au (Darren DICK) Date: Sun, 7 May 2006 22:42:43 +1000 Subject: [AccessD] A2003:Extract Images embedded in a table In-Reply-To: <445C9AE1.22522.D3D9287@stuart.lexacorp.com.pg> Message-ID: <20060507124248.MKJX26978.omta01sl.mx.bigpond.com@DENZILLAP> Brilliant - Thanks Stuart Darren ------------------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Saturday, 6 May 2006 12:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Extract Images embedded in a table On 6 May 2006 at 12:21, Darren DICK wrote: > Hi All > I Just inherited a dB > There are about 120 images in this dB - 1 image for each record > The Images for each record have been 'embedded' into the table as OLE > Objects Is there a way I can extract each image and put 'em somewhere as > bmp's or jpg's etc? > See http://www.lebans.com/oletodisk.htm and grab: A2KExportOLEtoJPEG.zip A2K ONLY! This version saves the entire contents of a table containing OLE Object Images to disk based Jpeg files. User selectable compression rate. Version 1.5 or ExtractInventoryOLE.zip A2K or higher ONLY! This version saves the entire contents of a table containing OLE Objects to disk. Does NOT require the original application that served as the OLE server to insert the object. Supports all MS Office documents, PDF, All images inserted by MS Photo Editor, MS Paint, and Paint Shop Pro. Also supports extraction of PACKAGE class including original Filename. Contains function to produce a full Inventory of the OLE field including LINKED path and Filenames. Uses Structured Storage API's to read the actual contents of the field. Version BETA 1.56 -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Sun May 7 08:03:26 2006 From: darrend at nimble.com.au (Darren DICK) Date: Sun, 7 May 2006 23:03:26 +1000 Subject: [AccessD] A2003:Reading text box Line by Line and inserting each line into a dB field Message-ID: <20060507130330.MQHZ26978.omta01sl.mx.bigpond.com@DENZILLAP> Hi all I am doing some pro-bono work for some General orphanages and AIDS orphanages in Thailand (Feel free to email me off list for any info - Shameless plug - Yes we are always looking for sponsors - another shameless plug) I have just been handed a CD of Publisher files with photos and a small 'blurb' about each child There are about 600 on this CD alone Each MS Publisher 'record' contains the photo and a short 'blurb' that looks like this DUANPEN OONBOON <-- Childs Full Name Gender: Male Born: 23rd June 1995 Grade: 2005-2006- Primary 4 Favourite Subject: English Favourite Sport: Volley Ball Favourite Food: Fried Rice Favourite Colour: Red Child Ref. # MCS-072 You can see there is 9 or so lines of text for each record. And it's all in one text field - an MS Publisher text box And I have to get each line out of that one field and send the first line to the FullName field of the dB the second line to the Gender field of the dB. The third line to the DoB field of the dB etc etc Essentially read that text box line by line and have the contents of each line 'mapped' to a field in a table Any suggestions? I'm also open to suggestions of getting the images out of publisher and onto the HardDrive in some meaningful name format If you need a copy of the Publisher file - I am more than willing to share a snip off line Many many thanks in advance Darren From mwp.reid at qub.ac.uk Sun May 7 08:02:53 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 7 May 2006 14:02:53 +0100 Subject: [AccessD] FOR JC References: <01f001c671cc$b6939470$657aa8c0@JWCM6805> Message-ID: JOhn I posted the following Can I have a list showing all Bugd that have been fixed in Access 2007. Not a list of improvments but actual bugs from previous versions that have been repaired. Will see what happens. Will not hold my breath for a response. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of John Colby Sent: Sun 07/05/2006 12:52 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FOR JC Martin, I have so given up on MS ever fixing the bugs that I no longer collect them. A couple that I run into regularly - Access just closes with no warning One I ran into just the other day... An ADO recordset pulls info (field names and data) from the parent query to the query specified. What you should do is ask MICROSOFT for a list of KNOWN bugs in A2K/XP and then ask them which of those bugs have been fixed. They already have a list of bugs. If they aren't even fixing the bugs on their own lists, what use is it to supply them more bugs that they will never fix? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Sunday, May 07, 2006 7:18 AM To: Access Developers discussion and problem solving Subject: [AccessD] FOR JC John Can you give me a list of the main bugs. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sun May 7 11:55:13 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 07 May 2006 09:55:13 -0700 Subject: [AccessD] Access 2007 - QUick Survery References: <000001c6711e$17d8a770$0200a8c0@danwaters> Message-ID: <445E2671.3010206@shaw.ca> One question I am seeing is what are the exact restrictions on running either Access 2003 or 2007 ADP's versus SQL 2005. Will they handle new complex data types? What modifications will be needed. Can you use Access 2007 ADP's for any future development. Can you run an ADP developed under 2003 and run it in 2007 against SQL 2005 by just changing the connection string, assuming you have done an SQL 2000 to 2005 conversion? Martin Reid wrote: >Quick Survey > >Access 2007. What sort of information as professionals would you like to see about Access 2007? > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Sun May 7 15:08:13 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 7 May 2006 21:08:13 +0100 Subject: [AccessD] Access 2007 - QUick Survery References: <000001c6711e$17d8a770$0200a8c0@danwaters> <445E2671.3010206@shaw.ca> Message-ID: Marty This MAY be incorrect and is written as of tonight so could change totally between now and release. They will not handle the new data types but should function as before with SQL 2005 peovided you have only those DTs supported by SQL Server 2000. At the moment there is no way to work with 2005 via ADPs. There are some issues still that appear to be outstanding. In fact I have posted to them about several including the fact that no server object appear when using 2005 but they are picked up by the wizards but dont show in teh Access container. Asd of about 5mins ago I have had no luck at all with ADPs and SQLS erver 2005 other than linking to the tables in Access as before. They are REALLY pushing linking tables as first choice over ADPS. ADPs will not receive the same focus in future development as linking to MDBs etc will I did get that much out of them Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Sun 07/05/2006 17:55 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery One question I am seeing is what are the exact restrictions on running either Access 2003 or 2007 ADP's versus SQL 2005. Will they handle new complex data types? What modifications will be needed. Can you use Access 2007 ADP's for any future development. Can you run an ADP developed under 2003 and run it in 2007 against SQL 2005 by just changing the connection string, assuming you have done an SQL 2000 to 2005 conversion? Martin Reid wrote: >Quick Survey > >Access 2007. What sort of information as professionals would you like to see about Access 2007? > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > > > -- 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 brogers at drhorton.com Sun May 7 16:39:50 2006 From: brogers at drhorton.com (Brian Rogers) Date: Sun, 7 May 2006 16:39:50 -0500 Subject: [AccessD] trouble with minicalendar on a subform A2003 Message-ID: <248A614DAEE9A2478D90BDDEEFEACD3402A114E2@dfw-exch-apps25.drhorton.com> I have been using the minicalendar with no problem until I took the form it was on and made it into a subform. Now I can't get Access to find the subform and the control I want the date to go to. Below works great when [f builder schedule] is the main form, but when I use it as a subform, it doesn't work. I will no longer need it as a main form. Private Sub Command87_Click() 'Call the MiniCalendar to set the date Call fMiniCalendar(, , "[f builder schedule]", "[ Plan Rev Date]") End Sub Please help with syntax Brian From dwaters at usinternet.com Sun May 7 19:28:03 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 7 May 2006 19:28:03 -0500 Subject: [AccessD] trouble with minicalendar on a subform A2003 In-Reply-To: <13318654.1147038503101.JavaMail.root@sniper13> Message-ID: <000001c67236$4674fbb0$0300a8c0@danwaters> Brian, You'll need to call the calendar as a subform, and yes, the syntax is different. Let's say that your Main form is called frmMain. And let's say the calendar form name is frmCalendar. And let's say the subform object your put the calendar form in is called subCalendar. And the control you're looking for on frmCalendar is txtCalendarDate. Dim txt as TextBox Set txt = Forms("frmMain").subCalendar.Form.txtCalendarDate '-- OR (if you are setting this reference in the frmMain's code) Set txt = Me.subCalendar.Form.txtCalendarDate '-- OR Set txt = subCalendar.Form.txtCalendarDate Hope this Helps! Dan -----Original Message----- I have been using the minicalendar with no problem until I took the form it was on and made it into a subform. Now I can't get Access to find the subform and the control I want the date to go to. Below works great when [f builder schedule] is the main form, but when I use it as a subform, it doesn't work. I will no longer need it as a main form. Private Sub Command87_Click() 'Call the MiniCalendar to set the date Call fMiniCalendar(, , "[f builder schedule]", "[ Plan Rev Date]") End Sub Please help with syntax Brian -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From oost at e-business2start.com Mon May 8 05:05:35 2006 From: oost at e-business2start.com (E-business2start.com - Marcel Vreuls) Date: Mon, 8 May 2006 03:05:35 -0700 Subject: [AccessD] analyse code and performance Message-ID: Hi all, Does anyone has a good hint to analyse my vba code and performance of the database. I searched on google if there are some good vba codeanalysers but could not find any. Thanks, Marcel From cyx5 at cdc.gov Mon May 8 05:32:02 2006 From: cyx5 at cdc.gov (Long, Karen S. (CDC/NIOSH/NPPTL) (CTR)) Date: Mon, 8 May 2006 06:32:02 -0400 Subject: [AccessD] .PDF Without Driver? Message-ID: I am trying to find the posting of the .pdf driver/routine that was posted a while back that was on someone's site - it did not require a .pdf program being installed. Anyone remember what that was? Thanks. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov From Gustav at cactus.dk Mon May 8 05:43:08 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 08 May 2006 12:43:08 +0200 Subject: [AccessD] .PDF Without Driver? Message-ID: Hi Karen Here I guess: http://www.lebans.com/reporttopdf.htm /gustav >>> cyx5 at cdc.gov 08-05-2006 12:32 >>> I am trying to find the posting of the .pdf driver/routine that was posted a while back that was on someone's site - it did not require a .pdf program being installed. Anyone remember what that was? Thanks. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov From JRojas at tnco-inc.com Mon May 8 08:21:28 2006 From: JRojas at tnco-inc.com (Joe Rojas) Date: Mon, 8 May 2006 09:21:28 -0400 Subject: [AccessD] New Programming Font - Consolas Message-ID: <758E92433C4F3740B67BE4DD369AF577156AF9@ex2k3.corp.tnco-inc.com> Hi Dan, When you installed this font, did you have VS2005 installed? I went to install it and it kept coming back telling me that it was interrupted before it could install. I don't have VS2005 installed. Thanks, Joe Rojas IT Manager TNCO, Inc. 781-447-6661 x7506 jrojas at tnco-inc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, May 06, 2006 11:02 AM To: AccessD Subject: [AccessD] New Programming Font - Consolas MS has just released a new monospaced font intended for programming environments. I've tried it and I think it's easier to look at than Courier New. http://www.microsoft.com/downloads/details.aspx?familyid=22E69AE4-7E40-4 807- 8A86-B3D36FAB68D3 &displaylang=en By the way, this web page says that this is only intended for VS 2005, but the license itself says Windows OS or VS 2005. Anyway, it shows up in all font lists. Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon May 8 08:29:14 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 8 May 2006 08:29:14 -0500 Subject: [AccessD] New Programming Font - Consolas In-Reply-To: <5078391.1147094663676.JavaMail.root@sniper19> Message-ID: <000201c672a3$6a18e550$0200a8c0@danwaters> Joe, I don't have VS 2005 installed - but I do have VB 2005 Express installed, which is free. Perhaps that helped. Dan -----Original Message----- Hi Dan, When you installed this font, did you have VS2005 installed? I went to install it and it kept coming back telling me that it was interrupted before it could install. I don't have VS2005 installed. Thanks, Joe Rojas -----Original Message----- MS has just released a new monospaced font intended for programming environments. I've tried it and I think it's easier to look at than Courier New. http://www.microsoft.com/downloads/details.aspx?familyid=22E69AE4-7E40-4 807- 8A86-B3D36FAB68D3 &displaylang=en By the way, this web page says that this is only intended for VS 2005, but the license itself says Windows OS or VS 2005. Anyway, it shows up in all font lists. Dan From DWUTKA at marlow.com Mon May 8 10:04:35 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 8 May 2006 10:04:35 -0500 Subject: [AccessD] trouble with minicalendar on a subform A2003 Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B1F07@main2.marlow.com> Sorry, the Minicalendar v. 3 was a little clunky, not designed to run as a subform. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Sunday, May 07, 2006 4:40 PM To: accessD at databaseadvisors.com Subject: [AccessD] trouble with minicalendar on a subform A2003 I have been using the minicalendar with no problem until I took the form it was on and made it into a subform. Now I can't get Access to find the subform and the control I want the date to go to. Below works great when [f builder schedule] is the main form, but when I use it as a subform, it doesn't work. I will no longer need it as a main form. Private Sub Command87_Click() 'Call the MiniCalendar to set the date Call fMiniCalendar(, , "[f builder schedule]", "[ Plan Rev Date]") End Sub Please help with syntax Brian -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Mon May 8 12:43:38 2006 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Mon, 8 May 2006 12:43:38 -0500 Subject: [AccessD] New Programming Font - Consolas Message-ID: Consolas ... Sounds like a Mexican Restaurant "Yes, I'll have your Binary Blob Burritos. My friend will have the Entity-Relationship Enchiladas, and we'll have a side of QueryDef Quesadillas" Mmmm.... -Ken -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Monday, May 08, 2006 8:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] New Programming Font - Consolas Joe, I don't have VS 2005 installed - but I do have VB 2005 Express installed, which is free. Perhaps that helped. Dan -----Original Message----- Hi Dan, When you installed this font, did you have VS2005 installed? I went to install it and it kept coming back telling me that it was interrupted before it could install. I don't have VS2005 installed. Thanks, Joe Rojas -----Original Message----- MS has just released a new monospaced font intended for programming environments. I've tried it and I think it's easier to look at than Courier New. http://www.microsoft.com/downloads/details.aspx?familyid=22E69AE4-7E40-4 807- 8A86-B3D36FAB68D3 &displaylang=en By the way, this web page says that this is only intended for VS 2005, but the license itself says Windows OS or VS 2005. Anyway, it shows up in all font lists. Dan From cfoust at infostatsystems.com Mon May 8 13:16:07 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 May 2006 11:16:07 -0700 Subject: [AccessD] New Programming Font - Consolas Message-ID: ROTFL Ole! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ken Ismert Sent: Monday, May 08, 2006 10:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] New Programming Font - Consolas Consolas ... Sounds like a Mexican Restaurant "Yes, I'll have your Binary Blob Burritos. My friend will have the Entity-Relationship Enchiladas, and we'll have a side of QueryDef Quesadillas" Mmmm.... -Ken -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Monday, May 08, 2006 8:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] New Programming Font - Consolas Joe, I don't have VS 2005 installed - but I do have VB 2005 Express installed, which is free. Perhaps that helped. Dan -----Original Message----- Hi Dan, When you installed this font, did you have VS2005 installed? I went to install it and it kept coming back telling me that it was interrupted before it could install. I don't have VS2005 installed. Thanks, Joe Rojas -----Original Message----- MS has just released a new monospaced font intended for programming environments. I've tried it and I think it's easier to look at than Courier New. http://www.microsoft.com/downloads/details.aspx?familyid=22E69AE4-7E40-4 807- 8A86-B3D36FAB68D3 &displaylang=en By the way, this web page says that this is only intended for VS 2005, but the license itself says Windows OS or VS 2005. Anyway, it shows up in all font lists. Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon May 8 13:49:54 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 8 May 2006 13:49:54 -0500 Subject: [AccessD] New Programming Font - Consolas In-Reply-To: <1995298.1147110675092.JavaMail.root@sniper39> Message-ID: <000001c672d0$32d5bc30$0200a8c0@danwaters> You know . . . I can see this font easier - And - I can spot a burrito a mile away!! Must be something to it! Dan -----Original Message----- Consolas ... Sounds like a Mexican Restaurant "Yes, I'll have your Binary Blob Burritos. My friend will have the Entity-Relationship Enchiladas, and we'll have a side of QueryDef Quesadillas" Mmmm.... -Ken -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Monday, May 08, 2006 8:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] New Programming Font - Consolas Joe, I don't have VS 2005 installed - but I do have VB 2005 Express installed, which is free. Perhaps that helped. Dan -----Original Message----- Hi Dan, When you installed this font, did you have VS2005 installed? I went to install it and it kept coming back telling me that it was interrupted before it could install. I don't have VS2005 installed. Thanks, Joe Rojas -----Original Message----- MS has just released a new monospaced font intended for programming environments. I've tried it and I think it's easier to look at than Courier New. http://www.microsoft.com/downloads/details.aspx?familyid=22E69AE4-7E40-4 807- 8A86-B3D36FAB68D3 &displaylang=en By the way, this web page says that this is only intended for VS 2005, but the license itself says Windows OS or VS 2005. Anyway, it shows up in all font lists. Dan From nanette.j.gould at Vanderbilt.Edu Mon May 8 14:03:43 2006 From: nanette.j.gould at Vanderbilt.Edu (Gould, Nanette) Date: Mon, 8 May 2006 14:03:43 -0500 Subject: [AccessD] Access 2007 - QUick Survery Message-ID: <33E923DF3EB78B4D8DCD3A743427425CB1D6E6@mailbe07.mc.vanderbilt.edu> Something that should be so easy! The ability to align form and report objects Middle and Center, just like you can in every other Office program! Thanks, Nanette -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Saturday, May 06, 2006 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2007 - QUick Survery Quick Survey Access 2007. What sort of information as professionals would you like to see about Access 2007? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From cfoust at infostatsystems.com Mon May 8 16:12:14 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 May 2006 14:12:14 -0700 Subject: [AccessD] Access 2007 - QUick Survery Message-ID: I'd settle for the kind of alignment you get in VS 2005, where little lines appear to help you align a control with others already there. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gould, Nanette Sent: Monday, May 08, 2006 12:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery Something that should be so easy! The ability to align form and report objects Middle and Center, just like you can in every other Office program! Thanks, Nanette -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Saturday, May 06, 2006 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2007 - QUick Survery Quick Survey Access 2007. What sort of information as professionals would you like to see about Access 2007? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kp at sdsonline.net Mon May 8 18:20:42 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 9 May 2006 09:20:42 +1000 Subject: [AccessD] Access 2007 - QUick Survery References: <33E923DF3EB78B4D8DCD3A743427425CB1D6E6@mailbe07.mc.vanderbilt.edu> Message-ID: <006501c672f6$07ab0e90$6601a8c0@office> Martin - I don't know whether you are also asking for the 'wish list' - are you? If so then I would ask for a real global find/replace of anything which would do the same job as SpeedFerret or Fisher Find / replace without leaving Access. I'd also like to see a much better facility to create runtimes, to get out of the Sage / Wise situation. Maybe they should buy them out? In terms of information about it, I would basically like to see a summary of the overall differences, benefits, code changes to allow for. And lastly, a low price for software developers :) Kath -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Saturday, May 06, 2006 1:32 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2007 - QUick Survery Quick Survey Access 2007. What sort of information as professionals would you like to see about Access 2007? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From brogers at drhorton.com Mon May 8 19:38:31 2006 From: brogers at drhorton.com (Brian Rogers) Date: Mon, 8 May 2006 19:38:31 -0500 Subject: [AccessD] trouble with minicalendar on a subform A2003 Message-ID: <248A614DAEE9A2478D90BDDEEFEACD340154B652@dfw-exch-apps25.drhorton.com> Thanks for the reply. Is there a later version? Brian ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of DWUTKA at marlow.com Sent: Mon 5/8/2006 10:04 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Sorry, the Minicalendar v. 3 was a little clunky, not designed to run as a subform. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Sunday, May 07, 2006 4:40 PM To: accessD at databaseadvisors.com Subject: [AccessD] trouble with minicalendar on a subform A2003 I have been using the minicalendar with no problem until I took the form it was on and made it into a subform. Now I can't get Access to find the subform and the control I want the date to go to. Below works great when [f builder schedule] is the main form, but when I use it as a subform, it doesn't work. I will no longer need it as a main form. Private Sub Command87_Click() 'Call the MiniCalendar to set the date Call fMiniCalendar(, , "[f builder schedule]", "[ Plan Rev Date]") End Sub Please help with syntax Brian -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Tue May 9 01:07:48 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 9 May 2006 16:07:48 +1000 Subject: [AccessD] analyse code and performance Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116A5B0@ddi-01.DDI.local> Hi Marcel, I seem to recall FMS had some products which analyse mdbs. Cannot recommend anything though. cheers Michael M DDI Solutions Pty Ltd www.ddisolutions.com.au -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of E-business2start.com - Marcel Vreuls Sent: Monday, 8 May 2006 8:06 PM To: accessd at databaseadvisors.com Subject: [AccessD] analyse code and performance Hi all, Does anyone has a good hint to analyse my vba code and performance of the database. I searched on google if there are some good vba codeanalysers but could not find any. Thanks, Marcel -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael at ddisolutions.com.au Tue May 9 01:19:14 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Tue, 9 May 2006 16:19:14 +1000 Subject: [AccessD] VB.Net 2.0 Print Web Page Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116A5B1@ddi-01.DDI.local> G'day, I doubt you will find anything that doesn't use a 3rd party tool, activeX eg. Printing is the domain of the browser not the web page. What a lot of sites do is have a print friendly version of the page. You still have to use the browser print commands though. HTH Michael M www.ddisolutions.com.au -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Saturday, 6 May 2006 1:02 PM To: accessd at databaseadvisors.com Subject: [AccessD] VB.Net 2.0 Print Web Page I have a web page that I would like to add a button to that prints out the page (actually it is two pages but I only want page 1 printed). The functionality is the same as selecting File .. Print, selecting page 1 only. I have tried searching the help but all I seem to get is commands for windows forms, not web pages. -- 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 May 9 03:30:34 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 09 May 2006 20:30:34 +1200 Subject: [AccessD] VB.Net 2.0 Print Web Page In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D0116A5B1@ddi-01.DDI.local> References: <59A61174B1F5B54B97FD4ADDE71E7D0116A5B1@ddi-01.DDI.local> Message-ID: <7.0.1.0.0.20060509203023.01a9e520@dalyn.co.nz> Thanks. At 9/05/2006, you wrote: >G'day, > >I doubt you will find anything that doesn't use a 3rd party tool, >activeX eg. >Printing is the domain of the browser not the web page. >What a lot of sites do is have a print friendly version of the page. >You still have >to use the browser print commands though. > >HTH > > >Michael M >www.ddisolutions.com.au > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Saturday, 6 May 2006 1:02 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] VB.Net 2.0 Print Web Page > >I have a web page that I would like to add a button to that prints out >the page (actually it is two pages but I only want page 1 printed). The >functionality is the same as selecting File .. Print, selecting page 1 >only. > >I have tried searching the help but all I seem to get is commands for >windows forms, not web pages. > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Tue May 9 06:37:51 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 9 May 2006 07:37:51 -0400 Subject: [AccessD] Timer class suggestions... Message-ID: <916187228923D311A6FE00A0CC3FAA30D3539D@ADGSERVER> Hey, I had a need to time some code the other day and decided to come up with a somewhat generic class to help perform this task. I'd like to ask for your opinion/suggestions about what I came up with. This is what I came up with. First, since all users are on Win XP, I am using QueryPerformanceCounter and QueryPerformanceFrequency to calculate timings. There are three classes: clsTimer, clsTimerData, and clsTimerInstance clsTimer is the main class. It contains 2 collections that hold instances of the other two classes and a timestamp of the time that the class was instantiated (called RunTS). clsTimerInstance holds data about a timer that has been started (ID, start value of timer, and a time stamp). clsTimerData holds the complete timer data record for a given timer event (ID, start value of timer, end value of timer, difference between end and start, elapsed time in seconds, time stamp of timer, and RunTS). This class holds the completed timer data until the data is persisted. To use the timers, an instance of clsTimer is instantiated. For each timer that is to be started, make a call to the clsTimer.StartTimer with an ID (long value) that is used as the key for the timer instance. This function returns an index to that timer that is used to stop the timer. This function creates an instance of the clsTimerInstance class that contains the starting values of the timer and adds it to the Instance collection. When a given timer is stopped, the ending timer value is obtained. The starting values are located in the Instance collection. A new clsTimerData instance is created and populated with the timer data and added to the TimerData collection. The clsTimerInstance collection item is then deleted. The data can be persisted to a table with a call to clsTimer.PersistData. Right now, this function simply iterates the TimerData collection and dumps it to a table. I plan on being able to pass this function a value so that this function can also call two other functions to dump to a formatted flat file and a CSV file. To use the timers is a simple as: Dim cTimer as new clsTimer ... x=ctimer.StartTimer(1) 'some code cTimer.StopTimer 1 x=ctimer.StartTimer(1) for i=0 to 100000 y=cTimer.StartTimer(2) 'we can nest them 'some more code cTimer.StopTimer 2 next i ctimer.StopTimer 1 ctimer.PersistData set ctimer=nothing The output would look something like (from a different test run): TimerID StartVal EndVal Elapsed Seconds TimeStamp RunTS 1 215002386.2371 215002420.5905 34.3534 0.096 5/9/2006 7:32:13 AM 5/9/2006 7:32:13 AM 2 ... 2 ... 2 ... How does this sound to you all? Thanks for even making it this far! Thanks, Bobby From Gustav at cactus.dk Tue May 9 09:24:05 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 09 May 2006 16:24:05 +0200 Subject: [AccessD] Timer class suggestions... Message-ID: Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav >>> bheid at appdevgrp.com 09-05-2006 13:37:51 >>> Hey, I had a need to time some code the other day and decided to come up with a somewhat generic class to help perform this task. I'd like to ask for your opinion/suggestions about what I came up with. This is what I came up with. First, since all users are on Win XP, I am using QueryPerformanceCounter and QueryPerformanceFrequency to calculate timings. There are three classes: clsTimer, clsTimerData, and clsTimerInstance clsTimer is the main class. It contains 2 collections that hold instances of the other two classes and a timestamp of the time that the class was instantiated (called RunTS). clsTimerInstance holds data about a timer that has been started (ID, start value of timer, and a time stamp). clsTimerData holds the complete timer data record for a given timer event (ID, start value of timer, end value of timer, difference between end and start, elapsed time in seconds, time stamp of timer, and RunTS). This class holds the completed timer data until the data is persisted. To use the timers, an instance of clsTimer is instantiated. For each timer that is to be started, make a call to the clsTimer.StartTimer with an ID (long value) that is used as the key for the timer instance. This function returns an index to that timer that is used to stop the timer. This function creates an instance of the clsTimerInstance class that contains the starting values of the timer and adds it to the Instance collection. When a given timer is stopped, the ending timer value is obtained. The starting values are located in the Instance collection. A new clsTimerData instance is created and populated with the timer data and added to the TimerData collection. The clsTimerInstance collection item is then deleted. The data can be persisted to a table with a call to clsTimer.PersistData. Right now, this function simply iterates the TimerData collection and dumps it to a table. I plan on being able to pass this function a value so that this function can also call two other functions to dump to a formatted flat file and a CSV file. To use the timers is a simple as: Dim cTimer as new clsTimer ... x=ctimer.StartTimer(1) 'some code cTimer.StopTimer 1 x=ctimer.StartTimer(1) for i=0 to 100000 y=cTimer.StartTimer(2) 'we can nest them 'some more code cTimer.StopTimer 2 next i ctimer.StopTimer 1 ctimer.PersistData set ctimer=nothing The output would look something like (from a different test run): TimerID StartVal EndVal Elapsed Seconds TimeStamp RunTS 1 215002386.2371 215002420.5905 34.3534 0.096 5/9/2006 7:32:13 AM 5/9/2006 7:32:13 AM 2 ... 2 ... 2 ... How does this sound to you all? Thanks for even making it this far! Thanks, Bobby From Lambert.Heenan at AIG.com Tue May 9 09:43:29 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 9 May 2006 09:43:29 -0500 Subject: [AccessD] Timer class suggestions... Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F21759D1B@xlivmbx21.aig.com> Hello Gustav, As the kBase article says that GetTickCount and TimeGetTime have ~10ms resolution I wonder if there is anything to be gained in using them rather that the built-in function Timer, which also has ~10ms resolution? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 10:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav >>> bheid at appdevgrp.com 09-05-2006 13:37:51 >>> Hey, I had a need to time some code the other day and decided to come up with a somewhat generic class to help perform this task. I'd like to ask for your opinion/suggestions about what I came up with. This is what I came up with. First, since all users are on Win XP, I am using QueryPerformanceCounter and QueryPerformanceFrequency to calculate timings. There are three classes: clsTimer, clsTimerData, and clsTimerInstance clsTimer is the main class. It contains 2 collections that hold instances of the other two classes and a timestamp of the time that the class was instantiated (called RunTS). clsTimerInstance holds data about a timer that has been started (ID, start value of timer, and a time stamp). clsTimerData holds the complete timer data record for a given timer event (ID, start value of timer, end value of timer, difference between end and start, elapsed time in seconds, time stamp of timer, and RunTS). This class holds the completed timer data until the data is persisted. To use the timers, an instance of clsTimer is instantiated. For each timer that is to be started, make a call to the clsTimer.StartTimer with an ID (long value) that is used as the key for the timer instance. This function returns an index to that timer that is used to stop the timer. This function creates an instance of the clsTimerInstance class that contains the starting values of the timer and adds it to the Instance collection. When a given timer is stopped, the ending timer value is obtained. The starting values are located in the Instance collection. A new clsTimerData instance is created and populated with the timer data and added to the TimerData collection. The clsTimerInstance collection item is then deleted. The data can be persisted to a table with a call to clsTimer.PersistData. Right now, this function simply iterates the TimerData collection and dumps it to a table. I plan on being able to pass this function a value so that this function can also call two other functions to dump to a formatted flat file and a CSV file. To use the timers is a simple as: Dim cTimer as new clsTimer ... x=ctimer.StartTimer(1) 'some code cTimer.StopTimer 1 x=ctimer.StartTimer(1) for i=0 to 100000 y=cTimer.StartTimer(2) 'we can nest them 'some more code cTimer.StopTimer 2 next i ctimer.StopTimer 1 ctimer.PersistData set ctimer=nothing The output would look something like (from a different test run): TimerID StartVal EndVal Elapsed Seconds TimeStamp RunTS 1 215002386.2371 215002420.5905 34.3534 0.096 5/9/2006 7:32:13 AM 5/9/2006 7:32:13 AM 2 ... 2 ... 2 ... How does this sound to you all? Thanks for even making it this far! Thanks, Bobby -- 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 May 9 09:52:46 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 9 May 2006 09:52:46 -0500 Subject: [AccessD] Timer class suggestions... Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F21759D29@xlivmbx21.aig.com> To answer my own question... I added the following block of code to the article's test code... ' ' Time timer ' Dim sCount1 As Single, sCount2 As Single Debug.Print Loops = 0 sCount1 = Timer() Do sCount2 = Timer() Loops = Loops + 1 Loop Until sCount1 <> sCount2 Debug.Print "timer minimum resolution: "; _ (sCount2 - sCount1); "ms" Debug.Print "Took"; Loops; "loops" ... And here is the result... Test_Timers Start Value: 2196010.9816 End Value: 2196010.9826 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2.79365114840015E-06 seconds GetTickCount minimum resolution: 10 ms Took 52952 loops timeGetTime minimum resolution: 1 ms Took 4795 loops timer minimum resolution: 0.0078125 ms Took 11716 loops So Timer has about the same resolution as timeGetTime, but it runs about twice as fast. Lambert -----Original Message----- From: Heenan, Lambert Sent: Tuesday, May 09, 2006 10:43 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Timer class suggestions... Hello Gustav, As the kBase article says that GetTickCount and TimeGetTime have ~10ms resolution I wonder if there is anything to be gained in using them rather that the built-in function Timer, which also has ~10ms resolution? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 10:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav >>> bheid at appdevgrp.com 09-05-2006 13:37:51 >>> Hey, I had a need to time some code the other day and decided to come up with a somewhat generic class to help perform this task. I'd like to ask for your opinion/suggestions about what I came up with. This is what I came up with. First, since all users are on Win XP, I am using QueryPerformanceCounter and QueryPerformanceFrequency to calculate timings. There are three classes: clsTimer, clsTimerData, and clsTimerInstance clsTimer is the main class. It contains 2 collections that hold instances of the other two classes and a timestamp of the time that the class was instantiated (called RunTS). clsTimerInstance holds data about a timer that has been started (ID, start value of timer, and a time stamp). clsTimerData holds the complete timer data record for a given timer event (ID, start value of timer, end value of timer, difference between end and start, elapsed time in seconds, time stamp of timer, and RunTS). This class holds the completed timer data until the data is persisted. To use the timers, an instance of clsTimer is instantiated. For each timer that is to be started, make a call to the clsTimer.StartTimer with an ID (long value) that is used as the key for the timer instance. This function returns an index to that timer that is used to stop the timer. This function creates an instance of the clsTimerInstance class that contains the starting values of the timer and adds it to the Instance collection. When a given timer is stopped, the ending timer value is obtained. The starting values are located in the Instance collection. A new clsTimerData instance is created and populated with the timer data and added to the TimerData collection. The clsTimerInstance collection item is then deleted. The data can be persisted to a table with a call to clsTimer.PersistData. Right now, this function simply iterates the TimerData collection and dumps it to a table. I plan on being able to pass this function a value so that this function can also call two other functions to dump to a formatted flat file and a CSV file. To use the timers is a simple as: Dim cTimer as new clsTimer ... x=ctimer.StartTimer(1) 'some code cTimer.StopTimer 1 x=ctimer.StartTimer(1) for i=0 to 100000 y=cTimer.StartTimer(2) 'we can nest them 'some more code cTimer.StopTimer 2 next i ctimer.StopTimer 1 ctimer.PersistData set ctimer=nothing The output would look something like (from a different test run): TimerID StartVal EndVal Elapsed Seconds TimeStamp RunTS 1 215002386.2371 215002420.5905 34.3534 0.096 5/9/2006 7:32:13 AM 5/9/2006 7:32:13 AM 2 ... 2 ... 2 ... How does this sound to you all? Thanks for even making it this far! Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Tue May 9 09:57:39 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 9 May 2006 10:57:39 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: Timer class suggestions... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DA555F@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353A4@ADGSERVER> Hi Gustav, So you are saying to use the TimeGetTime function? One thing to note is that the resolution on the QueryperformanceCounter is dependant on the user's system. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 10:24 AM To: accessd at databaseadvisors.com Subject: [SPAM SUSPECT] Re: [AccessD] Timer class suggestions... Importance: Low Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav >>> bheid at appdevgrp.com 09-05-2006 13:37:51 >>> Hey, I had a need to time some code the other day and decided to come up with a somewhat generic class to help perform this task. I'd like to ask for your opinion/suggestions about what I came up with. This is what I came up with. First, since all users are on Win XP, I am using QueryPerformanceCounter and QueryPerformanceFrequency to calculate timings. There are three classes: clsTimer, clsTimerData, and clsTimerInstance clsTimer is the main class. It contains 2 collections that hold instances of the other two classes and a timestamp of the time that the class was instantiated (called RunTS). clsTimerInstance holds data about a timer that has been started (ID, start value of timer, and a time stamp). clsTimerData holds the complete timer data record for a given timer event (ID, start value of timer, end value of timer, difference between end and start, elapsed time in seconds, time stamp of timer, and RunTS). This class holds the completed timer data until the data is persisted. To use the timers, an instance of clsTimer is instantiated. For each timer that is to be started, make a call to the clsTimer.StartTimer with an ID (long value) that is used as the key for the timer instance. This function returns an index to that timer that is used to stop the timer. This function creates an instance of the clsTimerInstance class that contains the starting values of the timer and adds it to the Instance collection. When a given timer is stopped, the ending timer value is obtained. The starting values are located in the Instance collection. A new clsTimerData instance is created and populated with the timer data and added to the TimerData collection. The clsTimerInstance collection item is then deleted. The data can be persisted to a table with a call to clsTimer.PersistData. Right now, this function simply iterates the TimerData collection and dumps it to a table. I plan on being able to pass this function a value so that this function can also call two other functions to dump to a formatted flat file and a CSV file. To use the timers is a simple as: Dim cTimer as new clsTimer ... x=ctimer.StartTimer(1) 'some code cTimer.StopTimer 1 x=ctimer.StartTimer(1) for i=0 to 100000 y=cTimer.StartTimer(2) 'we can nest them 'some more code cTimer.StopTimer 2 next i ctimer.StopTimer 1 ctimer.PersistData set ctimer=nothing The output would look something like (from a different test run): TimerID StartVal EndVal Elapsed Seconds TimeStamp RunTS 1 215002386.2371 215002420.5905 34.3534 0.096 5/9/2006 7:32:13 AM 5/9/2006 7:32:13 AM 2 ... 2 ... 2 ... How does this sound to you all? Thanks for even making it this far! Thanks, Bobby -- From bheid at appdevgrp.com Tue May 9 10:08:42 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 9 May 2006 11:08:42 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: Timer class suggestions... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DA556B@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353A5@ADGSERVER> Lambert, The whole idea was to be able to time sections of code (or any elapsed event). So having an active timer is just a waste of resources in that it causes an event to be fired at x intervals. Sorry if I misinterpreted your email. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, May 09, 2006 10:43 AM To: 'Access Developers discussion and problem solving' Subject: [SPAM SUSPECT] Re: [AccessD] Timer class suggestions... Importance: Low Hello Gustav, As the kBase article says that GetTickCount and TimeGetTime have ~10ms resolution I wonder if there is anything to be gained in using them rather that the built-in function Timer, which also has ~10ms resolution? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 10:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav From bheid at appdevgrp.com Tue May 9 10:17:16 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 9 May 2006 11:17:16 -0400 Subject: [AccessD] Timer class suggestions... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DA5573@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353A7@ADGSERVER> What timer are you referring to in the article? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, May 09, 2006 10:53 AM To: Heenan, Lambert; 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer class suggestions... To answer my own question... I added the following block of code to the article's test code... ' ' Time timer ' Dim sCount1 As Single, sCount2 As Single Debug.Print Loops = 0 sCount1 = Timer() Do sCount2 = Timer() Loops = Loops + 1 Loop Until sCount1 <> sCount2 Debug.Print "timer minimum resolution: "; _ (sCount2 - sCount1); "ms" Debug.Print "Took"; Loops; "loops" ... And here is the result... Test_Timers Start Value: 2196010.9816 End Value: 2196010.9826 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2.79365114840015E-06 seconds GetTickCount minimum resolution: 10 ms Took 52952 loops timeGetTime minimum resolution: 1 ms Took 4795 loops timer minimum resolution: 0.0078125 ms Took 11716 loops So Timer has about the same resolution as timeGetTime, but it runs about twice as fast. Lambert -----Original Message----- From: Heenan, Lambert Sent: Tuesday, May 09, 2006 10:43 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Timer class suggestions... Hello Gustav, As the kBase article says that GetTickCount and TimeGetTime have ~10ms resolution I wonder if there is anything to be gained in using them rather that the built-in function Timer, which also has ~10ms resolution? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 10:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav From markamatte at hotmail.com Tue May 9 10:31:36 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 09 May 2006 15:31:36 +0000 Subject: [AccessD] GoTo a record on form In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D353A5@ADGSERVER> Message-ID: Hello All, In A2K I have a form(continuous)...I want to type in text box and have the form goto the first record that matches what I typed...but I don't want to filter...just goto??? Thanks, Mark A. Matte From DWUTKA at marlow.com Tue May 9 10:35:02 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 9 May 2006 10:35:02 -0500 Subject: [AccessD] trouble with minicalendar on a subform A2003 Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDB18@main2.marlow.com> Yes, but it's not finished yet. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Monday, May 08, 2006 7:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Thanks for the reply. Is there a later version? Brian ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of DWUTKA at marlow.com Sent: Mon 5/8/2006 10:04 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Sorry, the Minicalendar v. 3 was a little clunky, not designed to run as a subform. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Sunday, May 07, 2006 4:40 PM To: accessD at databaseadvisors.com Subject: [AccessD] trouble with minicalendar on a subform A2003 I have been using the minicalendar with no problem until I took the form it was on and made it into a subform. Now I can't get Access to find the subform and the control I want the date to go to. Below works great when [f builder schedule] is the main form, but when I use it as a subform, it doesn't work. I will no longer need it as a main form. Private Sub Command87_Click() 'Call the MiniCalendar to set the date Call fMiniCalendar(, , "[f builder schedule]", "[ Plan Rev Date]") End Sub Please help with syntax Brian -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 May 9 10:46:40 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 9 May 2006 10:46:40 -0500 Subject: [AccessD] trouble with minicalendar on a subform A2003 Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC1C@corp-es01.fleetpride.com> Since when did you start working for Microsoft? Jim -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, May 09, 2006 10:35 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Yes, but it's not finished yet. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Monday, May 08, 2006 7:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Thanks for the reply. Is there a later version? Brian ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of DWUTKA at marlow.com Sent: Mon 5/8/2006 10:04 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Sorry, the Minicalendar v. 3 was a little clunky, not designed to run as a subform. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Sunday, May 07, 2006 4:40 PM To: accessD at databaseadvisors.com Subject: [AccessD] trouble with minicalendar on a subform A2003 I have been using the minicalendar with no problem until I took the form it was on and made it into a subform. Now I can't get Access to find the subform and the control I want the date to go to. Below works great when [f builder schedule] is the main form, but when I use it as a subform, it doesn't work. I will no longer need it as a main form. Private Sub Command87_Click() 'Call the MiniCalendar to set the date Call fMiniCalendar(, , "[f builder schedule]", "[ Plan Rev Date]") End Sub Please help with syntax Brian -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Gustav at cactus.dk Tue May 9 10:53:55 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 09 May 2006 17:53:55 +0200 Subject: [AccessD] Timer class suggestions... Message-ID: Hi Lambert First, as I wrote, that article is - ehh - not precise. Second, Timer does not have a resolution of 1/100 s, it just looks like that: http://databaseadvisors.com/pipermail/accessd/2005-February/031736.html /gustav >>> Lambert.Heenan at AIG.com 09-05-2006 16:43:29 >>> Hello Gustav, As the kBase article says that GetTickCount and TimeGetTime have ~10ms resolution I wonder if there is anything to be gained in using them rather that the built-in function Timer, which also has ~10ms resolution? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 10:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav >>> bheid at appdevgrp.com 09-05-2006 13:37:51 >>> Hey, I had a need to time some code the other day and decided to come up with a somewhat generic class to help perform this task. I'd like to ask for your opinion/suggestions about what I came up with. This is what I came up with. First, since all users are on Win XP, I am using QueryPerformanceCounter and QueryPerformanceFrequency to calculate timings. There are three classes: clsTimer, clsTimerData, and clsTimerInstance clsTimer is the main class. It contains 2 collections that hold instances of the other two classes and a timestamp of the time that the class was instantiated (called RunTS). clsTimerInstance holds data about a timer that has been started (ID, start value of timer, and a time stamp). clsTimerData holds the complete timer data record for a given timer event (ID, start value of timer, end value of timer, difference between end and start, elapsed time in seconds, time stamp of timer, and RunTS). This class holds the completed timer data until the data is persisted. To use the timers, an instance of clsTimer is instantiated. For each timer that is to be started, make a call to the clsTimer.StartTimer with an ID (long value) that is used as the key for the timer instance. This function returns an index to that timer that is used to stop the timer. This function creates an instance of the clsTimerInstance class that contains the starting values of the timer and adds it to the Instance collection. When a given timer is stopped, the ending timer value is obtained. The starting values are located in the Instance collection. A new clsTimerData instance is created and populated with the timer data and added to the TimerData collection. The clsTimerInstance collection item is then deleted. The data can be persisted to a table with a call to clsTimer.PersistData. Right now, this function simply iterates the TimerData collection and dumps it to a table. I plan on being able to pass this function a value so that this function can also call two other functions to dump to a formatted flat file and a CSV file. To use the timers is a simple as: Dim cTimer as new clsTimer ... x=ctimer.StartTimer(1) 'some code cTimer.StopTimer 1 x=ctimer.StartTimer(1) for i=0 to 100000 y=cTimer.StartTimer(2) 'we can nest them 'some more code cTimer.StopTimer 2 next i ctimer.StopTimer 1 ctimer.PersistData set ctimer=nothing The output would look something like (from a different test run): TimerID StartVal EndVal Elapsed Seconds TimeStamp RunTS 1 215002386.2371 215002420.5905 34.3534 0.096 5/9/2006 7:32:13 AM 5/9/2006 7:32:13 AM 2 ... 2 ... 2 ... How does this sound to you all? Thanks for even making it this far! Thanks, Bobby From Gustav at cactus.dk Tue May 9 10:56:51 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 09 May 2006 17:56:51 +0200 Subject: [AccessD] Timer class suggestions... Message-ID: Hi Bobby Yes, why not? It's very simple to use and can be set to the highest resolution (1 ms) should you need it. /gustav >>> bheid at appdevgrp.com 09-05-2006 16:57:39 >>> Hi Gustav, So you are saying to use the TimeGetTime function? .. From DWUTKA at marlow.com Tue May 9 10:57:41 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 9 May 2006 10:57:41 -0500 Subject: [AccessD] trouble with minicalendar on a subform A2003 Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDB1C@main2.marlow.com> LOL. Drew -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Tuesday, May 09, 2006 10:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Since when did you start working for Microsoft? Jim -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, May 09, 2006 10:35 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Yes, but it's not finished yet. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Monday, May 08, 2006 7:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Thanks for the reply. Is there a later version? Brian ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of DWUTKA at marlow.com Sent: Mon 5/8/2006 10:04 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] trouble with minicalendar on a subform A2003 Sorry, the Minicalendar v. 3 was a little clunky, not designed to run as a subform. Drew -----Original Message----- From: Brian Rogers [mailto:brogers at drhorton.com] Sent: Sunday, May 07, 2006 4:40 PM To: accessD at databaseadvisors.com Subject: [AccessD] trouble with minicalendar on a subform A2003 I have been using the minicalendar with no problem until I took the form it was on and made it into a subform. Now I can't get Access to find the subform and the control I want the date to go to. Below works great when [f builder schedule] is the main form, but when I use it as a subform, it doesn't work. I will no longer need it as a main form. Private Sub Command87_Click() 'Call the MiniCalendar to set the date Call fMiniCalendar(, , "[f builder schedule]", "[ Plan Rev Date]") End Sub Please help with syntax Brian -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 Lambert.Heenan at AIG.com Tue May 9 11:23:24 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 9 May 2006 11:23:24 -0500 Subject: [AccessD] Timer class suggestions... Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F21759DBD@xlivmbx21.aig.com> Ah. So it's really giving a resolution that's similar to the old, old (way back in the mists of time, MS DOS 1.x) PC clock resolution of about 20 ms (IIRC). :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 11:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Lambert First, as I wrote, that article is - ehh - not precise. Second, Timer does not have a resolution of 1/100 s, it just looks like that: http://databaseadvisors.com/pipermail/accessd/2005-February/031736.html /gustav >>> Lambert.Heenan at AIG.com 09-05-2006 16:43:29 >>> Hello Gustav, As the kBase article says that GetTickCount and TimeGetTime have ~10ms resolution I wonder if there is anything to be gained in using them rather that the built-in function Timer, which also has ~10ms resolution? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 10:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Bobby Never heard of those QueryPerformance-things so I located this page: http://support.microsoft.com/kb/q172338 However, the info here is wrong. timeGetTime is certainly accurate to the millisecond, thus the most precise of all standard timer functions. But you must specify to use a resolution of 1 ms. 1. Insert this declaration: Private Declare Function timeBeginPeriod Lib "winmm.dll" ( _ ByVal uPeriod As Long) _ As Long 2. Modify the code like this: ' ' Time GetTickCount ' ' Set resolution of timer to 1 ms. timeBeginPeriod 1 Debug.Print Loops = 0 Count1 = GetTickCount() 3. Run code: Start Value: 9221238,3029 End Value: 9221238,3039 QueryPerformanceCounter minimum resolution: 1/3579545 sec API Overhead: 2,79365114840015E-06 seconds GetTickCount minimum resolution: 15 ms Took 23289 loops timeGetTime minimum resolution: 1 ms Took 187 loops As for your class I've never had extensive timer needs so I have no comments. /gustav >>> bheid at appdevgrp.com 09-05-2006 13:37:51 >>> Hey, I had a need to time some code the other day and decided to come up with a somewhat generic class to help perform this task. I'd like to ask for your opinion/suggestions about what I came up with. This is what I came up with. First, since all users are on Win XP, I am using QueryPerformanceCounter and QueryPerformanceFrequency to calculate timings. There are three classes: clsTimer, clsTimerData, and clsTimerInstance clsTimer is the main class. It contains 2 collections that hold instances of the other two classes and a timestamp of the time that the class was instantiated (called RunTS). clsTimerInstance holds data about a timer that has been started (ID, start value of timer, and a time stamp). clsTimerData holds the complete timer data record for a given timer event (ID, start value of timer, end value of timer, difference between end and start, elapsed time in seconds, time stamp of timer, and RunTS). This class holds the completed timer data until the data is persisted. To use the timers, an instance of clsTimer is instantiated. For each timer that is to be started, make a call to the clsTimer.StartTimer with an ID (long value) that is used as the key for the timer instance. This function returns an index to that timer that is used to stop the timer. This function creates an instance of the clsTimerInstance class that contains the starting values of the timer and adds it to the Instance collection. When a given timer is stopped, the ending timer value is obtained. The starting values are located in the Instance collection. A new clsTimerData instance is created and populated with the timer data and added to the TimerData collection. The clsTimerInstance collection item is then deleted. The data can be persisted to a table with a call to clsTimer.PersistData. Right now, this function simply iterates the TimerData collection and dumps it to a table. I plan on being able to pass this function a value so that this function can also call two other functions to dump to a formatted flat file and a CSV file. To use the timers is a simple as: Dim cTimer as new clsTimer ... x=ctimer.StartTimer(1) 'some code cTimer.StopTimer 1 x=ctimer.StartTimer(1) for i=0 to 100000 y=cTimer.StartTimer(2) 'we can nest them 'some more code cTimer.StopTimer 2 next i ctimer.StopTimer 1 ctimer.PersistData set ctimer=nothing The output would look something like (from a different test run): TimerID StartVal EndVal Elapsed Seconds TimeStamp RunTS 1 215002386.2371 215002420.5905 34.3534 0.096 5/9/2006 7:32:13 AM 5/9/2006 7:32:13 AM 2 ... 2 ... 2 ... How does this sound to you all? Thanks for even making it this far! Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue May 9 12:38:48 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 09 May 2006 19:38:48 +0200 Subject: [AccessD] Timer class suggestions... Message-ID: Hi Lambert Yes. >>> Lambert.Heenan at AIG.com 09-05-2006 18:23:24 >>> Ah. So it's really giving a resolution that's similar to the old, old (way back in the mists of time, MS DOS 1.x) PC clock resolution of about 20 ms (IIRC). :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 09, 2006 11:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer class suggestions... Hi Lambert First, as I wrote, that article is - ehh - not precise. Second, Timer does not have a resolution of 1/100 s, it just looks like that: http://databaseadvisors.com/pipermail/accessd/2005-February/031736.html /gustav From Gustav at cactus.dk Tue May 9 12:43:59 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 09 May 2006 19:43:59 +0200 Subject: [AccessD] Multithreading in VBA Message-ID: Hi all I noticed this article about multithreading in VB6: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=14479&lngWId=1 and wonder if that tip can be transferred to VBA (Access)? /gustav From martyconnelly at shaw.ca Tue May 9 14:45:16 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 09 May 2006 12:45:16 -0700 Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA In-Reply-To: References: Message-ID: <4460F14C.6010802@shaw.ca> This might be interesting and is fairly simple Call Into The .NET Framework From Existing Visual Basic 6.0 Apps http://msdn.microsoft.com/msdnmag/issues/06/05/WrapItUp/default.aspx This article adresses VB6 but there is no reason, it can't be used from VBA You will need VB Express installed along with .Net Framework 2.0 to create the wrapper dll. And perhaps register as COM object. It should save you using a lot of 3'd party controls by using the NET Framework class library instead. There are a lot of things that can be quickly written in .Net The .NET Framework classes must be called through a wrapper. The wrappers are built using the COM Class item in VB Express, and they behave like any other COM objects -- Marty Connelly Victoria, B.C. Canada From DWUTKA at marlow.com Tue May 9 15:09:05 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 9 May 2006 15:09:05 -0500 Subject: [AccessD] Multithreading in VBA Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDB23@main2.marlow.com> Unfortunately no. Even in VB6, you cannot run multiple threads in debug mode. Technically, when you run VBA, it's similar to debug mode. Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Tuesday, May 09, 2006 12:44 PM To: accessd at databaseadvisors.com Subject: [AccessD] Multithreading in VBA Hi all I noticed this article about multithreading in VB6: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=14479&ln gWId=1 and wonder if that tip can be transferred to VBA (Access)? /gustav -- 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 May 9 16:34:37 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 9 May 2006 16:34:37 -0500 Subject: [AccessD] Top values query problem Message-ID: When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; 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 andy at minstersystems.co.uk Tue May 9 16:40:55 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 9 May 2006 22:40:55 +0100 Subject: [AccessD] GoTo a record on form In-Reply-To: Message-ID: <028301c673b1$40af8c50$d1b20c54@minster33c3r25> Hi Mark Top of my head dim rst as a recordset, set rst to me.recordsetclone, do a FindFirst the set me.bookmark to rst.bookmark. Will that do it? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mark A Matte > Sent: 09 May 2006 16:32 > To: accessd at databaseadvisors.com > Subject: [AccessD] GoTo a record on form > > > Hello All, > > In A2K I have a form(continuous)...I want to type in text > box and have the > form goto the first record that matches what I typed...but I > don't want to > filter...just goto??? > > 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 Tue May 9 17:45:48 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 9 May 2006 18:45:48 -0400 Subject: [AccessD] Top values query problem In-Reply-To: Message-ID: <000901c673ba$52044280$8fb3d6d1@SUSANONE> You want to limit the number of records in each ordered group -- is this correct? Susan H. When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.5.5/334 - Release Date: 5/8/2006 From jwcolby at ColbyConsulting.com Tue May 9 18:24:02 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 9 May 2006 19:24:02 -0400 Subject: [AccessD] Access 2007 - QUick Survery - BUGS In-Reply-To: <006501c672f6$07ab0e90$6601a8c0@office> Message-ID: <004f01c673bf$a91d1100$657aa8c0@JWCM6805> Well, I found two "features" today. Working with an ADO recordset to do a "pushbutton" comma delimited file code ("csv" file), I passed in a query name with a dash in it. The code apparently truncated the query name at the dash and actually selected a query that happened to be named the remainder of the name. IOW I had a query called ABCD I had another query called ABCD-XYZ In the rst.Open I passed in ABCD-XYZ. ADO truncated the name to ABCD and opened the ABCD query. QUITE CONFUSING!!! It took me a long time to figure out what was happening. In another case I had a query with a long name. Apparently ADO has some internal limit which treats any string passed in to the rst.open as a query / table name if shorter than X characters but as a SQL statement if longer than X characters. Thus (once I took out the dash) I started getting "not a valid SQL statement, should contain SELECT etc." error messages from my long named query. As soon as I shortened up the query name (removing the dash of course), everything worked just fine. I spent the better part of the day on THAT pair of "features". John W. Colby www.ColbyConsulting.com From kp at sdsonline.net Tue May 9 18:30:28 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 10 May 2006 09:30:28 +1000 Subject: [AccessD] sample non disclosue agreement Message-ID: <000701c673c0$8f21a620$6601a8c0@office> Does anyone on list have a sample of a non disclosure agreement I could use with a subcontractor? (I have an employment contract - but just need a non-disclosure doc.) rgds ______________________________________ Kath Pelletti Software Design and Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 Email: KP at SDSOnline.net From cfoust at infostatsystems.com Tue May 9 18:35:01 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 9 May 2006 16:35:01 -0700 Subject: [AccessD] Access 2007 - QUick Survery - BUGS Message-ID: Now, John, you know by now that dashes require square brackets around the object name to distinguish them from mathmatical operations! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, May 09, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Well, I found two "features" today. Working with an ADO recordset to do a "pushbutton" comma delimited file code ("csv" file), I passed in a query name with a dash in it. The code apparently truncated the query name at the dash and actually selected a query that happened to be named the remainder of the name. IOW I had a query called ABCD I had another query called ABCD-XYZ In the rst.Open I passed in ABCD-XYZ. ADO truncated the name to ABCD and opened the ABCD query. QUITE CONFUSING!!! It took me a long time to figure out what was happening. In another case I had a query with a long name. Apparently ADO has some internal limit which treats any string passed in to the rst.open as a query / table name if shorter than X characters but as a SQL statement if longer than X characters. Thus (once I took out the dash) I started getting "not a valid SQL statement, should contain SELECT etc." error messages from my long named query. As soon as I shortened up the query name (removing the dash of course), everything worked just fine. I spent the better part of the day on THAT pair of "features". John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at ColbyConsulting.com Tue May 9 19:24:49 2006 From: jwcolby at ColbyConsulting.com (John Colby) Date: Tue, 9 May 2006 20:24:49 -0400 Subject: [AccessD] Access 2007 - QUick Survery - BUGS In-Reply-To: Message-ID: <005101c673c8$269d8a30$657aa8c0@JWCM6805> It is a STRING passed in as a table/query name!!! Dashes are quite valid in table names. 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: Tuesday, May 09, 2006 7:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Now, John, you know by now that dashes require square brackets around the object name to distinguish them from mathmatical operations! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, May 09, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Well, I found two "features" today. Working with an ADO recordset to do a "pushbutton" comma delimited file code ("csv" file), I passed in a query name with a dash in it. The code apparently truncated the query name at the dash and actually selected a query that happened to be named the remainder of the name. IOW I had a query called ABCD I had another query called ABCD-XYZ In the rst.Open I passed in ABCD-XYZ. ADO truncated the name to ABCD and opened the ABCD query. QUITE CONFUSING!!! It took me a long time to figure out what was happening. In another case I had a query with a long name. Apparently ADO has some internal limit which treats any string passed in to the rst.open as a query / table name if shorter than X characters but as a SQL statement if longer than X characters. Thus (once I took out the dash) I started getting "not a valid SQL statement, should contain SELECT etc." error messages from my long named query. As soon as I shortened up the query name (removing the dash of course), everything worked just fine. I spent the better part of the day on THAT pair of "features". 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 artful at rogers.com Tue May 9 21:01:25 2006 From: artful at rogers.com (Arthur Fuller) Date: Tue, 9 May 2006 22:01:25 -0400 (EDT) Subject: [AccessD] Access 2007 - QUick Survery In-Reply-To: Message-ID: <20060510020125.89256.qmail@web88201.mail.re2.yahoo.com> What a bummer. Now that I am on this project where the whole focus is SQL, I have taken enormous pleasure in puncturing opinions of Access. In a very few minutes, I knocked together an app that would talk to the system tables, with combo-boxes and listboxes etc. Heads turned and eyes rolled. These SQL guys simply had no idea that Access could do that. I would hate to see ADP go the way of the dodo. Arthur Martin Reid wrote: Marty This MAY be incorrect and is written as of tonight so could change totally between now and release. They will not handle the new data types but should function as before with SQL 2005 peovided you have only those DTs supported by SQL Server 2000. At the moment there is no way to work with 2005 via ADPs. There are some issues still that appear to be outstanding. In fact I have posted to them about several including the fact that no server object appear when using 2005 but they are picked up by the wizards but dont show in teh Access container. Asd of about 5mins ago I have had no luck at all with ADPs and SQLS erver 2005 other than linking to the tables in Access as before. They are REALLY pushing linking tables as first choice over ADPS. ADPs will not receive the same focus in future development as linking to MDBs etc will I did get that much out of them Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Sun 07/05/2006 17:55 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery One question I am seeing is what are the exact restrictions on running either Access 2003 or 2007 ADP's versus SQL 2005. Will they handle new complex data types? What modifications will be needed. Can you use Access 2007 ADP's for any future development. Can you run an ADP developed under 2003 and run it in 2007 against SQL 2005 by just changing the connection string, assuming you have done an SQL 2000 to 2005 conversion? Martin Reid wrote: >Quick Survey > >Access 2007. What sort of information as professionals would you like to see about Access 2007? > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > > > -- 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 cyx5 at cdc.gov Wed May 10 05:17:07 2006 From: cyx5 at cdc.gov (Long, Karen S. (CDC/NIOSH/NPPTL) (CTR)) Date: Wed, 10 May 2006 06:17:07 -0400 Subject: [AccessD] Access 2007 - QUick Survery - BUGS Message-ID: Mad Cow. He is getting old. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 09, 2006 7:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Now, John, you know by now that dashes require square brackets around the object name to distinguish them from mathmatical operations! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, May 09, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Well, I found two "features" today. Working with an ADO recordset to do a "pushbutton" comma delimited file code ("csv" file), I passed in a query name with a dash in it. The code apparently truncated the query name at the dash and actually selected a query that happened to be named the remainder of the name. IOW I had a query called ABCD I had another query called ABCD-XYZ In the rst.Open I passed in ABCD-XYZ. ADO truncated the name to ABCD and opened the ABCD query. QUITE CONFUSING!!! It took me a long time to figure out what was happening. In another case I had a query with a long name. Apparently ADO has some internal limit which treats any string passed in to the rst.open as a query / table name if shorter than X characters but as a SQL statement if longer than X characters. Thus (once I took out the dash) I started getting "not a valid SQL statement, should contain SELECT etc." error messages from my long named query. As soon as I shortened up the query name (removing the dash of course), everything worked just fine. I spent the better part of the day on THAT pair of "features". 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 cyx5 at cdc.gov Wed May 10 05:33:07 2006 From: cyx5 at cdc.gov (Long, Karen S. (CDC/NIOSH/NPPTL) (CTR)) Date: Wed, 10 May 2006 06:33:07 -0400 Subject: [AccessD] Access 2007 - QUick Survery - BUGS Message-ID: Not in SQL2005 and .net. Need to enclose them in brackets. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, May 09, 2006 8:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS It is a STRING passed in as a table/query name!!! Dashes are quite valid in table names. 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: Tuesday, May 09, 2006 7:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Now, John, you know by now that dashes require square brackets around the object name to distinguish them from mathmatical operations! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, May 09, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Well, I found two "features" today. Working with an ADO recordset to do a "pushbutton" comma delimited file code ("csv" file), I passed in a query name with a dash in it. The code apparently truncated the query name at the dash and actually selected a query that happened to be named the remainder of the name. IOW I had a query called ABCD I had another query called ABCD-XYZ In the rst.Open I passed in ABCD-XYZ. ADO truncated the name to ABCD and opened the ABCD query. QUITE CONFUSING!!! It took me a long time to figure out what was happening. In another case I had a query with a long name. Apparently ADO has some internal limit which treats any string passed in to the rst.open as a query / table name if shorter than X characters but as a SQL statement if longer than X characters. Thus (once I took out the dash) I started getting "not a valid SQL statement, should contain SELECT etc." error messages from my long named query. As soon as I shortened up the query name (removing the dash of course), everything worked just fine. I spent the better part of the day on THAT pair of "features". John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed May 10 06:02:19 2006 From: cyx5 at cdc.gov (Long, Karen S. (CDC/NIOSH/NPPTL) (CTR)) Date: Wed, 10 May 2006 07:02:19 -0400 Subject: [AccessD] sample non disclosue agreement Message-ID: Sent to you offline... Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, May 09, 2006 7:30 PM To: Access D Normal List Subject: [AccessD] sample non disclosue agreement Does anyone on list have a sample of a non disclosure agreement I could use with a subcontractor? (I have an employment contract - but just need a non-disclosure doc.) rgds ______________________________________ Kath Pelletti Software Design and Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 Email: KP at SDSOnline.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 May 10 04:00:34 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 11:00:34 +0200 Subject: [AccessD] Top values query problem Message-ID: Hi Chester Something like this where you use a pseudo key if you don't have a unique key: SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE Str(PT_Well) & "x" & Str(PT_Date) & "x" & Str(PT_Status) IN (SELECT TOP 6 Str(T.PT_Well) & "x" & Str(T.PT_Date) & "x" & Str(T.PT_Status) FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; This assumes you have only one record for each Well/Date. /gustav >>> Chester_Kaup at kindermorgan.com 09-05-2006 23:34 >>> When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; From Gustav at cactus.dk Wed May 10 03:28:14 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 10:28:14 +0200 Subject: [AccessD] Multithreading in VBA Message-ID: Thanks Drew. It would have been nice, of course, and would it had been possible, I guess I would have read about it elsewhere but I haven't. /gustav >>> DWUTKA at marlow.com 09-05-2006 22:09 >>> Unfortunately no. Even in VB6, you cannot run multiple threads in debug mode. Technically, when you run VBA, it's similar to debug mode. Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Tuesday, May 09, 2006 12:44 PM To: accessd at databaseadvisors.com Subject: [AccessD] Multithreading in VBA Hi all I noticed this article about multithreading in VB6: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=14479&lngWId=1 and wonder if that tip can be transferred to VBA (Access)? /gustav From Gustav at cactus.dk Wed May 10 04:19:51 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 11:19:51 +0200 Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA Message-ID: Hi Marty This is very interesting. Thanks a lot for that link! /gustav >>> martyconnelly at shaw.ca 09-05-2006 21:45 >>> This might be interesting and is fairly simple Call Into The .NET Framework From Existing Visual Basic 6.0 Apps http://msdn.microsoft.com/msdnmag/issues/06/05/WrapItUp/default.aspx This article adresses VB6 but there is no reason, it can't be used from VBA You will need VB Express installed along with .Net Framework 2.0 to create the wrapper dll. And perhaps register as COM object. It should save you using a lot of 3'd party controls by using the NET Framework class library instead. There are a lot of things that can be quickly written in .Net The .NET Framework classes must be called through a wrapper. The wrappers are built using the COM Class item in VB Express, and they behave like any other COM objects -- Marty Connelly Victoria, B.C. Canada From Jdemarco at hudsonhealthplan.org Wed May 10 06:59:27 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 10 May 2006 07:59:27 -0400 Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA Message-ID: <08F823FD83787D4BA0B99CA580AD3C740371769D@TTNEXCHCL2.hshhp.com> Yes this is a great article. I read it a few weeks back in the paper mag and had the same thought. I've always been a proponent of writing COM objects in VB6 for use in Access apps but we stopped using VB6 for new development a few months ago. This gives us an opportunity to begin implementing processes via COM through .NET. A must read IMO. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, May 09, 2006 3:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA This might be interesting and is fairly simple Call Into The .NET Framework From Existing Visual Basic 6.0 Apps http://msdn.microsoft.com/msdnmag/issues/06/05/WrapItUp/default.aspx This article adresses VB6 but there is no reason, it can't be used from VBA You will need VB Express installed along with .Net Framework 2.0 to create the wrapper dll. And perhaps register as COM object. It should save you using a lot of 3'd party controls by using the NET Framework class library instead. There are a lot of things that can be quickly written in .Net The .NET Framework classes must be called through a wrapper. The wrappers are built using the COM Class item in VB Express, and they behave like any other COM objects -- 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 adtp at hotmail.com Wed May 10 07:01:04 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 10 May 2006 17:31:04 +0530 Subject: [AccessD] A2003:Reading text box Line by Line and inserting eachline into a dB field References: <445C9AE1.22522.D3D9287@stuart.lexacorp.com.pg> Message-ID: Darren, Each individual line in a multi-line text box in Access can be grabbed via Split() function. For example, if Rtv is a variant type variable, the statement Rtv = Split(MyTextbox, vbCrLf) will generate an array holding the values of individual lines. Rtv(0) represents the first line, while Rtv(UBound(Rtv)) represents the last line. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Sunday, May 07, 2006 18:33 Subject: [AccessD] A2003:Reading text box Line by Line and inserting eachline into a dB field Hi all I am doing some pro-bono work for some General orphanages and AIDS orphanages in Thailand (Feel free to email me off list for any info - Shameless plug - Yes we are always looking for sponsors - another shameless plug) I have just been handed a CD of Publisher files with photos and a small 'blurb' about each child There are about 600 on this CD alone Each MS Publisher 'record' contains the photo and a short 'blurb' that looks like this DUANPEN OONBOON <-- Childs Full Name Gender: Male Born: 23rd June 1995 Grade: 2005-2006- Primary 4 Favourite Subject: English Favourite Sport: Volley Ball Favourite Food: Fried Rice Favourite Colour: Red Child Ref. # MCS-072 You can see there is 9 or so lines of text for each record. And it's all in one text field - an MS Publisher text box And I have to get each line out of that one field and send the first line to the FullName field of the dB the second line to the Gender field of the dB. The third line to the DoB field of the dB etc etc Essentially read that text box line by line and have the contents of each line 'mapped' to a field in a table Any suggestions? I'm also open to suggestions of getting the images out of publisher and onto the HardDrive in some meaningful name format If you need a copy of the Publisher file - I am more than willing to share a snip off line Many many thanks in advance Darren From Chester_Kaup at kindermorgan.com Wed May 10 07:11:51 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 10 May 2006 07:11:51 -0500 Subject: [AccessD] Top values query problem Message-ID: Yes if you mean the field PT_Well. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, May 09, 2006 5:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Top values query problem You want to limit the number of records in each ordered group -- is this correct? Susan H. When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.5.5/334 - Release Date: 5/8/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Wed May 10 07:23:07 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 10 May 2006 17:53:07 +0530 Subject: [AccessD] GoTo a record on form References: <445C9AE1.22522.D3D9287@stuart.lexacorp.com.pg> Message-ID: Mark, If the form is used independently, sample code in form's module as at (A) below will do the needful. If the form is used as a subform and desired search value is contained in a text box on the parent form, sample code in parent form's module as at (B) below would apply. MyNumberField & MyTextField are names of pertinent bound controls on the continuous form. Note - Value of ControlSource is used in VBA statements in order to provide situations where name of bound control is different from its control source. Best wishes, A.D.Tejpal --------------- (A) - Code in module of independent continuous form (TxtSearch is a text box in header or footer of the form) ======================================= ' For locating number type field Me.Recordset.FindFirst _ Me.MyNumberField.ControlSource & _ " = " & Me.TxtSearch ' For locating text type field Me.Recordset.FindFirst _ Me.MyTextField.ControlSource & _ " = '" & Me.TxtSearch & "'" ======================================= (B) - Code in module of parent form (TxtSearch is a text box on parent form SF_SearchSub is the name of control on the parent form, acting as container for the subform) ======================================= ' For locating number type field on subform Me.SF_SearchSub.Form.Recordset.FindFirst _ Me.SF_SearchSub("MyNumberField").ControlSource & _ " = " & Me.TxtSearch ' For locating text type field on subform Me.SF_SearchSub.Form.Recordset.FindFirst _ Me.SF_SearchSub("MyTextField").ControlSource & _ " = '" & Me.TxtSearch & "'" ======================================= ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Tuesday, May 09, 2006 21:01 Subject: [AccessD] GoTo a record on form Hello All, In A2K I have a form(continuous)...I want to type in text box and have the form goto the first record that matches what I typed...but I don't want to filter...just goto??? Thanks, Mark A. Matte From harkinsss at bellsouth.net Wed May 10 07:39:50 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 10 May 2006 08:39:50 -0400 Subject: [AccessD] Access 2007 - QUick Survery In-Reply-To: <20060510020125.89256.qmail@web88201.mail.re2.yahoo.com> Message-ID: <001701c6742e$d5c60580$8fb3d6d1@SUSANONE> Arthur, VB Express does require a bit more work than Access, but it is still extremely easy to use and for people like us (already know Access and SQL Server) the learning curve is almost nothing. Susan H. I would hate to see ADP go the way of the dodo. From darrend at nimble.com.au Wed May 10 09:24:34 2006 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 11 May 2006 00:24:34 +1000 Subject: [AccessD] A2003:Reading text box Line by Line and insertingeachline into a dB field In-Reply-To: Message-ID: <20060510142440.CDDQ3168.omta02ps.mx.bigpond.com@DENZILLAP> Brilliant A.D - Ill give it a whirl Many thanks Darren ------------------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Wednesday, 10 May 2006 10:01 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] A2003:Reading text box Line by Line and insertingeachline into a dB field Darren, Each individual line in a multi-line text box in Access can be grabbed via Split() function. For example, if Rtv is a variant type variable, the statement Rtv = Split(MyTextbox, vbCrLf) will generate an array holding the values of individual lines. Rtv(0) represents the first line, while Rtv(UBound(Rtv)) represents the last line. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Sunday, May 07, 2006 18:33 Subject: [AccessD] A2003:Reading text box Line by Line and inserting eachline into a dB field Hi all I am doing some pro-bono work for some General orphanages and AIDS orphanages in Thailand (Feel free to email me off list for any info - Shameless plug - Yes we are always looking for sponsors - another shameless plug) I have just been handed a CD of Publisher files with photos and a small 'blurb' about each child There are about 600 on this CD alone Each MS Publisher 'record' contains the photo and a short 'blurb' that looks like this DUANPEN OONBOON <-- Childs Full Name Gender: Male Born: 23rd June 1995 Grade: 2005-2006- Primary 4 Favourite Subject: English Favourite Sport: Volley Ball Favourite Food: Fried Rice Favourite Colour: Red Child Ref. # MCS-072 You can see there is 9 or so lines of text for each record. And it's all in one text field - an MS Publisher text box And I have to get each line out of that one field and send the first line to the FullName field of the dB the second line to the Gender field of the dB. The third line to the DoB field of the dB etc etc Essentially read that text box line by line and have the contents of each line 'mapped' to a field in a table Any suggestions? I'm also open to suggestions of getting the images out of publisher and onto the HardDrive in some meaningful name format If you need a copy of the Publisher file - I am more than willing to share a snip off line Many many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed May 10 09:40:37 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 10 May 2006 14:40:37 +0000 Subject: [AccessD] GoTo a record on form In-Reply-To: Message-ID: Thanks A.D. This is exactly what I needed. Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] GoTo a record on form >Date: Wed, 10 May 2006 17:53:07 +0530 > >Mark, > > If the form is used independently, sample code in form's module as at >(A) below will do the needful. If the form is used as a subform and desired >search value is contained in a text box on the parent form, sample code in >parent form's module as at (B) below would apply. > > MyNumberField & MyTextField are names of pertinent bound controls on >the continuous form. > > Note - Value of ControlSource is used in VBA statements in order to >provide situations where name of bound control is different from its >control source. > >Best wishes, >A.D.Tejpal >--------------- > >(A) - Code in module of independent continuous form >(TxtSearch is a text box in header or footer of the form) >======================================= > ' For locating number type field > Me.Recordset.FindFirst _ > Me.MyNumberField.ControlSource & _ > " = " & Me.TxtSearch > > ' For locating text type field > Me.Recordset.FindFirst _ > Me.MyTextField.ControlSource & _ > " = '" & Me.TxtSearch & "'" >======================================= > >(B) - Code in module of parent form >(TxtSearch is a text box on parent form > SF_SearchSub is the name of control on the parent > form, acting as container for the subform) >======================================= > ' For locating number type field on subform > Me.SF_SearchSub.Form.Recordset.FindFirst _ > Me.SF_SearchSub("MyNumberField").ControlSource & _ > " = " & Me.TxtSearch > ' For locating text type field on subform > Me.SF_SearchSub.Form.Recordset.FindFirst _ > Me.SF_SearchSub("MyTextField").ControlSource & _ > " = '" & Me.TxtSearch & "'" >======================================= > > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Tuesday, May 09, 2006 21:01 > Subject: [AccessD] GoTo a record on form > > > Hello All, > > In A2K I have a form(continuous)...I want to type in text box and have >the form goto the first record that matches what I typed...but I don't want >to filter...just goto??? > > Thanks, > > Mark A. Matte >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed May 10 09:49:48 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 10 May 2006 07:49:48 -0700 Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA In-Reply-To: References: Message-ID: <4461FD8C.5000601@shaw.ca> Now I just have to sort out the deployment issues. You need to set a reference to the .tlb file but you have to register the .dll on the client machine to get at the class GUID's in the COM registry. Gustav Brock wrote: >Hi Marty > >This is very interesting. Thanks a lot for that link! > >/gustav > > > >>>>martyconnelly at shaw.ca 09-05-2006 21:45 >>> >>>> >>>> >This might be interesting and is fairly simple > >Call Into The .NET Framework From Existing Visual Basic 6.0 Apps >http://msdn.microsoft.com/msdnmag/issues/06/05/WrapItUp/default.aspx > >This article adresses VB6 but there is no reason, it can't be used from VBA >You will need VB Express installed along with .Net Framework 2.0 >to create the wrapper dll. And perhaps register as COM object. > >It should save you using a lot of 3'd party controls by using the >NET Framework class library instead. There are a lot of things >that can be quickly written in .Net > >The .NET Framework classes must be called through a wrapper. >The wrappers are built using the COM Class item in VB Express, > and they behave like any other COM objects > > > -- Marty Connelly Victoria, B.C. Canada From DWUTKA at marlow.com Wed May 10 10:07:38 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 10 May 2006 10:07:38 -0500 Subject: [AccessD] Multithreading in VBA Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDB28@main2.marlow.com> Actually, when dealing with Access, Multithreading would be a problem even if VBA let you. I've written multithreading VB 6 .exes. It works great, but you can't have more then one thread dealing with one .mdb at a time. I have a test program that just dumps data into a table in an .mdb. One thread will go until the database fills up. However, the more threads you have the faster they will crash (from write errors), and when the last thread is closed the database is corrupted. (Recoverable, but corrupted). That is because the threads are being 'cycled' by the OS, and it doesn't really care when, so JET could be checking for a lock in one thread, and then the next thread to run may be setting a lock that the early thread just set. As you might guess, that will add up to trouble in a hurry. Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Wednesday, May 10, 2006 3:28 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Multithreading in VBA Thanks Drew. It would have been nice, of course, and would it had been possible, I guess I would have read about it elsewhere but I haven't. /gustav >>> DWUTKA at marlow.com 09-05-2006 22:09 >>> Unfortunately no. Even in VB6, you cannot run multiple threads in debug mode. Technically, when you run VBA, it's similar to debug mode. Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Tuesday, May 09, 2006 12:44 PM To: accessd at databaseadvisors.com Subject: [AccessD] Multithreading in VBA Hi all I noticed this article about multithreading in VB6: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=14479&ln gWId=1 and wonder if that tip can be transferred to VBA (Access)? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed May 10 10:10:52 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 May 2006 08:10:52 -0700 Subject: [AccessD] Access 2007 - QUick Survery - BUGS Message-ID: ROTFLMAO So true! ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Long, Karen S. (CDC/NIOSH/NPPTL) (CTR) Sent: Wednesday, May 10, 2006 3:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Mad Cow. He is getting old. Karen S. Long Programmer Analyst EG&G Technical Services, Inc. Pittsburgh, PA Phone: 412-386-6649 Email: cyx5 at cdc.gov -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 09, 2006 7:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Now, John, you know by now that dashes require square brackets around the object name to distinguish them from mathmatical operations! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Colby Sent: Tuesday, May 09, 2006 4:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 - QUick Survery - BUGS Well, I found two "features" today. Working with an ADO recordset to do a "pushbutton" comma delimited file code ("csv" file), I passed in a query name with a dash in it. The code apparently truncated the query name at the dash and actually selected a query that happened to be named the remainder of the name. IOW I had a query called ABCD I had another query called ABCD-XYZ In the rst.Open I passed in ABCD-XYZ. ADO truncated the name to ABCD and opened the ABCD query. QUITE CONFUSING!!! It took me a long time to figure out what was happening. In another case I had a query with a long name. Apparently ADO has some internal limit which treats any string passed in to the rst.open as a query / table name if shorter than X characters but as a SQL statement if longer than X characters. Thus (once I took out the dash) I started getting "not a valid SQL statement, should contain SELECT etc." error messages from my long named query. As soon as I shortened up the query name (removing the dash of course), everything worked just fine. I spent the better part of the day on THAT pair of "features". John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Robin at rolledgold.net Wed May 10 10:01:35 2006 From: Robin at rolledgold.net (Robin ) Date: Wed, 10 May 2006 16:01:35 +0100 Subject: [AccessD] Resetting Autonumber seed Message-ID: <560E2B80EC8F624B93A87B943B7A9CD54A3F22@rgiserv.rg.local> Using Access 97 - found this example but keep getting syntax error ... Don't want to use ADOX because of references .... Sub testit() Dim lngordnomax As Long, strsql As String lngordnomax = DMax("OrdOrderID", "PostedOrders", "OrdOrderID>0") lngordnomax = lngordnomax + 1 strsql = "ALTER TABLE [Orders] ALTER Column [OrdOrderID] Counter (" & lngordnomax & ",1)" CurrentDb.Execute strsql End Sub Can anyone advise what the problem may be Rgds Robin Lawrence From martyconnelly at shaw.ca Wed May 10 11:38:53 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 10 May 2006 09:38:53 -0700 Subject: [AccessD] Resetting Autonumber seed In-Reply-To: <560E2B80EC8F624B93A87B943B7A9CD54A3F22@rgiserv.rg.local> References: <560E2B80EC8F624B93A87B943B7A9CD54A3F22@rgiserv.rg.local> Message-ID: <4462171D.8020001@shaw.ca> could it be just a line wrap problem, if so try this strsql = "ALTER TABLE [Orders] ALTER Column [OrdOrderID] Counter" & _ "(" & lngordnomax & ",1)" Robin wrote: >Using Access 97 - found this example but keep getting syntax error ... > >Don't want to use ADOX because of references .... > >Sub testit() >Dim lngordnomax As Long, strsql As String >lngordnomax = DMax("OrdOrderID", "PostedOrders", "OrdOrderID>0") > lngordnomax = lngordnomax + 1 > strsql = "ALTER TABLE [Orders] ALTER Column [OrdOrderID] Counter >(" & lngordnomax & ",1)" > CurrentDb.Execute strsql >End Sub > >Can anyone advise what the problem may be > >Rgds >Robin Lawrence > > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Wed May 10 11:44:21 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 18:44:21 +0200 Subject: [AccessD] Multithreading in VBA Message-ID: Hi Drew So true, but it could have given you some options for, say, printing a report while updating a (non-related) recordset. I have not used it, but you could shell out to another Access instance which could perform some batch printing while your code leaves the shell command and let the user move on. /gustav >>> DWUTKA at marlow.com 10-05-2006 17:07:38 >>> Actually, when dealing with Access, Multithreading would be a problem even if VBA let you. I've written multithreading VB 6 .exes. It works great, but you can't have more then one thread dealing with one .mdb at a time. I have a test program that just dumps data into a table in an .mdb. One thread will go until the database fills up. However, the more threads you have the faster they will crash (from write errors), and when the last thread is closed the database is corrupted. (Recoverable, but corrupted). That is because the threads are being 'cycled' by the OS, and it doesn't really care when, so JET could be checking for a lock in one thread, and then the next thread to run may be setting a lock that the early thread just set. As you might guess, that will add up to trouble in a hurry. Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Wednesday, May 10, 2006 3:28 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Multithreading in VBA Thanks Drew. It would have been nice, of course, and would it had been possible, I guess I would have read about it elsewhere but I haven't. /gustav >>> DWUTKA at marlow.com 09-05-2006 22:09 >>> Unfortunately no. Even in VB6, you cannot run multiple threads in debug mode. Technically, when you run VBA, it's similar to debug mode. Drew -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Tuesday, May 09, 2006 12:44 PM To: accessd at databaseadvisors.com Subject: [AccessD] Multithreading in VBA Hi all I noticed this article about multithreading in VB6: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=14479&lngWId=1 and wonder if that tip can be transferred to VBA (Access)? /gustav From Robin at rolledgold.net Wed May 10 11:37:10 2006 From: Robin at rolledgold.net (Robin ) Date: Wed, 10 May 2006 17:37:10 +0100 Subject: [AccessD] Resetting Autonumber seed Message-ID: <560E2B80EC8F624B93A87B943B7A9CD54A3F24@rgiserv.rg.local> Thanks Marty - The line wrap is just in Outlook - viewing strsql gives the intended line ... Does anyone know if the syntax is valid - checking help in Access 97 doesn't give the "counter" option Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: 10 May 2006 17:39 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Resetting Autonumber seed could it be just a line wrap problem, if so try this strsql = "ALTER TABLE [Orders] ALTER Column [OrdOrderID] Counter" & _ "(" & lngordnomax & ",1)" Robin wrote: >Using Access 97 - found this example but keep getting syntax error ... > >Don't want to use ADOX because of references .... > >Sub testit() >Dim lngordnomax As Long, strsql As String >lngordnomax = DMax("OrdOrderID", "PostedOrders", "OrdOrderID>0") > lngordnomax = lngordnomax + 1 > strsql = "ALTER TABLE [Orders] ALTER Column [OrdOrderID] >Counter (" & lngordnomax & ",1)" > CurrentDb.Execute strsql >End Sub > >Can anyone advise what the problem may be > >Rgds >Robin Lawrence > > > -- 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 bchacc at san.rr.com Wed May 10 12:07:57 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 10 May 2006 10:07:57 -0700 Subject: [AccessD] GoTo a record on form In-Reply-To: References: Message-ID: <44621DED.5020302@san.rr.com> Mark: I use this format: Me.RecordsetClone.FindFirst "[fldSRHID] = " & cboSubRentals.Value If Me.RecordsetClone.NoMatch Then MsgBox "Agreement Number not found.", vbExclamation Else Me.Bookmark = Me.RecordsetClone.Bookmark End If HTH Rocky Mark A Matte wrote: > Hello All, > > In A2K I have a form(continuous)...I want to type in text box and have the > form goto the first record that matches what I typed...but I don't want to > filter...just goto??? > > Thanks, > > Mark A. Matte > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Gustav at cactus.dk Wed May 10 12:07:40 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 19:07:40 +0200 Subject: [AccessD] Resetting Autonumber seed Message-ID: Hi Robin It doesn't look so: http://support.microsoft.com/kb/q275561/ This article describes the new features of Microsoft Jet 4.0, and the article also compares some of the changes between Microsoft Jet 3.5 and Jet 4.0. /gustav >>> Robin at rolledgold.net 10-05-2006 18:37:10 >>> Thanks Marty - The line wrap is just in Outlook - viewing strsql gives the intended line ... Does anyone know if the syntax is valid - checking help in Access 97 doesn't give the "counter" option Rgds Robin From Robin at rolledgold.net Wed May 10 12:09:31 2006 From: Robin at rolledgold.net (Robin ) Date: Wed, 10 May 2006 18:09:31 +0100 Subject: [AccessD] Resetting Autonumber seed Message-ID: <560E2B80EC8F624B93A87B943B7A9CD54A3F26@rgiserv.rg.local> Thanks Gustav, Reading the 'Alter Table' section seem to agree with you - then I saw this ? 'As a side note (and in addition) to changing field data types or changing the seed and increment value of an Auto-increment data type, the programmer can also drop fields and constraints. ' But I can't decipher the syntax to see how it can be done... Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 10 May 2006 18:08 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Resetting Autonumber seed Hi Robin It doesn't look so: http://support.microsoft.com/kb/q275561/ This article describes the new features of Microsoft Jet 4.0, and the article also compares some of the changes between Microsoft Jet 3.5 and Jet 4.0. /gustav >>> Robin at rolledgold.net 10-05-2006 18:37:10 >>> Thanks Marty - The line wrap is just in Outlook - viewing strsql gives the intended line ... Does anyone know if the syntax is valid - checking help in Access 97 doesn't give the "counter" option Rgds Robin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed May 10 12:35:15 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 19:35:15 +0200 Subject: [AccessD] Resetting Autonumber seed Message-ID: Hi Robin The author tries to tell you that you can remove (delete) the autonumber field and all its relations and recreate these - not exactly what you want. /gustav >>> Robin at rolledgold.net 10-05-2006 19:09:31 >>> Thanks Gustav, Reading the 'Alter Table' section seem to agree with you - then I saw this ? 'As a side note (and in addition) to changing field data types or changing the seed and increment value of an Auto-increment data type, the programmer can also drop fields and constraints. ' But I can't decipher the syntax to see how it can be done... Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 10 May 2006 18:08 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Resetting Autonumber seed Hi Robin It doesn't look so: http://support.microsoft.com/kb/q275561/ This article describes the new features of Microsoft Jet 4.0, and the article also compares some of the changes between Microsoft Jet 3.5 and Jet 4.0. /gustav >>> Robin at rolledgold.net 10-05-2006 18:37:10 >>> Thanks Marty - The line wrap is just in Outlook - viewing strsql gives the intended line ... Does anyone know if the syntax is valid - checking help in Access 97 doesn't give the "counter" option Rgds Robin From Robin at rolledgold.net Wed May 10 12:28:30 2006 From: Robin at rolledgold.net (Robin ) Date: Wed, 10 May 2006 18:28:30 +0100 Subject: [AccessD] Resetting Autonumber seed Message-ID: <560E2B80EC8F624B93A87B943B7A9CD54A3F27@rgiserv.rg.local> Gustav, Read a bit further through this and this is exactly what I need - Both the seed and the increment can be modified using an ALTER TABLE statement. New records inserted into the table will have values that are automatically generated for the field based on the new seed and increment values. If the new seed and increment can yield new values that match existing values generated by the preceding seed and increment, duplicates will be created. If the field is a Primary Key, then inserting new records may result in errors when duplicate primary keys are created. The following is an example of using the ALTER TABLE statement to set new seed and increment values for an auto-increment field: ALTER TABLE TableName ALTER COLUMN FieldName SET IDENTITY (2,4) Are you thinking I can't do this because I'm using Acess97 ? (I've tried sbstituting IDENTITY for COUNTER but get the same error) Rgds Robin From markamatte at hotmail.com Wed May 10 13:01:32 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 10 May 2006 18:01:32 +0000 Subject: [AccessD] Resetting Autonumber seed In-Reply-To: <560E2B80EC8F624B93A87B943B7A9CD54A3F27@rgiserv.rg.local> Message-ID: Robin, Just to clarify...you are trying to reset the autonumber field...so if your have records 1-10...then delete 5-10...the next number will be 11 even though 10 has been deleted. In this example...you want the next number to be 6? Thanks, Mark >From: "Robin " >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Resetting Autonumber seed >Date: Wed, 10 May 2006 18:28:30 +0100 > >Gustav, >Read a bit further through this and this is exactly what I need - > >Both the seed and the increment can be modified using an ALTER TABLE >statement. New records inserted into the table will have values that are >automatically generated for the field based on the new seed and >increment values. If the new seed and increment can yield new values >that match existing values generated by the preceding seed and >increment, duplicates will be created. If the field is a Primary Key, >then inserting new records may result in errors when duplicate primary >keys are created. >The following is an example of using the ALTER TABLE statement to set >new seed and increment values for an auto-increment field: > > ALTER TABLE TableName ALTER COLUMN FieldName SET IDENTITY (2,4) > >Are you thinking I can't do this because I'm using Acess97 ? >(I've tried sbstituting IDENTITY for COUNTER but get the same error) >Rgds >Robin >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed May 10 13:01:58 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 20:01:58 +0200 Subject: [AccessD] Resetting Autonumber seed Message-ID: Hi Robin No, the Counter syntax works in Access 2000+. But why at all trouble with resetting of Autonumber? It's generally a very bad idea. /gustav >>> Robin at rolledgold.net 10-05-2006 19:28:30 >>> Gustav, Read a bit further through this and this is exactly what I need - Both the seed and the increment can be modified using an ALTER TABLE statement. New records inserted into the table will have values that are automatically generated for the field based on the new seed and increment values. If the new seed and increment can yield new values that match existing values generated by the preceding seed and increment, duplicates will be created. If the field is a Primary Key, then inserting new records may result in errors when duplicate primary keys are created. The following is an example of using the ALTER TABLE statement to set new seed and increment values for an auto-increment field: ALTER TABLE TableName ALTER COLUMN FieldName SET IDENTITY (2,4) Are you thinking I can't do this because I'm using Acess97 ? (I've tried sbstituting IDENTITY for COUNTER but get the same error) Rgds Robin From Robin at rolledgold.net Wed May 10 13:04:27 2006 From: Robin at rolledgold.net (Robin ) Date: Wed, 10 May 2006 19:04:27 +0100 Subject: [AccessD] Resetting Autonumber seed Message-ID: <560E2B80EC8F624B93A87B943B7A9CD54A3F28@rgiserv.rg.local> Gustav, Matt, The problem is deleting Orders from one table and transferring to Posted Table via queries- Database is compacted overnight which resets the seed to the lowest order no left - this results in duplicate order numbers when they are eventually transferred... Thanks for your help so far - must leave this for tonight...!! Will return to it tomorrow Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 10 May 2006 19:02 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Resetting Autonumber seed Hi Robin No, the Counter syntax works in Access 2000+. But why at all trouble with resetting of Autonumber? It's generally a very bad idea. /gustav >>> Robin at rolledgold.net 10-05-2006 19:28:30 >>> Gustav, Read a bit further through this and this is exactly what I need - Both the seed and the increment can be modified using an ALTER TABLE statement. New records inserted into the table will have values that are automatically generated for the field based on the new seed and increment values. If the new seed and increment can yield new values that match existing values generated by the preceding seed and increment, duplicates will be created. If the field is a Primary Key, then inserting new records may result in errors when duplicate primary keys are created. The following is an example of using the ALTER TABLE statement to set new seed and increment values for an auto-increment field: ALTER TABLE TableName ALTER COLUMN FieldName SET IDENTITY (2,4) Are you thinking I can't do this because I'm using Acess97 ? (I've tried sbstituting IDENTITY for COUNTER but get the same error) Rgds Robin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed May 10 13:31:54 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 May 2006 20:31:54 +0200 Subject: [AccessD] Resetting Autonumber seed Message-ID: Hi Robin Then read the highest order no. before deleting records, delete records, compact, append one record (dummy order) with order no. set to the read order no.; finally, delete this record. Now the next order created will have the read order no. plus one. /gustav >>> Robin at rolledgold.net 10-05-2006 20:04:27 >>> Gustav, Matt, The problem is deleting Orders from one table and transferring to Posted Table via queries- Database is compacted overnight which resets the seed to the lowest order no left - this results in duplicate order numbers when they are eventually transferred... Thanks for your help so far - must leave this for tonight...!! Will return to it tomorrow Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 10 May 2006 19:02 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Resetting Autonumber seed Hi Robin No, the Counter syntax works in Access 2000+. But why at all trouble with resetting of Autonumber? It's generally a very bad idea. From martyconnelly at shaw.ca Wed May 10 13:58:18 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 10 May 2006 11:58:18 -0700 Subject: [AccessD] Resetting Autonumber seed In-Reply-To: References: Message-ID: <446237CA.1020002@shaw.ca> Or just use GUID's instead of sequential autonumbers although this might frighten auditors. Gustav Brock wrote: >Hi Robin > >Then read the highest order no. before deleting records, delete records, compact, append one record (dummy order) with order no. set to the read order no.; finally, delete this record. >Now the next order created will have the read order no. plus one. > >/gustav > > > >>>>Robin at rolledgold.net 10-05-2006 20:04:27 >>> >>>> >>>> >Gustav, Matt, >The problem is deleting Orders from one table and transferring to Posted >Table via queries- Database is compacted overnight which resets the seed >to the lowest order no left - this results in duplicate order numbers >when they are eventually transferred... > >Thanks for your help so far - must leave this for tonight...!! > >Will return to it tomorrow > >Rgds >Robin > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: 10 May 2006 19:02 >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Resetting Autonumber seed > > >Hi Robin > >No, the Counter syntax works in Access 2000+. > >But why at all trouble with resetting of Autonumber? It's generally a >very bad idea. > > > > -- Marty Connelly Victoria, B.C. Canada From mastercafe at ctv.es Wed May 10 14:22:15 2006 From: mastercafe at ctv.es (MastercafeCTV) Date: Wed, 10 May 2006 21:22:15 +0200 Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA In-Reply-To: <4460F14C.6010802@shaw.ca> Message-ID: <000001c67467$0c53a660$0500a8c0@masterserv> Hi Marty, have you try to construct any Vba code like the samples ping or ftp?? I try today and i have installed on my computer Net Framework 2 and VB.net 2005, but can't execute... the wrapper dll or anything..?? Thanks Juan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: martes, 09 de mayo de 2006 21:45 To: Access Developers discussion and problem solving Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA This might be interesting and is fairly simple Call Into The .NET Framework From Existing Visual Basic 6.0 Apps http://msdn.microsoft.com/msdnmag/issues/06/05/WrapItUp/default.aspx This article adresses VB6 but there is no reason, it can't be used from VBA You will need VB Express installed along with .Net Framework 2.0 to create the wrapper dll. And perhaps register as COM object. It should save you using a lot of 3'd party controls by using the NET Framework class library instead. There are a lot of things that can be quickly written in .Net The .NET Framework classes must be called through a wrapper. The wrappers are built using the COM Class item in VB Express, and they behave like any other COM objects -- 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 Chester_Kaup at kindermorgan.com Wed May 10 16:28:53 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Wed, 10 May 2006 16:28:53 -0500 Subject: [AccessD] Top values query problem Message-ID: Got around to trying this and had to make 2 changes. PT_Well and PT_Status were already strings so I removed the Str function. Query runs fine for a few records. The table I am working against has ~500,000 records. I gave up letting it run it was taking so long. Am I missing something or is there a better way to do this such as VBA? My query SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE PT_Well & "x" & Str(PT_Date) & "x" & PT_Status IN (SELECT TOP 6 T.PT_Well & "x" & Str(T.PT_Date) & "x" & T.PT_Status FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, May 10, 2006 4:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester Something like this where you use a pseudo key if you don't have a unique key: SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE Str(PT_Well) & "x" & Str(PT_Date) & "x" & Str(PT_Status) IN (SELECT TOP 6 Str(T.PT_Well) & "x" & Str(T.PT_Date) & "x" & Str(T.PT_Status) FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; This assumes you have only one record for each Well/Date. /gustav >>> Chester_Kaup at kindermorgan.com 09-05-2006 23:34 >>> When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; -- 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 May 10 16:58:47 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 11 May 2006 07:58:47 +1000 Subject: [AccessD] Resetting Autonumber seed In-Reply-To: <446237CA.1020002@shaw.ca> References: Message-ID: <4462EEB7.13420.71F391E@stuart.lexacorp.com.pg> Or even better - Never use autonumber for meaningful keys like Order Numbers. Autonumber is a great tool for generating the *surrogate* primary key which you should always have in your tables (DARFC) - but it causes no end of trouble when you try to use it for real data. On 10 May 2006 at 11:58, MartyConnelly wrote: > Or just use GUID's instead of sequential autonumbers although this might > frighten auditors. > > Gustav Brock wrote: > > >Hi Robin > > > >Then read the highest order no. before deleting records, delete records, > >compact, append one record (dummy order) with order no. set to the read > >order no.; finally, delete this record. Now the next order created will > >have the read order no. plus one. > > > >/gustav > > > > > > > >>>>Robin at rolledgold.net 10-05-2006 20:04:27 >>> > >>>> > >>>> > >Gustav, Matt, > >The problem is deleting Orders from one table and transferring to Posted > >Table via queries- Database is compacted overnight which resets the seed to > >the lowest order no left - this results in duplicate order numbers when > >they are eventually transferred... > > -- Stuart From martyconnelly at shaw.ca Wed May 10 17:48:55 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 10 May 2006 15:48:55 -0700 Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA In-Reply-To: <000001c67467$0c53a660$0500a8c0@masterserv> References: <000001c67467$0c53a660$0500a8c0@masterserv> Message-ID: <44626DD7.5080704@shaw.ca> I was just going to post this but the download from the article is missing a comclass.zip It is only 2 or 3 K, you need this to build any new classes. It is installed by Visual Studio but not VB Express. I don't have Visual Studio but found it in a msi file downloadable from this simlar article by same author. Just install it in the directory indicated in the article then it will appear in temporary templates in vb.Net IDE. It contains the COM Class template necessary for building new class projects. Visual Basic Fusion: Best Practices to Use Visual Basic 6 and Visual Basic .NET Together http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/vbbestprac.asp However your problem maybe in the registering of the dll. Two ways to do this Install the project and open it in VB.Net, then do a Build this will register the dll with the com registry. There are step by step instuctions except for doing the final build in the first article. The build will also create a new tlb file. In Access set a reference to the tlb file that will be in a directory like below depending on where you installed the project. C:\Access files\VBFusion\VB2005\FX20Wrapper\bin\Release\FX20Wrapper.tlb The tlb will allow Access to see the class definitions and do a compile. Then just run your routine The other way is to use the included install.bat to register the dll It uses regasm and gacutil to remove any previously named dll and reinstall in the registry. Haven't tried this method. But I have been having fun with it running .Net XML Text classes from Access and SQL. Console.Write will come up something like a message box from Access. Imports System.Data.SqlClient Imports System.IO Imports System.Xml _ Public Class ComClass1 #Region "COM GUIDs" ' These GUIDs provide the COM identity for this class ' and its COM interfaces. If you change them, existing ' clients will no longer be able to access the class. Public Const ClassId As String = "e93440c0-fad6-478e-a01a-ad5965fcf9c4" Public Const InterfaceId As String = "1ecdb897-9d67-42b9-8465-7fc1d53119d6" Public Const EventsId As String = "4c78673d-bb4e-4e26-aed0-2a14e06f2f44" #End Region ' A creatable COM class must have a Public Sub New() ' with no parameters, otherwise, the class will not be ' registered in the COM registry and cannot be created ' via CreateObject. Public Sub New() MyBase.New() End Sub Public Function MainSQLTest() MsgBox("MainSQL Start") Dim cn As SqlConnection = New SqlConnection _ ("Data Source=localhost;user id=sa;" & _ "pwd=gribnif;Initial Catalog=Pubs") Dim authorCommand As SqlCommand = New SqlCommand("SELECT * FROM Authors", cn) Dim authorDA As SqlDataAdapter = New SqlDataAdapter() authorDA.SelectCommand = authorCommand cn.Open() Dim authorDS As DataSet = New DataSet() authorDA.Fill(authorDS, "Authors") Dim sFileName As String = "c:\temp2\testsql.xml" Dim xmlAuthor As String = authorDS.GetXml MsgBox(xmlAuthor) Dim srFile As StreamWriter = _ File.CreateText(sFileName) srFile.WriteLine(authorDS.GetXml) srFile.Close() cn.Close() Dim reader = New XmlTextReader(sFileName) reader.WhitespaceHandling = WhitespaceHandling.None 'Parse the file and display each of the nodes. While reader.Read() Select Case reader.NodeType Case XmlNodeType.Element Console.Write("<{0}>", reader.Name) Case XmlNodeType.Text Console.Write(reader.Value) Case XmlNodeType.XmlDeclaration Console.Write("") Case XmlNodeType.Document Case XmlNodeType.DocumentType Console.Write("", reader.Name) End Select End While End Function End Class MastercafeCTV wrote: >Hi Marty, >have you try to construct any Vba code like the samples ping or ftp?? >I try today and i have installed on my computer Net Framework 2 and VB.net >2005, but can't execute... the wrapper dll or anything..?? > >Thanks > >Juan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: martes, 09 de mayo de 2006 21:45 >To: Access Developers discussion and problem solving >Subject: [AccessD] Call .Net 2.0 Framework code from Access VBA > > >This might be interesting and is fairly simple > >Call Into The .NET Framework From Existing Visual Basic 6.0 Apps >http://msdn.microsoft.com/msdnmag/issues/06/05/WrapItUp/default.aspx > >This article adresses VB6 but there is no reason, it can't be used from VBA >You will need VB Express installed along with .Net Framework 2.0 to create >the wrapper dll. And perhaps register as COM object. > >It should save you using a lot of 3'd party controls by using the NET >Framework class library instead. There are a lot of things that can be >quickly written in .Net > >The .NET Framework classes must be called through a wrapper. The wrappers >are built using the COM Class item in VB Express, and they behave like any >other COM objects > > > -- Marty Connelly Victoria, B.C. Canada From carbonnb at gmail.com Wed May 10 20:21:04 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Wed, 10 May 2006 21:21:04 -0400 Subject: [AccessD] Resetting Autonumber seed In-Reply-To: <560E2B80EC8F624B93A87B943B7A9CD54A3F27@rgiserv.rg.local> References: <560E2B80EC8F624B93A87B943B7A9CD54A3F27@rgiserv.rg.local> Message-ID: On 5/10/06, Robin wrote: > ALTER TABLE TableName ALTER COLUMN FieldName SET IDENTITY (2,4) > > Are you thinking I can't do this because I'm using Acess97 ? > (I've tried sbstituting IDENTITY for COUNTER but get the same error) The problem is ALTER TABLE is part of the DDL SQL Syntax, which is not supported in A97. -- 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 bchacc at san.rr.com Thu May 11 00:21:34 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 10 May 2006 22:21:34 -0700 Subject: [AccessD] Outlook and Access Message-ID: <4462C9DE.3090303@san.rr.com> Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: "If an email comes in with a 6 digit (alphanumeric) code in the Subject line, Outlook would make a call to Access, passing along the code and then delete the email. No code, email automatically deleted. The call to access would cause the code to be looked up and a status report emailed to the client if the code is current. " I suppose the receipt of any email would have to trigger this hunk of code. I've put a lot of code behind Excel sheets to push data into an Access database but never from Outlook. Does anyone know of any code samples, snips, explanations, etc. that could get me started on this? 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 Gustav at cactus.dk Thu May 11 06:06:59 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 11 May 2006 13:06:59 +0200 Subject: [AccessD] Top values query problem Message-ID: Hi Chester You could sort on Well and Date in a recordset you open in VBA. Then loop through this writing the first six records for each Well to a new (temp) table. That should run pretty fast. /gustav >>> Chester_Kaup at kindermorgan.com 10-05-2006 23:28 >>> Got around to trying this and had to make 2 changes. PT_Well and PT_Status were already strings so I removed the Str function. Query runs fine for a few records. The table I am working against has ~500,000 records. I gave up letting it run it was taking so long. Am I missing something or is there a better way to do this such as VBA? My query SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE PT_Well & "x" & Str(PT_Date) & "x" & PT_Status IN (SELECT TOP 6 T.PT_Well & "x" & Str(T.PT_Date) & "x" & T.PT_Status FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, May 10, 2006 4:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester Something like this where you use a pseudo key if you don't have a unique key: SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE Str(PT_Well) & "x" & Str(PT_Date) & "x" & Str(PT_Status) IN (SELECT TOP 6 Str(T.PT_Well) & "x" & Str(T.PT_Date) & "x" & Str(T.PT_Status) FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; This assumes you have only one record for each Well/Date. /gustav >>> Chester_Kaup at kindermorgan.com 09-05-2006 23:34 >>> When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; From Gustav at cactus.dk Thu May 11 06:12:56 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 11 May 2006 13:12:56 +0200 Subject: [AccessD] Resetting Autonumber seed Message-ID: Hi Bryan You mean ALTER COLUMN? /gustav >>> carbonnb at gmail.com 11-05-2006 03:21 >>> On 5/10/06, Robin wrote: > ALTER TABLE TableName ALTER COLUMN FieldName SET IDENTITY (2,4) > > Are you thinking I can't do this because I'm using Acess97 ? > (I've tried sbstituting IDENTITY for COUNTER but get the same error) The problem is ALTER TABLE is part of the DDL SQL Syntax, which is not supported in A97. From Chester_Kaup at kindermorgan.com Thu May 11 07:11:25 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 11 May 2006 07:11:25 -0500 Subject: [AccessD] Top values query problem Message-ID: Thanks. That is what I am going to do. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, May 11, 2006 6:07 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester You could sort on Well and Date in a recordset you open in VBA. Then loop through this writing the first six records for each Well to a new (temp) table. That should run pretty fast. /gustav >>> Chester_Kaup at kindermorgan.com 10-05-2006 23:28 >>> Got around to trying this and had to make 2 changes. PT_Well and PT_Status were already strings so I removed the Str function. Query runs fine for a few records. The table I am working against has ~500,000 records. I gave up letting it run it was taking so long. Am I missing something or is there a better way to do this such as VBA? My query SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE PT_Well & "x" & Str(PT_Date) & "x" & PT_Status IN (SELECT TOP 6 T.PT_Well & "x" & Str(T.PT_Date) & "x" & T.PT_Status FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, May 10, 2006 4:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester Something like this where you use a pseudo key if you don't have a unique key: SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE Str(PT_Well) & "x" & Str(PT_Date) & "x" & Str(PT_Status) IN (SELECT TOP 6 Str(T.PT_Well) & "x" & Str(T.PT_Date) & "x" & Str(T.PT_Status) FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; This assumes you have only one record for each Well/Date. /gustav >>> Chester_Kaup at kindermorgan.com 09-05-2006 23:34 >>> When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Thu May 11 07:30:54 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 11 May 2006 08:30:54 -0400 Subject: [AccessD] Outlook and Access Message-ID: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> Rocky, We had some code on our admin's Outlook that took a help desk e-mail with a certain subject and inserted it in an Access database. It's triggered by Outlook's Application_NewMail event but I have to warn you it's very inconsistent (at least it was here). On occasion (more frequently than occasionally) it missed items. The code is the same code you'd use to insert a record in Access from any system (Excel, web, etc.) the only difference is when the NewMail event triggers you read the new message's subject to determine what to do. We ended up disabling or removing the code from Outlook when we moved to Track-It to handle these requests. I have the code if you'd like to take a look (1 class module, 1 standard module, then Outlook code althought I do believe we ended up moving the class code right into NewMail event out of frustration). Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, May 11, 2006 1:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Outlook and Access Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: "If an email comes in with a 6 digit (alphanumeric) code in the Subject line, Outlook would make a call to Access, passing along the code and then delete the email. No code, email automatically deleted. The call to access would cause the code to be looked up and a status report emailed to the client if the code is current. " I suppose the receipt of any email would have to trigger this hunk of code. I've put a lot of code behind Excel sheets to push data into an Access database but never from Outlook. Does anyone know of any code samples, snips, explanations, etc. that could get me started on this? 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Thu May 11 07:46:40 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Thu, 11 May 2006 08:46:40 -0400 Subject: [AccessD] Outlook and Access In-Reply-To: <4462C9DE.3090303@san.rr.com> Message-ID: <000001c674f8$f97b5a00$b5b3d6d1@SUSANONE> Truly, working with Outlook and Access is one of those mysteries whereby the chosen developer is given code from the Gods while s/he sleeps... ;) Check Helen Feddema's site -- she does a lot of Outlook work, but I don't know that she'll have anything to help, but it's worth a look. http://www.feddema.com Susan H. Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: From harkinsss at bellsouth.net Thu May 11 07:53:05 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Thu, 11 May 2006 08:53:05 -0400 Subject: [AccessD] Outlook and Access In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> Message-ID: <000601c674f9$d949d0d0$b5b3d6d1@SUSANONE> I know this probably won't help, but Rocky -- did you know that you can export messages into an Access database -- it's really a simple process. If you could filter those messages into a specific folder as they arrived, you could easily export the entire folder. I don't know what your client really needs, and certainly don't want to talk you out of any work, but sometimes the easy way really is enough. ;) This is something they wouldn't have to automate -- just do it -- would take a short phone call over the phone to show them how. If I remember correctly, you can't export into an existing database, so they'd also have to work through that, but again -- we're talking about a few minutes work to import the new messages from a temp db into the production db. Susan H. Rocky, We had some code on our admin's Outlook that took a help desk e-mail with a certain subject and inserted it in an Access database. It's triggered by Outlook's Application_NewMail event but I have to warn you it's very inconsistent (at least it was here). On occasion (more frequently than occasionally) it missed items. The code is the same code you'd use to insert a record in Access from any system (Excel, web, etc.) the only difference is when the NewMail event triggers you read the new message's subject to determine what to do. We ended up disabling or removing the code from Outlook when we moved to Track-It to handle these requests. I have the code if you'd like to take a look (1 class module, 1 standard module, then Outlook code althought I do believe we ended up moving the class code right into NewMail event out of frustration). Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, May 11, 2006 1:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Outlook and Access Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: "If an email comes in with a 6 digit (alphanumeric) code in the Subject line, Outlook would make a call to Access, passing along the code and then delete the email. No code, email automatically deleted. The call to access would cause the code to be looked up and a status report emailed to the client if the code is current. " I suppose the receipt of any email would have to trigger this hunk of code. I've put a lot of code behind Excel sheets to push data into an Access database but never from Outlook. Does anyone know of any code samples, snips, explanations, etc. that could get me started on this? 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.392 / Virus Database: 268.5.5/335 - Release Date: 5/9/2006 From carbonnb at gmail.com Thu May 11 07:46:05 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 11 May 2006 08:46:05 -0400 Subject: [AccessD] Resetting Autonumber seed In-Reply-To: References: Message-ID: On 5/11/06, Gustav Brock wrote: > Hi Bryan > > You mean ALTER COLUMN? Um, yea. Sorry 'bout that. -- 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 bchacc at san.rr.com Thu May 11 08:23:45 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 06:23:45 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> Message-ID: <44633AE1.5070500@san.rr.com> Jim: I'd be grateful for a copy. You could send it offline - bchacc at san.rr.com. Is there a property sheet with event properties to set the event in Outlook like there is in Access? Or how does the event get triggered in Outlook? TIA Rocky Jim DeMarco wrote: > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail > with a certain subject and inserted it in an Access database. It's > triggered by Outlook's Application_NewMail event but I have to warn you > it's very inconsistent (at least it was here). On occasion (more > frequently than occasionally) it missed items. The code is the same > code you'd use to insert a record in Access from any system (Excel, web, > etc.) the only difference is when the NewMail event triggers you read > the new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved to > Track-It to handle these requests. I have the code if you'd like to > take a look (1 class module, 1 standard module, then Outlook code > althought I do believe we ended up moving the class code right into > NewMail event out of frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and > then delete the email. No code, email automatically deleted. The call > to access would cause the code to be looked up and a status report > emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > 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 > > -- > 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 Jdemarco at hudsonhealthplan.org Thu May 11 08:37:29 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 11 May 2006 09:37:29 -0400 Subject: [AccessD] Outlook and Access Message-ID: <08F823FD83787D4BA0B99CA580AD3C74037177D7@TTNEXCHCL2.hshhp.com> Yes there's a drop down. Choose "Application" from the left side and NewMail from the list on the right. I'll send it in a sec. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, May 11, 2006 9:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook and Access Jim: I'd be grateful for a copy. You could send it offline - bchacc at san.rr.com. Is there a property sheet with event properties to set the event in Outlook like there is in Access? Or how does the event get triggered in Outlook? TIA Rocky Jim DeMarco wrote: > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail > with a certain subject and inserted it in an Access database. It's > triggered by Outlook's Application_NewMail event but I have to warn > you it's very inconsistent (at least it was here). On occasion (more > frequently than occasionally) it missed items. The code is the same > code you'd use to insert a record in Access from any system (Excel, > web, > etc.) the only difference is when the NewMail event triggers you read > the new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved > to Track-It to handle these requests. I have the code if you'd like > to take a look (1 class module, 1 standard module, then Outlook code > althought I do believe we ended up moving the class code right into > NewMail event out of frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the > Subject line, Outlook would make a call to Access, passing along the > code and then delete the email. No code, email automatically deleted. > The call to access would cause the code to be looked up and a status > report emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code > samples, snips, explanations, etc. that could get me started on this? > > 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 > > -- > 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 Jdemarco at hudsonhealthplan.org Thu May 11 08:38:57 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 11 May 2006 09:38:57 -0400 Subject: [AccessD] Outlook and Access Message-ID: <08F823FD83787D4BA0B99CA580AD3C74037177D8@TTNEXCHCL2.hshhp.com> You can (or could at least) link to an Outlook folder too if that's an option. The data that shows in Access IIRC is not what you might expect though (sorry I can't be more clear but it's been quite a while since I tried that). Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, May 11, 2006 8:53 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook and Access I know this probably won't help, but Rocky -- did you know that you can export messages into an Access database -- it's really a simple process. If you could filter those messages into a specific folder as they arrived, you could easily export the entire folder. I don't know what your client really needs, and certainly don't want to talk you out of any work, but sometimes the easy way really is enough. ;) This is something they wouldn't have to automate -- just do it -- would take a short phone call over the phone to show them how. If I remember correctly, you can't export into an existing database, so they'd also have to work through that, but again -- we're talking about a few minutes work to import the new messages from a temp db into the production db. Susan H. Rocky, We had some code on our admin's Outlook that took a help desk e-mail with a certain subject and inserted it in an Access database. It's triggered by Outlook's Application_NewMail event but I have to warn you it's very inconsistent (at least it was here). On occasion (more frequently than occasionally) it missed items. The code is the same code you'd use to insert a record in Access from any system (Excel, web, etc.) the only difference is when the NewMail event triggers you read the new message's subject to determine what to do. We ended up disabling or removing the code from Outlook when we moved to Track-It to handle these requests. I have the code if you'd like to take a look (1 class module, 1 standard module, then Outlook code althought I do believe we ended up moving the class code right into NewMail event out of frustration). Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, May 11, 2006 1:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Outlook and Access Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: "If an email comes in with a 6 digit (alphanumeric) code in the Subject line, Outlook would make a call to Access, passing along the code and then delete the email. No code, email automatically deleted. The call to access would cause the code to be looked up and a status report emailed to the client if the code is current. " I suppose the receipt of any email would have to trigger this hunk of code. I've put a lot of code behind Excel sheets to push data into an Access database but never from Outlook. Does anyone know of any code samples, snips, explanations, etc. that could get me started on this? 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.392 / Virus Database: 268.5.5/335 - Release Date: 5/9/2006 -- 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 May 11 08:54:52 2006 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 11 May 2006 23:54:52 +1000 Subject: [AccessD] A2003:Syntax for NEXT on a subform called from main form Message-ID: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> Hi All I have a mainform that has a sub form I want the sub form to go to its next record when I push the Next button on the main form Anyone know what the syntax is? many thanks Darren From bchacc at san.rr.com Thu May 11 08:55:22 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 06:55:22 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74037177D8@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C74037177D8@TTNEXCHCL2.hshhp.com> Message-ID: <4463424A.30600@san.rr.com> It looks like running the whole thing from Access would be much easier and more reliable. I could set it up to run on a trimer interval and go look at Outlook to see if any of the messages he's looking for are there. But I think he wants the receipt of the email to trigger the code to push some data into access and then delete the email. Rocky Jim DeMarco wrote: > You can (or could at least) link to an Outlook folder too if that's an > option. The data that shows in Access IIRC is not what you might expect > though (sorry I can't be more clear but it's been quite a while since I > tried that). > > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Thursday, May 11, 2006 8:53 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook and Access > > I know this probably won't help, but Rocky -- did you know that you can > export messages into an Access database -- it's really a simple process. > If you could filter those messages into a specific folder as they > arrived, you could easily export the entire folder. I don't know what > your client really needs, and certainly don't want to talk you out of > any work, but sometimes the easy way really is enough. ;) This is > something they wouldn't have to automate -- just do it -- would take a > short phone call over the phone to show them how. If I remember > correctly, you can't export into an existing database, so they'd also > have to work through that, but again -- we're talking about a few > minutes work to import the new messages from a temp db into the > production db. > > Susan H. > > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail > with a certain subject and inserted it in an Access database. It's > triggered by Outlook's Application_NewMail event but I have to warn you > it's very inconsistent (at least it was here). On occasion (more > frequently than > occasionally) it missed items. The code is the same code you'd use to > insert a record in Access from any system (Excel, web, > etc.) the only difference is when the NewMail event triggers you read > the new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved to > Track-It to handle these requests. I have the code if you'd like to > take a look (1 class module, 1 standard module, then Outlook code > althought I do believe we ended up moving the class code right into > NewMail event out of frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and > then delete the email. No code, email automatically deleted. The call > to access would cause the code to be looked up and a status report > emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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.392 / Virus Database: 268.5.5/335 - Release Date: 5/9/2006 > > > -- > 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 Lambert.Heenan at AIG.com Thu May 11 09:57:38 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 11 May 2006 10:57:38 -0400 Subject: [AccessD] Outlook and Access Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F2175A3ED@xlivmbx21.aig.com> FYI: Helen's site is now at http://www.helenfeddema.com/ Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, May 11, 2006 8:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook and Access Truly, working with Outlook and Access is one of those mysteries whereby the chosen developer is given code from the Gods while s/he sleeps... ;) Check Helen Feddema's site -- she does a lot of Outlook work, but I don't know that she'll have anything to help, but it's worth a look. http://www.feddema.com Susan H. Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu May 11 10:24:31 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 08:24:31 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> Message-ID: <4463572F.1010309@san.rr.com> If someone knew what they were doing, about how many hours do you think it would take - 1? 2-4? 5-10? (anybody feel free to chime in here) Rocky Jim DeMarco wrote: > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail > with a certain subject and inserted it in an Access database. It's > triggered by Outlook's Application_NewMail event but I have to warn you > it's very inconsistent (at least it was here). On occasion (more > frequently than occasionally) it missed items. The code is the same > code you'd use to insert a record in Access from any system (Excel, web, > etc.) the only difference is when the NewMail event triggers you read > the new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved to > Track-It to handle these requests. I have the code if you'd like to > take a look (1 class module, 1 standard module, then Outlook code > althought I do believe we ended up moving the class code right into > NewMail event out of frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and > then delete the email. No code, email automatically deleted. The call > to access would cause the code to be looked up and a status report > emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > 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 > > -- > 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 DWUTKA at marlow.com Thu May 11 10:22:41 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 11 May 2006 10:22:41 -0500 Subject: [AccessD] Outlook and Access Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B2078@main2.marlow.com> What version of Outlook is your client using? Outlook 2003 has NewMailEx as an event, which will handle multiple incoming email events. The help file has sample code on how to 'capture' the new email coming in, and then you are simply dealing with working with an .mdb through VBA. However, you mentioned that you wanted to delete the emails that don't have a proper code, so am I to assume that this is not a 'users' email address? If it's not, you would need a machine dedicated to running Outlook for an 'unused' email address. What would work better there would be a service running on their mail server. Are they using an Exchange mail server? The service could just monitor that account, and do what you want. I have built services like that before. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, May 11, 2006 12:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Outlook and Access Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: "If an email comes in with a 6 digit (alphanumeric) code in the Subject line, Outlook would make a call to Access, passing along the code and then delete the email. No code, email automatically deleted. The call to access would cause the code to be looked up and a status report emailed to the client if the code is current. " I suppose the receipt of any email would have to trigger this hunk of code. I've put a lot of code behind Excel sheets to push data into an Access database but never from Outlook. Does anyone know of any code samples, snips, explanations, etc. that could get me started on this? 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu May 11 10:28:23 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 08:28:23 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <000601c674f9$d949d0d0$b5b3d6d1@SUSANONE> References: <000601c674f9$d949d0d0$b5b3d6d1@SUSANONE> Message-ID: <44635817.5050301@san.rr.com> James: Here's a two-step process - export from Outlook, import into Access. You might be able to handle the whole thing yourself this way. Depends on how much automation you want for this function. Rocky Susan Harkins wrote: > I know this probably won't help, but Rocky -- did you know that you can > export messages into an Access database -- it's really a simple process. If > you could filter those messages into a specific folder as they arrived, you > could easily export the entire folder. I don't know what your client really > needs, and certainly don't want to talk you out of any work, but sometimes > the easy way really is enough. ;) This is something they wouldn't have to > automate -- just do it -- would take a short phone call over the phone to > show them how. If I remember correctly, you can't export into an existing > database, so they'd also have to work through that, but again -- we're > talking about a few minutes work to import the new messages from a temp db > into the production db. > > Susan H. > > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail with a > certain subject and inserted it in an Access database. It's triggered by > Outlook's Application_NewMail event but I have to warn you it's very > inconsistent (at least it was here). On occasion (more frequently than > occasionally) it missed items. The code is the same code you'd use to > insert a record in Access from any system (Excel, web, > etc.) the only difference is when the NewMail event triggers you read the > new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved to > Track-It to handle these requests. I have the code if you'd like to take a > look (1 class module, 1 standard module, then Outlook code althought I do > believe we ended up moving the class code right into NewMail event out of > frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I have no > idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and then > delete the email. No code, email automatically deleted. The call to access > would cause the code to be looked up and a status report emailed to the > client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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.392 / Virus Database: 268.5.5/335 - Release Date: 5/9/2006 > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Thu May 11 10:29:09 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 08:29:09 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <000601c674f9$d949d0d0$b5b3d6d1@SUSANONE> References: <000601c674f9$d949d0d0$b5b3d6d1@SUSANONE> Message-ID: <44635845.2040303@san.rr.com> Susan: I forwarded your suggestion to the client. He's got a little bit of facility with Access and might find this solution practical. I don't know how much he wants this function to be automated. Rocky Susan Harkins wrote: > I know this probably won't help, but Rocky -- did you know that you can > export messages into an Access database -- it's really a simple process. If > you could filter those messages into a specific folder as they arrived, you > could easily export the entire folder. I don't know what your client really > needs, and certainly don't want to talk you out of any work, but sometimes > the easy way really is enough. ;) This is something they wouldn't have to > automate -- just do it -- would take a short phone call over the phone to > show them how. If I remember correctly, you can't export into an existing > database, so they'd also have to work through that, but again -- we're > talking about a few minutes work to import the new messages from a temp db > into the production db. > > Susan H. > > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail with a > certain subject and inserted it in an Access database. It's triggered by > Outlook's Application_NewMail event but I have to warn you it's very > inconsistent (at least it was here). On occasion (more frequently than > occasionally) it missed items. The code is the same code you'd use to > insert a record in Access from any system (Excel, web, > etc.) the only difference is when the NewMail event triggers you read the > new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved to > Track-It to handle these requests. I have the code if you'd like to take a > look (1 class module, 1 standard module, then Outlook code althought I do > believe we ended up moving the class code right into NewMail event out of > frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I have no > idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and then > delete the email. No code, email automatically deleted. The call to access > would cause the code to be looked up and a status report emailed to the > client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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.392 / Virus Database: 268.5.5/335 - Release Date: 5/9/2006 > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From DWUTKA at marlow.com Thu May 11 10:48:29 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 11 May 2006 10:48:29 -0500 Subject: [AccessD] Outlook and Access Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B2081@main2.marlow.com> Knew what they were doing? 30 minutes, depending on how fast you type. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, May 11, 2006 10:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook and Access If someone knew what they were doing, about how many hours do you think it would take - 1? 2-4? 5-10? (anybody feel free to chime in here) Rocky Jim DeMarco wrote: > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail > with a certain subject and inserted it in an Access database. It's > triggered by Outlook's Application_NewMail event but I have to warn you > it's very inconsistent (at least it was here). On occasion (more > frequently than occasionally) it missed items. The code is the same > code you'd use to insert a record in Access from any system (Excel, web, > etc.) the only difference is when the NewMail event triggers you read > the new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved to > Track-It to handle these requests. I have the code if you'd like to > take a look (1 class module, 1 standard module, then Outlook code > althought I do believe we ended up moving the class code right into > NewMail event out of frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and > then delete the email. No code, email automatically deleted. The call > to access would cause the code to be looked up and a status report > emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > 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 > > -- > 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 Jim.Hale at FleetPride.com Thu May 11 10:50:56 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 11 May 2006 10:50:56 -0500 Subject: [AccessD] Top values query problem Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC25@corp-es01.fleetpride.com> Check this out. It gives the top 6 values for each well. If a well has two records for a date it only returns one record for that date. Let me know if this does the trick. Jim Hale SELECT dbo_Prod_Tests.PT_Well, dbo_Prod_Tests.PT_Date, dbo_Prod_Tests.PT_Status FROM dbo_Prod_Tests INNER JOIN qryWells ON dbo_Prod_Tests.PT_Well = qryWells.PT_Well WHERE (((dbo_Prod_Tests.PT_Date) In (SELECT TOP 6 dbo_Prod_Tests.PT_Date FROM dbo_Prod_Tests WHERE (dbo_Prod_Tests.PT_Well=qrywells.PT_well) ORDER BY dbo_Prod_Tests.PT_Date DESC;))) ORDER BY dbo_Prod_Tests.PT_Well, dbo_Prod_Tests.PT_Date; where qryWells is a simple groupby query: SELECT dbo_Prod_Tests.PT_Well FROM dbo_Prod_Tests GROUP BY dbo_Prod_Tests.PT_Well; -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Tuesday, May 09, 2006 4:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] Top values query problem When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 *********************************************************************** 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 Jdemarco at hudsonhealthplan.org Thu May 11 11:09:25 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 11 May 2006 12:09:25 -0400 Subject: [AccessD] Outlook and Access Message-ID: <08F823FD83787D4BA0B99CA580AD3C740371784B@TTNEXCHCL2.hshhp.com> Shouldn't take long at all really. Should mention that if Outlook 2003 the security warnings may be an issue although you're not sending mail. I seem to recall we might have had an issue with that (because there was code running in an Outlook session). There's always ClickYes for that. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Thursday, May 11, 2006 11:48 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Outlook and Access Knew what they were doing? 30 minutes, depending on how fast you type. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, May 11, 2006 10:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook and Access If someone knew what they were doing, about how many hours do you think it would take - 1? 2-4? 5-10? (anybody feel free to chime in here) Rocky Jim DeMarco wrote: > Rocky, > > We had some code on our admin's Outlook that took a help desk e-mail > with a certain subject and inserted it in an Access database. It's > triggered by Outlook's Application_NewMail event but I have to warn > you it's very inconsistent (at least it was here). On occasion (more > frequently than occasionally) it missed items. The code is the same > code you'd use to insert a record in Access from any system (Excel, > web, > etc.) the only difference is when the NewMail event triggers you read > the new message's subject to determine what to do. > > We ended up disabling or removing the code from Outlook when we moved > to Track-It to handle these requests. I have the code if you'd like > to take a look (1 class module, 1 standard module, then Outlook code > althought I do believe we ended up moving the class code right into > NewMail event out of frustration). > > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin > - Beach Access Software > Sent: Thursday, May 11, 2006 1:22 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Outlook and Access > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the > Subject line, Outlook would make a call to Access, passing along the > code and then delete the email. No code, email automatically deleted. > The call to access would cause the code to be looked up and a status > report emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code > samples, snips, explanations, etc. that could get me started on this? > > 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 > > -- > 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 Jdemarco at hudsonhealthplan.org Thu May 11 11:10:13 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 11 May 2006 12:10:13 -0400 Subject: [AccessD] Outlook and Access Message-ID: <08F823FD83787D4BA0B99CA580AD3C740371784C@TTNEXCHCL2.hshhp.com> I noticed that NewMailEx event when I went snooping into Outlook VBA this AM. That may have done the trick for us. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Thursday, May 11, 2006 11:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Outlook and Access What version of Outlook is your client using? Outlook 2003 has NewMailEx as an event, which will handle multiple incoming email events. The help file has sample code on how to 'capture' the new email coming in, and then you are simply dealing with working with an .mdb through VBA. However, you mentioned that you wanted to delete the emails that don't have a proper code, so am I to assume that this is not a 'users' email address? If it's not, you would need a machine dedicated to running Outlook for an 'unused' email address. What would work better there would be a service running on their mail server. Are they using an Exchange mail server? The service could just monitor that account, and do what you want. I have built services like that before. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, May 11, 2006 12:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Outlook and Access Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: "If an email comes in with a 6 digit (alphanumeric) code in the Subject line, Outlook would make a call to Access, passing along the code and then delete the email. No code, email automatically deleted. The call to access would cause the code to be looked up and a status report emailed to the client if the code is current. " I suppose the receipt of any email would have to trigger this hunk of code. I've put a lot of code behind Excel sheets to push data into an Access database but never from Outlook. Does anyone know of any code samples, snips, explanations, etc. that could get me started on this? 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 May 11 11:34:26 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 11 May 2006 09:34:26 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <4462C9DE.3090303@san.rr.com> References: <4462C9DE.3090303@san.rr.com> Message-ID: <44636792.2040100@shaw.ca> Here is a Sue Mosher's Outlook VBA code site It is sister site to http://www.slipstick.com which is more directed to user solutions and addons for Exchange and Outlook http://www.outlookcode.com This might be a starting point http://www.outlookcode.com/d/taskform.htm send reminders by email Rocky Smolin - Beach Access Software wrote: >Dear list: > >I have a request from a client to program something in Outlook but I >have no idea where to start. Quote: > >"If an email comes in with a 6 digit (alphanumeric) code in the Subject >line, Outlook would make a call to Access, passing along the code and >then delete the email. No code, email automatically deleted. The call >to access would cause the code to be looked up and a status report >emailed to the client if the code is current. " > >I suppose the receipt of any email would have to trigger this hunk of >code. > >I've put a lot of code behind Excel sheets to push data into an Access >database but never from Outlook. Does anyone know of any code samples, >snips, explanations, etc. that could get me started on this? > >MTIA, > >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 Thu May 11 11:45:01 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 09:45:01 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <44636792.2040100@shaw.ca> References: <4462C9DE.3090303@san.rr.com> <44636792.2040100@shaw.ca> Message-ID: <44636A0D.40904@san.rr.com> Thanks. Looks like a good resource. Rocky MartyConnelly wrote: > Here is a Sue Mosher's Outlook VBA code site > It is sister site to http://www.slipstick.com > which is more directed to user solutions and addons for Exchange and Outlook > > http://www.outlookcode.com > > This might be a starting point > http://www.outlookcode.com/d/taskform.htm send reminders by email > > Rocky Smolin - Beach Access Software wrote: > > >> Dear list: >> >> I have a request from a client to program something in Outlook but I >> have no idea where to start. Quote: >> >> "If an email comes in with a 6 digit (alphanumeric) code in the Subject >> line, Outlook would make a call to Access, passing along the code and >> then delete the email. No code, email automatically deleted. The call >> to access would cause the code to be looked up and a status report >> emailed to the client if the code is current. " >> >> I suppose the receipt of any email would have to trigger this hunk of >> code. >> >> I've put a lot of code behind Excel sheets to push data into an Access >> database but never from Outlook. Does anyone know of any code samples, >> snips, explanations, etc. that could get me started on this? >> >> 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 adtp at hotmail.com Thu May 11 12:52:16 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Thu, 11 May 2006 23:22:16 +0530 Subject: [AccessD] Top values query problem References: Message-ID: Chester, Sample subroutine given below should get you exceptionally fast results. T_Result is the target table to which top 6 results for each value of PT_Well get appended. Could you please try it out on your large size data set and confirm ? A.D.Tejpal --------------- Code in Click event of command button on Main form (SF_ResultSub is the name of control on main form acting as container for the subform fed by table T_Result) ============================================= Private Sub CmdResult_Click() Dim db As DAO.Database Dim rst As DAO.Recordset Dim Qst As String, PtWell As String Qst = "SELECT DISTINCT PT_Well " & _ "FROM dbo_Prod_Tests ORDER BY PT_Well;" Set db = CurrentDb Set rst = db.OpenRecordset(Qst) ' Clear table T_Result Qst = "Delete * From T_Result;" db.Execute Qst, dbFailOnError Do While Not rst.EOF ' Append Top 6 records pertaining to current value ' of PT_Wells, from main table into T_Result PtWell = rst.Fields("PT_Well") Qst = "INSERT INTO T_Result " & _ "(PT_Well, PT_Date, PT_Status) " & _ "SELECT Q1.PT_Well, Q1.PT_Date, " & _ "Q1.PT_Status FROM [SELECT TOP 6 " & _ "PT_Well, PT_Date, PT_Status " & _ "FROM dbo_Prod_Tests " & _ "WHERE PT_Well = '" & PtWell & "' " & _ "ORDER BY PT_Well, PT_Date DESC]. AS Q1;" db.Execute Qst, dbFailOnError rst.MoveNext Loop Me.SF_ResultSub.Requery rst.Close Set rst = Nothing Set db = Nothing End Sub ============================================= ----- Original Message ----- From: Kaup, Chester To: Access Developers discussion and problem solving Sent: Thursday, May 11, 2006 17:41 Subject: Re: [AccessD] Top values query problem Thanks. That is what I am going to do. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, May 11, 2006 6:07 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester You could sort on Well and Date in a recordset you open in VBA. Then loop through this writing the first six records for each Well to a new (temp) table. That should run pretty fast. /gustav >>> Chester_Kaup at kindermorgan.com 10-05-2006 23:28 >>> Got around to trying this and had to make 2 changes. PT_Well and PT_Status were already strings so I removed the Str function. Query runs fine for a few records. The table I am working against has ~500,000 records. I gave up letting it run it was taking so long. Am I missing something or is there a better way to do this such as VBA? My query SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE PT_Well & "x" & Str(PT_Date) & "x" & PT_Status IN (SELECT TOP 6 T.PT_Well & "x" & Str(T.PT_Date) & "x" & T.PT_Status FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, May 10, 2006 4:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester Something like this where you use a pseudo key if you don't have a unique key: SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE Str(PT_Well) & "x" & Str(PT_Date) & "x" & Str(PT_Status) IN (SELECT TOP 6 Str(T.PT_Well) & "x" & Str(T.PT_Date) & "x" & Str(T.PT_Status) FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; This assumes you have only one record for each Well/Date. /gustav >>> Chester_Kaup at kindermorgan.com 09-05-2006 23:34 >>> When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; From adtp at hotmail.com Thu May 11 13:00:55 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Thu, 11 May 2006 23:30:55 +0530 Subject: [AccessD] A2003:Syntax for NEXT on a subform called from main form References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> Message-ID: Darren, You can use the following syntax : Me.SF_Sub.Form.Recordset.MoveNext (SF_Sub is the name of control on the main form, serving as container for the subform). This does not require prior setting of focus on the subform. A.D.Tejpal --------------- ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Thursday, May 11, 2006 19:24 Subject: [AccessD] A2003:Syntax for NEXT on a subform called from main form Hi All I have a mainform that has a sub form. I want the sub form to go to its next record when I push the Next button on the main form Anyone know what the syntax is? many thanks Darren From John.Clark at niagaracounty.com Thu May 11 13:21:36 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 11 May 2006 14:21:36 -0400 Subject: [AccessD] Splitting up names In-Reply-To: References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> Message-ID: <44634870.167F.006B.0@niagaracounty.com> If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing From bchacc at san.rr.com Thu May 11 13:36:32 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 11:36:32 -0700 Subject: [AccessD] Splitting up names In-Reply-To: <44634870.167F.006B.0@niagaracounty.com> References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> <44634870.167F.006B.0@niagaracounty.com> Message-ID: <44638430.20105@san.rr.com> Look for the first space (intI = instr(1,strName," ")), then take the left and right parts based on the value of intI? Rocky John Clark wrote: > If got a user running a db in Access. She has a list of names and they > were all input into a single "name" field, rather than "last name" & > "first name." She would now like to split these names up, but there are > some double first names, as well as "jr" and "sr" suffixes. > > Is there a way to do this? > > Basically names might be like this: > > JOHN SMITH JR > MARY ELLEN SMITH > BARBARA SMITH > > And I'd need to get them like this into a first name field like: > > JOHN > MARY ELLEN > BARBARA > > and a last name field like: > > SMITH JR > SMITH > SMITH > > John W. Clark > Computer Programmer > Niagara County > Central Data Processing > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From DElam at jenkens.com Thu May 11 13:38:04 2006 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 11 May 2006 13:38:04 -0500 Subject: [AccessD] Splitting up names Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0492D651@natexch.jenkens.com> Hmm, there are a few things you might be able to pick out reliably like common prefixes and suffixes (Jr.), but the bulk will probably be best handled with a splitting fields on the spaces with manual cross checking. Data like the following make it impossible to tell which field that middle name belongs in. MARY ELLEN SMITH JOHN VAN HORN Debbie -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, May 11, 2006 1:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From reuben at gfconsultants.com Thu May 11 14:03:55 2006 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 11 May 2006 15:03:55 -0400 Subject: [AccessD] Splitting up names In-Reply-To: <44634870.167F.006B.0@niagaracounty.com> Message-ID: How many records are there? I had a system that I needed to split addresses. Sometimes they even had an institution with them so I had to account for that as well. I had someone here do it somewhat manually. I created a form that showed the full text and had a field for every resulting piece. They would enter the complete text, insert a $ where the split should be, hit tab, and the data was split accordingly and the proper pieces went to the appropriate field. Then focus was set to the second field and the same thing happened. This allowed the splits to happen very quickly while also being confirmed by a person. I could have also had the user just enter my chosen delimiter ($) several times in one string and split it all in one step. The person that did this fixed about 2,000 address in 5-6 hours. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Clark > Sent: Thursday, May 11, 2006 2:22 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Splitting up names > > > If got a user running a db in Access. She has a list of names and they > were all input into a single "name" field, rather than "last name" & > "first name." She would now like to split these names up, but there are > some double first names, as well as "jr" and "sr" suffixes. > > Is there a way to do this? > > Basically names might be like this: > > JOHN SMITH JR > MARY ELLEN SMITH > BARBARA SMITH > > And I'd need to get them like this into a first name field like: > > JOHN > MARY ELLEN > BARBARA > > and a last name field like: > > SMITH JR > SMITH > SMITH > > John W. Clark > Computer Programmer > Niagara County > Central Data Processing > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tom.p at piedpiper.com.au Thu May 11 14:31:59 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Fri, 12 May 2006 03:31:59 +0800 Subject: [AccessD] Outlook and Access References: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> Message-ID: <005401c67531$927b4fc0$2900a8c0@TOMNEW> Rocky... Why involve Outlook? There are command line email clients that will check email on a time scale you specify that will save the individual emails to a folder ....you could then have an Access Database poll that directory for subject line codes and import what it deems important and delete any that are not. In turn Access could then reply to the emails with a certain code. The client could be set to NOT delete emails from the server when certain criteria were met. That way the email would come in to Outlook as per normal. I had something similar a few years ago for orders. Where it failed (for me) was I couldnt get a CONSISTENT subject line in the incoming email . I used http://www.infradig.com/postiex/index.shtml Regards Tom Keatley > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and > then delete the email. No code, email automatically deleted. The call > to access would cause the code to be looked up and a status report > emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > MTIA, > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com From Jdemarco at hudsonhealthplan.org Thu May 11 14:43:19 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 11 May 2006 15:43:19 -0400 Subject: [AccessD] Splitting up names Message-ID: <08F823FD83787D4BA0B99CA580AD3C74037178A4@TTNEXCHCL2.hshhp.com> John, I've got a module that does just that including middle initial and pedigree. Let me know if you want it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, May 11, 2006 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu May 11 14:51:24 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 11 May 2006 12:51:24 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <005401c67531$927b4fc0$2900a8c0@TOMNEW> References: <08F823FD83787D4BA0B99CA580AD3C74037177C5@TTNEXCHCL2.hshhp.com> <005401c67531$927b4fc0$2900a8c0@TOMNEW> Message-ID: <446395BC.4070800@san.rr.com> Tom: Thanks. Sounds like a good alternative. I'll forward to the client. Best, Rocky Tom Keatley wrote: > Rocky... > > Why involve Outlook? > > There are command line email clients that will check email on a time scale > you specify that will save the individual emails to a folder ....you could > then have an Access Database poll that directory for subject line codes and > import what it deems important and delete any that are not. > > In turn Access could then reply to the emails with a certain code. > > The client could be set to NOT delete emails from the server when certain > criteria were met. That way the email would come in to Outlook as per > normal. > > I had something similar a few years ago for orders. Where it failed (for me) > was I couldnt get a CONSISTENT subject line in the incoming email . I used > http://www.infradig.com/postiex/index.shtml > > Regards > > Tom Keatley > > > >> Dear list: >> >> I have a request from a client to program something in Outlook but I >> have no idea where to start. Quote: >> >> "If an email comes in with a 6 digit (alphanumeric) code in the Subject >> line, Outlook would make a call to Access, passing along the code and >> then delete the email. No code, email automatically deleted. The call >> to access would cause the code to be looked up and a status report >> emailed to the client if the code is current. " >> >> I suppose the receipt of any email would have to trigger this hunk of >> code. >> >> I've put a lot of code behind Excel sheets to push data into an Access >> database but never from Outlook. Does anyone know of any code samples, >> snips, explanations, etc. that could get me started on this? >> >> 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 Jdemarco at hudsonhealthplan.org Thu May 11 14:54:09 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 11 May 2006 15:54:09 -0400 Subject: [AccessD] Splitting up names Message-ID: <08F823FD83787D4BA0B99CA580AD3C74037178AB@TTNEXCHCL2.hshhp.com> Apologies. That code is not to be found at the moment. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Thursday, May 11, 2006 3:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Splitting up names John, I've got a module that does just that including middle initial and pedigree. Let me know if you want it. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Thursday, May 11, 2006 2:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu May 11 16:01:11 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 11 May 2006 16:01:11 -0500 Subject: [AccessD] Splitting up names Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B20A0@main2.marlow.com> The Split() function will split them into a string array, however, the JR and two name first names are going to be an issue. I would create a list of known suffixes, and then create a suffix field. Whatever you do is going to probably require a human to 'review' the results. Drew -----Original Message----- From: John Clark [mailto:John.Clark at niagaracounty.com] Sent: Thursday, May 11, 2006 1:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Thu May 11 16:13:43 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 11 May 2006 16:13:43 -0500 Subject: [AccessD] Top values query problem Message-ID: Against an SQL server table with the wells and the date sorted ascending 461,569 records run time was 23.6094 seconds. Against a native Access table with the wells sorted ascending and date sorted descending run time was 11.7656 seconds. The only problem I found was dates did not sort ascending. I see any reason why. Thanks for the code. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Thursday, May 11, 2006 12:52 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] Top values query problem Chester, Sample subroutine given below should get you exceptionally fast results. T_Result is the target table to which top 6 results for each value of PT_Well get appended. Could you please try it out on your large size data set and confirm ? A.D.Tejpal --------------- Code in Click event of command button on Main form (SF_ResultSub is the name of control on main form acting as container for the subform fed by table T_Result) ============================================= Private Sub CmdResult_Click() Dim db As DAO.Database Dim rst As DAO.Recordset Dim Qst As String, PtWell As String Qst = "SELECT DISTINCT PT_Well " & _ "FROM dbo_Prod_Tests ORDER BY PT_Well;" Set db = CurrentDb Set rst = db.OpenRecordset(Qst) ' Clear table T_Result Qst = "Delete * From T_Result;" db.Execute Qst, dbFailOnError Do While Not rst.EOF ' Append Top 6 records pertaining to current value ' of PT_Wells, from main table into T_Result PtWell = rst.Fields("PT_Well") Qst = "INSERT INTO T_Result " & _ "(PT_Well, PT_Date, PT_Status) " & _ "SELECT Q1.PT_Well, Q1.PT_Date, " & _ "Q1.PT_Status FROM [SELECT TOP 6 " & _ "PT_Well, PT_Date, PT_Status " & _ "FROM dbo_Prod_Tests " & _ "WHERE PT_Well = '" & PtWell & "' " & _ "ORDER BY PT_Well, PT_Date DESC]. AS Q1;" db.Execute Qst, dbFailOnError rst.MoveNext Loop Me.SF_ResultSub.Requery rst.Close Set rst = Nothing Set db = Nothing End Sub ============================================= ----- Original Message ----- From: Kaup, Chester To: Access Developers discussion and problem solving Sent: Thursday, May 11, 2006 17:41 Subject: Re: [AccessD] Top values query problem Thanks. That is what I am going to do. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, May 11, 2006 6:07 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester You could sort on Well and Date in a recordset you open in VBA. Then loop through this writing the first six records for each Well to a new (temp) table. That should run pretty fast. /gustav >>> Chester_Kaup at kindermorgan.com 10-05-2006 23:28 >>> Got around to trying this and had to make 2 changes. PT_Well and PT_Status were already strings so I removed the Str function. Query runs fine for a few records. The table I am working against has ~500,000 records. I gave up letting it run it was taking so long. Am I missing something or is there a better way to do this such as VBA? My query SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE PT_Well & "x" & Str(PT_Date) & "x" & PT_Status IN (SELECT TOP 6 T.PT_Well & "x" & Str(T.PT_Date) & "x" & T.PT_Status FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, May 10, 2006 4:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Top values query problem Hi Chester Something like this where you use a pseudo key if you don't have a unique key: SELECT PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests WHERE Str(PT_Well) & "x" & Str(PT_Date) & "x" & Str(PT_Status) IN (SELECT TOP 6 Str(T.PT_Well) & "x" & Str(T.PT_Date) & "x" & Str(T.PT_Status) FROM dbo_Prod_Tests As T WHERE dbo_Prod_Tests.PT_Well = T.PT_Well ORDER BY T.PT_Well, T.PT_Date DESC;) ORDER BY PT_Well, PT_Date DESC; This assumes you have only one record for each Well/Date. /gustav >>> Chester_Kaup at kindermorgan.com 09-05-2006 23:34 >>> When I run the following query I get the top 6 values for only the first PT_Well which makes sense the way the query grid makes the query. How do I change the query to get the top 6 for each PT_Well? Thanks. SELECT TOP 6 PT_Well, PT_Date, PT_Status FROM dbo_Prod_Tests GROUP BY PT_Well, PT_Date, PT_Status ORDER BY PT_Well, PT_Date DESC; -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu May 11 16:13:57 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 11 May 2006 14:13:57 -0700 Subject: [AccessD] Splitting up names In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B8B20A0@main2.marlow.com> References: <17724746D360394AA3BFE5B8D40A9C1B8B20A0@main2.marlow.com> Message-ID: <4463A915.2000506@shaw.ca> http://www.helenfeddema.com/access.htm Parsing Name and Address Data -- The Utilities accarch83.zip This might be helpful. There are companies that do address cleaning for $0.05 to $0.10 each DWUTKA at marlow.com wrote: >The Split() function will split them into a string array, however, the JR >and two name first names are going to be an issue. I would create a list of >known suffixes, and then create a suffix field. Whatever you do is going to >probably require a human to 'review' the results. > >Drew > >-----Original Message----- >From: John Clark [mailto:John.Clark at niagaracounty.com] >Sent: Thursday, May 11, 2006 1:22 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Splitting up names > >If got a user running a db in Access. She has a list of names and they >were all input into a single "name" field, rather than "last name" & >"first name." She would now like to split these names up, but there are >some double first names, as well as "jr" and "sr" suffixes. > >Is there a way to do this? > >Basically names might be like this: > >JOHN SMITH JR >MARY ELLEN SMITH >BARBARA SMITH > >And I'd need to get them like this into a first name field like: > >JOHN >MARY ELLEN >BARBARA > >and a last name field like: > >SMITH JR >SMITH >SMITH > >John W. Clark >Computer Programmer >Niagara County >Central Data Processing > > > -- Marty Connelly Victoria, B.C. Canada From harkinsss at bellsouth.net Thu May 11 17:01:41 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Thu, 11 May 2006 18:01:41 -0400 Subject: [AccessD] Splitting up names In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B8B20A0@main2.marlow.com> Message-ID: <000901c67546$7d038120$aeb3d6d1@SUSANONE> I was thinking the same thing Drew -- you can automate the split, but with inconsistent values to start with, there's no substitute for the human review to clean up the few that just don't fit. You might could even flag the ones that seem inconsistent to help out a bit. Susan H. The Split() function will split them into a string array, however, the JR and two name first names are going to be an issue. I would create a list of known suffixes, and then create a suffix field. Whatever you do is going to probably require a human to 'review' the results. From darrend at nimble.com.au Thu May 11 17:12:23 2006 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 12 May 2006 08:12:23 +1000 Subject: [AccessD] A2003:Syntax for NEXT on a subform called from mainform In-Reply-To: Message-ID: <20060511221225.MKKI4761.omta01ps.mx.bigpond.com@DENZILLAP> Brilliant AD You've been my 'lifesaver' these last 2 days Many many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Friday, 12 May 2006 4:01 AM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] A2003:Syntax for NEXT on a subform called from mainform Darren, You can use the following syntax : Me.SF_Sub.Form.Recordset.MoveNext (SF_Sub is the name of control on the main form, serving as container for the subform). This does not require prior setting of focus on the subform. A.D.Tejpal --------------- ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Thursday, May 11, 2006 19:24 Subject: [AccessD] A2003:Syntax for NEXT on a subform called from main form Hi All I have a mainform that has a sub form. I want the sub form to go to its next record when I push the Next button on the main form Anyone know what the syntax is? many thanks Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu May 11 17:33:18 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 11 May 2006 17:33:18 -0500 Subject: [AccessD] Splitting up names Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDB2D@main2.marlow.com> Sure, create a name count field, so anything that isn't 2 goes at the top... Drew -----Original Message----- From: Susan Harkins [mailto:harkinsss at bellsouth.net] Sent: Thursday, May 11, 2006 5:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Splitting up names I was thinking the same thing Drew -- you can automate the split, but with inconsistent values to start with, there's no substitute for the human review to clean up the few that just don't fit. You might could even flag the ones that seem inconsistent to help out a bit. Susan H. The Split() function will split them into a string array, however, the JR and two name first names are going to be an issue. I would create a list of known suffixes, and then create a suffix field. Whatever you do is going to probably require a human to 'review' the results. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu May 11 18:08:48 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 11 May 2006 16:08:48 -0700 Subject: [AccessD] Splitting up names In-Reply-To: <000901c67546$7d038120$aeb3d6d1@SUSANONE> Message-ID: What I used to do about this what use split to break the names up, then dim a dynamic array with 5 dimensions that I used to hold Salutation, FirstName, MiddleName, LastName, Title. I examined the last item in the split array and if it was Jr, Sr, III, PhD, DDS, etc. and if so put it into the dynamic(4). Then I looked at the first item in the split to see if it was a salutation like Mr, Mrs, Dr, etc. and if so, I put it into dynamic(0). If there was no salutation or title, the first word (or the first after the salutation) went into firstname and the last went into lastname, with anything left over going into middlename. That was handled by code--then I reviewed it all and made manual corrections. I was working with huge mailing lists at the time, so anything that reduced the need to manually split 50,000+ names was a huge benefit. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, May 11, 2006 3:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Splitting up names I was thinking the same thing Drew -- you can automate the split, but with inconsistent values to start with, there's no substitute for the human review to clean up the few that just don't fit. You might could even flag the ones that seem inconsistent to help out a bit. Susan H. The Split() function will split them into a string array, however, the JR and two name first names are going to be an issue. I would create a list of known suffixes, and then create a suffix field. Whatever you do is going to probably require a human to 'review' the results. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Fri May 12 00:01:02 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Fri, 12 May 2006 10:31:02 +0530 Subject: [AccessD] Splitting up names References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> <44634870.167F.006B.0@niagaracounty.com> Message-ID: John, Functions Fn_FirstName() & Fn_LastName() as given below, should get you the desired results as per pattern indicated by you.. Just make sure that the string variable named SuffixList in Fn_FirstName() includes all the likely suffixes. Could you please try it out and let me know whether any further fine tuning is needed. Best wishes, A.D.Tejpal ---------------- =========================================== Function Fn_FirstName(ByVal FullName As _ String) As String ' Returns First Name Dim Txt As String, Cnt As Long Dim SuffixList As String, Rtv As Variant SuffixList = "Sr-Jr-Dr-Esq-Rev-Hon-Sir-Lord" Txt = FullName Rtv = Split(SuffixList, "-") For Cnt = 0 To UBound(Rtv) Txt = Trim(Replace(Txt, " " & Rtv(Cnt), "")) Next Fn_FirstName = Trim(Left(Txt, InStrRev(Txt, " ") - 1)) End Function ------------------------------------------------------------------------------ Function Fn_LastName(ByVal FullName As _ String) As String ' Returns Last Name Dim Txt As String Txt = Fn_FirstName(FullName) Fn_LastName = Trim(Mid(FullName, Len(Txt) + 1)) End Function =========================================== ----- Original Message ----- From: John Clark To: accessd at databaseadvisors.com Sent: Thursday, May 11, 2006 23:51 Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing From kp at sdsonline.net Fri May 12 02:41:45 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Fri, 12 May 2006 17:41:45 +1000 Subject: [AccessD] Outlook and Access References: <4462C9DE.3090303@san.rr.com> Message-ID: <00b401c67597$86b099f0$6601a8c0@office> Rocky - I had a similiar requirement once and I used the following logic. 1. I made a subfolder of Inbox in Outlook and in my case called it 'Customer Inquiries'. 2. Create a mail rule in Outlook which checks for the 6 digit code you are looking for and puts it into the subfolder you created in step 1. 3. The code I have pasted below comes from an app of mine which then uses an on-click event to read messages into a table in Access called TblOutlookMail from the Customer Inquiries folder in Outlook. Hope this help - cheers -------------------------------------------------------------------------------- Public Function ProcessMailMessagesInFolder() 'Adapted by K Pelletti from code from Helen Feddema 3-28-2002 Dim strerrormsg As String On Error GoTo Err_Handler Dim appOutlook As New Outlook.Application Dim nms As Outlook.NameSpace Dim fld As Outlook.MAPIFolder Dim myfld As Outlook.MAPIFolder Dim itm As Object Dim msg As Outlook.MailItem Dim strMessage As String Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim strsql As String Dim prj As Object Dim lngItemCount As Long Dim IntFolderNo As Integer Dim IntTotalNoFoldersInInbox As Integer Dim IntNoMailItems As Integer Dim BoolFolderFound As Boolean BoolFolderFound = False Set nms = appOutlook.GetNamespace("MAPI") Set fld = nms.GetDefaultFolder(olFolderInbox) IntFolderNo = 0 IntTotalNoFoldersInInbox = 0 IntNoMailItems = 0 IntTotalNoFoldersInInbox = fld.Folders.Count ' MsgBox ("Inbox has: " & fld.Folders.Count & "subfolders.") Do Until IntFolderNo = IntTotalNoFoldersInInbox ' Inner loop. IntFolderNo = IntFolderNo + 1 Set myfld = fld.Folders(IntFolderNo) If myfld.Name = "Customer Inquiries" Then 'Rocky - put your subfolder Outlook name here BoolFolderFound = True IntNoMailItems = myfld.Items.Count ' MsgBox ("No messages is: " & IntNoMailItems) Exit Do End If Loop If BoolFolderFound = False Then MsgBox ("Unable to find the Customer Inquiries Folder in Outlook." & vbCrLf & vbCrLf & "(The folder should be a subfolder of inbox.)"), , "Hudsons Database" GoTo Normal_exit End If If myfld Is Nothing Then GoTo Err_Handler End If Debug.Print "Folder default item type: " & myfld.DefaultItemType If myfld.DefaultItemType <> olMailItem Then MsgBox "Folder does not contain mail messages; Exiting", , "Importing Mail" GoTo Normal_exit End If lngItemCount = myfld.Items.Count ' Debug.Print "Number of messages in folder: " _ ' & lngItemCount If lngItemCount = 0 Then MsgBox ("There are no mail messages in the Customer Inquiries folder."), , "Hudsons Database" GoTo Normal_exit End If 'Process items in selected folder strsql = "DELETE * FROM tblOutlookMail" DoCmd.SetWarnings False DoCmd.RunSQL strsql Set dbs = CurrentDb Set rst = dbs.OpenRecordset("tblOutlookMail") For Each itm In myfld.Items If itm.Class = olMail Then Set msg = itm With rst .AddNew !Subject = msg.Subject !Body = msg.Body !CC = msg.CC !BCC = msg.BCC !Sent = msg.SentOn !FromName = msg.SenderName .Update End With End If Next itm rst.Close Set prj = Application.CurrentProject If prj.AllForms("frmOutlookMail").IsLoaded = True Then Forms("frmOutlookMail").Requery Else DoCmd.OpenForm "frmOutlookMail", , , , , acDialog End If 'Forms("frmOutlookMail").SetFocus Normal_exit: ' MsgBox ("No of new mail messages: " & IntNoMailItems), , "Mail Import" Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" hCursor = CursorID RetVal = SetCursor(hCursor) Resume Normal_exit End Function -------------------------------------------------------------------------------- Kath Pelletti ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, May 11, 2006 3:21 PM Subject: [AccessD] Outlook and Access Dear list: I have a request from a client to program something in Outlook but I have no idea where to start. Quote: "If an email comes in with a 6 digit (alphanumeric) code in the Subject line, Outlook would make a call to Access, passing along the code and then delete the email. No code, email automatically deleted. The call to access would cause the code to be looked up and a status report emailed to the client if the code is current. " I suppose the receipt of any email would have to trigger this hunk of code. I've put a lot of code behind Excel sheets to push data into an Access database but never from Outlook. Does anyone know of any code samples, snips, explanations, etc. that could get me started on this? 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Fri May 12 07:24:58 2006 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Fri, 12 May 2006 08:24:58 -0400 Subject: [AccessD] Trimmean Function in Excel - How to in Access In-Reply-To: Message-ID: Hi Mark, I did implement the changes that I needed yesterday. I had to modify the code to drop the zero values from the dataset before they went into the function to use the trimmean that you created. I was able to do so. Thank you so much for your help in this. It seemed like such a simple thing to do, but it turned out to be a little more complicated than I originally thought it would be. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business From bchacc at san.rr.com Fri May 12 08:18:37 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 12 May 2006 06:18:37 -0700 Subject: [AccessD] Outlook and Access In-Reply-To: <00b401c67597$86b099f0$6601a8c0@office> References: <4462C9DE.3090303@san.rr.com> <00b401c67597$86b099f0$6601a8c0@office> Message-ID: <44648B2D.6070501@san.rr.com> Kath: Thanks for the code. If he can compromise by having Access look at Outlook instead of having Outlook push stuff into Access this looks like it will do the job. He could even put it into a timer event and check every five minutes instead of an on-click. Best, Rocky Kath Pelletti wrote: > Rocky - I had a similiar requirement once and I used the following logic. > > 1. I made a subfolder of Inbox in Outlook and in my case called it 'Customer Inquiries'. > > 2. Create a mail rule in Outlook which checks for the 6 digit code you are looking for and puts it into the subfolder you created in step 1. > > 3. The code I have pasted below comes from an app of mine which then uses an on-click event to read messages into a table in Access called TblOutlookMail from the Customer Inquiries folder in Outlook. > > Hope this help - cheers > > -------------------------------------------------------------------------------- > > Public Function ProcessMailMessagesInFolder() > 'Adapted by K Pelletti from code from Helen Feddema 3-28-2002 > Dim strerrormsg As String > On Error GoTo Err_Handler > > Dim appOutlook As New Outlook.Application > > Dim nms As Outlook.NameSpace > Dim fld As Outlook.MAPIFolder > Dim myfld As Outlook.MAPIFolder > > Dim itm As Object > Dim msg As Outlook.MailItem > Dim strMessage As String > Dim dbs As DAO.Database > Dim rst As DAO.Recordset > Dim strsql As String > Dim prj As Object > Dim lngItemCount As Long > Dim IntFolderNo As Integer > Dim IntTotalNoFoldersInInbox As Integer > Dim IntNoMailItems As Integer > Dim BoolFolderFound As Boolean > BoolFolderFound = False > > Set nms = appOutlook.GetNamespace("MAPI") > Set fld = nms.GetDefaultFolder(olFolderInbox) > IntFolderNo = 0 > IntTotalNoFoldersInInbox = 0 > IntNoMailItems = 0 > IntTotalNoFoldersInInbox = fld.Folders.Count > ' MsgBox ("Inbox has: " & fld.Folders.Count & "subfolders.") > > Do Until IntFolderNo = IntTotalNoFoldersInInbox ' Inner loop. > IntFolderNo = IntFolderNo + 1 > Set myfld = fld.Folders(IntFolderNo) > If myfld.Name = "Customer Inquiries" Then 'Rocky - put your subfolder Outlook name here > BoolFolderFound = True > IntNoMailItems = myfld.Items.Count > ' MsgBox ("No messages is: " & IntNoMailItems) > Exit Do > End If > Loop > > If BoolFolderFound = False Then > MsgBox ("Unable to find the Customer Inquiries Folder in Outlook." & vbCrLf & vbCrLf & "(The folder should be a subfolder of inbox.)"), , "Hudsons Database" > GoTo Normal_exit > End If > > If myfld Is Nothing Then > GoTo Err_Handler > End If > > Debug.Print "Folder default item type: " & myfld.DefaultItemType > > If myfld.DefaultItemType <> olMailItem Then > MsgBox "Folder does not contain mail messages; Exiting", , "Importing Mail" > GoTo Normal_exit > End If > > lngItemCount = myfld.Items.Count > ' Debug.Print "Number of messages in folder: " _ > ' & lngItemCount > > If lngItemCount = 0 Then > MsgBox ("There are no mail messages in the Customer Inquiries folder."), , "Hudsons Database" > GoTo Normal_exit > End If > > 'Process items in selected folder > strsql = "DELETE * FROM tblOutlookMail" > DoCmd.SetWarnings False > DoCmd.RunSQL strsql > Set dbs = CurrentDb > Set rst = dbs.OpenRecordset("tblOutlookMail") > > For Each itm In myfld.Items > If itm.Class = olMail Then > Set msg = itm > With rst > .AddNew > !Subject = msg.Subject > !Body = msg.Body > !CC = msg.CC > !BCC = msg.BCC > !Sent = msg.SentOn > !FromName = msg.SenderName > .Update > End With > End If > Next itm > rst.Close > > Set prj = Application.CurrentProject > > If prj.AllForms("frmOutlookMail").IsLoaded = True Then > Forms("frmOutlookMail").Requery > Else > DoCmd.OpenForm "frmOutlookMail", , , , , acDialog > End If > > 'Forms("frmOutlookMail").SetFocus > > Normal_exit: > ' MsgBox ("No of new mail messages: " & IntNoMailItems), , "Mail Import" > Exit Function > Err_Handler: > MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" > hCursor = CursorID > RetVal = SetCursor(hCursor) > Resume Normal_exit > > End Function > > -------------------------------------------------------------------------------- > > Kath Pelletti > > ----- Original Message ----- > From: Rocky Smolin - Beach Access Software > To: Access Developers discussion and problem solving > Sent: Thursday, May 11, 2006 3:21 PM > Subject: [AccessD] Outlook and Access > > > Dear list: > > I have a request from a client to program something in Outlook but I > have no idea where to start. Quote: > > "If an email comes in with a 6 digit (alphanumeric) code in the Subject > line, Outlook would make a call to Access, passing along the code and > then delete the email. No code, email automatically deleted. The call > to access would cause the code to be looked up and a status report > emailed to the client if the code is current. " > > I suppose the receipt of any email would have to trigger this hunk of > code. > > I've put a lot of code behind Excel sheets to push data into an Access > database but never from Outlook. Does anyone know of any code samples, > snips, explanations, etc. that could get me started on this? > > 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 > > -- > 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 Jim.Hale at FleetPride.com Fri May 12 08:58:38 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 12 May 2006 08:58:38 -0500 Subject: [AccessD] Top values query problem Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC2E@corp-es01.fleetpride.com> I am really curious if the SQL solution I sent you is faster. Did you have an opportunity to try it? I always tend to use SQL solutions if they are available over code on the theory they are faster. This may just be programmer's lore however, so I am curious about this instance. Jim Hale -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Thursday, May 11, 2006 4:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Top values query problem Against an SQL server table with the wells and the date sorted ascending 461,569 records run time was 23.6094 seconds. Against a native Access table with the wells sorted ascending and date sorted descending run time was 11.7656 seconds. The only problem I found was dates did not sort ascending. I see any reason why. Thanks for the code. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Thursday, May 11, 2006 12:52 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] Top values query problem Chester, Sample subroutine given below should get you exceptionally fast results. T_Result is the target table to which top 6 results for each value of PT_Well get appended. Could you please try it out on your large size data set and confirm ? A.D.Tejpal --------------- Code in Click event of command button on Main form (SF_ResultSub is the name of control on main form acting as container for the subform fed by table T_Result) ============================================= Private Sub CmdResult_Click() Dim db As DAO.Database Dim rst As DAO.Recordset Dim Qst As String, PtWell As String Qst = "SELECT DISTINCT PT_Well " & _ "FROM dbo_Prod_Tests ORDER BY PT_Well;" Set db = CurrentDb Set rst = db.OpenRecordset(Qst) ' Clear table T_Result Qst = "Delete * From T_Result;" db.Execute Qst, dbFailOnError Do While Not rst.EOF ' Append Top 6 records pertaining to current value ' of PT_Wells, from main table into T_Result PtWell = rst.Fields("PT_Well") Qst = "INSERT INTO T_Result " & _ "(PT_Well, PT_Date, PT_Status) " & _ "SELECT Q1.PT_Well, Q1.PT_Date, " & _ "Q1.PT_Status FROM [SELECT TOP 6 " & _ "PT_Well, PT_Date, PT_Status " & _ "FROM dbo_Prod_Tests " & _ "WHERE PT_Well = '" & PtWell & "' " & _ "ORDER BY PT_Well, PT_Date DESC]. AS Q1;" db.Execute Qst, dbFailOnError rst.MoveNext Loop Me.SF_ResultSub.Requery rst.Close Set rst = Nothing Set db = Nothing End Sub ============================================= *********************************************************************** 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 May 12 09:00:05 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 12 May 2006 09:00:05 -0500 Subject: [AccessD] Outlook and Access Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC2F@corp-es01.fleetpride.com> Very nice. What datatype did you use for tblOutlookMail.body? Jim Hale -----Original Message----- From: Kath Pelletti [mailto:kp at sdsonline.net] Sent: Friday, May 12, 2006 2:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook and Access Rocky - I had a similiar requirement once and I used the following logic. 1. I made a subfolder of Inbox in Outlook and in my case called it 'Customer Inquiries'. 2. Create a mail rule in Outlook which checks for the 6 digit code you are looking for and puts it into the subfolder you created in step 1. 3. The code I have pasted below comes from an app of mine which then uses an on-click event to read messages into a table in Access called TblOutlookMail from the Customer Inquiries folder in Outlook. Hope this help - cheers *********************************************************************** 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 harkinsss at bellsouth.net Fri May 12 09:16:51 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Fri, 12 May 2006 10:16:51 -0400 Subject: [AccessD] Top values query problem In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC2E@corp-es01.fleetpride.com> Message-ID: <000001c675ce$b73c4150$8eb3d6d1@SUSANONE> I am really curious if the SQL solution I sent you is faster. Did you have an opportunity to try it? I always tend to use SQL solutions if they are available over code on the theory they are faster. This may just be programmer's lore however, so I am curious about this instance. ============Jim, since SQL speaks directly to the engine, I'm sure it's faster. You might not "see" the difference in performance, but it's bound to be faster. Susan H. From dgibso at uark.edu Fri May 12 10:30:33 2006 From: dgibso at uark.edu (David A. Gibson) Date: Fri, 12 May 2006 10:30:33 -0500 Subject: [AccessD] Control within a Control In-Reply-To: References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> <44634870.167F.006B.0@niagaracounty.com> Message-ID: <7.0.1.0.0.20060512100746.0191a910@uark.edu> A coworker has just presented a conundrum of sorts. He has been tasked to display data from a table within a combobox, no prob with that except some are checkboxes. User wants checkboxes displayed within the combobox and not Yes/No, True/False, or -1/0. How can a checkbox be displayed within a combobox? David G. From markamatte at hotmail.com Fri May 12 11:11:37 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 12 May 2006 16:11:37 +0000 Subject: [AccessD] Select Multiple records on form In-Reply-To: <7.0.1.0.0.20060512100746.0191a910@uark.edu> Message-ID: Hello All, I'm probably missing something simple here...but...I have a continuous form in A2K using a NON-updateable recordset. I would like the user to be able to select multiple records...and then click a button to do some other stuff. My issue is how to select multiple records on this form...I'm thinking some sort of conditional formatting...but not sure. Any ideas/suggestions/direction? Thanks, Mark A. Matte From Lambert.Heenan at AIG.com Fri May 12 11:14:34 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 12 May 2006 11:14:34 -0500 Subject: [AccessD] Control within a Control Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F2175A755@xlivmbx21.aig.com> A combo box is so-called because it is a combination of a textbox and a list. It is designed to accept textual input and nothing else. It might be possible to *display* a checkbox value by converting the true/false values to particular characters. For instance the Unicode Arial font has a square root symbol that could be used as a checkmark, and the same font has a 'white square' character that could represent an unchecked checkbox. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David A. Gibson Sent: Friday, May 12, 2006 11:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] Control within a Control A coworker has just presented a conundrum of sorts. He has been tasked to display data from a table within a combobox, no prob with that except some are checkboxes. User wants checkboxes displayed within the combobox and not Yes/No, True/False, or -1/0. How can a checkbox be displayed within a combobox? David G. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri May 12 11:28:29 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 12 May 2006 09:28:29 -0700 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: Hold down the Ctl key when selecting the records. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, May 12, 2006 9:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Select Multiple records on form Hello All, I'm probably missing something simple here...but...I have a continuous form in A2K using a NON-updateable recordset. I would like the user to be able to select multiple records...and then click a button to do some other stuff. My issue is how to select multiple records on this form...I'm thinking some sort of conditional formatting...but not sure. Any ideas/suggestions/direction? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri May 12 11:47:04 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 12 May 2006 16:47:04 +0000 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: That was the first thing I tried...not working...is there a setting or something that would prevent this from working? Thanks, Mark >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Select Multiple records on form >Date: Fri, 12 May 2006 09:28:29 -0700 > >Hold down the Ctl key when selecting the records. > > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Friday, May 12, 2006 9:12 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Select Multiple records on form > >Hello All, > >I'm probably missing something simple here...but...I have a continuous >form in A2K using a NON-updateable recordset. I would like the user to >be able to select multiple records...and then click a button to do some >other stuff. > >My issue is how to select multiple records on this form...I'm thinking >some sort of conditional formatting...but not sure. Any >ideas/suggestions/direction? > >Thanks, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Donald.A.McGillivray at sprint.com Fri May 12 12:19:00 2006 From: Donald.A.McGillivray at sprint.com (Mcgillivray, Don [IT]) Date: Fri, 12 May 2006 12:19:00 -0500 Subject: [AccessD] Select Multiple records on form Message-ID: Just guessing here, but maybe because it's a "NON-updateable" recordset. If it can't be modified, the ability to select may be disabled. HTH, Don From KIsmert at TexasSystems.com Fri May 12 12:31:34 2006 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Fri, 12 May 2006 12:31:34 -0500 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: Mark, Not possible using just Access. The user is free to select a range, but the instant they click on any other Access control, the range collapses to the last record touched. I have had success using the Toolbar from Microsoft Common Controls (mscomctl.ocx). When the user clicks on an ActiveX Toolbar button, Access doesn't see the click, and doesn't collapse the range. Your code can then process the range. -Ken -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Friday, May 12, 2006 11:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] Select Multiple records on form Hello All, I'm probably missing something simple here...but...I have a continuous form in A2K using a NON-updateable recordset. I would like the user to be able to select multiple records...and then click a button to do some other stuff. My issue is how to select multiple records on this form...I'm thinking some sort of conditional formatting...but not sure. Any ideas/suggestions/direction? Thanks, Mark A. Matte From KIsmert at TexasSystems.com Fri May 12 12:37:43 2006 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Fri, 12 May 2006 12:37:43 -0500 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: Mark, Show Record Selectors. The user can click and drag on the selectors. -Ken -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Friday, May 12, 2006 11:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Select Multiple records on form That was the first thing I tried...not working...is there a setting or something that would prevent this from working? Thanks, Mark From adtp at hotmail.com Fri May 12 13:39:27 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Sat, 13 May 2006 00:09:27 +0530 Subject: [AccessD] Select Multiple records on form References: Message-ID: Mark, On a continuous form, so long as record selectors are available, you can pick up the selection via form's click event and then apply dynamic conditional formatting so as to highlight only the records covered by current selection. Form's SelTop & SelHeight properties are handy in this context. Sample code as given below, will ensure that all records currently selected by the user get distinctly highlighted across the full row. Note - The performance of conditional formatting in Access 2003 is found to be better than that in Access 2000 (Access 2000 file format in both cases). Best wishes, A.D.Tejpal --------------- Code in module of continuous form (ID is the name of primary key field) ========================================= Private Sub Form_Click() P_SetFormat_A End Sub ---------------------------------------------------------------------------- Private Sub Form_Current() P_SetFormat_A End Sub ---------------------------------------------------------------------------- Private Function Fn_SelectedBlock(ByVal PkNumber _ As Long) As Long ' Returns 1 if the record with this PkNumber ' falls in selected block, otherwise 0 Dim rst As DAO.Recordset Dim RecNum As Long, InSelection As Long InSelection = 0 ' Default Set rst = Me.RecordsetClone rst.FindFirst "ID = " & PkNumber If Not rst.NoMatch Then RecNum = rst.AbsolutePosition + 1 If RecNum >= Me.SelTop And _ RecNum <= Me.SelTop + _ (Me.SelHeight - 1) Then InSelection = 1 End If End If Fn_SelectedBlock = InSelection rst.Close Set rst = Nothing End Function ---------------------------------------------------------------------------- Public Sub P_SetFormat_A() ' Sets fresh Conditional Formatting in Detail section Dim ct As Control For Each ct In Me.Detail.Controls P_SetFormat_B ct.Name Next Me.Repaint End Sub ---------------------------------------------------------------------------- Private Sub P_SetFormat_B(ByVal ControlName As String) ' Sets fresh Conditional Formatting ' (in text box named ControlName) Dim Cdn As String On Error Resume Next ' For controls not suited to ' conditional formatting With Me(ControlName).FormatConditions .Delete Cdn = "Fn_SelectedBlock(ID) <> 0" With .Add(acExpression, , Cdn) .BackColor = 16777164 .FontBold = True End With End With On Error GoTo 0 End Sub ========================================= ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Friday, May 12, 2006 21:41 Subject: [AccessD] Select Multiple records on form Hello All, I'm probably missing something simple here...but...I have a continuous form in A2K using a NON-updateable recordset. I would like the user to be able to select multiple records...and then click a button to do some other stuff. My issue is how to select multiple records on this form...I'm thinking some sort of conditional formatting...but not sure. Any ideas/suggestions/direction? Thanks, Mark A. Matte From mwp.reid at qub.ac.uk Fri May 12 13:50:17 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 12 May 2006 19:50:17 +0100 Subject: [AccessD] ADPs in Access 2007 - Update References: <445D24AC.10167.F57CEAD@stuart.lexacorp.com.pg> Message-ID: Update >From what I can see there are still some issues but the GUI tools will be available and usable with limits in an Access 2007 ADP. I apologise but NDA stops me detailing anything. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From markamatte at hotmail.com Fri May 12 15:13:02 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 12 May 2006 20:13:02 +0000 Subject: [AccessD] Select Multiple records on form Message-ID: A.D., Thank you very much for the code. It is acting strange...I think...If I click or navigate to a record...all other records are 'grayed' out...and the single row is highlighted for about 3 seconds...then the screen is back to normal. I think I'm in the right direction...I just need to select more than one(non-sequential), have them stay selected, and do something with the ones selected. Thanks, Mark >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] Select Multiple records on form >Date: Sat, 13 May 2006 00:09:27 +0530 > >Mark, > > On a continuous form, so long as record selectors are available, you >can pick up the selection via form's click event and then apply dynamic >conditional formatting so as to highlight only the records covered by >current selection. Form's SelTop & SelHeight properties are handy in this >context. > > Sample code as given below, will ensure that all records currently >selected by the user get distinctly highlighted across the full row. > > Note - The performance of conditional formatting in Access 2003 is >found to be better than that in Access 2000 (Access 2000 file format in >both cases). > >Best wishes, >A.D.Tejpal >--------------- > >Code in module of continuous form >(ID is the name of primary key field) >========================================= >Private Sub Form_Click() > P_SetFormat_A >End Sub >---------------------------------------------------------------------------- >Private Sub Form_Current() > P_SetFormat_A >End Sub >---------------------------------------------------------------------------- >Private Function Fn_SelectedBlock(ByVal PkNumber _ > As Long) As Long > ' Returns 1 if the record with this PkNumber > ' falls in selected block, otherwise 0 > Dim rst As DAO.Recordset > Dim RecNum As Long, InSelection As Long > > InSelection = 0 ' Default > Set rst = Me.RecordsetClone > rst.FindFirst "ID = " & PkNumber > If Not rst.NoMatch Then > RecNum = rst.AbsolutePosition + 1 > If RecNum >= Me.SelTop And _ > RecNum <= Me.SelTop + _ > (Me.SelHeight - 1) Then > InSelection = 1 > End If > End If > > Fn_SelectedBlock = InSelection > > rst.Close > Set rst = Nothing >End Function >---------------------------------------------------------------------------- >Public Sub P_SetFormat_A() > ' Sets fresh Conditional Formatting in Detail section > Dim ct As Control > > For Each ct In Me.Detail.Controls > P_SetFormat_B ct.Name > Next > > Me.Repaint >End Sub >---------------------------------------------------------------------------- >Private Sub P_SetFormat_B(ByVal ControlName As String) >' Sets fresh Conditional Formatting >' (in text box named ControlName) > Dim Cdn As String > > On Error Resume Next ' For controls not suited to > ' conditional formatting > With Me(ControlName).FormatConditions > .Delete > > Cdn = "Fn_SelectedBlock(ID) <> 0" > With .Add(acExpression, , Cdn) > .BackColor = 16777164 > .FontBold = True > End With > End With > On Error GoTo 0 >End Sub >========================================= > > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Friday, May 12, 2006 21:41 > Subject: [AccessD] Select Multiple records on form > > > Hello All, > > I'm probably missing something simple here...but...I have a continuous >form > in A2K using a NON-updateable recordset. I would like the user to be >able > to select multiple records...and then click a button to do some other >stuff. > > My issue is how to select multiple records on this form...I'm thinking >some > sort of conditional formatting...but not sure. Any > ideas/suggestions/direction? > > Thanks, > > Mark A. Matte >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From john at winhaven.net Fri May 12 17:31:32 2006 From: john at winhaven.net (John Bartow) Date: Fri, 12 May 2006 17:31:32 -0500 Subject: [AccessD] Control within a Control In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F2175A755@xlivmbx21.aig.com> Message-ID: <05d701c67613$d26a5d00$6502a8c0@ScuzzPaq> David, Beyond Lambert's suggestion I think the only solution would be to use an active X control from a third party. There are some out there that can present data in various formats and may be able to do what you need. I haven't used this but it looks as if the List Component of Solutions::PIM Professional will do this. Here's a web link: http://www.databasecreations.com/prod_solpim.htm HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, May 12, 2006 11:15 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Control within a Control A combo box is so-called because it is a combination of a textbox and a list. It is designed to accept textual input and nothing else. It might be possible to *display* a checkbox value by converting the true/false values to particular characters. For instance the Unicode Arial font has a square root symbol that could be used as a checkmark, and the same font has a 'white square' character that could represent an unchecked checkbox. Lambert From kp at sdsonline.net Fri May 12 19:27:24 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Sat, 13 May 2006 10:27:24 +1000 Subject: [AccessD] Outlook and Access References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC2F@corp-es01.fleetpride.com> Message-ID: <001001c67624$0255b770$6601a8c0@office> Jim - datatype is memo Kath ----- Original Message ----- From: Hale, Jim To: 'Access Developers discussion and problem solving' Sent: Saturday, May 13, 2006 12:00 AM Subject: Re: [AccessD] Outlook and Access Very nice. What datatype did you use for tblOutlookMail.body? Jim Hale -----Original Message----- From: Kath Pelletti [mailto:kp at sdsonline.net] Sent: Friday, May 12, 2006 2:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook and Access Rocky - I had a similiar requirement once and I used the following logic. 1. I made a subfolder of Inbox in Outlook and in my case called it 'Customer Inquiries'. 2. Create a mail rule in Outlook which checks for the 6 digit code you are looking for and puts it into the subfolder you created in step 1. 3. The code I have pasted below comes from an app of mine which then uses an on-click event to read messages into a table in Access called TblOutlookMail from the Customer Inquiries folder in Outlook. Hope this help - cheers *********************************************************************** 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 artful at rogers.com Sat May 13 04:55:53 2006 From: artful at rogers.com (Arthur Fuller) Date: Sat, 13 May 2006 05:55:53 -0400 (EDT) Subject: [AccessD] Multi value field contents In-Reply-To: Message-ID: <20060513095553.25354.qmail@web88206.mail.re2.yahoo.com> Assuming that every value has been hit at least once, what's wrong with "SELECT DISTINCT value INTO tableName"? Once you've got them, you can add an identity column, add an int column to the table, do a join and an update query to populate it, then drop the original column. Nothing to it. Or am I missing something? Arthur Martin Reid wrote: I am sorting this myself but was wondering what you think about this and any non obvious solutionsyou may have? I have a field containing value1; value2; value3 Breaks all notions of relational design. The table is a table project associated with many developers. In the Project Task Name Field the values are the developer names associated with the projects. Is it possible in code to Break out the developer names and populate a table properly. This is Access 2007 and SQL Server 2005. The data is in SQL Server 2005 You response may be reused but full credit will be given. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Sat 06/05/2006 01:46 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Enumerate SQL Servers You might have problems with SQLDMO on SQL 2005 as it has been supplanted with SQLSMO and you might have to use WMI, I haven't checked the differences. Martin Reid wrote: >Thanks James. > >Just did something similar for the actual database names which is step 2. Idea is combo 1 lists the servers, then combo 2 lists the databases on each server. > > > >Best Wishes > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of James Barash >Sent: Fri 05/05/2006 20:36 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Enumerate SQL Servers > > > >Martin: > >Here is a example which should work in Access. You will need to reference >the SQLDMO library to make it work. > > Dim oApp As SQLDMO.Application > Dim oNames As SQLDMO.NameList > Dim oName As Variant > > Set oApp = New SQLDMO.Application > Set oNames = oApp.ListAvailableSQLServers() > For Each oName In oNames > cboServers.AddItem oName > Next > >Hope it helps. > >James Barash > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Friday, May 05, 2006 3:05 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] Enumerate SQL Servers > > >Anyone got an example of populating a drop down list in Access with all >available SQL Servers? >I am building a new login procedure. > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >-- >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.392 / Virus Database: 268.5.5/333 - Release Date: 05/05/2006 > > -- 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 mwp.reid at qub.ac.uk Sat May 13 06:02:33 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 13 May 2006 12:02:33 +0100 Subject: [AccessD] Multi value field contents References: <20060513095553.25354.qmail@web88206.mail.re2.yahoo.com> Message-ID: Arthur In Access 2007 you can have a field that displays multi values. Its a new property for Lookups Allow MultipleValues. For example A Task has many developers associated with it. (Yeah I no but its an example) So in the Access window you can double click the field and Access opens a little floating window showing all the tasks. You select multiple tasks by clicking a check box. Works fine in Access. Under the covers the engine builds a fully relational model but you cant get at it yet via code. When you upsize this to SQL Server or SQL Server 2005, the field is upsized as text and the multi values are in the field as task1;task2;task3 Thus breaking relational design What I wanted to do was to recreate the true relational design via code to correct this in SQL Server. Now the REAL MS reason for this is to enable you to hook this up with SharePoint which does deal with this properly. As it also works with attachment data types. OH and there is good news re ADPs in SQL 2005 but I cant tell you HA I can send youa couple of scree shots of list if you would liek to see this effect. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Arthur Fuller Sent: Sat 13/05/2006 10:55 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Multi value field contents Assuming that every value has been hit at least once, what's wrong with "SELECT DISTINCT value INTO tableName"? Once you've got them, you can add an identity column, add an int column to the table, do a join and an update query to populate it, then drop the original column. Nothing to it. Or am I missing something? Arthur Martin Reid wrote: I am sorting this myself but was wondering what you think about this and any non obvious solutionsyou may have? I have a field containing value1; value2; value3 Breaks all notions of relational design. The table is a table project associated with many developers. In the Project Task Name Field the values are the developer names associated with the projects. Is it possible in code to Break out the developer names and populate a table properly. This is Access 2007 and SQL Server 2005. The data is in SQL Server 2005 You response may be reused but full credit will be given. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Sat 06/05/2006 01:46 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Enumerate SQL Servers You might have problems with SQLDMO on SQL 2005 as it has been supplanted with SQLSMO and you might have to use WMI, I haven't checked the differences. Martin Reid wrote: >Thanks James. > >Just did something similar for the actual database names which is step 2. Idea is combo 1 lists the servers, then combo 2 lists the databases on each server. > > > >Best Wishes > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of James Barash >Sent: Fri 05/05/2006 20:36 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Enumerate SQL Servers > > > >Martin: > >Here is a example which should work in Access. You will need to reference >the SQLDMO library to make it work. > > Dim oApp As SQLDMO.Application > Dim oNames As SQLDMO.NameList > Dim oName As Variant > > Set oApp = New SQLDMO.Application > Set oNames = oApp.ListAvailableSQLServers() > For Each oName In oNames > cboServers.AddItem oName > Next > >Hope it helps. > >James Barash > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Friday, May 05, 2006 3:05 PM >To: Access Developers discussion and problem solving >Subject: [AccessD] Enumerate SQL Servers > > >Anyone got an example of populating a drop down list in Access with all >available SQL Servers? >I am building a new login procedure. > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >-- >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.392 / Virus Database: 268.5.5/333 - Release Date: 05/05/2006 > > -- 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 -- 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 Sat May 13 16:49:28 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 13 May 2006 22:49:28 +0100 Subject: [AccessD] OT Reporting Services References: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC2F@corp-es01.fleetpride.com> <001001c67624$0255b770$6601a8c0@office> Message-ID: Anyone have any luck importing real reports into Reporting Services from Access. I dont mean Northwind, I mean real reports with VBA and stuff. Northwind is easy few fixes and they run. I tried it and got 2 working reports out of about 30 imported. The rest I reckon would dbe easier to actually do from scratch in the report designer. Must admid SQL Express 2005 Advanced with the free development toolkit is most impressive. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From harkinsss at bellsouth.net Sat May 13 18:15:07 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sat, 13 May 2006 19:15:07 -0400 Subject: [AccessD] OT Reporting Services In-Reply-To: Message-ID: <001601c676e3$13c9e4d0$bfb3d6d1@SUSANONE> When you say they're not working, what do you mean? How are they not working? What's their source? Susan H. Anyone have any luck importing real reports into Reporting Services from Access. I dont mean Northwind, I mean real reports with VBA and stuff. Northwind is easy few fixes and they run. From mwp.reid at qub.ac.uk Sun May 14 02:40:15 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 14 May 2006 08:40:15 +0100 Subject: [AccessD] OT Reporting Services Message-ID: <001f01c67729$ea6770e1$1b0e758f@ads.qub.ac.uk> Take northwind. Import reports few fixes and it easy. They all can work. Take a real report, vba events etc waste of time, Be just as quick to use reporting services to start again. Was wondering if anyone had got this work for real stuff. Just by importing. Reporting Services dosnt support events,linking sub reports etc of course it has it own way of dealing with this. Martin -----Original Message----- From: "Susan Harkins" Sent: 5/14/06 12:20:37 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] OT Reporting Services When you say they're not working, what do you mean? How are they not working? What's their source? Susan H. Anyone have any luck importing real reports into Reporting Services from Access. I dont mean Northwind, I mean real reports with VBA and stuff. Northwind is easy few fixes and they run. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From harkinsss at bellsouth.net Sun May 14 08:12:23 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Sun, 14 May 2006 09:12:23 -0400 Subject: [AccessD] OT Reporting Services In-Reply-To: <001f01c67729$ea6770e1$1b0e758f@ads.qub.ac.uk> Message-ID: <001d01c67758$0a8b8160$bfb3d6d1@SUSANONE> I haven't even looked at Reporting Services. That sure sounds like a mess though. :( I checked my copy of Mike's book and there's a huge chapter on Reporting Services, but no mention of problems importing existing reports -- just the instructions for how to do it. :( There's one warning blurb about RS not supporting many Access Report objects. Susan H. Take northwind. Import reports few fixes and it easy. They all can work. Take a real report, vba events etc waste of time, Be just as quick to use reporting services to start again. Was wondering if anyone had got this work for real stuff. Just by importing. Reporting Services dosnt support events,linking sub reports etc of course it has it own way of dealing with this. From mwp.reid at qub.ac.uk Sun May 14 08:33:20 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 14 May 2006 14:33:20 +0100 Subject: [AccessD] OT Reporting Services References: <001d01c67758$0a8b8160$bfb3d6d1@SUSANONE> Message-ID: Its a powerful and flexible tool no doubt and has many advantages. Lots of things are much the same just need to relearn a lot. Its also FREE with Express which is good. Almost every example uses Northwind which is easy to sort out. A real report is a totally different story particulary one that uses a lot of VBA etc. I was wondering if anyone had converted or managed to work with real reports in the environment. The impression I get is it would be as quick to start all over as fix up a complex report. Express itself is very impressive. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Susan Harkins Sent: Sun 14/05/2006 14:12 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT Reporting Services I haven't even looked at Reporting Services. That sure sounds like a mess though. :( I checked my copy of Mike's book and there's a huge chapter on Reporting Services, but no mention of problems importing existing reports -- just the instructions for how to do it. :( There's one warning blurb about RS not supporting many Access Report objects. Susan H. Take northwind. Import reports few fixes and it easy. They all can work. Take a real report, vba events etc waste of time, Be just as quick to use reporting services to start again. Was wondering if anyone had got this work for real stuff. Just by importing. Reporting Services dosnt support events,linking sub reports etc of course it has it own way of dealing with this. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Sun May 14 12:08:33 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 14 May 2006 12:08:33 -0500 Subject: [AccessD] Update Name Mapping for Name Autocorrect Message-ID: <000601c67779$084b7970$0200a8c0@danwaters> Hello to everyone, I like the concept of the Name Autocorrect option in Access, but everyone seems to say to stay away from it. I did a search in the Archive and learned about Name Mapping in Access. In the Archives you'll find an entry with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. This last half of this entry explains what name mapping is. So, to get name mapping up to date, I wrote the following procedure. It opens most objects in design view and then saves them. Now I can use Name Autocorrect as it was intended. Time will tell if it helps or hurts! If you want to give it a try, copy the following code into a standard module and run it. Good Luck! Dan ---------------------------------------------------------------------------- Option Compare Database Option Explicit Private Sub ResetObjectNameMaps() On Error GoTo EH '-- This procedure will open almost all of the tables, queries, forms, and reports in design view, and then close them _ with acSaveYes. This will prepare these objects to be able to correctly take advantage _ of the Name Autocorrect option. There is a behind the scenes functionality called 'Name Mapping' that is managed by Access _ when Name Autocorrect is turned on. If it has been off, then each table, query, report, and form must be _ opened and saved in design view to completely update Name Mapping. '-- 1) Turn on Perform Name AutoCorrect in Access options. _ 2) Second, run this procedure. _ 3) Then leave Perform Name Autocorrect on. Dim tbl As TableDef Dim qry As QueryDef Dim frm As Object Dim rpt As Object Dim stgName As String Dim intObjectCount As Integer Application.Echo False '-- Tables For Each tbl In CurrentDb.TableDefs '-- Skip linked tables or Access System tables If Not (tbl.Attributes = dbAttachedTable Or tbl.Attributes = dbAttachedODBC Or Left(tbl.Name, 4) = "Msys") Then intObjectCount = intObjectCount + 1 stgName = tbl.Name DoCmd.OpenTable stgName, acViewDesign, acEdit DoCmd.Close acTable, stgName, acSaveYes End If Next MsgBox intObjectCount & " Tables!" intObjectCount = 0 '-- Queries '-- Note: If a query has Owner permission and you are not the Owner, this will error out. For Each qry In CurrentDb.QueryDefs If Not (Left(qry.Name, 4)) = "~sq_" Then intObjectCount = intObjectCount + 1 stgName = qry.Name DoCmd.OpenQuery stgName, acViewDesign, acEdit DoCmd.Close acQuery, stgName, acSaveYes End If Next MsgBox intObjectCount & " Queries!" intObjectCount = 0 '-- Forms For Each frm In Application.CurrentProject.AllForms intObjectCount = intObjectCount + 1 stgName = frm.Name DoCmd.OpenForm stgName, acDesign DoCmd.Close acForm, stgName, acSaveYes Next MsgBox intObjectCount & " Forms!" intObjectCount = 0 '-- Reports For Each rpt In Application.CurrentProject.AllReports intObjectCount = intObjectCount + 1 stgName = rpt.Name DoCmd.OpenReport stgName, acDesign DoCmd.Close acReport, stgName, acSaveYes Next MsgBox intObjectCount & " Reports!" Application.Echo True Exit Sub EH: Application.Echo True MsgBox Err.Number & ": " & Err.Description & vbCrLf & vbCrLf & "Object Name: " & stgName End Sub From bheid at appdevgrp.com Mon May 15 10:33:21 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 15 May 2006 11:33:21 -0400 Subject: [AccessD] To re-link or not to re-link... Message-ID: <916187228923D311A6FE00A0CC3FAA30D353DC@ADGSERVER> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby From markamatte at hotmail.com Mon May 15 10:41:39 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 15 May 2006 15:41:39 +0000 Subject: [AccessD] Select Multiple records on form Message-ID: In stepping through the code and watching the screen change with each line of code I isolated the quirk I had noticed Friday. When you execute the line "With .Add(acExpression, , Cdn)"...the control it is on turns gray for about 3 seconds and then changes back...before the next line is executed. What would cause this? The same thing happens as the next 2 lines are executed. Thanks, Mark >From: "Mark A Matte" >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Select Multiple records on form >Date: Fri, 12 May 2006 20:13:02 +0000 > >A.D., > >Thank you very much for the code. It is acting strange...I think...If I >click or navigate to a record...all other records are 'grayed' out...and >the >single row is highlighted for about 3 seconds...then the screen is back to >normal. > >I think I'm in the right direction...I just need to select more than >one(non-sequential), have them stay selected, and do something with the >ones >selected. > >Thanks, > >Mark > > >From: "A.D.TEJPAL" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >CC: ADT > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Sat, 13 May 2006 00:09:27 +0530 > > > >Mark, > > > > On a continuous form, so long as record selectors are available, you > >can pick up the selection via form's click event and then apply dynamic > >conditional formatting so as to highlight only the records covered by > >current selection. Form's SelTop & SelHeight properties are handy in this > >context. > > > > Sample code as given below, will ensure that all records currently > >selected by the user get distinctly highlighted across the full row. > > > > Note - The performance of conditional formatting in Access 2003 is > >found to be better than that in Access 2000 (Access 2000 file format in > >both cases). > > > >Best wishes, > >A.D.Tejpal > >--------------- > > > >Code in module of continuous form > >(ID is the name of primary key field) > >========================================= > >Private Sub Form_Click() > > P_SetFormat_A > >End Sub > >---------------------------------------------------------------------------- > >Private Sub Form_Current() > > P_SetFormat_A > >End Sub > >---------------------------------------------------------------------------- > >Private Function Fn_SelectedBlock(ByVal PkNumber _ > > As Long) As Long > > ' Returns 1 if the record with this PkNumber > > ' falls in selected block, otherwise 0 > > Dim rst As DAO.Recordset > > Dim RecNum As Long, InSelection As Long > > > > InSelection = 0 ' Default > > Set rst = Me.RecordsetClone > > rst.FindFirst "ID = " & PkNumber > > If Not rst.NoMatch Then > > RecNum = rst.AbsolutePosition + 1 > > If RecNum >= Me.SelTop And _ > > RecNum <= Me.SelTop + _ > > (Me.SelHeight - 1) Then > > InSelection = 1 > > End If > > End If > > > > Fn_SelectedBlock = InSelection > > > > rst.Close > > Set rst = Nothing > >End Function > >---------------------------------------------------------------------------- > >Public Sub P_SetFormat_A() > > ' Sets fresh Conditional Formatting in Detail section > > Dim ct As Control > > > > For Each ct In Me.Detail.Controls > > P_SetFormat_B ct.Name > > Next > > > > Me.Repaint > >End Sub > >---------------------------------------------------------------------------- > >Private Sub P_SetFormat_B(ByVal ControlName As String) > >' Sets fresh Conditional Formatting > >' (in text box named ControlName) > > Dim Cdn As String > > > > On Error Resume Next ' For controls not suited to > > ' conditional formatting > > With Me(ControlName).FormatConditions > > .Delete > > > > Cdn = "Fn_SelectedBlock(ID) <> 0" > > With .Add(acExpression, , Cdn) > > .BackColor = 16777164 > > .FontBold = True > > End With > > End With > > On Error GoTo 0 > >End Sub > >========================================= > > > > ----- Original Message ----- > > From: Mark A Matte > > To: accessd at databaseadvisors.com > > Sent: Friday, May 12, 2006 21:41 > > Subject: [AccessD] Select Multiple records on form > > > > > > Hello All, > > > > I'm probably missing something simple here...but...I have a continuous > >form > > in A2K using a NON-updateable recordset. I would like the user to be > >able > > to select multiple records...and then click a button to do some other > >stuff. > > > > My issue is how to select multiple records on this form...I'm thinking > >some > > sort of conditional formatting...but not sure. Any > > ideas/suggestions/direction? > > > > Thanks, > > > > Mark A. Matte > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From dgibso at uark.edu Mon May 15 10:45:39 2006 From: dgibso at uark.edu (David A. Gibson) Date: Mon, 15 May 2006 10:45:39 -0500 Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect In-Reply-To: <000601c67779$084b7970$0200a8c0@danwaters> References: <000601c67779$084b7970$0200a8c0@danwaters> Message-ID: <7.0.1.0.0.20060515104329.019e0d80@uark.edu> How do you manage to access posts 2 months in the future??? :-D :-D :-D :-D David G. At 12:08 PM 5/14/2006, you wrote: >Hello to everyone, > >In the Archives you'll find an entry >with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. > >Good Luck! >Dan From DWUTKA at marlow.com Mon May 15 11:01:04 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 15 May 2006 11:01:04 -0500 Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDB35@main2.marlow.com> It's a new feature of Outlook 2008. Microsoft decided that their clients were tired of waiting for emails to come through, so now they have 'predictive' email, which lets you organize your email before it was ever even sent... ;) Drew -----Original Message----- From: David A. Gibson [mailto:dgibso at uark.edu] Sent: Monday, May 15, 2006 10:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect How do you manage to access posts 2 months in the future??? :-D :-D :-D :-D David G. At 12:08 PM 5/14/2006, you wrote: >Hello to everyone, > >In the Archives you'll find an entry >with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. > >Good Luck! >Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon May 15 11:09:03 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 15 May 2006 18:09:03 +0200 Subject: [AccessD] To re-link or not to re-link... Message-ID: Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby From Gustav at cactus.dk Mon May 15 11:30:29 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 15 May 2006 18:30:29 +0200 Subject: [AccessD] Select Multiple records on form Message-ID: Hi Mark With Me(ControlName).FormatConditions .Delete Cdn = "Fn_SelectedBlock(ID) <> 0" With .Add(acExpression, , Cdn) .BackColor = 16777164 .FontBold = True End With End With That code looks clunky to me. Did you try changing it to something that specifically Set a FormatCondition object, then adjusts properties BackColor and FontBold of this? /gustav >>> markamatte at hotmail.com 15-05-2006 17:41 >>> In stepping through the code and watching the screen change with each line of code I isolated the quirk I had noticed Friday. When you execute the line "With .Add(acExpression, , Cdn)"...the control it is on turns gray for about 3 seconds and then changes back...before the next line is executed. What would cause this? The same thing happens as the next 2 lines are executed. Thanks, Mark >From: "Mark A Matte" >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Select Multiple records on form >Date: Fri, 12 May 2006 20:13:02 +0000 > >A.D., > >Thank you very much for the code. It is acting strange...I think...If I >click or navigate to a record...all other records are 'grayed' out...and >the >single row is highlighted for about 3 seconds...then the screen is back to >normal. > >I think I'm in the right direction...I just need to select more than >one(non-sequential), have them stay selected, and do something with the >ones >selected. > >Thanks, > >Mark > > >From: "A.D.TEJPAL" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >CC: ADT > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Sat, 13 May 2006 00:09:27 +0530 > > > >Mark, > > > > On a continuous form, so long as record selectors are available, you > >can pick up the selection via form's click event and then apply dynamic > >conditional formatting so as to highlight only the records covered by > >current selection. Form's SelTop & SelHeight properties are handy in this > >context. > > > > Sample code as given below, will ensure that all records currently > >selected by the user get distinctly highlighted across the full row. > > > > Note - The performance of conditional formatting in Access 2003 is > >found to be better than that in Access 2000 (Access 2000 file format in > >both cases). > > > >Best wishes, > >A.D.Tejpal > >--------------- > > > >Code in module of continuous form > >(ID is the name of primary key field) > >========================================= > >Private Sub Form_Click() > > P_SetFormat_A > >End Sub > >---------------------------------------------------------------------------- > >Private Sub Form_Current() > > P_SetFormat_A > >End Sub > >---------------------------------------------------------------------------- > >Private Function Fn_SelectedBlock(ByVal PkNumber _ > > As Long) As Long > > ' Returns 1 if the record with this PkNumber > > ' falls in selected block, otherwise 0 > > Dim rst As DAO.Recordset > > Dim RecNum As Long, InSelection As Long > > > > InSelection = 0 ' Default > > Set rst = Me.RecordsetClone > > rst.FindFirst "ID = " & PkNumber > > If Not rst.NoMatch Then > > RecNum = rst.AbsolutePosition + 1 > > If RecNum >= Me.SelTop And _ > > RecNum <= Me.SelTop + _ > > (Me.SelHeight - 1) Then > > InSelection = 1 > > End If > > End If > > > > Fn_SelectedBlock = InSelection > > > > rst.Close > > Set rst = Nothing > >End Function > >---------------------------------------------------------------------------- > >Public Sub P_SetFormat_A() > > ' Sets fresh Conditional Formatting in Detail section > > Dim ct As Control > > > > For Each ct In Me.Detail.Controls > > P_SetFormat_B ct.Name > > Next > > > > Me.Repaint > >End Sub > >---------------------------------------------------------------------------- > >Private Sub P_SetFormat_B(ByVal ControlName As String) > >' Sets fresh Conditional Formatting > >' (in text box named ControlName) > > Dim Cdn As String > > > > On Error Resume Next ' For controls not suited to > > ' conditional formatting > > With Me(ControlName).FormatConditions > > .Delete > > > > Cdn = "Fn_SelectedBlock(ID) <> 0" > > With .Add(acExpression, , Cdn) > > .BackColor = 16777164 > > .FontBold = True > > End With > > End With > > On Error GoTo 0 > >End Sub > >========================================= > > > > ----- Original Message ----- > > From: Mark A Matte > > To: accessd at databaseadvisors.com > > Sent: Friday, May 12, 2006 21:41 > > Subject: [AccessD] Select Multiple records on form > > > > > > Hello All, > > > > I'm probably missing something simple here...but...I have a continuous form > > in A2K using a NON-updateable recordset. I would like the user to be able > > to select multiple records...and then click a button to do some other stuff. > > > > My issue is how to select multiple records on this form...I'm thinking some > > sort of conditional formatting...but not sure. Any > > ideas/suggestions/direction? > > > > Thanks, > > > > Mark A. Matte From Jim.Hale at FleetPride.com Mon May 15 11:37:20 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 15 May 2006 11:37:20 -0500 Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC37@corp-es01.fleetpride.com> Could you please send me the future email that mentions their stock price? ;-> Jim Hale -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, May 15, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Update Name Mapping for Name Autocorrect It's a new feature of Outlook 2008. Microsoft decided that their clients were tired of waiting for emails to come through, so now they have 'predictive' email, which lets you organize your email before it was ever even sent... ;) Drew -----Original Message----- From: David A. Gibson [mailto:dgibso at uark.edu] Sent: Monday, May 15, 2006 10:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect How do you manage to access posts 2 months in the future??? :-D :-D :-D :-D David G. At 12:08 PM 5/14/2006, you wrote: >Hello to everyone, > >In the Archives you'll find an entry >with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. > >Good Luck! >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 *********************************************************************** 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 markamatte at hotmail.com Mon May 15 11:39:03 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 15 May 2006 16:39:03 +0000 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: Gustav, A.D.Tejpal sent this code...I hate to admit...but I don't quite understand. I've tried to step through the code...but it doesn't do the "Fn_SelectedBlock" part until after I finish stepping though( I can actually see the VBA window "zip" through that function...after it appeard to be done) if that makes any sense???...and in all honesty I'm not sure what to change. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Select Multiple records on form >Date: Mon, 15 May 2006 18:30:29 +0200 > >Hi Mark > > With Me(ControlName).FormatConditions > .Delete > Cdn = "Fn_SelectedBlock(ID) <> 0" > With .Add(acExpression, , Cdn) > .BackColor = 16777164 > .FontBold = True > End With > End With > >That code looks clunky to me. Did you try changing it to something that >specifically Set a FormatCondition object, then adjusts properties >BackColor and FontBold of this? > >/gustav > > > >>> markamatte at hotmail.com 15-05-2006 17:41 >>> >In stepping through the code and watching the screen change with each line >of code I isolated the quirk I had noticed Friday. When you execute the >line "With .Add(acExpression, , Cdn)"...the control it is on turns gray for >about 3 seconds and then changes back...before the next line is executed. >What would cause this? The same thing happens as the next 2 lines are >executed. > >Thanks, > >Mark > > > >From: "Mark A Matte" > >Reply-To: Access Developers discussion and problem > >solving > >To: accessd at databaseadvisors.com > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Fri, 12 May 2006 20:13:02 +0000 > > > >A.D., > > > >Thank you very much for the code. It is acting strange...I think...If I > >click or navigate to a record...all other records are 'grayed' out...and > >the > >single row is highlighted for about 3 seconds...then the screen is back >to > >normal. > > > >I think I'm in the right direction...I just need to select more than > >one(non-sequential), have them stay selected, and do something with the > >ones > >selected. > > > >Thanks, > > > >Mark > > > > >From: "A.D.TEJPAL" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: "Access Developers discussion and problem > > >solving" > > >CC: ADT > > >Subject: Re: [AccessD] Select Multiple records on form > > >Date: Sat, 13 May 2006 00:09:27 +0530 > > > > > >Mark, > > > > > > On a continuous form, so long as record selectors are available, >you > > >can pick up the selection via form's click event and then apply dynamic > > >conditional formatting so as to highlight only the records covered by > > >current selection. Form's SelTop & SelHeight properties are handy in >this > > >context. > > > > > > Sample code as given below, will ensure that all records currently > > >selected by the user get distinctly highlighted across the full row. > > > > > > Note - The performance of conditional formatting in Access 2003 is > > >found to be better than that in Access 2000 (Access 2000 file format in > > >both cases). > > > > > >Best wishes, > > >A.D.Tejpal > > >--------------- > > > > > >Code in module of continuous form > > >(ID is the name of primary key field) > > >========================================= > > >Private Sub Form_Click() > > > P_SetFormat_A > > >End Sub > > > >---------------------------------------------------------------------------- > > >Private Sub Form_Current() > > > P_SetFormat_A > > >End Sub > > > >---------------------------------------------------------------------------- > > >Private Function Fn_SelectedBlock(ByVal PkNumber _ > > > As Long) As >Long > > > ' Returns 1 if the record with this PkNumber > > > ' falls in selected block, otherwise 0 > > > Dim rst As DAO.Recordset > > > Dim RecNum As Long, InSelection As Long > > > > > > InSelection = 0 ' Default > > > Set rst = Me.RecordsetClone > > > rst.FindFirst "ID = " & PkNumber > > > If Not rst.NoMatch Then > > > RecNum = rst.AbsolutePosition + 1 > > > If RecNum >= Me.SelTop And _ > > > RecNum <= Me.SelTop + _ > > > (Me.SelHeight - 1) Then > > > InSelection = 1 > > > End If > > > End If > > > > > > Fn_SelectedBlock = InSelection > > > > > > rst.Close > > > Set rst = Nothing > > >End Function > > > >---------------------------------------------------------------------------- > > >Public Sub P_SetFormat_A() > > > ' Sets fresh Conditional Formatting in Detail section > > > Dim ct As Control > > > > > > For Each ct In Me.Detail.Controls > > > P_SetFormat_B ct.Name > > > Next > > > > > > Me.Repaint > > >End Sub > > > >---------------------------------------------------------------------------- > > >Private Sub P_SetFormat_B(ByVal ControlName As String) > > >' Sets fresh Conditional Formatting > > >' (in text box named ControlName) > > > Dim Cdn As String > > > > > > On Error Resume Next ' For controls not suited to > > > ' conditional formatting > > > With Me(ControlName).FormatConditions > > > .Delete > > > > > > Cdn = "Fn_SelectedBlock(ID) <> 0" > > > With .Add(acExpression, , Cdn) > > > .BackColor = 16777164 > > > .FontBold = True > > > End With > > > End With > > > On Error GoTo 0 > > >End Sub > > >========================================= > > > > > > ----- Original Message ----- > > > From: Mark A Matte > > > To: accessd at databaseadvisors.com > > > Sent: Friday, May 12, 2006 21:41 > > > Subject: [AccessD] Select Multiple records on form > > > > > > > > > Hello All, > > > > > > I'm probably missing something simple here...but...I have a >continuous form > > > in A2K using a NON-updateable recordset. I would like the user to >be able > > > to select multiple records...and then click a button to do some >other stuff. > > > > > > My issue is how to select multiple records on this form...I'm >thinking some > > > sort of conditional formatting...but not sure. Any > > > ideas/suggestions/direction? > > > > > > Thanks, > > > > > > Mark A. Matte > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon May 15 11:40:16 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 15 May 2006 09:40:16 -0700 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: Message-ID: It seems to me there were some issues in the early versions if the linked database were not available (moved, renamed, network down) because the condition seemed to persist even when the linked file became available again, but I may be misremembering. In any case, that was overcome long ago and may have had more to do with the OS than with Access itself. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Mon May 15 11:41:23 2006 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Mon, 15 May 2006 11:41:23 -0500 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: Mark, >> I just need to select more than one(non-sequential), have them stay selected... Well, neither A.D.'s or my solution will work with discontinuous selections. Access forms simply don't natively support that. If your recordset is non-updatable, and you have to have discontinuous selections, you really have two choices: * Write the recordset to a temporary table. Include a yes/no field in the table for the user to select. Set the form to the table. The user selects a record by checking the box. You can easily set conditional formatting keying off of that field. If you choose to go the conditional formatting route, you can simplify highlighting rows by making the backgrounds of all the controls transparent. Insert a single large textbox the size of the row, and set its ControlSource to the yes/no field. Set its foreground and background colors to gray. Set conditional formatting to show your highlight color (foreground and background) when the user checks the checkbox. Send the background control to back, and put it behind your record controls. That way you can highlight the whole record with just one control. * If the list of things is under several hundred, you can use a select list dialog, the kind that shows a list of choices on the left window, and lets you click arrow buttons to move your selections to the window on the right. I have a Select List userform dialog that can read DAO or ADO recordsets, and let the user choose, if you like. -Ken From DWUTKA at marlow.com Mon May 15 11:47:48 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 15 May 2006 11:47:48 -0500 Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDB37@main2.marlow.com> Sorry, can't, only Outlook 2008 has the ability to predict the future email. There are a few bugs in the system, from what I hear. Apparently it generates more 'future' spam then legitimate emails.... Drew -----Original Message----- From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] Sent: Monday, May 15, 2006 11:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Update Name Mapping for Name Autocorrect Could you please send me the future email that mentions their stock price? ;-> Jim Hale -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, May 15, 2006 11:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Update Name Mapping for Name Autocorrect It's a new feature of Outlook 2008. Microsoft decided that their clients were tired of waiting for emails to come through, so now they have 'predictive' email, which lets you organize your email before it was ever even sent... ;) Drew -----Original Message----- From: David A. Gibson [mailto:dgibso at uark.edu] Sent: Monday, May 15, 2006 10:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect How do you manage to access posts 2 months in the future??? :-D :-D :-D :-D David G. At 12:08 PM 5/14/2006, you wrote: >Hello to everyone, > >In the Archives you'll find an entry >with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. > >Good Luck! >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 *********************************************************************** 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 Mon May 15 11:53:48 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 15 May 2006 18:53:48 +0200 Subject: [AccessD] Select Multiple records on form Message-ID: Hi Mark and A.D. Sorry A.D. - didn't notice that. You normally know very well what you are doing but this With .Add(..) thingy looks strange to me. It may be perfectly OK ... but 3 seconds? /gustav >>> markamatte at hotmail.com 15-05-2006 18:39 >>> Gustav, A.D.Tejpal sent this code...I hate to admit...but I don't quite understand. I've tried to step through the code...but it doesn't do the "Fn_SelectedBlock" part until after I finish stepping though( I can actually see the VBA window "zip" through that function...after it appeard to be done) if that makes any sense???...and in all honesty I'm not sure what to change. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Select Multiple records on form >Date: Mon, 15 May 2006 18:30:29 +0200 > >Hi Mark > > With Me(ControlName).FormatConditions > .Delete > Cdn = "Fn_SelectedBlock(ID) <> 0" > With .Add(acExpression, , Cdn) > .BackColor = 16777164 > .FontBold = True > End With > End With > >That code looks clunky to me. Did you try changing it to something that >specifically Set a FormatCondition object, then adjusts properties >BackColor and FontBold of this? > >/gustav From bheid at appdevgrp.com Mon May 15 12:08:40 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 15 May 2006 13:08:40 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: To re-link or not to re-link... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB2E4A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353DE@ADGSERVER> Hi Gustav, That is what I was suggesting we do. But my boss wanted facts. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 12:09 PM To: accessd at databaseadvisors.com Subject: [SPAM SUSPECT] Re: [AccessD] To re-link or not to re-link... Importance: Low Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby From bheid at appdevgrp.com Mon May 15 12:09:53 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 15 May 2006 13:09:53 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: To re-link or not to re-link... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB2E62@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353DF@ADGSERVER> Hi Charlotte, Thanks for the reply. This is what I was thinking also. I am just trying to get some ammo to back me for suggesting that we skip the relinking if they are loading the previous database. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 15, 2006 12:40 PM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] To re-link or not to re-link... Importance: Low It seems to me there were some issues in the early versions if the linked database were not available (moved, renamed, network down) because the condition seemed to persist even when the linked file became available again, but I may be misremembering. In any case, that was overcome long ago and may have had more to do with the OS than with Access itself. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby From dwaters at usinternet.com Mon May 15 12:24:36 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 15 May 2006 12:24:36 -0500 Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect In-Reply-To: <15204681.1147712392119.JavaMail.root@sniper21> Message-ID: <000601c67844$70e912f0$0200a8c0@danwaters> Sorry folks, I was reading one of the Microsoft Partner Newsletters this morning, and I ended up in a future state! Dan -----Original Message----- Sorry, can't, only Outlook 2008 has the ability to predict the future email. There are a few bugs in the system, from what I hear. Apparently it generates more 'future' spam then legitimate emails.... Drew -----Original Message----- Could you please send me the future email that mentions their stock price? ;-> Jim Hale -----Original Message----- It's a new feature of Outlook 2008. Microsoft decided that their clients were tired of waiting for emails to come through, so now they have 'predictive' email, which lets you organize your email before it was ever even sent... ;) Drew -----Original Message----- How do you manage to access posts 2 months in the future??? :-D :-D :-D :-D David G. At 12:08 PM 5/14/2006, you wrote: >Hello to everyone, > >In the Archives you'll find an entry >with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. > >Good Luck! >Dan -- From martyconnelly at shaw.ca Mon May 15 12:40:03 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 15 May 2006 10:40:03 -0700 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D353DC@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA30D353DC@ADGSERVER> Message-ID: <4468BCF3.6080100@shaw.ca> When re-linking try to keep one table open during relink process to avoid opening and closing ldb file, remove subdatasheets on backend tables. Once the first table has been refreshed, open a recordset based on that table. Continue refreshing. Once finished refreshing close the recordset after you've opened a bound form (perhaps hidden) for performance reasons <../performancefaq.htm>. Performance FAQ's See http://www.granite.ab.ca/access/performanceldblocking.htm and also http://www.granite.ab.ca/access/performancefaq.htm Bobby Heid wrote: >Hey, > >We have a system that was originally developed in Access 97. There were a >number of tables that were linked to the FE. There were issues (not sure >what they were as no one remembers and I did not write the original) with >the system if the tables were not re-linked each time the system is loaded. > >Well, here we are today and the app has grown into Access XP. The system >has grown and now has over 100 tables. As such, it takes about .6 seconds >per table to re-link them all. > >Does anyone know what the issues may have been before and if they still >exist in Access XP? Anyone have any pointers to further information? > >Thanks, >Bobby > > > -- Marty Connelly Victoria, B.C. Canada From Lambert.Heenan at AIG.com Mon May 15 12:41:19 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 15 May 2006 13:41:19 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: To re-link or not to re-link.. . Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F21C85BD7@xlivmbx21.aig.com> Your boss maybe needs to consider where 'facts' come form. :-) The most important source is empirical testing. Here's a fact for him: Been running various Access applications for 10 year, in both Access 97 and 2002. Never needed to relink any tables at startup. Why might you need to do so? 1/ The drive mappings on a user's system might change, making the backend seem to have disappeared. Solution? Use UNC path not drive mappings. 2/ The backend might have been moved to a different file server, so the UNC path does not point to it any more. Solution? Develop a relationship with the network managers so you'll know in advance if things are going to move. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, May 15, 2006 1:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [SPAM SUSPECT] Re: To re-link or not to re-link... Hi Gustav, That is what I was suggesting we do. But my boss wanted facts. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 12:09 PM To: accessd at databaseadvisors.com Subject: [SPAM SUSPECT] Re: [AccessD] To re-link or not to re-link... Importance: Low Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon May 15 12:41:42 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 15 May 2006 17:41:42 +0000 Subject: [AccessD] Select Multiple records on form Message-ID: Gustav, Thanks for the compliment. As I started going through the code line by line...it got more confusing. Apparently the function "Fn_SelectedBlock" goes through each control...but 1 record at a time. The thing is if you are stepping through the code...when it gets to where it calls "Fn_SelectedBlock"...it does NOT go there...it just continues on...then when you get to the end of the code(hit F8 1 last time on END SUB)...it zips through the function"Fn_SelectedBlock", without breaking. This code, in my opinion, is doing something very 'cool'...almost what I need...but just out of my understanding. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Select Multiple records on form >Date: Mon, 15 May 2006 18:53:48 +0200 > >Hi Mark and A.D. > >Sorry A.D. - didn't notice that. You normally know very well what you are >doing but this With .Add(..) thingy looks strange to me. >It may be perfectly OK ... but 3 seconds? > >/gustav > > >>> markamatte at hotmail.com 15-05-2006 18:39 >>> >Gustav, > >A.D.Tejpal sent this code...I hate to admit...but I don't quite understand. >I've tried to step through the code...but it doesn't do the >"Fn_SelectedBlock" part until after I finish stepping though( I can >actually >see the VBA window "zip" through that function...after it appeard to be >done) if that makes any sense???...and in all honesty I'm not sure what to >change. > >Thanks, > >Mark A. Matte > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Mon, 15 May 2006 18:30:29 +0200 > > > >Hi Mark > > > > With Me(ControlName).FormatConditions > > .Delete > > Cdn = "Fn_SelectedBlock(ID) <> 0" > > With .Add(acExpression, , Cdn) > > .BackColor = 16777164 > > .FontBold = True > > End With > > End With > > > >That code looks clunky to me. Did you try changing it to something that > >specifically Set a FormatCondition object, then adjusts properties > >BackColor and FontBold of this? > > > >/gustav > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon May 15 13:00:23 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 15 May 2006 11:00:23 -0700 Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1BDB35@main2.marlow.com> References: <17724746D360394AA3BFE5B8D40A9C1BDB35@main2.marlow.com> Message-ID: <4468C1B7.3050503@shaw.ca> It is not that unusual I have Access-D messages in my own Email archives from 2010 and 2014. I suppose it is either a machine time issue or Microsoft is using wormholes. DWUTKA at marlow.com wrote: >It's a new feature of Outlook 2008. Microsoft decided that their clients >were tired of waiting for emails to come through, so now they have >'predictive' email, which lets you organize your email before it was ever >even sent... ;) > >Drew > >-----Original Message----- >From: David A. Gibson [mailto:dgibso at uark.edu] >Sent: Monday, May 15, 2006 10:46 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect > > >How do you manage to access posts 2 months in the future??? > >:-D :-D :-D :-D > >David G. > > >At 12:08 PM 5/14/2006, you wrote: > > >>Hello to everyone, >> >>In the Archives you'll find an entry >>with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. >> >>Good Luck! >>Dan >> >> -- Marty Connelly Victoria, B.C. Canada From dwaters at usinternet.com Mon May 15 13:32:19 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 15 May 2006 13:32:19 -0500 Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect In-Reply-To: <1331851.1147716315130.JavaMail.root@sniper23> Message-ID: <002d01c6784d$e6877610$0200a8c0@danwaters> So if my PC gets a worm, all the data gets moved to the future? That's bad - someday all that data will just show up again! Dan -----Original Message----- It is not that unusual I have Access-D messages in my own Email archives from 2010 and 2014. I suppose it is either a machine time issue or Microsoft is using wormholes. DWUTKA at marlow.com wrote: >It's a new feature of Outlook 2008. Microsoft decided that their clients >were tired of waiting for emails to come through, so now they have >'predictive' email, which lets you organize your email before it was ever >even sent... ;) > >Drew > >-----Original Message----- >From: David A. Gibson [mailto:dgibso at uark.edu] >Sent: Monday, May 15, 2006 10:46 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] OT: Update Name Mapping for Name Autocorrect > > >How do you manage to access posts 2 months in the future??? > >:-D :-D :-D :-D > >David G. > > >At 12:08 PM 5/14/2006, you wrote: > > >>Hello to everyone, >> >>In the Archives you'll find an entry >>with 'TsiNameFixup90' in the subject line from Sad Der dated 7/20/06. >> >>Good Luck! >>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 bheid at appdevgrp.com Mon May 15 14:47:45 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 15 May 2006 15:47:45 -0400 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB2E93@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353E6@ADGSERVER> Thanks Marty. I'll check that out. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, May 15, 2006 1:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... When re-linking try to keep one table open during relink process to avoid opening and closing ldb file, remove subdatasheets on backend tables. Once the first table has been refreshed, open a recordset based on that table. Continue refreshing. Once finished refreshing close the recordset after you've opened a bound form (perhaps hidden) for performance reasons <../performancefaq.htm>. Performance FAQ's See http://www.granite.ab.ca/access/performanceldblocking.htm and also http://www.granite.ab.ca/access/performancefaq.htm Bobby Heid wrote: >Hey, > >We have a system that was originally developed in Access 97. There were a >number of tables that were linked to the FE. There were issues (not sure >what they were as no one remembers and I did not write the original) with >the system if the tables were not re-linked each time the system is loaded. > >Well, here we are today and the app has grown into Access XP. The system >has grown and now has over 100 tables. As such, it takes about .6 seconds >per table to re-link them all. > >Does anyone know what the issues may have been before and if they still >exist in Access XP? Anyone have any pointers to further information? > >Thanks, >Bobby > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Mon May 15 16:05:45 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 15 May 2006 14:05:45 -0700 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: References: Message-ID: <4468ED29.9040702@san.rr.com> I sometimes put a relink command button on a client app if they have the occasional need to relink or refresh the links. Rocky Charlotte Foust wrote: > It seems to me there were some issues in the early versions if the > linked database were not available (moved, renamed, network down) > because the condition seemed to persist even when the linked file became > available again, but I may be misremembering. In any case, that was > overcome long ago and may have had more to do with the OS than with > Access itself. > > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, May 15, 2006 9:09 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] To re-link or not to re-link... > > Hi Bobby > > We've never (since and including Access 2.0) seen any issues by _not_ > relinking at every launch of the app. > That's for JET tables. Neither have I seen such a need for SQL Server. > It may be different for other (ODBC connected) engines though. > > Why not just disable the relinking and watch what happens? > > /gustav > > >>>> bheid at appdevgrp.com 15-05-2006 17:33 >>> >>>> > Hey, > > We have a system that was originally developed in Access 97. There were > a number of tables that were linked to the FE. There were issues (not > sure what they were as no one remembers and I did not write the > original) with the system if the tables were not re-linked each time the > system is loaded. > > Well, here we are today and the app has grown into Access XP. The > system has grown and now has over 100 tables. As such, it takes about > .6 seconds per table to re-link them all. > > Does anyone know what the issues may have been before and if they still > exist in Access XP? Anyone have any pointers to further information? > > Thanks, > Bobby > > > -- > 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 kp at sdsonline.net Mon May 15 18:10:26 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 16 May 2006 09:10:26 +1000 Subject: [AccessD] To re-link or not to re-link... References: <916187228923D311A6FE00A0CC3FAA30D353DC@ADGSERVER> <4468BCF3.6080100@shaw.ca> Message-ID: <007801c67874$c10f4260$6601a8c0@office> I think that re-linking to just one table is a good idea if you have only one BE file. If you get the first link then you know that the BE has been successfully located and you can bail out from there. Kath ----- Original Message ----- From: MartyConnelly To: Access Developers discussion and problem solving Sent: Tuesday, May 16, 2006 3:40 AM Subject: Re: [AccessD] To re-link or not to re-link... When re-linking try to keep one table open during relink process to avoid opening and closing ldb file, remove subdatasheets on backend tables. Once the first table has been refreshed, open a recordset based on that table. Continue refreshing. Once finished refreshing close the recordset after you've opened a bound form (perhaps hidden) for performance reasons <../performancefaq.htm>. Performance FAQ's See http://www.granite.ab.ca/access/performanceldblocking.htm and also http://www.granite.ab.ca/access/performancefaq.htm Bobby Heid wrote: >Hey, > >We have a system that was originally developed in Access 97. There were a >number of tables that were linked to the FE. There were issues (not sure >what they were as no one remembers and I did not write the original) with >the system if the tables were not re-linked each time the system is loaded. > >Well, here we are today and the app has grown into Access XP. The system >has grown and now has over 100 tables. As such, it takes about .6 seconds >per table to re-link them all. > >Does anyone know what the issues may have been before and if they still >exist in Access XP? Anyone have any pointers to further information? > >Thanks, >Bobby > > > -- 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 jimdettman at earthlink.net Mon May 15 19:28:33 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 15 May 2006 20:28:33 -0400 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D353DC@ADGSERVER> Message-ID: Bobby, << As such, it takes about .6 seconds per table to re-link them all. >> Make sure you keep an object open to the BE (database itself, first table, or whatever). You'll find your re-linking will fly right along that way. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, May 15, 2006 10:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] To re-link or not to re-link... Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Mon May 15 19:28:33 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 15 May 2006 20:28:33 -0400 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: Message-ID: Charlotte, A2 had "attachment fatigue". For no apparent reason, at some point, linked tables would simply stop working. A lot of developers got into the habit of re-linking at startup every time. I myself check one table in each BE and if it can't open the table, I force a re-link of all the tables associated with that BE. I prompt the user for the location of the BE to, so if it's been moved or it's un-available, they can correct it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 15, 2006 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... It seems to me there were some issues in the early versions if the linked database were not available (moved, renamed, network down) because the condition seemed to persist even when the linked file became available again, but I may be misremembering. In any case, that was overcome long ago and may have had more to do with the OS than with Access itself. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon May 15 21:37:14 2006 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Tue, 16 May 2006 10:37:14 +0800 Subject: [AccessD] To re-link or not to re-link... References: <916187228923D311A6FE00A0CC3FAA30D353E6@ADGSERVER> Message-ID: <002b01c67891$a46150f0$2900a8c0@TOMNEW> Just to have my 2 cents..... I have been running a FE BE relationship with around 10 users for some years now and do not re-link at all. Access is looking for a shared drive at DRIVE X on every machine. Our operating systems are XP and win2000 and occasionally win2000 fails to reconnect the network which of course results in an error when opening Access. It happens so infrequently as to be not worth bothering with. Usually clicking on drive x will refresh the connection and everything is fine. When I used to re-link every table it used to take AGES to open Access. I would suggest not doing it at all....if the network connection is working Access will as well Regards Tom Keatley ----- Original Message ----- From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, May 16, 2006 3:47 AM Subject: Re: [AccessD] To re-link or not to re-link... > Thanks Marty. I'll check that out. > > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Monday, May 15, 2006 1:40 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] To re-link or not to re-link... > > > When re-linking try to keep one table open during relink process to avoid > opening and closing ldb file, remove subdatasheets on backend tables. > Once the first table has been refreshed, open a recordset based on that > table. > Continue refreshing. Once finished refreshing close the recordset after > you've opened a bound form (perhaps hidden) for performance reasons > <../performancefaq.htm>. > Performance FAQ's > See > http://www.granite.ab.ca/access/performanceldblocking.htm > and also > http://www.granite.ab.ca/access/performancefaq.htm > > > Bobby Heid wrote: > >>Hey, >> >>We have a system that was originally developed in Access 97. There were a >>number of tables that were linked to the FE. There were issues (not sure >>what they were as no one remembers and I did not write the original) with >>the system if the tables were not re-linked each time the system is >>loaded. >> >>Well, here we are today and the app has grown into Access XP. The system >>has grown and now has over 100 tables. As such, it takes about .6 seconds >>per table to re-link them all. >> >>Does anyone know what the issues may have been before and if they still >>exist in Access XP? Anyone have any pointers to further information? >> >>Thanks, >>Bobby >> >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > 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.392 / Virus Database: 268.5.6/339 - Release Date: 14/05/2006 > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.392 / Virus Database: 268.5.6/339 - Release Date: 14/05/2006 > > From bheid at appdevgrp.com Tue May 16 06:08:56 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 16 May 2006 07:08:56 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: To re-link or not to re-link... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB2F0B@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353E7@ADGSERVER> Interesting idea Kath. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, May 15, 2006 7:10 PM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] To re-link or not to re-link... Importance: Low I think that re-linking to just one table is a good idea if you have only one BE file. If you get the first link then you know that the BE has been successfully located and you can bail out from there. Kath ----- Original Message ----- From: MartyConnelly To: Access Developers discussion and problem solving Sent: Tuesday, May 16, 2006 3:40 AM Subject: Re: [AccessD] To re-link or not to re-link... When re-linking try to keep one table open during relink process to avoid opening and closing ldb file, remove subdatasheets on backend tables. Once the first table has been refreshed, open a recordset based on that table. Continue refreshing. Once finished refreshing close the recordset after you've opened a bound form (perhaps hidden) for performance reasons <../performancefaq.htm>. Performance FAQ's See http://www.granite.ab.ca/access/performanceldblocking.htm and also http://www.granite.ab.ca/access/performancefaq.htm Bobby Heid wrote: >Hey, > >We have a system that was originally developed in Access 97. There were a >number of tables that were linked to the FE. There were issues (not sure >what they were as no one remembers and I did not write the original) with >the system if the tables were not re-linked each time the system is loaded. > >Well, here we are today and the app has grown into Access XP. The system >has grown and now has over 100 tables. As such, it takes about .6 seconds >per table to re-link them all. > >Does anyone know what the issues may have been before and if they still >exist in Access XP? Anyone have any pointers to further information? > >Thanks, >Bobby > > > -- Marty Connelly Victoria, B.C. Canada From bheid at appdevgrp.com Tue May 16 06:16:15 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 16 May 2006 07:16:15 -0400 Subject: [AccessD] OT: Virtual OS software... Message-ID: <916187228923D311A6FE00A0CC3FAA30D353E8@ADGSERVER> Any of you have any preferences between Virtual PC and VMWare Workstation? I am looking at getting one of these to: 1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, etc. 2) To check beta or new software. 3) Run various flavors of Linux. 4) And in general, be able to play around with stuff without worrying about hosing my main system. 5) So I don't have to multi-boot any more. So, if you have any thoughts on these, I'd love to hear them. Thanks, Bobby From Jdemarco at hudsonhealthplan.org Tue May 16 07:37:27 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 16 May 2006 08:37:27 -0400 Subject: [AccessD] To re-link or not to re-link... Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C46AD@TTNEXCHCL2.hshhp.com> This is the technique I subscribe to. If your tables are in more than one BE test the link to one table in each BE. That's enough to know there's an issue. If an issue is discovered remember to take the advice in other messages in this thread to keep an open connection to a table to speed up relinking. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Monday, May 15, 2006 7:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... I think that re-linking to just one table is a good idea if you have only one BE file. If you get the first link then you know that the BE has been successfully located and you can bail out from there. Kath ----- Original Message ----- From: MartyConnelly To: Access Developers discussion and problem solving Sent: Tuesday, May 16, 2006 3:40 AM Subject: Re: [AccessD] To re-link or not to re-link... When re-linking try to keep one table open during relink process to avoid opening and closing ldb file, remove subdatasheets on backend tables. Once the first table has been refreshed, open a recordset based on that table. Continue refreshing. Once finished refreshing close the recordset after you've opened a bound form (perhaps hidden) for performance reasons <../performancefaq.htm>. Performance FAQ's See http://www.granite.ab.ca/access/performanceldblocking.htm and also http://www.granite.ab.ca/access/performancefaq.htm Bobby Heid wrote: >Hey, > >We have a system that was originally developed in Access 97. There were a >number of tables that were linked to the FE. There were issues (not sure >what they were as no one remembers and I did not write the original) with >the system if the tables were not re-linked each time the system is loaded. > >Well, here we are today and the app has grown into Access XP. The system >has grown and now has over 100 tables. As such, it takes about .6 seconds >per table to re-link them all. > >Does anyone know what the issues may have been before and if they still >exist in Access XP? Anyone have any pointers to further information? > >Thanks, >Bobby > > > -- 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 Jdemarco at hudsonhealthplan.org Tue May 16 07:39:49 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 16 May 2006 08:39:49 -0400 Subject: [AccessD] OT: Virtual OS software... Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C46AE@TTNEXCHCL2.hshhp.com> We used VMWare a couple of years back to help us create an install that needed to work in NT 4.0, Win2K and WinXP. It was easy to use and saved tons of time in reboot time alone. We are going to use it again to create some virtual sandboxes for developer tests by recreating user's machines in the VM. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, May 16, 2006 7:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Virtual OS software... Any of you have any preferences between Virtual PC and VMWare Workstation? I am looking at getting one of these to: 1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, etc. 2) To check beta or new software. 3) Run various flavors of Linux. 4) And in general, be able to play around with stuff without worrying about hosing my main system. 5) So I don't have to multi-boot any more. So, if you have any thoughts on these, I'd love to hear them. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Tue May 16 08:27:42 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 16 May 2006 09:27:42 -0400 Subject: [AccessD] OT: Virtual OS software... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB2F88@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353F2@ADGSERVER> Hi Jim. Thanks for the reply. Everything I've seen seems to point to the VMWare product. That is a really cool idea about recreating the user's machines. Can you take any image from any system and do this? Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Tuesday, May 16, 2006 8:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Virtual OS software... We used VMWare a couple of years back to help us create an install that needed to work in NT 4.0, Win2K and WinXP. It was easy to use and saved tons of time in reboot time alone. We are going to use it again to create some virtual sandboxes for developer tests by recreating user's machines in the VM. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, May 16, 2006 7:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Virtual OS software... Any of you have any preferences between Virtual PC and VMWare Workstation? I am looking at getting one of these to: 1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, etc. 2) To check beta or new software. 3) Run various flavors of Linux. 4) And in general, be able to play around with stuff without worrying about hosing my main system. 5) So I don't have to multi-boot any more. So, if you have any thoughts on these, I'd love to hear them. Thanks, Bobby From adtp at hotmail.com Tue May 16 09:25:10 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Tue, 16 May 2006 19:55:10 +0530 Subject: [AccessD] Select Multiple records on form References: Message-ID: Mark, Gustav, 1 - Comments on points raised by Gustav: 1.1 - Change of status requiring re-rendering of colors on controls governed by conditional formatting involves slight time lag, though in simplest of cases it may hardly be noticeable. 1.2 - The phenomenon gets further accentuated when max allowed limit of three format conditions is fully exploited, and the expressions used therein are not merely verifying the status of a particular record but are dependant upon user defined functions dealing with recordsets. 1.3 - Block-size involved (number of cells i.e. rows x columns), for which re-rendering of colors is to be implemented, also contributes to time lag. Overall number of records in form's record source also has a bearing, as each record needs to be tested against the condition even if it does not qualify for application of color. 1.4 - For dynamic formatting at run time, editing the expression / color / font of existing condition visa-vis application of brand new condition is not found to provide any advantage in respect of time lag discussed above. On the other hand, with edit approach, the revision does not take effect unless refresh action is also performed on the form. 1.5 - For the present case, involving conditional formatting of selected block of records on a continuous form (Access 2000 file format), performance of dynamic conditional highlighting is found to be much better in Access 2003 installation, where the status change gets implemented in just a flicker. In case of Access 2K & XP installations, the time lag is found to be significantly more noticeable. 2 - Comments on points raised by Mark: 2.1 - When you drag the mouse over record selectors for multiple selection, form's click event fires only after the mouse button is finally released on reaching the last selected record. It is this click event that sets up revised conditional formatting of records falling in the selected block. 2.2 - Fn_SelectedBlock() is used by the expression in format condition and verifies whether the given record falls in currently selected block. It takes primary key number as its argument and returns 1 if true, otherwise zero. AS explained in para 2.1 above, Fn_SelectedBlock() comes into play only after the mouse button is finally released on reaching the last selected record. 2.3 - In one of your posts, you stated that you also wish to keep track of non-contiguous selected records. Non-contiguous records can not simultaneously form part of a given block of current selection. Perhaps you want to keep track of all previously selected records, even those not falling in current selection block. If so, this can be done. 2.4 - My sample db ContFormsKeyNavAndHighLightMultiSelect, covers this requirement and should become available at Rogers Access Library shortly. It features: (a) Key Navigation (Datasheet Style) (b) Graded Highlighting Of Multiple Selected Records identifying: (i) Current record (ii) Current selection block (iii) Other records, selected any time earlier in current session Note - Primary key numbers of all selected records (whether forming part of current block or not) are stored in a form level global variable. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Monday, May 15, 2006 23:11 Subject: Re: [AccessD] Select Multiple records on form Gustav, Thanks for the compliment. As I started going through the code line by line...it got more confusing. Apparently the function "Fn_SelectedBlock" goes through each control...but 1 record at a time. The thing is if you are stepping through the code...when it gets to where it calls "Fn_SelectedBlock"...it does NOT go there...it just continues on...then when you get to the end of the code(hit F8 1 last time on END SUB)...it zips through the function"Fn_SelectedBlock", without breaking. This code, in my opinion, is doing something very 'cool'...almost what I need...but just out of my understanding. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Select Multiple records on form >Date: Mon, 15 May 2006 18:53:48 +0200 > >Hi Mark and A.D. > >Sorry A.D. - didn't notice that. You normally know very well what you are doing but this With .Add(..) thingy looks strange to me. >It may be perfectly OK ... but 3 seconds? > >/gustav > > >>> markamatte at hotmail.com 15-05-2006 18:39 >>> >Gustav, > >A.D.Tejpal sent this code...I hate to admit...but I don't quite understand.I've tried to step through the code...but it doesn't do the >"Fn_SelectedBlock" part until after I finish stepping though( I can >actually see the VBA window "zip" through that function...after it appeard to be done) if that makes any sense???...and in all honesty I'm not sure what to change. > >Thanks, > >Mark A. Matte > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Mon, 15 May 2006 18:30:29 +0200 > > > >Hi Mark > > > > With Me(ControlName).FormatConditions > > .Delete > > Cdn = "Fn_SelectedBlock(ID) <> 0" > > With .Add(acExpression, , Cdn) > > .BackColor = 16777164 > > .FontBold = True > > End With > > End With > > > >That code looks clunky to me. Did you try changing it to something that > >specifically Set a FormatCondition object, then adjusts properties > >BackColor and FontBold of this? > > > >/gustav From markamatte at hotmail.com Tue May 16 09:41:27 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 16 May 2006 14:41:27 +0000 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: Thanks A.D With the code you sent...when I click on a record...was it supposed to stay selected? or was the form supposed to return to its original state on its own? The 3 seconds referred to wasn't a 'lag' as much as the duration of the formatting. The selection only lasted that long. If I used a shorter recordset...I didn't see the formatting at all. Thanks, Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] Select Multiple records on form >Date: Tue, 16 May 2006 19:55:10 +0530 > >Mark, Gustav, > > 1 - Comments on points raised by Gustav: > 1.1 - Change of status requiring re-rendering of colors on >controls governed by conditional formatting involves slight time lag, >though in simplest of cases it may hardly be noticeable. > 1.2 - The phenomenon gets further accentuated when max allowed >limit of three format conditions is fully exploited, and the expressions >used therein are not merely verifying the status of a particular record but >are dependant upon user defined functions dealing with recordsets. > 1.3 - Block-size involved (number of cells i.e. rows x columns), >for which re-rendering of colors is to be implemented, also contributes to >time lag. Overall number of records in form's record source also has a >bearing, as each record needs to be tested against the condition even if it >does not qualify for application of color. > 1.4 - For dynamic formatting at run time, editing the expression / >color / font of existing condition visa-vis application of brand new >condition is not found to provide any advantage in respect of time lag >discussed above. On the other hand, with edit approach, the revision does >not take effect unless refresh action is also performed on the form. > 1.5 - For the present case, involving conditional formatting of >selected block of records on a continuous form (Access 2000 file format), >performance of dynamic conditional highlighting is found to be much better >in Access 2003 installation, where the status change gets implemented in >just a flicker. In case of Access 2K & XP installations, the time lag is >found to be significantly more noticeable. > > 2 - Comments on points raised by Mark: > 2.1 - When you drag the mouse over record selectors for multiple >selection, form's click event fires only after the mouse button is finally >released on reaching the last selected record. It is this click event that >sets up revised conditional formatting of records falling in the selected >block. > 2.2 - Fn_SelectedBlock() is used by the expression in format >condition and verifies whether the given record falls in currently selected >block. It takes primary key number as its argument and returns 1 if true, >otherwise zero. AS explained in para 2.1 above, Fn_SelectedBlock() comes >into play only after the mouse button is finally released on reaching the >last selected record. > 2.3 - In one of your posts, you stated that you also wish to keep >track of non-contiguous selected records. Non-contiguous records can not >simultaneously form part of a given block of current selection. Perhaps you >want to keep track of all previously selected records, even those not >falling in current selection block. If so, this can be done. > 2.4 - My sample db ContFormsKeyNavAndHighLightMultiSelect, covers >this requirement and should become available at Rogers Access Library >shortly. It features: > (a) Key Navigation (Datasheet Style) > (b) Graded Highlighting Of Multiple Selected Records identifying: > (i) Current record > (ii) Current selection block > (iii) Other records, selected any time earlier in current >session > Note - Primary key numbers of all selected records (whether >forming part of current block or not) are stored in a form level global >variable. > >Best wishes, >A.D.Tejpal >--------------- > > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Monday, May 15, 2006 23:11 > Subject: Re: [AccessD] Select Multiple records on form > > > Gustav, > > Thanks for the compliment. As I started going through the code line by >line...it got more confusing. Apparently the function "Fn_SelectedBlock" >goes through each control...but 1 record at a time. > > The thing is if you are stepping through the code...when it gets to >where it calls "Fn_SelectedBlock"...it does NOT go there...it just >continues on...then when you get to the end of the code(hit F8 1 last time >on END SUB)...it zips through the function"Fn_SelectedBlock", without >breaking. > > This code, in my opinion, is doing something very 'cool'...almost what I >need...but just out of my understanding. > > Thanks, > > Mark A. Matte > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Mon, 15 May 2006 18:53:48 +0200 > > > >Hi Mark and A.D. > > > >Sorry A.D. - didn't notice that. You normally know very well what you >are doing but this With .Add(..) thingy looks strange to me. > >It may be perfectly OK ... but 3 seconds? > > > >/gustav > > > > >>> markamatte at hotmail.com 15-05-2006 18:39 >>> > > >Gustav, > > > >A.D.Tejpal sent this code...I hate to admit...but I don't quite >understand.I've tried to step through the code...but it doesn't do the > >"Fn_SelectedBlock" part until after I finish stepping though( I can > >actually see the VBA window "zip" through that function...after it >appeard to be done) if that makes any sense???...and in all honesty I'm not >sure what to change. > > > >Thanks, > > > >Mark A. Matte > > > > >From: "Gustav Brock" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: > > >Subject: Re: [AccessD] Select Multiple records on form > > >Date: Mon, 15 May 2006 18:30:29 +0200 > > > > > >Hi Mark > > > > > > With Me(ControlName).FormatConditions > > > .Delete > > > Cdn = "Fn_SelectedBlock(ID) <> 0" > > > With .Add(acExpression, , Cdn) > > > .BackColor = 16777164 > > > .FontBold = True > > > End With > > > End With > > > > > >That code looks clunky to me. Did you try changing it to something >that > > >specifically Set a FormatCondition object, then adjusts properties > > >BackColor and FontBold of this? > > > > > >/gustav >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue May 16 10:12:22 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 16 May 2006 08:12:22 -0700 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: Message-ID: Thanks for the memory boost, Jim. I knew I had encountered it but couldn't remember the details. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, May 15, 2006 5:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] To re-link or not to re-link... Charlotte, A2 had "attachment fatigue". For no apparent reason, at some point, linked tables would simply stop working. A lot of developers got into the habit of re-linking at startup every time. I myself check one table in each BE and if it can't open the table, I force a re-link of all the tables associated with that BE. I prompt the user for the location of the BE to, so if it's been moved or it's un-available, they can correct it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 15, 2006 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... It seems to me there were some issues in the early versions if the linked database were not available (moved, renamed, network down) because the condition seemed to persist even when the linked file became available again, but I may be misremembering. In any case, that was overcome long ago and may have had more to do with the OS than with Access itself. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Tue May 16 10:33:14 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 16 May 2006 11:33:14 -0400 Subject: [AccessD] To re-link or not to re-link... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB2FCF@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353F4@ADGSERVER> Thanks everyone for your input. I think we'll try the one table relink thing that several have suggested. I'll also look at making sure I have a connection to the BE when I do have to re-link all of the tables (the user switch back ends every now and then). Thanks again, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 16, 2006 11:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... Thanks for the memory boost, Jim. I knew I had encountered it but couldn't remember the details. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, May 15, 2006 5:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] To re-link or not to re-link... Charlotte, A2 had "attachment fatigue". For no apparent reason, at some point, linked tables would simply stop working. A lot of developers got into the habit of re-linking at startup every time. I myself check one table in each BE and if it can't open the table, I force a re-link of all the tables associated with that BE. I prompt the user for the location of the BE to, so if it's been moved or it's un-available, they can correct it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 15, 2006 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... It seems to me there were some issues in the early versions if the linked database were not available (moved, renamed, network down) because the condition seemed to persist even when the linked file became available again, but I may be misremembering. In any case, that was overcome long ago and may have had more to do with the OS than with Access itself. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby From Jdemarco at hudsonhealthplan.org Tue May 16 10:35:53 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 16 May 2006 11:35:53 -0400 Subject: [AccessD] OT: Virtual OS software... Message-ID: <08F823FD83787D4BA0B99CA580AD3C74016C46B4@TTNEXCHCL2.hshhp.com> I don't see why not. We haven't implemented yet but that's the plan. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, May 16, 2006 9:28 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Virtual OS software... Hi Jim. Thanks for the reply. Everything I've seen seems to point to the VMWare product. That is a really cool idea about recreating the user's machines. Can you take any image from any system and do this? Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Tuesday, May 16, 2006 8:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Virtual OS software... We used VMWare a couple of years back to help us create an install that needed to work in NT 4.0, Win2K and WinXP. It was easy to use and saved tons of time in reboot time alone. We are going to use it again to create some virtual sandboxes for developer tests by recreating user's machines in the VM. Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, May 16, 2006 7:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Virtual OS software... Any of you have any preferences between Virtual PC and VMWare Workstation? I am looking at getting one of these to: 1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, etc. 2) To check beta or new software. 3) Run various flavors of Linux. 4) And in general, be able to play around with stuff without worrying about hosing my main system. 5) So I don't have to multi-boot any more. So, if you have any thoughts on these, I'd love to hear them. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue May 16 11:08:40 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 16 May 2006 09:08:40 -0700 Subject: [AccessD] OT: Virtual OS software... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D353F2@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA30D353F2@ADGSERVER> Message-ID: <4469F908.5020607@shaw.ca> A lot of big shops are getting into this with a slightly different flavour What they used to do was have one application per server, if they had more than that and an app failed it could bring down multiple applications. Now they put the one application on a virtual pc via an image copy, but you can have multiple virtual pc's running on a server, if one fails it doesn't bring down the entire server. This reduces the number of servers required on a site. And you have a new hot buzz word Virtual Servers. This is the gist of it but is a bit more involved. Sooner or later you maybe installing Access applications as a virtual PC. By the way you can also install Windows on a 2 gig PC flash drive via PCBart. I have users who run small Access apps this way in shops that don't allow Access installations. Bobby Heid wrote: >Hi Jim. > >Thanks for the reply. Everything I've seen seems to point to the VMWare >product. > >That is a really cool idea about recreating the user's machines. Can you >take any image from any system and do this? > >Thanks, >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >Sent: Tuesday, May 16, 2006 8:40 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: Virtual OS software... > > >We used VMWare a couple of years back to help us create an install that >needed to work in NT 4.0, Win2K and WinXP. It was easy to use and saved >tons of time in reboot time alone. > >We are going to use it again to create some virtual sandboxes for >developer tests by recreating user's machines in the VM. > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid >Sent: Tuesday, May 16, 2006 7:16 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] OT: Virtual OS software... > >Any of you have any preferences between Virtual PC and VMWare >Workstation? > >I am looking at getting one of these to: >1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, >etc. >2) To check beta or new software. >3) Run various flavors of Linux. >4) And in general, be able to play around with stuff without worrying >about hosing my main system. >5) So I don't have to multi-boot any more. > >So, if you have any thoughts on these, I'd love to hear them. > >Thanks, >Bobby > > > -- Marty Connelly Victoria, B.C. Canada From adtp at hotmail.com Tue May 16 11:42:36 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Tue, 16 May 2006 22:12:36 +0530 Subject: [AccessD] Select Multiple records on form References: Message-ID: Mark, So long as the group of records remain in a selected state, and after you have released the mouse button, the code provided by me earlier, ensures continued highlighting of such records in a special color, till the selection gets undone (e.g. user clicking on any control). For your ready reference, selection of records is done as follows: (a) Single record - Click on record selector. (b) Multiple records at a time - Click on record selector of top desired record and drag the mouse to record selector of bottom desired record. (Alternatively, you can hold down shift key and then click the record selector for bottom desired record, or use Dn Arrow key to expand the selection suitably). Note - Using Up/Dn arrow keys alone, when a group of records is already in selected state, moves the whole selection mask accordingly. Apparently, something might be amiss in actual implementation of suggested solution at your end. It might be helpful to look at the sample db mentioned in my previous post. It is in Access 2000 file format and is working smoothly on Access 2003 installation. On Access 2K, time lag is encountered as stated earlier, but results are consistent. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Tuesday, May 16, 2006 20:11 Subject: Re: [AccessD] Select Multiple records on form Thanks A.D With the code you sent...when I click on a record...was it supposed to stay selected? or was the form supposed to return to its original state on its own? The 3 seconds referred to wasn't a 'lag' as much as the duration of the formatting. The selection only lasted that long. If I used a shorter recordset...I didn't see the formatting at all. Thanks, Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] Select Multiple records on form >Date: Tue, 16 May 2006 19:55:10 +0530 > >Mark, Gustav, > > 1 - Comments on points raised by Gustav: > 1.1 - Change of status requiring re-rendering of colors on >controls governed by conditional formatting involves slight time lag, >though in simplest of cases it may hardly be noticeable. > 1.2 - The phenomenon gets further accentuated when max allowed >limit of three format conditions is fully exploited, and the expressions >used therein are not merely verifying the status of a particular record but >are dependant upon user defined functions dealing with recordsets. > 1.3 - Block-size involved (number of cells i.e. rows x columns), >for which re-rendering of colors is to be implemented, also contributes to >time lag. Overall number of records in form's record source also has a >bearing, as each record needs to be tested against the condition even if it >does not qualify for application of color. > 1.4 - For dynamic formatting at run time, editing the expression / >color / font of existing condition visa-vis application of brand new >condition is not found to provide any advantage in respect of time lag >discussed above. On the other hand, with edit approach, the revision does >not take effect unless refresh action is also performed on the form. > 1.5 - For the present case, involving conditional formatting of >selected block of records on a continuous form (Access 2000 file format), >performance of dynamic conditional highlighting is found to be much better >in Access 2003 installation, where the status change gets implemented in >just a flicker. In case of Access 2K & XP installations, the time lag is >found to be significantly more noticeable. > > 2 - Comments on points raised by Mark: > 2.1 - When you drag the mouse over record selectors for multiple >selection, form's click event fires only after the mouse button is finally >released on reaching the last selected record. It is this click event that >sets up revised conditional formatting of records falling in the selected >block. > 2.2 - Fn_SelectedBlock() is used by the expression in format >condition and verifies whether the given record falls in currently selected >block. It takes primary key number as its argument and returns 1 if true, >otherwise zero. AS explained in para 2.1 above, Fn_SelectedBlock() comes >into play only after the mouse button is finally released on reaching the >last selected record. > 2.3 - In one of your posts, you stated that you also wish to keep >track of non-contiguous selected records. Non-contiguous records can not >simultaneously form part of a given block of current selection. Perhaps you >want to keep track of all previously selected records, even those not >falling in current selection block. If so, this can be done. > 2.4 - My sample db ContFormsKeyNavAndHighLightMultiSelect, covers >this requirement and should become available at Rogers Access Library >shortly. It features: > (a) Key Navigation (Datasheet Style) > (b) Graded Highlighting Of Multiple Selected Records identifying: > (i) Current record > (ii) Current selection block > (iii) Other records, selected any time earlier in current >session > Note - Primary key numbers of all selected records (whether >forming part of current block or not) are stored in a form level global >variable. > >Best wishes, >A.D.Tejpal >--------------- > > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Monday, May 15, 2006 23:11 > Subject: Re: [AccessD] Select Multiple records on form> > > Gustav, > > Thanks for the compliment. As I started going through the code line by >line...it got more confusing. Apparently the function "Fn_SelectedBlock" >goes through each control...but 1 record at a time. > > The thing is if you are stepping through the code...when it gets to >where it calls "Fn_SelectedBlock"...it does NOT go there...it just >continues on...then when you get to the end of the code(hit F8 1 last time >on END SUB)...it zips through the function"Fn_SelectedBlock", without >breaking. > > This code, in my opinion, is doing something very 'cool'...almost what I >need...but just out of my understanding. > > Thanks, > > Mark A. Matte > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Mon, 15 May 2006 18:53:48 +0200 > > > >Hi Mark and A.D. > > > >Sorry A.D. - didn't notice that. You normally know very well what you are doing but this With .Add(..) thingy looks strange to me. > >It may be perfectly OK ... but 3 seconds? > > > >/gustav From markamatte at hotmail.com Tue May 16 11:50:04 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 16 May 2006 16:50:04 +0000 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: A.D Thanks...I must have done something wrong...when I click on a record...it is selected for about 3 seconds and then the formatting "goes away", simply put. If I use a smaller recordset...I don't see the formatting at all. I will check out the example. Thanks Again, Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] Select Multiple records on form >Date: Tue, 16 May 2006 22:12:36 +0530 > >Mark, > > So long as the group of records remain in a selected state, and after >you have released the mouse button, the code provided by me earlier, >ensures continued highlighting of such records in a special color, till the >selection gets undone (e.g. user clicking on any control). > > For your ready reference, selection of records is done as follows: > (a) Single record - Click on record selector. > (b) Multiple records at a time - Click on record selector of top >desired record and drag the mouse to record selector of bottom desired >record. (Alternatively, you can hold down shift key and then click the >record selector for bottom desired record, or use Dn Arrow key to expand >the selection suitably). > Note - Using Up/Dn arrow keys alone, when a group of records is >already in selected state, moves the whole selection mask accordingly. > > Apparently, something might be amiss in actual implementation of >suggested solution at your end. It might be helpful to look at the sample >db mentioned in my previous post. It is in Access 2000 file format and is >working smoothly on Access 2003 installation. On Access 2K, time lag is >encountered as stated earlier, but results are consistent. > >Best wishes, >A.D.Tejpal >--------------- > > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Tuesday, May 16, 2006 20:11 > Subject: Re: [AccessD] Select Multiple records on form > > > Thanks A.D > > With the code you sent...when I click on a record...was it supposed to >stay selected? or was the form supposed to return to its original state on >its own? > > The 3 seconds referred to wasn't a 'lag' as much as the duration of the > formatting. The selection only lasted that long. If I used a shorter > recordset...I didn't see the formatting at all. > > Thanks, > > Mark A. Matte > > > >From: "A.D.TEJPAL" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >CC: ADT > >Subject: Re: [AccessD] Select Multiple records on form > >Date: Tue, 16 May 2006 19:55:10 +0530 > > > >Mark, Gustav, > > > > 1 - Comments on points raised by Gustav: > > 1.1 - Change of status requiring re-rendering of colors on > >controls governed by conditional formatting involves slight time lag, > >though in simplest of cases it may hardly be noticeable. > > 1.2 - The phenomenon gets further accentuated when max allowed > >limit of three format conditions is fully exploited, and the >expressions > >used therein are not merely verifying the status of a particular record >but > >are dependant upon user defined functions dealing with recordsets. > > 1.3 - Block-size involved (number of cells i.e. rows x >columns), > >for which re-rendering of colors is to be implemented, also contributes >to > >time lag. Overall number of records in form's record source also has a > >bearing, as each record needs to be tested against the condition even >if it > >does not qualify for application of color. > > 1.4 - For dynamic formatting at run time, editing the >expression / > >color / font of existing condition visa-vis application of brand new > >condition is not found to provide any advantage in respect of time lag > >discussed above. On the other hand, with edit approach, the revision >does > >not take effect unless refresh action is also performed on the form. > > 1.5 - For the present case, involving conditional formatting >of > >selected block of records on a continuous form (Access 2000 file >format), > >performance of dynamic conditional highlighting is found to be much >better > >in Access 2003 installation, where the status change gets implemented >in > >just a flicker. In case of Access 2K & XP installations, the time lag >is > >found to be significantly more noticeable. > > > > 2 - Comments on points raised by Mark: > > 2.1 - When you drag the mouse over record selectors for >multiple > >selection, form's click event fires only after the mouse button is >finally > >released on reaching the last selected record. It is this click event >that > >sets up revised conditional formatting of records falling in the >selected > >block. > > 2.2 - Fn_SelectedBlock() is used by the expression in format > >condition and verifies whether the given record falls in currently >selected > >block. It takes primary key number as its argument and returns 1 if >true, > >otherwise zero. AS explained in para 2.1 above, Fn_SelectedBlock() >comes > >into play only after the mouse button is finally released on reaching >the > >last selected record. > > 2.3 - In one of your posts, you stated that you also wish to >keep > >track of non-contiguous selected records. Non-contiguous records can >not > >simultaneously form part of a given block of current selection. Perhaps >you > >want to keep track of all previously selected records, even those not > >falling in current selection block. If so, this can be done. > > 2.4 - My sample db ContFormsKeyNavAndHighLightMultiSelect, >covers > >this requirement and should become available at Rogers Access Library > >shortly. It features: > > (a) Key Navigation (Datasheet Style) > > (b) Graded Highlighting Of Multiple Selected Records >identifying: > > (i) Current record > > (ii) Current selection block > > (iii) Other records, selected any time earlier in current > >session > > Note - Primary key numbers of all selected records >(whether > >forming part of current block or not) are stored in a form level global > >variable. > > > >Best wishes, > >A.D.Tejpal > >--------------- > > > > ----- Original Message ----- > > From: Mark A Matte > > To: accessd at databaseadvisors.com > > Sent: Monday, May 15, 2006 23:11 > > Subject: Re: [AccessD] Select Multiple records on form> > > > > Gustav, > > > > Thanks for the compliment. As I started going through the code line >by > >line...it got more confusing. Apparently the function >"Fn_SelectedBlock" > >goes through each control...but 1 record at a time. > > > > The thing is if you are stepping through the code...when it gets to > >where it calls "Fn_SelectedBlock"...it does NOT go there...it just > >continues on...then when you get to the end of the code(hit F8 1 last >time > >on END SUB)...it zips through the function"Fn_SelectedBlock", without > >breaking. > > > > This code, in my opinion, is doing something very 'cool'...almost >what I > >need...but just out of my understanding. > > > > Thanks, > > > > Mark A. Matte > > > > > > >From: "Gustav Brock" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: > > >Subject: Re: [AccessD] Select Multiple records on form > > >Date: Mon, 15 May 2006 18:53:48 +0200 > > > > > >Hi Mark and A.D. > > > > > >Sorry A.D. - didn't notice that. You normally know very well what >you are doing but this With .Add(..) thingy looks strange to me. > > >It may be perfectly OK ... but 3 seconds? > > > > > >/gustav >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue May 16 11:57:55 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 16 May 2006 09:57:55 -0700 Subject: [AccessD] OT: Virtual OS software... In-Reply-To: <4469F908.5020607@shaw.ca> References: <916187228923D311A6FE00A0CC3FAA30D353F2@ADGSERVER> <4469F908.5020607@shaw.ca> Message-ID: <446A0493.8030503@shaw.ca> Ooops got that wrong it is BartPE, it creates a bootable WinXP CD that you can add various debugging tools to or Access programs etc. This is no cost. Bart's Preinstalled Environment (BartPE) bootable live windows CD/DVD http://www.nu2.nu/pebuilder/ Then use Flash Boot a 20 Euro product to - convert BartPE bootable CD-ROM to bootable USB disk - convert a bootable CD-ROM to USB Flash disk - duplicate USB flash disk. http://www.prime-expert.com/flashboot/features.php More info http://techrepublic.com.com/5254-6257-0.html?forumID=99&threadID=173921&messageID=2006318&id=3334484 http://www.911cd.net/forums/lofiversion/index.php/t14180.html http://www.911cd.net/forums//index.php?showtopic=12771&pid=103660&st=20&#entry103660 MartyConnelly wrote: >A lot of big shops are getting into this with a slightly different flavour >What they used to do was have one application per server, if they had more >than that and an app failed it could bring down multiple applications. >Now they put the one application on a virtual pc via an image copy, but you >can have multiple virtual pc's running on a server, if one fails it doesn't >bring down the entire server. This reduces the number of servers required >on a site. And you have a new hot buzz word Virtual Servers. >This is the gist of it but is a bit more involved. >Sooner or later you maybe installing Access applications as a virtual PC. > >By the way you can also install Windows on a 2 gig PC flash drive via >PCBart. >I have users who run small Access apps this way in shops that don't >allow Access >installations. > > >Bobby Heid wrote: > > > >>Hi Jim. >> >>Thanks for the reply. Everything I've seen seems to point to the VMWare >>product. >> >>That is a really cool idea about recreating the user's machines. Can you >>take any image from any system and do this? >> >>Thanks, >>Bobby >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >>Sent: Tuesday, May 16, 2006 8:40 AM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] OT: Virtual OS software... >> >> >>We used VMWare a couple of years back to help us create an install that >>needed to work in NT 4.0, Win2K and WinXP. It was easy to use and saved >>tons of time in reboot time alone. >> >>We are going to use it again to create some virtual sandboxes for >>developer tests by recreating user's machines in the VM. >> >>Jim DeMarco >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid >>Sent: Tuesday, May 16, 2006 7:16 AM >>To: 'Access Developers discussion and problem solving' >>Subject: [AccessD] OT: Virtual OS software... >> >>Any of you have any preferences between Virtual PC and VMWare >>Workstation? >> >>I am looking at getting one of these to: >>1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, >>etc. >>2) To check beta or new software. >>3) Run various flavors of Linux. >>4) And in general, be able to play around with stuff without worrying >>about hosing my main system. >>5) So I don't have to multi-boot any more. >> >>So, if you have any thoughts on these, I'd love to hear them. >> >>Thanks, >>Bobby >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From bheid at appdevgrp.com Tue May 16 12:31:40 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 16 May 2006 13:31:40 -0400 Subject: [AccessD] OT: Virtual OS software... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB300A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D353F5@ADGSERVER> Thanks for the info Marty. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, May 16, 2006 12:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Virtual OS software... Ooops got that wrong it is BartPE, it creates a bootable WinXP CD that you can add various debugging tools to or Access programs etc. This is no cost. Bart's Preinstalled Environment (BartPE) bootable live windows CD/DVD http://www.nu2.nu/pebuilder/ Then use Flash Boot a 20 Euro product to - convert BartPE bootable CD-ROM to bootable USB disk - convert a bootable CD-ROM to USB Flash disk - duplicate USB flash disk. http://www.prime-expert.com/flashboot/features.php More info http://techrepublic.com.com/5254-6257-0.html?forumID=99&threadID=173921&mess ageID=2006318&id=3334484 http://www.911cd.net/forums/lofiversion/index.php/t14180.html http://www.911cd.net/forums//index.php?showtopic=12771&pid=103660&st=20&#ent ry103660 MartyConnelly wrote: >A lot of big shops are getting into this with a slightly different flavour >What they used to do was have one application per server, if they had more >than that and an app failed it could bring down multiple applications. >Now they put the one application on a virtual pc via an image copy, but you >can have multiple virtual pc's running on a server, if one fails it doesn't >bring down the entire server. This reduces the number of servers required >on a site. And you have a new hot buzz word Virtual Servers. >This is the gist of it but is a bit more involved. >Sooner or later you maybe installing Access applications as a virtual PC. > >By the way you can also install Windows on a 2 gig PC flash drive via >PCBart. >I have users who run small Access apps this way in shops that don't >allow Access >installations. > > >Bobby Heid wrote: > > > >>Hi Jim. >> >>Thanks for the reply. Everything I've seen seems to point to the VMWare >>product. >> >>That is a really cool idea about recreating the user's machines. Can you >>take any image from any system and do this? >> >>Thanks, >>Bobby >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >>Sent: Tuesday, May 16, 2006 8:40 AM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] OT: Virtual OS software... >> >> >>We used VMWare a couple of years back to help us create an install that >>needed to work in NT 4.0, Win2K and WinXP. It was easy to use and saved >>tons of time in reboot time alone. >> >>We are going to use it again to create some virtual sandboxes for >>developer tests by recreating user's machines in the VM. >> >>Jim DeMarco >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid >>Sent: Tuesday, May 16, 2006 7:16 AM >>To: 'Access Developers discussion and problem solving' >>Subject: [AccessD] OT: Virtual OS software... >> >>Any of you have any preferences between Virtual PC and VMWare >>Workstation? >> >>I am looking at getting one of these to: >>1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, >>etc. >>2) To check beta or new software. >>3) Run various flavors of Linux. >>4) And in general, be able to play around with stuff without worrying >>about hosing my main system. >>5) So I don't have to multi-boot any more. >> >>So, if you have any thoughts on these, I'd love to hear them. >> >>Thanks, >>Bobby >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From fhtapia at gmail.com Tue May 16 12:36:11 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 16 May 2006 10:36:11 -0700 Subject: [AccessD] OT: Virtual OS software... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D353E8@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA30D353E8@ADGSERVER> Message-ID: We went with VMware for our Virtual Machines and Servers. Primarily because if you go with VPC you need to also make sure you have SP1 installed otherwise it doesn't perform very well. I know less about how it works with diffrent operating systems as I have not fully tested it. With VMware Workstation and Server (beta3) all my machines work flawlessly I have a Linux/Oracle VM, Ubuntu (linux flavors). and some Windows 2003/XP/2000 VMs as well. I use a clean VM where nothing else is installed to test my Access2003 installs on. And when new shareware hits the streets I can also use these machines as the test beds. typically I also use briddged networking adapters so that the machine has it's own IP and Mac diffrent from the hosts. What's neat is that it's easy enough to move around your VMs from machine to machine, and that's not necessarily true of VPCs. On 5/16/06, Bobby Heid wrote: > Any of you have any preferences between Virtual PC and VMWare Workstation? > > I am looking at getting one of these to: > 1) Have a pristine copy of XP (legal), 2000, and 98 to test installs, etc. > 2) To check beta or new software. > 3) Run various flavors of Linux. > 4) And in general, be able to play around with stuff without worrying about > hosing my main system. > 5) So I don't have to multi-boot any more. > > So, if you have any thoughts on these, I'd love to hear them. > > Thanks, > Bobby -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From bchacc at san.rr.com Tue May 16 12:41:35 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 16 May 2006 10:41:35 -0700 Subject: [AccessD] Import Foxpro into Access Message-ID: <446A0ECF.8030608@san.rr.com> Dear List: I've got a bunch of FoxPro dbf files and their corresponding CDX files I'm trying to link or import into an access database. In the import there are dbase 'files of type' but that doesn't work. The import wizard looks for .ndx files which I think are the dbase index files. Has anyone done this before? MTIA, Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From martyconnelly at shaw.ca Tue May 16 13:29:12 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 16 May 2006 11:29:12 -0700 Subject: [AccessD] Import Foxpro into Access In-Reply-To: <446A0ECF.8030608@san.rr.com> References: <446A0ECF.8030608@san.rr.com> Message-ID: <446A19F8.7020901@shaw.ca> You cannot connect directly to FoxPro databases in Access 2003 http://support.microsoft.com/?kbid=824264 You maybe skipping this step 3. In the Administrative Tools window, double-click Data Sources (ODBC), and then add a new ODBC data source for your FoxPro database or tables by selecting the appropriate Visual FoxPro driver. Rocky Smolin - Beach Access Software wrote: >Dear List: > >I've got a bunch of FoxPro dbf files and their corresponding CDX files >I'm trying to link or import into an access database. In the import >there are dbase 'files of type' but that doesn't work. The import >wizard looks for .ndx files which I think are the dbase index files. >Has anyone done this before? > >MTIA, > >Rocky > > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Tue May 16 13:37:54 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 16 May 2006 20:37:54 +0200 Subject: [AccessD] To re-link or not to re-link... Message-ID: Hi Bobby In my experience you don't even need to go that "far". Just open a mandatory table and catch the error. If success, fine; if fail, either the backend has been moved or - more likely - a network error exists or the drive mapping has been lost or the backend is corrupted. Each of these errors calls for very different further checks as well as messages to and actions from the user. But still no relinking - as soon as the error has been corrected, the app will run again. /gustav >>> bheid at appdevgrp.com 16-05-2006 17:33:14 >>> Thanks everyone for your input. I think we'll try the one table relink thing that several have suggested. I'll also look at making sure I have a connection to the BE when I do have to re-link all of the tables (the user switch back ends every now and then). Thanks again, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 16, 2006 11:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... Thanks for the memory boost, Jim. I knew I had encountered it but couldn't remember the details. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, May 15, 2006 5:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] To re-link or not to re-link... Charlotte, A2 had "attachment fatigue". For no apparent reason, at some point, linked tables would simply stop working. A lot of developers got into the habit of re-linking at startup every time. I myself check one table in each BE and if it can't open the table, I force a re-link of all the tables associated with that BE. I prompt the user for the location of the BE to, so if it's been moved or it's un-available, they can correct it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 15, 2006 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... It seems to me there were some issues in the early versions if the linked database were not available (moved, renamed, network down) because the condition seemed to persist even when the linked file became available again, but I may be misremembering. In any case, that was overcome long ago and may have had more to do with the OS than with Access itself. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby From Gustav at cactus.dk Tue May 16 14:14:49 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 16 May 2006 21:14:49 +0200 Subject: [AccessD] To re-link or not to re-link... Message-ID: Hi Bobby Sorry, too fast, of course if the path to the backend has changed permanently, relinking is needed. /gustav >>> Gustav at cactus.dk 16-05-2006 20:37:54 >>> Hi Bobby In my experience you don't even need to go that "far". Just open a mandatory table and catch the error. If success, fine; if fail, either the backend has been moved or - more likely - a network error exists or the drive mapping has been lost or the backend is corrupted. Each of these errors calls for very different further checks as well as messages to and actions from the user. But still no relinking - as soon as the error has been corrected, the app will run again. /gustav From JHewson at karta.com Tue May 16 14:30:52 2006 From: JHewson at karta.com (Jim Hewson) Date: Tue, 16 May 2006 14:30:52 -0500 Subject: [AccessD] To re-link or not to re-link... Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C040E359D@karta-exc-int.Karta.com> I concur. I have several databases that use the BE/FE split. I use the UNC path with no problems. The shortcut vs. file on the user's machine debate is an issue that needs to be addressed. I did learned (from this list) - once loaded, it's faster to have the FE on the user's machine; especially if several queries run when opening the main form. If the path to the BE does not change, it's quite easy to move the FE without relinking. For example: The BE is located on C:\Data. The FE can reside anywhere on the machine. That includes my Dev Machine; since I have a directory C:\Data on my machine. The user can place the modified FE anywhere on the C: Drive and it will run correctly. Also, if the path is UNC, the FE can be placed anywhere on the network. Jim jhewson at karta.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, May 16, 2006 1:38 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby In my experience you don't even need to go that "far". Just open a mandatory table and catch the error. If success, fine; if fail, either the backend has been moved or - more likely - a network error exists or the drive mapping has been lost or the backend is corrupted. Each of these errors calls for very different further checks as well as messages to and actions from the user. But still no relinking - as soon as the error has been corrected, the app will run again. /gustav >>> bheid at appdevgrp.com 16-05-2006 17:33:14 >>> Thanks everyone for your input. I think we'll try the one table relink thing that several have suggested. I'll also look at making sure I have a connection to the BE when I do have to re-link all of the tables (the user switch back ends every now and then). Thanks again, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, May 16, 2006 11:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... Thanks for the memory boost, Jim. I knew I had encountered it but couldn't remember the details. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, May 15, 2006 5:29 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] To re-link or not to re-link... Charlotte, A2 had "attachment fatigue". For no apparent reason, at some point, linked tables would simply stop working. A lot of developers got into the habit of re-linking at startup every time. I myself check one table in each BE and if it can't open the table, I force a re-link of all the tables associated with that BE. I prompt the user for the location of the BE to, so if it's been moved or it's un-available, they can correct it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 15, 2006 11:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] To re-link or not to re-link... It seems to me there were some issues in the early versions if the linked database were not available (moved, renamed, network down) because the condition seemed to persist even when the linked file became available again, but I may be misremembering. In any case, that was overcome long ago and may have had more to do with the OS than with Access itself. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, May 15, 2006 9:09 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] To re-link or not to re-link... Hi Bobby We've never (since and including Access 2.0) seen any issues by _not_ relinking at every launch of the app. That's for JET tables. Neither have I seen such a need for SQL Server. It may be different for other (ODBC connected) engines though. Why not just disable the relinking and watch what happens? /gustav >>> bheid at appdevgrp.com 15-05-2006 17:33 >>> Hey, We have a system that was originally developed in Access 97. There were a number of tables that were linked to the FE. There were issues (not sure what they were as no one remembers and I did not write the original) with the system if the tables were not re-linked each time the system is loaded. Well, here we are today and the app has grown into Access XP. The system has grown and now has over 100 tables. As such, it takes about .6 seconds per table to re-link them all. Does anyone know what the issues may have been before and if they still exist in Access XP? Anyone have any pointers to further information? Thanks, Bobby -- 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 May 16 14:48:10 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 16 May 2006 12:48:10 -0700 Subject: [AccessD] Import Foxpro into Access In-Reply-To: <446A19F8.7020901@shaw.ca> References: <446A0ECF.8030608@san.rr.com> <446A19F8.7020901@shaw.ca> Message-ID: <446A2C7A.8030702@san.rr.com> Thanks Marty. That got me a little closer. The two tables I need, though, don't show up when trying to import. The client is sending me a CD with all the files. Maybe then... Rocky MartyConnelly wrote: > You cannot connect directly to FoxPro databases in Access 2003 > > http://support.microsoft.com/?kbid=824264 > > You maybe skipping this step > > 3. In the Administrative Tools window, double-click Data Sources (ODBC), > and then add a new ODBC data source for your FoxPro database or tables > by selecting the appropriate Visual FoxPro driver. > > Rocky Smolin - Beach Access Software wrote: > > >> Dear List: >> >> I've got a bunch of FoxPro dbf files and their corresponding CDX files >> I'm trying to link or import into an access database. In the import >> there are dbase 'files of type' but that doesn't work. The import >> wizard looks for .ndx files which I think are the dbase index files. >> Has anyone done this before? >> >> MTIA, >> >> Rocky >> >> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From kp at sdsonline.net Tue May 16 18:18:36 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 17 May 2006 09:18:36 +1000 Subject: [AccessD] Other lists Message-ID: <005f01c6793f$103272c0$6601a8c0@office> (Cross posted - AccessD and AccessD VB) Has anyone encountered a vb.net forum that posts email to members the way ours does? (Also for SQL Server?) ______________________________________ Kath Pelletti Software Design and Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 Email: KP at SDSOnline.net From john at winhaven.net Tue May 16 21:14:14 2006 From: john at winhaven.net (John Bartow) Date: Tue, 16 May 2006 21:14:14 -0500 Subject: [AccessD] Other lists In-Reply-To: <005f01c6793f$103272c0$6601a8c0@office> Message-ID: <016b01c67957$989205a0$6502a8c0@ScuzzPaq> Hi Kath, We had discussed adding a .net list here on dba but only 10 people responded to the feeler mail. So for now vb.net can be discussed on the dba-VB list. Otherwise, I can't be of much help. Most technical lists have been going to forum format and I find that I just don't participate much when involved in forums so I haven't looked lately. John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, May 16, 2006 6:19 PM To: AccessD VB List; Access D Normal List Subject: [AccessD] Other lists (Cross posted - AccessD and AccessD VB) Has anyone encountered a vb.net forum that posts email to members the way ours does? (Also for SQL Server?) ______________________________________ Kath Pelletti Software Design and Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 Email: KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kp at sdsonline.net Tue May 16 21:20:33 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 17 May 2006 12:20:33 +1000 Subject: [AccessD] Other lists References: <016b01c67957$989205a0$6502a8c0@ScuzzPaq> Message-ID: <004301c67958$7a683350$6601a8c0@office> Thanks Jonh - well in that case hopefully the numbers will grow - it's hard to find anything out there which uses this format - I find it much easier than forums. rgds ----- Original Message ----- From: John Bartow To: 'Access Developers discussion and problem solving' Sent: Wednesday, May 17, 2006 12:14 PM Subject: Re: [AccessD] Other lists Hi Kath, We had discussed adding a .net list here on dba but only 10 people responded to the feeler mail. So for now vb.net can be discussed on the dba-VB list. Otherwise, I can't be of much help. Most technical lists have been going to forum format and I find that I just don't participate much when involved in forums so I haven't looked lately. John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, May 16, 2006 6:19 PM To: AccessD VB List; Access D Normal List Subject: [AccessD] Other lists (Cross posted - AccessD and AccessD VB) Has anyone encountered a vb.net forum that posts email to members the way ours does? (Also for SQL Server?) ______________________________________ Kath Pelletti Software Design and Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 Email: KP at SDSOnline.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 newsgrps at dalyn.co.nz Tue May 16 21:46:26 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 17 May 2006 14:46:26 +1200 Subject: [AccessD] Other lists In-Reply-To: <004301c67958$7a683350$6601a8c0@office> References: <016b01c67957$989205a0$6502a8c0@ScuzzPaq> <004301c67958$7a683350$6601a8c0@office> Message-ID: <7.0.1.0.0.20060517144451.01b3b940@dalyn.co.nz> Kath, You could try http://discuss.develop.com They have a number of lists that email. I can't speak for any of them as I have just joined DOTNET-WEB recently. From kp at sdsonline.net Tue May 16 22:07:59 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 17 May 2006 13:07:59 +1000 Subject: [AccessD] Other lists References: <016b01c67957$989205a0$6502a8c0@ScuzzPaq><004301c67958$7a683350$6601a8c0@office> <7.0.1.0.0.20060517144451.01b3b940@dalyn.co.nz> Message-ID: <003001c6795f$1a9feba0$6601a8c0@office> thanks David - I have signed up for the dotnet web and dotnet winforms. It'll be interesting to see how much traffic they get, rgds ----- Original Message ----- From: David Emerson To: Access Developers discussion and problem solving Sent: Wednesday, May 17, 2006 12:46 PM Subject: Re: [AccessD] Other lists Kath, You could try http://discuss.develop.com They have a number of lists that email. I can't speak for any of them as I have just joined DOTNET-WEB recently. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at hotmail.com Tue May 16 23:03:22 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Wed, 17 May 2006 09:33:22 +0530 Subject: [AccessD] Select Multiple records on form References: Message-ID: Mark, Sample db ContFormsKeyNavAndHighLightMultiSelect is now available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. It would be helpful if on opening the db, you first go through the tips (click the command button captioned "Show Tips"). Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Tuesday, May 16, 2006 22:20 Subject: Re: [AccessD] Select Multiple records on form A.D Thanks...I must have done something wrong...when I click on a record...it is selected for about 3 seconds and then the formatting "goes away", simply put. If I use a smaller recordset...I don't see the formatting at all. I will check out the example. Thanks Again, Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] Select Multiple records on form >Date: Tue, 16 May 2006 22:12:36 +0530 > >Mark, > > So long as the group of records remain in a selected state, and after you have released the mouse button, the code provided by me earlier, ensures continued highlighting of such records in a special color, till the selection gets undone (e.g. user clicking on any control). > > For your ready reference, selection of records is done as follows: > (a) Single record - Click on record selector. > (b) Multiple records at a time - Click on record selector of top >desired record and drag the mouse to record selector of bottom desired record. (Alternatively, you can hold down shift key and then click the record selector for bottom desired record, or use Dn Arrow key to expand the selection suitably). > Note - Using Up/Dn arrow keys alone, when a group of records is already in selected state, moves the whole selection mask accordingly. > > Apparently, something might be amiss in actual implementation of >suggested solution at your end. It might be helpful to look at the sample db mentioned in my previous post. It is in Access 2000 file format and is working smoothly on Access 2003 installation. On Access 2K, time lag is encountered as stated earlier, but results are consistent. > >Best wishes, >A.D.Tejpal >--------------- From martyconnelly at shaw.ca Wed May 17 02:24:05 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 17 May 2006 00:24:05 -0700 Subject: [AccessD] Import Foxpro into Access In-Reply-To: <446A2C7A.8030702@san.rr.com> References: <446A0ECF.8030608@san.rr.com> <446A19F8.7020901@shaw.ca> <446A2C7A.8030702@san.rr.com> Message-ID: <446ACF95.1020509@shaw.ca> If I remember right the cdx file is a metafile showing the connections between the dbf and ndx files.and the files used by the foxpro database Rocky Smolin - Beach Access Software wrote: >Thanks Marty. That got me a little closer. The two tables I need, >though, don't show up when trying to import. The client is sending me a >CD with all the files. Maybe then... > >Rocky > > >MartyConnelly wrote: > > >>You cannot connect directly to FoxPro databases in Access 2003 >> >>http://support.microsoft.com/?kbid=824264 >> >>You maybe skipping this step >> >>3. In the Administrative Tools window, double-click Data Sources (ODBC), >>and then add a new ODBC data source for your FoxPro database or tables >>by selecting the appropriate Visual FoxPro driver. >> >>Rocky Smolin - Beach Access Software wrote: >> >> >> >> >>>Dear List: >>> >>>I've got a bunch of FoxPro dbf files and their corresponding CDX files >>>I'm trying to link or import into an access database. In the import >>>there are dbase 'files of type' but that doesn't work. The import >>>wizard looks for .ndx files which I think are the dbase index files. >>>Has anyone done this before? >>> >>>MTIA, >>> >>>Rocky >>> >>> >>> >>> >>> >>> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From markamatte at hotmail.com Wed May 17 09:41:05 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 17 May 2006 14:41:05 +0000 Subject: [AccessD] Other lists In-Reply-To: <004301c67958$7a683350$6601a8c0@office> Message-ID: Kath, For the 'also' part of your post. DBA does have an SQL list. Good Luck, Mark A. Matte >From: "Kath Pelletti" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Other lists >Date: Wed, 17 May 2006 12:20:33 +1000 > >Thanks Jonh - well in that case hopefully the numbers will grow - it's hard >to find anything out there which uses this format - I find it much easier >than forums. > >rgds > ----- Original Message ----- > From: John Bartow > To: 'Access Developers discussion and problem solving' > Sent: Wednesday, May 17, 2006 12:14 PM > Subject: Re: [AccessD] Other lists > > > Hi Kath, > We had discussed adding a .net list here on dba but only 10 people >responded > to the feeler mail. So for now vb.net can be discussed on the dba-VB >list. > > Otherwise, I can't be of much help. Most technical lists have been going >to > forum format and I find that I just don't participate much when involved >in > forums so I haven't looked lately. > > John Bartow, President > Database Advisors, Inc. > Email: mailto:president at databaseadvisors.com > Website: http://www.databaseadvisors.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti > Sent: Tuesday, May 16, 2006 6:19 PM > To: AccessD VB List; Access D Normal List > Subject: [AccessD] Other lists > > (Cross posted - AccessD and AccessD VB) > > Has anyone encountered a vb.net forum that posts email to members the >way > ours does? (Also for SQL Server?) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.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 markamatte at hotmail.com Wed May 17 09:41:21 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 17 May 2006 14:41:21 +0000 Subject: [AccessD] Other lists In-Reply-To: <004301c67958$7a683350$6601a8c0@office> Message-ID: Kath, For the 'also' part of your post. DBA does have an SQL list. Good Luck, Mark A. Matte >From: "Kath Pelletti" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Other lists >Date: Wed, 17 May 2006 12:20:33 +1000 > >Thanks Jonh - well in that case hopefully the numbers will grow - it's hard >to find anything out there which uses this format - I find it much easier >than forums. > >rgds > ----- Original Message ----- > From: John Bartow > To: 'Access Developers discussion and problem solving' > Sent: Wednesday, May 17, 2006 12:14 PM > Subject: Re: [AccessD] Other lists > > > Hi Kath, > We had discussed adding a .net list here on dba but only 10 people >responded > to the feeler mail. So for now vb.net can be discussed on the dba-VB >list. > > Otherwise, I can't be of much help. Most technical lists have been going >to > forum format and I find that I just don't participate much when involved >in > forums so I haven't looked lately. > > John Bartow, President > Database Advisors, Inc. > Email: mailto:president at databaseadvisors.com > Website: http://www.databaseadvisors.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti > Sent: Tuesday, May 16, 2006 6:19 PM > To: AccessD VB List; Access D Normal List > Subject: [AccessD] Other lists > > (Cross posted - AccessD and AccessD VB) > > Has anyone encountered a vb.net forum that posts email to members the >way > ours does? (Also for SQL Server?) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.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 Patricia.O'Connor at otda.state.ny.us Wed May 17 09:55:27 2006 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Wed, 17 May 2006 10:55:27 -0400 Subject: [AccessD] Import Foxpro into Access References: <446A0ECF.8030608@san.rr.com> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE838CA14@EXCNYSM0A1AI.nysemail.nyenet> I have done this before for several colleagues over the last few years. They received them from another or an outside sources. It has been in Access 97 and Access 2k..not sure if I have attempted for Access 2003. I go through the FoxPro ODBC. One thing that I have had to do is make sure the name of the FoxPro file is max 8 (maybe 10) characters otherwise it won't work. So I would usually copy the files so the original is intact and mess with the copy. hth ************************************************************* * Patricia E. 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: accessd-bounces at databaseadvisors.com on behalf of Rocky Smolin - Beach Access Software Sent: Tue 05/16/2006 1:41 PM To: Access Developers discussion and problem solving Subject: [AccessD] Import Foxpro into Access Dear List: I've got a bunch of FoxPro dbf files and their corresponding CDX files I'm trying to link or import into an access database. In the import there are dbase 'files of type' but that doesn't work. The import wizard looks for .ndx files which I think are the dbase index files. Has anyone done this before? 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 john at winhaven.net Wed May 17 10:06:46 2006 From: john at winhaven.net (John Bartow) Date: Wed, 17 May 2006 10:06:46 -0500 Subject: [AccessD] Other lists In-Reply-To: Message-ID: <008901c679c3$843c8460$6502a8c0@ScuzzPaq> Good catch Mark! Thanks, I missed the "also" part completely! Our DBA-SQLServer, DBA-VB and DBA-Tech lists are quite active. DBA-Tech being the catch all list for things not covered on any other list (mostly security issues and hardware lately). John Bartow, President Database Advisors, Inc. Email: mailto:president at databaseadvisors.com Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Kath, For the 'also' part of your post. DBA does have an SQL list. Good Luck, Mark A. Matte > -----Original Message----- > Has anyone encountered a vb.net forum that posts email to members >the way > ours does? (Also for SQL Server?) > > ______________________________________ > Kath Pelletti From bchacc at san.rr.com Wed May 17 10:37:21 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 17 May 2006 08:37:21 -0700 Subject: [AccessD] Import Foxpro into Access In-Reply-To: <446ACF95.1020509@shaw.ca> References: <446A0ECF.8030608@san.rr.com> <446A19F8.7020901@shaw.ca> <446A2C7A.8030702@san.rr.com> <446ACF95.1020509@shaw.ca> Message-ID: <446B4331.9020209@san.rr.com> Foxpro got ndx files? I didn't get any of those from my client. :( He's sending me a CD with as he puts it "the whole fool program". So I'll see what's there. I think with all the right files I could get this stuff into Access. At least with your help I got the ODBC thing working and I think I'd quicker understand Aramaic than those ODBC driver things. Rocky MartyConnelly wrote: > If I remember right the cdx file is a metafile showing the connections > between the dbf and ndx files.and the files used by the foxpro database > > Rocky Smolin - Beach Access Software wrote: > > >> Thanks Marty. That got me a little closer. The two tables I need, >> though, don't show up when trying to import. The client is sending me a >> CD with all the files. Maybe then... >> >> Rocky >> >> >> MartyConnelly wrote: >> >> >> >>> You cannot connect directly to FoxPro databases in Access 2003 >>> >>> http://support.microsoft.com/?kbid=824264 >>> >>> You maybe skipping this step >>> >>> 3. In the Administrative Tools window, double-click Data Sources (ODBC), >>> and then add a new ODBC data source for your FoxPro database or tables >>> by selecting the appropriate Visual FoxPro driver. >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>> >>> >>> >>> >>>> Dear List: >>>> >>>> I've got a bunch of FoxPro dbf files and their corresponding CDX files >>>> I'm trying to link or import into an access database. In the import >>>> there are dbase 'files of type' but that doesn't work. The import >>>> wizard looks for .ndx files which I think are the dbase index files. >>>> Has anyone done this before? >>>> >>>> MTIA, >>>> >>>> Rocky >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From fhtapia at gmail.com Wed May 17 12:36:48 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 17 May 2006 10:36:48 -0700 Subject: [AccessD] Foxpro Message-ID: I'm getting ready to begin working on a "foxpro" db. It's been a really long time since I've used a foxpro db, last time was somewhere in 1992. One question that arose, is in a client/server app is the processing done on the server or the client like access? Thanks, -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From KIsmert at TexasSystems.com Wed May 17 13:49:13 2006 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 17 May 2006 13:49:13 -0500 Subject: [AccessD] Select Multiple records on form In-Reply-To: Message-ID: A.D.: >> Sample db ContFormsKeyNavAndHighLightMultiSelect is now available at Rogers Access Library (other developers library). I tried it, and it works as advertized. There is about a 1/2 second delay on my machine for highlighting. Scrolling drops the highlights, but they re-appear after about a half-second (but this is typical Conditional Formatting behaviour) -Ken -----Original Message----- From: A.D.TEJPAL [mailto:adtp at hotmail.com] Sent: Tuesday, May 16, 2006 11:03 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] Select Multiple records on form Mark, Sample db ContFormsKeyNavAndHighLightMultiSelect is now available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. It would be helpful if on opening the db, you first go through the tips (click the command button captioned "Show Tips"). Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Tuesday, May 16, 2006 22:20 Subject: Re: [AccessD] Select Multiple records on form A.D Thanks...I must have done something wrong...when I click on a record...it is selected for about 3 seconds and then the formatting "goes away", simply put. If I use a smaller recordset...I don't see the formatting at all. I will check out the example. Thanks Again, Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] Select Multiple records on form >Date: Tue, 16 May 2006 22:12:36 +0530 > >Mark, > > So long as the group of records remain in a selected state, and after you have released the mouse button, the code provided by me earlier, ensures continued highlighting of such records in a special color, till the selection gets undone (e.g. user clicking on any control). > > For your ready reference, selection of records is done as follows: > (a) Single record - Click on record selector. > (b) Multiple records at a time - Click on record selector of top >desired record and drag the mouse to record selector of bottom desired record. (Alternatively, you can hold down shift key and then click the record selector for bottom desired record, or use Dn Arrow key to expand the selection suitably). > Note - Using Up/Dn arrow keys alone, when a group of records is already in selected state, moves the whole selection mask accordingly. > > Apparently, something might be amiss in actual implementation of >suggested solution at your end. It might be helpful to look at the sample db mentioned in my previous post. It is in Access 2000 file format and is working smoothly on Access 2003 installation. On Access 2K, time lag is encountered as stated earlier, but results are consistent. > >Best wishes, >A.D.Tejpal >--------------- From fhtapia at gmail.com Wed May 17 15:50:03 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 17 May 2006 13:50:03 -0700 Subject: [AccessD] Odd XP machine Message-ID: I have an application that is used accross the company here. It was written in Access2000 as an ADP. This app works on all windows 2000/XP machines running SP4 and SP2 (respectively). I do have a newer XP machine that was just issued to a user and her system just closes out for no reason after just some usage. Another user that shares her responsiblities is running the exact same version and does not have this problem. I tried upgrading her to Jet4 sp8, and mdac 2.8 but this did not solve her problem. I am working on getting the program up to Access2003, but at this moment in time it's a problem she just has to deal with :(, and I don't have any re-assurance that the problem will go away when we move to 2003. -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From stuart at lexacorp.com.pg Wed May 17 16:29:15 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 18 May 2006 07:29:15 +1000 Subject: [AccessD] Foxpro In-Reply-To: Message-ID: <446C224B.15969.1991BAC9@stuart.lexacorp.com.pg> On 17 May 2006 at 10:36, Francisco Tapia wrote: > I'm getting ready to begin working on a "foxpro" db. It's been a > really long time since I've used a foxpro db, last time was somewhere > in 1992. One question that arose, is in a client/server app is the > processing done on the server or the client like access? > AFAIK, Foxpro doesn't have a separate database engine. At least, the last time I worked with it it didn't. So, like Access, there is nothing to do any processing on the server - it's all client process. -- Stuart From stuart at lexacorp.com.pg Wed May 17 17:24:41 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 18 May 2006 08:24:41 +1000 Subject: [AccessD] Odd XP machine In-Reply-To: Message-ID: <446C2F49.18959.19C47A4D@stuart.lexacorp.com.pg> On 17 May 2006 at 13:50, Francisco Tapia wrote: > I have an application that is used accross the company here. It was > written in Access2000 as an ADP. This app works on all windows > 2000/XP machines running SP4 and SP2 (respectively). I do have a > newer XP machine that was just issued to a user and her system just > closes out for no reason after just some usage. Great technical term, very detailed description of the symptoms - just what we love to hear from users when trying to diagnose problems. What does "system just closes out" mean? Application closes itself? Application fails with an error message? Application disappears with no warning and without cleaning itself up? Application disappears but task manager shows it is still running? OS locks up? BSOD? Computer reboots spontaneously? or something else entirely? -- Stuart From fhtapia at gmail.com Wed May 17 17:33:19 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 17 May 2006 15:33:19 -0700 Subject: [AccessD] Foxpro In-Reply-To: <446C224B.15969.1991BAC9@stuart.lexacorp.com.pg> References: <446C224B.15969.1991BAC9@stuart.lexacorp.com.pg> Message-ID: That's what I suspected. I couldn't find any documentation on the ms site pertaining to this tho. On 5/17/06, Stuart McLachlan wrote: > On 17 May 2006 at 10:36, Francisco Tapia wrote: > > > I'm getting ready to begin working on a "foxpro" db. It's been a > > really long time since I've used a foxpro db, last time was somewhere > > in 1992. One question that arose, is in a client/server app is the > > processing done on the server or the client like access? > > > > AFAIK, Foxpro doesn't have a separate database engine. At least, the last > time I worked with it it didn't. So, like Access, there is nothing to do > any processing on the server - it's all client process. > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Wed May 17 17:40:24 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 17 May 2006 15:40:24 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: <446C2F49.18959.19C47A4D@stuart.lexacorp.com.pg> References: <446C2F49.18959.19C47A4D@stuart.lexacorp.com.pg> Message-ID: the "system just closes out" is defined as: the user will be in her order entry screen either inputting a line item, or header info, or the main status screen when the system for no explainable reason closes and there is no error message displayed, "OR" even logged in event log or anywhere else, its' not a BSOD, or a GPF or an OS lockup, it's just "now you see it now you don't". The app is an ADE format, there are no LDB files, When the app dies, it is not on the task manager, so it's not hung up in the background and just not redrawn. The computer seems to run every other applications just fine w/o fail, it's just this app, and when I run it on her neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they both type about the same words per minute, and fly past the screens at about the same speed. If I trade this user to the other pc, the problem does not surface so it's not her work method. About the biggest diffrence is that the user with the problems has a newer dell than the other user. On 5/17/06, Stuart McLachlan wrote: > On 17 May 2006 at 13:50, Francisco Tapia wrote: > > > I have an application that is used accross the company here. It was > > written in Access2000 as an ADP. This app works on all windows > > 2000/XP machines running SP4 and SP2 (respectively). I do have a > > newer XP machine that was just issued to a user and her system just > > closes out for no reason after just some usage. > > Great technical term, very detailed description of the symptoms - just what > we love to hear from users when trying to diagnose problems. > > What does "system just closes out" mean? > > Application closes itself? > Application fails with an error message? > Application disappears with no warning and without cleaning itself up? > Application disappears but task manager shows it is still running? > OS locks up? > BSOD? > Computer reboots spontaneously? > or something else entirely? > > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From cfoust at infostatsystems.com Wed May 17 17:40:11 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 May 2006 15:40:11 -0700 Subject: [AccessD] Foxpro In-Reply-To: <446C224B.15969.1991BAC9@stuart.lexacorp.com.pg> Message-ID: FoxPro is built on the Rushmore engine, which is why Microsoft bought it in the first place. It's analogous to Access using Jet. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, May 17, 2006 2:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Foxpro On 17 May 2006 at 10:36, Francisco Tapia wrote: > I'm getting ready to begin working on a "foxpro" db. It's been a > really long time since I've used a foxpro db, last time was somewhere > in 1992. One question that arose, is in a client/server app is the > processing done on the server or the client like access? > AFAIK, Foxpro doesn't have a separate database engine. At least, the last time I worked with it it didn't. So, like Access, there is nothing to do any processing on the server - it's all client process. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed May 17 17:47:24 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 May 2006 15:47:24 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: Message-ID: If it isn't an MDAC issue or a Jet service pack issue, it sounds like garbage collection. I've seen that behavior before and have a wretched time tracking it down to things like trying to use the value of a checkbox as an implicit boolean in code. Good luck. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, May 17, 2006 3:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Odd XP machine the "system just closes out" is defined as: the user will be in her order entry screen either inputting a line item, or header info, or the main status screen when the system for no explainable reason closes and there is no error message displayed, "OR" even logged in event log or anywhere else, its' not a BSOD, or a GPF or an OS lockup, it's just "now you see it now you don't". The app is an ADE format, there are no LDB files, When the app dies, it is not on the task manager, so it's not hung up in the background and just not redrawn. The computer seems to run every other applications just fine w/o fail, it's just this app, and when I run it on her neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they both type about the same words per minute, and fly past the screens at about the same speed. If I trade this user to the other pc, the problem does not surface so it's not her work method. About the biggest diffrence is that the user with the problems has a newer dell than the other user. On 5/17/06, Stuart McLachlan wrote: > On 17 May 2006 at 13:50, Francisco Tapia wrote: > > > I have an application that is used accross the company here. It was > > written in Access2000 as an ADP. This app works on all windows > > 2000/XP machines running SP4 and SP2 (respectively). I do have a > > newer XP machine that was just issued to a user and her system just > > closes out for no reason after just some usage. > > Great technical term, very detailed description of the symptoms - just > what we love to hear from users when trying to diagnose problems. > > What does "system just closes out" mean? > > Application closes itself? > Application fails with an error message? > Application disappears with no warning and without cleaning itself up? > Application disappears but task manager shows it is still running? > OS locks up? > BSOD? > Computer reboots spontaneously? > or something else entirely? > > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fhtapia at gmail.com Wed May 17 19:21:12 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 17 May 2006 17:21:12 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: References: Message-ID: ACK! but why just this machine, on her old pc this never occured :( On 5/17/06, Charlotte Foust wrote: > If it isn't an MDAC issue or a Jet service pack issue, it sounds like > garbage collection. I've seen that behavior before and have a wretched > time tracking it down to things like trying to use the value of a > checkbox as an implicit boolean in code. Good luck. > > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco > Tapia > Sent: Wednesday, May 17, 2006 3:40 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Odd XP machine > > the "system just closes out" is defined as: > > the user will be in her order entry screen either inputting a line item, > or header info, or the main status screen when the system for no > explainable reason closes and there is no error message displayed, "OR" > even logged in event log or anywhere else, its' not a BSOD, or a GPF or > an OS lockup, it's just "now you see it now you don't". > > The app is an ADE format, there are no LDB files, When the app dies, it > is not on the task manager, so it's not hung up in the background and > just not redrawn. The computer seems to run every other applications > just fine w/o fail, it's just this app, and when I run it on her > neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they > both type about the same words per minute, and fly past the screens at > about the same speed. If I trade this user to the other pc, the problem > does not surface so it's not her work method. About the biggest > diffrence is that the user with the problems has a newer dell than the > other user. > > > > On 5/17/06, Stuart McLachlan wrote: > > On 17 May 2006 at 13:50, Francisco Tapia wrote: > > > > > I have an application that is used accross the company here. It was > > > > written in Access2000 as an ADP. This app works on all windows > > > 2000/XP machines running SP4 and SP2 (respectively). I do have a > > > newer XP machine that was just issued to a user and her system just > > > closes out for no reason after just some usage. > > > > Great technical term, very detailed description of the symptoms - just > > > what we love to hear from users when trying to diagnose problems. > > > > What does "system just closes out" mean? > > > > Application closes itself? > > Application fails with an error message? > > Application disappears with no warning and without cleaning itself up? > > Application disappears but task manager shows it is still running? > > OS locks up? > > BSOD? > > Computer reboots spontaneously? > > or something else entirely? > > > > > > > > -- > > Stuart > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From dmcafee at pacbell.net Wed May 17 19:34:11 2006 From: dmcafee at pacbell.net (David Mcafee) Date: Wed, 17 May 2006 17:34:11 -0700 (PDT) Subject: [AccessD] Odd XP machine In-Reply-To: Message-ID: <20060518003411.70798.qmail@web80832.mail.yahoo.com> We had issues here some Dells would reboot (the whole computer would restart) some users computers when using Access and others wouldnt. It was driving us nuts. It ended up being that the problem machines had a certain firmware on their ethernet or video card ( I cant remember which) and a certain driver for the card. Others users with just the firmware or just the driver (but not both) wouldn't have the problems. Francisco Tapia wrote: ACK! but why just this machine, on her old pc this never occured :( On 5/17/06, Charlotte Foust wrote: > If it isn't an MDAC issue or a Jet service pack issue, it sounds like > garbage collection. I've seen that behavior before and have a wretched > time tracking it down to things like trying to use the value of a > checkbox as an implicit boolean in code. Good luck. > > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco > Tapia > Sent: Wednesday, May 17, 2006 3:40 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Odd XP machine > > the "system just closes out" is defined as: > > the user will be in her order entry screen either inputting a line item, > or header info, or the main status screen when the system for no > explainable reason closes and there is no error message displayed, "OR" > even logged in event log or anywhere else, its' not a BSOD, or a GPF or > an OS lockup, it's just "now you see it now you don't". > > The app is an ADE format, there are no LDB files, When the app dies, it > is not on the task manager, so it's not hung up in the background and > just not redrawn. The computer seems to run every other applications > just fine w/o fail, it's just this app, and when I run it on her > neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they > both type about the same words per minute, and fly past the screens at > about the same speed. If I trade this user to the other pc, the problem > does not surface so it's not her work method. About the biggest > diffrence is that the user with the problems has a newer dell than the > other user. > > > > On 5/17/06, Stuart McLachlan wrote: > > On 17 May 2006 at 13:50, Francisco Tapia wrote: > > > > > I have an application that is used accross the company here. It was > > > > written in Access2000 as an ADP. This app works on all windows > > > 2000/XP machines running SP4 and SP2 (respectively). I do have a > > > newer XP machine that was just issued to a user and her system just > > > closes out for no reason after just some usage. > > > > Great technical term, very detailed description of the symptoms - just > > > what we love to hear from users when trying to diagnose problems. > > > > What does "system just closes out" mean? > > > > Application closes itself? > > Application fails with an error message? > > Application disappears with no warning and without cleaning itself up? > > Application disappears but task manager shows it is still running? > > OS locks up? > > BSOD? > > Computer reboots spontaneously? > > or something else entirely? > > > > > > > > -- > > Stuart > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kp at sdsonline.net Wed May 17 19:38:19 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Thu, 18 May 2006 10:38:19 +1000 Subject: [AccessD] Other lists References: Message-ID: <002201c67a13$5d9f0df0$6601a8c0@office> Hi Mark - yes, I am on that one. I just thought that while our SQL list (hopefully) builds up, I would try to find another that uses this format, Rgds Kath ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Thursday, May 18, 2006 12:41 AM Subject: Re: [AccessD] Other lists Kath, For the 'also' part of your post. DBA does have an SQL list. Good Luck, Mark A. Matte >From: "Kath Pelletti" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Other lists >Date: Wed, 17 May 2006 12:20:33 +1000 > >Thanks Jonh - well in that case hopefully the numbers will grow - it's hard >to find anything out there which uses this format - I find it much easier >than forums. > >rgds > ----- Original Message ----- > From: John Bartow > To: 'Access Developers discussion and problem solving' > Sent: Wednesday, May 17, 2006 12:14 PM > Subject: Re: [AccessD] Other lists > > > Hi Kath, > We had discussed adding a .net list here on dba but only 10 people >responded > to the feeler mail. So for now vb.net can be discussed on the dba-VB >list. > > Otherwise, I can't be of much help. Most technical lists have been going >to > forum format and I find that I just don't participate much when involved >in > forums so I haven't looked lately. > > John Bartow, President > Database Advisors, Inc. > Email: mailto:president at databaseadvisors.com > Website: http://www.databaseadvisors.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti > Sent: Tuesday, May 16, 2006 6:19 PM > To: AccessD VB List; Access D Normal List > Subject: [AccessD] Other lists > > (Cross posted - AccessD and AccessD VB) > > Has anyone encountered a vb.net forum that posts email to members the >way > ours does? (Also for SQL Server?) > > ______________________________________ > Kath Pelletti > Software Design and Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > Email: KP at SDSOnline.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 newsgrps at dalyn.co.nz Wed May 17 20:35:24 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Thu, 18 May 2006 13:35:24 +1200 Subject: [AccessD] OT - Relative URL Message-ID: <7.0.1.0.0.20060518133425.01b51560@dalyn.co.nz> I am using Visual Studio 2005 Express to create a web site. It is a subset of a larger website and sits in a subfolder to the main web site. I have the default.aspx in a directory called /root1/Subroot1. This is where my web site begins. I would like to link to an image in /root1/Subroot2. What is the syntax for a relative URL to move from Subroot1 down to root1 and then up to Subroot2? From stuart at lexacorp.com.pg Wed May 17 19:41:15 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 18 May 2006 10:41:15 +1000 Subject: [AccessD] Odd XP machine In-Reply-To: <20060518003411.70798.qmail@web80832.mail.yahoo.com> References: Message-ID: <446C4F4B.7031.426C64B1@stuart.lexacorp.com.pg> Another thing than can cause these sorts of problems is bad memory. Try running a memory tester on the PC. A google for "memory tester " will return links to lots of suitable freeware On 17 May 2006 at 17:34, David Mcafee wrote: > We had issues here some Dells would reboot (the whole computer would > restart) some users computers when using Access and others wouldnt. It > was driving us nuts. > > It ended up being that the problem machines had a certain firmware > on their ethernet or video card ( I cant remember which) and a > certain driver for the card. Others users with just the firmware or > just the driver (but not both) wouldn't have the problems. > From bchacc at san.rr.com Wed May 17 21:44:46 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 17 May 2006 19:44:46 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: <446C4F4B.7031.426C64B1@stuart.lexacorp.com.pg> References: <446C4F4B.7031.426C64B1@stuart.lexacorp.com.pg> Message-ID: <446BDF9E.2030100@san.rr.com> Here's a good general purpose diagnostic program: http://www.smithmicro.com/default.tpl?group=family&id1=2 HTH Rocky Stuart McLachlan wrote: > Another thing than can cause these sorts of problems is bad memory. > Try running a memory tester on the PC. A google for "memory tester " will return links to lots > of suitable freeware > > On 17 May 2006 at 17:34, David Mcafee wrote: > > >> We had issues here some Dells would reboot (the whole computer would >> restart) some users computers when using Access and others wouldnt. It >> was driving us nuts. >> >> It ended up being that the problem machines had a certain firmware >> on their ethernet or video card ( I cant remember which) and a >> certain driver for the card. Others users with just the firmware or >> just the driver (but not both) wouldn't have the problems. >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From adtp at hotmail.com Wed May 17 23:31:51 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Thu, 18 May 2006 10:01:51 +0530 Subject: [AccessD] Select Multiple records on form References: Message-ID: My sincere thanks Ken! The feedback provided by you is valuable. A.D.Tejpal --------------- ----- Original Message ----- From: Ken Ismert To: Access Developers discussion and problem solving Sent: Thursday, May 18, 2006 00:19 Subject: Re: [AccessD] Select Multiple records on form A.D.: >> Sample db ContFormsKeyNavAndHighLightMultiSelect is now available at Rogers Access Library (other developers library). I tried it, and it works as advertized. There is about a 1/2 second delay on my machine for highlighting. Scrolling drops the highlights, but they re-appear after about a half-second (but this is typical Conditional Formatting behaviour) -Ken -----Original Message----- From: A.D.TEJPAL [mailto:adtp at hotmail.com] Sent: Tuesday, May 16, 2006 11:03 PM To: Access Developers discussion and problem solving Cc: ADT Subject: Re: [AccessD] Select Multiple records on form Mark, Sample db ContFormsKeyNavAndHighLightMultiSelect is now available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. It would be helpful if on opening the db, you first go through the tips (click the command button captioned "Show Tips"). Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Tuesday, May 16, 2006 22:20 Subject: Re: [AccessD] Select Multiple records on form A.D Thanks...I must have done something wrong...when I click on a record...it is selected for about 3 seconds and then the formatting "goes away", simply put. If I use a smaller recordset...I don't see the formatting at all. I will check out the example. Thanks Again, Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >CC: ADT >Subject: Re: [AccessD] Select Multiple records on form >Date: Tue, 16 May 2006 22:12:36 +0530 > >Mark, > > So long as the group of records remain in a selected state, and after you have released the mouse button, the code provided by me earlier, ensures continued highlighting of such records in a special color, till the selection gets undone (e.g. user clicking on any control). > > For your ready reference, selection of records is done as follows: > (a) Single record - Click on record selector. > (b) Multiple records at a time - Click on record selector of top desired record and drag the mouse to record selector of bottom desired record. (Alternatively, you can hold down shift key and then click the record selector for bottom desired record, or use Dn Arrow key to expand the selection suitably). > Note - Using Up/Dn arrow keys alone, when a group of records is already in selected state, moves the whole selection mask accordingly. > > Apparently, something might be amiss in actual implementation of suggested solution at your end. It might be helpful to look at the sample db mentioned in my previous post. It is in Access 2000 file format and is working smoothly on Access 2003 installation. On Access 2K, time lag is encountered as stated earlier, but results are consistent. > >Best wishes, >A.D.Tejpal >--------------- From stuart at lexacorp.com.pg Wed May 17 21:56:33 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 18 May 2006 12:56:33 +1000 Subject: [AccessD] OT - Relative URL In-Reply-To: <7.0.1.0.0.20060518132759.01ae5df0@dalyn.co.nz> Message-ID: <446C6F01.15157.42E846BE@stuart.lexacorp.com.pg> On 18 May 2006 at 13:35, David Emerson wrote: > I am using Visual Studio 2005 Express to create a web site. It is a > subset of a larger website and sits in a subfolder to the main web > site. > > I have the default.aspx in a directory called /root1/Subroot1. This > is where my web site begins. I would like to link to an image in > /root1/Subroot2. > > What is the syntax for a relative URL to move from Subroot1 down to > root1 and then up to Subroot2? > Just use the standard ".." for parent: ..\Subroot2 From Erwin.Craps at ithelps.be Thu May 18 03:45:02 2006 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 18 May 2006 10:45:02 +0200 Subject: [AccessD] OT - Relative URL Message-ID: <46B976F2B698FF46A4FE7636509B22DF3CB78E@stekelbes.ithelps.local> Is'nt it necesary to activate parent paths for this? Which is by default off in IIS. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, May 18, 2006 4:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT - Relative URL On 18 May 2006 at 13:35, David Emerson wrote: > I am using Visual Studio 2005 Express to create a web site. It is a > subset of a larger website and sits in a subfolder to the main web > site. > > I have the default.aspx in a directory called /root1/Subroot1. This > is where my web site begins. I would like to link to an image in > /root1/Subroot2. > > What is the syntax for a relative URL to move from Subroot1 down to > root1 and then up to Subroot2? > Just use the standard ".." for parent: ..\Subroot2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Thu May 18 05:59:45 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 18 May 2006 06:59:45 -0400 Subject: [AccessD] Foxpro In-Reply-To: Message-ID: Francisco, VFP is pretty much like Access; a "default" database engine that is integrated with VFP. It is considerably faster then JET. Processing is client based. VFP can also use BE database engines such as mySQL, SQL Server, etc. using remote views or the cursor adapter. This is where the VFP community is now. Most, except for small apps, don't use the default engine any more as this moves them to client/server computing. Overall, VFP and Access share similar overall concepts, but with VFP, there is just about nothing you can't fiddle with. It has a richer event model and the programming language has more features and commands, and of course VFP is totally OOP based. The data environment for forms is something I'd kill for in Access. On the down side; the query designer does not work as well as Access's and the report engine I feel is weaker (although you can do a drill down report if you want to). Then there are some just plain weird ways to do things, like adding a column to a grid control, or changing the text of a label on a report. VFP started as a DOS based tool and it shows. Most developers skip the visual aspect and make heavy use of the command window. As a result, the visual design tools are not up to what they should be. Overall much more of a developers tool then Access. STEEP learning curve; figure on using it for a year at least before you'll be somewhat proficient. Also, use of a framework of some type is almost a given. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, May 17, 2006 1:37 PM To: Access Developers discussion and problem solving; access-l at peach.ease.lsoft.com Subject: [AccessD] Foxpro I'm getting ready to begin working on a "foxpro" db. It's been a really long time since I've used a foxpro db, last time was somewhere in 1992. One question that arose, is in a client/server app is the processing done on the server or the client like access? Thanks, -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... -- 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 May 18 09:59:23 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 18 May 2006 10:59:23 -0400 Subject: [AccessD] Splitting up names In-Reply-To: References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> <44634870.167F.006B.0@niagaracounty.com> Message-ID: <446C538B.167F.006B.0@niagaracounty.com> Sorry that it has taken so long to get back to y'all...been extremely busy, and every time I sit down to do something, something else comes up. As usual I've gotten some good ideas from you all. As I suspected, there doesn't seem to be a clear-cut solution. I picked up a little from many of these posts, and I have actually begun some code that is progressing nicely toward a solution. I haven't tried this code here yet...I'll try to get to it in a little bit...but I'm sure it too will help me out. This project isn't exactly high priority...it is basically helping a former co-worker that has moved on...so it has been difficult to put much time into it, with everything else going on. Thanks again though! John W. Clark >>> adtp at hotmail.com 5/12/2006 1:01 am >>> John, Functions Fn_FirstName() & Fn_LastName() as given below, should get you the desired results as per pattern indicated by you.. Just make sure that the string variable named SuffixList in Fn_FirstName() includes all the likely suffixes. Could you please try it out and let me know whether any further fine tuning is needed. Best wishes, A.D.Tejpal ---------------- =========================================== Function Fn_FirstName(ByVal FullName As _ String) As String ' Returns First Name Dim Txt As String, Cnt As Long Dim SuffixList As String, Rtv As Variant SuffixList = "Sr-Jr-Dr-Esq-Rev-Hon-Sir-Lord" Txt = FullName Rtv = Split(SuffixList, "-") For Cnt = 0 To UBound(Rtv) Txt = Trim(Replace(Txt, " " & Rtv(Cnt), "")) Next Fn_FirstName = Trim(Left(Txt, InStrRev(Txt, " ") - 1)) End Function ------------------------------------------------------------------------------ Function Fn_LastName(ByVal FullName As _ String) As String ' Returns Last Name Dim Txt As String Txt = Fn_FirstName(FullName) Fn_LastName = Trim(Mid(FullName, Len(Txt) + 1)) End Function =========================================== ----- Original Message ----- From: John Clark To: accessd at databaseadvisors.com Sent: Thursday, May 11, 2006 23:51 Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Thu May 18 10:13:07 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 18 May 2006 16:13:07 +0100 Subject: [AccessD] Cheecking field exists References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP><44634870.167F.006B.0@niagaracounty.com> <446C538B.167F.006B.0@niagaracounty.com> Message-ID: Is there an easy way to check if a field exists in a particular table vai vba? Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of John Clark Sent: Thu 18/05/2006 15:59 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Splitting up names Sorry that it has taken so long to get back to y'all...been extremely busy, and every time I sit down to do something, something else comes up. As usual I've gotten some good ideas from you all. As I suspected, there doesn't seem to be a clear-cut solution. I picked up a little from many of these posts, and I have actually begun some code that is progressing nicely toward a solution. I haven't tried this code here yet...I'll try to get to it in a little bit...but I'm sure it too will help me out. This project isn't exactly high priority...it is basically helping a former co-worker that has moved on...so it has been difficult to put much time into it, with everything else going on. Thanks again though! John W. Clark >>> adtp at hotmail.com 5/12/2006 1:01 am >>> John, Functions Fn_FirstName() & Fn_LastName() as given below, should get you the desired results as per pattern indicated by you.. Just make sure that the string variable named SuffixList in Fn_FirstName() includes all the likely suffixes. Could you please try it out and let me know whether any further fine tuning is needed. Best wishes, A.D.Tejpal ---------------- =========================================== Function Fn_FirstName(ByVal FullName As _ String) As String ' Returns First Name Dim Txt As String, Cnt As Long Dim SuffixList As String, Rtv As Variant SuffixList = "Sr-Jr-Dr-Esq-Rev-Hon-Sir-Lord" Txt = FullName Rtv = Split(SuffixList, "-") For Cnt = 0 To UBound(Rtv) Txt = Trim(Replace(Txt, " " & Rtv(Cnt), "")) Next Fn_FirstName = Trim(Left(Txt, InStrRev(Txt, " ") - 1)) End Function ------------------------------------------------------------------------------ Function Fn_LastName(ByVal FullName As _ String) As String ' Returns Last Name Dim Txt As String Txt = Fn_FirstName(FullName) Fn_LastName = Trim(Mid(FullName, Len(Txt) + 1)) End Function =========================================== ----- Original Message ----- From: John Clark To: accessd at databaseadvisors.com Sent: Thursday, May 11, 2006 23:51 Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu May 18 10:21:34 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 18 May 2006 08:21:34 -0700 Subject: [AccessD] Cheecking field exists In-Reply-To: Message-ID: Simplest way I can think of would be open a recordset based on the table and then try to read a value from that field and trap for the error if it doesn't exist. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, May 18, 2006 8:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Cheecking field exists Is there an easy way to check if a field exists in a particular table vai vba? Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of John Clark Sent: Thu 18/05/2006 15:59 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Splitting up names Sorry that it has taken so long to get back to y'all...been extremely busy, and every time I sit down to do something, something else comes up. As usual I've gotten some good ideas from you all. As I suspected, there doesn't seem to be a clear-cut solution. I picked up a little from many of these posts, and I have actually begun some code that is progressing nicely toward a solution. I haven't tried this code here yet...I'll try to get to it in a little bit...but I'm sure it too will help me out. This project isn't exactly high priority...it is basically helping a former co-worker that has moved on...so it has been difficult to put much time into it, with everything else going on. Thanks again though! John W. Clark >>> adtp at hotmail.com 5/12/2006 1:01 am >>> John, Functions Fn_FirstName() & Fn_LastName() as given below, should get you the desired results as per pattern indicated by you.. Just make sure that the string variable named SuffixList in Fn_FirstName() includes all the likely suffixes. Could you please try it out and let me know whether any further fine tuning is needed. Best wishes, A.D.Tejpal ---------------- =========================================== Function Fn_FirstName(ByVal FullName As _ String) As String ' Returns First Name Dim Txt As String, Cnt As Long Dim SuffixList As String, Rtv As Variant SuffixList = "Sr-Jr-Dr-Esq-Rev-Hon-Sir-Lord" Txt = FullName Rtv = Split(SuffixList, "-") For Cnt = 0 To UBound(Rtv) Txt = Trim(Replace(Txt, " " & Rtv(Cnt), "")) Next Fn_FirstName = Trim(Left(Txt, InStrRev(Txt, " ") - 1)) End Function ------------------------------------------------------------------------ ------ Function Fn_LastName(ByVal FullName As _ String) As String ' Returns Last Name Dim Txt As String Txt = Fn_FirstName(FullName) Fn_LastName = Trim(Mid(FullName, Len(Txt) + 1)) End Function =========================================== ----- Original Message ----- From: John Clark To: accessd at databaseadvisors.com Sent: Thursday, May 11, 2006 23:51 Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu May 18 10:26:42 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 18 May 2006 08:26:42 -0700 Subject: [AccessD] Cheecking field exists In-Reply-To: References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP> <44634870.167F.006B.0@niagaracounty.com> <446C538B.167F.006B.0@niagaracounty.com> Message-ID: <446C9232.5070505@san.rr.com> Martin: Here's a snip where I add a field based on the field count of a table. I suppose instead of checking the field count you could loop through the fields collection looking at the field names. HTH Rocky Dim wrk As DAO.Workspace Dim tdf As DAO.TableDef Dim fld As DAO.Field Set wrk = DBEngine.Workspaces(0) Set Db = wrk.OpenDatabase(gstrDatabaseName) Set tdf = Db.TableDefs("tblPartMaster") If tdf.Fields.Count = 24 Then Set fld = tdf.CreateField("Picture", DB_TEXT, 255) fld.Properties("AllowZeroLength") = True tdf.Fields.Append fld End If Set fld = Nothing Set tdf = Nothing Set Db = Nothing Set wrk = Nothing Martin Reid wrote: > Is there an easy way to check if a field exists in a particular table vai vba? > > Maritn > > Martin WP Reid > Training and Assessment Unit > Riddle Hall > Belfast > > tel: 02890 974477 > > > ________________________________ > > From: accessd-bounces at databaseadvisors.com on behalf of John Clark > Sent: Thu 18/05/2006 15:59 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Splitting up names > > > > Sorry that it has taken so long to get back to y'all...been extremely > busy, and every time I sit down to do something, something else comes > up. > > As usual I've gotten some good ideas from you all. As I suspected, > there doesn't seem to be a clear-cut solution. I picked up a little from > many of these posts, and I have actually begun some code that is > progressing nicely toward a solution. > > I haven't tried this code here yet...I'll try to get to it in a little > bit...but I'm sure it too will help me out. > > This project isn't exactly high priority...it is basically helping a > former co-worker that has moved on...so it has been difficult to put > much time into it, with everything else going on. > > Thanks again though! > > John W. Clark > > > >>>> adtp at hotmail.com 5/12/2006 1:01 am >>> >>>> > John, > > Functions Fn_FirstName() & Fn_LastName() as given below, should > get you the desired results as per pattern indicated by you.. > > Just make sure that the string variable named SuffixList in > Fn_FirstName() includes all the likely suffixes. > > Could you please try it out and let me know whether any further > fine tuning is needed. > > Best wishes, > A.D.Tejpal > ---------------- > > =========================================== > Function Fn_FirstName(ByVal FullName As _ > String) As String > ' Returns First Name > Dim Txt As String, Cnt As Long > Dim SuffixList As String, Rtv As Variant > > SuffixList = "Sr-Jr-Dr-Esq-Rev-Hon-Sir-Lord" > > Txt = FullName > > Rtv = Split(SuffixList, "-") > For Cnt = 0 To UBound(Rtv) > Txt = Trim(Replace(Txt, " " & Rtv(Cnt), "")) > Next > > Fn_FirstName = Trim(Left(Txt, InStrRev(Txt, " ") - 1)) > > End Function > ------------------------------------------------------------------------------ > > Function Fn_LastName(ByVal FullName As _ > String) As String > ' Returns Last Name > Dim Txt As String > > Txt = Fn_FirstName(FullName) > > Fn_LastName = Trim(Mid(FullName, Len(Txt) + 1)) > > End Function > =========================================== > > ----- Original Message ----- > From: John Clark > To: accessd at databaseadvisors.com > Sent: Thursday, May 11, 2006 23:51 > Subject: [AccessD] Splitting up names > > > If got a user running a db in Access. She has a list of names and > they > were all input into a single "name" field, rather than "last name" & > "first name." She would now like to split these names up, but there > are > some double first names, as well as "jr" and "sr" suffixes. > > Is there a way to do this? > > Basically names might be like this: > > JOHN SMITH JR > MARY ELLEN SMITH > BARBARA SMITH > > And I'd need to get them like this into a first name field like: > > JOHN > MARY ELLEN > BARBARA > > and a last name field like: > > SMITH JR > SMITH > SMITH > > John W. Clark > Computer Programmer > Niagara County > Central Data Processing > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From cfoust at infostatsystems.com Thu May 18 10:33:37 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 18 May 2006 08:33:37 -0700 Subject: [AccessD] Cheecking field exists In-Reply-To: Message-ID: Oh, and here's some code I had tucked away that does it another way: strSQL = "SELECT * FROM " & strTDF Set cnn = CurrentProject.Connection Set rst = New ADODB.Recordset With rst .ActiveConnection = cnn .Source = strSQL .CursorType = adOpenStatic .Open If Not .EOF And Not .BOF Then For Each fld In .Fields If fld.Name = strFldNm Then blnFldExists = True Exit For End If Next fld End If End With Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, May 18, 2006 8:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cheecking field exists Simplest way I can think of would be open a recordset based on the table and then try to read a value from that field and trap for the error if it doesn't exist. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, May 18, 2006 8:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Cheecking field exists Is there an easy way to check if a field exists in a particular table vai vba? Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of John Clark Sent: Thu 18/05/2006 15:59 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Splitting up names Sorry that it has taken so long to get back to y'all...been extremely busy, and every time I sit down to do something, something else comes up. As usual I've gotten some good ideas from you all. As I suspected, there doesn't seem to be a clear-cut solution. I picked up a little from many of these posts, and I have actually begun some code that is progressing nicely toward a solution. I haven't tried this code here yet...I'll try to get to it in a little bit...but I'm sure it too will help me out. This project isn't exactly high priority...it is basically helping a former co-worker that has moved on...so it has been difficult to put much time into it, with everything else going on. Thanks again though! John W. Clark >>> adtp at hotmail.com 5/12/2006 1:01 am >>> John, Functions Fn_FirstName() & Fn_LastName() as given below, should get you the desired results as per pattern indicated by you.. Just make sure that the string variable named SuffixList in Fn_FirstName() includes all the likely suffixes. Could you please try it out and let me know whether any further fine tuning is needed. Best wishes, A.D.Tejpal ---------------- =========================================== Function Fn_FirstName(ByVal FullName As _ String) As String ' Returns First Name Dim Txt As String, Cnt As Long Dim SuffixList As String, Rtv As Variant SuffixList = "Sr-Jr-Dr-Esq-Rev-Hon-Sir-Lord" Txt = FullName Rtv = Split(SuffixList, "-") For Cnt = 0 To UBound(Rtv) Txt = Trim(Replace(Txt, " " & Rtv(Cnt), "")) Next Fn_FirstName = Trim(Left(Txt, InStrRev(Txt, " ") - 1)) End Function ------------------------------------------------------------------------ ------ Function Fn_LastName(ByVal FullName As _ String) As String ' Returns Last Name Dim Txt As String Txt = Fn_FirstName(FullName) Fn_LastName = Trim(Mid(FullName, Len(Txt) + 1)) End Function =========================================== ----- Original Message ----- From: John Clark To: accessd at databaseadvisors.com Sent: Thursday, May 11, 2006 23:51 Subject: [AccessD] Splitting up names If got a user running a db in Access. She has a list of names and they were all input into a single "name" field, rather than "last name" & "first name." She would now like to split these names up, but there are some double first names, as well as "jr" and "sr" suffixes. Is there a way to do this? Basically names might be like this: JOHN SMITH JR MARY ELLEN SMITH BARBARA SMITH And I'd need to get them like this into a first name field like: JOHN MARY ELLEN BARBARA and a last name field like: SMITH JR SMITH SMITH John W. Clark Computer Programmer Niagara County Central Data Processing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu May 18 10:42:54 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 May 2006 17:42:54 +0200 Subject: [AccessD] Cheecking field exists Message-ID: Hi Martin Here's a function we use (DAO): Public Function IsField( _ ByVal strTable As String, _ ByVal strField As String) _ As Boolean Dim dbs As Database Dim tdf As TableDef Dim lngCount As Long Dim booFound As Boolean On Error GoTo Fejl_IsField Set dbs = CurrentDb() Set tdf = dbs.TableDefs(strTable) lngCount = tdf.Fields.Count While lngCount > 0 And Not booFound booFound = (StrComp(tdf.Fields(lngCount - 1).Name, strField, vbTextCompare) = 0) lngCount = lngCount - 1 Wend Set tdf = Nothing Set dbs = Nothing IsField = booFound Exit_IsField: Exit Function Fejl_IsField: IsField = False Resume Exit_IsField End Function /gustav >>> mwp.reid at qub.ac.uk 18-05-2006 17:13 >>> Is there an easy way to check if a field exists in a particular table vai vba? Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Thu May 18 10:47:07 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 18 May 2006 16:47:07 +0100 Subject: [AccessD] Cheecking field exists References: <20060511135453.NELF15112.omta03ps.mx.bigpond.com@DENZILLAP><44634870.167F.006B.0@niagaracounty.com><446C538B.167F.006B.0@niagaracounty.com> <446C9232.5070505@san.rr.com> Message-ID: Thanks folks One of our medical people wants a highly interactive search screen built for doctors to use. Sets of check boxes etc. Was stuck there for a bit. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Rocky Smolin - Beach Access Software Sent: Thu 18/05/2006 16:26 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cheecking field exists Martin: Here's a snip where I add a field based on the field count of a table. I suppose instead of checking the field count you could loop through the fields collection looking at the field names. HTH Rocky Dim wrk As DAO.Workspace Dim tdf As DAO.TableDef Dim fld As DAO.Field Set wrk = DBEngine.Workspaces(0) Set Db = wrk.OpenDatabase(gstrDatabaseName) Set tdf = Db.TableDefs("tblPartMaster") If tdf.Fields.Count = 24 Then Set fld = tdf.CreateField("Picture", DB_TEXT, 255) fld.Properties("AllowZeroLength") = True tdf.Fields.Append fld End If Set fld = Nothing Set tdf = Nothing Set Db = Nothing Set wrk = Nothing Martin Reid wrote: > Is there an easy way to check if a field exists in a particular table vai vba? > > Maritn > > Martin WP Reid > Training and Assessment Unit > Riddle Hall > Belfast > > tel: 02890 974477 > > > ________________________________ > > From: accessd-bounces at databaseadvisors.com on behalf of John Clark > Sent: Thu 18/05/2006 15:59 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Splitting up names > > > > Sorry that it has taken so long to get back to y'all...been extremely > busy, and every time I sit down to do something, something else comes > up. > > As usual I've gotten some good ideas from you all. As I suspected, > there doesn't seem to be a clear-cut solution. I picked up a little from > many of these posts, and I have actually begun some code that is > progressing nicely toward a solution. > > I haven't tried this code here yet...I'll try to get to it in a little > bit...but I'm sure it too will help me out. > > This project isn't exactly high priority...it is basically helping a > former co-worker that has moved on...so it has been difficult to put > much time into it, with everything else going on. > > Thanks again though! > > John W. Clark > > > >>>> adtp at hotmail.com 5/12/2006 1:01 am >>> >>>> > John, > > Functions Fn_FirstName() & Fn_LastName() as given below, should > get you the desired results as per pattern indicated by you.. > > Just make sure that the string variable named SuffixList in > Fn_FirstName() includes all the likely suffixes. > > Could you please try it out and let me know whether any further > fine tuning is needed. > > Best wishes, > A.D.Tejpal > ---------------- > > =========================================== > Function Fn_FirstName(ByVal FullName As _ > String) As String > ' Returns First Name > Dim Txt As String, Cnt As Long > Dim SuffixList As String, Rtv As Variant > > SuffixList = "Sr-Jr-Dr-Esq-Rev-Hon-Sir-Lord" > > Txt = FullName > > Rtv = Split(SuffixList, "-") > For Cnt = 0 To UBound(Rtv) > Txt = Trim(Replace(Txt, " " & Rtv(Cnt), "")) > Next > > Fn_FirstName = Trim(Left(Txt, InStrRev(Txt, " ") - 1)) > > End Function > ------------------------------------------------------------------------------ > > Function Fn_LastName(ByVal FullName As _ > String) As String > ' Returns Last Name > Dim Txt As String > > Txt = Fn_FirstName(FullName) > > Fn_LastName = Trim(Mid(FullName, Len(Txt) + 1)) > > End Function > =========================================== > > ----- Original Message ----- > From: John Clark > To: accessd at databaseadvisors.com > Sent: Thursday, May 11, 2006 23:51 > Subject: [AccessD] Splitting up names > > > If got a user running a db in Access. She has a list of names and > they > were all input into a single "name" field, rather than "last name" & > "first name." She would now like to split these names up, but there > are > some double first names, as well as "jr" and "sr" suffixes. > > Is there a way to do this? > > Basically names might be like this: > > JOHN SMITH JR > MARY ELLEN SMITH > BARBARA SMITH > > And I'd need to get them like this into a first name field like: > > JOHN > MARY ELLEN > BARBARA > > and a last name field like: > > SMITH JR > SMITH > SMITH > > John W. Clark > Computer Programmer > Niagara County > Central Data Processing > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- 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 adtp at hotmail.com Thu May 18 12:38:27 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Thu, 18 May 2006 23:08:27 +0530 Subject: [AccessD] Cheecking field exists References: Message-ID: Maritn, Function Fn_FieldExists() as given below, would return True if field exists, otherwise False. Best wishes, A.D.Tejpal --------------- ==================================== Function Fn_FieldExists(ByVal FieldName As String, _ ByVal TableName As String) As Boolean On Error Resume Next Fn_FieldExists = Not IsError(DLookup(FieldName, TableName)) End Function ==================================== ----- Original Message ----- From: Martin Reid To: Access Developers discussion and problem solving Sent: Thursday, May 18, 2006 20:43 Subject: [AccessD] Cheecking field exists Is there an easy way to check if a field exists in a particular table vai vba? Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From newsgrps at dalyn.co.nz Thu May 18 14:15:14 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 19 May 2006 07:15:14 +1200 Subject: [AccessD] OT - Relative URL In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF3CB78E@stekelbes.ithelps.l ocal> References: <46B976F2B698FF46A4FE7636509B22DF3CB78E@stekelbes.ithelps.local> Message-ID: <7.0.1.0.0.20060519071336.01af9548@dalyn.co.nz> Thanks. Too long away from DOS made me rusty. As usual, once you know what to look for you can find it in help :-( The .. worked so the active parent paths may already be set. David At 18/05/2006, you wrote: >Is'nt it necesary to activate parent paths for this? >Which is by default off in IIS. > >Erwin > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Thursday, May 18, 2006 4:57 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT - Relative URL > > > >On 18 May 2006 at 13:35, David Emerson wrote: > > > I am using Visual Studio 2005 Express to create a web site. It is a > > subset of a larger website and sits in a subfolder to the main web > > site. > > > > I have the default.aspx in a directory called /root1/Subroot1. This > > is where my web site begins. I would like to link to an image in > > /root1/Subroot2. > > > > What is the syntax for a relative URL to move from Subroot1 down to > > root1 and then up to Subroot2? > > > >Just use the standard ".." for parent: > >..\Subroot2 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Thu May 18 16:49:06 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 18 May 2006 16:49:06 -0500 Subject: [AccessD] Convert SQL Server Date/Time to Date Message-ID: I have an access database linked to an SQL server table. SQL server stores a time with the date. I want to extract only the date part when using this field in a query. I know I have done it before but can someone refresh my memory. 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 darrend at nimble.com.au Thu May 18 16:58:17 2006 From: darrend at nimble.com.au (Darren DICK) Date: Fri, 19 May 2006 07:58:17 +1000 Subject: [AccessD] Convert SQL Server Date/Time to Date In-Reply-To: Message-ID: <20060518215819.PVYR15358.omta04ps.mx.bigpond.com@DENZILLAP> Hi Chester Assume your Date Field is called 'SomeDateField (I'm an Aussie so we order our dates as Date/Month/Year) In Access... Format(Me.SomeDAteField, "dd/mm/yyyy) In SQL convert (char(10), SomeTableName.SomeDateField, 103) AS 'SomeDate' Hope this helps Have a great day Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Friday, 19 May 2006 7:49 AM To: Access Developers discussion and problem solving Subject: [AccessD] Convert SQL Server Date/Time to Date I have an access database linked to an SQL server table. SQL server stores a time with the date. I want to extract only the date part when using this field in a query. I know I have done it before but can someone refresh my memory. 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu May 18 16:58:45 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 18 May 2006 14:58:45 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: <20060518003411.70798.qmail@web80832.mail.yahoo.com> References: <20060518003411.70798.qmail@web80832.mail.yahoo.com> Message-ID: <446CEE15.4030008@shaw.ca> Try running Belarc on the two machines and compare the two lists. http://www.belarc.com/free_download.html It builds a detailed profile of your installed software and hardware, missing Microsoft hotfixes, anti-virus status, etc. and displays the results in your Web browser One other thing it lists your Windows and Office activation Keys just in case you forgot them You could also run the actual ADP on the machine to find a possible untrapped error. David Mcafee wrote: >We had issues here some Dells would reboot (the whole computer would restart) some users computers when using Access and others wouldnt. It was driving us nuts. > > It ended up being that the problem machines had a certain firmware on their ethernet or video card ( I cant remember which) and a certain driver for the card. Others users with just the firmware or just the driver (but not both) wouldn't have the problems. > > > > > >Francisco Tapia wrote: ACK! but why just this machine, on her old pc this never occured :( > >On 5/17/06, Charlotte Foust wrote: > > >>If it isn't an MDAC issue or a Jet service pack issue, it sounds like >>garbage collection. I've seen that behavior before and have a wretched >>time tracking it down to things like trying to use the value of a >>checkbox as an implicit boolean in code. Good luck. >> >> >>Charlotte Foust >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco >>Tapia >>Sent: Wednesday, May 17, 2006 3:40 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Odd XP machine >> >>the "system just closes out" is defined as: >> >>the user will be in her order entry screen either inputting a line item, >>or header info, or the main status screen when the system for no >>explainable reason closes and there is no error message displayed, "OR" >>even logged in event log or anywhere else, its' not a BSOD, or a GPF or >>an OS lockup, it's just "now you see it now you don't". >> >>The app is an ADE format, there are no LDB files, When the app dies, it >>is not on the task manager, so it's not hung up in the background and >>just not redrawn. The computer seems to run every other applications >>just fine w/o fail, it's just this app, and when I run it on her >>neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they >>both type about the same words per minute, and fly past the screens at >>about the same speed. If I trade this user to the other pc, the problem >>does not surface so it's not her work method. About the biggest >>diffrence is that the user with the problems has a newer dell than the >>other user. >> >> >> >>On 5/17/06, Stuart McLachlan wrote: >> >> >>>On 17 May 2006 at 13:50, Francisco Tapia wrote: >>> >>> >>> >>>>I have an application that is used accross the company here. It was >>>> >>>> >>>>written in Access2000 as an ADP. This app works on all windows >>>>2000/XP machines running SP4 and SP2 (respectively). I do have a >>>>newer XP machine that was just issued to a user and her system just >>>>closes out for no reason after just some usage. >>>> >>>> >>>Great technical term, very detailed description of the symptoms - just >>> >>> >>>what we love to hear from users when trying to diagnose problems. >>> >>>What does "system just closes out" mean? >>> >>>Application closes itself? >>>Application fails with an error message? >>>Application disappears with no warning and without cleaning itself up? >>>Application disappears but task manager shows it is still running? >>>OS locks up? >>>BSOD? >>>Computer reboots spontaneously? >>> or something else entirely? >>> >>> >>> >>>-- >>>Stuart >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>> >>-- >>-Francisco >>http://pcthis.blogspot.com |PC news with out the jargon! >>http://sqlthis.blogspot.com | Tsql and More... >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/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 fhtapia at gmail.com Thu May 18 17:33:40 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 18 May 2006 15:33:40 -0700 Subject: [AccessD] Foxpro In-Reply-To: References: Message-ID: Thanks Jim, I know that I'm going to be working with the vendor, on the basic optimization points that they need to work on. One step that should be automated is the re-indexing that they perform every tuesday. :| On 5/18/06, Jim Dettman wrote: > Francisco, > > VFP is pretty much like Access; a "default" database engine that is > integrated with VFP. It is considerably faster then JET. Processing is > client based. > > VFP can also use BE database engines such as mySQL, SQL Server, etc. using > remote views or the cursor adapter. This is where the VFP community is now. > Most, except for small apps, don't use the default engine any more as this > moves them to client/server computing. > > Overall, VFP and Access share similar overall concepts, but with VFP, > there is just about nothing you can't fiddle with. It has a richer event > model and the programming language has more features and commands, and of > course VFP is totally OOP based. > > The data environment for forms is something I'd kill for in Access. On > the down side; the query designer does not work as well as Access's and the > report engine I feel is weaker (although you can do a drill down report if > you want to). Then there are some just plain weird ways to do things, like > adding a column to a grid control, or changing the text of a label on a > report. > > VFP started as a DOS based tool and it shows. Most developers skip the > visual aspect and make heavy use of the command window. As a result, the > visual design tools are not up to what they should be. > > Overall much more of a developers tool then Access. STEEP learning curve; > figure on using it for a year at least before you'll be somewhat proficient. > Also, use of a framework of some type is almost a given. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia > Sent: Wednesday, May 17, 2006 1:37 PM > To: Access Developers discussion and problem solving; > access-l at peach.ease.lsoft.com > Subject: [AccessD] Foxpro > > I'm getting ready to begin working on a "foxpro" db. It's been a > really long time since I've used a foxpro db, last time was somewhere > in 1992. One question that arose, is in a client/server app is the > processing done on the server or the client like access? > > Thanks, > > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Thu May 18 17:35:00 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 18 May 2006 15:35:00 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: <20060518003411.70798.qmail@web80832.mail.yahoo.com> References: <20060518003411.70798.qmail@web80832.mail.yahoo.com> Message-ID: Hey why didn't you mention that before :D. since we only have dells here too (as you remember), i'll put out the helpdesk team on it. On 5/17/06, David Mcafee wrote: > We had issues here some Dells would reboot (the whole computer would restart) some users computers when using Access and others wouldnt. It was driving us nuts. > > It ended up being that the problem machines had a certain firmware on their ethernet or video card ( I cant remember which) and a certain driver for the card. Others users with just the firmware or just the driver (but not both) wouldn't have the problems. > > > > > > Francisco Tapia wrote: ACK! but why just this machine, on her old pc this never occured :( > > On 5/17/06, Charlotte Foust wrote: > > If it isn't an MDAC issue or a Jet service pack issue, it sounds like > > garbage collection. I've seen that behavior before and have a wretched > > time tracking it down to things like trying to use the value of a > > checkbox as an implicit boolean in code. Good luck. > > > > > > Charlotte Foust > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco > > Tapia > > Sent: Wednesday, May 17, 2006 3:40 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Odd XP machine > > > > the "system just closes out" is defined as: > > > > the user will be in her order entry screen either inputting a line item, > > or header info, or the main status screen when the system for no > > explainable reason closes and there is no error message displayed, "OR" > > even logged in event log or anywhere else, its' not a BSOD, or a GPF or > > an OS lockup, it's just "now you see it now you don't". > > > > The app is an ADE format, there are no LDB files, When the app dies, it > > is not on the task manager, so it's not hung up in the background and > > just not redrawn. The computer seems to run every other applications > > just fine w/o fail, it's just this app, and when I run it on her > > neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they > > both type about the same words per minute, and fly past the screens at > > about the same speed. If I trade this user to the other pc, the problem > > does not surface so it's not her work method. About the biggest > > diffrence is that the user with the problems has a newer dell than the > > other user. > > > > > > > > On 5/17/06, Stuart McLachlan wrote: > > > On 17 May 2006 at 13:50, Francisco Tapia wrote: > > > > > > > I have an application that is used accross the company here. It was > > > > > > written in Access2000 as an ADP. This app works on all windows > > > > 2000/XP machines running SP4 and SP2 (respectively). I do have a > > > > newer XP machine that was just issued to a user and her system just > > > > closes out for no reason after just some usage. > > > > > > Great technical term, very detailed description of the symptoms - just > > > > > what we love to hear from users when trying to diagnose problems. > > > > > > What does "system just closes out" mean? > > > > > > Application closes itself? > > > Application fails with an error message? > > > Application disappears with no warning and without cleaning itself up? > > > Application disappears but task manager shows it is still running? > > > OS locks up? > > > BSOD? > > > Computer reboots spontaneously? > > > or something else entirely? > > > > > > > > > > > > -- > > > Stuart > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > -Francisco > > http://pcthis.blogspot.com |PC news with out the jargon! > > http://sqlthis.blogspot.com | Tsql and More... > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Thu May 18 17:36:18 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Thu, 18 May 2006 15:36:18 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: <446CEE15.4030008@shaw.ca> References: <20060518003411.70798.qmail@web80832.mail.yahoo.com> <446CEE15.4030008@shaw.ca> Message-ID: I tried that, the user still managed to get it to "poof" out of the screen as she put it. On 5/18/06, MartyConnelly wrote: > Try running Belarc on the two machines and compare the two lists. > http://www.belarc.com/free_download.html > > It builds a detailed profile of your installed software and hardware, > missing Microsoft hotfixes, anti-virus status, etc. and > displays the results in your Web browser > One other thing it lists your Windows and Office activation Keys > just in case you forgot them > > You could also run the actual ADP on the machine to find a possible > untrapped error. > > David Mcafee wrote: > > >We had issues here some Dells would reboot (the whole computer would restart) some users computers when using Access and others wouldnt. It was driving us nuts. > > > > It ended up being that the problem machines had a certain firmware on their ethernet or video card ( I cant remember which) and a certain driver for the card. Others users with just the firmware or just the driver (but not both) wouldn't have the problems. > > > > > > > > > > > >Francisco Tapia wrote: ACK! but why just this machine, on her old pc this never occured :( > > > >On 5/17/06, Charlotte Foust wrote: > > > > > >>If it isn't an MDAC issue or a Jet service pack issue, it sounds like > >>garbage collection. I've seen that behavior before and have a wretched > >>time tracking it down to things like trying to use the value of a > >>checkbox as an implicit boolean in code. Good luck. > >> > >> > >>Charlotte Foust > >> > >>-----Original Message----- > >>From: accessd-bounces at databaseadvisors.com > >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco > >>Tapia > >>Sent: Wednesday, May 17, 2006 3:40 PM > >>To: Access Developers discussion and problem solving > >>Subject: Re: [AccessD] Odd XP machine > >> > >>the "system just closes out" is defined as: > >> > >>the user will be in her order entry screen either inputting a line item, > >>or header info, or the main status screen when the system for no > >>explainable reason closes and there is no error message displayed, "OR" > >>even logged in event log or anywhere else, its' not a BSOD, or a GPF or > >>an OS lockup, it's just "now you see it now you don't". > >> > >>The app is an ADE format, there are no LDB files, When the app dies, it > >>is not on the task manager, so it's not hung up in the background and > >>just not redrawn. The computer seems to run every other applications > >>just fine w/o fail, it's just this app, and when I run it on her > >>neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they > >>both type about the same words per minute, and fly past the screens at > >>about the same speed. If I trade this user to the other pc, the problem > >>does not surface so it's not her work method. About the biggest > >>diffrence is that the user with the problems has a newer dell than the > >>other user. > >> > >> > >> > >>On 5/17/06, Stuart McLachlan wrote: > >> > >> > >>>On 17 May 2006 at 13:50, Francisco Tapia wrote: > >>> > >>> > >>> > >>>>I have an application that is used accross the company here. It was > >>>> > >>>> > >>>>written in Access2000 as an ADP. This app works on all windows > >>>>2000/XP machines running SP4 and SP2 (respectively). I do have a > >>>>newer XP machine that was just issued to a user and her system just > >>>>closes out for no reason after just some usage. > >>>> > >>>> > >>>Great technical term, very detailed description of the symptoms - just > >>> > >>> > >>>what we love to hear from users when trying to diagnose problems. > >>> > >>>What does "system just closes out" mean? > >>> > >>>Application closes itself? > >>>Application fails with an error message? > >>>Application disappears with no warning and without cleaning itself up? > >>>Application disappears but task manager shows it is still running? > >>>OS locks up? > >>>BSOD? > >>>Computer reboots spontaneously? > >>> or something else entirely? > >>> > >>> > >>> > >>>-- > >>>Stuart > >>> > >>> > >>>-- > >>>AccessD mailing list > >>>AccessD at databaseadvisors.com > >>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>Website: http://www.databaseadvisors.com > >>> > >>> > >>> > >>-- > >>-Francisco > >>http://pcthis.blogspot.com |PC news with out the jargon! > >>http://sqlthis.blogspot.com | Tsql and More... > >>-- > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/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 > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From bheid at appdevgrp.com Fri May 19 05:32:52 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 19 May 2006 06:32:52 -0400 Subject: [AccessD] Cheecking field exists In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB3336@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35425@ADGSERVER> I use something like: '(air code) On error resume next td=currentdb.tabledefs("sometable") strFld=td.fields("somefield") if err.number=0 then 'field exists somecode else 'field does not exist someothercode end if on error goto Proc_Err 'reset error handler Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, May 18, 2006 11:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Cheecking field exists Is there an easy way to check if a field exists in a particular table vai vba? Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From Lambert.Heenan at AIG.com Fri May 19 08:21:26 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 19 May 2006 08:21:26 -0500 Subject: [AccessD] Convert SQL Server Date/Time to Date Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F21C86766@xlivmbx21.aig.com> In Access land, using Format will give you a *String* that looks like a date. If you want an actual Date type try... Cdate(Int(SomeDateField)) Using Int() strips off the decimal fraction, which is the time of day, and the remaining integer value is then converted to a real date type. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, May 18, 2006 5:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert SQL Server Date/Time to Date Hi Chester Assume your Date Field is called 'SomeDateField (I'm an Aussie so we order our dates as Date/Month/Year) In Access... Format(Me.SomeDAteField, "dd/mm/yyyy) In SQL convert (char(10), SomeTableName.SomeDateField, 103) AS 'SomeDate' Hope this helps Have a great day Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Friday, 19 May 2006 7:49 AM To: Access Developers discussion and problem solving Subject: [AccessD] Convert SQL Server Date/Time to Date I have an access database linked to an SQL server table. SQL server stores a time with the date. I want to extract only the date part when using this field in a query. I know I have done it before but can someone refresh my memory. 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. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 May 19 09:02:28 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 19 May 2006 16:02:28 +0200 Subject: [AccessD] Convert SQL Server Date/Time to Date Message-ID: Hi Lambert Just a note of caution. You must use Fix() if you expect negative date values (prior to 1899-12-30) CDate(Fix(SomeDateField)) and/or - if you expect Null values (empty date field) - good old CVDate(): CVDate(Fix(SomeDateField)) /gustav >>> Lambert.Heenan at AIG.com 19-05-2006 15:21:26 >>> In Access land, using Format will give you a *String* that looks like a date. If you want an actual Date type try... Cdate(Int(SomeDateField)) Using Int() strips off the decimal fraction, which is the time of day, and the remaining integer value is then converted to a real date type. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, May 18, 2006 5:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert SQL Server Date/Time to Date Hi Chester Assume your Date Field is called 'SomeDateField (I'm an Aussie so we order our dates as Date/Month/Year) In Access... Format(Me.SomeDAteField, "dd/mm/yyyy) In SQL convert (char(10), SomeTableName.SomeDateField, 103) AS 'SomeDate' Hope this helps Have a great day Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Friday, 19 May 2006 7:49 AM To: Access Developers discussion and problem solving Subject: [AccessD] Convert SQL Server Date/Time to Date I have an access database linked to an SQL server table. SQL server stores a time with the date. I want to extract only the date part when using this field in a query. I know I have done it before but can someone refresh my memory. Thanks. From Lambert.Heenan at AIG.com Fri May 19 10:33:31 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 19 May 2006 10:33:31 -0500 Subject: [AccessD] Convert SQL Server Date/Time to Date Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F21C86849@xlivmbx21.aig.com> Very true. I my normal daily life I never need to work with dates earlier that 1900, but other do for sure. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 19, 2006 10:02 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Convert SQL Server Date/Time to Date Hi Lambert Just a note of caution. You must use Fix() if you expect negative date values (prior to 1899-12-30) CDate(Fix(SomeDateField)) and/or - if you expect Null values (empty date field) - good old CVDate(): CVDate(Fix(SomeDateField)) /gustav >>> Lambert.Heenan at AIG.com 19-05-2006 15:21:26 >>> In Access land, using Format will give you a *String* that looks like a date. If you want an actual Date type try... Cdate(Int(SomeDateField)) Using Int() strips off the decimal fraction, which is the time of day, and the remaining integer value is then converted to a real date type. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, May 18, 2006 5:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Convert SQL Server Date/Time to Date Hi Chester Assume your Date Field is called 'SomeDateField (I'm an Aussie so we order our dates as Date/Month/Year) In Access... Format(Me.SomeDAteField, "dd/mm/yyyy) In SQL convert (char(10), SomeTableName.SomeDateField, 103) AS 'SomeDate' Hope this helps Have a great day Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester Sent: Friday, 19 May 2006 7:49 AM To: Access Developers discussion and problem solving Subject: [AccessD] Convert SQL Server Date/Time to Date I have an access database linked to an SQL server table. SQL server stores a time with the date. I want to extract only the date part when using this field in a query. I know I have done it before but can someone refresh my memory. Thanks. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri May 19 12:04:30 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 19 May 2006 10:04:30 -0700 Subject: [AccessD] Convert SQL Server Date/Time to Date In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F21C86849@xlivmbx21.aig.com> References: <1D7828CDB8350747AFE9D69E0E90DA1F21C86849@xlivmbx21.aig.com> Message-ID: <446DFA9E.9090004@shaw.ca> Ah, but then there is the Year 1752 bug at least for British dates. and its resultant 10 lost days. The best known case in the U.S. is that of George Washington, whose birthday was for many years a national holiday. It was observed on February 22, which is when Washington observed it--after 1752. He was born 1732-02-11 (O.S.). A further complication for dates in England and her colonies is that the official year began in March, so that Washington's birthday would have been written Feb. 11, 1732/31 (O.S.). This supposed birthdate for Issac Newton (4 Jan 1642) is a cute example of calendar confusion. Newton was born on Christmas, 25 Dec 1642. Or, at least, that's what day it was in England. Across the Channel in France, that same day was 4 Jan 1643; because France had switched to the Gregorian calendar, which England did not adopt until 1752. The confusion here presumably came from switching to the modern calendar date but trying to keep the familiar year of birth. Heenan, Lambert wrote: >Very true. I my normal daily life I never need to work with dates earlier >that 1900, but other do for sure. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Friday, May 19, 2006 10:02 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Convert SQL Server Date/Time to Date > > >Hi Lambert > >Just a note of caution. >You must use Fix() if you expect negative date values (prior to 1899-12-30) > > CDate(Fix(SomeDateField)) > >and/or - if you expect Null values (empty date field) - good old CVDate(): > > CVDate(Fix(SomeDateField)) > >/gustav > > > >>>>Lambert.Heenan at AIG.com 19-05-2006 15:21:26 >>> >>>> >>>> >In Access land, using Format will give you a *String* that looks like a >date. If you want an actual Date type try... > > Cdate(Int(SomeDateField)) > >Using Int() strips off the decimal fraction, which is the time of day, and >the remaining integer value is then converted to a real date type. > >HTH > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK >Sent: Thursday, May 18, 2006 5:58 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Convert SQL Server Date/Time to Date > > >Hi Chester > >Assume your Date Field is called 'SomeDateField >(I'm an Aussie so we order our dates as Date/Month/Year) > >In Access... > Format(Me.SomeDAteField, "dd/mm/yyyy) >In SQL > convert (char(10), SomeTableName.SomeDateField, 103) AS 'SomeDate' > >Hope this helps > >Have a great day > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester >Sent: Friday, 19 May 2006 7:49 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Convert SQL Server Date/Time to Date > >I have an access database linked to an SQL server table. SQL server stores a >time with the date. I want to extract only the date part when using this >field in a query. I know I have done it before but can someone refresh my >memory. Thanks. > > > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Fri May 19 12:30:38 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 19 May 2006 18:30:38 +0100 Subject: [AccessD] ADPs ETC in 2007 - Upsizing to 2005 References: <1D7828CDB8350747AFE9D69E0E90DA1F21C86849@xlivmbx21.aig.com> <446DFA9E.9090004@shaw.ca> Message-ID: For Information I have just received the new SQL Server 2005 upsizing tool provided by Microsoft.This is not released yet and still early beta. It blows the upsizing wizard, other third party tools and DTS out of the water. Its a stand alone tool and not part of Access. It can be used to prepare everything from 97 up to SQL Server 2005, full or Express. Now my opinion may change when I test it and see what bugs etc they have actually removed but on first look it is way ahead of what we have. Dosnt work for 2000. ADPs to SQL Server 2005 look very hopeful.I should have more concrete stuff soon. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From martyconnelly at shaw.ca Fri May 19 21:48:18 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 19 May 2006 19:48:18 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: References: <20060518003411.70798.qmail@web80832.mail.yahoo.com> <446CEE15.4030008@shaw.ca> Message-ID: <446E8372.6090809@shaw.ca> Hmm, just wondering if user is running under a admin account or not? Francisco Tapia wrote: >I tried that, the user still managed to get it to "poof" out of the >screen as she put it. > >On 5/18/06, MartyConnelly wrote: > > >>Try running Belarc on the two machines and compare the two lists. >>http://www.belarc.com/free_download.html >> >>It builds a detailed profile of your installed software and hardware, >>missing Microsoft hotfixes, anti-virus status, etc. and >>displays the results in your Web browser >>One other thing it lists your Windows and Office activation Keys >>just in case you forgot them >> >>You could also run the actual ADP on the machine to find a possible >>untrapped error. >> >>David Mcafee wrote: >> >> >> >>>We had issues here some Dells would reboot (the whole computer would restart) some users computers when using Access and others wouldnt. It was driving us nuts. >>> >>> It ended up being that the problem machines had a certain firmware on their ethernet or video card ( I cant remember which) and a certain driver for the card. Others users with just the firmware or just the driver (but not both) wouldn't have the problems. >>> >>> >>> >>> >>> >>>Francisco Tapia wrote: ACK! but why just this machine, on her old pc this never occured :( >>> >>>On 5/17/06, Charlotte Foust wrote: >>> >>> >>> >>> >>>>If it isn't an MDAC issue or a Jet service pack issue, it sounds like >>>>garbage collection. I've seen that behavior before and have a wretched >>>>time tracking it down to things like trying to use the value of a >>>>checkbox as an implicit boolean in code. Good luck. >>>> >>>> >>>>Charlotte Foust >>>> >>>>-----Original Message----- >>>>From: accessd-bounces at databaseadvisors.com >>>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco >>>>Tapia >>>>Sent: Wednesday, May 17, 2006 3:40 PM >>>>To: Access Developers discussion and problem solving >>>>Subject: Re: [AccessD] Odd XP machine >>>> >>>>the "system just closes out" is defined as: >>>> >>>>the user will be in her order entry screen either inputting a line item, >>>>or header info, or the main status screen when the system for no >>>>explainable reason closes and there is no error message displayed, "OR" >>>>even logged in event log or anywhere else, its' not a BSOD, or a GPF or >>>>an OS lockup, it's just "now you see it now you don't". >>>> >>>>The app is an ADE format, there are no LDB files, When the app dies, it >>>>is not on the task manager, so it's not hung up in the background and >>>>just not redrawn. The computer seems to run every other applications >>>>just fine w/o fail, it's just this app, and when I run it on her >>>>neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they >>>>both type about the same words per minute, and fly past the screens at >>>>about the same speed. If I trade this user to the other pc, the problem >>>>does not surface so it's not her work method. About the biggest >>>>diffrence is that the user with the problems has a newer dell than the >>>>other user. >>>> >>>> >>>> >>>>On 5/17/06, Stuart McLachlan wrote: >>>> >>>> >>>> >>>> >>>>>On 17 May 2006 at 13:50, Francisco Tapia wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>I have an application that is used accross the company here. It was >>>>>> >>>>>> >>>>>>written in Access2000 as an ADP. This app works on all windows >>>>>>2000/XP machines running SP4 and SP2 (respectively). I do have a >>>>>>newer XP machine that was just issued to a user and her system just >>>>>>closes out for no reason after just some usage. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>Great technical term, very detailed description of the symptoms - just >>>>> >>>>> >>>>>what we love to hear from users when trying to diagnose problems. >>>>> >>>>>What does "system just closes out" mean? >>>>> >>>>>Application closes itself? >>>>>Application fails with an error message? >>>>>Application disappears with no warning and without cleaning itself up? >>>>>Application disappears but task manager shows it is still running? >>>>>OS locks up? >>>>>BSOD? >>>>>Computer reboots spontaneously? >>>>>or something else entirely? >>>>> >>>>> >>>>> >>>>>-- >>>>>Stuart >>>>> >>>>> >>>>>-- >>>>>AccessD mailing list >>>>>AccessD at databaseadvisors.com >>>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>>Website: http://www.databaseadvisors.com >>>>> >>>>> >>>>> >>>>> >>>>> >>>>-- >>>>-Francisco >>>>http://pcthis.blogspot.com |PC news with out the jargon! >>>>http://sqlthis.blogspot.com | Tsql and More... >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/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 >> >> >> > > > > -- Marty Connelly Victoria, B.C. Canada From shamil at users.mns.ru Sat May 20 03:54:11 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 20 May 2006 12:54:11 +0400 Subject: [AccessD] OT: .NET Framework Compact Reference Message-ID: <000f01c67bea$f80308f0$6401a8c0@Nant> Hi All, Have anybody seen everywhere on .NET something like a .NET Framework Compact Reference? I mean a very short reference of all/main of its classes in the form like the following: public sealed class Path { // Fields public static readonly char AltDirectorySeparatorChar = '/'; public static readonly char DirectorySeparatorChar = '\\'; public static readonly char[] InvalidPathChars = {'\"', '<', '>', '|', '\0', '\b', (Char)16, (Char)17, (Char)18, (Char)20, (Char)21, (Char)22, (Char)23, (Char)24, (Char)25 }; public static readonly char PathSeparator = ';'; public static readonly char VolumeSeparatorChar = ':'; // Methods public static string ChangeExtension (string path, string extension); public static string Combine (string path1, string path2); public static string GetDirectoryName (string path); public static string GetExtension (string path); public static string GetFileName (string path); public static string GetFileNameWithoutExtension (string path); public static string GetFullPath (string path); public static string GetPathRoot (string path); public static string GetTempFileName (); public static string GetTempPath (); public static bool HasExtension (string path); public static bool IsPathRooted (string path); } Thank you. Shamil From mwp.reid at qub.ac.uk Sat May 20 06:34:00 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 20 May 2006 12:34:00 +0100 Subject: [AccessD] OT: .NET Framework Compact Reference References: <000f01c67bea$f80308f0$6401a8c0@Nant> Message-ID: THis sort of thing http://msdn2.microsoft.com/en-us/library/ms306608.aspx Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Sat 20/05/2006 09:54 To: !DBA-MAIN Subject: [AccessD] OT: .NET Framework Compact Reference Hi All, Have anybody seen everywhere on .NET something like a .NET Framework Compact Reference? I mean a very short reference of all/main of its classes in the form like the following: public sealed class Path { // Fields public static readonly char AltDirectorySeparatorChar = '/'; public static readonly char DirectorySeparatorChar = '\\'; public static readonly char[] InvalidPathChars = {'\"', '<', '>', '|', '\0', '\b', (Char)16, (Char)17, (Char)18, (Char)20, (Char)21, (Char)22, (Char)23, (Char)24, (Char)25 }; public static readonly char PathSeparator = ';'; public static readonly char VolumeSeparatorChar = ':'; // Methods public static string ChangeExtension (string path, string extension); public static string Combine (string path1, string path2); public static string GetDirectoryName (string path); public static string GetExtension (string path); public static string GetFileName (string path); public static string GetFileNameWithoutExtension (string path); public static string GetFullPath (string path); public static string GetPathRoot (string path); public static string GetTempFileName (); public static string GetTempPath (); public static bool HasExtension (string path); public static bool IsPathRooted (string path); } Thank you. Shamil -- 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 May 20 06:53:48 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 20 May 2006 15:53:48 +0400 Subject: [AccessD] OT: .NET Framework Compact Reference References: <000f01c67bea$f80308f0$6401a8c0@Nant> Message-ID: <001801c67c04$117c4cb0$6401a8c0@Nant> Yes, Martin, it looks not bad but still I'm looking for something more dense as in my sample below... Shamil ----- Original Message ----- From: "Martin Reid" To: "Access Developers discussion and problem solving" Sent: Saturday, May 20, 2006 3:34 PM Subject: Re: [AccessD] OT: .NET Framework Compact Reference THis sort of thing http://msdn2.microsoft.com/en-us/library/ms306608.aspx Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Shamil Salakhetdinov Sent: Sat 20/05/2006 09:54 To: !DBA-MAIN Subject: [AccessD] OT: .NET Framework Compact Reference Hi All, Have anybody seen everywhere on .NET something like a .NET Framework Compact Reference? I mean a very short reference of all/main of its classes in the form like the following: public sealed class Path { // Fields public static readonly char AltDirectorySeparatorChar = '/'; public static readonly char DirectorySeparatorChar = '\\'; public static readonly char[] InvalidPathChars = {'\"', '<', '>', '|', '\0', '\b', (Char)16, (Char)17, (Char)18, (Char)20, (Char)21, (Char)22, (Char)23, (Char)24, (Char)25 }; public static readonly char PathSeparator = ';'; public static readonly char VolumeSeparatorChar = ':'; // Methods public static string ChangeExtension (string path, string extension); public static string Combine (string path1, string path2); public static string GetDirectoryName (string path); public static string GetExtension (string path); public static string GetFileName (string path); public static string GetFileNameWithoutExtension (string path); public static string GetFullPath (string path); public static string GetPathRoot (string path); public static string GetTempFileName (); public static string GetTempPath (); public static bool HasExtension (string path); public static bool IsPathRooted (string path); } Thank you. Shamil From darrend at nimble.com.au Sat May 20 07:35:54 2006 From: darrend at nimble.com.au (Darren DICK) Date: Sat, 20 May 2006 22:35:54 +1000 Subject: [AccessD] A2003:Pictures in a report Message-ID: <20060520123603.JVBO25409.omta05sl.mx.bigpond.com@DENZILLAP> Hi all having a brain fade here I have a report that shows staff images I want to have the report show 3 images (each different from the other) per page I have set the report up to have 3 columns All the data is being represented in 3 separate vertical 'blurbs' as desired But how do I change the dot picture property for each record thus have 3 different faces in each of the 3 records per page? I am missing something simple and am having a brain fade Many thanks in advance Darren From Gustav at cactus.dk Sat May 20 08:34:22 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 20 May 2006 15:34:22 +0200 Subject: [AccessD] Convert SQL Server Date/Time to Date Message-ID: Hi Marty Yes, that's why the minimum date in SQL Server is 1753-01-01. I guess it's inherited from the original Sybase code. Access dates go back to 100-01-01. But dates in VBA follow a pseudo Gregorian calender from year 100 to the introduction of the Gregorian calendar in October 1582: http://www.ghgrb.ch/genealogicalIntroduction/kalender_gregorianisch.html where it started replacing the Julian calender and simply cut out the 11 days between the 4. and the 15. of October. VBA does not correct for this. Note that the World's move to the Gregorian calendar was a very long process lasting about 340 years. Russia delayed the switch until the time of the revolution, and the last country, Turkey, switched as late as in 1923: http://www.ghgrb.ch/genealogicalIntroduction/kalender_greg_start_chron.html /gustav >>> martyconnelly at shaw.ca 19-05-2006 19:04 >>> Ah, but then there is the Year 1752 bug at least for British dates. and its resultant 10 lost days. The best known case in the U.S. is that of George Washington, whose birthday was for many years a national holiday. It was observed on February 22, which is when Washington observed it--after 1752. He was born 1732-02-11 (O.S.). A further complication for dates in England and her colonies is that the official year began in March, so that Washington's birthday would have been written Feb. 11, 1732/31 (O.S.). This supposed birthdate for Issac Newton (4 Jan 1642) is a cute example of calendar confusion. Newton was born on Christmas, 25 Dec 1642. Or, at least, that's what day it was in England. Across the Channel in France, that same day was 4 Jan 1643; because France had switched to the Gregorian calendar, which England did not adopt until 1752. The confusion here presumably came from switching to the modern calendar date but trying to keep the familiar year of birth. Heenan, Lambert wrote: >Very true. I my normal daily life I never need to work with dates earlier >that 1900, but other do for sure. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Friday, May 19, 2006 10:02 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Convert SQL Server Date/Time to Date > > >Hi Lambert > >Just a note of caution. >You must use Fix() if you expect negative date values (prior to 1899-12-30) > > CDate(Fix(SomeDateField)) > >and/or - if you expect Null values (empty date field) - good old CVDate(): > > CVDate(Fix(SomeDateField)) > >/gustav > > > >>>>Lambert.Heenan at AIG.com 19-05-2006 15:21:26 >>> >>>> >>>> >In Access land, using Format will give you a *String* that looks like a >date. If you want an actual Date type try... > > Cdate(Int(SomeDateField)) > >Using Int() strips off the decimal fraction, which is the time of day, and >the remaining integer value is then converted to a real date type. > >HTH > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK >Sent: Thursday, May 18, 2006 5:58 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Convert SQL Server Date/Time to Date > > >Hi Chester > >Assume your Date Field is called 'SomeDateField >(I'm an Aussie so we order our dates as Date/Month/Year) > >In Access... > Format(Me.SomeDAteField, "dd/mm/yyyy) >In SQL > convert (char(10), SomeTableName.SomeDateField, 103) AS 'SomeDate' > >Hope this helps > >Have a great day > >Darren >------------------------------ >T: 0424 696 433 > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kaup, Chester >Sent: Friday, 19 May 2006 7:49 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Convert SQL Server Date/Time to Date > >I have an access database linked to an SQL server table. SQL server stores a >time with the date. I want to extract only the date part when using this >field in a query. I know I have done it before but can someone refresh my >memory. Thanks. From martyconnelly at shaw.ca Sat May 20 12:10:59 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 20 May 2006 10:10:59 -0700 Subject: [AccessD] OFFICE 2007 Beta 2 registration In-Reply-To: References: Message-ID: <446F4DA3.4070504@shaw.ca> Beta is due out sometime at end of summer http://www.microsoft.com/office/preview/ This is the link to sign up for beta news 'Register Now' and you'll be notified when the public preview is available. Registration doesn't necessarily mean you'll get the beta. You'll need a 'Windows Live ID' which is the latest name for the Microsoft Passport. Or just get a Hotmail account. -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Sat May 20 17:59:37 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 21 May 2006 08:59:37 +1000 Subject: [AccessD] A2003:Pictures in a report In-Reply-To: <20060520123603.JVBO25409.omta05sl.mx.bigpond.com@DENZILLAP> Message-ID: <44702BF9.25741.29577422@stuart.lexacorp.com.pg> On 20 May 2006 at 22:35, Darren DICK wrote: > Hi all > having a brain fade here > I have a report that shows staff images > I want to have the report show 3 images (each different from the other) per > page I have set the report up to have 3 columns All the data is being > represented in 3 separate vertical 'blurbs' as desired > > But how do I change the dot picture property for each record thus have 3 > different faces in each of the 3 records per page? > Assuming that the images are filed separately and your staff details table contains the path to the image in the field PhotoDirectory, in the Detail.OnFormat put imgStaffPhoto.Picture = PhotoDirectory -- Stuart From accessd at shaw.ca Sun May 21 14:07:40 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 21 May 2006 12:07:40 -0700 Subject: [AccessD] IE 7 In-Reply-To: <44702BF9.25741.29577422@stuart.lexacorp.com.pg> Message-ID: <0IZM003JYQDKTPB1@l-daemon> Hi All: Has anyone heard anything good, bad or indifferent about IE 7? Jim From bheid at appdevgrp.com Mon May 22 06:26:09 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 22 May 2006 07:26:09 -0400 Subject: [AccessD] OFFICE 2007 Beta 2 registration In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB356A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3543C@ADGSERVER> Thanks for the link Marty. When I follow that link, it loads up a page, but after about 5 seconds, it goes to another page that has "We're sorry, but there is no Microsoft.com Web page that matches your entry. It is possible you typed the address incorrectly, or the page may no longer exist. You may wish to try another entry or choose from the links below, which we hope will help you find what you're looking for." at the top. There are links to various places on MS on that new page. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Saturday, May 20, 2006 1:11 PM To: Access Developers discussion and problem solving Subject: [AccessD] OFFICE 2007 Beta 2 registration Beta is due out sometime at end of summer http://www.microsoft.com/office/preview/ This is the link to sign up for beta news 'Register Now' and you'll be notified when the public preview is available. Registration doesn't necessarily mean you'll get the beta. You'll need a 'Windows Live ID' which is the latest name for the Microsoft Passport. Or just get a Hotmail account. -- Marty Connelly Victoria, B.C. Canada From prosoft6 at hotmail.com Mon May 22 07:10:10 2006 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Mon, 22 May 2006 08:10:10 -0400 Subject: [AccessD] OFFICE 2007 Beta 2 registration In-Reply-To: <446F4DA3.4070504@shaw.ca> Message-ID: The link worked for me. Maybe your firewall is blocking it. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business From bheid at appdevgrp.com Mon May 22 07:34:50 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 22 May 2006 08:34:50 -0400 Subject: [AccessD] OFFICE 2007 Beta 2 registration In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB3628@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3543D@ADGSERVER> Hi Julie, I went back to look at it again. It does load the page. But the flash?? part that loads after the page, shows some activity. But after it shows those two buttons, it basically gives me a 404 page. http://www.microsoft.com/info/404error.htm Ok, I clicked on the developer type under that window and was able to continue on properly. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon-Taylor Sent: Monday, May 22, 2006 8:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OFFICE 2007 Beta 2 registration The link worked for me. Maybe your firewall is blocking it. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business From cfoust at infostatsystems.com Mon May 22 10:46:42 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 22 May 2006 08:46:42 -0700 Subject: [AccessD] IE 7 In-Reply-To: <0IZM003JYQDKTPB1@l-daemon> Message-ID: Well, I know MS already has an XP patch for problems with IE 7, but I don't know how to categorize that information. ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, May 21, 2006 12:08 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] IE 7 Hi All: Has anyone heard anything good, bad or indifferent about IE 7? Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon May 22 14:31:31 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 22 May 2006 12:31:31 -0700 Subject: [AccessD] IE 7 In-Reply-To: Message-ID: <0IZO0042AM5ARG40@l-daemon> Hi Charlotte: Classify it as 'indifferent' as it seems to be fairly standard IP deployment. Issues and Patch. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, May 22, 2006 8:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] IE 7 Well, I know MS already has an XP patch for problems with IE 7, but I don't know how to categorize that information. ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, May 21, 2006 12:08 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] IE 7 Hi All: Has anyone heard anything good, bad or indifferent about IE 7? 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 bchacc at san.rr.com Mon May 22 15:50:49 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 22 May 2006 13:50:49 -0700 Subject: [AccessD] FTP From Access Message-ID: <44722429.6090500@san.rr.com> Dear List: What is the quickest, easiest, and./or fastest way to FTP something from Access to a website? MTIA Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From stuart at lexacorp.com.pg Mon May 22 16:27:57 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 23 May 2006 07:27:57 +1000 Subject: [AccessD] FTP From Access In-Reply-To: <44722429.6090500@san.rr.com> Message-ID: <4472B97D.20383.33502D15@stuart.lexacorp.com.pg> On 22 May 2006 at 13:50, Rocky Smolin - Beach Access S wrote: > Dear List: > > What is the quickest, easiest, and./or fastest way to FTP something from > Access to a website? > Shell out to an FTP app. You can script a session in the built in Windows FTP CLI - see details at http://www.robvanderwoude.com/index.html or to make it a bit easier, grab a copy of my FTPSend utility from http://www.lexacorp.com.pg (under Free Siftware - Misceellaneous utilities) A 17KB download: "FTPSend will upload a specified file to a web site based on parameters passed to it on the command line or in an encrypted parameter file. By putting it in a batch file or calling it from a macro/procedure in another application, you can automate updating of files on your site." -- Stuart From bchacc at san.rr.com Mon May 22 17:02:19 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 22 May 2006 15:02:19 -0700 Subject: [AccessD] FTP From Access In-Reply-To: <4472B97D.20383.33502D15@stuart.lexacorp.com.pg> References: <4472B97D.20383.33502D15@stuart.lexacorp.com.pg> Message-ID: <447234EB.9070700@san.rr.com> Staurt: I'm looking at your FTPSend.exe help screen. It says you need to use /C first to create the encrypted parameter file then call it again (I guess) using /R? On the web site however it says you call it based on parameters passed to it on the command line. With the parameters to avoid the parameter file? Would you then not use either /C or /R? Regards, Rocky Stuart McLachlan wrote: > On 22 May 2006 at 13:50, Rocky Smolin - Beach Access S wrote: > > >> Dear List: >> >> What is the quickest, easiest, and./or fastest way to FTP something from >> Access to a website? >> >> > > Shell out to an FTP app. > > You can script a session in the built in Windows FTP CLI - see details at > http://www.robvanderwoude.com/index.html > > or to make it a bit easier, grab a copy of my FTPSend utility from > http://www.lexacorp.com.pg (under Free Siftware - Misceellaneous utilities) > A 17KB download: > > "FTPSend will upload a specified file to a web site based on parameters > passed to it on the command line or in an encrypted parameter file. By > putting it in a batch file or calling it from a macro/procedure in another > application, you can automate updating of files on your site." > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From accessd at shaw.ca Mon May 22 17:05:45 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 22 May 2006 15:05:45 -0700 Subject: [AccessD] FTP From Access In-Reply-To: <44722429.6090500@san.rr.com> Message-ID: <0IZO007DRTACO850@l-daemon> Hi Rocky: Why not check out the article, code and download supplied through the DBA by the efforts of William Hindman, Darren Dick, myself and others at: http://www.databaseadvisors.com/newsletters/newsletter200503/0503howtocreate anftpclientwithinaccess/howtocreateanftpclientwithinaccess.htm There is a complete FTP application written in Access. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, May 22, 2006 1:51 PM To: Access Developers discussion and problem solving Subject: [AccessD] FTP From Access Dear List: What is the quickest, easiest, and./or fastest way to FTP something from Access to a website? 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 Mon May 22 17:08:17 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 22 May 2006 15:08:17 -0700 Subject: [AccessD] FTP From Access In-Reply-To: <0IZO007DRTACO850@l-daemon> References: <0IZO007DRTACO850@l-daemon> Message-ID: <44723651.40302@san.rr.com> Jim: That might be way too easy :) I'll take a look. Thanks. Rocky Jim Lawrence wrote: > Hi Rocky: > > Why not check out the article, code and download supplied through the DBA by > the efforts of William Hindman, Darren Dick, myself and others at: > http://www.databaseadvisors.com/newsletters/newsletter200503/0503howtocreate > anftpclientwithinaccess/howtocreateanftpclientwithinaccess.htm > > There is a complete FTP application written in Access. > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Monday, May 22, 2006 1:51 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] FTP From Access > > Dear List: > > What is the quickest, easiest, and./or fastest way to FTP something from > Access to a website? > > MTIA > > Rocky > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From dw-murphy at cox.net Mon May 22 17:26:29 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 22 May 2006 15:26:29 -0700 Subject: [AccessD] FTP From Access In-Reply-To: <44723651.40302@san.rr.com> Message-ID: <006e01c67dee$c5629ae0$0200a8c0@murphy3234aaf1> Rocky, This is the way to go. I use William's code in several apps and have never had a problem with it. The code I the article may have more features, but the code I got from William has worked flawlesly. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, May 22, 2006 3:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FTP From Access Jim: That might be way too easy :) I'll take a look. Thanks. Rocky Jim Lawrence wrote: > Hi Rocky: > > Why not check out the article, code and download supplied through the > DBA by the efforts of William Hindman, Darren Dick, myself and others at: > http://www.databaseadvisors.com/newsletters/newsletter200503/0503howto > create anftpclientwithinaccess/howtocreateanftpclientwithinaccess.htm > > There is a complete FTP application written in Access. > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin - Beach Access Software > Sent: Monday, May 22, 2006 1:51 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] FTP From Access > > Dear List: > > What is the quickest, easiest, and./or fastest way to FTP something > from Access to a website? > > 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 DWUTKA at marlow.com Mon May 22 18:44:18 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 22 May 2006 18:44:18 -0500 Subject: [AccessD] FTP From Access Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B242D@main2.marlow.com> Put the following in a class module and save it. (I call it FTPSite): Option Explicit Private Declare Function FtpFindFirstFile Lib "wininet.dll" Alias "FtpFindFirstFileA" (ByVal hFtpSession As Long, ByVal lpszSearchFile As String, lpFindFileData As WIN32_FIND_DATA, ByVal dwFlags As Long, ByVal dwContent As Long) As Long Private Declare Function InternetConnect Lib "wininet.dll" Alias "InternetConnectA" (ByVal hInternetSession As Long, ByVal sServerName As String, ByVal nServerPort As Integer, ByVal sUsername As String, ByVal sPassword As String, ByVal lService As Long, ByVal lFlags As Long, ByVal lContext As Long) As Long Private Declare Function InternetFindNextFile Lib "wininet.dll" Alias "InternetFindNextFileA" (ByVal hFind As Long, lpvFindData As WIN32_FIND_DATA) As Long Private Declare Function InternetCloseHandle Lib "wininet.dll" (ByVal hInet As Long) As Integer Private Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" (ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long Private Declare Function FileTimeToSystemTime Lib "kernel32" (lpFileTime As FILETIME, lpSystemTime As SYSTEMTIME) As Long Private Declare Function FtpOpenFile Lib "wininet.dll" Alias "FtpOpenFileA" (ByVal hFtpSession As Long, ByVal sBuff As String, ByVal Access As Long, ByVal Flags As Long, ByVal Context As Long) As Long Private Declare Function InternetReadFile Lib "wininet.dll" (ByVal hFile As Long, ByVal sBuffer As String, ByVal lNumBytesToRead As Long, lNumberOfBytesRead As Long) As Integer Private Declare Function InternetWriteFile Lib "wininet.dll" (ByVal hFile As Long, ByRef sBuffer As Byte, ByVal lNumBytesToWrite As Long, dwNumberOfBytesWritten As Long) As Integer Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long) Private Const MAX_PATH = 260 Private Type FILETIME dwLowDateTime As Long dwHighDateTime As Long End Type Private Type WIN32_FIND_DATA dwFileAttributes As Long ftCreationTime As FILETIME ftLastAccessTime As FILETIME ftLastWriteTime As FILETIME nFileSizeHigh As Long nFileSizeLow As Long dwReserved0 As Long dwReserved1 As Long cFileName As String * MAX_PATH cAlternate As String * 14 End Type Private 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 Private Const INTERNET_OPEN_TYPE_PRECONFIG = 0 Private Const INTERNET_SERVICE_FTP = 1 Private Const INTERNET_FLAG_TRANSFER_BINARY = &H2 Private Const INTERNET_FLAG_NO_CACHE_WRITE = &H4000000 Private Const GENERIC_READ = &H80000000 Private Const GENERIC_WRITE = &H40000000 Private Const INTERNET_FLAG_PASSIVE = &H8000000 Public SiteName As String Public Port As Long Public UserName As String Public Password As Variant Public NewestFile As Date Dim blConnected As Boolean Dim hOpen As Long Dim hConnect As Long Dim hFile As Long Dim f As Long Dim int10KDownloaded As Long Dim blPause As Boolean Dim blCancel As Boolean Dim blDeleteDownloadedFile As Boolean Dim FTPFiles As Collection Dim SaveFilePath As String Event ConnectionStateChange() Event FTPError(strErrorMessage As String) Const intChunkSize As Long = 10240 Event StartingDownload() Event ProgressAlert(intTenthsDownloaded As Long) Event DownloadComplete(intTotalTenths As Long, blCanceled As Boolean) 'Event AllFilesUnzipped() Event UnzippingFile(strFileName As String) Event FileUnzipped(strFileName As String) Public AllFilesUnzipped As Boolean Public Function StartingUnzip(strFileName As String) RaiseEvent UnzippingFile(strFileName) End Function Public Function CloseUploadFile() InternetCloseHandle hFile End Function Public Function UploadData(ByVal strData As String) Dim intBuffer As Long Dim dwReturn As Long Dim intLen As Long 'Dim strTemp As String Dim byteBuffer() As Byte 'strTemp = strData intLen = Len(strData) ReDim byteBuffer(0 To intLen - 1) CopyMemory byteBuffer(0), ByVal strData, intLen dwReturn = InternetWriteFile(hFile, byteBuffer(0), intLen, intBuffer) End Function Public Function StartUploadFile(strNewName As String) If Not blConnected Then Connect hFile = FtpOpenFile(hConnect, strNewName, GENERIC_WRITE, 2, 0) End Function Property Get Paused() As Boolean Paused = blPause End Property Property Get FileCount() As Long FileCount = FTPFiles.Count End Property Property Get Connected() As Boolean Connected = blConnected End Property Public Function Connect() hOpen = InternetOpen("Dean File Upload Testing", INTERNET_OPEN_TYPE_PRECONFIG, vbNullString, vbNullString, 0) If hOpen = 0 Then RaiseEvent FTPError("Error with InternetOpen") Else hConnect = InternetConnect(hOpen, SiteName, Port, UserName, Password, INTERNET_SERVICE_FTP, 0, 0) 'hConnect = InternetConnect(hOpen, SiteName, Port, UserName, Password, INTERNET_SERVICE_FTP, 0, 0) If hConnect = 0 Then RaiseEvent FTPError("Error with InternetConnect") Else blConnected = True RaiseEvent ConnectionStateChange DoEvents End If End If End Function Public Function Disconnect() If hConnect <> 0 Then InternetCloseHandle hConnect If hOpen <> 0 Then InternetCloseHandle hOpen If blConnected Then blConnected = False RaiseEvent ConnectionStateChange End If End Function Private Sub Class_Initialize() 'RestoreToStoredSettings Set FTPFiles = New Collection blPause = False blCancel = False blDeleteDownloadedFile = False AllFilesUnzipped = False End Sub Private Sub Class_Terminate() Disconnect Set FTPFiles = Nothing End Sub TO run this, the code would be something like this: Dim fSite As FTPSite Dim strTemp As String Set fSite = New FTPSite fSite.Connect fSite.SiteName="ftp.whateveryourftpserveris.com" fSite.Port=21 'this is the usual FTP port fSite.UserName="whateverusername" fsite.Password="whateverpassword" fSite.StartUploadFile "File name you want on the ftp server.txt" strTemp="you would set strtemp to the data you want to upload....." fSite.UploadData strTemp fSite.CloseUploadFile Set fSite = Nothing A few notes on this. FTPSite's 'UploadData' function can be used over and over. So, for example, let's say you want to upload the data from a recordset. You could put fSite.UploadData in the loop, looping through the fields (putting in a delimiter after each field) and looping through records. If you are uploading a lot of data, you can break it up, and have a 'progress' indication going as you are uploading chunks. If you try sending a few megs at once, the code is going to pause a while at that command, where as a few k at a time go pretty fast (depending on the connection) Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Monday, May 22, 2006 3:51 PM To: Access Developers discussion and problem solving Subject: [AccessD] FTP From Access Dear List: What is the quickest, easiest, and./or fastest way to FTP something from Access to a website? 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 stuart at lexacorp.com.pg Tue May 23 02:31:14 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 23 May 2006 17:31:14 +1000 Subject: [AccessD] FTP From Access In-Reply-To: <447234EB.9070700@san.rr.com> References: <4472B97D.20383.33502D15@stuart.lexacorp.com.pg> Message-ID: <447346E2.9815.35787F8D@stuart.lexacorp.com.pg> On 22 May 2006 at 15:02, Rocky Smolin - Beach Access S wrote: > Staurt: > > I'm looking at your FTPSend.exe help screen. It says you need to use /C > first to create the encrypted parameter file then call it again (I guess) > using /R? On the web site however it says you call it based on parameters > passed to it on the command line. With the parameters to avoid the > parameter file? Would you then not use either /C or /R? > That's why the "/C ParamterFileName" is in square brackets on the help screen. It means that it is an optional parameter. If you start with a /C it will create the parameter file and then quit. It won't perform an FTP session. If you start with a /R it will read the parameter file first to get the default parameters, these will be overridden by other parameters which follow, if any. If you don't have either /C or /R at the start of the command line, it will not even think about a parameter file. It will just run with the parameters on the command line. -- Stuart From fhtapia at gmail.com Tue May 23 11:34:39 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 23 May 2006 09:34:39 -0700 Subject: [AccessD] Odd XP machine In-Reply-To: <446E8372.6090809@shaw.ca> References: <20060518003411.70798.qmail@web80832.mail.yahoo.com> <446CEE15.4030008@shaw.ca> <446E8372.6090809@shaw.ca> Message-ID: I just checked, and on the good PC, the user is explicitly a Power user (not admin). On the pc w/ the problems it has \everyone in the power users group. So I added her so she is explicitly a power user. maybe this will help out? -- Francisco On 5/19/06, MartyConnelly wrote: > Hmm, just wondering if user is running under a admin account or not? > > Francisco Tapia wrote: > > >I tried that, the user still managed to get it to "poof" out of the > >screen as she put it. > > > >On 5/18/06, MartyConnelly wrote: > > > > > >>Try running Belarc on the two machines and compare the two lists. > >>http://www.belarc.com/free_download.html > >> > >>It builds a detailed profile of your installed software and hardware, > >>missing Microsoft hotfixes, anti-virus status, etc. and > >>displays the results in your Web browser > >>One other thing it lists your Windows and Office activation Keys > >>just in case you forgot them > >> > >>You could also run the actual ADP on the machine to find a possible > >>untrapped error. > >> > >>David Mcafee wrote: > >> > >> > >> > >>>We had issues here some Dells would reboot (the whole computer would restart) some users computers when using Access and others wouldnt. It was driving us nuts. > >>> > >>> It ended up being that the problem machines had a certain firmware on their ethernet or video card ( I cant remember which) and a certain driver for the card. Others users with just the firmware or just the driver (but not both) wouldn't have the problems. > >>> > >>> > >>> > >>> > >>> > >>>Francisco Tapia wrote: ACK! but why just this machine, on her old pc this never occured :( > >>> > >>>On 5/17/06, Charlotte Foust wrote: > >>> > >>> > >>> > >>> > >>>>If it isn't an MDAC issue or a Jet service pack issue, it sounds like > >>>>garbage collection. I've seen that behavior before and have a wretched > >>>>time tracking it down to things like trying to use the value of a > >>>>checkbox as an implicit boolean in code. Good luck. > >>>> > >>>> > >>>>Charlotte Foust > >>>> > >>>>-----Original Message----- > >>>>From: accessd-bounces at databaseadvisors.com > >>>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco > >>>>Tapia > >>>>Sent: Wednesday, May 17, 2006 3:40 PM > >>>>To: Access Developers discussion and problem solving > >>>>Subject: Re: [AccessD] Odd XP machine > >>>> > >>>>the "system just closes out" is defined as: > >>>> > >>>>the user will be in her order entry screen either inputting a line item, > >>>>or header info, or the main status screen when the system for no > >>>>explainable reason closes and there is no error message displayed, "OR" > >>>>even logged in event log or anywhere else, its' not a BSOD, or a GPF or > >>>>an OS lockup, it's just "now you see it now you don't". > >>>> > >>>>The app is an ADE format, there are no LDB files, When the app dies, it > >>>>is not on the task manager, so it's not hung up in the background and > >>>>just not redrawn. The computer seems to run every other applications > >>>>just fine w/o fail, it's just this app, and when I run it on her > >>>>neighbor's pc who also has a windows xpsp2, it runs fine w/o fail, they > >>>>both type about the same words per minute, and fly past the screens at > >>>>about the same speed. If I trade this user to the other pc, the problem > >>>>does not surface so it's not her work method. About the biggest > >>>>diffrence is that the user with the problems has a newer dell than the > >>>>other user. > >>>> > >>>> > >>>> > >>>>On 5/17/06, Stuart McLachlan wrote: > >>>> > >>>> > >>>> > >>>> > >>>>>On 17 May 2006 at 13:50, Francisco Tapia wrote: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>I have an application that is used accross the company here. It was > >>>>>> > >>>>>> > >>>>>>written in Access2000 as an ADP. This app works on all windows > >>>>>>2000/XP machines running SP4 and SP2 (respectively). I do have a > >>>>>>newer XP machine that was just issued to a user and her system just > >>>>>>closes out for no reason after just some usage. > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>Great technical term, very detailed description of the symptoms - just > >>>>> > >>>>> > >>>>>what we love to hear from users when trying to diagnose problems. > >>>>> > >>>>>What does "system just closes out" mean? > >>>>> > >>>>>Application closes itself? > >>>>>Application fails with an error message? > >>>>>Application disappears with no warning and without cleaning itself up? > >>>>>Application disappears but task manager shows it is still running? > >>>>>OS locks up? > >>>>>BSOD? > >>>>>Computer reboots spontaneously? > >>>>>or something else entirely? > >>>>> > >>>>> > >>>>> > >>>>>-- > >>>>>Stuart > >>>>> > >>>>> > >>>>>-- > >>>>>AccessD mailing list > >>>>>AccessD at databaseadvisors.com > >>>>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>>>Website: http://www.databaseadvisors.com > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>-- > >>>>-Francisco > >>>>http://pcthis.blogspot.com |PC news with out the jargon! > >>>>http://sqlthis.blogspot.com | Tsql and More... > >>>>-- > >>>>AccessD mailing list > >>>>AccessD at databaseadvisors.com > >>>>http://databaseadvisors.com/mailman/listinfo/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 > >> > >> > >> > > > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Tue May 23 11:35:10 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 23 May 2006 09:35:10 -0700 Subject: [AccessD] IE 7 In-Reply-To: <0IZM003JYQDKTPB1@l-daemon> References: <44702BF9.25741.29577422@stuart.lexacorp.com.pg> <0IZM003JYQDKTPB1@l-daemon> Message-ID: it looks like Firefox ;) On 5/21/06, Jim Lawrence wrote: > Hi All: > > Has anyone heard anything good, bad or indifferent about IE 7? > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From fhtapia at gmail.com Tue May 23 11:36:14 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Tue, 23 May 2006 09:36:14 -0700 Subject: [AccessD] IE 7 In-Reply-To: References: <44702BF9.25741.29577422@stuart.lexacorp.com.pg> <0IZM003JYQDKTPB1@l-daemon> Message-ID: actually a user here who loaded it found that some of our "IE" only sites do not render correctly in IE7. On 5/23/06, Francisco Tapia wrote: > it looks like Firefox ;) > > On 5/21/06, Jim Lawrence wrote: > > Hi All: > > > > Has anyone heard anything good, bad or indifferent about IE 7? > > > > Jim > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > -Francisco > http://pcthis.blogspot.com |PC news with out the jargon! > http://sqlthis.blogspot.com | Tsql and More... > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From bheid at appdevgrp.com Tue May 23 11:59:08 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 23 May 2006 12:59:08 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: IE 7 In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DB37D0@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35449@ADGSERVER> >From what I understand, IE7 is much more web compliant. IE6 and all were not web compliant, but since it was the major player, everyone did stuff so that it would run in older IE versions. Therefore, some items may not work correctly in IE7. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Tuesday, May 23, 2006 12:36 PM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] IE 7 Importance: Low actually a user here who loaded it found that some of our "IE" only sites do not render correctly in IE7. On 5/23/06, Francisco Tapia wrote: > it looks like Firefox ;) > > On 5/21/06, Jim Lawrence wrote: > > Hi All: > > > > Has anyone heard anything good, bad or indifferent about IE 7? > > > > Jim From cfoust at infostatsystems.com Tue May 23 12:59:46 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 23 May 2006 10:59:46 -0700 Subject: [AccessD] IE 7 In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D35449@ADGSERVER> Message-ID: That kind of reasoning makes my head ache!! :o< Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, May 23, 2006 9:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [SPAM SUSPECT] Re: IE 7 >From what I understand, IE7 is much more web compliant. IE6 and all >were not web compliant, but since it was the major player, everyone did stuff so that it would run in older IE versions. Therefore, some items may not work correctly in IE7. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Tuesday, May 23, 2006 12:36 PM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] IE 7 Importance: Low actually a user here who loaded it found that some of our "IE" only sites do not render correctly in IE7. On 5/23/06, Francisco Tapia wrote: > it looks like Firefox ;) > > On 5/21/06, Jim Lawrence wrote: > > Hi All: > > > > Has anyone heard anything good, bad or indifferent about IE 7? > > > > Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue May 23 14:56:32 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 23 May 2006 19:56:32 +0000 Subject: [AccessD] OT: This Wonderful List Message-ID: Hello All, I use a Hotmail email account to receive/manage my AccessD messages. I just went through and cleaned up the folders, for space issues, from the last year or so(threads that I kept for one reason or another). I read through a number of them and started laughing at some points and impressed at others. The camaraderie , joking, seriousness, and brilliance in the different postings, and sometimes combined in one posting made me glad to be a part of this list. A large group of people providing help (FREE help) to other people that in most cases, they have never met. I just wanted to say thanks to everyone here. Below is one that I gave a good laugh.(Thanks Steve and Roz) Mark A. Matte P.S...The one humorous post that stuck out the most was from Apr05...subject" How to Learn Access" On Apr 6, 2005 9:40 AM, Roz Clarke wrote: >Step number 1, join this list. Start a random project, and bug people until >you make sense of it. > >I learned everything by trial and error, and listening to the several gurus >we have here. IMO, there's just no better way to push yourself. On Apr 6, 2005 10:27 Steve Erbach wrote: >I call that the "frog dissection" method: open that puppy up and poke >around with your scalpel and an electricified wire until something >jumps. From harkinsss at bellsouth.net Tue May 23 15:59:24 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 23 May 2006 16:59:24 -0400 Subject: [AccessD] Setting field name in recordset Message-ID: <002101c67eab$c65f9ca0$cfb3d6d1@SUSANONE> ctl.Caption = rstControls.Fields(language) I'm trying to grab a value from a recordset where the field changes. The variable language is a string that holds the field name and I don't know whether that's the problem or whether I'm using the wrong syntax. Should I be referring to a field object instead of a string? I'm sure I've done this before, but I just can't remember how. I'm using ADO, not DAO. Susan H. From accessd at shaw.ca Tue May 23 16:30:22 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 23 May 2006 14:30:22 -0700 Subject: [AccessD] IE7 In-Reply-To: Message-ID: <0IZQ00BVHMBANLF0@l-daemon> Thank you, Francisco, Charlotte and Bobby for your input I guess IE7 is ready for prime-time use... on the virtual PC. I have been using Firefox extensively and am still concerned whether there will be some grim conflict between my non-MS products. After the battle to get SQL Express (beta) and SQL 2005 happy, that ended up requiring 2 complete installs, in the middle of a contact and a weeks lost work, I am a little gun shy. Until the group gives this product the stamp of approval testing can wait until the mid summer doldrums. Jim From andy at minstersystems.co.uk Tue May 23 17:03:01 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 23 May 2006 23:03:01 +0100 Subject: [AccessD] Setting field name in recordset In-Reply-To: <002101c67eab$c65f9ca0$cfb3d6d1@SUSANONE> Message-ID: <00b401c67eb4$a959b740$e53b0c54@minster33c3r25> Susan Isn't it rstControls(language)? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Susan Harkins > Sent: 23 May 2006 21:59 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Setting field name in recordset > > > ctl.Caption = rstControls.Fields(language) > > I'm trying to grab a value from a recordset where the field > changes. The variable language is a string that holds the > field name and I don't know whether that's the problem or > whether I'm using the wrong syntax. Should I be referring to > a field object instead of a string? I'm sure I've done this > before, but I just can't remember how. > > I'm using ADO, not DAO. > > 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 Tue May 23 17:14:06 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 23 May 2006 18:14:06 -0400 Subject: [AccessD] Setting field name in recordset In-Reply-To: <00b401c67eb4$a959b740$e53b0c54@minster33c3r25> Message-ID: <005e01c67eb6$35a87d20$cfb3d6d1@SUSANONE> I tried that already -- I get a type mismatch error. Susan H. Susan Isn't it rstControls(language)? > > > ctl.Caption = rstControls.Fields(language) > > I'm trying to grab a value from a recordset where the field changes. > The variable language is a string that holds the field name and I > don't know whether that's the problem or whether I'm using the wrong > syntax. Should I be referring to a field object instead of a string? > I'm sure I've done this before, but I just can't remember how. > > I'm using ADO, not DAO. > From harkinsss at bellsouth.net Tue May 23 17:18:29 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 23 May 2006 18:18:29 -0400 Subject: [AccessD] Setting field name in recordset In-Reply-To: <00b401c67eb4$a959b740$e53b0c54@minster33c3r25> Message-ID: <005f01c67eb6$d26fd590$cfb3d6d1@SUSANONE> FWIW, I'm passing the string value to a function. The Tooltip shows Language = "English" Debug.Print prints English It's there -- but rstControls doesn't like it. The mismatch type is the hint I guess -- that's why I asked if maybe the variable, language, needs to be an object instead of a string. Susan H. Susan Isn't it rstControls(language)? From harkinsss at bellsouth.net Tue May 23 17:44:14 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 23 May 2006 18:44:14 -0400 Subject: [AccessD] Nevermind: RE: Setting field name in recordset In-Reply-To: <00b401c67eb4$a959b740$e53b0c54@minster33c3r25> Message-ID: <006501c67eba$6b569110$cfb3d6d1@SUSANONE> The problem doesn't seem to be the rstControls(language) statement at all, although that's where the actual problem actually shows up -- sorry. Susan Isn't it rstControls(language)? From pharold at proftesting.com Tue May 23 17:55:07 2006 From: pharold at proftesting.com (Perry L Harold) Date: Tue, 23 May 2006 18:55:07 -0400 Subject: [AccessD] Setting field name in recordset In-Reply-To: <002101c67eab$c65f9ca0$cfb3d6d1@SUSANONE> Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD1FD034@EXCHANGE.ptiorl.local> Language may be a reserved word. Maybe use strLanguage or strLang? The syntax looks correct Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, May 23, 2006 4:59 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Setting field name in recordset ctl.Caption = rstControls.Fields(language) I'm trying to grab a value from a recordset where the field changes. The variable language is a string that holds the field name and I don't know whether that's the problem or whether I'm using the wrong syntax. Should I be referring to a field object instead of a string? I'm sure I've done this before, but I just can't remember how. I'm using ADO, not DAO. 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 Tue May 23 18:10:59 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Tue, 23 May 2006 19:10:59 -0400 Subject: [AccessD] Setting field name in recordset In-Reply-To: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD1FD034@EXCHANGE.ptiorl.local> Message-ID: <000901c67ebe$2786f5c0$cfb3d6d1@SUSANONE> No, but thank you -- that was a good guess. I don't even want to tell you what I did -- it had nothing to do with syntax and everything to do with forgetting to update a different reference. Susan H. Language may be a reserved word. Maybe use strLanguage or strLang? The syntax looks correct From kp at sdsonline.net Tue May 23 18:59:23 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 24 May 2006 09:59:23 +1000 Subject: [AccessD] OT: This Wonderful List References: Message-ID: <004e01c67ec4$eaa54fb0$6601a8c0@office> Mark - it only really hits you how nice a group we have here when you join other lists - I am amazed at the way people speak to each other on some of the forums. Home sweet home! Kath ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Wednesday, May 24, 2006 5:56 AM Subject: [AccessD] OT: This Wonderful List Hello All, I use a Hotmail email account to receive/manage my AccessD messages. I just went through and cleaned up the folders, for space issues, from the last year or so(threads that I kept for one reason or another). I read through a number of them and started laughing at some points and impressed at others. The camaraderie , joking, seriousness, and brilliance in the different postings, and sometimes combined in one posting made me glad to be a part of this list. A large group of people providing help (FREE help) to other people that in most cases, they have never met. I just wanted to say thanks to everyone here. Below is one that I gave a good laugh.(Thanks Steve and Roz) Mark A. Matte P.S...The one humorous post that stuck out the most was from Apr05...subject" How to Learn Access" On Apr 6, 2005 9:40 AM, Roz Clarke wrote: >Step number 1, join this list. Start a random project, and bug people until >you make sense of it. > >I learned everything by trial and error, and listening to the several gurus >we have here. IMO, there's just no better way to push yourself. On Apr 6, 2005 10:27 Steve Erbach wrote: >I call that the "frog dissection" method: open that puppy up and poke >around with your scalpel and an electricified wire until something >jumps. -- 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 May 23 19:07:20 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 23 May 2006 17:07:20 -0700 Subject: [AccessD] FTP From Access In-Reply-To: <447346E2.9815.35787F8D@stuart.lexacorp.com.pg> References: <4472B97D.20383.33502D15@stuart.lexacorp.com.pg> <447346E2.9815.35787F8D@stuart.lexacorp.com.pg> Message-ID: <4473A3B8.4040607@san.rr.com> Many thanks to all who responded. I talked myself out of a job by sending the Lawrence/Hindman/Dick solution to my client who will try to implement it himself. I think he may be able to do it. If he wants to pay me anything I'll have him send it to DBA. Best, Rocky Stuart McLachlan wrote: > On 22 May 2006 at 15:02, Rocky Smolin - Beach Access S wrote: > > >> Staurt: >> >> I'm looking at your FTPSend.exe help screen. It says you need to use /C >> first to create the encrypted parameter file then call it again (I guess) >> using /R? On the web site however it says you call it based on parameters >> passed to it on the command line. With the parameters to avoid the >> parameter file? Would you then not use either /C or /R? >> >> > > That's why the "/C ParamterFileName" is in square brackets on the help > screen. It means that it is an optional parameter. > If you start with a /C it will create the parameter file and then quit. It > won't perform an FTP session. > If you start with a /R it will read the parameter file first to get the > default parameters, these will be overridden by other parameters which > follow, if any. > > If you don't have either /C or /R at the start of the command line, it will > not even think about a parameter file. It will just run with the > parameters on the command line. > > > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Tue May 23 19:09:37 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 23 May 2006 17:09:37 -0700 Subject: [AccessD] OT: This Wonderful List In-Reply-To: <004e01c67ec4$eaa54fb0$6601a8c0@office> References: <004e01c67ec4$eaa54fb0$6601a8c0@office> Message-ID: <4473A441.2020005@san.rr.com> You want some DBA trash talk? C'mon over to OT. Rocky Kath Pelletti wrote: > Mark - it only really hits you how nice a group we have here when you join other lists - I am amazed at the way people speak to each other on some of the forums. > > Home sweet home! > Kath > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Wednesday, May 24, 2006 5:56 AM > Subject: [AccessD] OT: This Wonderful List > > > Hello All, > > I use a Hotmail email account to receive/manage my AccessD messages. I just > went through and cleaned up the folders, for space issues, from the last > year or so(threads that I kept for one reason or another). I read through a > number of them and started laughing at some points and impressed at others. > The camaraderie , joking, seriousness, and brilliance in the different > postings, and sometimes combined in one posting made me glad to be a part of > this list. A large group of people providing help (FREE help) to other > people that in most cases, they have never met. > > I just wanted to say thanks to everyone here. Below is one that I gave a > good laugh.(Thanks Steve and Roz) > > Mark A. Matte > > P.S...The one humorous post that stuck out the most was from > Apr05...subject" How to Learn Access" > > On Apr 6, 2005 9:40 AM, Roz Clarke wrote: > >Step number 1, join this list. Start a random project, and bug people until > >you make sense of it. > > > >I learned everything by trial and error, and listening to the several gurus > >we have here. IMO, there's just no better way to push yourself. > > On Apr 6, 2005 10:27 Steve Erbach wrote: > >I call that the "frog dissection" method: open that puppy up and poke > >around with your scalpel and an electricified wire until something > >jumps. > > > -- > 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 kp at sdsonline.net Tue May 23 19:24:29 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 24 May 2006 10:24:29 +1000 Subject: [AccessD] OT: This Wonderful List References: <004e01c67ec4$eaa54fb0$6601a8c0@office> <4473A441.2020005@san.rr.com> Message-ID: <005b01c67ec8$6c483bb0$6601a8c0@office> Not even tempted...... ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, May 24, 2006 10:09 AM Subject: Re: [AccessD] OT: This Wonderful List You want some DBA trash talk? C'mon over to OT. Rocky Kath Pelletti wrote: > Mark - it only really hits you how nice a group we have here when you join other lists - I am amazed at the way people speak to each other on some of the forums. > > Home sweet home! > Kath > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Wednesday, May 24, 2006 5:56 AM > Subject: [AccessD] OT: This Wonderful List > > > Hello All, > > I use a Hotmail email account to receive/manage my AccessD messages. I just > went through and cleaned up the folders, for space issues, from the last > year or so(threads that I kept for one reason or another). I read through a > number of them and started laughing at some points and impressed at others. > The camaraderie , joking, seriousness, and brilliance in the different > postings, and sometimes combined in one posting made me glad to be a part of > this list. A large group of people providing help (FREE help) to other > people that in most cases, they have never met. > > I just wanted to say thanks to everyone here. Below is one that I gave a > good laugh.(Thanks Steve and Roz) > > Mark A. Matte > > P.S...The one humorous post that stuck out the most was from > Apr05...subject" How to Learn Access" > > On Apr 6, 2005 9:40 AM, Roz Clarke wrote: > >Step number 1, join this list. Start a random project, and bug people until > >you make sense of it. > > > >I learned everything by trial and error, and listening to the several gurus > >we have here. IMO, there's just no better way to push yourself. > > On Apr 6, 2005 10:27 Steve Erbach wrote: > >I call that the "frog dissection" method: open that puppy up and poke > >around with your scalpel and an electricified wire until something > >jumps. > > > -- > 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 carbonnb at gmail.com Tue May 23 20:38:57 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 23 May 2006 21:38:57 -0400 Subject: [AccessD] OT: This Wonderful List In-Reply-To: <005b01c67ec8$6c483bb0$6601a8c0@office> References: <004e01c67ec4$eaa54fb0$6601a8c0@office> <4473A441.2020005@san.rr.com> <005b01c67ec8$6c483bb0$6601a8c0@office> Message-ID: On 5/23/06, Kath Pelletti wrote: > Not even tempted...... Aw, come on over just for the entertainment value :-)) -- 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 lmrazek at lcm-res.com Tue May 23 21:35:06 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Tue, 23 May 2006 21:35:06 -0500 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel In-Reply-To: Message-ID: <0b1b01c67eda$abb2a620$026fa8c0@stormy> Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314.432.5886 fx. 314.432.3304 From darrend at nimble.com.au Tue May 23 21:44:48 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 24 May 2006 12:44:48 +1000 Subject: [AccessD] OT: This Wonderful List In-Reply-To: Message-ID: <20060524024543.UOEJ25409.omta05sl.mx.bigpond.com@DENZILLAP> Here here An awesome list - I love it Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, 24 May 2006 5:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: This Wonderful List Hello All, I use a Hotmail email account to receive/manage my AccessD messages. I just went through and cleaned up the folders, for space issues, from the last year or so(threads that I kept for one reason or another). I read through a number of them and started laughing at some points and impressed at others. The camaraderie , joking, seriousness, and brilliance in the different postings, and sometimes combined in one posting made me glad to be a part of this list. A large group of people providing help (FREE help) to other people that in most cases, they have never met. I just wanted to say thanks to everyone here. Below is one that I gave a good laugh.(Thanks Steve and Roz) Mark A. Matte P.S...The one humorous post that stuck out the most was from Apr05...subject" How to Learn Access" On Apr 6, 2005 9:40 AM, Roz Clarke wrote: >Step number 1, join this list. Start a random project, and bug people until >you make sense of it. > >I learned everything by trial and error, and listening to the several gurus >we have here. IMO, there's just no better way to push yourself. On Apr 6, 2005 10:27 Steve Erbach wrote: >I call that the "frog dissection" method: open that puppy up and poke >around with your scalpel and an electricified wire until something >jumps. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed May 24 02:49:13 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 24 May 2006 00:49:13 -0700 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel In-Reply-To: <0b1b01c67eda$abb2a620$026fa8c0@stormy> Message-ID: <0IZR00IBDEYOXOS0@l-daemon> Hi Larry: This problem should not be an issue on the current versions of Access. Which version are you using? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Tuesday, May 23, 2006 7:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 harkinsss at bellsouth.net Wed May 24 07:38:31 2006 From: harkinsss at bellsouth.net (Susan Harkins) Date: Wed, 24 May 2006 08:38:31 -0400 Subject: [AccessD] OT: This Wonderful List In-Reply-To: <4473A441.2020005@san.rr.com> Message-ID: <000901c67f2e$f89d0120$a2b3d6d1@SUSANONE> Yeah, Rocky's the KING of OT trash talk! ;) No kidding! ;) Susan H. You want some DBA trash talk? C'mon over to OT. From lmrazek at lcm-res.com Wed May 24 08:03:49 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 24 May 2006 08:03:49 -0500 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel In-Reply-To: <0IZR00IBDEYOXOS0@l-daemon> Message-ID: <0bc701c67f32$801d8b30$026fa8c0@stormy> Hi Jim: Running Access XP, all current service packs installed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, May 24, 2006 2:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Larry: This problem should not be an issue on the current versions of Access. Which version are you using? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Tuesday, May 23, 2006 7:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 prosoft6 at hotmail.com Wed May 24 08:24:25 2006 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Wed, 24 May 2006 09:24:25 -0400 Subject: [AccessD] Replication Deployed Database Message-ID: Hi, I finally bit the bullet and packaged one of my apps using the packaging wizard with developer extensions. I was very thrilled to find that it was so easy! Was wondering however, how this effects replication? I would like to package one of my apps that is being used front-end, back-end scenario in an organization. However, one of the inspectors takes a copy out in the field and make entries on a tablet pc, then comes back to the office and synchronizes the data. If I package my app, does that have an impact on the replication? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business From bchacc at san.rr.com Wed May 24 08:29:06 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 24 May 2006 06:29:06 -0700 Subject: [AccessD] OT: This Wonderful List In-Reply-To: <000901c67f2e$f89d0120$a2b3d6d1@SUSANONE> References: <000901c67f2e$f89d0120$a2b3d6d1@SUSANONE> Message-ID: <44745FA2.6000709@san.rr.com> I have to work hard to stay ahead of the ^%#&%#$ competition. Rocky Susan Harkins wrote: > Yeah, Rocky's the KING of OT trash talk! ;) No kidding! ;) > > Susan H. > > You want some DBA trash talk? C'mon over to OT. > > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Jim.Hale at FleetPride.com Wed May 24 08:41:52 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 24 May 2006 08:41:52 -0500 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC5B@corp-es01.fleetpride.com> Is it possible old instances of Excel are still in memory? Excel loves to hang around even when you think you have properly closed it from previous runs. Use task manager to see if this is the case. If it is there are a number of voodoo rituals availasble to kill the zombies. Jim Hale -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Tuesday, May 23, 2006 9:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 *********************************************************************** 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 lmrazek at lcm-res.com Wed May 24 09:07:43 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 24 May 2006 09:07:43 -0500 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC5B@corp-es01.fleetpride.com> Message-ID: <0be001c67f3b$6d5b5d20$026fa8c0@stormy> Hi Jim: No, I don't think so. This has happened on the first run after a reboot, and I haven't been able to identify any open processes using task manager even after a run completed. Would saving (before the last worksheet generated), closing the instance of excel, then re-opening excel possibly solve this? Like I said, these are pretty large files. Thanks. 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 Hale, Jim Sent: Wednesday, May 24, 2006 8:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel Is it possible old instances of Excel are still in memory? Excel loves to hang around even when you think you have properly closed it from previous runs. Use task manager to see if this is the case. If it is there are a number of voodoo rituals availasble to kill the zombies. Jim Hale -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Tuesday, May 23, 2006 9:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 *********************************************************************** 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 Jim.Hale at FleetPride.com Wed May 24 09:28:50 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 24 May 2006 09:28:50 -0500 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC5C@corp-es01.fleetpride.com> I don't think that would help. If it runs on one machine and not the other it may truly be out of memory although this seems strange. I have sheets that exceed 8 mg. Of course not all workbooks are equal in the kind of resources they use. Check out Microsoft Excel specifications in the Excel help and see if any of those limits apply to your situation. Depending on the situation I have cured this problem in the past by changing lookup formulas to values, reducing pivot tables, etc to shrink the worksheet. Good luck Jim Hale -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Wednesday, May 24, 2006 9:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Jim: No, I don't think so. This has happened on the first run after a reboot, and I haven't been able to identify any open processes using task manager even after a run completed. Would saving (before the last worksheet generated), closing the instance of excel, then re-opening excel possibly solve this? Like I said, these are pretty large files. Thanks. 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 Hale, Jim Sent: Wednesday, May 24, 2006 8:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel Is it possible old instances of Excel are still in memory? Excel loves to hang around even when you think you have properly closed it from previous runs. Use task manager to see if this is the case. If it is there are a number of voodoo rituals availasble to kill the zombies. Jim Hale -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Tuesday, May 23, 2006 9:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 *********************************************************************** 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 *********************************************************************** 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 lmrazek at lcm-res.com Wed May 24 11:20:11 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 24 May 2006 11:20:11 -0500 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DDC5C@corp-es01.fleetpride.com> Message-ID: <0c0f01c67f4d$ee9ddbd0$026fa8c0@stormy> I'm using a lot of named ranges, since these data groupings change from month to month. I wonder if this could have something to do with the issue. I'll check Excel help and report back to the list ... Thanks! Larry -----Original Message----- I don't think that would help. If it runs on one machine and not the other it may truly be out of memory although this seems strange. I have sheets that exceed 8 mg. Of course not all workbooks are equal in the kind of resources they use. Check out Microsoft Excel specifications in the Excel help and see if any of those limits apply to your situation. Depending on the situation I have cured this problem in the past by changing lookup formulas to values, reducing pivot tables, etc to shrink the worksheet. Good luck Jim Hale -----Original Message----- Hi Jim: No, I don't think so. This has happened on the first run after a reboot, and I haven't been able to identify any open processes using task manager even after a run completed. Would saving (before the last worksheet generated), closing the instance of excel, then re-opening excel possibly solve this? Like I said, these are pretty large files. Thanks. 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 Hale, Jim Sent: Wednesday, May 24, 2006 8:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel Is it possible old instances of Excel are still in memory? Excel loves to hang around even when you think you have properly closed it from previous runs. Use task manager to see if this is the case. If it is there are a number of voodoo rituals availasble to kill the zombies. Jim Hale -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Tuesday, May 23, 2006 9:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 *********************************************************************** 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 *********************************************************************** 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 DWUTKA at marlow.com Wed May 24 11:21:09 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 24 May 2006 11:21:09 -0500 Subject: [AccessD] OT: This Wonderful List Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B24D9@main2.marlow.com> LOL....the dark world of DBA. ;) Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Tuesday, May 23, 2006 7:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: This Wonderful List You want some DBA trash talk? C'mon over to OT. Rocky Kath Pelletti wrote: > Mark - it only really hits you how nice a group we have here when you join other lists - I am amazed at the way people speak to each other on some of the forums. > > Home sweet home! > Kath > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Wednesday, May 24, 2006 5:56 AM > Subject: [AccessD] OT: This Wonderful List > > > Hello All, > > I use a Hotmail email account to receive/manage my AccessD messages. I just > went through and cleaned up the folders, for space issues, from the last > year or so(threads that I kept for one reason or another). I read through a > number of them and started laughing at some points and impressed at others. > The camaraderie , joking, seriousness, and brilliance in the different > postings, and sometimes combined in one posting made me glad to be a part of > this list. A large group of people providing help (FREE help) to other > people that in most cases, they have never met. > > I just wanted to say thanks to everyone here. Below is one that I gave a > good laugh.(Thanks Steve and Roz) > > Mark A. Matte > > P.S...The one humorous post that stuck out the most was from > Apr05...subject" How to Learn Access" > > On Apr 6, 2005 9:40 AM, Roz Clarke wrote: > >Step number 1, join this list. Start a random project, and bug people until > >you make sense of it. > > > >I learned everything by trial and error, and listening to the several gurus > >we have here. IMO, there's just no better way to push yourself. > > On Apr 6, 2005 10:27 Steve Erbach wrote: > >I call that the "frog dissection" method: open that puppy up and poke > >around with your scalpel and an electricified wire until something > >jumps. > > > -- > 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 DWUTKA at marlow.com Wed May 24 11:21:43 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 24 May 2006 11:21:43 -0500 Subject: [AccessD] OT: This Wonderful List Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B24DB@main2.marlow.com> >From the man who dragged me here. ;) Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Tuesday, May 23, 2006 9:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: This Wonderful List Here here An awesome list - I love it Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, 24 May 2006 5:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: This Wonderful List Hello All, I use a Hotmail email account to receive/manage my AccessD messages. I just went through and cleaned up the folders, for space issues, from the last year or so(threads that I kept for one reason or another). I read through a number of them and started laughing at some points and impressed at others. The camaraderie , joking, seriousness, and brilliance in the different postings, and sometimes combined in one posting made me glad to be a part of this list. A large group of people providing help (FREE help) to other people that in most cases, they have never met. I just wanted to say thanks to everyone here. Below is one that I gave a good laugh.(Thanks Steve and Roz) Mark A. Matte P.S...The one humorous post that stuck out the most was from Apr05...subject" How to Learn Access" On Apr 6, 2005 9:40 AM, Roz Clarke wrote: >Step number 1, join this list. Start a random project, and bug people until >you make sense of it. > >I learned everything by trial and error, and listening to the several gurus >we have here. IMO, there's just no better way to push yourself. On Apr 6, 2005 10:27 Steve Erbach wrote: >I call that the "frog dissection" method: open that puppy up and poke >around with your scalpel and an electricified wire until something >jumps. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed May 24 11:22:23 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 24 May 2006 11:22:23 -0500 Subject: [AccessD] OT: This Wonderful List Message-ID: <17724746D360394AA3BFE5B8D40A9C1B8B24DC@main2.marlow.com> I still think we need a parliamentary ruling on that.... ;) Drew -----Original Message----- From: Susan Harkins [mailto:harkinsss at bellsouth.net] Sent: Wednesday, May 24, 2006 7:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: This Wonderful List Yeah, Rocky's the KING of OT trash talk! ;) No kidding! ;) Susan H. You want some DBA trash talk? C'mon over to OT. -- 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 May 24 11:41:37 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 24 May 2006 09:41:37 -0700 Subject: [AccessD] Replication Deployed Database In-Reply-To: Message-ID: <004501c67f50$ecdd5fc0$0200a8c0@murphy3234aaf1> Julie, I wouldn't think it packaging would affect replication. You do need to make sure the packaging wizard includes the dll with the jet replication objects in it. Look in your references to see what the dll name is an make sure it is included in the installation package. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon-Taylor Sent: Wednesday, May 24, 2006 6:24 AM To: accessd at databaseadvisors.com Subject: [AccessD] Replication Deployed Database Hi, I finally bit the bullet and packaged one of my apps using the packaging wizard with developer extensions. I was very thrilled to find that it was so easy! Was wondering however, how this effects replication? I would like to package one of my apps that is being used front-end, back-end scenario in an organization. However, one of the inspectors takes a copy out in the field and make entries on a tablet pc, then comes back to the office and synchronizes the data. If I package my app, does that have an impact on the replication? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business -- 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 May 24 11:49:48 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 24 May 2006 09:49:48 -0700 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel In-Reply-To: <0b1b01c67eda$abb2a620$026fa8c0@stormy> Message-ID: <004601c67f52$17320e00$0200a8c0@murphy3234aaf1> This may be way off track but I have seen the same error message when saving snapshots. The problem comes from the path length of the location you are saving to. I found that if the file path string that I was using to save the file was over something like 136 characters I'd could reliably reproduce the error. Shorter path, no error. There should be an FYI message on this in the archives with the exact string length that I found as the culprit. This may not be your problem but it is worth looking at. Took me a few hours to track the problem down. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Tuesday, May 23, 2006 7:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 prosoft6 at hotmail.com Wed May 24 12:16:44 2006 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Wed, 24 May 2006 13:16:44 -0400 Subject: [AccessD] Replication Deployed Database In-Reply-To: <004501c67f50$ecdd5fc0$0200a8c0@murphy3234aaf1> Message-ID: Thanks Doug. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business From cfoust at infostatsystems.com Wed May 24 12:58:06 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 24 May 2006 10:58:06 -0700 Subject: [AccessD] Replication Deployed Database In-Reply-To: Message-ID: If you're packaging replication, how are you going to handle conflicts and failures? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Julie Reardon-Taylor Sent: Wednesday, May 24, 2006 10:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Replication Deployed Database Thanks Doug. Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Wed May 24 14:22:17 2006 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Wed, 24 May 2006 15:22:17 -0400 Subject: [AccessD] Replication Deployed Database In-Reply-To: Message-ID: That's a good question. Not really sure. I was hoping that replication would work under this scenario, but I'm not sure that it will. Has anyone tried this? Julie Reardon-Taylor PRO-SOFT OF NY, INC. 44 Public Square Suite #5 Watertown, NY 13601 Phone: 315.785.0319 Fax: 315.785.0323 www.pro-soft.net NYS IT Services Contract CMT026A NYS Certified Woman-Owned Business From newsgrps at dalyn.co.nz Wed May 24 14:36:55 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Thu, 25 May 2006 07:36:55 +1200 Subject: [AccessD] Replication Deployed Database In-Reply-To: References: Message-ID: <7.0.1.0.0.20060525073608.01a42e40@dalyn.co.nz> Julie, I used replication several years ago with A97. I used Wise/Sagekey combination for creating the distribution setup. One thing I remember is that when the program is installed you will need to provide the new user with a recent copy of the replicated database and have it synchronised back to the master. Unless you have a very long period before a replica will not synchronise (not recommended) the copy in your distribution pack will become outdated and will not synchronise at all. Regards David Emerson Dalyn Software Ltd New Zealand At 25/05/2006, you wrote: >That's a good question. Not really sure. I was hoping that replication >would work under this scenario, but I'm not sure that it will. Has anyone >tried this? > > > >Julie Reardon-Taylor >PRO-SOFT OF NY, INC. >44 Public Square Suite #5 >Watertown, NY 13601 >Phone: 315.785.0319 >Fax: 315.785.0323 >www.pro-soft.net >NYS IT Services Contract CMT026A >NYS Certified Woman-Owned Business From fhtapia at gmail.com Wed May 24 17:12:53 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 24 May 2006 15:12:53 -0700 Subject: [AccessD] IE7 In-Reply-To: <0IZQ00BVHMBANLF0@l-daemon> References: <0IZQ00BVHMBANLF0@l-daemon> Message-ID: VirtualPCs / VMs are excellent platforms to test new software. I just loaded SQLPrompt from Red-Gate on my VM machine, it went off w/o any issues that I loaded it to the host system :) I'm waiting for a ram upgrade so I can move my dev environment to the vm machine wich will save me many headaches as I can easily snapshot between software installs etc. On 5/23/06, Jim Lawrence wrote: > Thank you, Francisco, Charlotte and Bobby for your input > > I guess IE7 is ready for prime-time use... on the virtual PC. I have been > using Firefox extensively and am still concerned whether there will be some > grim conflict between my non-MS products. > > After the battle to get SQL Express (beta) and SQL 2005 happy, that ended up > requiring 2 complete installs, in the middle of a contact and a weeks lost > work, I am a little gun shy. Until the group gives this product the stamp of > approval testing can wait until the mid summer doldrums. > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From darrend at nimble.com.au Wed May 24 17:44:07 2006 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 25 May 2006 08:44:07 +1000 Subject: [AccessD] OT: This Wonderful List In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B8B24DB@main2.marlow.com> Message-ID: <20060524224509.UUHG10328.omta05ps.mx.bigpond.com@DENZILLAP> Kickin and screeeeemin' Kickin' and a screemin' :-) Have a great day 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: Thursday, 25 May 2006 2:22 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: This Wonderful List >From the man who dragged me here. ;) Drew -----Original Message----- From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Tuesday, May 23, 2006 9:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: This Wonderful List Here here An awesome list - I love it Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, 24 May 2006 5:57 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: This Wonderful List Hello All, I use a Hotmail email account to receive/manage my AccessD messages. I just went through and cleaned up the folders, for space issues, from the last year or so(threads that I kept for one reason or another). I read through a number of them and started laughing at some points and impressed at others. The camaraderie , joking, seriousness, and brilliance in the different postings, and sometimes combined in one posting made me glad to be a part of this list. A large group of people providing help (FREE help) to other people that in most cases, they have never met. I just wanted to say thanks to everyone here. Below is one that I gave a good laugh.(Thanks Steve and Roz) Mark A. Matte P.S...The one humorous post that stuck out the most was from Apr05...subject" How to Learn Access" On Apr 6, 2005 9:40 AM, Roz Clarke wrote: >Step number 1, join this list. Start a random project, and bug people until >you make sense of it. > >I learned everything by trial and error, and listening to the several gurus >we have here. IMO, there's just no better way to push yourself. On Apr 6, 2005 10:27 Steve Erbach wrote: >I call that the "frog dissection" method: open that puppy up and poke >around with your scalpel and an electricified wire until something >jumps. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed May 24 18:10:08 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 24 May 2006 16:10:08 -0700 Subject: [AccessD] IE7 In-Reply-To: Message-ID: <0IZS00ATILLJU1C0@l-daemon> Hi Francisco: It my old box can be upgrade to 2 GB of RAM then maybe a test run in the Virtual PC, of the beta Vista might be in order... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco Tapia Sent: Wednesday, May 24, 2006 3:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] IE7 VirtualPCs / VMs are excellent platforms to test new software. I just loaded SQLPrompt from Red-Gate on my VM machine, it went off w/o any issues that I loaded it to the host system :) I'm waiting for a ram upgrade so I can move my dev environment to the vm machine wich will save me many headaches as I can easily snapshot between software installs etc. On 5/23/06, Jim Lawrence wrote: > Thank you, Francisco, Charlotte and Bobby for your input > > I guess IE7 is ready for prime-time use... on the virtual PC. I have been > using Firefox extensively and am still concerned whether there will be some > grim conflict between my non-MS products. > > After the battle to get SQL Express (beta) and SQL 2005 happy, that ended up > requiring 2 complete installs, in the middle of a contact and a weeks lost > work, I am a little gun shy. Until the group gives this product the stamp of > approval testing can wait until the mid summer doldrums. > > Jim > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com |PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From spikee at oatlandspark.org.uk Thu May 25 02:29:57 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Thu, 25 May 2006 08:29:57 +0100 Subject: [AccessD] Record number in query In-Reply-To: <4472B97D.20383.33502D15@stuart.lexacorp.com.pg> Message-ID: <200605250729.k4P7ToS06467@databaseadvisors.com> Good day! Dumb question here. I've got a SELECT query and wish to add a calculated field with row number. The number needs to start at 1, for the first record, and increment to n for record n. I'm sure I've seen a post here recently about this but I cannot find it in the archives. TIA! Chris Foote From markamatte at hotmail.com Thu May 25 08:23:11 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 25 May 2006 13:23:11 +0000 Subject: [AccessD] Record number in query In-Reply-To: <200605250729.k4P7ToS06467@databaseadvisors.com> Message-ID: Chris, I sent you a sample db offline that shows what you need. Its a simple 2 line function...but you have to reset it each time you use it. Also, this works best with MAKE,APPEND,UPDATE type queries...if you display a query using this function...the numbers will change as you scroll. Let me know if you don't get the offline sample. Thanks, Mark A. Matte >From: "Chris Foote (Spike)" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] Record number in query >Date: Thu, 25 May 2006 08:29:57 +0100 > >Good day! > >Dumb question here. > >I've got a SELECT query and wish to add a calculated field with row number. >The number needs to start at 1, for the first record, and increment to n >for >record n. I'm sure I've seen a post here recently about this but I cannot >find it in the archives. > >TIA! >Chris Foote > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From spikee at oatlandspark.org.uk Thu May 25 08:47:12 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Thu, 25 May 2006 14:47:12 +0100 Subject: [AccessD] Record number in query In-Reply-To: Message-ID: <200605251347.k4PDkxS10697@databaseadvisors.com> Cheers Matt! That's not quite what I'm after sadly. I'm using Access to write SQL queries to be used in PHP. I'm sure I saw somewhere/sometime a bit of SQL using COUNT that can do this. I could use the SQL query to populate a temporary table and then use the row numbers, but I'm trying to avoid this if poss. I found this on Tek-Tips: ---------------------------------- -Assume the primary key is a composite of Col1 and Col2. Select RowNum=(Select Count(*) From TableName Where Col1<=t1.Col1 And Col2 <=t1.Col2) Col1, Col2, Col3, Col4 >From TableName t1 Order By Col1, Col2 ---------------------------------- But could not get it to work. Thanks for trying to help! Regards Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: 25 May 2006 14:23 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Record number in query Chris, I sent you a sample db offline that shows what you need. Its a simple 2 line function...but you have to reset it each time you use it. Also, this works best with MAKE,APPEND,UPDATE type queries...if you display a query using this function...the numbers will change as you scroll. Let me know if you don't get the offline sample. Thanks, Mark A. Matte >From: "Chris Foote (Spike)" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] Record number in query >Date: Thu, 25 May 2006 08:29:57 +0100 > >Good day! > >Dumb question here. > >I've got a SELECT query and wish to add a calculated field with row number. >The number needs to start at 1, for the first record, and increment to >n for record n. I'm sure I've seen a post here recently about this but >I cannot find it in the archives. > >TIA! >Chris Foote From spikee at oatlandspark.org.uk Thu May 25 09:00:01 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Thu, 25 May 2006 15:00:01 +0100 Subject: [AccessD] Record number in query In-Reply-To: <200605251347.k4PDkxS10697@databaseadvisors.com> Message-ID: <200605251400.k4PE01S14218@databaseadvisors.com> Urm. Sort of got this to work for a simple SELECT query based upon one table. SELECT (SELECT COUNT (*) FROM tblClubs WHERE fldClubCode<=t1.fldClubCode) AS RowNum, fldClubCode FROM tblClubs t1; Gives me what I want, a calculated, incremental 'RowNum' field with the fldClubCode. I wonder if I should mosey over to the SQL list before the Mods notice me ;-) Regards Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Chris Foote (Spike) Sent: 25 May 2006 14:47 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Record number in query Cheers Matt! That's not quite what I'm after sadly. I'm using Access to write SQL queries to be used in PHP. I'm sure I saw somewhere/sometime a bit of SQL using COUNT that can do this. I could use the SQL query to populate a temporary table and then use the row numbers, but I'm trying to avoid this if poss. I found this on Tek-Tips: ---------------------------------- -Assume the primary key is a composite of Col1 and Col2. Select RowNum=(Select Count(*) From TableName Where Col1<=t1.Col1 And Col2 <=t1.Col2) Col1, Col2, Col3, Col4 >From TableName t1 Order By Col1, Col2 ---------------------------------- But could not get it to work. Thanks for trying to help! Regards Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: 25 May 2006 14:23 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Record number in query Chris, I sent you a sample db offline that shows what you need. Its a simple 2 line function...but you have to reset it each time you use it. Also, this works best with MAKE,APPEND,UPDATE type queries...if you display a query using this function...the numbers will change as you scroll. Let me know if you don't get the offline sample. Thanks, Mark A. Matte >From: "Chris Foote (Spike)" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] Record number in query >Date: Thu, 25 May 2006 08:29:57 +0100 > >Good day! > >Dumb question here. > >I've got a SELECT query and wish to add a calculated field with row number. >The number needs to start at 1, for the first record, and increment to >n for record n. I'm sure I've seen a post here recently about this but >I cannot find it in the archives. > >TIA! >Chris Foote -- 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 May 25 09:03:04 2006 From: max at sherman.org.uk (Max Home) Date: Thu, 25 May 2006 15:03:04 +0100 Subject: [AccessD] Record number in query In-Reply-To: AAAAAFWZt4UlhGRNs4nf35oT6aSEkiQA Message-ID: <000501c68003$f41fa690$e26b1152@Max> Mark, can you post this to the list please. Especially if it is only a 2 line function. I was also waiting for somebody to reply to Chris. Regards Max Ps. Although this has come from my home email address, please reply to my work Email address (max.sherman at mga-charity.org) as I will still be picking up my email -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: 25 May 2006 14:23 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Record number in query Chris, I sent you a sample db offline that shows what you need. Its a simple 2 line function...but you have to reset it each time you use it. Also, this works best with MAKE,APPEND,UPDATE type queries...if you display a query using this function...the numbers will change as you scroll. Let me know if you don't get the offline sample. Thanks, Mark A. Matte >From: "Chris Foote (Spike)" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] Record number in query >Date: Thu, 25 May 2006 08:29:57 +0100 > >Good day! > >Dumb question here. > >I've got a SELECT query and wish to add a calculated field with row number. >The number needs to start at 1, for the first record, and increment to n >for >record n. I'm sure I've seen a post here recently about this but I cannot >find it in the archives. > >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 Gustav at cactus.dk Thu May 25 10:03:21 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 25 May 2006 17:03:21 +0200 Subject: [AccessD] Record number in query Message-ID: Hi Chris This is the function we use. Note it allows for browsing and is very fast. For large recordsets you should run a reset afterwards to kill the collection and free memory. Public Function RowCounter( _ ByVal strKey As String, _ ByVal booReset As Boolean) _ As Long ' Builds consecutive RowIDs in select, append or create query ' with the possibility of automatic reset. ' ' Usage (typical select query): ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable ' WHERE (RowCounter(CStr([ID]),False) <> RowCounter("",True)); ' ' The Where statement resets the counter when the query is run ' and is needed for browsing a select query. ' ' Usage (typical append query, manual reset): ' 1. Reset counter manually: ' Call RowCounter(vbNullString, False) ' 2. Run query: ' INSERT INTO tblTemp ( RowID ) ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable; ' ' Usage (typical append query, automatic reset): ' INSERT INTO tblTemp ( RowID ) ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable ' WHERE (RowCounter("",True)=0); ' ' 2002-04-13. Cactus Data ApS. CPH ' 2002-09-09. Str() sometimes fails. Replaced with CStr(). ' 2005-10-21. Str(col.Count + 1) reduced to col.Count + 1. Static col As New Collection On Error GoTo Err_RowCounter If booReset = True Then Set col = Nothing Else col.Add col.Count + 1, strKey End If RowCounter = col(strKey) Exit_RowCounter: Exit Function Err_RowCounter: Select Case Err Case 457 ' Key is present. Resume Next Case Else ' Some other error. Resume Exit_RowCounter End Select End Function /gustav >>> spikee at oatlandspark.org.uk 25-05-2006 09:29 >>> Good day! Dumb question here. I've got a SELECT query and wish to add a calculated field with row number. The number needs to start at 1, for the first record, and increment to n for record n. I'm sure I've seen a post here recently about this but I cannot find it in the archives. TIA! Chris Foote From carbonnb at gmail.com Thu May 25 10:14:18 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 25 May 2006 11:14:18 -0400 Subject: [AccessD] Creating Filter Form for Report Message-ID: I need some help (with Access this time :) because my brain isnt' working well today and I haven't really done any dev in Access for far too long. Here is what I am trying to do: I need to generate a report that will shom me what courses individuals have had. I need to be able to select one or a varyiong number of participants and then have it show me what courses they have had. What I was thinking was have a form that lists the individuals in a multi-select listbox, and then use that as a parameter for the query the report is based on, but I'm having a serious mind gap as to how to get the info from the lsit box to the query. HELP!!! Please??!?! -- 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 spikee at oatlandspark.org.uk Thu May 25 10:27:57 2006 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Thu, 25 May 2006 16:27:57 +0100 Subject: [AccessD] Record number in query In-Reply-To: Message-ID: <200605251527.k4PFRgS06571@databaseadvisors.com> Cheers Gustav! I'm really looking for a SQL solution for this. I need to drop the SQL string into a PHP generated webpage. Thanks anyway! Regards Spike F -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 25 May 2006 16:03 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Record number in query Hi Chris This is the function we use. Note it allows for browsing and is very fast. For large recordsets you should run a reset afterwards to kill the collection and free memory. Public Function RowCounter( _ ByVal strKey As String, _ ByVal booReset As Boolean) _ As Long ' Builds consecutive RowIDs in select, append or create query ' with the possibility of automatic reset. ' ' Usage (typical select query): ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable ' WHERE (RowCounter(CStr([ID]),False) <> RowCounter("",True)); ' ' The Where statement resets the counter when the query is run ' and is needed for browsing a select query. ' ' Usage (typical append query, manual reset): ' 1. Reset counter manually: ' Call RowCounter(vbNullString, False) ' 2. Run query: ' INSERT INTO tblTemp ( RowID ) ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable; ' ' Usage (typical append query, automatic reset): ' INSERT INTO tblTemp ( RowID ) ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable ' WHERE (RowCounter("",True)=0); ' ' 2002-04-13. Cactus Data ApS. CPH ' 2002-09-09. Str() sometimes fails. Replaced with CStr(). ' 2005-10-21. Str(col.Count + 1) reduced to col.Count + 1. Static col As New Collection On Error GoTo Err_RowCounter If booReset = True Then Set col = Nothing Else col.Add col.Count + 1, strKey End If RowCounter = col(strKey) Exit_RowCounter: Exit Function Err_RowCounter: Select Case Err Case 457 ' Key is present. Resume Next Case Else ' Some other error. Resume Exit_RowCounter End Select End Function /gustav >>> spikee at oatlandspark.org.uk 25-05-2006 09:29 >>> Good day! Dumb question here. I've got a SELECT query and wish to add a calculated field with row number. The number needs to start at 1, for the first record, and increment to n for record n. I'm sure I've seen a post here recently about this but I cannot find it in the archives. TIA! Chris Foote From rusty.hammond at cpiqpc.com Thu May 25 10:33:04 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Thu, 25 May 2006 10:33:04 -0500 Subject: [AccessD] Creating Filter Form for Report Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8788@cpixchng-1.cpiqpc.net> Hi Bryan, What I've done with this sort of thing in the past is to loop through each selected item in the list box and set a hidden text field (Me.BrokerDealer)to the value of the selected item, then run an append query (qryBrokerPlans) to a temp table. In the query I set the criteria to the hidden text field on the form. The report is based on the temp table that query appends to. You have to be sure to clear the table before starting the procedure. The code is in the on-click property of a command buton. The code to loop through the listbox is as follows: For Each varItem In Me.BrokerFirmList.ItemsSelected Me.BrokerDealer = Me.BrokerFirmList.ItemData(varItem) DoCmd.SetWarnings False DoCmd.OpenQuery "qryBrokerPlans", acViewNormal DoCmd.SetWarnings True Next varItem HTH Rusty -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at gmail.com] Sent: Thursday, May 25, 2006 10:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] Creating Filter Form for Report I need some help (with Access this time :) because my brain isnt' working well today and I haven't really done any dev in Access for far too long. Here is what I am trying to do: I need to generate a report that will shom me what courses individuals have had. I need to be able to select one or a varyiong number of participants and then have it show me what courses they have had. What I was thinking was have a form that lists the individuals in a multi-select listbox, and then use that as a parameter for the query the report is based on, but I'm having a serious mind gap as to how to get the info from the lsit box to the query. HELP!!! Please??!?! -- 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 ********************************************************************** 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 Donald.A.McGillivray at sprint.com Thu May 25 10:38:08 2006 From: Donald.A.McGillivray at sprint.com (Mcgillivray, Don [IT]) Date: Thu, 25 May 2006 10:38:08 -0500 Subject: [AccessD] Creating Filter Form for Report Message-ID: Bryan, You have to loop thru the items selected in the list box to build the SQL. This ought to get your synapses firing (shooting from the hip and a sometimes faulty memory of the exact property names): Dim varItem as Variant, strSQL as String For each varItem in Me!lstStudents.ItemsSelected strSQL = strSQL & "StudentID = " & Me!lstStudents.ItemData(varItem) & " OR " Next . . . Then trim and pretty up the SQL and pass it to the report, or whatever. Hope this helps . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, May 25, 2006 8:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] Creating Filter Form for Report I need some help (with Access this time :) because my brain isnt' working well today and I haven't really done any dev in Access for far too long. Here is what I am trying to do: I need to generate a report that will shom me what courses individuals have had. I need to be able to select one or a varyiong number of participants and then have it show me what courses they have had. What I was thinking was have a form that lists the individuals in a multi-select listbox, and then use that as a parameter for the query the report is based on, but I'm having a serious mind gap as to how to get the info from the lsit box to the query. HELP!!! Please??!?! -- 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 Thu May 25 10:52:18 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 25 May 2006 08:52:18 -0700 Subject: [AccessD] Creating Filter Form for Report In-Reply-To: References: Message-ID: <4475D2B2.1070901@san.rr.com> Bryan: I use a multi-select list box of equipment in this snip in the open event of the report to create a filter which will display selected equipment in a report and set the filter this way: If Forms!frmMaintenanceSchedule!fraEquipment = 2 Then Me.Filter = "" For Each varItem In Forms!frmMaintenanceSchedule!lstEquipmentRatings.ItemsSelected If Me.Filter <> "" Then Me.Filter = Me.Filter & " OR " Me.Filter = Me.Filter & "fldEquipmentID = " & Forms!frmMaintenanceSchedule!lstEquipmentRatings.Column(0, varItem) Next varItem Me.FilterOn = True Else Me.Filter = "" Me.FilterOn = False End If where Forms!frmMaintenanceSchedule!fraEquipment is an option frame which asks All Equipment (1) or Selected Equipment(2) and column(0) of Forms!frmMaintenanceSchedule!lstEquipmentRatings, the multi-select list box, has the Autonumber ID of the equipment record. HTH Rocky Bryan Carbonnell wrote: > I need some help (with Access this time :) because my brain isnt' > working well today and I haven't really done any dev in Access for far > too long. > > Here is what I am trying to do: I need to generate a report that will > shom me what courses individuals have had. I need to be able to select > one or a varyiong number of participants and then have it show me what > courses they have had. > > What I was thinking was have a form that lists the individuals in a > multi-select listbox, and then use that as a parameter for the query > the report is based on, but I'm having a serious mind gap as to how to > get the info from the lsit box to the query. > > HELP!!! Please??!?! > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From markamatte at hotmail.com Thu May 25 10:56:00 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 25 May 2006 15:56:00 +0000 Subject: [AccessD] Record number in query In-Reply-To: <000501c68003$f41fa690$e26b1152@Max> Message-ID: Max, Below is the condensed version of what the sample showed. Hope it helps. Mark A. Matte IN QUERY as Field where counting Empid or some field ***************************** Countfld: MyAutoCtr([Empid]) ***************************** BEHIND FORM or somewhere to be called EVERYTIME before running query with this function ***************************** lngTableCounter = 1 ***************************** IN A MODULE ***************************** Option Compare Database Option Explicit Global lngTableCounter As Long Function MyAutoCtr(prmAny) 'Trick is to pass a field from the input table(s) so that function called for each record 'otherwise Access thinks that the function will always return the same value and 'only calls it once, and every output record gets the same value MyAutoCtr = lngTableCounter lngTableCounter = lngTableCounter + 1 End Function **************************************** >From: "Max Home" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Record number in query >Date: Thu, 25 May 2006 15:03:04 +0100 > >Mark, can you post this to the list please. Especially if it is only a 2 >line function. I was also waiting for somebody to reply to Chris. > >Regards > >Max > >Ps. Although this has come from my home email address, please reply to my >work Email address (max.sherman at mga-charity.org) as I will still be picking >up my email > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: 25 May 2006 14:23 >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Record number in query > >Chris, > >I sent you a sample db offline that shows what you need. Its a simple 2 >line function...but you have to reset it each time you use it. Also, this >works best with MAKE,APPEND,UPDATE type queries...if you display a query >using this function...the numbers will change as you scroll. > >Let me know if you don't get the offline sample. > >Thanks, > >Mark A. Matte > > > >From: "Chris Foote (Spike)" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: [AccessD] Record number in query > >Date: Thu, 25 May 2006 08:29:57 +0100 > > > >Good day! > > > >Dumb question here. > > > >I've got a SELECT query and wish to add a calculated field with row >number. > >The number needs to start at 1, for the first record, and increment to n > >for > >record n. I'm sure I've seen a post here recently about this but I cannot > >find it in the archives. > > > >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 Thu May 25 11:00:29 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 25 May 2006 16:00:29 +0000 Subject: [AccessD] Creating Filter Form for Report In-Reply-To: Message-ID: Bryan, Below is code I use to open a report filtered by a multi-select list box. Good Luck, Mark A. Matte P.S...Don't forget to tweak the LEN function to trim up your filter. **************************************** Dim frm As Form, ctl As Control Dim varItem As Variant Dim strSQL As String Set frm = Me Set ctl = frm!lstBusType strSQL = "[BusTypeID]=" For Each varItem In ctl.ItemsSelected strSQL = strSQL & ctl.ItemData(varItem) & " OR [BusTypeID]=" Next varItem strSQL = Left$(strSQL, Len(strSQL) - 16) DoCmd.OpenReport "rptBusinessType", acViewPreview, , strSQL ******************************************** >From: "Bryan Carbonnell" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] Creating Filter Form for Report >Date: Thu, 25 May 2006 11:14:18 -0400 > >I need some help (with Access this time :) because my brain isnt' >working well today and I haven't really done any dev in Access for far >too long. > >Here is what I am trying to do: I need to generate a report that will >shom me what courses individuals have had. I need to be able to select >one or a varyiong number of participants and then have it show me what >courses they have had. > >What I was thinking was have a form that lists the individuals in a >multi-select listbox, and then use that as a parameter for the query >the report is based on, but I'm having a serious mind gap as to how to >get the info from the lsit box to the query. > >HELP!!! Please??!?! > >-- >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 Thu May 25 11:55:26 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 25 May 2006 18:55:26 +0200 Subject: [AccessD] Record number in query Message-ID: Hi Spike Then you are left with the "Select Count(*) ..." method you wrote about. It does work if you have a unique key (or can construct a unique compound key) but it is very slow for large recordsets. /gustav >>> spikee at oatlandspark.org.uk 25-05-2006 17:27 >>> Cheers Gustav! I'm really looking for a SQL solution for this. I need to drop the SQL string into a PHP generated webpage. Thanks anyway! Regards Spike F From ldoering at symphonyinfo.com Thu May 25 13:25:04 2006 From: ldoering at symphonyinfo.com (Liz Doering) Date: Thu, 25 May 2006 13:25:04 -0500 Subject: [AccessD] Creating Filter Form for Report In-Reply-To: <000001c68016$7e79b8a0$0210a8c0@Symphony.local> Message-ID: <02F5B8F3D893A845A3DF342F14D80F015893@LAKATOS.Symphony.local> If you get too long a string of 'OR' items, Access will complain of the string being more than 2000-some characters. Then you move to an IN string (where lngMyVariable in (1234, 2345, 3456)), because you waste fewer characters on OR that way. However, if that gets too long, a truly mysterious group of overflow errors is generated. Then you have to move to a temp table. The experience that generated this knowledge did not involve users selecting thousands of items from a multi-select listbox directly, but instead a group of criteria working together to produce puzzling results. Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, May 25, 2006 11:16 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Creating Filter Form for Report Bryan, Below is code I use to open a report filtered by a multi-select list box. Good Luck, Mark A. Matte P.S...Don't forget to tweak the LEN function to trim up your filter. **************************************** Dim frm As Form, ctl As Control Dim varItem As Variant Dim strSQL As String Set frm = Me Set ctl = frm!lstBusType strSQL = "[BusTypeID]=" For Each varItem In ctl.ItemsSelected strSQL = strSQL & ctl.ItemData(varItem) & " OR [BusTypeID]=" Next varItem strSQL = Left$(strSQL, Len(strSQL) - 16) DoCmd.OpenReport "rptBusinessType", acViewPreview, , strSQL ******************************************** >From: "Bryan Carbonnell" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: [AccessD] Creating Filter Form for Report >Date: Thu, 25 May 2006 11:14:18 -0400 > >I need some help (with Access this time :) because my brain isnt' >working well today and I haven't really done any dev in Access for far >too long. > >Here is what I am trying to do: I need to generate a report that will >shom me what courses individuals have had. I need to be able to select >one or a varyiong number of participants and then have it show me what >courses they have had. > >What I was thinking was have a form that lists the individuals in a >multi-select listbox, and then use that as a parameter for the query >the report is based on, but I'm having a serious mind gap as to how to >get the info from the lsit box to the query. > >HELP!!! Please??!?! > >-- >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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Thu May 25 16:25:43 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 25 May 2006 17:25:43 -0400 Subject: [AccessD] Creating Filter Form for Report In-Reply-To: References: Message-ID: On 5/25/06, Bryan Carbonnell wrote: > Here is what I am trying to do: I need to generate a report that will > shom me what courses individuals have had. I need to be able to select > one or a varyiong number of participants and then have it show me what > courses they have had. > > What I was thinking was have a form that lists the individuals in a > multi-select listbox, and then use that as a parameter for the query > the report is based on, but I'm having a serious mind gap as to how to > get the info from the lsit box to the query. Here's what I finally did Created a form with the listbox on it and a command button to run the report. In the Click even of the report, this is the code I used: Dim strFilter As String strFilter = "RESOURCE_ID " & InParticipant DoCmd.OpenReport "Resource_Class_List_LOCAL", acViewPreview, , strFilter and the InParticipant function is as follows: Public Function InParticipant() As String Dim frm As Form Dim ctl As Control Dim varItem As Variant Dim strIn As String Set frm = Forms!frmReportSelectParticipant Set ctl = frm!lstParticipants For Each varItem In ctl.ItemsSelected strIn = strIn & """" & ctl.Column(0, varItem) & """, " Next varItem If Right$(strIn, 2) = ", " Then strIn = Left$(strIn, Len(strIn) - 2) strIn = "In (" & strIn & ")" Else strIn = "" End If InParticipant = strIn Set varItem = Nothing Set ctl = Nothing Set frm = Nothing End Function Thanks all for your help. I really need to do more dev work and lett management work :( Thanks again. -- 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 bheid at appdevgrp.com Fri May 26 09:16:16 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 26 May 2006 10:16:16 -0400 Subject: [AccessD] Byref and recordset field question Message-ID: <916187228923D311A6FE00A0CC3FAA30D3546F@ADGSERVER> Hi all, I am passing a recordset to a sub byref. In that sub, I am calling a method in a class and passing several of the fields in the recordset as byref to be like output parameters. The trouble is that when the method exits, it is not setting the value in the byref fields. If you look at the variables in the method definition right before the method exits, it looks like it is set. But when you look at the value in the calling sub, it's value has not changed. A short example: set rs=db.openrecordset(strSQL,dbopendynaset) Somefunction rs 'call the first function, passing recordset byref ... public Somefunction(byref rs as recordset) with rs someclass.somemethod !a,!b,!c,!x,!y,!z end with end sub 'x,y,z are the byref "return" variables public sub Somemethod(byval a as double,byval b as double,byval c as double, _ byref x as double,byref y as double,byref z as double) 'some calcs... x=a+1 y=a*b z=2*a exit sub If I pass local variables for x,y, and z, everything works properly. Anyone know if there is a way to make this work? There are 5 return parameters and I'd hate to have to make up 5 variables each time I have to call this method. Thanks, Bobby From Gustav at cactus.dk Fri May 26 09:33:42 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 26 May 2006 16:33:42 +0200 Subject: [AccessD] Byref and recordset field question Message-ID: Hi Bobby You need to Edit and (for ADO) Update the recordset: With rs .Edit someclass.somemethod !a,!b,!c,!x,!y,!z .Update End With /gustav >>> bheid at appdevgrp.com 26-05-2006 16:16:16 >>> Hi all, I am passing a recordset to a sub byref. In that sub, I am calling a method in a class and passing several of the fields in the recordset as byref to be like output parameters. The trouble is that when the method exits, it is not setting the value in the byref fields. If you look at the variables in the method definition right before the method exits, it looks like it is set. But when you look at the value in the calling sub, it's value has not changed. A short example: set rs=db.openrecordset(strSQL,dbopendynaset) Somefunction rs 'call the first function, passing recordset byref ... public Somefunction(byref rs as recordset) with rs someclass.somemethod !a,!b,!c,!x,!y,!z end with end sub 'x,y,z are the byref "return" variables public sub Somemethod(byval a as double,byval b as double,byval c as double, _ byref x as double,byref y as double,byref z as double) 'some calcs... x=a+1 y=a*b z=2*a exit sub If I pass local variables for x,y, and z, everything works properly. Anyone know if there is a way to make this work? There are 5 return parameters and I'd hate to have to make up 5 variables each time I have to call this method. Thanks, Bobby From bheid at appdevgrp.com Fri May 26 10:06:02 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 26 May 2006 11:06:02 -0400 Subject: [AccessD] Byref and recordset field question In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DC16DA@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35472@ADGSERVER> Sorry, forgot to mention that I am using DAO and there is an .edit and .update in there. so we have: public Somefunction(byref rs as recordset) with rs .edit someclass.somemethod !a,!b,!c,!x,!y,!z .update end with end sub Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 26, 2006 10:34 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Byref and recordset field question Hi Bobby You need to Edit and (for ADO) Update the recordset: With rs .Edit someclass.somemethod !a,!b,!c,!x,!y,!z .Update End With /gustav >>> bheid at appdevgrp.com 26-05-2006 16:16:16 >>> Hi all, I am passing a recordset to a sub byref. In that sub, I am calling a method in a class and passing several of the fields in the recordset as byref to be like output parameters. The trouble is that when the method exits, it is not setting the value in the byref fields. If you look at the variables in the method definition right before the method exits, it looks like it is set. But when you look at the value in the calling sub, it's value has not changed. A short example: set rs=db.openrecordset(strSQL,dbopendynaset) Somefunction rs 'call the first function, passing recordset byref ... public Somefunction(byref rs as recordset) with rs someclass.somemethod !a,!b,!c,!x,!y,!z end with end sub 'x,y,z are the byref "return" variables public sub Somemethod(byval a as double,byval b as double,byval c as double, _ byref x as double,byref y as double,byref z as double) 'some calcs... x=a+1 y=a*b z=2*a exit sub If I pass local variables for x,y, and z, everything works properly. Anyone know if there is a way to make this work? There are 5 return parameters and I'd hate to have to make up 5 variables each time I have to call this method. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri May 26 10:19:53 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 26 May 2006 17:19:53 +0200 Subject: [AccessD] Byref and recordset field question Message-ID: Hi Bobby Missed this: public sub Somemethod(byval a as double,byval b as double,byval c as double) You are passing the Values of the fields, not the Field objects themselves. /gustav >>> bheid at appdevgrp.com 26-05-2006 17:06:02 >>> Sorry, forgot to mention that I am using DAO and there is an .edit and .update in there. so we have: public Somefunction(byref rs as recordset) with rs .edit someclass.somemethod !a,!b,!c,!x,!y,!z .update end with end sub Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, May 26, 2006 10:34 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Byref and recordset field question Hi Bobby You need to Edit and (for ADO) Update the recordset: With rs .Edit someclass.somemethod !a,!b,!c,!x,!y,!z .Update End With /gustav >>> bheid at appdevgrp.com 26-05-2006 16:16:16 >>> Hi all, I am passing a recordset to a sub byref. In that sub, I am calling a method in a class and passing several of the fields in the recordset as byref to be like output parameters. The trouble is that when the method exits, it is not setting the value in the byref fields. If you look at the variables in the method definition right before the method exits, it looks like it is set. But when you look at the value in the calling sub, it's value has not changed. A short example: set rs=db.openrecordset(strSQL,dbopendynaset) Somefunction rs 'call the first function, passing recordset byref ... public Somefunction(byref rs as recordset) with rs someclass.somemethod !a,!b,!c,!x,!y,!z end with end sub 'x,y,z are the byref "return" variables public sub Somemethod(byval a as double,byval b as double,byval c as double, _ byref x as double,byref y as double,byref z as double) 'some calcs... x=a+1 y=a*b z=2*a exit sub If I pass local variables for x,y, and z, everything works properly. Anyone know if there is a way to make this work? There are 5 return parameters and I'd hate to have to make up 5 variables each time I have to call this method. Thanks, Bobby From john at winhaven.net Fri May 26 11:26:28 2006 From: john at winhaven.net (John Bartow) Date: Fri, 26 May 2006 11:26:28 -0500 Subject: [AccessD] Toolbar staying put on one line Message-ID: <021a01c680e1$24d825e0$6502a8c0@ScuzzPaq> IIRC there was some way to prevent the toolbars from docking on more than one line. I can't find it by searching the archives, anyone know? TIA John B From prodevmg at yahoo.com Fri May 26 12:47:02 2006 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 26 May 2006 10:47:02 -0700 (PDT) Subject: [AccessD] Unorthodox Page Break Message-ID: <20060526174702.34833.qmail@web33114.mail.mud.yahoo.com> Is there a way to programatically start a new page within the detail format or detail print section if a certain condition was met with criteria in the records of a report? May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get Yahoo! Messenger with Voice From prodevmg at yahoo.com Fri May 26 12:56:22 2006 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 26 May 2006 10:56:22 -0700 (PDT) Subject: [AccessD] Unorthodox Page Break Message-ID: <20060526175622.82426.qmail@web33115.mail.mud.yahoo.com> Is there a way to programatically start a new page within the detail format or detail print section if a certain condition was met with criteria in the records of a report? May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. From jimdettman at earthlink.net Fri May 26 13:43:20 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 26 May 2006 14:43:20 -0400 Subject: [AccessD] Unorthodox Page Break In-Reply-To: <20060526175622.82426.qmail@web33115.mail.mud.yahoo.com> Message-ID: Yes. Include a page break control in the detail section. In the OnFormat event, set the control visible or hide it based on the condition. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Friday, May 26, 2006 1:56 PM To: AccessD solving' Subject: [AccessD] Unorthodox Page Break Is there a way to programatically start a new page within the detail format or detail print section if a certain condition was met with criteria in the records of a report? May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Blab-away for as little as 1?/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelbroadband.in Fri May 26 14:26:29 2006 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Sat, 27 May 2006 00:56:29 +0530 Subject: [AccessD] Unorthodox Page Break References: <20060526175622.82426.qmail@web33115.mail.mud.yahoo.com> Message-ID: <007e01c680fa$7639b2f0$450265cb@pcadt> Lonnie, Sample code in Detail section's format event is given below: If << Criteria Expression >> Then Me.Detail.ForceNewPage = 2 Else Me.Detail.ForceNewPage = 0 ' (A) End If Choice of values for ForceNewPage property is as follows: 0 - No forced page break 1 - Before Section 2 - After Section 3 - Before & After Section Note - Inclusion of statement (A) in Else clause is necessary, otherwise the page break, once invoked, will continue to take place indiscriminately. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Lonnie Johnson To: AccessD solving' Sent: Friday, May 26, 2006 23:26 Subject: [AccessD] Unorthodox Page Break Is there a way to programatically start a new page within the detail format or detail print section if a certain condition was met with criteria in the records of a report? May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us From lmrazek at lcm-res.com Fri May 26 14:51:09 2006 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Fri, 26 May 2006 14:51:09 -0500 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel (SOLVED) In-Reply-To: <0c0f01c67f4d$ee9ddbd0$026fa8c0@stormy> Message-ID: <02dd01c680fd$beff9560$026fa8c0@stormy> Hi Folks: Well, I was looking in the wrong place for this error. Since these are fairly complex worksheets, with a lot of formulas using named ranges, I SHOULD have looked at Excel to make sure that what I was trying to write to the cell was valid. Of course, it wasn't, as some of my grand total formulas exceeded the 1024 character limit of a formula in excel. This caused the generic "out of memory" error. I was able to fix the error by shortening my naming convention, and everything is building correctly. Thanks to everyone who responded, you helped me eliminate some of the other possibilities for this error. Hope everyone has a safe weekend! 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 Lawrence Mrazek Sent: Wednesday, May 24, 2006 11:20 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel I'm using a lot of named ranges, since these data groupings change from month to month. I wonder if this could have something to do with the issue. I'll check Excel help and report back to the list ... Thanks! Larry -----Original Message----- I don't think that would help. If it runs on one machine and not the other it may truly be out of memory although this seems strange. I have sheets that exceed 8 mg. Of course not all workbooks are equal in the kind of resources they use. Check out Microsoft Excel specifications in the Excel help and see if any of those limits apply to your situation. Depending on the situation I have cured this problem in the past by changing lookup formulas to values, reducing pivot tables, etc to shrink the worksheet. Good luck Jim Hale -----Original Message----- Hi Jim: No, I don't think so. This has happened on the first run after a reboot, and I haven't been able to identify any open processes using task manager even after a run completed. Would saving (before the last worksheet generated), closing the instance of excel, then re-opening excel possibly solve this? Like I said, these are pretty large files. Thanks. 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 Hale, Jim Sent: Wednesday, May 24, 2006 8:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel Is it possible old instances of Excel are still in memory? Excel loves to hang around even when you think you have properly closed it from previous runs. Use task manager to see if this is the case. If it is there are a number of voodoo rituals availasble to kill the zombies. Jim Hale -----Original Message----- From: Lawrence Mrazek [mailto:lmrazek at lcm-res.com] Sent: Tuesday, May 23, 2006 9:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel Hi Folks: I have a fairly complex application that dynamically creates an excel workbook and worksheets from VBA (formatting is done via an Excel template), then populates the sheets with data from recordsets, as well as formulas using named ranges. Typically, when they're finished generating, they weigh in at about 5-6 megabytes. While they generate OK on my development machine with 2gb RAM, the larger exports have been failing at the last worksheet when I run it on a machine with 1gb or less total RAM. Basically, the export stops and Access displays a message box stating "Out of Memory". I've been closing the recordset objects, setting them to "nothing", but I'm still getting the error. Any ideas on how to troubleshoot this issue? Thanks in advance. 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 *********************************************************************** 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 *********************************************************************** 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 cfoust at infostatsystems.com Fri May 26 15:18:39 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 26 May 2006 13:18:39 -0700 Subject: [AccessD] Toolbar staying put on one line In-Reply-To: <021a01c680e1$24d825e0$6502a8c0@ScuzzPaq> Message-ID: Have you set the toolbar properties to AllowMoving = False? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, May 26, 2006 9:26 AM To: _DBA-Access Subject: [AccessD] Toolbar staying put on one line IIRC there was some way to prevent the toolbars from docking on more than one line. I can't find it by searching the archives, anyone know? TIA John B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri May 26 15:50:17 2006 From: john at winhaven.net (John Bartow) Date: Fri, 26 May 2006 15:50:17 -0500 Subject: [AccessD] Toolbar staying put on one line In-Reply-To: Message-ID: <031f01c68105$ff3e9970$6502a8c0@ScuzzPaq> Yes, but here's what happens. If I have a toolbar that's designated for a form and I manually turn another one on in design mode that is in the same location as the designated toolbar (far left), when I display the form it makes the forms drop down to a second row. I though I saw something - a switch or a technique which would only allow one row of toolbars which, in this case, would force the designated form toolbar to go to the right of the existing one. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Have you set the toolbar properties to AllowMoving = False? Charlotte Foust From cfoust at infostatsystems.com Fri May 26 16:23:19 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 26 May 2006 14:23:19 -0700 Subject: [AccessD] Toolbar staying put on one line In-Reply-To: <031f01c68105$ff3e9970$6502a8c0@ScuzzPaq> Message-ID: Ah, then I think you're on a fool's errand, but I haven't looked into it since Access XP, when we discovered that we didn't have the control over toolbars we thought we should have. Sorry. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, May 26, 2006 1:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Toolbar staying put on one line Yes, but here's what happens. If I have a toolbar that's designated for a form and I manually turn another one on in design mode that is in the same location as the designated toolbar (far left), when I display the form it makes the forms drop down to a second row. I though I saw something - a switch or a technique which would only allow one row of toolbars which, in this case, would force the designated form toolbar to go to the right of the existing one. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Have you set the toolbar properties to AllowMoving = False? Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri May 26 17:43:22 2006 From: john at winhaven.net (John Bartow) Date: Fri, 26 May 2006 17:43:22 -0500 Subject: [AccessD] Toolbar staying put on one line In-Reply-To: Message-ID: <037a01c68115$cbe756b0$6502a8c0@ScuzzPaq> I don't see any method for exact placement of toolbars. I suppose I could develop a module function that goes through all toolbars and turns them off except the one I want and have the code run at Form|Open but that seems a bit extreme. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Ah, then I think you're on a fool's errand, but I haven't looked into it since Access XP, when we discovered that we didn't have the control over toolbars we thought we should have. Sorry. From cfoust at infostatsystems.com Fri May 26 18:41:21 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 26 May 2006 16:41:21 -0700 Subject: [AccessD] Toolbar staying put on one line In-Reply-To: <037a01c68115$cbe756b0$6502a8c0@ScuzzPaq> Message-ID: Actually, that's our main solution. We have a default menubar with limited choices and we show and hide custom menubars/toolbars depending on the form or report being displayed. It isn't foolproof, but it's the closest we could come. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, May 26, 2006 3:43 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Toolbar staying put on one line I don't see any method for exact placement of toolbars. I suppose I could develop a module function that goes through all toolbars and turns them off except the one I want and have the code run at Form|Open but that seems a bit extreme. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Ah, then I think you're on a fool's errand, but I haven't looked into it since Access XP, when we discovered that we didn't have the control over toolbars we thought we should have. Sorry. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Sat May 27 10:41:11 2006 From: john at winhaven.net (John Bartow) Date: Sat, 27 May 2006 10:41:11 -0500 Subject: [AccessD] Toolbar staying put on one line In-Reply-To: Message-ID: <06a901c681a3$fc05d1d0$6502a8c0@ScuzzPaq> I'd appreciate anything you can post. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Actually, that's our main solution. We have a default menubar with limited choices and we show and hide custom menubars/toolbars depending on the form or report being displayed. It isn't foolproof, but it's the closest we could come. From mwp.reid at qub.ac.uk Sun May 28 13:14:08 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 28 May 2006 19:14:08 +0100 Subject: [AccessD] Access 2007 and ADPs References: <011d01c6688c$3fa5d2e0$dc1565cb@pcadt> Message-ID: ADPs are interesting and important to many of our customers. We are committed to making sure they continue to work. You can download beta 2 today and use the ADP visual designers (Tables, Views, Stored Procedures, and Functions) with SQL Server 2005 objects just as you would have used Access 2003 and SQL Server 2000. The two weaknesses of ADPs that likely won't be fixed because of the underlying architecture include the inability to link to external data sources (without setting up linked servers) and local queries. Combining adhoc heterogeneous data sources is a big part of Access functionality that is used heavily by most customers. The Access team is making a big investment in using the Access Dara Engine as the way to get to external data sources. I expect that to continue in the future. For new SQL Server projects where you are evaluating which platform to start from, we recommend MDBs or ACCDBs with linked tables because they offer more flexibility and that is likely where the Access team will invest the most when building new features. We have also found that applications that are upsized from mdb back-end tables to SQL Server link tables require far less application changes than upsizing to ADPs. The upsizing wizard defaults have been changed from upsizing to ADPs to move the data to SQL Server and replace local tables with link tables. In other words, the upsizing wizard will not default to ADPs. Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From dwaters at usinternet.com Sun May 28 17:49:59 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 28 May 2006 17:49:59 -0500 Subject: [AccessD] Access 2007 and ADPs In-Reply-To: <13573329.1148840381787.JavaMail.root@sniper38> Message-ID: <000601c682a9$0cf36740$0200a8c0@danwaters> Martin, I just wanted to say Thanks for continuing to update everyone with this excellent information! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Sunday, May 28, 2006 1:14 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2007 and ADPs ADPs are interesting and important to many of our customers. We are committed to making sure they continue to work. You can download beta 2 today and use the ADP visual designers (Tables, Views, Stored Procedures, and Functions) with SQL Server 2005 objects just as you would have used Access 2003 and SQL Server 2000. The two weaknesses of ADPs that likely won't be fixed because of the underlying architecture include the inability to link to external data sources (without setting up linked servers) and local queries. Combining adhoc heterogeneous data sources is a big part of Access functionality that is used heavily by most customers. The Access team is making a big investment in using the Access Dara Engine as the way to get to external data sources. I expect that to continue in the future. For new SQL Server projects where you are evaluating which platform to start from, we recommend MDBs or ACCDBs with linked tables because they offer more flexibility and that is likely where the Access team will invest the most when building new features. We have also found that applications that are upsized from mdb back-end tables to SQL Server link tables require far less application changes than upsizing to ADPs. The upsizing wizard defaults have been changed from upsizing to ADPs to move the data to SQL Server and replace local tables with link tables. In other words, the upsizing wizard will not default to ADPs. Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From bchacc at san.rr.com Mon May 29 11:10:17 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 29 May 2006 09:10:17 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] Message-ID: <447B1CE9.70603@san.rr.com> Dear List: Didn't get any response to this on tech. Maybe someone here knows the answer. MTIA Rocky -------- Original Message -------- Subject: [dba-Tech] Printer Tank Counter Date: Fri, 26 May 2006 09:06:54 -0700 From: Rocky Smolin - Beach Access Software Reply-To: Discussion of Hardware and Software issues To: dba-tech Dear List: I got a couple of Canon PIXMA iP1600s free with the purchase of a couple of 19 inch flat screen monitors at Fry's. Of course, the low ink warning comes up when the carts are still about 1/3 full but that's the scam. Give away the razor, sell the blade. Anyway, I refilled the cartridges but the warning still comes up every time I print something. Apparently these printers are "chipped" with some kind of bogus counter rather than actually sensing the ink level. In any event I combed the net looking for info on resetting this counter (without actually having to spend $40-50 on new carts which is what the printer retails for anyway). Does anyone know how or even if this counter can be reset so the low ink nag screen doesn't pop up every time I print something. MTIA, Rocky -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com _______________________________________________ dba-Tech mailing list dba-Tech at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-tech Website: http://www.databaseadvisors.com -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From lembit.dbamail at t-online.de Mon May 29 12:40:10 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Mon, 29 May 2006 19:40:10 +0200 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] References: <447B1CE9.70603@san.rr.com> Message-ID: <000401c68346$eefb3df0$1400a8c0@v1000> Rocky, I have the useless info that I did read something detailed how to reset them, but since I dont have such printer, I did not make a note and I do not remember where I saw that. :( Should I find it, I will let you know. Lembit ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Monday, May 29, 2006 6:10 PM Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] > Dear List: > > Didn't get any response to this on tech. Maybe someone here knows the > answer. > > MTIA > > Rocky > > > -------- Original Message -------- > Subject: [dba-Tech] Printer Tank Counter > Date: Fri, 26 May 2006 09:06:54 -0700 > From: Rocky Smolin - Beach Access Software > Reply-To: Discussion of Hardware and Software issues > > To: dba-tech > > > > Dear List: > > I got a couple of Canon PIXMA iP1600s free with the purchase of a couple > of 19 inch flat screen monitors at Fry's. > > Of course, the low ink warning comes up when the carts are still about > 1/3 full but that's the scam. Give away the razor, sell the blade. > > Anyway, I refilled the cartridges but the warning still comes up every > time I print something. Apparently these printers are "chipped" with > some kind of bogus counter rather than actually sensing the ink level. > > In any event I combed the net looking for info on resetting this counter > (without actually having to spend $40-50 on new carts which is what the > printer retails for anyway). > > Does anyone know how or even if this counter can be reset so the low ink > nag screen doesn't pop up every time I print something. > > MTIA, > > Rocky > > -- > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > 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 > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.7.3/350 - Release Date: 28.05.2006 > > From lembit.dbamail at t-online.de Mon May 29 13:02:12 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Mon, 29 May 2006 20:02:12 +0200 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] References: <447B1CE9.70603@san.rr.com> <000401c68346$eefb3df0$1400a8c0@v1000> Message-ID: <000801c6834a$032ff150$1400a8c0@v1000> found the article. (German magazin CHIP 01/2006) your printer is not mentioned, but a similar problem with an Epson Stylus C46: this one has a dropcounter which stops printing while there is still 17% ink in it. They found a Chip-Resetter on Ebay which costs about 2 to 3 Euro and works ok to use the remaining ink. Maybe if you search ebay, you might find a similar resetter for your cartridges. Lembit ----- Original Message ----- From: "Lembit Soobik" To: "Access Developers discussion and problem solving" Sent: Monday, May 29, 2006 7:40 PM Subject: Re: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] > Rocky, > I have the useless info that I did read something detailed how to reset > them, but since I dont have such printer, I did not make a note and I do > not > remember where I saw that. :( > Should I find it, I will let you know. > > Lembit > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: "Access Developers discussion and problem solving" > > Sent: Monday, May 29, 2006 6:10 PM > Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] > > >> Dear List: >> >> Didn't get any response to this on tech. Maybe someone here knows the >> answer. >> >> MTIA >> >> Rocky >> >> >> -------- Original Message -------- >> Subject: [dba-Tech] Printer Tank Counter >> Date: Fri, 26 May 2006 09:06:54 -0700 >> From: Rocky Smolin - Beach Access Software >> Reply-To: Discussion of Hardware and Software issues >> >> To: dba-tech >> >> >> >> Dear List: >> >> I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >> of 19 inch flat screen monitors at Fry's. >> >> Of course, the low ink warning comes up when the carts are still about >> 1/3 full but that's the scam. Give away the razor, sell the blade. >> >> Anyway, I refilled the cartridges but the warning still comes up every >> time I print something. Apparently these printers are "chipped" with >> some kind of bogus counter rather than actually sensing the ink level. >> >> In any event I combed the net looking for info on resetting this counter >> (without actually having to spend $40-50 on new carts which is what the >> printer retails for anyway). >> >> Does anyone know how or even if this counter can be reset so the low ink >> nag screen doesn't pop up every time I print something. >> >> MTIA, >> >> Rocky >> >> -- >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> >> _______________________________________________ >> dba-Tech mailing list >> dba-Tech at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-tech >> 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 >> >> >> -- >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.1.394 / Virus Database: 268.7.3/350 - Release Date: 28.05.2006 >> >> > > -- > 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.394 / Virus Database: 268.7.3/350 - Release Date: 28.05.2006 > > From bchacc at san.rr.com Mon May 29 13:11:35 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 29 May 2006 11:11:35 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: <000801c6834a$032ff150$1400a8c0@v1000> References: <447B1CE9.70603@san.rr.com> <000401c68346$eefb3df0$1400a8c0@v1000> <000801c6834a$032ff150$1400a8c0@v1000> Message-ID: <447B3957.7050400@san.rr.com> Thanks. I'll take a look. Rocky Lembit Soobik wrote: > found the article. (German magazin CHIP 01/2006) > > your printer is not mentioned, but a similar problem with an Epson Stylus > C46: > this one has a dropcounter which stops printing while there is still 17% ink > in it. > They found a Chip-Resetter on Ebay which costs about 2 to 3 Euro and works > ok to use the remaining ink. > > Maybe if you search ebay, you might find a similar resetter for your > cartridges. > > Lembit > > ----- Original Message ----- > From: "Lembit Soobik" > To: "Access Developers discussion and problem solving" > > Sent: Monday, May 29, 2006 7:40 PM > Subject: Re: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] > > > >> Rocky, >> I have the useless info that I did read something detailed how to reset >> them, but since I dont have such printer, I did not make a note and I do >> not >> remember where I saw that. :( >> Should I find it, I will let you know. >> >> Lembit >> >> ----- Original Message ----- >> From: "Rocky Smolin - Beach Access Software" >> To: "Access Developers discussion and problem solving" >> >> Sent: Monday, May 29, 2006 6:10 PM >> Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] >> >> >> >>> Dear List: >>> >>> Didn't get any response to this on tech. Maybe someone here knows the >>> answer. >>> >>> MTIA >>> >>> Rocky >>> >>> >>> -------- Original Message -------- >>> Subject: [dba-Tech] Printer Tank Counter >>> Date: Fri, 26 May 2006 09:06:54 -0700 >>> From: Rocky Smolin - Beach Access Software >>> Reply-To: Discussion of Hardware and Software issues >>> >>> To: dba-tech >>> >>> >>> >>> Dear List: >>> >>> I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >>> of 19 inch flat screen monitors at Fry's. >>> >>> Of course, the low ink warning comes up when the carts are still about >>> 1/3 full but that's the scam. Give away the razor, sell the blade. >>> >>> Anyway, I refilled the cartridges but the warning still comes up every >>> time I print something. Apparently these printers are "chipped" with >>> some kind of bogus counter rather than actually sensing the ink level. >>> >>> In any event I combed the net looking for info on resetting this counter >>> (without actually having to spend $40-50 on new carts which is what the >>> printer retails for anyway). >>> >>> Does anyone know how or even if this counter can be reset so the low ink >>> nag screen doesn't pop up every time I print something. >>> >>> MTIA, >>> >>> Rocky >>> >>> -- >>> Rocky Smolin >>> Beach Access Software >>> 858-259-4334 >>> www.e-z-mrp.com >>> >>> _______________________________________________ >>> dba-Tech mailing list >>> dba-Tech at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-tech >>> 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 >>> >>> >>> -- >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.1.394 / Virus Database: 268.7.3/350 - Release Date: 28.05.2006 >>> >>> >>> >> -- >> 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.394 / Virus Database: 268.7.3/350 - Release Date: 28.05.2006 >> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From martyconnelly at shaw.ca Mon May 29 16:35:22 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 29 May 2006 14:35:22 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: <447B1CE9.70603@san.rr.com> References: <447B1CE9.70603@san.rr.com> Message-ID: <447B691A.3010003@shaw.ca> Almost all Canons are resettable using a series of buttons presses.. or search the forums here http://www.nifty-stuff.com/forum/viewforum.php?id=4 I found this on this thread: There is more here http://www.fixyourownprinter.com/forums/inkjet/15284 Canon PIXMA iP1500 Waste Ink Counter Reset. Manual for Service mode 1. Turn off the printer. And disconnect the printer cable. 2. Press and hold the POWER button, turn on the printer. 3. The indicator (L.E.D.) should be green. 4. Press and release the RESUME button , the indicator (L.E.D.) should be orange. 5. Press and release the RESUME button again, the indicator (L.E.D.) should be green 6. Release both buttons Rocky Smolin - Beach Access Software wrote: >Dear List: > >Didn't get any response to this on tech. Maybe someone here knows the >answer. > >MTIA > >Rocky > > >-------- Original Message -------- >Subject: [dba-Tech] Printer Tank Counter >Date: Fri, 26 May 2006 09:06:54 -0700 >From: Rocky Smolin - Beach Access Software >Reply-To: Discussion of Hardware and Software issues > >To: dba-tech > > > >Dear List: > >I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >of 19 inch flat screen monitors at Fry's. > >Of course, the low ink warning comes up when the carts are still about >1/3 full but that's the scam. Give away the razor, sell the blade. > >Anyway, I refilled the cartridges but the warning still comes up every >time I print something. Apparently these printers are "chipped" with >some kind of bogus counter rather than actually sensing the ink level. > >In any event I combed the net looking for info on resetting this counter >(without actually having to spend $40-50 on new carts which is what the >printer retails for anyway). > >Does anyone know how or even if this counter can be reset so the low ink >nag screen doesn't pop up every time I print something. > >MTIA, > >Rocky > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Mon May 29 18:07:51 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 29 May 2006 16:07:51 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: <447B691A.3010003@shaw.ca> References: <447B1CE9.70603@san.rr.com> <447B691A.3010003@shaw.ca> Message-ID: <447B7EC7.9090707@san.rr.com> Marty: I saw that procedure for the 1500. Apparently they 'fixed' it for the 1600. So it don't work no more. :-( I'll see what the fora have to say. Thanks and regards, Rocky MartyConnelly wrote: > Almost all Canons are resettable using a series of buttons presses.. > or search the forums here > http://www.nifty-stuff.com/forum/viewforum.php?id=4 > > > I found this on this thread: There is more here > > http://www.fixyourownprinter.com/forums/inkjet/15284 > > > Canon PIXMA iP1500 > Waste Ink Counter Reset. Manual for Service mode > > 1. Turn off the printer. And disconnect the printer cable. > 2. Press and hold the POWER button, turn on the printer. > 3. The indicator (L.E.D.) should be green. > 4. Press and release the RESUME button , the indicator (L.E.D.) > should be orange. > 5. Press and release the RESUME button again, the indicator > (L.E.D.) should be green > 6. Release both buttons > > > > Rocky Smolin - Beach Access Software wrote: > > >> Dear List: >> >> Didn't get any response to this on tech. Maybe someone here knows the >> answer. >> >> MTIA >> >> Rocky >> >> >> -------- Original Message -------- >> Subject: [dba-Tech] Printer Tank Counter >> Date: Fri, 26 May 2006 09:06:54 -0700 >> From: Rocky Smolin - Beach Access Software >> Reply-To: Discussion of Hardware and Software issues >> >> To: dba-tech >> >> >> >> Dear List: >> >> I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >> of 19 inch flat screen monitors at Fry's. >> >> Of course, the low ink warning comes up when the carts are still about >> 1/3 full but that's the scam. Give away the razor, sell the blade. >> >> Anyway, I refilled the cartridges but the warning still comes up every >> time I print something. Apparently these printers are "chipped" with >> some kind of bogus counter rather than actually sensing the ink level. >> >> In any event I combed the net looking for info on resetting this counter >> (without actually having to spend $40-50 on new carts which is what the >> printer retails for anyway). >> >> Does anyone know how or even if this counter can be reset so the low ink >> nag screen doesn't pop up every time I print something. >> >> MTIA, >> >> Rocky >> >> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From martyconnelly at shaw.ca Mon May 29 18:40:29 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 29 May 2006 16:40:29 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: <447B7EC7.9090707@san.rr.com> References: <447B1CE9.70603@san.rr.com> <447B691A.3010003@shaw.ca> <447B7EC7.9090707@san.rr.com> Message-ID: <447B866D.2080507@shaw.ca> You may have to spend $10.00 To reset waste ink pads counters you have to use iP1600 Service Tool http://www.2manuals.com/product_info.php?products_id=680 Rocky Smolin - Beach Access Software wrote: >I saw that procedure for the 1500. Apparently they 'fixed' it for the >1600. So it don't work no more. :-( > >I'll see what the fora have to say. > >Thanks and regards, > >Rocky > > >MartyConnelly wrote: > > >> Almost all Canons are resettable using a series of buttons presses.. >>or search the forums here >>http://www.nifty-stuff.com/forum/viewforum.php?id=4 >> >> >>I found this on this thread: There is more here >> >>http://www.fixyourownprinter.com/forums/inkjet/15284 >> >> >> Canon PIXMA iP1500 >> Waste Ink Counter Reset. Manual for Service mode >> >> 1. Turn off the printer. And disconnect the printer cable. >> 2. Press and hold the POWER button, turn on the printer. >> 3. The indicator (L.E.D.) should be green. >> 4. Press and release the RESUME button , the indicator (L.E.D.) >> should be orange. >> 5. Press and release the RESUME button again, the indicator >> (L.E.D.) should be green >> 6. Release both buttons >> >> >> >>Rocky Smolin - Beach Access Software wrote: >> >> >> >> >>>Dear List: >>> >>>Didn't get any response to this on tech. Maybe someone here knows the >>>answer. >>> >>>MTIA >>> >>>Rocky >>> >>> >>>-------- Original Message -------- >>>Subject: [dba-Tech] Printer Tank Counter >>>Date: Fri, 26 May 2006 09:06:54 -0700 >>>From: Rocky Smolin - Beach Access Software >>>Reply-To: Discussion of Hardware and Software issues >>> >>>To: dba-tech >>> >>> >>> >>>Dear List: >>> >>>I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >>>of 19 inch flat screen monitors at Fry's. >>> >>>Of course, the low ink warning comes up when the carts are still about >>>1/3 full but that's the scam. Give away the razor, sell the blade. >>> >>>Anyway, I refilled the cartridges but the warning still comes up every >>>time I print something. Apparently these printers are "chipped" with >>>some kind of bogus counter rather than actually sensing the ink level. >>> >>>In any event I combed the net looking for info on resetting this counter >>>(without actually having to spend $40-50 on new carts which is what the >>>printer retails for anyway). >>> >>>Does anyone know how or even if this counter can be reset so the low ink >>>nag screen doesn't pop up every time I print something. >>> >>>MTIA, >>> >>>Rocky >>> >>> >>> >>> >>> >>> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Mon May 29 19:04:55 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 29 May 2006 17:04:55 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: <447B866D.2080507@shaw.ca> References: <447B1CE9.70603@san.rr.com> <447B691A.3010003@shaw.ca> <447B7EC7.9090707@san.rr.com> <447B866D.2080507@shaw.ca> Message-ID: <447B8C27.2010805@san.rr.com> Yeah. Might have to. That low ink message is annoying. You think the 'waste ink pad counter' is the same as the 'low ink' message? Rocky MartyConnelly wrote: > You may have to spend $10.00 > To reset waste ink pads counters you have to use iP1600 Service Tool > http://www.2manuals.com/product_info.php?products_id=680 > > > Rocky Smolin - Beach Access Software wrote: > > >> I saw that procedure for the 1500. Apparently they 'fixed' it for the >> 1600. So it don't work no more. :-( >> >> I'll see what the fora have to say. >> >> Thanks and regards, >> >> Rocky >> >> >> MartyConnelly wrote: >> >> >> >>> Almost all Canons are resettable using a series of buttons presses.. >>> or search the forums here >>> http://www.nifty-stuff.com/forum/viewforum.php?id=4 >>> >>> >>> I found this on this thread: There is more here >>> >>> http://www.fixyourownprinter.com/forums/inkjet/15284 >>> >>> >>> Canon PIXMA iP1500 >>> Waste Ink Counter Reset. Manual for Service mode >>> >>> 1. Turn off the printer. And disconnect the printer cable. >>> 2. Press and hold the POWER button, turn on the printer. >>> 3. The indicator (L.E.D.) should be green. >>> 4. Press and release the RESUME button , the indicator (L.E.D.) >>> should be orange. >>> 5. Press and release the RESUME button again, the indicator >>> (L.E.D.) should be green >>> 6. Release both buttons >>> >>> >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>> >>> >>> >>> >>>> Dear List: >>>> >>>> Didn't get any response to this on tech. Maybe someone here knows the >>>> answer. >>>> >>>> MTIA >>>> >>>> Rocky >>>> >>>> >>>> -------- Original Message -------- >>>> Subject: [dba-Tech] Printer Tank Counter >>>> Date: Fri, 26 May 2006 09:06:54 -0700 >>>> From: Rocky Smolin - Beach Access Software >>>> Reply-To: Discussion of Hardware and Software issues >>>> >>>> To: dba-tech >>>> >>>> >>>> >>>> Dear List: >>>> >>>> I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >>>> of 19 inch flat screen monitors at Fry's. >>>> >>>> Of course, the low ink warning comes up when the carts are still about >>>> 1/3 full but that's the scam. Give away the razor, sell the blade. >>>> >>>> Anyway, I refilled the cartridges but the warning still comes up every >>>> time I print something. Apparently these printers are "chipped" with >>>> some kind of bogus counter rather than actually sensing the ink level. >>>> >>>> In any event I combed the net looking for info on resetting this counter >>>> (without actually having to spend $40-50 on new carts which is what the >>>> printer retails for anyway). >>>> >>>> Does anyone know how or even if this counter can be reset so the low ink >>>> nag screen doesn't pop up every time I print something. >>>> >>>> MTIA, >>>> >>>> Rocky >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From martyconnelly at shaw.ca Mon May 29 23:39:47 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 29 May 2006 21:39:47 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: <447B8C27.2010805@san.rr.com> References: <447B1CE9.70603@san.rr.com> <447B691A.3010003@shaw.ca> <447B7EC7.9090707@san.rr.com> <447B866D.2080507@shaw.ca> <447B8C27.2010805@san.rr.com> Message-ID: <447BCC93.80500@shaw.ca> Dunno, I use a local dropbox refill service. Stick in a envelope, put in a computer store box and it is mailed back within a week. Rocky Smolin - Beach Access Software wrote: >Yeah. Might have to. That low ink message is annoying. You think the >'waste ink pad counter' is the same as the 'low ink' message? > >Rocky > > >MartyConnelly wrote: > > >>You may have to spend $10.00 >>To reset waste ink pads counters you have to use iP1600 Service Tool >>http://www.2manuals.com/product_info.php?products_id=680 >> >> >>Rocky Smolin - Beach Access Software wrote: >> >> >> >> >>>I saw that procedure for the 1500. Apparently they 'fixed' it for the >>>1600. So it don't work no more. :-( >>> >>>I'll see what the fora have to say. >>> >>>Thanks and regards, >>> >>>Rocky >>> >>> >>>MartyConnelly wrote: >>> >>> >>> >>> >>> >>>>Almost all Canons are resettable using a series of buttons presses.. >>>>or search the forums here >>>>http://www.nifty-stuff.com/forum/viewforum.php?id=4 >>>> >>>> >>>>I found this on this thread: There is more here >>>> >>>>http://www.fixyourownprinter.com/forums/inkjet/15284 >>>> >>>> >>>> Canon PIXMA iP1500 >>>> Waste Ink Counter Reset. Manual for Service mode >>>> >>>> 1. Turn off the printer. And disconnect the printer cable. >>>> 2. Press and hold the POWER button, turn on the printer. >>>> 3. The indicator (L.E.D.) should be green. >>>> 4. Press and release the RESUME button , the indicator (L.E.D.) >>>> should be orange. >>>> 5. Press and release the RESUME button again, the indicator >>>> (L.E.D.) should be green >>>> 6. Release both buttons >>>> >>>> >>>> >>>>Rocky Smolin - Beach Access Software wrote: >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>>Dear List: >>>>> >>>>>Didn't get any response to this on tech. Maybe someone here knows the >>>>>answer. >>>>> >>>>>MTIA >>>>> >>>>>Rocky >>>>> >>>>> >>>>>-------- Original Message -------- >>>>>Subject: [dba-Tech] Printer Tank Counter >>>>>Date: Fri, 26 May 2006 09:06:54 -0700 >>>>>From: Rocky Smolin - Beach Access Software >>>>>Reply-To: Discussion of Hardware and Software issues >>>>> >>>>>To: dba-tech >>>>> >>>>> >>>>> >>>>>Dear List: >>>>> >>>>>I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >>>>>of 19 inch flat screen monitors at Fry's. >>>>> >>>>>Of course, the low ink warning comes up when the carts are still about >>>>>1/3 full but that's the scam. Give away the razor, sell the blade. >>>>> >>>>>Anyway, I refilled the cartridges but the warning still comes up every >>>>>time I print something. Apparently these printers are "chipped" with >>>>>some kind of bogus counter rather than actually sensing the ink level. >>>>> >>>>>In any event I combed the net looking for info on resetting this counter >>>>>(without actually having to spend $40-50 on new carts which is what the >>>>>printer retails for anyway). >>>>> >>>>>Does anyone know how or even if this counter can be reset so the low ink >>>>>nag screen doesn't pop up every time I print something. >>>>> >>>>>MTIA, >>>>> >>>>>Rocky >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From jimdettman at earthlink.net Tue May 30 06:01:02 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 30 May 2006 07:01:02 -0400 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: <447B8C27.2010805@san.rr.com> Message-ID: Rocky, <> No, but most ink jets show the low ink pad counter as a problem with the ink cart. The ink pad is an absorbent pad under the head. When an ink jet parks the head, it sits on the pad and the pad absorbs the excess ink. Since the amount of ink cannot be easily measured, the counter is a "best guess" of when the pad is about to become full. You usually can reset the counter easily enough, but you run the risk of finding ink all over your desk at some point. Most are on the conservative side, so it's not a big risk, but it can happen. Search the net for the reset procedure. If you can't find it, I'd toss the printer. Their cheap enough. By the time you locate the part, do the replacement, etc. your are probably well over the cost of a new printer. Plus, usually by the time you hit an ink pad full error, the printer is fairly old and outdated anyway. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, May 29, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] Yeah. Might have to. That low ink message is annoying. You think the 'waste ink pad counter' is the same as the 'low ink' message? Rocky MartyConnelly wrote: > You may have to spend $10.00 > To reset waste ink pads counters you have to use iP1600 Service Tool > http://www.2manuals.com/product_info.php?products_id=680 > > > Rocky Smolin - Beach Access Software wrote: > > >> I saw that procedure for the 1500. Apparently they 'fixed' it for the >> 1600. So it don't work no more. :-( >> >> I'll see what the fora have to say. >> >> Thanks and regards, >> >> Rocky >> >> >> MartyConnelly wrote: >> >> >> >>> Almost all Canons are resettable using a series of buttons presses.. >>> or search the forums here >>> http://www.nifty-stuff.com/forum/viewforum.php?id=4 >>> >>> >>> I found this on this thread: There is more here >>> >>> http://www.fixyourownprinter.com/forums/inkjet/15284 >>> >>> >>> Canon PIXMA iP1500 >>> Waste Ink Counter Reset. Manual for Service mode >>> >>> 1. Turn off the printer. And disconnect the printer cable. >>> 2. Press and hold the POWER button, turn on the printer. >>> 3. The indicator (L.E.D.) should be green. >>> 4. Press and release the RESUME button , the indicator (L.E.D.) >>> should be orange. >>> 5. Press and release the RESUME button again, the indicator >>> (L.E.D.) should be green >>> 6. Release both buttons >>> >>> >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>> >>> >>> >>> >>>> Dear List: >>>> >>>> Didn't get any response to this on tech. Maybe someone here knows the >>>> answer. >>>> >>>> MTIA >>>> >>>> Rocky >>>> >>>> >>>> -------- Original Message -------- >>>> Subject: [dba-Tech] Printer Tank Counter >>>> Date: Fri, 26 May 2006 09:06:54 -0700 >>>> From: Rocky Smolin - Beach Access Software >>>> Reply-To: Discussion of Hardware and Software issues >>>> >>>> To: dba-tech >>>> >>>> >>>> >>>> Dear List: >>>> >>>> I got a couple of Canon PIXMA iP1600s free with the purchase of a couple >>>> of 19 inch flat screen monitors at Fry's. >>>> >>>> Of course, the low ink warning comes up when the carts are still about >>>> 1/3 full but that's the scam. Give away the razor, sell the blade. >>>> >>>> Anyway, I refilled the cartridges but the warning still comes up every >>>> time I print something. Apparently these printers are "chipped" with >>>> some kind of bogus counter rather than actually sensing the ink level. >>>> >>>> In any event I combed the net looking for info on resetting this counter >>>> (without actually having to spend $40-50 on new carts which is what the >>>> printer retails for anyway). >>>> >>>> Does anyone know how or even if this counter can be reset so the low ink >>>> nag screen doesn't pop up every time I print something. >>>> >>>> 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 bheid at appdevgrp.com Tue May 30 07:45:50 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 30 May 2006 08:45:50 -0400 Subject: [AccessD] "Out of Memory" Error ... VBA Export to Excel (SOLVED) In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DC177F@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3547B@ADGSERVER> Glad to hear you figured it out. I learned about the 1024 byte limit. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Friday, May 26, 2006 3:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] "Out of Memory" Error ... VBA Export to Excel (SOLVED) Hi Folks: Well, I was looking in the wrong place for this error. Since these are fairly complex worksheets, with a lot of formulas using named ranges, I SHOULD have looked at Excel to make sure that what I was trying to write to the cell was valid. Of course, it wasn't, as some of my grand total formulas exceeded the 1024 character limit of a formula in excel. This caused the generic "out of memory" error. I was able to fix the error by shortening my naming convention, and everything is building correctly. Thanks to everyone who responded, you helped me eliminate some of the other possibilities for this error. Hope everyone has a safe weekend! Larry Mrazek From bchacc at san.rr.com Tue May 30 08:42:24 2006 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 30 May 2006 06:42:24 -0700 Subject: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] In-Reply-To: References: Message-ID: <447C4BC0.7050704@san.rr.com> Well, these two were "free", so I've a mind to toss them both into a garage sale. The second one's still in the box - I don't have a computer which needs one right now. But they're not bad little printers. Rocky Jim Dettman wrote: > Rocky, > > < 'waste ink pad counter' is the same as the 'low ink' message?>> > > No, but most ink jets show the low ink pad counter as a problem with the > ink cart. > > The ink pad is an absorbent pad under the head. When an ink jet parks the > head, it sits on the pad and the pad absorbs the excess ink. > > Since the amount of ink cannot be easily measured, the counter is a "best > guess" of when the pad is about to become full. > > You usually can reset the counter easily enough, but you run the risk of > finding ink all over your desk at some point. Most are on the conservative > side, so it's not a big risk, but it can happen. > > Search the net for the reset procedure. If you can't find it, I'd toss > the printer. Their cheap enough. By the time you locate the part, do the > replacement, etc. your are probably well over the cost of a new printer. > > Plus, usually by the time you hit an ink pad full error, the printer is > fairly old and outdated anyway. > > Jim. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Monday, May 29, 2006 8:05 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] [Fwd: [dba-Tech] Printer Tank Counter] > > Yeah. Might have to. That low ink message is annoying. You think the > 'waste ink pad counter' is the same as the 'low ink' message? > > Rocky > > > MartyConnelly wrote: > >> You may have to spend $10.00 >> To reset waste ink pads counters you have to use iP1600 Service Tool >> http://www.2manuals.com/product_info.php?products_id=680 >> >> >> Rocky Smolin - Beach Access Software wrote: >> >> >> >>> I saw that procedure for the 1500. Apparently they 'fixed' it for the >>> 1600. So it don't work no more. :-( >>> >>> I'll see what the fora have to say. >>> >>> Thanks and regards, >>> >>> Rocky >>> >>> >>> MartyConnelly wrote: >>> >>> >>> >>> >>>> Almost all Canons are resettable using a series of buttons presses.. >>>> or search the forums here >>>> http://www.nifty-stuff.com/forum/viewforum.php?id=4 >>>> >>>> >>>> I found this on this thread: There is more here >>>> >>>> http://www.fixyourownprinter.com/forums/inkjet/15284 >>>> >>>> >>>> Canon PIXMA iP1500 >>>> Waste Ink Counter Reset. Manual for Service mode >>>> >>>> 1. Turn off the printer. And disconnect the printer cable. >>>> 2. Press and hold the POWER button, turn on the printer. >>>> 3. The indicator (L.E.D.) should be green. >>>> 4. Press and release the RESUME button , the indicator (L.E.D.) >>>> should be orange. >>>> 5. Press and release the RESUME button again, the indicator >>>> (L.E.D.) should be green >>>> 6. Release both buttons >>>> >>>> >>>> >>>> Rocky Smolin - Beach Access Software wrote: >>>> >>>> >>>> >>>> >>>> >>>> >>>>> Dear List: >>>>> >>>>> Didn't get any response to this on tech. Maybe someone here knows the >>>>> answer. >>>>> >>>>> MTIA >>>>> >>>>> Rocky >>>>> >>>>> >>>>> -------- Original Message -------- >>>>> Subject: [dba-Tech] Printer Tank Counter >>>>> Date: Fri, 26 May 2006 09:06:54 -0700 >>>>> From: Rocky Smolin - Beach Access Software >>>>> Reply-To: Discussion of Hardware and Software issues >>>>> >>>>> To: dba-tech >>>>> >>>>> >>>>> >>>>> Dear List: >>>>> >>>>> I got a couple of Canon PIXMA iP1600s free with the purchase of a >>>>> > couple > >>>>> of 19 inch flat screen monitors at Fry's. >>>>> >>>>> Of course, the low ink warning comes up when the carts are still about >>>>> 1/3 full but that's the scam. Give away the razor, sell the blade. >>>>> >>>>> Anyway, I refilled the cartridges but the warning still comes up every >>>>> time I print something. Apparently these printers are "chipped" with >>>>> some kind of bogus counter rather than actually sensing the ink level. >>>>> >>>>> In any event I combed the net looking for info on resetting this >>>>> > counter > >>>>> (without actually having to spend $40-50 on new carts which is what the >>>>> > > >>>>> printer retails for anyway). >>>>> >>>>> Does anyone know how or even if this counter can be reset so the low >>>>> > ink > >>>>> nag screen doesn't pop up every time I print something. >>>>> >>>>> MTIA, >>>>> >>>>> Rocky >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> > > -- Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From cfoust at infostatsystems.com Tue May 30 10:33:12 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 30 May 2006 08:33:12 -0700 Subject: [AccessD] Toolbar staying put on one line In-Reply-To: <06a901c681a3$fc05d1d0$6502a8c0@ScuzzPaq> Message-ID: Not much to post since I could never convince the powers that be to let me use a class. We typically create a series of menu bars for things like the main screen and of course for reports. We distribute runtimes and can't use the built in form property to show a toolbar, so it has to be done in code. We use these as required from a standard module: Function ToolBarsOff() As Boolean ' Turns Built In Tool Bars Off On Error Resume Next Application.SetOption "Built-In ToolBars Available", False ToolBarsOff = True End Function Sub ToolBarsOn() ' Turns the Built In Tool Bars On On Error Resume Next Application.SetOption "Built-In ToolBars Available", True End Sub Each object that requires a menu/toolbar has code in its Open or Activate event: DoCmd.ShowToolbar "RIMBaseMain", acToolbarYes DoCmd.ShowToolbar "RIMBaseMenu", acToolbarNo And we reverse that in the close event: DoCmd.ShowToolbar "RIMBaseMain", acToolbarNo DoCmd.ShowToolbar "RIMBaseMenu", acToolbarNo If it happens to be the main menu form that is being closed (which also closed the application), we call ToolBarsOn to make sure we leave a full version of Access in the condition we found it. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Saturday, May 27, 2006 8:41 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Toolbar staying put on one line I'd appreciate anything you can post. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Actually, that's our main solution. We have a default menubar with limited choices and we show and hide custom menubars/toolbars depending on the form or report being displayed. It isn't foolproof, but it's the closest we could come. -- 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 May 30 16:12:55 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 31 May 2006 09:12:55 +1200 Subject: [AccessD] Dot Net 2.0 - Clicking into Text Boxes Message-ID: <7.0.1.0.0.20060531091216.01a59768@dalyn.co.nz> I have a text box on my web page. When using a mouse, users can only go into the box when they click on text already entered. If they click in part of the box that doesn't have any text then the cursor doesn't move to the box. Also, if they delete everything in the box then the only way they can get back to the box is to click on the associated label (which also works if some text is in the field) This is confusing for the users. Is it possible to make a change so that clicking anywhere in a text box will move the cursor into the box? Regards David Emerson Dalyn Software Ltd New Zealand From donaread at ihug.co.nz Tue May 30 18:22:45 2006 From: donaread at ihug.co.nz (Don Read) Date: Wed, 31 May 2006 11:22:45 +1200 Subject: [AccessD] re printer tank counter Message-ID: <447CD3C5.5000707@ihug.co.nz> Had similar with an HP The level is a calculated value, rather than a sensor. The cartridge has an identifier. If all this is on board the printer, who knows? Try taking the cartridge out, and unplug printer for 30 min's say. If that doesn't work, try reinstalling the Printer. Don From bheygood at abestsystems.com Tue May 30 19:38:20 2006 From: bheygood at abestsystems.com (Bob Heygood) Date: Tue, 30 May 2006 17:38:20 -0700 Subject: [AccessD] ldb In-Reply-To: <447CD3C5.5000707@ihug.co.nz> Message-ID: Hello List, When advising a client about trying to run his dB from a CD, I had a thot. Where does Access place the .ldb when running a read only .mdb? Anyone have an idea? best, bob heygood From JHewson at karta.com Tue May 30 19:52:19 2006 From: JHewson at karta.com (Jim Hewson) Date: Tue, 30 May 2006 19:52:19 -0500 Subject: [AccessD] ldb References: Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C0285A041@karta-exc-int.Karta.com> The lbd is located in the same directory as the mdb. Therefore, unless the CD is a CDRW it won't work. Have the client copy the mdb to the hard drive and then run it. Most of the time when the mdb is copied from a read-only CD, it's also read-only. If that is the intent (that is, keep it read-only) then nothing needs to be done. If you want the mdb to be read-write then looking at the properties of file will reveal the read-only checkbox is checked. Uncheck the it and you're good. HTH Jim ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Bob Heygood Sent: Tue 5/30/2006 7:38 PM To: Access Developers discussion and problem solving Subject: [AccessD] ldb Hello List, When advising a client about trying to run his dB from a CD, I had a thot. Where does Access place the .ldb when running a read only .mdb? Anyone have an idea? best, bob heygood -- 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 May 30 21:25:50 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 31 May 2006 12:25:50 +1000 Subject: [AccessD] ldb In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C0285A041@karta-exc-int.Karta.com> Message-ID: <447D8B4E.2027.85BED0F6@stuart.lexacorp.com.pg> It will work - as long as you only want to view the content. When you open an Access .mdb on a CD, Access can't write the .ldb file so you get a pop- up warning that the file is RO and that you won't be able to save changes. You don't need to have an LDB file to open an Access database, as long as you are only accessing data and not trying to modify it. On 30 May 2006 at 19:52, Jim Hewson wrote: > The lbd is located in the same directory as the mdb. > Therefore, unless the CD is a CDRW it won't work. > Have the client copy the mdb to the hard drive and then run it. > Most of the time when the mdb is copied from a read-only CD, it's also > read-only. If that is the intent (that is, keep it read-only) then > nothing needs to be done. If you want the mdb to be read-write then > looking at the properties of file will reveal the read-only checkbox > is checked. Uncheck the it and you're good. HTH Jim > > ________________________________ > > From: accessd-bounces at databaseadvisors.com on behalf of Bob Heygood > Sent: Tue 5/30/2006 7:38 PM To: Access Developers discussion and > problem solving Subject: [AccessD] ldb > > > > Hello List, > When advising a client about trying to run his dB from a CD, I had a > thot. Where does Access place the .ldb when running a read only .mdb? > > Anyone have an idea? > > best, > > bob heygood > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > From accessd at shaw.ca Tue May 30 23:32:52 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 30 May 2006 21:32:52 -0700 Subject: [AccessD] Dot Net 2.0 - Clicking into Text Boxes In-Reply-To: <7.0.1.0.0.20060531091216.01a59768@dalyn.co.nz> Message-ID: <0J0400KAA4J4L8M1@l-daemon> Hi David: The following is air code but some similar code should work... have a real example but can not remember where it is at the moment: SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> ...
This is not specifically done through .Net but this would be the direct approach. This is by no means completed code but it should be a start. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Tuesday, May 30, 2006 2:13 PM To: accessd at databaseadvisors.com Subject: [AccessD] Dot Net 2.0 - Clicking into Text Boxes I have a text box on my web page. When using a mouse, users can only go into the box when they click on text already entered. If they click in part of the box that doesn't have any text then the cursor doesn't move to the box. Also, if they delete everything in the box then the only way they can get back to the box is to click on the associated label (which also works if some text is in the field) This is confusing for the users. Is it possible to make a change so that clicking anywhere in a text box will move the cursor into the box? Regards David Emerson Dalyn Software Ltd New Zealand -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed May 31 07:15:38 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 31 May 2006 08:15:38 -0400 Subject: [AccessD] VSS over internet??? Message-ID: <916187228923D311A6FE00A0CC3FAA30D35487@ADGSERVER> Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby From garykjos at gmail.com Wed May 31 08:05:32 2006 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 31 May 2006 08:05:32 -0500 Subject: [AccessD] ldb In-Reply-To: <447D8B4E.2027.85BED0F6@stuart.lexacorp.com.pg> References: <9C382E065F54AE48BC3AA7925DCBB01C0285A041@karta-exc-int.Karta.com> <447D8B4E.2027.85BED0F6@stuart.lexacorp.com.pg> Message-ID: And it's gotta be a single user at a time opening it too I think. GK On 5/30/06, Stuart McLachlan wrote: > It will work - as long as you only want to view the content. > > When you open an Access .mdb on a CD, Access can't write the .ldb file so you get a pop- > up warning that the file is RO and that you won't be able to save changes. You don't need to > have an LDB file to open an Access database, as long as you are only accessing data and > not trying to modify it. > > > > On 30 May 2006 at 19:52, Jim Hewson wrote: > > > The lbd is located in the same directory as the mdb. > > Therefore, unless the CD is a CDRW it won't work. > > Have the client copy the mdb to the hard drive and then run it. > > Most of the time when the mdb is copied from a read-only CD, it's also > > read-only. If that is the intent (that is, keep it read-only) then > > nothing needs to be done. If you want the mdb to be read-write then > > looking at the properties of file will reveal the read-only checkbox > > is checked. Uncheck the it and you're good. HTH Jim > > > > ________________________________ > > > > From: accessd-bounces at databaseadvisors.com on behalf of Bob Heygood > > Sent: Tue 5/30/2006 7:38 PM To: Access Developers discussion and > > problem solving Subject: [AccessD] ldb > > > > > > > > Hello List, > > When advising a client about trying to run his dB from a CD, I had a > > thot. Where does Access place the .ldb when running a read only .mdb? > > > > Anyone have an idea? > > > > best, > > > > bob heygood > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From artful at rogers.com Wed May 31 08:36:44 2006 From: artful at rogers.com (Arthur Fuller) Date: Wed, 31 May 2006 09:36:44 -0400 (EDT) Subject: [AccessD] VSS over internet??? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D35487@ADGSERVER> Message-ID: <20060531133644.56667.qmail@web88212.mail.re2.yahoo.com> SCC Bridge is a free download from gotdotnet. It's got issues but it's free. Source Off Site costs money but is way better. At the firm that I'm contracting with currently, we use it for everything. I think that the physical server is in Chicago, but people all over the world use it. In our case, there's a VPN token, but once in you're in and it's amazingly fast. Bobby Heid wrote: Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed May 31 09:05:02 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 31 May 2006 10:05:02 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: VSS over internet??? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DC1A4A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35488@ADGSERVER> Thanks Arthur. I saw the Source Off Site. I just don't think my boss would go for that. I'll look at the SCC Bridge. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, May 31, 2006 9:37 AM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] VSS over internet??? Importance: Low SCC Bridge is a free download from gotdotnet. It's got issues but it's free. Source Off Site costs money but is way better. At the firm that I'm contracting with currently, we use it for everything. I think that the physical server is in Chicago, but people all over the world use it. In our case, there's a VPN token, but once in you're in and it's amazingly fast. Bobby Heid wrote: Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby From bheid at appdevgrp.com Wed May 31 09:10:02 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 31 May 2006 10:10:02 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: VSS over internet??? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D35488@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35489@ADGSERVER> Arthur, do you know if either of the these products work with Access XP as VSS does? That is, can you check out forms, reports, etc? Thanks, Bobby -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Wednesday, May 31, 2006 10:05 AM To: 'Access Developers discussion and problem solving' Subject: RE: [SPAM SUSPECT] Re: [AccessD] VSS over internet??? Thanks Arthur. I saw the Source Off Site. I just don't think my boss would go for that. I'll look at the SCC Bridge. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, May 31, 2006 9:37 AM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] VSS over internet??? Importance: Low SCC Bridge is a free download from gotdotnet. It's got issues but it's free. Source Off Site costs money but is way better. At the firm that I'm contracting with currently, we use it for everything. I think that the physical server is in Chicago, but people all over the world use it. In our case, there's a VPN token, but once in you're in and it's amazingly fast. Bobby Heid wrote: Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby From paul.baumann at rtctech.com Wed May 31 09:14:51 2006 From: paul.baumann at rtctech.com (Paul Baumann) Date: Wed, 31 May 2006 09:14:51 -0500 Subject: [AccessD] Problem between Access 2002 and 2003 Message-ID: <003f01c684bc$952d2640$6465a8c0@scrptrkr.local> I have and Access application that was originally written in Access 97 and is now operating in Access 2000 format. It is divided into front end and back end components and the problem I am having is with the front end component. I have been modifying this database for some time now using Access 2002 for development yet keeping the 2000 format for compatibility issues. The problem occurs when I try to open the program in Access 2003 (Separate machine). If I try to open the mdb it crashes access (without any explanation of course). If I open an mde in 2000 format it works fine. I tried to isolate what was causing it by just copying components into a new db piece by piece and managed to get it all up and working in 2003 but then when I then tried to open it in 2002 it crashed 2002. It seems that they just cannot play nice together. Any advice on what the cause could be would be greatly appreciated! Paul O. Baumann RTC Technologies, Inc. Email: paulb at rtctech.com From cfoust at infostatsystems.com Wed May 31 10:17:47 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 31 May 2006 08:17:47 -0700 Subject: [AccessD] VSS over internet??? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D35487@ADGSERVER> Message-ID: Does it have to be over the internet? Do you have a laptop? You could connect it to your office network, create a database from VSS, check out the items you want to work on, and then disconnect and take the machine home. You can work on them, reconnect the next day, checkin and cross you fingers and pray. ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, May 31, 2006 5:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS over internet??? Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Wed May 31 10:35:12 2006 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 31 May 2006 11:35:12 -0400 Subject: [AccessD] ldb In-Reply-To: <447D8B4E.2027.85BED0F6@stuart.lexacorp.com.pg> Message-ID: Stuart, Actually, that's not quite right. If Access/JET can't create an .LDB file, the database is placed in exclusive mode. The read-only is a separate issue. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 30, 2006 10:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ldb It will work - as long as you only want to view the content. When you open an Access .mdb on a CD, Access can't write the .ldb file so you get a pop- up warning that the file is RO and that you won't be able to save changes. You don't need to have an LDB file to open an Access database, as long as you are only accessing data and not trying to modify it. On 30 May 2006 at 19:52, Jim Hewson wrote: > The lbd is located in the same directory as the mdb. > Therefore, unless the CD is a CDRW it won't work. > Have the client copy the mdb to the hard drive and then run it. > Most of the time when the mdb is copied from a read-only CD, it's also > read-only. If that is the intent (that is, keep it read-only) then > nothing needs to be done. If you want the mdb to be read-write then > looking at the properties of file will reveal the read-only checkbox > is checked. Uncheck the it and you're good. HTH Jim > > ________________________________ > > From: accessd-bounces at databaseadvisors.com on behalf of Bob Heygood > Sent: Tue 5/30/2006 7:38 PM To: Access Developers discussion and > problem solving Subject: [AccessD] ldb > > > > Hello List, > When advising a client about trying to run his dB from a CD, I had a > thot. Where does Access place the .ldb when running a read only .mdb? > > Anyone have an idea? > > best, > > bob heygood > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed May 31 10:46:41 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 31 May 2006 11:46:41 -0400 Subject: [AccessD] [SPAM SUSPECT] Re: VSS over internet??? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DC1A73@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3548A@ADGSERVER> Hi Charlotte, No, I do not have a laptop. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, May 31, 2006 11:18 AM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] VSS over internet??? Importance: Low Does it have to be over the internet? Do you have a laptop? You could connect it to your office network, create a database from VSS, check out the items you want to work on, and then disconnect and take the machine home. You can work on them, reconnect the next day, checkin and cross you fingers and pray. ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, May 31, 2006 5:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS over internet??? Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby From paul.hartland at fsmail.net Wed May 31 10:50:05 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 31 May 2006 17:50:05 +0200 (CEST) Subject: [AccessD] =?utf-8?b?W1NQQU0gU1VTUEVDVF0gwqBSZTogwqBWU1Mgb3ZlciBp?= =?utf-8?q?nternet=3F=3F=3F?= Message-ID: <28425192.1149090605134.JavaMail.www@wwinf3104.me-wanadoo.net> Don't know if this has been covered but couldn't you leave your work machine on then go into it via Remote Desktop....I use this whenever I need to work from home at the weekend as my machine never gets switched off. Message Received: May 31 2006, 04:47 PM From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Cc: Subject: Re: [AccessD] [SPAM SUSPECT] Re: VSS over internet??? Hi Charlotte, No, I do not have a laptop. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, May 31, 2006 11:18 AM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] VSS over internet??? Importance: Low Does it have to be over the internet? Do you have a laptop? You could connect it to your office network, create a database from VSS, check out the items you want to work on, and then disconnect and take the machine home. You can work on them, reconnect the next day, checkin and cross you fingers and pray. ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, May 31, 2006 5:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS over internet??? Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Wed May 31 10:56:13 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Wed, 31 May 2006 10:56:13 -0500 Subject: [AccessD] VSS over internet??? Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8799@cpixchng-1.cpiqpc.net> Bobby, Have you looked at www.logmein.com? Free for the standard version which doesn't allow you to print to the remote and do file transfers but it allows you to take control of your work computer from any computer that has an internet connection. Switch it to full screen and it's just like you're sitting in front of the office computer. You'll want to be sure to clear this with your network admin(s) since they may have to allow the connection through the network firewall. HTH, Rusty -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Wednesday, May 31, 2006 7:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS over internet??? Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby -- 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 Gustav at cactus.dk Wed May 31 10:48:22 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 31 May 2006 17:48:22 +0200 Subject: [AccessD] ldb Message-ID: Hi Bob and Gary On the contrary. To write-protect the mdb is a proven way to safely make a mdb shareable. /gustav >>> garykjos at gmail.com 31-05-2006 15:05:32 >>> And it's gotta be a single user at a time opening it too I think. GK On 5/30/06, Stuart McLachlan wrote: > It will work - as long as you only want to view the content. > > When you open an Access .mdb on a CD, Access can't write the .ldb file so you get a pop- > up warning that the file is RO and that you won't be able to save changes. You don't need to > have an LDB file to open an Access database, as long as you are only accessing data and > not trying to modify it. > > > > On 30 May 2006 at 19:52, Jim Hewson wrote: > > > The lbd is located in the same directory as the mdb. > > Therefore, unless the CD is a CDRW it won't work. > > Have the client copy the mdb to the hard drive and then run it. > > Most of the time when the mdb is copied from a read-only CD, it's also > > read-only. If that is the intent (that is, keep it read-only) then > > nothing needs to be done. If you want the mdb to be read-write then > > looking at the properties of file will reveal the read-only checkbox > > is checked. Uncheck the it and you're good. HTH Jim > > > > ________________________________ > > > > From: accessd-bounces at databaseadvisors.com on behalf of Bob Heygood > > Sent: Tue 5/30/2006 7:38 PM To: Access Developers discussion and > > problem solving Subject: [AccessD] ldb > > > > > > > > Hello List, > > When advising a client about trying to run his dB from a CD, I had a > > thot. Where does Access place the .ldb when running a read only .mdb? > > > > Anyone have an idea? > > > > best, > > > > bob heygood From bheid at appdevgrp.com Wed May 31 11:13:09 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 31 May 2006 12:13:09 -0400 Subject: [AccessD] VSS over internet??? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30DC1A87@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D3548B@ADGSERVER> No, no one has mentioned that. Basically, that allows me to remotely control my work machine, correct? I think that would be too slow to try to develop with. Although I have not tried it. I can access my machine via TightVNC over Hamachi. I don't know what happened to the subject line on your email, so I reset it. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Wednesday, May 31, 2006 11:50 AM To: Access Developers discussion and problem solving Subject: W1NQQU0gU1VTUEVDVF0gUmU6IFtBY2Nlc3NEXQ==W1NQQU0gU1VTUEVDVF0gwqBSZTogwqBWU1Mg b3ZlciBpnternet??? Importance: Low Don't know if this has been covered but couldn't you leave your work machine on then go into it via Remote Desktop....I use this whenever I need to work from home at the weekend as my machine never gets switched off. Message Received: May 31 2006, 04:47 PM From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Cc: Subject: Re: [AccessD] [SPAM SUSPECT] Re: VSS over internet??? Hi Charlotte, No, I do not have a laptop. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, May 31, 2006 11:18 AM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] VSS over internet??? Importance: Low Does it have to be over the internet? Do you have a laptop? You could connect it to your office network, create a database from VSS, check out the items you want to work on, and then disconnect and take the machine home. You can work on them, reconnect the next day, checkin and cross you fingers and pray. ;o> Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, May 31, 2006 5:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS over internet??? Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby From bheygood at abestsystems.com Wed May 31 11:31:13 2006 From: bheygood at abestsystems.com (Bob Heygood) Date: Wed, 31 May 2006 09:31:13 -0700 Subject: [AccessD] ldb In-Reply-To: Message-ID: Kind Responders, Yeah, I tested and as far as I can see no .ldb is being created. I just get a warning that we are in "Read Only" mode. Thot maybe Access/Windows was creating one on the "fly" as I am using a drive capable of burning files. This is a curiosity as I always found an .ldb when opening an .mdb and actually have had issues where I did not have rights to create one. thx, bob heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Wednesday, May 31, 2006 8:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ldb Stuart, Actually, that's not quite right. If Access/JET can't create an .LDB file, the database is placed in exclusive mode. The read-only is a separate issue. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, May 30, 2006 10:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ldb It will work - as long as you only want to view the content. When you open an Access .mdb on a CD, Access can't write the .ldb file so you get a pop- up warning that the file is RO and that you won't be able to save changes. You don't need to have an LDB file to open an Access database, as long as you are only accessing data and not trying to modify it. On 30 May 2006 at 19:52, Jim Hewson wrote: > The lbd is located in the same directory as the mdb. > Therefore, unless the CD is a CDRW it won't work. > Have the client copy the mdb to the hard drive and then run it. > Most of the time when the mdb is copied from a read-only CD, it's also > read-only. If that is the intent (that is, keep it read-only) then > nothing needs to be done. If you want the mdb to be read-write then > looking at the properties of file will reveal the read-only checkbox > is checked. Uncheck the it and you're good. HTH Jim > > ________________________________ > > From: accessd-bounces at databaseadvisors.com on behalf of Bob Heygood > Sent: Tue 5/30/2006 7:38 PM To: Access Developers discussion and > problem solving Subject: [AccessD] ldb > > > > Hello List, > When advising a client about trying to run his dB from a CD, I had a > thot. Where does Access place the .ldb when running a read only .mdb? > > Anyone have an idea? > > best, > > bob heygood > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed May 31 13:50:38 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 31 May 2006 11:50:38 -0700 Subject: [AccessD] VSS over internet??? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30D35487@ADGSERVER> Message-ID: <0J0500HH888OHX91@l-daemon> Hi Bobby: You can use Subversion (http://subversion.tigris.org/). It does not have all the functionality as VSS but it's free (but for an appropriate donation), runs securely across the web, on any port you want, on any platform, without any extra support software. It is easy to set up and use. We use it here and many of our .Net contemporaries use it instead of VSS (which has/had some problems) or Team Server which is too big, too complex and too expensive for most companies. If you are set using VSS across the web check this site out: http://www.sourceremoting.com/ HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Wednesday, May 31, 2006 5:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS over internet??? Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed May 31 13:55:50 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 31 May 2006 11:55:50 -0700 Subject: [AccessD] VSS over internet??? In-Reply-To: <20060531133644.56667.qmail@web88212.mail.re2.yahoo.com> Message-ID: <0J0500HW48HCHX91@l-daemon> Hi Arthur: SCCBridge (http://www.nesterovsky-bros.com/html/css2/SCCBridge.htm) looks really interesting. Have you done much work with the product? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, May 31, 2006 6:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VSS over internet??? SCC Bridge is a free download from gotdotnet. It's got issues but it's free. Source Off Site costs money but is way better. At the firm that I'm contracting with currently, we use it for everything. I think that the physical server is in Chicago, but people all over the world use it. In our case, there's a VPN token, but once in you're in and it's amazingly fast. Bobby Heid wrote: Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed May 31 14:25:35 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 31 May 2006 12:25:35 -0700 Subject: [AccessD] VSS over internet??? In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8799@cpixchng-1.cpiqpc.net> Message-ID: <0J0500H3N9UXHXC1@l-daemon> Hi All: I have been setting all my remote sites up with Hamachi and UltraVNC. It is not that it is absolutely secure, which it is, but that it simply does not matter where the host and remote computer are or where they have been moved to, or what router configuration or network environment they are in, they always make easy contact. The process of setting them up is almost too simple. I just love this configuration and it has resolved so many problem sites. If you need any help, not that you should; just contact me off line. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Wednesday, May 31, 2006 8:56 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] VSS over internet??? Bobby, Have you looked at www.logmein.com? Free for the standard version which doesn't allow you to print to the remote and do file transfers but it allows you to take control of your work computer from any computer that has an internet connection. Switch it to full screen and it's just like you're sitting in front of the office computer. You'll want to be sure to clear this with your network admin(s) since they may have to allow the connection through the network firewall. HTH, Rusty -----Original Message----- From: Bobby Heid [mailto:bheid at appdevgrp.com] Sent: Wednesday, May 31, 2006 7:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] VSS over internet??? Anyone done this? If so how? Could I do it over Hamachi? I have a chance to work one day a week at home (I know, not much, but it's a start) if I can figure out how to do this. And do it cheaply! LOL. Thanks, Bobby -- 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. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Wed May 31 14:57:32 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 31 May 2006 20:57:32 +0100 Subject: [AccessD] OT SQL Server References: <0J0500H3N9UXHXC1@l-daemon> Message-ID: Got this email and its valid. Give it a go. As a valued member of the SQL Server Community, you have been authorized to receive a FREE digital subscription to SQL Server Magazine -- up to a $49.95* value. This is a one-time only exclusive offer and will not be repeated. With your subscription, you will be introduced to the #1 guide to building world-class applications and every month you will receive: --Expert advice from the most respected industry gurus --Up-to-the-minute information you can't be without --Comprehensive SQL Server 2005 coverage of high availability features, management tools, new CLR features, reporting services and other hot industry topics --Thousands of solutions to help you get more done in less time --Quick tips and practical "how-to" content --Comparative, independent product review --A community to connect and interact with your peers A very limited supply of these complimentary subscriptions are available (first come, first serve), so sign up for your free subscription now: http://lists.sqlmag.com/t?ctl=2CE5B:8DF71 *Sorry, this special offer is for new subscribers only! U.S. rate. Valid postal and email addresses are required to qualify. First issue will arrive in 4 to 6 weeks. From accessd at shaw.ca Wed May 31 17:40:30 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 31 May 2006 15:40:30 -0700 Subject: [AccessD] OT SQL Server In-Reply-To: Message-ID: <0J05006C6IVRH050@l-daemon> Hi Martin: Thank you; I have just completed my order. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, May 31, 2006 12:58 PM To: Access Developers discussion and problem solving Subject: [AccessD] OT SQL Server Got this email and its valid. Give it a go. As a valued member of the SQL Server Community, you have been authorized to receive a FREE digital subscription to SQL Server Magazine -- up to a $49.95* value. This is a one-time only exclusive offer and will not be repeated. With your subscription, you will be introduced to the #1 guide to building world-class applications and every month you will receive: --Expert advice from the most respected industry gurus --Up-to-the-minute information you can't be without --Comprehensive SQL Server 2005 coverage of high availability features, management tools, new CLR features, reporting services and other hot industry topics --Thousands of solutions to help you get more done in less time --Quick tips and practical "how-to" content --Comparative, independent product review --A community to connect and interact with your peers A very limited supply of these complimentary subscriptions are available (first come, first serve), so sign up for your free subscription now: http://lists.sqlmag.com/t?ctl=2CE5B:8DF71 *Sorry, this special offer is for new subscribers only! U.S. rate. Valid postal and email addresses are required to qualify. First issue will arrive in 4 to 6 weeks.