From jwcolby at colbyconsulting.com Sun Oct 1 00:19:00 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 1 Oct 2006 01:19:00 -0400 Subject: [AccessD] uController progress Message-ID: <000501c6e519$1b7bd040$647aa8c0@m6805> Well, it's been a huge weekend. Thursday and Friday I received the Atmel Dragon debug board and all of the parts I ordered. Using the breadboard and an ATMega32 uController I build up a barebones controller. I got the AVR Studio downloaded and the freeware WinAVR 'C' language installed and working through AVR Studio. I compiled and ran an assembler program and watched the pins toggle through the emulator. I then found and created a project for a little 'C' program named "Blinky", ran it and watched it run in the emulator - toggling output pins. I got the Dragon debug board hooked up and talking through the USB port. I then built a JTAG 10 pin cable to hook up the controller circuit to the Dragon and thus to the AVR Studio. I turned on all of the hardware and the AVR Studio can read the internals of the ATMega32 uController on the breadboard. I then compiled the "Blinky" program to a hex file and apparently successfully uploaded the hex file to the uController. It wouldn't run, at least I can't tell that it is. I had set up LEDs on Port A and Blinky used Port D. So I changed the 'C' program (Blinky) to use Port A. Still no go. Sigh. It's 01:15 now and time to get some sleep, see what occurs to me in the morning. I suppose I will go back and throw in LEDs on the Port D pins and go back to the original Blinky to see if that works. If not... Hmm... not sure what. I'm happy though, I have come a long way in a few short days. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sun Oct 1 00:40:15 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 1 Oct 2006 01:40:15 -0400 Subject: [AccessD] Blinky Lives! Message-ID: <001301c6e51c$138e0f80$647aa8c0@m6805> Update, I just got the little 'C' program (Blinky) functioning, talking to the leds on Port A. This is cool! Now I can go to bed! ;-) John W. Colby Colby Consulting www.ColbyConsulting.com From wdhindman at dejpolsystems.com Sun Oct 1 01:07:05 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 1 Oct 2006 02:07:05 -0400 Subject: [AccessD] Blinky Lives! References: <001301c6e51c$138e0f80$647aa8c0@m6805> Message-ID: <007f01c6e51f$d2354090$153ce944@50NM721> ...a man and his toys :) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" ; "'Discussion of Hardware and Software issues'" Sent: Sunday, October 01, 2006 1:40 AM Subject: [AccessD] Blinky Lives! > Update, I just got the little 'C' program (Blinky) functioning, talking to > the leds on Port A. This is cool! > > Now I can go to bed! > > ;-) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -------------------------------------------------------------------------------- > -- > 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 Sun Oct 1 04:01:31 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sun, 1 Oct 2006 11:01:31 +0200 Subject: [AccessD] Access 97 nasty behaviour of subform References: , <005d01c6e4ba$71fec5d0$1800a8c0@s1800> <451F891A.30079.12755964@stuart.lexacorp.com.pg> Message-ID: <000601c6e538$30bdc430$1800a8c0@s1800> thank you, Stuart, seems you are right. must be the Excel table not closing or such. and I think it is not editing the subform. Sometimes a long time delay between closing and opening the mainform agin helps, Now I just found that in case of the error closing and then opening the form fixes it. so this works: Open form run code close form open form close form open form run code and so on I have made sure that all recordsets are set to Nothing, I have set the dirty property of the subform as well as the main form false, I have set the recordsource of the subform to "" in the OnOpen and to the Excel table in the OnLoad. nothing helped. Lembit ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Sunday, October 01, 2006 1:23 AM Subject: Re: [AccessD] Access 97 nasty behaviour of subform > Sounds as though the first instance of the subform gets a lock on the > Excel > table which isn't closed when the main form is closed. > Opening the main form creates a new instance of the subform which tries to > get a second lock and so can only get a RO connection. > > Editing the sub form must be completely destroying the first instance thus > breaking the lock and allowing the next instance to establish a RW > connection > > Not sure what to suggest on how to overcome it, but hopefully this gives > you an idea of where to look. > > -- > Stuart > > On 30 Sep 2006 at 20:01, Lembit Soobik wrote: > >> good evening everyone, >> I have a form with a subform, >> form is continuous and has 3 little subforms in the header. >> form is bound to a table. >> subforms are bund to tables (which are named spaces in an EXCEL >> worksheet. >> >> form has a button. when I click it, some code runs and copies and >> processes >> data from some other excel table to Access BE tables. >> >> works fine so far. >> >> at the end of the update I want to write to the one table on the excel >> sheet >> the project-number to indicate it has been processed. this works as many >> times as I click, but only UNTIL I close the main form and open it again. >> NOW it tells me error 3027 database or object is read-only. >> >> If I now close the main form >> open the subform and change something like allow updates, THen change it >> back to what it was and save it, THEN I can open the main form and it >> will >> happily run and update the exxel sheet as often as I like. >> >> close the main form, open it again ERROR 3027. >> cahnge something on subform, save, close, mainform works again for one >> opening. >> >> I have now put me.allowedits = tru in the subform onLoad event >> nochange >> I have in my code tried both: >> a) open the table and write to the table >> b) write to the control on the subform >> >> in both cases I get the effect that after closing the main form and >> reopening it, I get 3027 error. >> >> any idea what I'm missing? >> >> thank you >> Lembit >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Sun Oct 1 04:52:37 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 01 Oct 2006 19:52:37 +1000 Subject: [AccessD] Access 97 nasty behaviour of subform In-Reply-To: <000601c6e538$30bdc430$1800a8c0@s1800> References: , <000601c6e538$30bdc430$1800a8c0@s1800> Message-ID: <45201C85.10459.14B52DBE@stuart.lexacorp.com.pg> On 1 Oct 2006 at 11:01, Lembit Soobik wrote: > thank you, Stuart, > seems you are right. must be the Excel table not closing or such. > and I think it is not editing the subform. > Sometimes a long time delay between closing and opening the mainform agin > helps, Now I just found that in case of the error closing and then opening > the form fixes it. Is this running over a network? If so, it sounds like an "oplocks" problem. Try disabling Oportunistic Locking on the server. See http://support.microsoft.com/?kbid=296264 -- Stuart From lembit.dbamail at t-online.de Sun Oct 1 06:01:32 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sun, 1 Oct 2006 13:01:32 +0200 Subject: [AccessD] Access 97 nasty behaviour of subform References: , <000601c6e538$30bdc430$1800a8c0@s1800> <45201C85.10459.14B52DBE@stuart.lexacorp.com.pg> Message-ID: <000b01c6e548$f4979a60$1800a8c0@s1800> no, FE and BE and Excel file are on same directory even Lembit ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Sunday, October 01, 2006 11:52 AM Subject: Re: [AccessD] Access 97 nasty behaviour of subform > On 1 Oct 2006 at 11:01, Lembit Soobik wrote: > >> thank you, Stuart, >> seems you are right. must be the Excel table not closing or such. >> and I think it is not editing the subform. >> Sometimes a long time delay between closing and opening the mainform agin >> helps, Now I just found that in case of the error closing and then >> opening >> the form fixes it. > > Is this running over a network? > If so, it sounds like an "oplocks" problem. Try disabling Oportunistic > Locking on the server. See http://support.microsoft.com/?kbid=296264 > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Oct 1 08:04:05 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 1 Oct 2006 09:04:05 -0400 Subject: [AccessD] Blinky Lives! In-Reply-To: <007f01c6e51f$d2354090$153ce944@50NM721> Message-ID: <001f01c6e55a$13c25cc0$647aa8c0@m6805> LOL. Gotta have something to do just for fun. This will enable me to do the controllers for my son's Gator ride-on toy. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Sunday, October 01, 2006 2:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blinky Lives! ...a man and his toys :) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" ; "'Discussion of Hardware and Software issues'" Sent: Sunday, October 01, 2006 1:40 AM Subject: [AccessD] Blinky Lives! > Update, I just got the little 'C' program (Blinky) functioning, > talking to the leds on Port A. This is cool! > > Now I can go to bed! > > ;-) > > John W. Colby > Colby Consulting > 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 Sun Oct 1 10:00:41 2006 From: artful at rogers.com (artful at rogers.com) Date: Sun, 1 Oct 2006 08:00:41 -0700 (PDT) Subject: [AccessD] Blinky Lives! In-Reply-To: <001301c6e51c$138e0f80$647aa8c0@m6805> Message-ID: <20061001150041.13658.qmail@web88201.mail.re2.yahoo.com> I'm curious as to the original problem with Blinky and how you solved it. ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving ; Discussion of Hardware and Software issues Sent: Sunday, October 1, 2006 1:40:15 AM Subject: [AccessD] Blinky Lives! Update, I just got the little 'C' program (Blinky) functioning, talking to the leds on Port A. This is cool! Now I can go to bed! ;-) John W. Colby Colby Consulting 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 Sun Oct 1 10:15:07 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 1 Oct 2006 11:15:07 -0400 Subject: [AccessD] Blinky Lives! In-Reply-To: <20061001150041.13658.qmail@web88201.mail.re2.yahoo.com> Message-ID: <002001c6e56c$620dad50$647aa8c0@m6805> Well... There appear to be two places in the programming IDE where you specify the chip that you are working with and the frequency. Being new to this I am not sure exactly why there are two, but I suspect that one has to do with the IDE itself (telling the 'C' language) and the other has to do with the debug board that sits on the end of the USB port and talks to the target system, telling that what board it is talking to. Again I am not sure. However what I do know is that I was poking around and found another place where the chip was entirely different and the frequency was 80,000 when it should have been 8,000,000. Once I changed that it started working. At least that is what I think made the difference. There is just so much to learn with this stuff. I haven't used 'C' for a living since 1997 when I did the last controller project so you could say I'm a little rusty. Then there is the new IDE stuff. How to use the in-circuit programmer / emulator. What the processor pins do, how to use interrupts, counters, PWM, and eventually (a long way down the road) getting the controller talking RS232 to a terminal program on the PC. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, October 01, 2006 11:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blinky Lives! I'm curious as to the original problem with Blinky and how you solved it. ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving ; Discussion of Hardware and Software issues Sent: Sunday, October 1, 2006 1:40:15 AM Subject: [AccessD] Blinky Lives! Update, I just got the little 'C' program (Blinky) functioning, talking to the leds on Port A. This is cool! Now I can go to bed! ;-) John W. Colby Colby Consulting 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 lembit.dbamail at t-online.de Sun Oct 1 11:37:59 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sun, 1 Oct 2006 18:37:59 +0200 Subject: [AccessD] Access 97 nasty behaviour of subform References: , <000601c6e538$30bdc430$1800a8c0@s1800><45201C85.10459.14B52DBE@stuart.lexacorp.com.pg> <000b01c6e548$f4979a60$1800a8c0@s1800> Message-ID: <000801c6e577$f5370350$1800a8c0@s1800> I have just tried this: open the form, run the code, close the form now next time it should give the error close Access reboot the PC start Access open the form run the code __>> ERROR again so the status of whatever causes the error every other time must be saved Now I have tried to find out whether its the Access ot the Excel file that stores that. open form and run code - get error now I know next time it should run without error. close form close Access copy the excel file to a different place open Access open form and run code without error. close Access replace the Excel file with the previously saved one (which should be good) open Access, open form run code _ ERROR again so it seems to me this alternating error has nothing to do with the excel file there must be something in Access that cleans up each time the error occurs??? Lembit ----- Original Message ----- From: "Lembit Soobik" To: "Access Developers discussion and problem solving" Sent: Sunday, October 01, 2006 1:01 PM Subject: Re: [AccessD] Access 97 nasty behaviour of subform > no, FE and BE and Excel file are on same directory even > > Lembit > > ----- Original Message ----- > From: "Stuart McLachlan" > To: "Access Developers discussion and problem solving" > > Sent: Sunday, October 01, 2006 11:52 AM > Subject: Re: [AccessD] Access 97 nasty behaviour of subform > > >> On 1 Oct 2006 at 11:01, Lembit Soobik wrote: >> >>> thank you, Stuart, >>> seems you are right. must be the Excel table not closing or such. >>> and I think it is not editing the subform. >>> Sometimes a long time delay between closing and opening the mainform >>> agin >>> helps, Now I just found that in case of the error closing and then >>> opening >>> the form fixes it. >> >> Is this running over a network? >> If so, it sounds like an "oplocks" problem. Try disabling Oportunistic >> Locking on the server. See http://support.microsoft.com/?kbid=296264 >> >> >> -- >> Stuart >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sun Oct 1 14:51:10 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 01 Oct 2006 12:51:10 -0700 Subject: [AccessD] Mappoint - Virtual Earth - and Access Db In-Reply-To: References: Message-ID: <45201C2E.70102@shaw.ca> You can store pushpins in a table and then bring in through a javascript array with VEPushPin but the common way is to use a layer with an RSSGeo.xml file, this is a W3C standard. You can add and delete various layers. I have heard of people using 30,000 pushpins. You can then add text and images to the mouseclick or hover over the pushpin. Look through the forums here for more info http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=462045&SiteID=1 You can also do route maps by specifying place names or full street address province/state country and print out driving distance. Takes 10 seconds Push Pin
Route Map History
David Gray wrote: >Really cool Marty! Thanks! > >What else can you do? > >Do you know how to store pushpins in a table? > >David Gray >96 Springacre Rd >Thornlands QLD >Yahoo ID: flock_it_software > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Friday, 29 September 2006 12:34 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Mappoint - Virtual Earth - and Access Db > > >For those of you wanting to footle around with Access and MS Virtual Earth >Here is some sample code, it also dumps the html code to an html file By >clicking on map you display Lat/Long position of cursor > >Option Compare Database >Option Explicit > > >Function testVirtualEarthMap() >'------------------ >'display Virtual Earth at a fixed LatLong >' then click on map to display Lat/Long position of cursor 'see these for >info: 'http://dev.live.com/virtualearth/sdk/ >'http://www.ftponline.com/special/web20/pvarholasp/default.aspx > >Dim objExplorer As Object >Dim objDocument As Object >Dim strHTML As String > >Set objExplorer = CreateObject("InternetExplorer.Application") > >objExplorer.Navigate "about:blank" >objExplorer.Toolbar = 1 ' 0= off >objExplorer.StatusBar = 1 '0 =off >objExplorer.Width = 800 >objExplorer.Height = 870 >objExplorer.Left = 0 >objExplorer.Top = 0 >objExplorer.Visible = 1 > >Do While (objExplorer.Busy) >Loop > > >Set objDocument = objExplorer.Document >objDocument.Open >'create html string and dump to a test file > strHTML = "" > strHTML = strHTML & createhtml > >WriteFile "c:\gis\test.html", strHTML > >'objDocument.Writeln strHTML >objDocument.Write strHTML >objExplorer.Refresh ' ??This has to be done because of >http://local.live.com/veapi.ashx >'objDocument.Close 'stall here >Do While (objExplorer.Busy) >Loop >'MsgBox "finished" >'Set objExplorer = Nothing >'Set objDocument = Nothing > >End Function > >Private Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) >' Dump XML or html String to File for debugging > Dim fhFile As Integer > fhFile = FreeFile > ' Debug.Print "Length of string=" & Len(sContents) > Open sFileName For Output As #fhFile > Print #fhFile, sContents; > Close #fhFile > Debug.Print "Out File" & sFileName >End Sub > >Function createhtml() As String > >Dim strHTML As String > strHTML = "" > strHTML = strHTML & "Virtual Earth Map" > strHTML = strHTML & "content=""text/html; charset=utf-8"">" >'When your page has referenced the map control, set up the call to >display a default map by completing a LoadMap ( ) method call: strHTML = >strHTML & vbCrLf & " " ' >strHTML = strHTML & vbCrLf & "" > strHTML = strHTML & vbCrLf & "" >' strhtml = strhtml & vbCrLf & "// -->" >'Last, you display the map: > > strHTML = strHTML & vbCrLf & "" strHTML = strHTML >& vbCrLf & "
" > strHTML = strHTML & vbCrLf & " right or left click map for latitude >longitude position " > strHTML = strHTML & vbCrLf & "" > strHTML = strHTML & vbCrLf & "" >WriteFile "c:\gis\test.html", strHTML >createhtml = strHTML >End Function > > > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Sun Oct 1 15:25:07 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 1 Oct 2006 21:25:07 +0100 Subject: [AccessD] Access 2007 References: , <000601c6e538$30bdc430$1800a8c0@s1800> <45201C85.10459.14B52DBE@stuart.lexacorp.com.pg> Message-ID: Anyone who has Access 2007 and Outlook 2007 Would you mid running the Email Data Collection Wizard Once it has run could you check if you have an XML file located at Application Data\Microsoft\Access\AccessDCActionFile.xml May or may not be that path. Even if you dont find the file could you let me know. Thanks Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From DWUTKA at marlow.com Sun Oct 1 23:43:39 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Sun, 1 Oct 2006 23:43:39 -0500 Subject: [AccessD] Blinky Lives! Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDD1B@MARLOW_MAIN2.marlow.com> What separate the men and the boys are the price of their toys! ;) Drew -----Original Message----- From: William Hindman [mailto:wdhindman at dejpolsystems.com] Sent: Sunday, October 01, 2006 1:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blinky Lives! ...a man and his toys :) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" ; "'Discussion of Hardware and Software issues'" Sent: Sunday, October 01, 2006 1:40 AM Subject: [AccessD] Blinky Lives! > Update, I just got the little 'C' program (Blinky) functioning, talking to > the leds on Port A. This is cool! > > Now I can go to bed! > > ;-) > > John W. Colby > Colby Consulting > 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 dajomigo at tpg.com.au Mon Oct 2 01:54:47 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Mon, 02 Oct 2006 16:54:47 +1000 Subject: [AccessD] Updating a bound image using VBA In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D0116AA21@ddi-01.DDI.local> References: <59A61174B1F5B54B97FD4ADDE71E7D0116AA21@ddi-01.DDI.local> Message-ID: <7.0.1.0.2.20061002164651.02388be0@tpg.com.au> Marty, Jim, and Michael Sorry for the long delay in replying. Between teaching commitments and then being sick, I haven't had a chance till now to read and act upon your replies. Thank you for all your suggestions, I have finally fixed the problem by deciding not to embed the images but by linking them. This was of course after fixing up the error you pointed out, Michael. This appears to have at least three advantages over my original plan: * Adding the image to the record is now much faster for the user. * The code I was having trouble with, of course, is much simpler. * The form appears to work on all machines. I have found that not all machines will allow consistent adding and editing of OLE images. So, once again, sorry for the delay and thank you all for your help with this problem. David From lembit.dbamail at t-online.de Mon Oct 2 07:26:48 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Mon, 2 Oct 2006 14:26:48 +0200 Subject: [AccessD] Access 97 nasty behaviour of subform References: , <000601c6e538$30bdc430$1800a8c0@s1800><45201C85.10459.14B52DBE@stuart.lexacorp.com.pg><000b01c6e548$f4979a60$1800a8c0@s1800> <000801c6e577$f5370350$1800a8c0@s1800> Message-ID: <004e01c6e61e$0897c7d0$1800a8c0@s1800> ok, I found it: the code which I run has several parts, each one transfering data from a different named space of the Excel sheet to a table in Access. one part writes the project ID to the Excel sheet as sign that this sheet has been processed. during test I had moved this part to an earlier point in the code, and forgot to delete the part at the end. then I had renamed the field in Excel and in one part of the code. obviously it stumbled over this wrong fieldname and left the table open. thanks everyone for the help Lembit ----- Original Message ----- From: "Lembit Soobik" To: "Access Developers discussion and problem solving" Sent: Sunday, October 01, 2006 6:37 PM Subject: Re: [AccessD] Access 97 nasty behaviour of subform >I have just tried this: > open the form, run the code, close the form > now next time it should give the error > close Access > reboot the PC > start Access > open the form > run the code __>> ERROR again > > so the status of whatever causes the error every other time must be saved > > Now I have tried to find out whether its the Access ot the Excel file that > stores that. > > open form and run code - get error > now I know next time it should run without error. > close form > close Access > copy the excel file to a different place > open Access > open form and run code without error. > > close Access > replace the Excel file with the previously saved one (which should be > good) > > open Access, open form run code _ ERROR again > > so it seems to me this alternating error has nothing to do with the excel > file > > there must be something in Access that cleans up each time the error > occurs??? > > Lembit > > ----- Original Message ----- > From: "Lembit Soobik" > To: "Access Developers discussion and problem solving" > > Sent: Sunday, October 01, 2006 1:01 PM > Subject: Re: [AccessD] Access 97 nasty behaviour of subform > > >> no, FE and BE and Excel file are on same directory even >> >> Lembit >> >> ----- Original Message ----- >> From: "Stuart McLachlan" >> To: "Access Developers discussion and problem solving" >> >> Sent: Sunday, October 01, 2006 11:52 AM >> Subject: Re: [AccessD] Access 97 nasty behaviour of subform >> >> >>> On 1 Oct 2006 at 11:01, Lembit Soobik wrote: >>> >>>> thank you, Stuart, >>>> seems you are right. must be the Excel table not closing or such. >>>> and I think it is not editing the subform. >>>> Sometimes a long time delay between closing and opening the mainform >>>> agin >>>> helps, Now I just found that in case of the error closing and then >>>> opening >>>> the form fixes it. >>> >>> Is this running over a network? >>> If so, it sounds like an "oplocks" problem. Try disabling Oportunistic >>> Locking on the server. See http://support.microsoft.com/?kbid=296264 >>> >>> >>> -- >>> Stuart >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Mon Oct 2 12:38:59 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 2 Oct 2006 12:38:59 -0500 Subject: [AccessD] Control for Form Message-ID: What kind of a control etc can I put on a form to give a drop down of directories and files on the computer and enable selection of one? 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 bheid at appdevgrp.com Mon Oct 2 13:41:06 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 2 Oct 2006 14:41:06 -0400 Subject: [AccessD] VSS - Build from source error question... SOLVED In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E4394B@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35943@ADGSERVER> Ok, I finally figured it out. I created a blank DB with just a few items in it. Added it to SS, and then built from source. It worked fine. SO I then took an older copy of my app, created a new SS project from it and then tried to build from source. Well, it failed on several objects just like it did in the original post. BUT! It also told me that it wrote some error messages out to a text file. SO I open up the file and there it is, something to the effect that I was trying to import an item that was created in a later version. I had forgotten that an Access XP install defaults to the 2000 format. And since you have to be in 2002 format to create an MDE, many of the items were in 2002 format. It's weird that it did not give me those error message files earlier. Thanks to anyone that tried to help with this. Bobby From wdhindman at dejpolsystems.com Mon Oct 2 13:59:29 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 2 Oct 2006 14:59:29 -0400 Subject: [AccessD] Control for Form References: Message-ID: <008501c6e654$e3cd9420$153ce944@50NM721> ...if you have the Office 10/11 object model installed, the File Dialog Object is imnsho, by far the most useful for this purpose ...if not the common dialog or file system objects will work with call backs but with limitations. www.helenfeddema.com has a couple of detailed articles on their use and he pros and cons of both ...along with sample dbs. ...hth William Hindman ----- Original Message ----- From: "Kaup, Chester" To: "Access Developers discussion and problem solving" Sent: Monday, October 02, 2006 1:38 PM Subject: [AccessD] Control for Form > What kind of a control etc can I put on a form to give a drop down of > directories and files on the computer and enable selection of one? > > > > 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 Chester_Kaup at kindermorgan.com Mon Oct 2 14:29:02 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 2 Oct 2006 14:29:02 -0500 Subject: [AccessD] Control for Form In-Reply-To: <008501c6e654$e3cd9420$153ce944@50NM721> Message-ID: I am going to express my ignorance here. How do I know if I have the Office 10/11 object model installed and if so how do I use it? Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, October 02, 2006 1:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Control for Form ...if you have the Office 10/11 object model installed, the File Dialog Object is imnsho, by far the most useful for this purpose ...if not the common dialog or file system objects will work with call backs but with limitations. www.helenfeddema.com has a couple of detailed articles on their use and he pros and cons of both ...along with sample dbs. ...hth William Hindman ----- Original Message ----- From: "Kaup, Chester" To: "Access Developers discussion and problem solving" Sent: Monday, October 02, 2006 1:38 PM Subject: [AccessD] Control for Form > What kind of a control etc can I put on a form to give a drop down of > directories and files on the computer and enable selection of one? > > > > 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 wdhindman at dejpolsystems.com Mon Oct 2 15:09:30 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 2 Oct 2006 16:09:30 -0400 Subject: [AccessD] Control for Form References: Message-ID: <001401c6e65e$ac34bed0$153ce944@50NM721> ...we were all ignorant once ...some stay that way, others ask questions, eh. ...its in your references ...Microsoft Office 11 Object Library ...dl Helen's article and sample ...she walks you through it so easily that even I got it :) William Hindman ----- Original Message ----- From: "Kaup, Chester" To: "Access Developers discussion and problem solving" Sent: Monday, October 02, 2006 3:29 PM Subject: Re: [AccessD] Control for Form >I am going to express my ignorance here. How do I know if I have the > Office 10/11 object model installed and if so how do I use it? Thanks. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Monday, October 02, 2006 1:59 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Control for Form > > ...if you have the Office 10/11 object model installed, the File Dialog > Object is imnsho, by far the most useful for this purpose ...if not the > common dialog or file system objects will work with call backs but with > limitations. > > www.helenfeddema.com has a couple of detailed articles on their use and > he > pros and cons of both ...along with sample dbs. > > ...hth > > William Hindman > > ----- Original Message ----- > From: "Kaup, Chester" > To: "Access Developers discussion and problem solving" > > Sent: Monday, October 02, 2006 1:38 PM > Subject: [AccessD] Control for Form > > >> What kind of a control etc can I put on a form to give a drop down of >> directories and files on the computer and enable selection of one? >> >> >> >> 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 martyconnelly at shaw.ca Mon Oct 2 19:01:46 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 02 Oct 2006 17:01:46 -0700 Subject: [AccessD] Access 2007 In-Reply-To: References: <000601c6e538$30bdc430$1800a8c0@s1800> <45201C85.10459.14B52DBE@stuart.lexacorp.com.pg> Message-ID: <4521A86A.9080203@shaw.ca> Hmm I just found out the Office 2007 Beta 1 automagically installs Outlook 2007 I thought I only had 97 installed. Anyway I have the file AccessDCActionFile.xml under my admin user Documents & Settings directory It looks like it uses this data file to collect and mange email sent and recieved via External Data --> Manage Data Collection Messages When you return an HTML message response that is automatically added to Access it seems to change true from false to true in the xml file. -
C:\Access files\MartinReid\MartinTest.accdb true - true true 25 0 true true false 0 true
Microsoft Outlook security prevents HTML mail in many organizations. You likely won't ever get clientside validation for HTML forms as all popular email clients block script. This maybe why if you have lookup codes in say a Customers Form at the bottom of the HTML form You have this information added that you would have to add in code Information that helps users fill out the form. Select the field name to return to the data entry portion of the form. Customer: In the list below, select the number that corresponds to the value you want. 1. Alfreds Futterkiste 2. Ana Trujillo Emparedados y helados 3. Antonio Moreno Taquer?a Employee: In the list below, select the number that corresponds to the value you want. 1. Buchanan, Steven 2. Callahan, Laura 3. Davolio, Nancy Ship Via: In the list below, select the number that corresponds to the value you want. 1. Federal Shipping 2. Speedy Express 3. United Package Martin Reid wrote: >Anyone who has Access 2007 and Outlook 2007 > >Would you mid running the Email Data Collection Wizard >Once it has run could you check if you have an XML file located at > >Application Data\Microsoft\Access\AccessDCActionFile.xml > >May or may not be that path. Even if you dont find the file could you let me know. > >Thanks > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.407 / Virus Database: 268.12.11/460 - Release Date: 01/10/2006 > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Mon Oct 2 19:28:33 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 02 Oct 2006 17:28:33 -0700 Subject: [AccessD] Control for Form In-Reply-To: References: Message-ID: <4521AEB1.2020303@shaw.ca> Just set a reference to Micosoft Office 11.0 Object Library Just remember if Office not installed this won't work as license to dll is not transferable. Kaup, Chester wrote: >I am going to express my ignorance here. How do I know if I have the >Office 10/11 object model installed and if so how do I use it? Thanks. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >Hindman >Sent: Monday, October 02, 2006 1:59 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Control for Form > >...if you have the Office 10/11 object model installed, the File Dialog >Object is imnsho, by far the most useful for this purpose ...if not the >common dialog or file system objects will work with call backs but with >limitations. > >www.helenfeddema.com has a couple of detailed articles on their use and >he >pros and cons of both ...along with sample dbs. > >...hth > >William Hindman > >----- Original Message ----- >From: "Kaup, Chester" >To: "Access Developers discussion and problem solving" > >Sent: Monday, October 02, 2006 1:38 PM >Subject: [AccessD] Control for Form > > > > >>What kind of a control etc can I put on a form to give a drop down of >>directories and files on the computer and enable selection of one? >> >> >> >>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 >> >> >> > > > > > -- Marty Connelly Victoria, B.C. Canada From EdTesiny at oasas.state.ny.us Tue Oct 3 11:03:19 2006 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Tue, 3 Oct 2006 12:03:19 -0400 Subject: [AccessD] Access frontend/SQL Server backend Message-ID: Dear List, This is an elementary question as I know almost nothing about SQL Server. A colleague is developing a web-based ColdFusion application using SQL Server. I would like to access the data through an ODBC connection using Access as the frontend. I was able to get at the tables but the relationships between the tables were lost. Is there a way you can preserve the relationships or should I be trying to access the data by another means? MTIA Ed Edward P. Tesiny Assistant Director for Evaluation Bureau of Evaluation and Practice Improvement New York State OASAS 1450 Western Ave. Albany, New York 12203-3526 Phone: (518) 485-7189 Fax: (518) 485-5769 Email: EdTesiny at oasas.state.ny.us From Gustav at cactus.dk Tue Oct 3 12:09:42 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 03 Oct 2006 19:09:42 +0200 Subject: [AccessD] Access frontend/SQL Server backend Message-ID: Hi Ed The relations are not lost, they are defined at the SQL Server. However, in Access they may not be displayed as is the case for JET tables. Be sure, when linking the tables of the server, to specify which field(s) represent(s) the primary key if the linking wizard asks for this. /gustav >>> EdTesiny at oasas.state.ny.us 03-10-2006 18:03:19 >>> Dear List, This is an elementary question as I know almost nothing about SQL Server. A colleague is developing a web-based ColdFusion application using SQL Server. I would like to access the data through an ODBC connection using Access as the frontend. I was able to get at the tables but the relationships between the tables were lost. Is there a way you can preserve the relationships or should I be trying to access the data by another means? MTIA Ed Edward P. Tesiny Assistant Director for Evaluation Bureau of Evaluation and Practice Improvement New York State OASAS 1450 Western Ave. Albany, New York 12203-3526 Phone: (518) 485-7189 Fax: (518) 485-5769 Email: EdTesiny at oasas.state.ny.us From Jim.Hale at FleetPride.com Tue Oct 3 13:32:24 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 3 Oct 2006 13:32:24 -0500 Subject: [AccessD] Access frontend/SQL Server backend Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE002@corp-es01.fleetpride.com> You might want to take a quick look at pass through queries which have the advantage of processing the data on the server before sending the data set. I use them a lot for crunching large datasets Jim Hale -----Original Message----- From: Tesiny, Ed [mailto:EdTesiny at oasas.state.ny.us] Sent: Tuesday, October 03, 2006 11:03 AM To: Access Developers discussion and problem solving; dba-ot at databaseadvisors.com Subject: [AccessD] Access frontend/SQL Server backend Dear List, This is an elementary question as I know almost nothing about SQL Server. A colleague is developing a web-based ColdFusion application using SQL Server. I would like to access the data through an ODBC connection using Access as the frontend. I was able to get at the tables but the relationships between the tables were lost. Is there a way you can preserve the relationships or should I be trying to access the data by another means? MTIA Ed Edward P. Tesiny Assistant Director for Evaluation Bureau of Evaluation and Practice Improvement New York State OASAS 1450 Western Ave. Albany, New York 12203-3526 Phone: (518) 485-7189 Fax: (518) 485-5769 Email: EdTesiny at oasas.state.ny.us -- 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 pcs at azizaz.com Tue Oct 3 17:52:28 2006 From: pcs at azizaz.com (Borge Hansen) Date: Wed, 4 Oct 2006 08:52:28 +1000 Subject: [AccessD] File Dialog Object and Access Runtime References: <4521AEB1.2020303@shaw.ca> Message-ID: <002201c6e73e$9ad58170$fa10a8c0@Albatross> Quick question here: Can I use the File Dialog object from Office in an Access Runtime application? Even if the user does not have Office installed? That is, do the tools for packaging the Access Runtime etc. allow for adding whatever dlls are needed for the File Dialog object. If not I'll be disappointed! regards borge ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Tuesday, October 03, 2006 10:28 AM Subject: Re: [AccessD] Control for Form Just set a reference to Micosoft Office 11.0 Object Library Just remember if Office not installed this won't work as license to dll is not transferable. From stuart at lexacorp.com.pg Tue Oct 3 18:36:17 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 04 Oct 2006 09:36:17 +1000 Subject: [AccessD] File Dialog Object and Access Runtime In-Reply-To: <002201c6e73e$9ad58170$fa10a8c0@Albatross> References: , <002201c6e73e$9ad58170$fa10a8c0@Albatross> Message-ID: <45238091.8837.92D8432@stuart.lexacorp.com.pg> On 4 Oct 2006 at 8:52, Borge Hansen wrote: > Quick question here: > Can I use the File Dialog object from Office in an Access Runtime application? > Even if the user does not have Office installed? > That is, do the tools for packaging the Access Runtime etc. allow for adding whatever dlls are needed for the File Dialog object. > If not I'll be disappointed! You may be better of sticking with the Windows Common Dialogs and API calls. Search the Archives for my posting on 1 May 2003 titled "Open File Dialog - multiple selections" for a fairly comprehensive description. -- Stuart McLachlan From bchacc at san.rr.com Tue Oct 3 19:13:59 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Tue, 3 Oct 2006 17:13:59 -0700 Subject: [AccessD] FW: ADO Message-ID: <00f701c6e749$ffb998a0$6401a8c0@HAL9005> Dear List: I?m not an ADO guy. Is there something wrong with the insert statement? I?m assuming the connection string is valid. If it isn?t would it barf on Conn.ConnectionString = Bwq? I believe that the code execute4s without blowing but the record does not appear in the table. MTIA, Rocky _____ From: James Charlton [mailto:James at charltonweeks.com] Sent: Tuesday, October 03, 2006 2:02 PM To: Rocky Smolin Subject: ADO Any guess why this does not apend the required record? Bwq is the connection string from a global constant Public Sub IVWills(ByVal PID As Integer) Dim Conn As ADODB.Connection, RS As ADODB.Recordset Set Conn = New ADODB.Connection Conn.ConnectionString = Bwq Conn.Open Set RS = New ADODB.Recordset RS.ActiveConnection = Conn RS.Source = "INSERT INTO [tIVProjectDetail] ( [ProjectID#], Item, Amount ) " & _ "SELECT '" & PID & "', ""Wills (2):"", 0" 'Start the transaction Conn.BeginTrans RS.Open Conn.CommitTrans ' Commit the transaction Conn.Close End Sub James W. M. Charlton Charlton Weeks LLP Attorneys at Law (661) 265-0969 (800) 388-9878 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/2006 From michael at ddisolutions.com.au Tue Oct 3 20:45:40 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 4 Oct 2006 11:45:40 +1000 Subject: [AccessD] FW: ADO Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116AB2E@ddi-01.DDI.local> No expert either but I would do it like this. Conn.Execute "INSERT INTO [tIVProjectDetail] ( [ProjectID#], Item, Amount ) " & _ "SELECT '" & PID & "', ""Wills (2):"", 0" If the connectionstring is wrong it will 'barf' on the Open statement. Not sure you can use a recordset to do inserts? You can still wrap in transactions if you like. cheers Michael Maddison DDI Solutions Pty Ltd michael at ddisolutions.com.au Bus: 0260400620 Mob: 0412620497 www.ddisolutions.com.au -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Wednesday, 4 October 2006 10:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: ADO Dear List: I'm not an ADO guy. Is there something wrong with the insert statement? I'm assuming the connection string is valid. If it isn't would it barf on Conn.ConnectionString = Bwq? I believe that the code execute4s without blowing but the record does not appear in the table. MTIA, Rocky _____ From: James Charlton [mailto:James at charltonweeks.com] Sent: Tuesday, October 03, 2006 2:02 PM To: Rocky Smolin Subject: ADO Any guess why this does not apend the required record? Bwq is the connection string from a global constant Public Sub IVWills(ByVal PID As Integer) Dim Conn As ADODB.Connection, RS As ADODB.Recordset Set Conn = New ADODB.Connection Conn.ConnectionString = Bwq Conn.Open Set RS = New ADODB.Recordset RS.ActiveConnection = Conn RS.Source = "INSERT INTO [tIVProjectDetail] ( [ProjectID#], Item, Amount ) " & _ "SELECT '" & PID & "', ""Wills (2):"", 0" 'Start the transaction Conn.BeginTrans RS.Open Conn.CommitTrans ' Commit the transaction Conn.Close End Sub James W. M. Charlton Charlton Weeks LLP Attorneys at Law (661) 265-0969 (800) 388-9878 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/2006 -- 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 Oct 3 22:37:07 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Tue, 3 Oct 2006 20:37:07 -0700 Subject: [AccessD] FW: ADO In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D0116AB2E@ddi-01.DDI.local> Message-ID: <014d01c6e766$5e5643b0$6401a8c0@HAL9005> Michael: Thanks. I'll forward and let you know what happens. Regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Tuesday, October 03, 2006 6:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: ADO No expert either but I would do it like this. Conn.Execute "INSERT INTO [tIVProjectDetail] ( [ProjectID#], Item, Amount ) " & _ "SELECT '" & PID & "', ""Wills (2):"", 0" If the connectionstring is wrong it will 'barf' on the Open statement. Not sure you can use a recordset to do inserts? You can still wrap in transactions if you like. cheers Michael Maddison DDI Solutions Pty Ltd michael at ddisolutions.com.au Bus: 0260400620 Mob: 0412620497 www.ddisolutions.com.au -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Wednesday, 4 October 2006 10:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: ADO Dear List: I'm not an ADO guy. Is there something wrong with the insert statement? I'm assuming the connection string is valid. If it isn't would it barf on Conn.ConnectionString = Bwq? I believe that the code execute4s without blowing but the record does not appear in the table. MTIA, Rocky _____ From: James Charlton [mailto:James at charltonweeks.com] Sent: Tuesday, October 03, 2006 2:02 PM To: Rocky Smolin Subject: ADO Any guess why this does not apend the required record? Bwq is the connection string from a global constant Public Sub IVWills(ByVal PID As Integer) Dim Conn As ADODB.Connection, RS As ADODB.Recordset Set Conn = New ADODB.Connection Conn.ConnectionString = Bwq Conn.Open Set RS = New ADODB.Recordset RS.ActiveConnection = Conn RS.Source = "INSERT INTO [tIVProjectDetail] ( [ProjectID#], Item, Amount ) " & _ "SELECT '" & PID & "', ""Wills (2):"", 0" 'Start the transaction Conn.BeginTrans RS.Open Conn.CommitTrans ' Commit the transaction Conn.Close End Sub James W. M. Charlton Charlton Weeks LLP Attorneys at Law (661) 265-0969 (800) 388-9878 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.407 / Virus Database: 268.12.12/462 - Release Date: 10/3/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/462 - Release Date: 10/3/2006 From Gustav at cactus.dk Wed Oct 4 04:19:56 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 04 Oct 2006 11:19:56 +0200 Subject: [AccessD] File Dialog Object and Access Runtime Message-ID: Hi Borge Office must be installed to use the proprietary file dialog of the package. Unless this for other reasons is a must, use the native API for Windows File Dialog. You are a "class guy", right? Then browse at Karsten Pries's site for Entwicklertools (Developer Tools), FileDialog: http://www.kpries.de/ It's in German but that should cause you no significant trouble. /gustav >>> pcs at azizaz.com 04-10-2006 00:52 >>> Quick question here: Can I use the File Dialog object from Office in an Access Runtime application? Even if the user does not have Office installed? That is, do the tools for packaging the Access Runtime etc. allow for adding whatever dlls are needed for the File Dialog object. If not I'll be disappointed! regards borge ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Tuesday, October 03, 2006 10:28 AM Subject: Re: [AccessD] Control for Form Just set a reference to Micosoft Office 11.0 Object Library Just remember if Office not installed this won't work as license to dll is not transferable. From DWUTKA at marlow.com Wed Oct 4 09:53:29 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 4 Oct 2006 09:53:29 -0500 Subject: [AccessD] FW: ADO Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113E3BE@MARLOW_MAIN2.marlow.com> Why use a recordset object? Just use the Execute method of the connection object. Drew -----Original Message----- From: Beach Access Software [mailto:bchacc at san.rr.com] Sent: Tuesday, October 03, 2006 7:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: ADO Dear List: I'm not an ADO guy. Is there something wrong with the insert statement? I'm assuming the connection string is valid. If it isn't would it barf on Conn.ConnectionString = Bwq? I believe that the code execute4s without blowing but the record does not appear in the table. MTIA, Rocky _____ From: James Charlton [mailto:James at charltonweeks.com] Sent: Tuesday, October 03, 2006 2:02 PM To: Rocky Smolin Subject: ADO Any guess why this does not apend the required record? Bwq is the connection string from a global constant Public Sub IVWills(ByVal PID As Integer) Dim Conn As ADODB.Connection, RS As ADODB.Recordset Set Conn = New ADODB.Connection Conn.ConnectionString = Bwq Conn.Open Set RS = New ADODB.Recordset RS.ActiveConnection = Conn RS.Source = "INSERT INTO [tIVProjectDetail] ( [ProjectID#], Item, Amount ) " & _ "SELECT '" & PID & "', ""Wills (2):"", 0" 'Start the transaction Conn.BeginTrans RS.Open Conn.CommitTrans ' Commit the transaction Conn.Close End Sub James W. M. Charlton Charlton Weeks LLP Attorneys at Law (661) 265-0969 (800) 388-9878 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/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 Wed Oct 4 10:13:45 2006 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 5 Oct 2006 01:13:45 +1000 Subject: [AccessD] A2003:Images not printing on reports Message-ID: <20061004151347.RYTI22583.omta05ps.mx.bigpond.com@DENZILLAP> Hi all I vaguely recall there being a solution for this - can't recall 'it' though I have a report that has an image control showing ID type photos When I Print Preview the reports - there is the image - happy smiling - cool When I print the report has no picture - regardless of the picture quality Everything else I expect to see on the report is there - no picture though Any suggestions? MTIA Darren From max at sherman.org.uk Wed Oct 4 12:35:35 2006 From: max at sherman.org.uk (Max Home) Date: Wed, 4 Oct 2006 18:35:35 +0100 Subject: [AccessD] Longitude/Latitude In-Reply-To: AAAAAFWZt4UlhGRNs4nf35oT6aREYSoA Message-ID: <000b01c6e7db$8141b920$8119fea9@MaxLapTop> Dear All, Does anyway know if it is possible to call an mdb from within another mdb so that all the forms, queries, reports, etc are available from within the calling mdb? Many thanks Regards Max From askolits at ot.com Wed Oct 4 13:18:00 2006 From: askolits at ot.com (John Skolits) Date: Wed, 4 Oct 2006 14:18:00 -0400 Subject: [AccessD] Modifying Table Field Properties In-Reply-To: <000b01c6e7db$8141b920$8119fea9@MaxLapTop> Message-ID: <016401c6e7e1$6f9bfef0$6501a8c0@LaptopXP> I want to modify the AllowZeroLength field property of a table thru VB Code I believe I had actually done this many years ago, but can't find the code. The end result will allow me to enumerate through all the fields and set that property to True. I can retrieve the value using : Currentdb().TableDefs("Table1").Fields("AllowZeroLength).Property(16).value But can't set the value. If I could set it, it would be easy to write a 'For Each' routine to go through all my tables and change this. John From askolits at ot.com Wed Oct 4 13:25:13 2006 From: askolits at ot.com (John Skolits) Date: Wed, 4 Oct 2006 14:25:13 -0400 Subject: [AccessD] Modifying Table Field Properties - Resolved! In-Reply-To: <000b01c6e7db$8141b920$8119fea9@MaxLapTop> Message-ID: <016701c6e7e2$71f7acc0$6501a8c0@LaptopXP> Just figured it out. I was trying to modify a field that did not have that Property. It was a numeric field. Although it still returned a value for that property in code. That's what threw me off. (Isn't that odd?) ---- I want to modify the AllowZeroLength field property of a table thru VB Code I believe I had actually done this many years ago, but can't find the code. The end result will allow me to enumerate through all the fields and set that property to True. I can retrieve the value using : Currentdb().TableDefs("Table1").Fields("AllowZeroLength).Property(16).value But can't set the value. If I could set it, it would be easy to write a 'For Each' routine to go through all my tables and change this. John From wayne.warren at adelphia.net Wed Oct 4 15:00:46 2006 From: wayne.warren at adelphia.net (Wayne Warren-Angelucci) Date: Wed, 4 Oct 2006 13:00:46 -0700 Subject: [AccessD] Processing Digitally Signed Outlook Email Messages With VBA Message-ID: <063901c6e7ef$c88bc140$6500a8c0@wayne> AccessD List: I am using Outlook automation to process and read email. Everything is working great until code encounters a 'digitally signed' email, then code gets a runtime error (and the error number appears to be different each time !!) I'm using the following (standard) code to process email: Set mOLApp = CreateObject("Outlook.Application") Set mOLNamespace = mOLApp.GetNamespace("MAPI") Set mOLMACInboxFolder = mOLInboxFolder.Folders("MAC Inbox") For ItemIndex = mOLMACInboxFolder.Items.Count To 1 Step -1 If Not (mOLMACInboxFolder.Items(ItemIndex).MessageClass = "IPM.Note" Or _ mOLMACInboxFolder.Items (ItemIndex).MessageClass = "IPM.Note.SMIME.MultipartSigned") _ Then GoTo SKIP_EMAIL ' Skip Inbox Items That Are Not Emails Set mOLMailItem = mOLMACInboxFolder.Items(ItemIndex) EmailSubject = mOLMailItem.Subject EmailBodyContents = mOLMailItem.Body ....... processing code here ...... SKIP_EMAIL: Next ItemIndex When the item is a digitally signed email, I can 'read' the mail item subject (red line, above), but not the mail item body (blue line). I did some research and found the following on the Microsoft website: Improvements to Outlook Object Model Guard and the Impact Office Outlook 2003 inherits the Outlook 2002 object model guard behavior and, in addition, blocks code that attempts to access the Body and HTMLBody properties of various Outlook items. This allows users to verify that the program or add-in accessing the Body and HTMLBody properties of these items is trustworthy, before they allow access to the contents of the items. Although this change forces the display of security warnings in existing COM add-ins that access the Body or HTMLBody properties of items, this will help prevent malicious code from running unknown to the user. You can avoid the display of security warnings by deriving all objects, properties, and methods from the Application object passed to the OnConnection procedure of the add-in. Office Outlook 2003 trusts only the Application object passed to the OnConnection procedure of the add-in. If you create a new Application object -- for example, by using the CreateObject method -- that object and any of its subordinate objects, properties, and methods will not be trusted and the blocked properties and methods will raise security warnings. however, I don't understand their reference to COM Add-inn or OnConnection procedure. Have any of you encountered a similar problem reading a digitally signed email and what solution have you come up with? Thanks, -- Wayne Warren Software Solutions wayne.warren at adelphia.net From ewaldt at gdls.com Wed Oct 4 15:52:56 2006 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Wed, 4 Oct 2006 16:52:56 -0400 Subject: [AccessD] Automated Grouping In-Reply-To: Message-ID: I couldn't find a solution to this anywhere on the Net, so I worked out one for myself, which is always more satisfying anyway. I'm posting it here in case it can help anyone. I wanted to group (as in Group and Outline) all of the data in all of the worksheets in a workbook. The grouping would be based on column A, starting in row 2 (allowing for one row of headers). I have several sheets of hundreds or thousands (depending on the sheet) of rows, so doing this by hand was extremely time-consuming (and painful on the wrist using the mouse). Perhaps this is too elementary for this list, but I thought someone might find it useful. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 -------------------------------------------------------------------------------- Sub AutoGroup() 'Created 10/04/06 by Thomas F. Ewald, GDLS Dim intFirstRow As Integer Dim intLastRow As Integer Dim Wks As Worksheet Dim strName As String For Each Wks In Worksheets Wks.Select intFirstRow = 0 Range("A2").Select Do Until ActiveCell.Value = 0 If ActiveCell.Value = ActiveCell.Offset(1, 0).Value Then 'First Match If intFirstRow = 0 Then intFirstRow = ActiveCell.Row + 1 'If not the first match, do nothing. Continue on. Else 'If intFirstRow is not 0, and the next cell does not match, 'we've reached the end of the group. Create the group. If intFirstRow <> 0 Then intLastRow = ActiveCell.Row Rows(intFirstRow & ":" & intLastRow).Select Selection.Rows.Group intFirstRow = 0 Range("A" & intLastRow).Select End If 'If intFirstRow = 0, and the next cell does not match, this 'cell is unmatched, and there is no group. Continue on. End If ActiveCell.Offset(1, 0).Select Loop Next Wks End Sub This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. From martyconnelly at shaw.ca Wed Oct 4 16:17:05 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 04 Oct 2006 14:17:05 -0700 Subject: [AccessD] Processing Digitally Signed Outlook Email Messages With VBA In-Reply-To: <063901c6e7ef$c88bc140$6500a8c0@wayne> References: <063901c6e7ef$c88bc140$6500a8c0@wayne> Message-ID: <452424D1.3020800@shaw.ca> I don't think you can read the body of digitally signed email as it defeats security purpose, so you might have to skip around Because Outlook decrypts encrypted messages when they are displayed to make them look like the normal IPM. http://support.microsoft.com/?kbid=194623 Unsigned and Unencrypted: IPM.Note So you might hake to skip around these ? Signed and Unencrypted: IPM.NOTE.SECURE.SIGN ? Unsigned and Encrypted: IPM.NOTE.SECURE ? Signed and Encrypted: IPM.NOTE.SECURE On the other hand, if you use Secure - Multipurpose Internet Mail Extensions (SMIME) from Microsoft Outlook Express to send a signed message, the class will be IPM.Note.SMIME.MultipartSigned. Wayne Warren-Angelucci wrote: >AccessD List: > >I am using Outlook automation to process and read email. Everything is working great until code encounters a 'digitally signed' email, then code gets a runtime error (and the error number appears to be different each time !!) > >I'm using the following (standard) code to process email: > > Set mOLApp = CreateObject("Outlook.Application") > Set mOLNamespace = mOLApp.GetNamespace("MAPI") > Set mOLMACInboxFolder = mOLInboxFolder.Folders("MAC Inbox") > > For ItemIndex = mOLMACInboxFolder.Items.Count To 1 Step -1 > If Not (mOLMACInboxFolder.Items(ItemIndex).MessageClass = "IPM.Note" Or _ > mOLMACInboxFolder.Items (ItemIndex).MessageClass = "IPM.Note.SMIME.MultipartSigned") _ > Then GoTo SKIP_EMAIL ' Skip Inbox Items That Are Not Emails > > Set mOLMailItem = mOLMACInboxFolder.Items(ItemIndex) > > EmailSubject = mOLMailItem.Subject > EmailBodyContents = mOLMailItem.Body > > ....... processing code here ...... > >SKIP_EMAIL: > Next ItemIndex > > >When the item is a digitally signed email, I can 'read' the mail item subject (red line, above), but not the mail item body (blue line). > >I did some research and found the following on the Microsoft website: >Improvements to Outlook Object Model Guard and the Impact >Office Outlook 2003 inherits the Outlook 2002 object model guard behavior and, in addition, blocks code that attempts to access the Body and HTMLBody properties of various Outlook items. This allows users to verify that the program or add-in accessing the Body and HTMLBody properties of these items is trustworthy, before they allow access to the contents of the items. Although this change forces the display of security warnings in existing COM add-ins that access the Body or HTMLBody properties of items, this will help prevent malicious code from running unknown to the user. > >You can avoid the display of security warnings by deriving all objects, properties, and methods from the Application object passed to the OnConnection procedure of the add-in. Office Outlook 2003 trusts only the Application object passed to the OnConnection procedure of the add-in. If you create a new Application object -- for example, by using the CreateObject method -- that object and any of its subordinate objects, properties, and methods will not be trusted and the blocked properties and methods will raise security warnings. > > > >however, I don't understand their reference to COM Add-inn or OnConnection procedure. Have any of you encountered a similar problem reading a digitally signed email and what solution have you come up with? Thanks, > >-- Wayne Warren >Software Solutions >wayne.warren at adelphia.net > > -- Marty Connelly Victoria, B.C. Canada From Jim.Hale at FleetPride.com Wed Oct 4 16:31:17 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 4 Oct 2006 16:31:17 -0500 Subject: [AccessD] Automated Grouping Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE01D@corp-es01.fleetpride.com> Useful stuff, Thanks Jim Hale -----Original Message----- From: ewaldt at gdls.com [mailto:ewaldt at gdls.com] Sent: Wednesday, October 04, 2006 3:53 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automated Grouping I couldn't find a solution to this anywhere on the Net, so I worked out one for myself, which is always more satisfying anyway. I'm posting it here in case it can help anyone. I wanted to group (as in Group and Outline) all of the data in all of the worksheets in a workbook. The grouping would be based on column A, starting in row 2 (allowing for one row of headers). I have several sheets of hundreds or thousands (depending on the sheet) of rows, so doing this by hand was extremely time-consuming (and painful on the wrist using the mouse). Perhaps this is too elementary for this list, but I thought someone might find it useful. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 ---------------------------------------------------------------------------- ---- Sub AutoGroup() 'Created 10/04/06 by Thomas F. Ewald, GDLS Dim intFirstRow As Integer Dim intLastRow As Integer Dim Wks As Worksheet Dim strName As String For Each Wks In Worksheets Wks.Select intFirstRow = 0 Range("A2").Select Do Until ActiveCell.Value = 0 If ActiveCell.Value = ActiveCell.Offset(1, 0).Value Then 'First Match If intFirstRow = 0 Then intFirstRow = ActiveCell.Row + 1 'If not the first match, do nothing. Continue on. Else 'If intFirstRow is not 0, and the next cell does not match, 'we've reached the end of the group. Create the group. If intFirstRow <> 0 Then intLastRow = ActiveCell.Row Rows(intFirstRow & ":" & intLastRow).Select Selection.Rows.Group intFirstRow = 0 Range("A" & intLastRow).Select End If 'If intFirstRow = 0, and the next cell does not match, this 'cell is unmatched, and there is no group. Continue on. End If ActiveCell.Offset(1, 0).Select Loop Next Wks End Sub This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- 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 newsgrps at dalyn.co.nz Wed Oct 4 17:00:27 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Thu, 05 Oct 2006 11:00:27 +1300 Subject: [AccessD] Simple Install to run SQL2000 Database Message-ID: <7.0.1.0.0.20061005110021.01aad8f8@dalyn.co.nz> Group, I have a client who wants to see the progress of a development project we are writing. The database is SQL2000. He doesn't have SQL2000 on his computer. All we need is to be able to have something on his computer so that I can install a runtime of the Access XP ade and he can use it. This is only a temporary solution until he gets a server with the full SQL2000 installed on it. Since the temporary computer will not be accessible via a network, and it will not have a full version of Access XP on it, I am not sure that even if we got SQL2000 installed, we could connect to the database without coding the connection string (which is another matter). Back to my original question - Is there a free version of SQL2000 available, or will the free version of SQL2005 run SQL2000 databases. If so, does it have a tool like Enterprise manager for restoring datafiles etc? From stuart at lexacorp.com.pg Wed Oct 4 17:13:54 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 05 Oct 2006 08:13:54 +1000 Subject: [AccessD] Simple Install to run SQL2000 Database In-Reply-To: <7.0.1.0.0.20061005065718.01ab0348@dalyn.co.nz> References: <7.0.1.0.0.20061005065718.01ab0348@dalyn.co.nz> Message-ID: <4524BEC2.16409.37E647A@stuart.lexacorp.com.pg> Instal MSDE and the SQL Server 2000 client tools on the workstation. See http://www.microsoft.com/sql/prodinfo/previousversions/msde/prodinfo.mspx On 5 Oct 2006 at 11:00, David Emerson wrote: > Group, > > I have a client who wants to see the progress of a development > project we are writing. The database is SQL2000. He doesn't have > SQL2000 on his computer. All we need is to be able to have something > on his computer so that I can install a runtime of the Access XP ade > and he can use it. This is only a temporary solution until he gets a > server with the full SQL2000 installed on it. > > Since the temporary computer will not be accessible via a network, > and it will not have a full version of Access XP on it, I am not sure > that even if we got SQL2000 installed, we could connect to the > database without coding the connection string (which is another matter). > > Back to my original question - Is there a free version of SQL2000 > available, or will the free version of SQL2005 run SQL2000 > databases. If so, does it have a tool like Enterprise manager for > restoring datafiles etc? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From ssharkins at setel.com Wed Oct 4 17:24:16 2006 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 4 Oct 2006 18:24:16 -0400 Subject: [AccessD] Modifying Table Field Properties - Resolved! In-Reply-To: <016701c6e7e2$71f7acc0$6501a8c0@LaptopXP> Message-ID: <000101c6e803$d46d5a00$bbb82ad1@SUSANONE> John -- you've been hanging around with me too much. :) Isn't it nice though that you figured it out? ;) Susan H. Just figured it out. I was trying to modify a field that did not have that Property. It was a numeric field. Although it still returned a value for that property in code. That's what threw me off. (Isn't that odd?) From max at sherman.org.uk Thu Oct 5 04:42:26 2006 From: max at sherman.org.uk (Max Home) Date: Thu, 5 Oct 2006 10:42:26 +0100 Subject: [AccessD] Longitude/Latitude Now Extenal MDBs In-Reply-To: AAAAAFWZt4UlhGRNs4nf35oT6aTEjSoA Message-ID: <002a01c6e862$926528e0$8119fea9@MaxLapTop> Apologies to all, I should have renamed my previous posting. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Home Sent: Wednesday, October 04, 2006 6:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Longitude/Latitude Dear All, Does anyway know if it is possible to call an mdb from within another mdb so that all the forms, queries, reports, etc are available from within the calling mdb? Many thanks Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Oct 5 10:50:20 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 05 Oct 2006 08:50:20 -0700 Subject: [AccessD] Longitude/Latitude Now Extenal MDBs In-Reply-To: <002a01c6e862$926528e0$8119fea9@MaxLapTop> References: <002a01c6e862$926528e0$8119fea9@MaxLapTop> Message-ID: <452529BC.1040209@shaw.ca> You could install mdb as an mda addin, this may involve monkeying with USysRegInfo table. Reports, forms and modules should work. Dunno about queries, lots of info on this on MS site where they describe how to write your own wizard. They opened up the code for some Access 97 wizards which maybe still downloadable. You could also add a reference to the mdb, but not sure what that would buy you. Max Home wrote: >Apologies to all, I should have renamed my previous posting. > > >Regards >Max >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Home >Sent: Wednesday, October 04, 2006 6:36 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Longitude/Latitude > >Dear All, >Does anyway know if it is possible to call an mdb from within another mdb so >that all the forms, queries, reports, etc are available from within the >calling mdb? > >Many thanks > >Regards >Max > > > -- Marty Connelly Victoria, B.C. Canada From markamatte at hotmail.com Thu Oct 5 11:18:42 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 05 Oct 2006 16:18:42 +0000 Subject: [AccessD] Longitude/Latitude Now Extenal MDBs In-Reply-To: <452529BC.1040209@shaw.ca> Message-ID: Max, Not sure what you're trying to accomplish...but why not just open the other MDB? Just Curious, Mark A. Matte >From: MartyConnelly >Reply-To: Access Developers discussion and problem >solving >To: Access Developers discussion and problem >solving >Subject: Re: [AccessD] Longitude/Latitude Now Extenal MDBs >Date: Thu, 05 Oct 2006 08:50:20 -0700 > >You could install mdb as an mda addin, this may involve monkeying >with USysRegInfo table. Reports, forms and modules should work. >Dunno about queries, lots of info on this on MS site where they >describe how to write your own wizard. They opened up the code >for some Access 97 wizards which maybe still downloadable. > >You could also add a reference to the mdb, but not sure what that would >buy you. > > >Max Home wrote: > > >Apologies to all, I should have renamed my previous posting. > > > > > >Regards > >Max > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Home > >Sent: Wednesday, October 04, 2006 6:36 PM > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] Longitude/Latitude > > > >Dear All, > >Does anyway know if it is possible to call an mdb from within another mdb >so > >that all the forms, queries, reports, etc are available from within the > >calling mdb? > > > >Many thanks > > > >Regards > >Max > > > > > > > >-- >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 scapistrant at symphonyinfo.com Thu Oct 5 16:11:35 2006 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Thu, 5 Oct 2006 16:11:35 -0500 Subject: [AccessD] Longitude/Latitude References: <000601c6e3f7$75f3ff70$4b4f5a46@Symphony.local><02F5B8F3D893A845A3DF342F14D80F0103A46D@LAKATOS.Symphony.local> <000601c6e419$01daf540$4b4f5a46@Symphony.local> Message-ID: <02F5B8F3D893A845A3DF342F14D80F0103A476@LAKATOS.Symphony.local> Thank you William and others for your responses. Steve Capistrant Symphony Information Services scapistrant at symphonyinfo.com www.symphonyinfo.com Main: 763-391-7400 ext 801 Toll Free: 888-357-1373 ext 801 Direct: 612-237-0075 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of William Hindman Sent: Fri 9/29/2006 5:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Longitude/Latitude ...reference tables abound ...including high quality free ones ...start here, but there are plenty more http://spatialnews.geocomm.com/newsletter/2000/jan/zipcodes.html William Hindman ----- Original Message ----- From: "Steve Capistrant" To: "Access Developers discussion and problem solving" ; Sent: Friday, September 29, 2006 5:56 PM Subject: [AccessD] Longitude/Latitude > Hello all, > > Sorry if this has been asked recently and I didn't pay attention. What > options exist for programmatically inserting longitude and latitude values > on an address record? I was told that Google had some way to return that > information from their database, but can't seem to find it (perhaps if I > paid for a business account). This is a task I'd do regularly (perhaps > twice a month) as data gets uploaded from a local Access db into a > website, where the website is coded to calculate distance between > addresses. > > Ideally, it would be SO cool to due this by connecting to a website and > looping through the recordset of an Address table. But another option I > suppose is getting occasional downloads of a reference table, and use that > as my lookup. > > Steve Capistrant From max at sherman.org.uk Fri Oct 6 00:33:06 2006 From: max at sherman.org.uk (Max Home) Date: Fri, 6 Oct 2006 06:33:06 +0100 Subject: [AccessD] External MDBs In-Reply-To: AAAAAFWZt4UlhGRNs4nf35oT6aSEmSoA Message-ID: <001501c6e908$e804d9c0$8119fea9@MaxLapTop> Thanks Marty, What I had in mind was a central MDB which (depending upon options set) would allow users access to other MDBs from a central menu. Once the option was enabled and the user clicked on the menu item, the called MDB would then open in exactly the same way as if it had been opened from Windows. Once the called MDB was exited, then the central MDB would re-open back at the menu. I have set References, but it only appears to give me access to the code within the called MDB and not the full functionality. I will have a look at MDA Addins. Thanks Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, October 05, 2006 4:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Longitude/Latitude Now Extenal MDBs You could install mdb as an mda addin, this may involve monkeying with USysRegInfo table. Reports, forms and modules should work. Dunno about queries, lots of info on this on MS site where they describe how to write your own wizard. They opened up the code for some Access 97 wizards which maybe still downloadable. You could also add a reference to the mdb, but not sure what that would buy you. Max Home wrote: >Apologies to all, I should have renamed my previous posting. > > >Regards >Max >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Home >Sent: Wednesday, October 04, 2006 6:36 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Longitude/Latitude > >Dear All, >Does anyway know if it is possible to call an mdb from within another mdb so >that all the forms, queries, reports, etc are available from within the >calling mdb? > >Many thanks > >Regards >Max > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Oct 6 02:37:32 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 06 Oct 2006 00:37:32 -0700 Subject: [AccessD] External MDBs In-Reply-To: <001501c6e908$e804d9c0$8119fea9@MaxLapTop> References: <001501c6e908$e804d9c0$8119fea9@MaxLapTop> Message-ID: <452607BC.4050402@shaw.ca> Then you might look at TSI Soon dll http://www.trigeminal.com/lang/1033/utility.asp?ItemID=8#8 Max Home wrote: >Thanks Marty, >What I had in mind was a central MDB which (depending upon options set) >would allow users access to other MDBs from a central menu. Once the option >was enabled and the user clicked on the menu item, the called MDB would then >open in exactly the same way as if it had been opened from Windows. Once >the called MDB was exited, then the central MDB would re-open back at the >menu. > >I have set References, but it only appears to give me access to the code >within the called MDB and not the full functionality. > >I will have a look at MDA Addins. > >Thanks > >Regards >Max >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, October 05, 2006 4:50 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Longitude/Latitude Now Extenal MDBs > >You could install mdb as an mda addin, this may involve monkeying >with USysRegInfo table. Reports, forms and modules should work. >Dunno about queries, lots of info on this on MS site where they >describe how to write your own wizard. They opened up the code >for some Access 97 wizards which maybe still downloadable. > >You could also add a reference to the mdb, but not sure what that would >buy you. > > >Max Home wrote: > > > >>Apologies to all, I should have renamed my previous posting. >> >> >>Regards >>Max >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Home >>Sent: Wednesday, October 04, 2006 6:36 PM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] Longitude/Latitude >> >>Dear All, >>Does anyway know if it is possible to call an mdb from within another mdb >> >> >so > > >>that all the forms, queries, reports, etc are available from within the >>calling mdb? >> >>Many thanks >> >>Regards >>Max >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Fri Oct 6 04:51:20 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 06 Oct 2006 11:51:20 +0200 Subject: [AccessD] Google Code Search Message-ID: Hi all This service is taking off: http://www.google.com/codesearch /gustav From askolits at ot.com Fri Oct 6 07:11:43 2006 From: askolits at ot.com (John Skolits) Date: Fri, 6 Oct 2006 08:11:43 -0400 Subject: [AccessD] mdac vERSION In-Reply-To: <001501c6e908$e804d9c0$8119fea9@MaxLapTop> Message-ID: <035701c6e940$998e0cc0$6501a8c0@LaptopXP> I tried to get the MDAC version on an Windows NT Server and the ComChecker program didn't work. I checked the registry and found FullInstallVer = 2.80.1062.0 I searched to try and figure out if this is the latest version. Anyone know for sure? John From adtp at hotmail.com Fri Oct 6 09:02:37 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Fri, 6 Oct 2006 19:32:37 +0530 Subject: [AccessD] External MDBs References: <001501c6e908$e804d9c0$8119fea9@MaxLapTop> Message-ID: Max, My sample db named ExternalDbAutomation might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. You might find it quite close to what you are seeking. Some of its features are outlined below. Best wishes, A.D.Tejpal --------------- Sample Db (ExternalDbAutomation) ================================ The sample set consists of two mdb files, representing local and external db's respectively. Access XP version incorporates programmatic insertion of password argument for opening the external db (In earlier versions, password argument is not available for OpenCurrentDatabase method). So long as both db's are in the same folder, the local db will automatically detect the path of external db Clicking the command button captioned "Go To External Db", on switchboard form in local db, hides the local access application and results in either of the following - (a) If external db is not yet open, a new instance of access application is created, in which external db is opened and its switchboard form is displayed. (b) If external db is already open, it gets un-hidden and its switchboard form is displayed. In external db, opening of form F_Reports results in loading of all available report names (from AllReports collection) in the list box, facilitating print/preview. In external db, clicking the go-back button (or closing the switchboard form) results in hiding of external db and un-hiding of local db. Any of the following actions in local db ensures closure of external db (if still open) - (a) Click command button for closing external db. (b) Close switchboard form of local db. (c) click command button for closing local db. Versions - Access XP & 2K (Both in Access 2000 File Format) References - DAO 3.6 ================================ ----- Original Message ----- From: Max Home To: 'Access Developers discussion and problem solving' Sent: Friday, October 06, 2006 11:03 Subject: [AccessD] External MDBs Thanks Marty, What I had in mind was a central MDB which (depending upon options set) would allow users access to other MDBs from a central menu. Once the option was enabled and the user clicked on the menu item, the called MDB would then open in exactly the same way as if it had been opened from Windows. Once the called MDB was exited, then the central MDB would re-open back at the menu. I have set References, but it only appears to give me access to the code within the called MDB and not the full functionality. I will have a look at MDA Addins. Thanks Regards Max From dwaters at usinternet.com Fri Oct 6 09:35:04 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 6 Oct 2006 09:35:04 -0500 Subject: [AccessD] mdac vERSION In-Reply-To: <24194681.1160136990668.JavaMail.root@sniper7> Message-ID: <001901c6e954$9de282b0$0300a8c0@danwaters> John, 2.8 is the latest version of MDAC, but you may want to check this page for more info: http://support.microsoft.com/?scid=ph;en-us;1596 Dan Waters -----Original Message----- Subject: [AccessD] mdac vERSION I tried to get the MDAC version on an Windows NT Server and the ComChecker program didn't work. I checked the registry and found FullInstallVer = 2.80.1062.0 I searched to try and figure out if this is the latest version. Anyone know for sure? John From askolits at ot.com Fri Oct 6 10:31:21 2006 From: askolits at ot.com (John Skolits) Date: Fri, 6 Oct 2006 11:31:21 -0400 Subject: [AccessD] mdac vERSION In-Reply-To: <001901c6e954$9de282b0$0300a8c0@danwaters> Message-ID: <03a201c6e95c$7cd402d0$6501a8c0@LaptopXP> My problem is that I'm not sure if the version number "2.80.1062.0" indicates 2.8 (I expect the first 3 numbers '2.80' are a giveaway). But, I just want to make sure. I don't see anywhere where they specify this type of exact number in their documentation. My guess is that the number indicate release 2.8, Build 1062 Version 0. But, just a guess. Is there anyone who has any idea of MS version, number system to confirm my guess. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, October 06, 2006 10:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] mdac vERSION John, 2.8 is the latest version of MDAC, but you may want to check this page for more info: http://support.microsoft.com/?scid=ph;en-us;1596 Dan Waters -----Original Message----- Subject: [AccessD] mdac vERSION I tried to get the MDAC version on an Windows NT Server and the ComChecker program didn't work. I checked the registry and found FullInstallVer = 2.80.1062.0 I searched to try and figure out if this is the latest version. Anyone know for sure? John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Fri Oct 6 10:32:10 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 06 Oct 2006 11:32:10 -0400 Subject: [AccessD] Google Code Search In-Reply-To: References: Message-ID: <45263EB8.167F.006B.0@niagaracounty.com> OK...I need help here...BADLY! I've been like the typical guy, who won't stop and ask for directions...I've been working on this one single issue, since yesterday, and I cannot find the problem. I wrote this program, many moons ago, for our Social Services Fraud Unit. They told me, at that time, that they would never exceed, or even get to 1000 records in a year. There largest amount was around 700. The reason this was an issue was their control numbers, which were in the form of 06-001, where this number would be the first case of the year 2006. It then rolls over for the first case of the following year, to 07-001. Despite their claim, I made the control number in the form of, 06-0001, so that it could handle up to 9,999 records. When they saw this, they demanded that I change it. They did not want the extra digit in their number. Well, guess what. Two years ago, they went over the 1000 record mark and called me to make the change. Actually that year they thought it was a fluke or something, so we just made do somehow...I don't even recall. Last year it was the same issue, so I fixed it...or thought I did. It must have worked because it went up to record 06-1000 this year, before halting, whereas last year it stopped at 05-999. Now we are at my current problem, and I just can't figure it out. It looks like it should work and it isn't breaking at 999, but rather 1000, and this confuses me. The code is as follows: Function NewControlNum() As String Dim strSQL As String Dim strNewID As String Dim rst As Recordset strSQL = "SELECT nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS lngMaxID," & _ "Right(Year(Now()),2)" & _ "& '-' & [lngMaxID] AS lngNewID " & _ "FROM tblMain " & _ "WHERE (((Left([tblMain]![txtControlNum],2))=Right(Year(Now()),2)));" Set rst = CodeDb.OpenRecordset(strSQL) With rst strNewID = rst!lngNewID rst.Close Set rst = Nothing End With NewControlNum = strNewID Rem *************************************************************************** Select Case Len(NewControlNum) Case 4 NewControlNum = Left(NewControlNum, 3) & "00" & Right(NewControlNum, 1) Case 5 NewControlNum = Left(NewControlNum, 3) & "0" & Right(NewControlNum, 2) End Select End Function -------------------------------------------------------------------------------------- BTW...this is an A97 program. It works perfectly fine, filling in the next control number, when you hit upon a new record, until it gets to 06-1000, and then it just wants to keep putting in that same number. As a test, I went into the table and added a record 06-1101, just to see what the result would be. It too returned 06-1000 as the next number. I deleted the last 5 records so that we were at 06-996, and it let me re-enter them, putting in the proper numbers, as I went (06-997 thru 06-1000). I just know it is something simple that I am missing. John W. Clark From John.Clark at niagaracounty.com Fri Oct 6 10:37:51 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 06 Oct 2006 11:37:51 -0400 Subject: [AccessD] Dire need for help Message-ID: <4526400C.167F.006B.0@niagaracounty.com> Sorry, I posted this on another thread first...AAAARRG....I'm just so frustrated at the moment. OK...I need help here...BADLY! I've been like the typical guy, who won't stop and ask for directions...I've been working on this one single issue, since yesterday, and I cannot find the problem. I wrote this program, many moons ago, for our Social Services Fraud Unit. They told me, at that time, that they would never exceed, or even get to 1000 records in a year. There largest amount was around 700. The reason this was an issue was their control numbers, which were in the form of 06-001, where this number would be the first case of the year 2006. It then rolls over for the first case of the following year, to 07-001. Despite their claim, I made the control number in the form of, 06-0001, so that it could handle up to 9,999 records. When they saw this, they demanded that I change it. They did not want the extra digit in their number. Well, guess what. Two years ago, they went over the 1000 record mark and called me to make the change. Actually that year they thought it was a fluke or something, so we just made do somehow...I don't even recall. Last year it was the same issue, so I fixed it...or thought I did. It must have worked because it went up to record 06-1000 this year, before halting, whereas last year it stopped at 05-999. Now we are at my current problem, and I just can't figure it out. It looks like it should work and it isn't breaking at 999, but rather 1000, and this confuses me. The code is as follows: Function NewControlNum() As String Dim strSQL As String Dim strNewID As String Dim rst As Recordset strSQL = "SELECT nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS lngMaxID," & _ "Right(Year(Now()),2)" & _ "& '-' & [lngMaxID] AS lngNewID " & _ "FROM tblMain " & _ "WHERE (((Left([tblMain]![txtControlNum],2))=Right(Year(Now()),2)));" Set rst = CodeDb.OpenRecordset(strSQL) With rst strNewID = rst!lngNewID rst.Close Set rst = Nothing End With NewControlNum = strNewID Rem *************************************************************************** Select Case Len(NewControlNum) Case 4 NewControlNum = Left(NewControlNum, 3) & "00" & Right(NewControlNum, 1) Case 5 NewControlNum = Left(NewControlNum, 3) & "0" & Right(NewControlNum, 2) End Select End Function -------------------------------------------------------------------------------------- BTW...this is an A97 program. It works perfectly fine, filling in the next control number, when you hit upon a new record, until it gets to 06-1000, and then it just wants to keep putting in that same number. As a test, I went into the table and added a record 06-1101, just to see what the result would be. It too returned 06-1000 as the next number. I deleted the last 5 records so that we were at 06-996, and it let me re-enter them, putting in the proper numbers, as I went (06-997 thru 06-1000). I just know it is something simple that I am missing. John W. Clark From ldoering at symphonyinfo.com Fri Oct 6 11:27:22 2006 From: ldoering at symphonyinfo.com (Liz Doering) Date: Fri, 6 Oct 2006 11:27:22 -0500 Subject: [AccessD] Dire need for help References: <000101c6e960$84bf0040$4b4f5a46@Symphony.local> Message-ID: <02F5B8F3D893A845A3DF342F14D80F01066967@LAKATOS.Symphony.local> John, Instead of taking the Max(Mid([tblMain]![txtControlNum],4)) (that is, max txtControlNum), take the of Max(Val(Right([txtControlNum],Len([txtcontrolnum])-3))) (that is, max of the value of the txtControlNum). As it stands you are returning the max text value, which is a little different than returning the max numeric value. Good Luck! Liz ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of John Clark Sent: Fri 10/6/2006 11:00 AM To: accessd at databaseadvisors.com Subject: [AccessD] Dire need for help Sorry, I posted this on another thread first...AAAARRG....I'm just so frustrated at the moment. OK...I need help here...BADLY! I've been like the typical guy, who won't stop and ask for directions...I've been working on this one single issue, since yesterday, and I cannot find the problem. I wrote this program, many moons ago, for our Social Services Fraud Unit. They told me, at that time, that they would never exceed, or even get to 1000 records in a year. There largest amount was around 700. The reason this was an issue was their control numbers, which were in the form of 06-001, where this number would be the first case of the year 2006. It then rolls over for the first case of the following year, to 07-001. Despite their claim, I made the control number in the form of, 06-0001, so that it could handle up to 9,999 records. When they saw this, they demanded that I change it. They did not want the extra digit in their number. Well, guess what. Two years ago, they went over the 1000 record mark and called me to make the change. Actually that year they thought it was a fluke or something, so we just made do somehow...I don't even recall. Last year it was the same issue, so I fixed it...or thought I did. It must have worked because it went up to record 06-1000 this year, before halting, whereas last year it stopped at 05-999. Now we are at my current problem, and I just can't figure it out. It looks like it should work and it isn't breaking at 999, but rather 1000, and this confuses me. The code is as follows: Function NewControlNum() As String Dim strSQL As String Dim strNewID As String Dim rst As Recordset strSQL = "SELECT nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS lngMaxID," & _ "Right(Year(Now()),2)" & _ "& '-' & [lngMaxID] AS lngNewID " & _ "FROM tblMain " & _ "WHERE (((Left([tblMain]![txtControlNum],2))=Right(Year(Now()),2)));" Set rst = CodeDb.OpenRecordset(strSQL) With rst strNewID = rst!lngNewID rst.Close Set rst = Nothing End With NewControlNum = strNewID Rem *************************************************************************** Select Case Len(NewControlNum) Case 4 NewControlNum = Left(NewControlNum, 3) & "00" & Right(NewControlNum, 1) Case 5 NewControlNum = Left(NewControlNum, 3) & "0" & Right(NewControlNum, 2) End Select End Function -------------------------------------------------------------------------------------- BTW...this is an A97 program. It works perfectly fine, filling in the next control number, when you hit upon a new record, until it gets to 06-1000, and then it just wants to keep putting in that same number. As a test, I went into the table and added a record 06-1101, just to see what the result would be. It too returned 06-1000 as the next number. I deleted the last 5 records so that we were at 06-996, and it let me re-enter them, putting in the proper numbers, as I went (06-997 thru 06-1000). I just know it is something simple that I am missing. John W. Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri Oct 6 11:45:44 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 6 Oct 2006 12:45:44 -0400 Subject: [AccessD] [SPAM SUSPECT] Dire need for help In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E44256@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35977@ADGSERVER> John, How is the field declared? Is there a format on that field? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, October 06, 2006 11:38 AM To: accessd at databaseadvisors.com Subject: [SPAM SUSPECT] [AccessD] Dire need for help Importance: Low Sorry, I posted this on another thread first...AAAARRG....I'm just so frustrated at the moment. OK...I need help here...BADLY! I've been like the typical guy, who won't stop and ask for directions...I've been working on this one single issue, since yesterday, and I cannot find the problem. I wrote this program, many moons ago, for our Social Services Fraud Unit. They told me, at that time, that they would never exceed, or even get to 1000 records in a year. There largest amount was around 700. The reason this was an issue was their control numbers, which were in the form of 06-001, where this number would be the first case of the year 2006. It then rolls over for the first case of the following year, to 07-001. Despite their claim, I made the control number in the form of, 06-0001, so that it could handle up to 9,999 records. When they saw this, they demanded that I change it. They did not want the extra digit in their number. Well, guess what. Two years ago, they went over the 1000 record mark and called me to make the change. Actually that year they thought it was a fluke or something, so we just made do somehow...I don't even recall. Last year it was the same issue, so I fixed it...or thought I did. It must have worked because it went up to record 06-1000 this year, before halting, whereas last year it stopped at 05-999. Now we are at my current problem, and I just can't figure it out. It looks like it should work and it isn't breaking at 999, but rather 1000, and this confuses me. The code is as follows: Function NewControlNum() As String Dim strSQL As String Dim strNewID As String Dim rst As Recordset strSQL = "SELECT nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS lngMaxID," & _ "Right(Year(Now()),2)" & _ "& '-' & [lngMaxID] AS lngNewID " & _ "FROM tblMain " & _ "WHERE (((Left([tblMain]![txtControlNum],2))=Right(Year(Now()),2)));" Set rst = CodeDb.OpenRecordset(strSQL) With rst strNewID = rst!lngNewID rst.Close Set rst = Nothing End With NewControlNum = strNewID Rem *************************************************************************** Select Case Len(NewControlNum) Case 4 NewControlNum = Left(NewControlNum, 3) & "00" & Right(NewControlNum, 1) Case 5 NewControlNum = Left(NewControlNum, 3) & "0" & Right(NewControlNum, 2) End Select End Function ---------------------------------------------------------------------------- ---------- BTW...this is an A97 program. It works perfectly fine, filling in the next control number, when you hit upon a new record, until it gets to 06-1000, and then it just wants to keep putting in that same number. As a test, I went into the table and added a record 06-1101, just to see what the result would be. It too returned 06-1000 as the next number. I deleted the last 5 records so that we were at 06-996, and it let me re-enter them, putting in the proper numbers, as I went (06-997 thru 06-1000). I just know it is something simple that I am missing. John W. Clark From martyconnelly at shaw.ca Fri Oct 6 12:05:17 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 06 Oct 2006 10:05:17 -0700 Subject: [AccessD] mdac vERSION In-Reply-To: <03a201c6e95c$7cd402d0$6501a8c0@LaptopXP> References: <03a201c6e95c$7cd402d0$6501a8c0@LaptopXP> Message-ID: <45268CCD.4030803@shaw.ca> You should be all right to install MDAC 2.8 SP1 on NT, you are running standard 2.8, instructions below to determine MDAC from specific dll. Read the release manifests because some MDAC's may clobber SQL 7. requirements from Release manifest 2.8 SP1 Microsoft Windows NT 4 Service Pack 5 (SP5) or a later version, and Internet Explorer 5.01 Here is the portal site for MDAC info http://www.microsoft.com/data on the SP download page click MDAC 2.8 Release Manifest Release manifest for MDAC 2.8 (2.80.1022.3) http://support.microsoft.com/?kbid=828396 further down the page is the File List for MDAC 2.8 (2.80.1022.3) To find MDAC installed Look at the version number for this standard MDAC file through windows explorer It is the one added to Access reference list msado15.dll 2.80.1022.0 ADO On Win XP file located here C:\Program Files\Common Files\System\ado\msado15.dll Right click on file select properties then version then file version to see the magic version number. Release manifest for MDAC 2.8 Service Pack 1 (2.81.1117.6) http://support.microsoft.com/kb/899456 Here is the major download page http://msdn.microsoft.com/data/ref/mdac/downloads/ MDAC 2.8 SP1 release installs the same Data Access components as Microsoft Windows XP SP2. MDAC 2.8 SP2 comes with windows 2003 server The version included in Win XP SP2 is 2.8 SP1 John Skolits wrote: >My problem is that I'm not sure if the version number >"2.80.1062.0" indicates 2.8 (I expect the first 3 numbers '2.80' are a >giveaway). > >But, I just want to make sure. I don't see anywhere where they specify this >type of exact number in their documentation. My guess is that the number >indicate release 2.8, Build 1062 Version 0. But, just a guess. > > >Is there anyone who has any idea of MS version, number system to confirm my >guess. > >John > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, October 06, 2006 10:35 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] mdac vERSION > >John, > >2.8 is the latest version of MDAC, but you may want to check this page for >more info: > >http://support.microsoft.com/?scid=ph;en-us;1596 > >Dan Waters > >-----Original Message----- >Subject: [AccessD] mdac vERSION > >I tried to get the MDAC version on an Windows NT Server and the ComChecker >program didn't work. > >I checked the registry and found FullInstallVer = 2.80.1062.0 > >I searched to try and figure out if this is the latest version. Anyone know >for sure? > >John > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Fri Oct 6 12:53:13 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Fri, 6 Oct 2006 10:53:13 -0700 Subject: [AccessD] Google Code Search In-Reply-To: <45263EB8.167F.006B.0@niagaracounty.com> Message-ID: <006901c6e970$4c1f5a90$6801a8c0@HAL9005> Is the control number a PK? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, October 06, 2006 8:32 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Google Code Search OK...I need help here...BADLY! I've been like the typical guy, who won't stop and ask for directions...I've been working on this one single issue, since yesterday, and I cannot find the problem. I wrote this program, many moons ago, for our Social Services Fraud Unit. They told me, at that time, that they would never exceed, or even get to 1000 records in a year. There largest amount was around 700. The reason this was an issue was their control numbers, which were in the form of 06-001, where this number would be the first case of the year 2006. It then rolls over for the first case of the following year, to 07-001. Despite their claim, I made the control number in the form of, 06-0001, so that it could handle up to 9,999 records. When they saw this, they demanded that I change it. They did not want the extra digit in their number. Well, guess what. Two years ago, they went over the 1000 record mark and called me to make the change. Actually that year they thought it was a fluke or something, so we just made do somehow...I don't even recall. Last year it was the same issue, so I fixed it...or thought I did. It must have worked because it went up to record 06-1000 this year, before halting, whereas last year it stopped at 05-999. Now we are at my current problem, and I just can't figure it out. It looks like it should work and it isn't breaking at 999, but rather 1000, and this confuses me. The code is as follows: Function NewControlNum() As String Dim strSQL As String Dim strNewID As String Dim rst As Recordset strSQL = "SELECT nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS lngMaxID," & _ "Right(Year(Now()),2)" & _ "& '-' & [lngMaxID] AS lngNewID " & _ "FROM tblMain " & _ "WHERE (((Left([tblMain]![txtControlNum],2))=Right(Year(Now()),2)));" Set rst = CodeDb.OpenRecordset(strSQL) With rst strNewID = rst!lngNewID rst.Close Set rst = Nothing End With NewControlNum = strNewID Rem *************************************************************************** Select Case Len(NewControlNum) Case 4 NewControlNum = Left(NewControlNum, 3) & "00" & Right(NewControlNum, 1) Case 5 NewControlNum = Left(NewControlNum, 3) & "0" & Right(NewControlNum, 2) End Select End Function ---------------------------------------------------------------------------- ---------- BTW...this is an A97 program. It works perfectly fine, filling in the next control number, when you hit upon a new record, until it gets to 06-1000, and then it just wants to keep putting in that same number. As a test, I went into the table and added a record 06-1101, just to see what the result would be. It too returned 06-1000 as the next number. I deleted the last 5 records so that we were at 06-996, and it let me re-enter them, putting in the proper numbers, as I went (06-997 thru 06-1000). I just know it is something simple that I am missing. John W. Clark -- 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.407 / Virus Database: 268.12.13/463 - Release Date: 10/4/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.13/463 - Release Date: 10/4/2006 From stuart at lexacorp.com.pg Fri Oct 6 19:36:01 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 07 Oct 2006 10:36:01 +1000 Subject: [AccessD] Dire ned of Help In-Reply-To: <45263EB8.167F.006B.0@niagaracounty.com> References: , <45263EB8.167F.006B.0@niagaracounty.com> Message-ID: <4526F671.5928.E4D2ABA@stuart.lexacorp.com.pg> On 6 Oct 2006 at 11:32, John Clark wrote: > strSQL = "SELECT nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS Mid([tblMain]![txtControlNum],4) will return "999" or "1000", as text strings. "999" is greater than "1000" when considered as a string - the first starts with ASC("9") the second with ASC("1") You need to return the maximum numeric value of the the sequence number, not the greatest string value. Use: nz(Max(Val(Mid([tblMain]![txtControlNum],4))),0)+1 -- Stuart From jengross at gte.net Fri Oct 6 21:09:57 2006 From: jengross at gte.net (Jennifer Gross) Date: Fri, 06 Oct 2006 19:09:57 -0700 Subject: [AccessD] ODBC Message-ID: <000c01c6e9b5$b3393120$6501a8c0@jefferson> Hello All, Question 1: When an Access front end connects to an Access backend is it an ODBC connection? Question 2: If multiple users have separate front ends on the same Terminal Server box linking to a back end on a different box, are they opening separate connections to the back end (ODBC or otherwise), or are they sharing the same connection? Thanks in advance, Jennifer From stuart at lexacorp.com.pg Fri Oct 6 22:04:43 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 07 Oct 2006 13:04:43 +1000 Subject: [AccessD] ODBC In-Reply-To: <000c01c6e9b5$b3393120$6501a8c0@jefferson> References: <000c01c6e9b5$b3393120$6501a8c0@jefferson> Message-ID: <4527194B.2359.ED54D6F@stuart.lexacorp.com.pg> On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or are > they sharing the same connection? They are separate connections. -- Stuart From jengross at gte.net Fri Oct 6 22:15:36 2006 From: jengross at gte.net (Jennifer Gross) Date: Fri, 06 Oct 2006 20:15:36 -0700 Subject: [AccessD] ODBC In-Reply-To: <4527194B.2359.ED54D6F@stuart.lexacorp.com.pg> Message-ID: <000e01c6e9be$e1c2b5d0$6501a8c0@jefferson> Hi Stuart, Do you have experience with Terminal Server with multiple users running separate front ends to a common Access data file? I would love to pick your brain if you do - or anyone else for that matter. I currently have a new IT guy who is in conflict with the old IT guy about our use of Terminal Server. We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. I have made no changes to the database, yet in the past two weeks we have experienced several "corruptions", when the database had been stable for nearly a year without a corruption. Any help would be appreciated. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, October 06, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or > are they sharing the same connection? They are separate connections. -- 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 Sat Oct 7 15:00:54 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sat, 7 Oct 2006 13:00:54 -0700 Subject: [AccessD] OT: Excel Question - Lock a Formula Message-ID: <001a01c6ea4b$4c2619d0$6801a8c0@HAL9005> Dear List: I have a formula in a cell in Column E that averages the next 12 cells in the row (=(F4-R4)/R4). When I insert a column after this formula, it changes the formula to =(G4-S4)/S4. I would like the formulas in column E to not change. Everything else can. Is there a way to ?lock? the formulas in just this column? MTIA Rocky -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 From dwaters at usinternet.com Sat Oct 7 15:43:56 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 7 Oct 2006 15:43:56 -0500 Subject: [AccessD] OT: Excel Question - Lock a Formula In-Reply-To: <7444151.1160251517379.JavaMail.root@Sniper27> Message-ID: <001a01c6ea51$4fbe7410$0200a8c0@danwaters> Hi Rocky, Yes! And it's easy. Just put a $ in front of the column letter in the spreadsheet formula. Create your formula, copy, then paste into the cells where you want the formula to be. When you look at the formula in those cells, you'll see that the column reference has not changed. You can do the same with the row references too. In fact, you can get pretty clever by combining column and row references that do change and that don't change. All the best, Dan Waters -----Original Message----- Subject: [AccessD] OT: Excel Question - Lock a Formula Dear List: I have a formula in a cell in Column E that averages the next 12 cells in the row (=(F4-R4)/R4). When I insert a column after this formula, it changes the formula to =(G4-S4)/S4. I would like the formulas in column E to not change. Everything else can. Is there a way to 'lock' the formulas in just this column? MTIA Rocky -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_Patten at earthlink.net Sat Oct 7 15:46:48 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Sat, 7 Oct 2006 13:46:48 -0700 Subject: [AccessD] OT: Excel Question - Lock a Formula References: <001a01c6ea4b$4c2619d0$6801a8c0@HAL9005> Message-ID: <001101c6ea51$b6e0bc70$0202fea9@BPCS> Hi Rocky Are you looking for $E$4 to lock to E4 ?? Not sure I understood the question but thought I'd give it a try. HTH Bill ----- Original Message ----- From: "Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Saturday, October 07, 2006 1:00 PM Subject: [AccessD] OT: Excel Question - Lock a Formula Dear List: I have a formula in a cell in Column E that averages the next 12 cells in the row (=(F4-R4)/R4). When I insert a column after this formula, it changes the formula to =(G4-S4)/S4. I would like the formulas in column E to not change. Everything else can. Is there a way to ?lock? the formulas in just this column? MTIA Rocky -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sat Oct 7 16:30:38 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sat, 7 Oct 2006 14:30:38 -0700 Subject: [AccessD] OT: Excel Question - Lock a Formula In-Reply-To: <001101c6ea51$b6e0bc70$0202fea9@BPCS> Message-ID: <004401c6ea57$d53e92e0$6801a8c0@HAL9005> Dan says so! :o) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Saturday, October 07, 2006 1:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Excel Question - Lock a Formula Hi Rocky Are you looking for $E$4 to lock to E4 ?? Not sure I understood the question but thought I'd give it a try. HTH Bill ----- Original Message ----- From: "Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Saturday, October 07, 2006 1:00 PM Subject: [AccessD] OT: Excel Question - Lock a Formula Dear List: I have a formula in a cell in Column E that averages the next 12 cells in the row (=(F4-R4)/R4). When I insert a column after this formula, it changes the formula to =(G4-S4)/S4. I would like the formulas in column E to not change. Everything else can. Is there a way to ?lock? the formulas in just this column? MTIA Rocky -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 From bchacc at san.rr.com Sat Oct 7 16:31:10 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sat, 7 Oct 2006 14:31:10 -0700 Subject: [AccessD] OT: Excel Question - Lock a Formula In-Reply-To: <001a01c6ea51$4fbe7410$0200a8c0@danwaters> Message-ID: <004501c6ea57$e86ba1a0$6801a8c0@HAL9005> That's it! Thanks Dan Rocky P.S. Martin: see why I don't think I ought to be writing an Excel book? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, October 07, 2006 1:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Excel Question - Lock a Formula Hi Rocky, Yes! And it's easy. Just put a $ in front of the column letter in the spreadsheet formula. Create your formula, copy, then paste into the cells where you want the formula to be. When you look at the formula in those cells, you'll see that the column reference has not changed. You can do the same with the row references too. In fact, you can get pretty clever by combining column and row references that do change and that don't change. All the best, Dan Waters -----Original Message----- Subject: [AccessD] OT: Excel Question - Lock a Formula Dear List: I have a formula in a cell in Column E that averages the next 12 cells in the row (=(F4-R4)/R4). When I insert a column after this formula, it changes the formula to =(G4-S4)/S4. I would like the formulas in column E to not change. Everything else can. Is there a way to 'lock' the formulas in just this column? MTIA Rocky -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 From martyconnelly at shaw.ca Sat Oct 7 16:52:13 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 07 Oct 2006 14:52:13 -0700 Subject: [AccessD] ODBC In-Reply-To: <000e01c6e9be$e1c2b5d0$6501a8c0@jefferson> References: <000e01c6e9be$e1c2b5d0$6501a8c0@jefferson> Message-ID: <4528218D.6030607@shaw.ca> Is there some reason you are not running your front and backend on the same dedicated server It would speed things up and avoid someone disconnecting your backend. Have a look through these Citrix / Remote Desktop - for an Access-developer covers TS too http://www.vb123.com/toolshed/05_access/remotedesktop.htm My random thoughts on Microsoft Access, Terminal Server and/or Citrix from Tony Toews http://www.granite.ab.ca/access/terminalserver.htm Jennifer Gross wrote: >Hi Stuart, > >Do you have experience with Terminal Server with multiple users running >separate front ends to a common Access data file? I would love to pick >your brain if you do - or anyone else for that matter. I currently have >a new IT guy who is in conflict with the old IT guy about our use of >Terminal Server. We are having data corruption and the new guy says it >is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. I have made no >changes to the database, yet in the past two weeks we have experienced >several "corruptions", when the database had been stable for nearly a >year without a corruption. > >Any help would be appreciated. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Friday, October 06, 2006 8:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ODBC > > >On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > > > >>Question 1: When an Access front end connects to an Access backend is >> >> > > > >>it an ODBC connection? >> >> > >No, it's a JET connection, which is more efficient than ODBC > > > >>Question 2: If multiple users have separate front ends on the same >>Terminal Server box linking to a back end on a different box, are they >> >> > > > >>opening separate connections to the back end (ODBC or otherwise), or >>are they sharing the same connection? >> >> > >They are separate connections. > > > -- Marty Connelly Victoria, B.C. Canada From dwaters at usinternet.com Sat Oct 7 18:14:39 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 7 Oct 2006 18:14:39 -0500 Subject: [AccessD] OT: Excel Question - Lock a Formula In-Reply-To: <27180274.1160256872273.JavaMail.root@sniper30> Message-ID: <001b01c6ea66$5e9c8e80$0200a8c0@danwaters> Wait! Wait! I thought I said you could get clever! Dan Waters -----Original Message----- Subject: Re: [AccessD] OT: Excel Question - Lock a Formula Dan says so! :o) Rocky -----Original Message----- Subject: Re: [AccessD] OT: Excel Question - Lock a Formula Hi Rocky Are you looking for $E$4 to lock to E4 ?? Not sure I understood the question but thought I'd give it a try. HTH Bill ----- Original Message ----- Subject: [AccessD] OT: Excel Question - Lock a Formula Dear List: I have a formula in a cell in Column E that averages the next 12 cells in the row (=(F4-R4)/R4). When I insert a column after this formula, it changes the formula to =(G4-S4)/S4. I would like the formulas in column E to not change. Everything else can. Is there a way to 'lock' the formulas in just this column? MTIA Rocky From david.gray at tpg.com.au Sun Oct 8 03:17:53 2006 From: david.gray at tpg.com.au (David Gray) Date: Sun, 08 Oct 2006 18:17:53 +1000 Subject: [AccessD] Vista Chart Problems In-Reply-To: <001b01c6ea66$5e9c8e80$0200a8c0@danwaters> References: <001b01c6ea66$5e9c8e80$0200a8c0@danwaters> Message-ID: <4528B431.2010102@tpg.com.au> Hi All, Would anyone running Vista and Access XP like to help me workout a workaround for Microsoft Graph Chart control. Works fine in XP misbehaves in Vista. While I am on the subject can anyone recommend a good third party charting OCX for Access? David Gray From jimdettman at verizon.net Sun Oct 8 06:38:41 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 08 Oct 2006 07:38:41 -0400 Subject: [AccessD] ODBC In-Reply-To: <000e01c6e9be$e1c2b5d0$6501a8c0@jefferson> Message-ID: <0J6T0077GF0FGZJL@vms040.mailsrvcs.net> Jennifer, << We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. >> The TS connection settings should be checked. When a connection is dropped, there are various things TS can do; retain the session so you can reconnect, log it out, etc. What you don't want is for it to be logged out. That means Access (and any other running apps) will get terminated whether they want to or not. The other place where TS bites you is references. Unless you change references on the fly or distribute a special TS version of your FE, all users will have references (usually to the local C drive in most cases). This means they are all sharing those references even if you've given them all a separate copy of the FE. With Dll's and type libs, that's not a problem, but if it's a .MDA add-in, you might have some issues with that. Using some of the Access Wizards under TS requires workarounds because of this. Beyond that, running TS is no different then a bunch of client PCs all connecting to the BE in terms of connections. In fact, it's a lot more stable. If I could run Access under TS vs the "normal" way, I'd choose TS hands down every time. Jim. BTW, how many users are we talking about? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Friday, October 06, 2006 11:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Stuart, Do you have experience with Terminal Server with multiple users running separate front ends to a common Access data file? I would love to pick your brain if you do - or anyone else for that matter. I currently have a new IT guy who is in conflict with the old IT guy about our use of Terminal Server. We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. I have made no changes to the database, yet in the past two weeks we have experienced several "corruptions", when the database had been stable for nearly a year without a corruption. Any help would be appreciated. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, October 06, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or > are they sharing the same connection? They are separate connections. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Sun Oct 8 12:09:32 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 8 Oct 2006 18:09:32 +0100 Subject: [AccessD] Google Code Search In-Reply-To: <45263EB8.167F.006B.0@niagaracounty.com> Message-ID: <020c01c6eafc$8663e670$dfc00c54@minster33c3r25> Hi John Mid([tblMain]![txtControlNum],4) returns a string. In string comparison terms 999 beats 1000, so the max is giving you 999 every time. Put Clng() around the Mid and it'll do a numeric comparison, so nz(Max(CLng(Mid([tblMain]![txtControlNum],4))),0)+1 AS lngMaxID -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark > Sent: 06 October 2006 16:32 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Google Code Search > > > OK...I need help here...BADLY! I've been like the typical > guy, who won't stop and ask for directions...I've been > working on this one single issue, since yesterday, and I > cannot find the problem. > > I wrote this program, many moons ago, for our Social Services > Fraud Unit. They told me, at that time, that they would never > exceed, or even get to 1000 records in a year. There largest > amount was around 700. The reason this was an issue was their > control numbers, which were in the form of 06-001, where this > number would be the first case of the year 2006. It then > rolls over for the first case of the following year, to > 07-001. Despite their claim, I made the control number in the > form of, 06-0001, so that it could handle up to 9,999 > records. When they saw this, they demanded that I change it. > They did not want the extra digit in their number. > > Well, guess what. Two years ago, they went over the 1000 > record mark and called me to make the change. Actually that > year they thought it was a fluke or something, so we just > made do somehow...I don't even recall. Last year it was the > same issue, so I fixed it...or thought I did. It must have > worked because it went up to record 06-1000 this year, before > halting, whereas last year it stopped at 05-999. > > Now we are at my current problem, and I just can't figure it > out. It looks like it should work and it isn't breaking at > 999, but rather 1000, and this confuses me. The code is as follows: > > Function NewControlNum() As String > Dim strSQL As String > Dim strNewID As String > Dim rst As Recordset > strSQL = "SELECT > nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS lngMaxID," & _ > "Right(Year(Now()),2)" & _ > "& '-' & [lngMaxID] AS lngNewID " & _ > "FROM tblMain " & _ > "WHERE > (((Left([tblMain]![txtControlNum],2))=Right(Year(Now()),2)));" > Set rst = CodeDb.OpenRecordset(strSQL) > With rst > strNewID = rst!lngNewID > rst.Close > Set rst = Nothing > End With > NewControlNum = strNewID > > Rem > ************************************************************** > ************* > > Select Case Len(NewControlNum) > Case 4 > NewControlNum = Left(NewControlNum, 3) & "00" & > Right(NewControlNum, 1) > Case 5 > NewControlNum = Left(NewControlNum, 3) & "0" & > Right(NewControlNum, 2) End Select > > > End Function > > -------------------------------------------------------------- > ------------------------ > > BTW...this is an A97 program. > > It works perfectly fine, filling in the next control number, > when you hit upon a new record, until it gets to 06-1000, and > then it just wants to keep putting in that same number. > > As a test, I went into the table and added a record 06-1101, > just to see what the result would be. It too returned 06-1000 > as the next number. I deleted the last 5 records so that we > were at 06-996, and it let me re-enter them, putting in the > proper numbers, as I went (06-997 thru 06-1000). > > I just know it is something simple that I am missing. > > John W. Clark > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Sun Oct 8 12:13:14 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 8 Oct 2006 18:13:14 +0100 Subject: [AccessD] Google Code Search In-Reply-To: <020c01c6eafc$8663e670$dfc00c54@minster33c3r25> Message-ID: <020d01c6eafd$0aa0e5a0$dfc00c54@minster33c3r25> Oops, didn't read ahead and see that the subject line had changed and others had resolved the problem. Sorry folks. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: 08 October 2006 18:10 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Google Code Search > > > Hi John > > Mid([tblMain]![txtControlNum],4) returns a string. In string > comparison terms 999 beats 1000, so the max is giving you 999 > every time. Put Clng() around the Mid and it'll do a numeric > comparison, so > > nz(Max(CLng(Mid([tblMain]![txtControlNum],4))),0)+1 AS lngMaxID > > > -- Andy Lacey > http://www.minstersystems.co.uk > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > John Clark > > Sent: 06 October 2006 16:32 > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Google Code Search > > > > > > OK...I need help here...BADLY! I've been like the typical > > guy, who won't stop and ask for directions...I've been > > working on this one single issue, since yesterday, and I > > cannot find the problem. > > > > I wrote this program, many moons ago, for our Social Services > > Fraud Unit. They told me, at that time, that they would never > > exceed, or even get to 1000 records in a year. There largest > > amount was around 700. The reason this was an issue was their > > control numbers, which were in the form of 06-001, where this > > number would be the first case of the year 2006. It then > > rolls over for the first case of the following year, to > > 07-001. Despite their claim, I made the control number in the > > form of, 06-0001, so that it could handle up to 9,999 > > records. When they saw this, they demanded that I change it. > > They did not want the extra digit in their number. > > > > Well, guess what. Two years ago, they went over the 1000 > > record mark and called me to make the change. Actually that > > year they thought it was a fluke or something, so we just > > made do somehow...I don't even recall. Last year it was the > > same issue, so I fixed it...or thought I did. It must have > > worked because it went up to record 06-1000 this year, before > > halting, whereas last year it stopped at 05-999. > > > > Now we are at my current problem, and I just can't figure it > > out. It looks like it should work and it isn't breaking at > > 999, but rather 1000, and this confuses me. The code is as follows: > > > > Function NewControlNum() As String > > Dim strSQL As String > > Dim strNewID As String > > Dim rst As Recordset > > strSQL = "SELECT > > nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS lngMaxID," & _ > > "Right(Year(Now()),2)" & _ > > "& '-' & [lngMaxID] AS lngNewID " & _ > > "FROM tblMain " & _ > > "WHERE > > (((Left([tblMain]![txtControlNum],2))=Right(Year(Now()),2)));" > > Set rst = CodeDb.OpenRecordset(strSQL) > > With rst > > strNewID = rst!lngNewID > > rst.Close > > Set rst = Nothing > > End With > > NewControlNum = strNewID > > > > Rem > > ************************************************************** > > ************* > > > > Select Case Len(NewControlNum) > > Case 4 > > NewControlNum = Left(NewControlNum, 3) & "00" & > > Right(NewControlNum, 1) > > Case 5 > > NewControlNum = Left(NewControlNum, 3) & "0" & > > Right(NewControlNum, 2) End Select > > > > > > End Function > > > > -------------------------------------------------------------- > > ------------------------ > > > > BTW...this is an A97 program. > > > > It works perfectly fine, filling in the next control number, > > when you hit upon a new record, until it gets to 06-1000, and > > then it just wants to keep putting in that same number. > > > > As a test, I went into the table and added a record 06-1101, > > just to see what the result would be. It too returned 06-1000 > > as the next number. I deleted the last 5 records so that we > > were at 06-996, and it let me re-enter them, putting in the > > proper numbers, as I went (06-997 thru 06-1000). > > > > I just know it is something simple that I am missing. > > > > John W. Clark > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From wdhindman at dejpolsystems.com Sun Oct 8 13:58:04 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 8 Oct 2006 14:58:04 -0400 Subject: [AccessD] Google Code Search References: Message-ID: <000b01c6eb0b$afd976f0$153ce944@50NM721> ...took me a while to figure it out ...must be getting old. ...to really use it you must have a solution almost in hand ...you really can't go looking for "how" ...have to play with it some more I guess. William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, October 06, 2006 5:51 AM Subject: [AccessD] Google Code Search > Hi all > > This service is taking off: > > http://www.google.com/codesearch > > /gustav > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jengross at gte.net Sun Oct 8 15:18:24 2006 From: jengross at gte.net (Jennifer Gross) Date: Sun, 08 Oct 2006 13:18:24 -0700 Subject: [AccessD] ODBC In-Reply-To: <0J6T0077GF0FGZJL@vms040.mailsrvcs.net> Message-ID: <003201c6eb16$ebbc4570$6501a8c0@jefferson> Hi Jim, We have <25 users. The FE is only referencing DLLs and type libraries so hopefully that should not be a problem. Recently a WAMP Server (Apache) was installed on the TS box. Although it is inactive I have concerns that it has changed some setting that are contributing to the problems we are having. New IT guy says it was installed subsequent to the first corruption, but it was the same day. Since then the database has been "corrupting" at least once a day - typically around lunch time when all users are getting in to clock out - their time clock is part of the database. No data is lost, but the repair utility has to be run. In addition to the "corruptions" another strange thing has been happening during this time period - in the past when I was posting a FE update, if someone was using the database the linking to the BE would take 20+ minutes, I assume because of the record locking checks. Now, it takes less than a minute, as though no one is working in the database and everyone who is working in the database gets kicked out. We have one guy who works late nights, and that is when I post FE updates. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, October 08, 2006 4:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Jennifer, << We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. >> The TS connection settings should be checked. When a connection is dropped, there are various things TS can do; retain the session so you can reconnect, log it out, etc. What you don't want is for it to be logged out. That means Access (and any other running apps) will get terminated whether they want to or not. The other place where TS bites you is references. Unless you change references on the fly or distribute a special TS version of your FE, all users will have references (usually to the local C drive in most cases). This means they are all sharing those references even if you've given them all a separate copy of the FE. With Dll's and type libs, that's not a problem, but if it's a .MDA add-in, you might have some issues with that. Using some of the Access Wizards under TS requires workarounds because of this. Beyond that, running TS is no different then a bunch of client PCs all connecting to the BE in terms of connections. In fact, it's a lot more stable. If I could run Access under TS vs the "normal" way, I'd choose TS hands down every time. Jim. BTW, how many users are we talking about? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Friday, October 06, 2006 11:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Stuart, Do you have experience with Terminal Server with multiple users running separate front ends to a common Access data file? I would love to pick your brain if you do - or anyone else for that matter. I currently have a new IT guy who is in conflict with the old IT guy about our use of Terminal Server. We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. I have made no changes to the database, yet in the past two weeks we have experienced several "corruptions", when the database had been stable for nearly a year without a corruption. Any help would be appreciated. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, October 06, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or > are they sharing the same connection? They are separate connections. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Oct 8 19:15:09 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 8 Oct 2006 20:15:09 -0400 Subject: [AccessD] test Message-ID: <000a01c6eb37$fc221ae0$647aa8c0@m6805> test John W. Colby Colby Consulting www.ColbyConsulting.com From dwaters at usinternet.com Sun Oct 8 19:22:34 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 8 Oct 2006 19:22:34 -0500 Subject: [AccessD] test In-Reply-To: <27736664.1160353161036.JavaMail.root@sniper2> Message-ID: <001f01c6eb39$04ef1b40$0200a8c0@danwaters> OK! Dan Waters -----Original Message----- Subject: [AccessD] test test John W. Colby Colby Consulting www.ColbyConsulting.com From jimdettman at verizon.net Mon Oct 9 07:24:35 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 09 Oct 2006 08:24:35 -0400 Subject: [AccessD] ODBC In-Reply-To: <003201c6eb16$ebbc4570$6501a8c0@jefferson> Message-ID: <0J6V00F4MBSZDMRE@vms040.mailsrvcs.net> Jennifer, <> Maybe not a setting that was changed, but certainly it is consuming more resources on the server. My first stop would be the system event logs checking for any errors or warnings. I would also go back and check all TS settings in general and for each user. A disconnect should not logout the session. <> Someone is getting terminated abnormally. Have the users reported any strange behavior or problems? I didn't see in the prior messages what version of Access you are using, but what you need to do is find out what user(s) are leaving the database in a corrupt state. The method you use depends on the version (either using LDBVIEW or the JET roster). Once you have that, you can build up a pattern (same user all the time or different users each time). That generally gives you a clue where the problem lies. <> I would say 20+ minutes was abnormal, but without knowing what you mean by doing a "FE update", I can't say for sure. << Now, it takes less than a minute, as though no one is working in the database and everyone who is working in the database gets kicked out. >> How do they get 'Kicked out'. A message? Window simply closes? There is nothing in Access that does this on it's own. It's either something built into your app or something abnormal that is occurring. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, October 08, 2006 4:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Jim, We have <25 users. The FE is only referencing DLLs and type libraries so hopefully that should not be a problem. Recently a WAMP Server (Apache) was installed on the TS box. Although it is inactive I have concerns that it has changed some setting that are contributing to the problems we are having. New IT guy says it was installed subsequent to the first corruption, but it was the same day. Since then the database has been "corrupting" at least once a day - typically around lunch time when all users are getting in to clock out - their time clock is part of the database. No data is lost, but the repair utility has to be run. In addition to the "corruptions" another strange thing has been happening during this time period - in the past when I was posting a FE update, if someone was using the database the linking to the BE would take 20+ minutes, I assume because of the record locking checks. Now, it takes less than a minute, as though no one is working in the database and everyone who is working in the database gets kicked out. We have one guy who works late nights, and that is when I post FE updates. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, October 08, 2006 4:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Jennifer, << We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. >> The TS connection settings should be checked. When a connection is dropped, there are various things TS can do; retain the session so you can reconnect, log it out, etc. What you don't want is for it to be logged out. That means Access (and any other running apps) will get terminated whether they want to or not. The other place where TS bites you is references. Unless you change references on the fly or distribute a special TS version of your FE, all users will have references (usually to the local C drive in most cases). This means they are all sharing those references even if you've given them all a separate copy of the FE. With Dll's and type libs, that's not a problem, but if it's a .MDA add-in, you might have some issues with that. Using some of the Access Wizards under TS requires workarounds because of this. Beyond that, running TS is no different then a bunch of client PCs all connecting to the BE in terms of connections. In fact, it's a lot more stable. If I could run Access under TS vs the "normal" way, I'd choose TS hands down every time. Jim. BTW, how many users are we talking about? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Friday, October 06, 2006 11:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Stuart, Do you have experience with Terminal Server with multiple users running separate front ends to a common Access data file? I would love to pick your brain if you do - or anyone else for that matter. I currently have a new IT guy who is in conflict with the old IT guy about our use of Terminal Server. We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. I have made no changes to the database, yet in the past two weeks we have experienced several "corruptions", when the database had been stable for nearly a year without a corruption. Any help would be appreciated. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, October 06, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or > are they sharing the same connection? They are separate connections. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Oct 9 10:18:44 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 9 Oct 2006 10:18:44 -0500 Subject: [AccessD] ODBC Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDD29@MARLOW_MAIN2.marlow.com> What version of Access? If it's 97, you can easily track down WHO is corrupting the database, which would include the machine name. That's the first place to start as to finding out what's causing the problem. If it's 2000 or later, I have yet to find a utility that actually show's who corrupted a 2000 or later .mdb. Drew -----Original Message----- From: Jennifer Gross [mailto:jengross at gte.net] Sent: Friday, October 06, 2006 10:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Stuart, Do you have experience with Terminal Server with multiple users running separate front ends to a common Access data file? I would love to pick your brain if you do - or anyone else for that matter. I currently have a new IT guy who is in conflict with the old IT guy about our use of Terminal Server. We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. I have made no changes to the database, yet in the past two weeks we have experienced several "corruptions", when the database had been stable for nearly a year without a corruption. Any help would be appreciated. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, October 06, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or > are they sharing the same connection? They are separate connections. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Mon Oct 9 12:12:01 2006 From: jengross at gte.net (Jennifer Gross) Date: Mon, 09 Oct 2006 10:12:01 -0700 Subject: [AccessD] ODBC In-Reply-To: <0J6V00F4MBSZDMRE@vms040.mailsrvcs.net> Message-ID: <002601c6ebc6$091fd190$6501a8c0@jefferson> Hi Jim, I am using A2K and I would love to know how to find out who is corrupting the database. I cannot use Dev Ashish's LDB Viewer because it does not recognize the BE as a valid database when it is in a "corrupt" state. Thank you, Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, October 09, 2006 5:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Jennifer, <> Maybe not a setting that was changed, but certainly it is consuming more resources on the server. My first stop would be the system event logs checking for any errors or warnings. I would also go back and check all TS settings in general and for each user. A disconnect should not logout the session. <> Someone is getting terminated abnormally. Have the users reported any strange behavior or problems? I didn't see in the prior messages what version of Access you are using, but what you need to do is find out what user(s) are leaving the database in a corrupt state. The method you use depends on the version (either using LDBVIEW or the JET roster). Once you have that, you can build up a pattern (same user all the time or different users each time). That generally gives you a clue where the problem lies. <> I would say 20+ minutes was abnormal, but without knowing what you mean by doing a "FE update", I can't say for sure. << Now, it takes less than a minute, as though no one is working in the database and everyone who is working in the database gets kicked out. >> How do they get 'Kicked out'. A message? Window simply closes? There is nothing in Access that does this on it's own. It's either something built into your app or something abnormal that is occurring. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, October 08, 2006 4:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Jim, We have <25 users. The FE is only referencing DLLs and type libraries so hopefully that should not be a problem. Recently a WAMP Server (Apache) was installed on the TS box. Although it is inactive I have concerns that it has changed some setting that are contributing to the problems we are having. New IT guy says it was installed subsequent to the first corruption, but it was the same day. Since then the database has been "corrupting" at least once a day - typically around lunch time when all users are getting in to clock out - their time clock is part of the database. No data is lost, but the repair utility has to be run. In addition to the "corruptions" another strange thing has been happening during this time period - in the past when I was posting a FE update, if someone was using the database the linking to the BE would take 20+ minutes, I assume because of the record locking checks. Now, it takes less than a minute, as though no one is working in the database and everyone who is working in the database gets kicked out. We have one guy who works late nights, and that is when I post FE updates. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, October 08, 2006 4:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Jennifer, << We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. >> The TS connection settings should be checked. When a connection is dropped, there are various things TS can do; retain the session so you can reconnect, log it out, etc. What you don't want is for it to be logged out. That means Access (and any other running apps) will get terminated whether they want to or not. The other place where TS bites you is references. Unless you change references on the fly or distribute a special TS version of your FE, all users will have references (usually to the local C drive in most cases). This means they are all sharing those references even if you've given them all a separate copy of the FE. With Dll's and type libs, that's not a problem, but if it's a .MDA add-in, you might have some issues with that. Using some of the Access Wizards under TS requires workarounds because of this. Beyond that, running TS is no different then a bunch of client PCs all connecting to the BE in terms of connections. In fact, it's a lot more stable. If I could run Access under TS vs the "normal" way, I'd choose TS hands down every time. Jim. BTW, how many users are we talking about? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Friday, October 06, 2006 11:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Stuart, Do you have experience with Terminal Server with multiple users running separate front ends to a common Access data file? I would love to pick your brain if you do - or anyone else for that matter. I currently have a new IT guy who is in conflict with the old IT guy about our use of Terminal Server. We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. I have made no changes to the database, yet in the past two weeks we have experienced several "corruptions", when the database had been stable for nearly a year without a corruption. Any help would be appreciated. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, October 06, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or > are they sharing the same connection? They are separate connections. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Oct 9 14:27:43 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 09 Oct 2006 12:27:43 -0700 Subject: [AccessD] ODBC In-Reply-To: <002601c6ebc6$091fd190$6501a8c0@jefferson> References: <002601c6ebc6$091fd190$6501a8c0@jefferson> Message-ID: <452AA2AF.5040707@shaw.ca> You could try opening the corrupt ldb file and read it with notepad or with a hexeditor, you shoud be able to read the machine name and userid of the clients extant in mdb at corruption However the machine name may be just the server something like CITRIX01 One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". Normally the last Access process to have the .mdb open will delete the .ldb file when the .mdb file gets closed, or at least remove the last lock on the file Now this is just a wild idea but with a copy of the corrupt backend mdb and ldb Open up the .ldb file in notepad, this will establish at least one system file lock and you might then be able to look at both through the LDB viewer with or without using the schema roster. Another way without opening a program to establish a lock is maybe to do a Dir( "c:\filepathname to ldb") then run the userroster method Jennifer Gross wrote: >Hi Jim, > >I am using A2K and I would love to know how to find out who is >corrupting the database. I cannot use Dev Ashish's LDB Viewer because >it does not recognize the BE as a valid database when it is in a >"corrupt" state. > >Thank you, > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, October 09, 2006 5:25 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><it is inactive I have concerns that it has changed some setting that are >contributing to the problems we are having. >> > > Maybe not a setting that was changed, but certainly it is consuming >more resources on the server. My first stop would be the system event >logs checking for any errors or warnings. I would also go back and >check all TS settings in general and for each user. A disconnect should >not logout the session. > ><typically around lunch time when all users are getting in to clock out - >their time clock is part of the database. No data is lost, but the >repair utility has to be run.>> > > Someone is getting terminated abnormally. Have the users reported any >strange behavior or problems? I didn't see in the prior messages what >version of Access you are using, but what you need to do is find out >what >user(s) are leaving the database in a corrupt state. The method you use >depends on the version (either using LDBVIEW or the JET roster). Once >you have that, you can build up a pattern (same user all the time or >different users each time). That generally gives you a clue where the >problem lies. > ><update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. >> > > I would say 20+ minutes was abnormal, but without knowing what you >mean by doing a "FE update", I can't say for sure. > ><< Now, >it takes less than a minute, as though no one is working in the database >and everyone who is working in the database gets kicked out. >> > > How do they get 'Kicked out'. A message? Window simply closes? > > There is nothing in Access that does this on it's own. It's either >something built into your app or something abnormal that is occurring. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, October 08, 2006 4:18 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Jim, > >We have <25 users. > >The FE is only referencing DLLs and type libraries so hopefully that >should not be a problem. > >Recently a WAMP Server (Apache) was installed on the TS box. Although >it is inactive I have concerns that it has changed some setting that are >contributing to the problems we are having. New IT guy says it was >installed subsequent to the first corruption, but it was the same day. >Since then the database has been "corrupting" at least once a day - >typically around lunch time when all users are getting in to clock out - >their time clock is part of the database. No data is lost, but the >repair utility has to be run. > >In addition to the "corruptions" another strange thing has been >happening during this time period - in the past when I was posting a FE >update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. Now, >it takes less than a minute, as though no one is working in the database >and everyone who is working in the database gets kicked out. We have >one guy who works late nights, and that is when I post FE updates. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Sunday, October 08, 2006 4:39 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><< We are having data corruption and the new guy says it >is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. >> > > The TS connection settings should be checked. When a connection is >dropped, there are various things TS can do; retain the session so you >can reconnect, log it out, etc. > > What you don't want is for it to be logged out. That means Access >(and any other running apps) will get terminated whether they want to or >not. > > The other place where TS bites you is references. Unless you change >references on the fly or distribute a special TS version of your FE, all >users will have references (usually to the local C drive in most cases). >This means they are all sharing those references even if you've given >them all a separate copy of the FE. With Dll's and type libs, that's >not a problem, but if it's a .MDA add-in, you might have some issues >with that. Using some of the Access Wizards under TS requires >workarounds because of this. > > Beyond that, running TS is no different then a bunch of client PCs all >connecting to the BE in terms of connections. In fact, it's a lot more >stable. If I could run Access under TS vs the "normal" way, I'd choose >TS hands down every time. > >Jim. > > BTW, how many users are we talking about? > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Friday, October 06, 2006 11:16 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Stuart, > >Do you have experience with Terminal Server with multiple users running >separate front ends to a common Access data file? I would love to pick >your brain if you do - or anyone else for that matter. I currently have >a new IT guy who is in conflict with the old IT guy about our use of >Terminal Server. We are having data corruption and the new guy says it >is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. I have made no >changes to the database, yet in the past two weeks we have experienced >several "corruptions", when the database had been stable for nearly a >year without a corruption. > >Any help would be appreciated. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Friday, October 06, 2006 8:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ODBC > > >On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > > > >>Question 1: When an Access front end connects to an Access backend is >> >> > > > >>it an ODBC connection? >> >> > >No, it's a JET connection, which is more efficient than ODBC > > > >>Question 2: If multiple users have separate front ends on the same >>Terminal Server box linking to a back end on a different box, are they >> >> > > > >>opening separate connections to the back end (ODBC or otherwise), or >>are they sharing the same connection? >> >> > >They are separate connections. > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Mon Oct 9 14:46:26 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 9 Oct 2006 15:46:26 -0400 Subject: [AccessD] ODBC In-Reply-To: <452AA2AF.5040707@shaw.ca> Message-ID: <004801c6ebdb$9c789070$647aa8c0@m6805> If you look at an MDB with ANYTHING make SURE YOU LOOK AT A COPY. You will corrupt it if you happen to open it in word. And I mean irretrievably lost!!!. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, October 09, 2006 3:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC You could try opening the corrupt ldb file and read it with notepad or with a hexeditor, you shoud be able to read the machine name and userid of the clients extant in mdb at corruption However the machine name may be just the server something like CITRIX01 One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". Normally the last Access process to have the .mdb open will delete the .ldb file when the .mdb file gets closed, or at least remove the last lock on the file Now this is just a wild idea but with a copy of the corrupt backend mdb and ldb Open up the .ldb file in notepad, this will establish at least one system file lock and you might then be able to look at both through the LDB viewer with or without using the schema roster. Another way without opening a program to establish a lock is maybe to do a Dir( "c:\filepathname to ldb") then run the userroster method Jennifer Gross wrote: >Hi Jim, > >I am using A2K and I would love to know how to find out who is >corrupting the database. I cannot use Dev Ashish's LDB Viewer because >it does not recognize the BE as a valid database when it is in a >"corrupt" state. > >Thank you, > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, October 09, 2006 5:25 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><Although it is inactive I have concerns that it has changed some >setting that are contributing to the problems we are having. >> > > Maybe not a setting that was changed, but certainly it is consuming >more resources on the server. My first stop would be the system event >logs checking for any errors or warnings. I would also go back and >check all TS settings in general and for each user. A disconnect >should not logout the session. > ><typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run.>> > > Someone is getting terminated abnormally. Have the users reported any >strange behavior or problems? I didn't see in the prior messages what >version of Access you are using, but what you need to do is find out >what >user(s) are leaving the database in a corrupt state. The method you >use depends on the version (either using LDBVIEW or the JET roster). >Once you have that, you can build up a pattern (same user all the time >or different users each time). That generally gives you a clue where >the problem lies. > ><update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. >> > > I would say 20+ minutes was abnormal, but without knowing what you >mean by doing a "FE update", I can't say for sure. > ><< Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >>> > > How do they get 'Kicked out'. A message? Window simply closes? > > There is nothing in Access that does this on it's own. It's either >something built into your app or something abnormal that is occurring. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, October 08, 2006 4:18 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Jim, > >We have <25 users. > >The FE is only referencing DLLs and type libraries so hopefully that >should not be a problem. > >Recently a WAMP Server (Apache) was installed on the TS box. Although >it is inactive I have concerns that it has changed some setting that >are contributing to the problems we are having. New IT guy says it was >installed subsequent to the first corruption, but it was the same day. >Since then the database has been "corrupting" at least once a day - >typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run. > >In addition to the "corruptions" another strange thing has been >happening during this time period - in the past when I was posting a FE >update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >We have one guy who works late nights, and that is when I post FE updates. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Sunday, October 08, 2006 4:39 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><< We are having data corruption and the new guy says it is because of >Terminal Server - too many connections to the back end from the same >box. I know very little about the network/hardware/software aspects >and am at a loss. >> > > The TS connection settings should be checked. When a connection is >dropped, there are various things TS can do; retain the session so you >can reconnect, log it out, etc. > > What you don't want is for it to be logged out. That means Access >(and any other running apps) will get terminated whether they want to >or not. > > The other place where TS bites you is references. Unless you change >references on the fly or distribute a special TS version of your FE, >all users will have references (usually to the local C drive in most cases). >This means they are all sharing those references even if you've given >them all a separate copy of the FE. With Dll's and type libs, that's >not a problem, but if it's a .MDA add-in, you might have some issues >with that. Using some of the Access Wizards under TS requires >workarounds because of this. > > Beyond that, running TS is no different then a bunch of client PCs >all connecting to the BE in terms of connections. In fact, it's a lot >more stable. If I could run Access under TS vs the "normal" way, I'd >choose TS hands down every time. > >Jim. > > BTW, how many users are we talking about? > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Friday, October 06, 2006 11:16 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Stuart, > >Do you have experience with Terminal Server with multiple users running >separate front ends to a common Access data file? I would love to pick >your brain if you do - or anyone else for that matter. I currently >have a new IT guy who is in conflict with the old IT guy about our use >of Terminal Server. We are having data corruption and the new guy says >it is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. I have made no >changes to the database, yet in the past two weeks we have experienced >several "corruptions", when the database had been stable for nearly a >year without a corruption. > >Any help would be appreciated. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Friday, October 06, 2006 8:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ODBC > > >On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > > > >>Question 1: When an Access front end connects to an Access backend is >> >> > > > >>it an ODBC connection? >> >> > >No, it's a JET connection, which is more efficient than ODBC > > > >>Question 2: If multiple users have separate front ends on the same >>Terminal Server box linking to a back end on a different box, are they >> >> > > > >>opening separate connections to the back end (ODBC or otherwise), or >>are they sharing the same connection? >> >> > >They are separate connections. > > > -- 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 jengross at gte.net Mon Oct 9 15:10:57 2006 From: jengross at gte.net (Jennifer Gross) Date: Mon, 09 Oct 2006 13:10:57 -0700 Subject: [AccessD] ODBC - Linked Table Manager - Record Locking?? In-Reply-To: <004801c6ebdb$9c789070$647aa8c0@m6805> Message-ID: <003d01c6ebdf$0bc56cc0$6501a8c0@jefferson> I am using A2K, around 25 users, FE/BE, FE<20MB, BE<100MB, all user FEs are on Terminal Server the BE resides on a different box. In the past during linking a new FE, if someone was working in the database it took time, I imagine because of record locking checks. In my last two FE updates, even though people were working in the database the linking of the tables to the BE was very quick and the users either got kicked out (I'm not sure if they received a message or their FE just closed) or they started to have problems, such as drop down lists not filling properly and #Error appearing in fields. It is as though the record locking is not being recognized. Has anyone seen this type of behavior and know what might be causing it? Thank you, Jennifer Gross -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, October 09, 2006 12:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC If you look at an MDB with ANYTHING make SURE YOU LOOK AT A COPY. You will corrupt it if you happen to open it in word. And I mean irretrievably lost!!!. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, October 09, 2006 3:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC You could try opening the corrupt ldb file and read it with notepad or with a hexeditor, you shoud be able to read the machine name and userid of the clients extant in mdb at corruption However the machine name may be just the server something like CITRIX01 One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". Normally the last Access process to have the .mdb open will delete the .ldb file when the .mdb file gets closed, or at least remove the last lock on the file Now this is just a wild idea but with a copy of the corrupt backend mdb and ldb Open up the .ldb file in notepad, this will establish at least one system file lock and you might then be able to look at both through the LDB viewer with or without using the schema roster. Another way without opening a program to establish a lock is maybe to do a Dir( "c:\filepathname to ldb") then run the userroster method Jennifer Gross wrote: >Hi Jim, > >I am using A2K and I would love to know how to find out who is >corrupting the database. I cannot use Dev Ashish's LDB Viewer because >it does not recognize the BE as a valid database when it is in a >"corrupt" state. > >Thank you, > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, October 09, 2006 5:25 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><Although it is inactive I have concerns that it has changed some >setting that are contributing to the problems we are having. >> > > Maybe not a setting that was changed, but certainly it is consuming >more resources on the server. My first stop would be the system event >logs checking for any errors or warnings. I would also go back and >check all TS settings in general and for each user. A disconnect >should not logout the session. > ><typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run.>> > > Someone is getting terminated abnormally. Have the users reported any >strange behavior or problems? I didn't see in the prior messages what >version of Access you are using, but what you need to do is find out >what >user(s) are leaving the database in a corrupt state. The method you >use depends on the version (either using LDBVIEW or the JET roster). >Once you have that, you can build up a pattern (same user all the time >or different users each time). That generally gives you a clue where >the problem lies. > ><update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. >> > > I would say 20+ minutes was abnormal, but without knowing what you >mean by doing a "FE update", I can't say for sure. > ><< Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >>> > > How do they get 'Kicked out'. A message? Window simply closes? > > There is nothing in Access that does this on it's own. It's either >something built into your app or something abnormal that is occurring. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, October 08, 2006 4:18 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Jim, > >We have <25 users. > >The FE is only referencing DLLs and type libraries so hopefully that >should not be a problem. > >Recently a WAMP Server (Apache) was installed on the TS box. Although >it is inactive I have concerns that it has changed some setting that >are contributing to the problems we are having. New IT guy says it was >installed subsequent to the first corruption, but it was the same day. >Since then the database has been "corrupting" at least once a day - >typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run. > >In addition to the "corruptions" another strange thing has been >happening during this time period - in the past when I was posting a FE >update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >We have one guy who works late nights, and that is when I post FE updates. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Sunday, October 08, 2006 4:39 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><< We are having data corruption and the new guy says it is because of >Terminal Server - too many connections to the back end from the same >box. I know very little about the network/hardware/software aspects >and am at a loss. >> > > The TS connection settings should be checked. When a connection is >dropped, there are various things TS can do; retain the session so you >can reconnect, log it out, etc. > > What you don't want is for it to be logged out. That means Access >(and any other running apps) will get terminated whether they want to >or not. > > The other place where TS bites you is references. Unless you change >references on the fly or distribute a special TS version of your FE, >all users will have references (usually to the local C drive in most cases). >This means they are all sharing those references even if you've given >them all a separate copy of the FE. With Dll's and type libs, that's >not a problem, but if it's a .MDA add-in, you might have some issues >with that. Using some of the Access Wizards under TS requires >workarounds because of this. > > Beyond that, running TS is no different then a bunch of client PCs >all connecting to the BE in terms of connections. In fact, it's a lot >more stable. If I could run Access under TS vs the "normal" way, I'd >choose TS hands down every time. > >Jim. > > BTW, how many users are we talking about? > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Friday, October 06, 2006 11:16 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Stuart, > >Do you have experience with Terminal Server with multiple users running >separate front ends to a common Access data file? I would love to pick >your brain if you do - or anyone else for that matter. I currently >have a new IT guy who is in conflict with the old IT guy about our use >of Terminal Server. We are having data corruption and the new guy says >it is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. I have made no >changes to the database, yet in the past two weeks we have experienced >several "corruptions", when the database had been stable for nearly a >year without a corruption. > >Any help would be appreciated. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Friday, October 06, 2006 8:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ODBC > > >On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > > > >>Question 1: When an Access front end connects to an Access backend is >> >> > > > >>it an ODBC connection? >> >> > >No, it's a JET connection, which is more efficient than ODBC > > > >>Question 2: If multiple users have separate front ends on the same >>Terminal Server box linking to a back end on a different box, are they >> >> > > > >>opening separate connections to the back end (ODBC or otherwise), or >>are they sharing the same connection? >> >> > >They are separate connections. > > > -- 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 cfoust at infostatsystems.com Mon Oct 9 16:11:17 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Oct 2006 14:11:17 -0700 Subject: [AccessD] ODBC - Linked Table Manager - Record Locking?? In-Reply-To: <003d01c6ebdf$0bc56cc0$6501a8c0@jefferson> Message-ID: Just what do you mean by an FE update in this context? How can you update an FE if there are instances of it open on Terminal Server? 2000 and above require exclusive access to the mdb in order to update the design, which includes code, forms and reports. If any users were writing to the database at the time they were "kicked out", that could definitely cause corruption in the back end. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, October 09, 2006 1:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC - Linked Table Manager - Record Locking?? I am using A2K, around 25 users, FE/BE, FE<20MB, BE<100MB, all user FEs are on Terminal Server the BE resides on a different box. In the past during linking a new FE, if someone was working in the database it took time, I imagine because of record locking checks. In my last two FE updates, even though people were working in the database the linking of the tables to the BE was very quick and the users either got kicked out (I'm not sure if they received a message or their FE just closed) or they started to have problems, such as drop down lists not filling properly and #Error appearing in fields. It is as though the record locking is not being recognized. Has anyone seen this type of behavior and know what might be causing it? Thank you, Jennifer Gross -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, October 09, 2006 12:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC If you look at an MDB with ANYTHING make SURE YOU LOOK AT A COPY. You will corrupt it if you happen to open it in word. And I mean irretrievably lost!!!. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, October 09, 2006 3:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC You could try opening the corrupt ldb file and read it with notepad or with a hexeditor, you shoud be able to read the machine name and userid of the clients extant in mdb at corruption However the machine name may be just the server something like CITRIX01 One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". Normally the last Access process to have the .mdb open will delete the .ldb file when the .mdb file gets closed, or at least remove the last lock on the file Now this is just a wild idea but with a copy of the corrupt backend mdb and ldb Open up the .ldb file in notepad, this will establish at least one system file lock and you might then be able to look at both through the LDB viewer with or without using the schema roster. Another way without opening a program to establish a lock is maybe to do a Dir( "c:\filepathname to ldb") then run the userroster method Jennifer Gross wrote: >Hi Jim, > >I am using A2K and I would love to know how to find out who is >corrupting the database. I cannot use Dev Ashish's LDB Viewer because >it does not recognize the BE as a valid database when it is in a >"corrupt" state. > >Thank you, > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, October 09, 2006 5:25 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><Although it is inactive I have concerns that it has changed some >setting that are contributing to the problems we are having. >> > > Maybe not a setting that was changed, but certainly it is consuming >more resources on the server. My first stop would be the system event >logs checking for any errors or warnings. I would also go back and >check all TS settings in general and for each user. A disconnect >should not logout the session. > ><typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run.>> > > Someone is getting terminated abnormally. Have the users reported any >strange behavior or problems? I didn't see in the prior messages what >version of Access you are using, but what you need to do is find out >what >user(s) are leaving the database in a corrupt state. The method you >use depends on the version (either using LDBVIEW or the JET roster). >Once you have that, you can build up a pattern (same user all the time >or different users each time). That generally gives you a clue where >the problem lies. > ><update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. >> > > I would say 20+ minutes was abnormal, but without knowing what you >mean by doing a "FE update", I can't say for sure. > ><< Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >>> > > How do they get 'Kicked out'. A message? Window simply closes? > > There is nothing in Access that does this on it's own. It's either >something built into your app or something abnormal that is occurring. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, October 08, 2006 4:18 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Jim, > >We have <25 users. > >The FE is only referencing DLLs and type libraries so hopefully that >should not be a problem. > >Recently a WAMP Server (Apache) was installed on the TS box. Although >it is inactive I have concerns that it has changed some setting that >are contributing to the problems we are having. New IT guy says it was >installed subsequent to the first corruption, but it was the same day. >Since then the database has been "corrupting" at least once a day - >typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run. > >In addition to the "corruptions" another strange thing has been >happening during this time period - in the past when I was posting a FE >update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >We have one guy who works late nights, and that is when I post FE updates. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Sunday, October 08, 2006 4:39 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><< We are having data corruption and the new guy says it is because of >Terminal Server - too many connections to the back end from the same >box. I know very little about the network/hardware/software aspects >and am at a loss. >> > > The TS connection settings should be checked. When a connection is >dropped, there are various things TS can do; retain the session so you >can reconnect, log it out, etc. > > What you don't want is for it to be logged out. That means Access >(and any other running apps) will get terminated whether they want to >or not. > > The other place where TS bites you is references. Unless you change >references on the fly or distribute a special TS version of your FE, >all users will have references (usually to the local C drive in most cases). >This means they are all sharing those references even if you've given >them all a separate copy of the FE. With Dll's and type libs, that's >not a problem, but if it's a .MDA add-in, you might have some issues >with that. Using some of the Access Wizards under TS requires >workarounds because of this. > > Beyond that, running TS is no different then a bunch of client PCs >all connecting to the BE in terms of connections. In fact, it's a lot >more stable. If I could run Access under TS vs the "normal" way, I'd >choose TS hands down every time. > >Jim. > > BTW, how many users are we talking about? > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Friday, October 06, 2006 11:16 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Stuart, > >Do you have experience with Terminal Server with multiple users running >separate front ends to a common Access data file? I would love to pick >your brain if you do - or anyone else for that matter. I currently >have a new IT guy who is in conflict with the old IT guy about our use >of Terminal Server. We are having data corruption and the new guy says >it is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. I have made no >changes to the database, yet in the past two weeks we have experienced >several "corruptions", when the database had been stable for nearly a >year without a corruption. > >Any help would be appreciated. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Friday, October 06, 2006 8:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ODBC > > >On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > > > >>Question 1: When an Access front end connects to an Access backend is >> >> > > > >>it an ODBC connection? >> >> > >No, it's a JET connection, which is more efficient than ODBC > > > >>Question 2: If multiple users have separate front ends on the same >>Terminal Server box linking to a back end on a different box, are they >> >> > > > >>opening separate connections to the back end (ODBC or otherwise), or >>are they sharing the same connection? >> >> > >They are separate connections. > > > -- 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 askolits at ot.com Mon Oct 9 16:30:11 2006 From: askolits at ot.com (John Skolits) Date: Mon, 9 Oct 2006 17:30:11 -0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <452AA2AF.5040707@shaw.ca> Message-ID: <012b01c6ebea$1cde1970$6501a8c0@LaptopXP> I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John From jengross at gte.net Mon Oct 9 16:31:39 2006 From: jengross at gte.net (Jennifer Gross) Date: Mon, 09 Oct 2006 14:31:39 -0700 Subject: [AccessD] ODBC - Linked Table Manager - Record Locking?? In-Reply-To: Message-ID: <004001c6ebea$51d66ec0$6501a8c0@jefferson> Hi Charlotte, What I am doing is putting a new front end in the working folder, which will copy over to each user's FE folder the next time the user logs out and back into the database. I use Ted Avery's FE updater. So I am just linking it up so that it is ready to copy. Basically I make all my programming changes on my work computer within a test environment. When I am ready to go live I copy the FE to the server, link it to the live BE and store the FE in a specific folder. Each time the users open their existing FE it checks to see if it is the most current, and if not copies the most current FE to their working folder. The anomaly that I am seeing is happening when I am linking my new FE to the BE, prior to putting it in the folder that the user's FE will checking to see if their FE is the most current. I hope this makes sense. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, October 09, 2006 2:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC - Linked Table Manager - Record Locking?? Just what do you mean by an FE update in this context? How can you update an FE if there are instances of it open on Terminal Server? 2000 and above require exclusive access to the mdb in order to update the design, which includes code, forms and reports. If any users were writing to the database at the time they were "kicked out", that could definitely cause corruption in the back end. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, October 09, 2006 1:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC - Linked Table Manager - Record Locking?? I am using A2K, around 25 users, FE/BE, FE<20MB, BE<100MB, all user FEs are on Terminal Server the BE resides on a different box. In the past during linking a new FE, if someone was working in the database it took time, I imagine because of record locking checks. In my last two FE updates, even though people were working in the database the linking of the tables to the BE was very quick and the users either got kicked out (I'm not sure if they received a message or their FE just closed) or they started to have problems, such as drop down lists not filling properly and #Error appearing in fields. It is as though the record locking is not being recognized. Has anyone seen this type of behavior and know what might be causing it? Thank you, Jennifer Gross -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, October 09, 2006 12:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC If you look at an MDB with ANYTHING make SURE YOU LOOK AT A COPY. You will corrupt it if you happen to open it in word. And I mean irretrievably lost!!!. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, October 09, 2006 3:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC You could try opening the corrupt ldb file and read it with notepad or with a hexeditor, you shoud be able to read the machine name and userid of the clients extant in mdb at corruption However the machine name may be just the server something like CITRIX01 One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". Normally the last Access process to have the .mdb open will delete the .ldb file when the .mdb file gets closed, or at least remove the last lock on the file Now this is just a wild idea but with a copy of the corrupt backend mdb and ldb Open up the .ldb file in notepad, this will establish at least one system file lock and you might then be able to look at both through the LDB viewer with or without using the schema roster. Another way without opening a program to establish a lock is maybe to do a Dir( "c:\filepathname to ldb") then run the userroster method Jennifer Gross wrote: >Hi Jim, > >I am using A2K and I would love to know how to find out who is >corrupting the database. I cannot use Dev Ashish's LDB Viewer because >it does not recognize the BE as a valid database when it is in a >"corrupt" state. > >Thank you, > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, October 09, 2006 5:25 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><it is inactive I have concerns that it has changed some setting that >are contributing to the problems we are having. >> > > Maybe not a setting that was changed, but certainly it is consuming >more resources on the server. My first stop would be the system event >logs checking for any errors or warnings. I would also go back and >check all TS settings in general and for each user. A disconnect >should not logout the session. > ><typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run.>> > > Someone is getting terminated abnormally. Have the users reported any >strange behavior or problems? I didn't see in the prior messages what >version of Access you are using, but what you need to do is find out >what >user(s) are leaving the database in a corrupt state. The method you >use depends on the version (either using LDBVIEW or the JET roster). >Once you have that, you can build up a pattern (same user all the time >or different users each time). That generally gives you a clue where >the problem lies. > ><update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. >> > > I would say 20+ minutes was abnormal, but without knowing what you >mean by doing a "FE update", I can't say for sure. > ><< Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >>> > > How do they get 'Kicked out'. A message? Window simply closes? > > There is nothing in Access that does this on it's own. It's either >something built into your app or something abnormal that is occurring. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, October 08, 2006 4:18 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Jim, > >We have <25 users. > >The FE is only referencing DLLs and type libraries so hopefully that >should not be a problem. > >Recently a WAMP Server (Apache) was installed on the TS box. Although >it is inactive I have concerns that it has changed some setting that >are contributing to the problems we are having. New IT guy says it was >installed subsequent to the first corruption, but it was the same day. >Since then the database has been "corrupting" at least once a day - >typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run. > >In addition to the "corruptions" another strange thing has been >happening during this time period - in the past when I was posting a FE >update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >We have one guy who works late nights, and that is when I post FE updates. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Sunday, October 08, 2006 4:39 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><< We are having data corruption and the new guy says it is because of >Terminal Server - too many connections to the back end from the same >box. I know very little about the network/hardware/software aspects >and am at a loss. >> > > The TS connection settings should be checked. When a connection is >dropped, there are various things TS can do; retain the session so you >can reconnect, log it out, etc. > > What you don't want is for it to be logged out. That means Access >(and any other running apps) will get terminated whether they want to >or not. > > The other place where TS bites you is references. Unless you change >references on the fly or distribute a special TS version of your FE, >all users will have references (usually to the local C drive in most cases). >This means they are all sharing those references even if you've given >them all a separate copy of the FE. With Dll's and type libs, that's >not a problem, but if it's a .MDA add-in, you might have some issues >with that. Using some of the Access Wizards under TS requires >workarounds because of this. > > Beyond that, running TS is no different then a bunch of client PCs >all connecting to the BE in terms of connections. In fact, it's a lot >more stable. If I could run Access under TS vs the "normal" way, I'd >choose TS hands down every time. > >Jim. > > BTW, how many users are we talking about? > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Friday, October 06, 2006 11:16 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Stuart, > >Do you have experience with Terminal Server with multiple users running >separate front ends to a common Access data file? I would love to pick >your brain if you do - or anyone else for that matter. I currently >have a new IT guy who is in conflict with the old IT guy about our use >of Terminal Server. We are having data corruption and the new guy says >it is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. I have made no >changes to the database, yet in the past two weeks we have experienced >several "corruptions", when the database had been stable for nearly a >year without a corruption. > >Any help would be appreciated. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Friday, October 06, 2006 8:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ODBC > > >On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > > > >>Question 1: When an Access front end connects to an Access backend is >> >> > > > >>it an ODBC connection? >> >> > >No, it's a JET connection, which is more efficient than ODBC > > > >>Question 2: If multiple users have separate front ends on the same >>Terminal Server box linking to a back end on a different box, are they >> >> > > > >>opening separate connections to the back end (ODBC or otherwise), or >>are they sharing the same connection? >> >> > >They are separate connections. > > > -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Mon Oct 9 16:48:34 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 10 Oct 2006 01:48:34 +0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <012b01c6ebea$1cde1970$6501a8c0@LaptopXP> Message-ID: <00c001c6ebec$aba3dd50$6401a8c0@nant> Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Mon Oct 9 16:52:24 2006 From: askolits at ot.com (John Skolits) Date: Mon, 9 Oct 2006 17:52:24 -0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <00c001c6ebec$aba3dd50$6401a8c0@nant> Message-ID: <013001c6ebed$375f3240$6501a8c0@LaptopXP> Then can I refer to the form object"frm" to set it's individual properties? Is there a way to then name that form object in case I have a few open and want to make change in one particular form? Or will they just be enumerated frm(0), frm(1) etc? John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Oct 9 18:04:55 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 9 Oct 2006 18:04:55 -0500 Subject: [AccessD] ODBC - Linked Table Manager - Record Locking?? In-Reply-To: <13649853.1160432393785.JavaMail.root@sniper10> Message-ID: <003001c6ebf7$56cf1820$0200a8c0@danwaters> Hi Jennifer, I do exactly the same thing you do, but I use an updater from Tony Toews, or one I made myself. It sounds like your table relinking is not working well. If you are using the Table Linking Manager, be sure that all your table links are set correctly. Scroll up and down the list and look at all of them. Can you relink after putting your new master FE in the 'copy from' folder? If that doesn't help, call back. I can show some code to automatically refresh the table links. Dan Waters -----Original Message----- Subject: Re: [AccessD] ODBC - Linked Table Manager - Record Locking?? Hi Charlotte, What I am doing is putting a new front end in the working folder, which will copy over to each user's FE folder the next time the user logs out and back into the database. I use Ted Avery's FE updater. So I am just linking it up so that it is ready to copy. Basically I make all my programming changes on my work computer within a test environment. When I am ready to go live I copy the FE to the server, link it to the live BE and store the FE in a specific folder. Each time the users open their existing FE it checks to see if it is the most current, and if not copies the most current FE to their working folder. The anomaly that I am seeing is happening when I am linking my new FE to the BE, prior to putting it in the folder that the user's FE will checking to see if their FE is the most current. I hope this makes sense. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, October 09, 2006 2:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC - Linked Table Manager - Record Locking?? Just what do you mean by an FE update in this context? How can you update an FE if there are instances of it open on Terminal Server? 2000 and above require exclusive access to the mdb in order to update the design, which includes code, forms and reports. If any users were writing to the database at the time they were "kicked out", that could definitely cause corruption in the back end. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, October 09, 2006 1:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC - Linked Table Manager - Record Locking?? I am using A2K, around 25 users, FE/BE, FE<20MB, BE<100MB, all user FEs are on Terminal Server the BE resides on a different box. In the past during linking a new FE, if someone was working in the database it took time, I imagine because of record locking checks. In my last two FE updates, even though people were working in the database the linking of the tables to the BE was very quick and the users either got kicked out (I'm not sure if they received a message or their FE just closed) or they started to have problems, such as drop down lists not filling properly and #Error appearing in fields. It is as though the record locking is not being recognized. Has anyone seen this type of behavior and know what might be causing it? Thank you, Jennifer Gross -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, October 09, 2006 12:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC If you look at an MDB with ANYTHING make SURE YOU LOOK AT A COPY. You will corrupt it if you happen to open it in word. And I mean irretrievably lost!!!. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, October 09, 2006 3:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC You could try opening the corrupt ldb file and read it with notepad or with a hexeditor, you shoud be able to read the machine name and userid of the clients extant in mdb at corruption However the machine name may be just the server something like CITRIX01 One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". Normally the last Access process to have the .mdb open will delete the .ldb file when the .mdb file gets closed, or at least remove the last lock on the file Now this is just a wild idea but with a copy of the corrupt backend mdb and ldb Open up the .ldb file in notepad, this will establish at least one system file lock and you might then be able to look at both through the LDB viewer with or without using the schema roster. Another way without opening a program to establish a lock is maybe to do a Dir( "c:\filepathname to ldb") then run the userroster method Jennifer Gross wrote: >Hi Jim, > >I am using A2K and I would love to know how to find out who is >corrupting the database. I cannot use Dev Ashish's LDB Viewer because >it does not recognize the BE as a valid database when it is in a >"corrupt" state. > >Thank you, > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, October 09, 2006 5:25 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><it is inactive I have concerns that it has changed some setting that >are contributing to the problems we are having. >> > > Maybe not a setting that was changed, but certainly it is consuming >more resources on the server. My first stop would be the system event >logs checking for any errors or warnings. I would also go back and >check all TS settings in general and for each user. A disconnect >should not logout the session. > ><typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run.>> > > Someone is getting terminated abnormally. Have the users reported any >strange behavior or problems? I didn't see in the prior messages what >version of Access you are using, but what you need to do is find out >what >user(s) are leaving the database in a corrupt state. The method you >use depends on the version (either using LDBVIEW or the JET roster). >Once you have that, you can build up a pattern (same user all the time >or different users each time). That generally gives you a clue where >the problem lies. > ><update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. >> > > I would say 20+ minutes was abnormal, but without knowing what you >mean by doing a "FE update", I can't say for sure. > ><< Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >>> > > How do they get 'Kicked out'. A message? Window simply closes? > > There is nothing in Access that does this on it's own. It's either >something built into your app or something abnormal that is occurring. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, October 08, 2006 4:18 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Jim, > >We have <25 users. > >The FE is only referencing DLLs and type libraries so hopefully that >should not be a problem. > >Recently a WAMP Server (Apache) was installed on the TS box. Although >it is inactive I have concerns that it has changed some setting that >are contributing to the problems we are having. New IT guy says it was >installed subsequent to the first corruption, but it was the same day. >Since then the database has been "corrupting" at least once a day - >typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run. > >In addition to the "corruptions" another strange thing has been >happening during this time period - in the past when I was posting a FE >update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >We have one guy who works late nights, and that is when I post FE updates. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Sunday, October 08, 2006 4:39 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><< We are having data corruption and the new guy says it is because of >Terminal Server - too many connections to the back end from the same >box. I know very little about the network/hardware/software aspects >and am at a loss. >> > > The TS connection settings should be checked. When a connection is >dropped, there are various things TS can do; retain the session so you >can reconnect, log it out, etc. > > What you don't want is for it to be logged out. That means Access >(and any other running apps) will get terminated whether they want to >or not. > > The other place where TS bites you is references. Unless you change >references on the fly or distribute a special TS version of your FE, >all users will have references (usually to the local C drive in most cases). >This means they are all sharing those references even if you've given >them all a separate copy of the FE. With Dll's and type libs, that's >not a problem, but if it's a .MDA add-in, you might have some issues >with that. Using some of the Access Wizards under TS requires >workarounds because of this. > > Beyond that, running TS is no different then a bunch of client PCs >all connecting to the BE in terms of connections. In fact, it's a lot >more stable. If I could run Access under TS vs the "normal" way, I'd >choose TS hands down every time. > >Jim. > > BTW, how many users are we talking about? > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Friday, October 06, 2006 11:16 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Stuart, > >Do you have experience with Terminal Server with multiple users running >separate front ends to a common Access data file? I would love to pick >your brain if you do - or anyone else for that matter. I currently >have a new IT guy who is in conflict with the old IT guy about our use >of Terminal Server. We are having data corruption and the new guy says >it is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. I have made no >changes to the database, yet in the past two weeks we have experienced >several "corruptions", when the database had been stable for nearly a >year without a corruption. > >Any help would be appreciated. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Friday, October 06, 2006 8:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ODBC > > >On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > > > >>Question 1: When an Access front end connects to an Access backend is >> >> > > > >>it an ODBC connection? >> >> > >No, it's a JET connection, which is more efficient than ODBC > > > >>Question 2: If multiple users have separate front ends on the same >>Terminal Server box linking to a back end on a different box, are they >> >> > > > >>opening separate connections to the back end (ODBC or otherwise), or >>are they sharing the same connection? >> >> > >They are separate connections. > > > -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Mon Oct 9 18:22:34 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 10 Oct 2006 03:22:34 +0400 Subject: [AccessD] OT: Putting Pages N or Pages for Crystal Reports report group... Message-ID: <00c801c6ebf9$cd493970$6401a8c0@nant> Him All, Here is a tricky question - I can't figure out to find the answer quick enough nor by myself nor on google. Maybe somebody of you did do/have seen something like that ?: Done: Crystal Reports report printed with several groups. Requested: The pages within each group should be numbered starting from 1 and having printed total number of pages within current group e.g.: 1st group, 1st page, total pages in group 3 => Page 1 of 3 1st group, 2nd page, total pages in group 3 => Page 2 of 3 1st group, 3rd page, total pages in group 3 => Page 3 of 3 2nd group, 1st page, total pages in group 2 => Page 1 of 2 2nd group, 2nd page, total pages in group 2 => Page 2 of 2 ... etc... TIA for any tips, tricks and advises! -- Shamil From shamil at users.mns.ru Mon Oct 9 18:31:02 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 10 Oct 2006 03:31:02 +0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <013001c6ebed$375f3240$6501a8c0@LaptopXP> Message-ID: <00cc01c6ebfa$fd49c760$6401a8c0@nant> John, You cannot refer to such form instances by name - you have to use indexes in global Access.Application.Forms collection or in your custom collection if you put form's instances object references in it as I have shown in the code. BTW, you HAVE to put form instance's object reference somewhere after you open it "object way" (as shown in the code) otherwise it will be closed immediately after your code leaves the sub/function where form is opened this object way except the case when your form is modal - for this latter case your code will "get stuck" at the point: frm.visible = true If you wanted to refer to your forms' instances using mnemonic names like e.g: - PriceByDefectiveMaterialForm - PriceByDefectiveSolderForm - PriceByDefectiveWiringForm - ... Then you can use these mnemonic names while putting forms' instances object refs into collection: col.add frm, "PriceByDefectiveMaterialForm" .... ... and then somewhere in other part of your code ... Set frm = col("PriceByDefectiveMaterialForm") etc. Of course col collection should be (custom class) module level variable... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Then can I refer to the form object"frm" to set it's individual properties? Is there a way to then name that form object in case I have a few open and want to make change in one particular form? Or will they just be enumerated frm(0), frm(1) etc? John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fhtapia at gmail.com Mon Oct 9 18:34:28 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Mon, 9 Oct 2006 16:34:28 -0700 Subject: [AccessD] Sql DBA/Dev needed Message-ID: Hello group, I realize that most people on the list are either employed, or self-employed, but I am in need of finding a MS SQL Server DBA/ Developer in the SoCal Area. They should have strong troubleshooting skills and be proficient in TSQL. Have at least 2+yrs of Sql Server 2000 experience and a great work ethic. Email me if you are interested in an pursuing this job lead. Thanks, -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From ssharkins at setel.com Mon Oct 9 19:42:42 2006 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 9 Oct 2006 20:42:42 -0400 Subject: [AccessD] OT: Putting Pages N or Pages for Crystal Reports reportgroup... In-Reply-To: <00c801c6ebf9$cd493970$6401a8c0@nant> Message-ID: <000001c6ec04$ffd03fa0$a9b62ad1@SUSANONE> Shamil, I don't know squat about Crystal Reports. Can you use Access code to generate the numbers and still use them in Crystal Reports? Ken Ismert and I just published an article on group page numbering, but it's in Access. If you think it would be of any help, I'll be glad to send you a copy of the unedited article. Susan H. Him All, Here is a tricky question - I can't figure out to find the answer quick enough nor by myself nor on google. Maybe somebody of you did do/have seen something like that ?: Done: Crystal Reports report printed with several groups. Requested: The pages within each group should be numbered starting from 1 and having printed total number of pages within current group e.g.: 1st group, 1st page, total pages in group 3 => Page 1 of 3 1st group, 2nd page, total pages in group 3 => Page 2 of 3 1st group, 3rd page, total pages in group 3 => Page 3 of 3 2nd group, 1st page, total pages in group 2 => Page 1 of 2 2nd group, 2nd page, total pages in group 2 => Page 2 of 2 ... etc... TIA for any tips, tricks and advises! -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.9/458 - Release Date: 9/27/2006 From darrend at nimble.com.au Mon Oct 9 20:41:06 2006 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 10 Oct 2006 11:41:06 +1000 Subject: [AccessD] A2003:Where is the Description of the Reports Kept Message-ID: <20061010014107.BSOR16502.omta02ps.mx.bigpond.com@DENZILLAP> Hi All if I do SELECT MSysObjects.* FROM MSysObjects WHERE (((MSysObjects.Type)=-32764)); I can see all the reports Does anyone know where the reprost descriptions are kept? Many thanks in advance DD From shamil at users.mns.ru Mon Oct 9 21:09:34 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 10 Oct 2006 06:09:34 +0400 Subject: [AccessD] A2003:Where is the Description of the Reports Kept In-Reply-To: <20061010014107.BSOR16502.omta02ps.mx.bigpond.com@DENZILLAP> Message-ID: <00dd01c6ec11$2166c420$6401a8c0@nant> Access.Application.Currentdb .Containers("Reports") .Documents("{{YourReportNameHere}}") .Properties("Description").Value That's is all one code line wrapped here. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, October 10, 2006 5:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003:Where is the Description of the Reports Kept Hi All if I do SELECT MSysObjects.* FROM MSysObjects WHERE (((MSysObjects.Type)=-32764)); I can see all the reports Does anyone know where the reprost descriptions are kept? Many thanks in advance DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Mon Oct 9 21:12:28 2006 From: askolits at ot.com (John Skolits) Date: Mon, 9 Oct 2006 22:12:28 -0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <00cc01c6ebfa$fd49c760$6401a8c0@nant> Message-ID: <015c01c6ec11$8c63aea0$6501a8c0@LaptopXP> I think that all makes pretty good sense. But, will I have to actually design the new form from scratch through code? My plan was to just grab an existing form and open it up many times just changing the recordsource for each instance. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 7:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, You cannot refer to such form instances by name - you have to use indexes in global Access.Application.Forms collection or in your custom collection if you put form's instances object references in it as I have shown in the code. BTW, you HAVE to put form instance's object reference somewhere after you open it "object way" (as shown in the code) otherwise it will be closed immediately after your code leaves the sub/function where form is opened this object way except the case when your form is modal - for this latter case your code will "get stuck" at the point: frm.visible = true If you wanted to refer to your forms' instances using mnemonic names like e.g: - PriceByDefectiveMaterialForm - PriceByDefectiveSolderForm - PriceByDefectiveWiringForm - ... Then you can use these mnemonic names while putting forms' instances object refs into collection: col.add frm, "PriceByDefectiveMaterialForm" .... ... and then somewhere in other part of your code ... Set frm = col("PriceByDefectiveMaterialForm") etc. Of course col collection should be (custom class) module level variable... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Then can I refer to the form object"frm" to set it's individual properties? Is there a way to then name that form object in case I have a few open and want to make change in one particular form? Or will they just be enumerated frm(0), frm(1) etc? John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Mon Oct 9 22:12:18 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 10 Oct 2006 07:12:18 +0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <015c01c6ec11$8c63aea0$6501a8c0@LaptopXP> Message-ID: <00ea01c6ec19$e680dc20$6401a8c0@nant> John, No, you don't need to design a new form from scratch by code. You can use your form - just set its HasModule property to True if it doesn't have any code behind. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 6:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances I think that all makes pretty good sense. But, will I have to actually design the new form from scratch through code? My plan was to just grab an existing form and open it up many times just changing the recordsource for each instance. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 7:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, You cannot refer to such form instances by name - you have to use indexes in global Access.Application.Forms collection or in your custom collection if you put form's instances object references in it as I have shown in the code. BTW, you HAVE to put form instance's object reference somewhere after you open it "object way" (as shown in the code) otherwise it will be closed immediately after your code leaves the sub/function where form is opened this object way except the case when your form is modal - for this latter case your code will "get stuck" at the point: frm.visible = true If you wanted to refer to your forms' instances using mnemonic names like e.g: - PriceByDefectiveMaterialForm - PriceByDefectiveSolderForm - PriceByDefectiveWiringForm - ... Then you can use these mnemonic names while putting forms' instances object refs into collection: col.add frm, "PriceByDefectiveMaterialForm" .... ... and then somewhere in other part of your code ... Set frm = col("PriceByDefectiveMaterialForm") etc. Of course col collection should be (custom class) module level variable... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Then can I refer to the form object"frm" to set it's individual properties? Is there a way to then name that form object in case I have a few open and want to make change in one particular form? Or will they just be enumerated frm(0), frm(1) etc? John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Mon Oct 9 22:15:22 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 10 Oct 2006 07:15:22 +0400 Subject: [AccessD] OT: Putting Pages N or Pages for Crystal Reportsreportgroup... In-Reply-To: <000001c6ec04$ffd03fa0$a9b62ad1@SUSANONE> Message-ID: <00eb01c6ec1a$541c6650$6401a8c0@nant> Thank, you Susan, Your article may help to give me some ideas although MS Access code can't be used in Crystal Reports reports: Crystal Reports uses its own dialect similar to VB/VBA but the object model and report generation engine is quite different from the one of MS Access... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, October 10, 2006 4:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Putting Pages N or Pages for Crystal Reportsreportgroup... Shamil, I don't know squat about Crystal Reports. Can you use Access code to generate the numbers and still use them in Crystal Reports? Ken Ismert and I just published an article on group page numbering, but it's in Access. If you think it would be of any help, I'll be glad to send you a copy of the unedited article. Susan H. Him All, Here is a tricky question - I can't figure out to find the answer quick enough nor by myself nor on google. Maybe somebody of you did do/have seen something like that ?: Done: Crystal Reports report printed with several groups. Requested: The pages within each group should be numbered starting from 1 and having printed total number of pages within current group e.g.: 1st group, 1st page, total pages in group 3 => Page 1 of 3 1st group, 2nd page, total pages in group 3 => Page 2 of 3 1st group, 3rd page, total pages in group 3 => Page 3 of 3 2nd group, 1st page, total pages in group 2 => Page 1 of 2 2nd group, 2nd page, total pages in group 2 => Page 2 of 2 ... etc... TIA for any tips, tricks and advises! -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.9/458 - Release Date: 9/27/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Tue Oct 10 00:34:19 2006 From: askolits at ot.com (John Skolits) Date: Tue, 10 Oct 2006 01:34:19 -0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <00ea01c6ec19$e680dc20$6401a8c0@nant> Message-ID: <017901c6ec2d$bbc01910$6501a8c0@LaptopXP> Oh, I see. If you create a collection from within a form and then ad a new form, it makes a new form of the one you're in. I get it. Thanks for your help. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 11:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, No, you don't need to design a new form from scratch by code. You can use your form - just set its HasModule property to True if it doesn't have any code behind. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 6:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances I think that all makes pretty good sense. But, will I have to actually design the new form from scratch through code? My plan was to just grab an existing form and open it up many times just changing the recordsource for each instance. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 7:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, You cannot refer to such form instances by name - you have to use indexes in global Access.Application.Forms collection or in your custom collection if you put form's instances object references in it as I have shown in the code. BTW, you HAVE to put form instance's object reference somewhere after you open it "object way" (as shown in the code) otherwise it will be closed immediately after your code leaves the sub/function where form is opened this object way except the case when your form is modal - for this latter case your code will "get stuck" at the point: frm.visible = true If you wanted to refer to your forms' instances using mnemonic names like e.g: - PriceByDefectiveMaterialForm - PriceByDefectiveSolderForm - PriceByDefectiveWiringForm - ... Then you can use these mnemonic names while putting forms' instances object refs into collection: col.add frm, "PriceByDefectiveMaterialForm" .... ... and then somewhere in other part of your code ... Set frm = col("PriceByDefectiveMaterialForm") etc. Of course col collection should be (custom class) module level variable... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Then can I refer to the form object"frm" to set it's individual properties? Is there a way to then name that form object in case I have a few open and want to make change in one particular form? Or will they just be enumerated frm(0), frm(1) etc? John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Tue Oct 10 03:02:11 2006 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 10 Oct 2006 01:02:11 -0700 (PDT) Subject: [AccessD] Access interview questions Message-ID: <20061010080211.871.qmail@web31601.mail.mud.yahoo.com> Hi group, I need to hire several new employees with good Office skills. Does anybody have a list of questions I can ask to determine the skill level of the candidate? I need questions regarding MS-Access and MS-Excel. I think I can come up with the MS-Access questions but especially MS-Excel is hard for me. I've googled for them but didn't find anything usefull. TIA Regards, Sander From accessd666 at yahoo.com Tue Oct 10 04:07:33 2006 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 10 Oct 2006 02:07:33 -0700 (PDT) Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? Message-ID: <20061010090733.72806.qmail@web31613.mail.mud.yahoo.com> Hi group, we've just started a new project. We want to create an ADP. We've never done this using a SQL Server 2005 back-end. Are there any known issues/problems why we shouldn't do this? Regards, Sander From mwp.reid at qub.ac.uk Tue Oct 10 04:24:18 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 10 Oct 2006 10:24:18 +0100 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? References: <20061010090733.72806.qmail@web31613.mail.mud.yahoo.com> Message-ID: Sander >From what I can tell ADPs will not receive the same focus re development at MS as linked applications. WIth SQL Server 2005 you will be OK provided you dont use any of the new SQL Server data types just pretent its SQL Server 2000. The new migration assistant for Access and SQL Server 2005 is really good and you should use this. AT the moment its not complete software but shoudl give you a good idea of what will happen when you move. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Sad Der Sent: Tue 10/10/2006 10:07 To: Acces User Group Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? Hi group, we've just started a new project. We want to create an ADP. We've never done this using a SQL Server 2005 back-end. Are there any known issues/problems why we shouldn't do this? Regards, Sander -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Oct 10 04:30:18 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Oct 2006 11:30:18 +0200 Subject: [AccessD] ODBC Message-ID: Hi Marty This is not so. If the ldb file exists, it will simply be reused (if not corrupted, of course). Access 1.x and 2.0 even left the ldb file on purpose for reuse. /gustav >>> martyconnelly at shaw.ca 09-10-2006 21:27:43 >>> One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". .. From John.Clark at niagaracounty.com Tue Oct 10 06:39:39 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Tue, 10 Oct 2006 07:39:39 -0400 Subject: [AccessD] Dire ned of Help In-Reply-To: <4526F671.5928.E4D2ABA@stuart.lexacorp.com.pg> References: , <45263EB8.167F.006B.0@niagaracounty.com> <4526F671.5928.E4D2ABA@stuart.lexacorp.com.pg> Message-ID: <452B4E3A.167F.006B.0@niagaracounty.com> A thousand thanks, Stuart!!! I had started to look in this direction, but told myself that, "no, it is working for everything else, so that must not be it." I'm a dolt! I knew it would be simple and I'd be hitting myself saying, "Duh!" Thanks again! John W. Clark Computer Programmer Niagara County >>> "Stuart McLachlan" 10/6/2006 8:36 PM >>> On 6 Oct 2006 at 11:32, John Clark wrote: > strSQL = "SELECT nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS Mid([tblMain]![txtControlNum],4) will return "999" or "1000", as text strings. "999" is greater than "1000" when considered as a string - the first starts with ASC("9") the second with ASC("1") You need to return the maximum numeric value of the the sequence number, not the greatest string value. Use: nz(Max(Val(Mid([tblMain]![txtControlNum],4))),0)+1 -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Oct 10 06:46:41 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 10 Oct 2006 07:46:41 -0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <017901c6ec2d$bbc01910$6501a8c0@LaptopXP> Message-ID: <006101c6ec61$c17b6470$647aa8c0@m6805> John, Not exactly... A new form is opened two ways. 1) Docmd.Openform "formname" is the one everyone knows. This does NOT give you a direct handle but can be found in the Forms("Formname"). 2) The other way is to dimension a variable of the type form Dim frm as form set frm = new form_FormName. Frm now contains a pointer to the form formname. This whole process is a shortcut if you will, form_ simply tells VBA to look in the documents collection where the CLASSES for forms are kept and then use the part after the underscore as the NAME of the form class to open. Opening a class opens the form. While we are on the subject, I am guessing that if the form has the "no module" property set, then it has no class and this method will not work. So.... To reiterate: Dim a variable of type form: Dim frm as form SET that variable to the CLASS for a specific form: set frm = new form_MyForm You now have an OPENED form and a pointer to that form holding it open. NOW store that pointer into a collection using some name to index into the collection: Dim colMyForms as collection set colMyForms = new collection colMyForms.add frm, "MyFormName1" set frm = new form_MyForm colMyForms.add frm, "MyFormName2" set frm = new form_MyForm colMyForms.add frm, "MyFormName3" You can now reference any specific form by getting the pointer to the form back out of the collection: Dim frm as form set frm = colMyForms("MyFormName1") frm!MyControl.Value = "Hello" OR... You can use it in situ... colMyForms("MyFormName2")!MyControl.Value = "Hello again" To summarize. A form can be opened more than one time, however only by creating pointers to the form and STORING those pointers somewhere. A collection that we create for the purpose is a good place to save them, but it can also be just a dimensioned variable of type form, somewhere in your code. IMPORTANT!!! You MUST cleanup behind yourself in order to close such a form. You can apparently close the form by clickint the close control in the form's upper right, however it leaves stuff in VBA if you don't also delete the POINTER to the form in the collection or in the variable that you dimmed to hold the form pointer. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:34 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Oh, I see. If you create a collection from within a form and then ad a new form, it makes a new form of the one you're in. I get it. Thanks for your help. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 11:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, No, you don't need to design a new form from scratch by code. You can use your form - just set its HasModule property to True if it doesn't have any code behind. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 6:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances I think that all makes pretty good sense. But, will I have to actually design the new form from scratch through code? My plan was to just grab an existing form and open it up many times just changing the recordsource for each instance. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 7:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, You cannot refer to such form instances by name - you have to use indexes in global Access.Application.Forms collection or in your custom collection if you put form's instances object references in it as I have shown in the code. BTW, you HAVE to put form instance's object reference somewhere after you open it "object way" (as shown in the code) otherwise it will be closed immediately after your code leaves the sub/function where form is opened this object way except the case when your form is modal - for this latter case your code will "get stuck" at the point: frm.visible = true If you wanted to refer to your forms' instances using mnemonic names like e.g: - PriceByDefectiveMaterialForm - PriceByDefectiveSolderForm - PriceByDefectiveWiringForm - ... Then you can use these mnemonic names while putting forms' instances object refs into collection: col.add frm, "PriceByDefectiveMaterialForm" .... ... and then somewhere in other part of your code ... Set frm = col("PriceByDefectiveMaterialForm") etc. Of course col collection should be (custom class) module level variable... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Then can I refer to the form object"frm" to set it's individual properties? Is there a way to then name that form object in case I have a few open and want to make change in one particular form? Or will they just be enumerated frm(0), frm(1) etc? John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Tue Oct 10 07:40:47 2006 From: askolits at ot.com (John Skolits) Date: Tue, 10 Oct 2006 08:40:47 -0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <006101c6ec61$c17b6470$647aa8c0@m6805> Message-ID: <019601c6ec69$52fcfab0$6501a8c0@LaptopXP> Cool. Makes sense. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, October 10, 2006 7:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, Not exactly... A new form is opened two ways. 1) Docmd.Openform "formname" is the one everyone knows. This does NOT give you a direct handle but can be found in the Forms("Formname"). 2) The other way is to dimension a variable of the type form Dim frm as form set frm = new form_FormName. Frm now contains a pointer to the form formname. This whole process is a shortcut if you will, form_ simply tells VBA to look in the documents collection where the CLASSES for forms are kept and then use the part after the underscore as the NAME of the form class to open. Opening a class opens the form. While we are on the subject, I am guessing that if the form has the "no module" property set, then it has no class and this method will not work. So.... To reiterate: Dim a variable of type form: Dim frm as form SET that variable to the CLASS for a specific form: set frm = new form_MyForm You now have an OPENED form and a pointer to that form holding it open. NOW store that pointer into a collection using some name to index into the collection: Dim colMyForms as collection set colMyForms = new collection colMyForms.add frm, "MyFormName1" set frm = new form_MyForm colMyForms.add frm, "MyFormName2" set frm = new form_MyForm colMyForms.add frm, "MyFormName3" You can now reference any specific form by getting the pointer to the form back out of the collection: Dim frm as form set frm = colMyForms("MyFormName1") frm!MyControl.Value = "Hello" OR... You can use it in situ... colMyForms("MyFormName2")!MyControl.Value = "Hello again" To summarize. A form can be opened more than one time, however only by creating pointers to the form and STORING those pointers somewhere. A collection that we create for the purpose is a good place to save them, but it can also be just a dimensioned variable of type form, somewhere in your code. IMPORTANT!!! You MUST cleanup behind yourself in order to close such a form. You can apparently close the form by clickint the close control in the form's upper right, however it leaves stuff in VBA if you don't also delete the POINTER to the form in the collection or in the variable that you dimmed to hold the form pointer. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:34 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Oh, I see. If you create a collection from within a form and then ad a new form, it makes a new form of the one you're in. I get it. Thanks for your help. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 11:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, No, you don't need to design a new form from scratch by code. You can use your form - just set its HasModule property to True if it doesn't have any code behind. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 6:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances I think that all makes pretty good sense. But, will I have to actually design the new form from scratch through code? My plan was to just grab an existing form and open it up many times just changing the recordsource for each instance. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 7:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, You cannot refer to such form instances by name - you have to use indexes in global Access.Application.Forms collection or in your custom collection if you put form's instances object references in it as I have shown in the code. BTW, you HAVE to put form instance's object reference somewhere after you open it "object way" (as shown in the code) otherwise it will be closed immediately after your code leaves the sub/function where form is opened this object way except the case when your form is modal - for this latter case your code will "get stuck" at the point: frm.visible = true If you wanted to refer to your forms' instances using mnemonic names like e.g: - PriceByDefectiveMaterialForm - PriceByDefectiveSolderForm - PriceByDefectiveWiringForm - ... Then you can use these mnemonic names while putting forms' instances object refs into collection: col.add frm, "PriceByDefectiveMaterialForm" .... ... and then somewhere in other part of your code ... Set frm = col("PriceByDefectiveMaterialForm") etc. Of course col collection should be (custom class) module level variable... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Then can I refer to the form object"frm" to set it's individual properties? Is there a way to then name that form object in case I have a few open and want to make change in one particular form? Or will they just be enumerated frm(0), frm(1) etc? John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Oct 10 08:47:39 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 10 Oct 2006 09:47:39 -0400 Subject: [AccessD] DAO Not Installed Message-ID: Just out of curiosity, In an Office 2000 Pro installation, which component causes DAO to be installed? Here's the scenario, I have just gottten a new laptop from work with WinXP SP1 and Office 2000-SP1 (Yes, I know we are a dozen or so SPs old, not my choice) with Access, Excel, Powerpoint and Word installed. I went to add a reference to DAO in Access and found out it wasn't installed. Went into the O2K installer and looked for anything that had to do with DAO, but couldn't find anything. So I told it to ainstall all teh Word, Excel, Powerpoint and Access components and lo and behold, DAO is now installed. Which component caused DAO to be installed? Any ideas? -- 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 accessd at shaw.ca Tue Oct 10 09:01:13 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 10 Oct 2006 07:01:13 -0700 Subject: [AccessD] Access interview questions In-Reply-To: <20061010080211.871.qmail@web31601.mail.mud.yahoo.com> Message-ID: <0J6X0059FAVNS910@l-daemon> Hi Sad: In one different interview, I was at, the interviewee was asked to bring in a few concise pieces of their best code. Then they were asked to explain the codes function carefully so all present could understand and ask further questions. Then some interviewer's code was presented and the candidate was asked to explain this code. I thought that interview method was very effective. It definitely showed how well organized, communicative and the level of understanding the potential employee had. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Tuesday, October 10, 2006 1:02 AM To: Acces User Group Subject: [AccessD] Access interview questions Hi group, I need to hire several new employees with good Office skills. Does anybody have a list of questions I can ask to determine the skill level of the candidate? I need questions regarding MS-Access and MS-Excel. I think I can come up with the MS-Access questions but especially MS-Excel is hard for me. I've googled for them but didn't find anything usefull. TIA Regards, Sander -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Oct 10 10:34:39 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 10 Oct 2006 10:34:39 -0500 Subject: [AccessD] Access interview questions In-Reply-To: <5798096.1160489055841.JavaMail.root@sniper45> Message-ID: <000901c6ec81$99fe8b50$0200a8c0@danwaters> Hi Sander, Well, that back and forth code questioning sure sounds good. In addition, you might ask a person to display a form or two (and report or two) they developed. They could explain their design choices. You could show some good/bad forms/reports and ask them to give their thoughts on those. Good Luck! Dan Waters -----Original Message----- Subject: Re: [AccessD] Access interview questions Hi Sad: In one different interview, I was at, the interviewee was asked to bring in a few concise pieces of their best code. Then they were asked to explain the codes function carefully so all present could understand and ask further questions. Then some interviewer's code was presented and the candidate was asked to explain this code. I thought that interview method was very effective. It definitely showed how well organized, communicative and the level of understanding the potential employee had. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Tuesday, October 10, 2006 1:02 AM To: Acces User Group Subject: [AccessD] Access interview questions Hi group, I need to hire several new employees with good Office skills. Does anybody have a list of questions I can ask to determine the skill level of the candidate? I need questions regarding MS-Access and MS-Excel. I think I can come up with the MS-Access questions but especially MS-Excel is hard for me. I've googled for them but didn't find anything usefull. TIA Regards, Sander -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From erbachs at gmail.com Tue Oct 10 12:35:29 2006 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 10 Oct 2006 12:35:29 -0500 Subject: [AccessD] DAO Not Installed In-Reply-To: References: Message-ID: <39cb22f30610101035l55e0c76elf267f7995d3ab80@mail.gmail.com> Bryan, DAO is part of Access. I don't remember exactly but the installation of Office Professional can be accomplished without registering DAO360.dll. The file is copied to the disk during the more bare bones install and can be registered with regsvr32...but I don't remember which disk contains the DAO360.dll file itself. Steve Erbach On 10/10/06, Bryan Carbonnell wrote: > Just out of curiosity, In an Office 2000 Pro installation, which > component causes DAO to be installed? > > Here's the scenario, I have just gottten a new laptop from work with > WinXP SP1 and Office 2000-SP1 (Yes, I know we are a dozen or so SPs > old, not my choice) with Access, Excel, Powerpoint and Word installed. > I went to add a reference to DAO in Access and found out it wasn't > installed. > > Went into the O2K installer and looked for anything that had to do > with DAO, but couldn't find anything. So I told it to ainstall all teh > Word, Excel, Powerpoint and Access components and lo and behold, DAO > is now installed. > > Which component caused DAO to be installed? Any ideas? > > -- > 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 jimdettman at verizon.net Tue Oct 10 13:27:30 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 10 Oct 2006 14:27:30 -0400 Subject: [AccessD] ODBC In-Reply-To: <002601c6ebc6$091fd190$6501a8c0@jefferson> Message-ID: <0J6X00FK8N9TMLH6@vms048.mailsrvcs.net> Jennifer, Sorry for the delay in getting back to you. You'll need to use the ADO to get the current roster. The code is here: http://support.microsoft.com/kb/198755/EN-US Only draw back is that you'll need to leave this up and running somewhere. When you find a user can't get into the database because it's corrupt, go to this instance and run the routine. The 4th column should show who left it corrupted. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, October 09, 2006 1:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Jim, I am using A2K and I would love to know how to find out who is corrupting the database. I cannot use Dev Ashish's LDB Viewer because it does not recognize the BE as a valid database when it is in a "corrupt" state. Thank you, Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, October 09, 2006 5:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Jennifer, <> Maybe not a setting that was changed, but certainly it is consuming more resources on the server. My first stop would be the system event logs checking for any errors or warnings. I would also go back and check all TS settings in general and for each user. A disconnect should not logout the session. <> Someone is getting terminated abnormally. Have the users reported any strange behavior or problems? I didn't see in the prior messages what version of Access you are using, but what you need to do is find out what user(s) are leaving the database in a corrupt state. The method you use depends on the version (either using LDBVIEW or the JET roster). Once you have that, you can build up a pattern (same user all the time or different users each time). That generally gives you a clue where the problem lies. <> I would say 20+ minutes was abnormal, but without knowing what you mean by doing a "FE update", I can't say for sure. << Now, it takes less than a minute, as though no one is working in the database and everyone who is working in the database gets kicked out. >> How do they get 'Kicked out'. A message? Window simply closes? There is nothing in Access that does this on it's own. It's either something built into your app or something abnormal that is occurring. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, October 08, 2006 4:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Jim, We have <25 users. The FE is only referencing DLLs and type libraries so hopefully that should not be a problem. Recently a WAMP Server (Apache) was installed on the TS box. Although it is inactive I have concerns that it has changed some setting that are contributing to the problems we are having. New IT guy says it was installed subsequent to the first corruption, but it was the same day. Since then the database has been "corrupting" at least once a day - typically around lunch time when all users are getting in to clock out - their time clock is part of the database. No data is lost, but the repair utility has to be run. In addition to the "corruptions" another strange thing has been happening during this time period - in the past when I was posting a FE update, if someone was using the database the linking to the BE would take 20+ minutes, I assume because of the record locking checks. Now, it takes less than a minute, as though no one is working in the database and everyone who is working in the database gets kicked out. We have one guy who works late nights, and that is when I post FE updates. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, October 08, 2006 4:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Jennifer, << We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. >> The TS connection settings should be checked. When a connection is dropped, there are various things TS can do; retain the session so you can reconnect, log it out, etc. What you don't want is for it to be logged out. That means Access (and any other running apps) will get terminated whether they want to or not. The other place where TS bites you is references. Unless you change references on the fly or distribute a special TS version of your FE, all users will have references (usually to the local C drive in most cases). This means they are all sharing those references even if you've given them all a separate copy of the FE. With Dll's and type libs, that's not a problem, but if it's a .MDA add-in, you might have some issues with that. Using some of the Access Wizards under TS requires workarounds because of this. Beyond that, running TS is no different then a bunch of client PCs all connecting to the BE in terms of connections. In fact, it's a lot more stable. If I could run Access under TS vs the "normal" way, I'd choose TS hands down every time. Jim. BTW, how many users are we talking about? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Friday, October 06, 2006 11:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Stuart, Do you have experience with Terminal Server with multiple users running separate front ends to a common Access data file? I would love to pick your brain if you do - or anyone else for that matter. I currently have a new IT guy who is in conflict with the old IT guy about our use of Terminal Server. We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. I have made no changes to the database, yet in the past two weeks we have experienced several "corruptions", when the database had been stable for nearly a year without a corruption. Any help would be appreciated. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, October 06, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or > are they sharing the same connection? They are separate connections. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Oct 10 13:33:20 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 10 Oct 2006 14:33:20 -0400 Subject: [AccessD] DAO Not Installed In-Reply-To: <39cb22f30610101035l55e0c76elf267f7995d3ab80@mail.gmail.com> References: <39cb22f30610101035l55e0c76elf267f7995d3ab80@mail.gmail.com> Message-ID: On 10/10/06, Steve Erbach wrote: > Bryan, > > DAO is part of Access. I don't remember exactly but the installation > of Office Professional can be accomplished without registering > DAO360.dll. The file is copied to the disk during the more bare bones > install and can be registered with regsvr32...but I don't remember > which disk contains the DAO360.dll file itself. Access 2000 can be installed without DAO, or at least without it being registered. I had a fully functioning install of Access 2K without DAO, which I thought was extremely weird. The problem is now solved, it's more a curiosity for me more than anything else. -- 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 erbachs at gmail.com Tue Oct 10 13:39:13 2006 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 10 Oct 2006 13:39:13 -0500 Subject: [AccessD] DAO Not Installed In-Reply-To: References: <39cb22f30610101035l55e0c76elf267f7995d3ab80@mail.gmail.com> Message-ID: <39cb22f30610101139t57f88eces4402f88ed8fc0806@mail.gmail.com> Bryan, Yeah, I remember a couple of installs that had to be revised because DAO didn't work. It isn't part of the default installation. Beats me why. Steve Erbach On 10/10/06, Bryan Carbonnell wrote: > On 10/10/06, Steve Erbach wrote: > > Bryan, > > > > DAO is part of Access. I don't remember exactly but the installation > > of Office Professional can be accomplished without registering > > DAO360.dll. The file is copied to the disk during the more bare bones > > install and can be registered with regsvr32...but I don't remember > > which disk contains the DAO360.dll file itself. > > Access 2000 can be installed without DAO, or at least without it being > registered. I had a fully functioning install of Access 2K without > DAO, which I thought was extremely weird. > > The problem is now solved, it's more a curiosity for me more than anything else. > > -- > Bryan Carbonnell - carbonnb at gmail.com From tuxedoman888 at gmail.com Tue Oct 10 14:10:00 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Tue, 10 Oct 2006 12:10:00 -0700 Subject: [AccessD] MSysObjects type = 8 Message-ID: <7c8826480610101210k7bfb39b9vab2cd160f732e4f7@mail.gmail.com> Hello: Does anyone know where I can get documentation on the system tables in access 2003? I'm trying to figure out what kind of object is type = 8 in the MSysObjects table.*bjects* thanks Billy -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From garykjos at gmail.com Tue Oct 10 14:31:14 2006 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 10 Oct 2006 14:31:14 -0500 Subject: [AccessD] MSysObjects type = 8 In-Reply-To: <7c8826480610101210k7bfb39b9vab2cd160f732e4f7@mail.gmail.com> References: <7c8826480610101210k7bfb39b9vab2cd160f732e4f7@mail.gmail.com> Message-ID: According to this, it is a relationship.... http://www.experts-exchange.com/Databases/MS_Access/Q_21389691.html GK On 10/10/06, Billy Pang wrote: > Hello: > Does anyone know where I can get documentation on the system tables in > access 2003? > I'm trying to figure out what kind of object is type = 8 in the MSysObjects > table.*bjects* > thanks > Billy > -- > Billy Pang > http://dbnotes.blogspot.com/ > "Once the game is over, the King and the pawn go back in the same box." - > Italian proverb > -- > 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 tuxedoman888 at gmail.com Tue Oct 10 14:48:04 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Tue, 10 Oct 2006 12:48:04 -0700 Subject: [AccessD] MSysObjects type = 8 In-Reply-To: References: <7c8826480610101210k7bfb39b9vab2cd160f732e4f7@mail.gmail.com> Message-ID: <7c8826480610101248p203a38adp47232d6cefd94d9@mail.gmail.com> thanks Gary! Billy On 10/10/06, Gary Kjos wrote: > > According to this, it is a relationship.... > > http://www.experts-exchange.com/Databases/MS_Access/Q_21389691.html > > GK > > On 10/10/06, Billy Pang wrote: > > Hello: > > Does anyone know where I can get documentation on the system tables in > > access 2003? > > I'm trying to figure out what kind of object is type = 8 in the > MSysObjects > > table.*bjects* > > thanks > > Billy > > -- > > Billy Pang > > http://dbnotes.blogspot.com/ > > "Once the game is over, the King and the pawn go back in the same box." > - > > Italian proverb > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From kp at sdsonline.net Tue Oct 10 18:50:23 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 11 Oct 2006 09:50:23 +1000 Subject: [AccessD] Access interview questions References: <20061010080211.871.qmail@web31601.mail.mud.yahoo.com> Message-ID: <00fe01c6ecc6$dbaa2b00$6401a8c0@office> Hi Sander - I have a document for Excel skill evaluation for intro and intermediate skills. I will send offline, rgds Kath ----- Original Message ----- From: Sad Der To: Acces User Group Sent: Tuesday, October 10, 2006 6:02 PM Subject: [AccessD] Access interview questions Hi group, I need to hire several new employees with good Office skills. Does anybody have a list of questions I can ask to determine the skill level of the candidate? I need questions regarding MS-Access and MS-Excel. I think I can come up with the MS-Access questions but especially MS-Excel is hard for me. I've googled for them but didn't find anything usefull. TIA Regards, Sander -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Oct 10 21:34:36 2006 From: artful at rogers.com (artful at rogers.com) Date: Tue, 10 Oct 2006 19:34:36 -0700 (PDT) Subject: [AccessD] OT: Quick Launch Buttons Message-ID: <20061011023436.85181.qmail@web88204.mail.re2.yahoo.com> Two questions (perhaps) in one: 1. How do you manually create a quick launch button for a program that doesn't offer the choice during installation? 2. Can you install a quick launch shortcut to and MDB or ADP, and if so how? Arthur From dmcafee at pacbell.net Tue Oct 10 21:49:20 2006 From: dmcafee at pacbell.net (David McAfee) Date: Tue, 10 Oct 2006 19:49:20 -0700 Subject: [AccessD] OT: Quick Launch Buttons In-Reply-To: <20061011023436.85181.qmail@web88204.mail.re2.yahoo.com> Message-ID: Manually, you just right drag (right click and drag) the exe onto the quick launch bar then when you release choose "Create shortcut". you can then rename it and drag it to the order that you prefer. You can create a quick launch to an mdb/adp in the same manner. HTH David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of artful at rogers.com Sent: Tuesday, October 10, 2006 7:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Quick Launch Buttons Two questions (perhaps) in one: 1. How do you manually create a quick launch button for a program that doesn't offer the choice during installation? 2. Can you install a quick launch shortcut to and MDB or ADP, and if so how? Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Oct 10 22:01:31 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 10 Oct 2006 22:01:31 -0500 Subject: [AccessD] OT: Quick Launch Buttons Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDD2F@MARLOW_MAIN2.marlow.com> If you are talking programatically, the Quicklaunch toolbar is a folder in a users profile, but honestly, I don't have a clue how to make a 'shortcut' file..... Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Tuesday, October 10, 2006 9:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Quick Launch Buttons Two questions (perhaps) in one: 1. How do you manually create a quick launch button for a program that doesn't offer the choice during installation? 2. Can you install a quick launch shortcut to and MDB or ADP, and if so how? Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Oct 11 00:44:15 2006 From: martyconnelly at shaw.ca (Marty Connelly) Date: Tue, 10 Oct 2006 22:44:15 -0700 Subject: [AccessD] DAO Not Installed In-Reply-To: <39cb22f30610101035l55e0c76elf267f7995d3ab80@mail.gmail.com> References: <39cb22f30610101035l55e0c76elf267f7995d3ab80@mail.gmail.com> Message-ID: <00e501c6ecf8$4bbd75b0$e3386110$@ca> DAO isn't attached to Access or Office as it was also usable by VB6, you can install MDAC 2.5 ( Last MDAC to contain DAO) or install Jet SP 8 both available from http://www.microsoft.com/data -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: October 10, 2006 10:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DAO Not Installed Bryan, DAO is part of Access. I don't remember exactly but the installation of Office Professional can be accomplished without registering DAO360.dll. The file is copied to the disk during the more bare bones install and can be registered with regsvr32...but I don't remember which disk contains the DAO360.dll file itself. Steve Erbach On 10/10/06, Bryan Carbonnell wrote: > Just out of curiosity, In an Office 2000 Pro installation, which > component causes DAO to be installed? > > Here's the scenario, I have just gottten a new laptop from work with > WinXP SP1 and Office 2000-SP1 (Yes, I know we are a dozen or so SPs > old, not my choice) with Access, Excel, Powerpoint and Word installed. > I went to add a reference to DAO in Access and found out it wasn't > installed. > > Went into the O2K installer and looked for anything that had to do > with DAO, but couldn't find anything. So I told it to ainstall all teh > Word, Excel, Powerpoint and Access components and lo and behold, DAO > is now installed. > > Which component caused DAO to be installed? Any ideas? > > -- > 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.2/471 - Release Date: 10/10/2006 From stuart at lexacorp.com.pg Tue Oct 10 22:16:03 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 11 Oct 2006 13:16:03 +1000 Subject: [AccessD] OT: Quick Launch Buttons In-Reply-To: <20061011023436.85181.qmail@web88204.mail.re2.yahoo.com> References: <20061011023436.85181.qmail@web88204.mail.re2.yahoo.com> Message-ID: <452CEE93.23126.2E033B85@stuart.lexacorp.com.pg> On 10 Oct 2006 at 19:34, artful at rogers.com wrote: > Two questions (perhaps) in one: > > 1. How do you manually create a quick launch button for a program that doesn't offer the choice during installation? Put a shortcut in: Documents and Settings\Username\Application Data\Microsoft\Internet Explorer\Quick Launch > 2. Can you install a quick launch shortcut to and MDB or ADP, and if so how? Yes. Simplest way is to drag the MDB or ADP and drop it on the Quick Launch bar. If you want to do it from code, you have to create the shortcut in code and place it in the above directory. The easiest way to create a shortcut in code is to use Windows Scripting and WshShell.CreateShortcut() From Lambert.Heenan at AIG.com Wed Oct 11 08:12:28 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 11 Oct 2006 08:12:28 -0500 Subject: [AccessD] Access interview questions Message-ID: In code, using the windows scripting host, you can do it like this... Sub Make_LNK_File(txtLnkName As String, txtTarget As String, Optional txtIconFile As String = "", Optional Description As String = "") 'initialize the object WshShell Dim objShell As Object Dim objShortcut As Object Set objShell = New WshShell 'initialize the object WshShortcut 'the complete name of the .lnk file, include full path plus the .LNK file extension Set objShortcut = objShell.CreateShortcut(txtLnkName) 'the file to be called by the .lnk file, e.g.. "c:\windows\calc.exe" objShortcut.TargetPath = txtTarget '(optional) := any command line supported by the file indicated in txtTarget.Text 'objShortcut.Arguments = xxxx '(optional) : = a valid icon file : = To use the same icon of the target file, do not use the next line. objShortcut.IconLocation = txtIconFile objShortcut.Description = Description 'Save the .lnk objShortcut.Save End Sub Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, October 10, 2006 7:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access interview questions Hi Sander - I have a document for Excel skill evaluation for intro and intermediate skills. I will send offline, rgds Kath ----- Original Message ----- From: Sad Der To: Acces User Group Sent: Tuesday, October 10, 2006 6:02 PM Subject: [AccessD] Access interview questions Hi group, I need to hire several new employees with good Office skills. Does anybody have a list of questions I can ask to determine the skill level of the candidate? I need questions regarding MS-Access and MS-Excel. I think I can come up with the MS-Access questions but especially MS-Excel is hard for me. I've googled for them but didn't find anything usefull. TIA Regards, Sander -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Wed Oct 11 08:28:35 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 11 Oct 2006 08:28:35 -0500 Subject: [AccessD] Access interview questions Message-ID: Hmm. What happened to all the line breaks? It looked good before I sent it!!! Sub Make_LNK_File(txtLnkName As String, txtTarget As String, Optional txtIconFile As String = "", Optional Description As String = "") 'initialize the object WshShell Dim objShell As Object Dim objShortcut As Object Set objShell = New WshShell 'initialize the object WshShortcut 'the complete name of the .lnk file, include full path plus the .LNK file extension Set objShortcut = objShell.CreateShortcut(txtLnkName) 'the file to be called by the .lnk file, e.g.. "c:\windows\calc.exe" objShortcut.TargetPath = txtTarget '(optional) := any command line supported by the file indicated in txtTarget.Text 'objShortcut.Arguments = xxxx '(optional) : = a valid icon file : = To use the same icon of the target file, do not use the next line. objShortcut.IconLocation = txtIconFile objShortcut.Description = Description 'Save the .lnk objShortcut.Save End Sub Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, October 11, 2006 9:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access interview questions In code, using the windows scripting host, you can do it like this... Sub Make_LNK_File(txtLnkName As String, txtTarget As String, Optional txtIconFile As String = "", Optional Description As String = "") 'initialize the object WshShell Dim objShell As Object Dim objShortcut As Object Set objShell = New WshShell 'initialize the object WshShortcut 'the complete name of the .lnk file, include full path plus the .LNK file extension Set objShortcut = objShell.CreateShortcut(txtLnkName) 'the file to be called by the .lnk file, e.g.. "c:\windows\calc.exe" objShortcut.TargetPath = txtTarget '(optional) := any command line supported by the file indicated in txtTarget.Text 'objShortcut.Arguments = xxxx '(optional) : = a valid icon file : = To use the same icon of the target file, do not use the next line. objShortcut.IconLocation = txtIconFile objShortcut.Description = Description 'Save the .lnk objShortcut.Save End Sub Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, October 10, 2006 7:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access interview questions Hi Sander - I have a document for Excel skill evaluation for intro and intermediate skills. I will send offline, rgds Kath ----- Original Message ----- From: Sad Der To: Acces User Group Sent: Tuesday, October 10, 2006 6:02 PM Subject: [AccessD] Access interview questions Hi group, I need to hire several new employees with good Office skills. Does anybody have a list of questions I can ask to determine the skill level of the candidate? I need questions regarding MS-Access and MS-Excel. I think I can come up with the MS-Access questions but especially MS-Excel is hard for me. I've googled for them but didn't find anything usefull. TIA Regards, Sander -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Wed Oct 11 11:10:41 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 11 Oct 2006 20:10:41 +0400 Subject: [AccessD] Open Access 2007 forms and reports from Windows SharePoint Services Message-ID: <000c01c6ed4f$cddc1630$6401a8c0@nant> Hi All, The following is a citation from MS Access 2007 online help: <<< Windows SharePoint Services users can open lists in rich Access views directly from a SharePoint site. Office Access 2007 forms, reports, and datasheets can appear listed alongside other views on a SharePoint site. When you choose an Access view, Office Access 2007 starts and opens the requested form, report, or datasheet. This makes it easy for you to run a rich Office Access 2007 report on a SharePoint site without having to first start Office Access 2007. You can also choose to open a list in Access, and if a database doesn't exist, it is created automatically and prepopulated with a set of forms and reports based on your list. >> Questions (to Martin probably): How this feature works? Is the database created "automagically" on client or on server side? Does MS Access runs embedded in a host application (SharePoint services client?) or as an independent application? ... Thank you. -- Shamil From mwp.reid at qub.ac.uk Wed Oct 11 11:40:28 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 11 Oct 2006 17:40:28 +0100 Subject: [AccessD] Open Access 2007 forms and reports from WindowsSharePoint Services References: <000c01c6ed4f$cddc1630$6401a8c0@nant> Message-ID: It creates the database or you can link to an existing database. There are a number of ways this works. The database can be exported to WSS and you are left with a copy of the entire DB on Sharepoint and links in your access application. Its really cool with new caching features. You can cache data in the database for of line working and then synch it back to SharePoint. It can lead to database growth but ists a nice feature. There will be a some point soon the ability to take a SharePOint site and create a full databse from the lists. Some of the features are really nice. New form property allows you to expose the fom on WSS and the same with reports. The suer click the report for example and it opens in Access. Access runs as an independ linked application. The forms etc that are in the created databse depend on settings you make yourself when exporting. Its worth actually installing MOSS 2007 and Office 2007 on a Virtual machine to see how this works together. The install is a real pain in the ass so be warned. You need to install MOSS Beta 2 and all its needed software .NET and Workflow foundation on Win Server 2003. The you need to install Beta 2 TR whcih is not trival if you have no experience of the MOSS servers. I owudl think Shamil Workflow with Access and MOSS would interest you. Its very cool. 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 11/10/2006 17:10 To: 'Access-D' Subject: [AccessD] Open Access 2007 forms and reports from WindowsSharePoint Services Hi All, The following is a citation from MS Access 2007 online help: <<< Windows SharePoint Services users can open lists in rich Access views directly from a SharePoint site. Office Access 2007 forms, reports, and datasheets can appear listed alongside other views on a SharePoint site. When you choose an Access view, Office Access 2007 starts and opens the requested form, report, or datasheet. This makes it easy for you to run a rich Office Access 2007 report on a SharePoint site without having to first start Office Access 2007. You can also choose to open a list in Access, and if a database doesn't exist, it is created automatically and prepopulated with a set of forms and reports based on your list. >> Questions (to Martin probably): How this feature works? Is the database created "automagically" on client or on server side? Does MS Access runs embedded in a host application (SharePoint services client?) or as an independent application? ... 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 Wed Oct 11 12:44:18 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 11 Oct 2006 21:44:18 +0400 Subject: [AccessD] Open Access 2007 forms and reports fromWindowsSharePoint Services In-Reply-To: Message-ID: <000e01c6ed5c$e1e89c90$6401a8c0@nant> Thank you for your answer, Martin! <<< The install is a real pain in the ass so be warned. >>> Thank you for the warning, Martin. I then better wait for release. :) <<< New form property allows you to expose the form on WSS and the same with reports. The user click the report for example and it opens in Access. >>> OK, and you can still use such forms/reports in an offline database? BTW, I'm trying to find what are the new objects/properties in MS Access object model - so far I did find these: - Attachment - ImportExportSpecification - ImportExportSpecifications - MacroError - TempVar - TempVars Is there somewhere a full list published? And MS Office 2007 object model has a lot of new objects: - Arcs - Axes - Buttons - ChartFillFormat - ChartFont - ChartGroups - CustomTaskPane - CustomXMLNode - CustomXMLNodes - CustomXMLPart - CustomXMLParts - CustomXMLPrefixMapping - CustomXMLPrefixMappings - CustomXMLSchema - CustomXMLSchemaCollection ... etc ... These all to work with XML, Ribbon, SharePoint, Worklflow... as far as I may guess... The new Sync object is obviously (?) to synchronize client apps's objects with SS services object vault... Yes, quite some new features there to learn about! I must say I still to adapt to the Ribbon - is there a possibility to switch it off completely and use good old commandbars? :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 11, 2006 8:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Open Access 2007 forms and reports fromWindowsSharePoint Services It creates the database or you can link to an existing database. There are a number of ways this works. The database can be exported to WSS and you are left with a copy of the entire DB on Sharepoint and links in your access application. Its really cool with new caching features. You can cache data in the database for of line working and then synch it back to SharePoint. It can lead to database growth but ists a nice feature. There will be a some point soon the ability to take a SharePOint site and create a full databse from the lists. Some of the features are really nice. New form property allows you to expose the fom on WSS and the same with reports. The suer click the report for example and it opens in Access. Access runs as an independ linked application. The forms etc that are in the created databse depend on settings you make yourself when exporting. Its worth actually installing MOSS 2007 and Office 2007 on a Virtual machine to see how this works together. The install is a real pain in the ass so be warned. You need to install MOSS Beta 2 and all its needed software .NET and Workflow foundation on Win Server 2003. The you need to install Beta 2 TR whcih is not trival if you have no experience of the MOSS servers. I owudl think Shamil Workflow with Access and MOSS would interest you. Its very cool. 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 11/10/2006 17:10 To: 'Access-D' Subject: [AccessD] Open Access 2007 forms and reports from WindowsSharePoint Services Hi All, The following is a citation from MS Access 2007 online help: <<< Windows SharePoint Services users can open lists in rich Access views directly from a SharePoint site. Office Access 2007 forms, reports, and datasheets can appear listed alongside other views on a SharePoint site. When you choose an Access view, Office Access 2007 starts and opens the requested form, report, or datasheet. This makes it easy for you to run a rich Office Access 2007 report on a SharePoint site without having to first start Office Access 2007. You can also choose to open a list in Access, and if a database doesn't exist, it is created automatically and prepopulated with a set of forms and reports based on your list. >> Questions (to Martin probably): How this feature works? Is the database created "automagically" on client or on server side? Does MS Access runs embedded in a host application (SharePoint services client?) or as an independent application? ... Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Oct 11 12:52:11 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 11 Oct 2006 10:52:11 -0700 Subject: [AccessD] ODBC In-Reply-To: References: Message-ID: <452D2F4B.9000502@shaw.ca> I was talking about a NTFS file lock on the ldb file. I had seen recent references to this on an MSDN blog, whether it is true so I fiddled around with this and created a fake .ldb in notepad with one entry and closed it, so all file locks on the ldb were dropped It opened up the mdb in 97 with no complaints. so I guess you are right. http://blogs.msdn.com/larryosterman/archive/2006/02/17/534234.aspx You could use this code to see if a file lock is in place to test if the condition occurs http://vbnet.mvps.org/index.html?code/fileapi/createfile_inuse.htm Gustav Brock wrote: >Hi Marty > >This is not so. If the ldb file exists, it will simply be reused (if not corrupted, of course). >Access 1.x and 2.0 even left the ldb file on purpose for reuse. > >/gustav > > > >>>>martyconnelly at shaw.ca 09-10-2006 21:27:43 >>> >>>> >>>> > >One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". .. > > > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Wed Oct 11 12:57:04 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 11 Oct 2006 18:57:04 +0100 Subject: [AccessD] Open Access 2007 forms and reportsfromWindowsSharePoint Services References: <000e01c6ed5c$e1e89c90$6401a8c0@nant> Message-ID: Shamil I actually like the ribbon. Old apps will work as is with command bars but no it replaces command bars in 2007 file types. The ribbon is an XML file using call backs so basically anything you can do in VBA call backs you can do with a ribbon. I would say with your skills you couldl make some really cool ribbon features. I had and am having a hard time with the XMl but will get there. THe cache as you say is for server data to client data. Its a bit of a security hoel as anyone then with access to teh DB has access to teh server data. But in a linked app its Active Directory security for the life time of the open application. Once linked a WSS lsit can be manipulated as if it where an Access table using DAO etc and works really well. TempVars are really used by Macros but available in VBA. They are macro variables. Attachment is a data type. New one in whch you can associate multiple files with a record. Very clever but if your upgrading to SQL Server useless. Its a sharepoint feature the ability to associate attachments with list items. Macros now have OnError statements In a few months they will also release a tool that will shred you database into XML and allow you to create your own templates. You can see hwo this works if you take an Access 2007 template file and rename it with a ZIP extension. Still gettign to grips with this bit. Hence my email re Load and Save from text a while back. The XML files are structued in teh same way as those methods produce. You can also save import/export specs for reuse. Martin From jimdettman at verizon.net Wed Oct 11 13:48:15 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 11 Oct 2006 14:48:15 -0400 Subject: [AccessD] ODBC In-Reply-To: <452D2F4B.9000502@shaw.ca> Message-ID: <0J6Z00FXYIVTDZCQ@vms040.mailsrvcs.net> Marty, Yes, what gustav said was true. The main reason the change was made to delete the LDB file was to speedup the initial login under certain scenarios with Netware. It also cleaned it up by getting rid of phantom users that would be sometimes listed. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, October 11, 2006 1:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC I was talking about a NTFS file lock on the ldb file. I had seen recent references to this on an MSDN blog, whether it is true so I fiddled around with this and created a fake .ldb in notepad with one entry and closed it, so all file locks on the ldb were dropped It opened up the mdb in 97 with no complaints. so I guess you are right. http://blogs.msdn.com/larryosterman/archive/2006/02/17/534234.aspx You could use this code to see if a file lock is in place to test if the condition occurs http://vbnet.mvps.org/index.html?code/fileapi/createfile_inuse.htm Gustav Brock wrote: >Hi Marty > >This is not so. If the ldb file exists, it will simply be reused (if not corrupted, of course). >Access 1.x and 2.0 even left the ldb file on purpose for reuse. > >/gustav > > > >>>>martyconnelly at shaw.ca 09-10-2006 21:27:43 >>> >>>> >>>> > >One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". .. > > > > -- 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 shamil at users.mns.ru Wed Oct 11 14:47:04 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 11 Oct 2006 23:47:04 +0400 Subject: [AccessD] Open Access 2007 forms andreportsfromWindowsSharePoint Services In-Reply-To: Message-ID: <001101c6ed6e$08786050$6401a8c0@nant> <<< In a few months they will also release a tool that will shred you database into XML and allow you to create your own templates. >>> Yes, I see. Thank you. <<< Still gettign to grips with this bit. Hence my email re Load and Save from text a while back. The XML files are structued in teh same way as those methods produce. >>> OK - as I see this is a mix of XML and .SaveAsText produced files... But after all all the objects and data of a database are saved in this .accdt file, which is in fact a .zip file as you noted: - databaseProperties.xml - navpane.xml - relationships.xml - vbaReferences.xml - objects folder: tables - xsd of tables queries - SaveAstext forms - SaveAstext reports - SaveAstext macros - SaveAstext modules - SaveAstext - SampleData folder - xml file of the database tables data - _rels and properties subfolders - these are unclear - some small size xml files here with almost no information in them - what for are these? I guess files in _rels are to keep information about MS Access database objects' relationships/dependencies. And what for the files in properties foder? - I guess they plan to finally convert .SaveAsText files' info into .xml format? Right? Do they plan to release this tool you mention together with MS Access? So all the MS Access databases' contents including queries, forms, reports, ... will be possible soon to XML-ze/serialize, publish on SharePoint server as well as deserialize and run on client side... MS Access applications are becoming open source by definition?... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 11, 2006 9:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Open Access 2007 forms andreportsfromWindowsSharePoint Services Shamil I actually like the ribbon. Old apps will work as is with command bars but no it replaces command bars in 2007 file types. The ribbon is an XML file using call backs so basically anything you can do in VBA call backs you can do with a ribbon. I would say with your skills you couldl make some really cool ribbon features. I had and am having a hard time with the XMl but will get there. THe cache as you say is for server data to client data. Its a bit of a security hoel as anyone then with access to teh DB has access to teh server data. But in a linked app its Active Directory security for the life time of the open application. Once linked a WSS lsit can be manipulated as if it where an Access table using DAO etc and works really well. TempVars are really used by Macros but available in VBA. They are macro variables. Attachment is a data type. New one in whch you can associate multiple files with a record. Very clever but if your upgrading to SQL Server useless. Its a sharepoint feature the ability to associate attachments with list items. Macros now have OnError statements In a few months they will also release a tool that will shred you database into XML and allow you to create your own templates. You can see hwo this works if you take an Access 2007 template file and rename it with a ZIP extension. Still gettign to grips with this bit. Hence my email re Load and Save from text a while back. The XML files are structued in teh same way as those methods produce. You can also save import/export specs for reuse. Martin From mwp.reid at qub.ac.uk Wed Oct 11 14:59:55 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 11 Oct 2006 20:59:55 +0100 Subject: [AccessD] Open Access 2007 formsandreportsfromWindowsSharePoint Services References: <001101c6ed6e$08786050$6401a8c0@nant> Message-ID: Shamil If you email me of list I will send you the information I have on the XML structures. Sorry folks cant share it to far at the moment. The XML files store the same structure as SaveAsText but I dont know how they produce it yet. The _rel file is I think (and Marty can chip in here) details about the relationships between the XML files themselves. I think. I have been taking with Marty about this. As I said XML isnt my strong point and I am learning. I have some information I am happy to let you see of list. I believe the XML shredding tool will be part of the developers toolkit but I am not sure. I do know it is built but as yet they do not have a GUI for it. I would expect it around March 2007. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From shamil at users.mns.ru Wed Oct 11 15:29:37 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 12 Oct 2006 00:29:37 +0400 Subject: [AccessD] Open Access 2007 formsandreportsfromWindowsSharePointServices In-Reply-To: Message-ID: <002001c6ed73$f9296760$6401a8c0@nant> Yes, Martin, I'm interested to have a look at these xml formats. Please send it to me off-list if possible. My e-mail address is: shamilATusersDOTmnsDOTru (please replace AT with '@' sign and DOT with '.' char) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, October 12, 2006 12:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Open Access 2007 formsandreportsfromWindowsSharePointServices Shamil If you email me of list I will send you the information I have on the XML structures. Sorry folks cant share it to far at the moment. The XML files store the same structure as SaveAsText but I dont know how they produce it yet. The _rel file is I think (and Marty can chip in here) details about the relationships between the XML files themselves. I think. I have been taking with Marty about this. As I said XML isnt my strong point and I am learning. I have some information I am happy to let you see of list. I believe the XML shredding tool will be part of the developers toolkit but I am not sure. I do know it is built but as yet they do not have a GUI for it. I would expect it around March 2007. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From paul.hartland at fsmail.net Thu Oct 12 03:51:46 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 12 Oct 2006 10:51:46 +0200 (CEST) Subject: [AccessD] OT - URL & Visual Basic Message-ID: <22674507.1160643106491.JavaMail.www@wwinf3103> To all, I have been asked if the following is possibly, my friend has his own website and has something on there (haven't gone into this bit) that will leave a new folder or file on set days. He wants to get the new folder(s)/file(s) each day and back them up to his local drive (C:\), and he doesn't want to keep having to do this manually....So the question is there a way he can put in his URL path then the program will pick up all the folders and files inside that path and copy them to the C:\ drive. Thanks in advance for any help on this Paul Hartland paul.hartland at fsmail.net 07730 523179 From DWUTKA at marlow.com Thu Oct 12 09:48:31 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Oct 2006 09:48:31 -0500 Subject: [AccessD] OT - URL & Visual Basic Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDD32@MARLOW_MAIN2.marlow.com> There is an API called 'URLDownloadToFile'. If he knows the folder/files, he can use that. Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, October 12, 2006 3:52 AM To: accessd Subject: [AccessD] OT - URL & Visual Basic Importance: High To all, I have been asked if the following is possibly, my friend has his own website and has something on there (haven't gone into this bit) that will leave a new folder or file on set days. He wants to get the new folder(s)/file(s) each day and back them up to his local drive (C:\), and he doesn't want to keep having to do this manually....So the question is there a way he can put in his URL path then the program will pick up all the folders and files inside that path and copy them to the C:\ drive. Thanks in advance for any help on this Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Oct 12 10:15:22 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 12 Oct 2006 17:15:22 +0200 Subject: [AccessD] OT - URL & Visual Basic Message-ID: Hi Paul If more than a couple of files, I would use FTP as he will have FTP access to his own site. If you look up the archive, several threads deal with how to achieve this. I can recommend to use the 3D-FTP engine which works extremely reliable: http://www.3dftp.com and the API guide: http://www.3dftp.com/api.htm As it runs multi-threaded uploads are very fast. Cost is about USD 40. /gustav >>> paul.hartland at fsmail.net 12-10-2006 10:51:46 >>> To all, I have been asked if the following is possibly, my friend has his own website and has something on there (haven't gone into this bit) that will leave a new folder or file on set days. He wants to get the new folder(s)/file(s) each day and back them up to his local drive (C:\), and he doesn't want to keep having to do this manually....So the question is there a way he can put in his URL path then the program will pick up all the folders and files inside that path and copy them to the C:\ drive. Thanks in advance for any help on this Paul Hartland paul.hartland at fsmail.net 07730 523179 From paul.hartland at fsmail.net Thu Oct 12 10:25:03 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 12 Oct 2006 17:25:03 +0200 (CEST) Subject: [AccessD] OT - URL & Visual Basic Message-ID: <6435387.1160666703218.JavaMail.www@wwinf3202> We already have the code to do that for a single folder/file is known, however we won't always know the name without going there (thus defeating the object of the exercise).... We need some sort of loop that will say something like for every URLFolder in www.mywebsite.co.uk/dev/ save the folder names into C:\MyBackup next URLFolder Then also loop through all the folders found and save the files into C:\MyBackup. Sorry for not being very clear but coming to the weekend and having a braindead moment..... Thanks once more for any help on this. Paul Hartland Message Received: Oct 12 2006, 03:54 PM From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Cc: Subject: Re: [AccessD] OT - URL & Visual Basic There is an API called 'URLDownloadToFile'. If he knows the folder/files, he can use that. Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, October 12, 2006 3:52 AM To: accessd Subject: [AccessD] OT - URL & Visual Basic Importance: High To all, I have been asked if the following is possibly, my friend has his own website and has something on there (haven't gone into this bit) that will leave a new folder or file on set days. He wants to get the new folder(s)/file(s) each day and back them up to his local drive (C:\), and he doesn't want to keep having to do this manually....So the question is there a way he can put in his URL path then the program will pick up all the folders and files inside that path and copy them to the C:\ drive. Thanks in advance for any help on this Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From jwcolby at colbyconsulting.com Thu Oct 12 12:56:03 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 12 Oct 2006 13:56:03 -0400 Subject: [AccessD] OT - URL & Visual Basic In-Reply-To: Message-ID: <012101c6ee27$affe6d60$647aa8c0@m6805> I second the motion for 3DFTP. I use it for normal manual FTPs and it is very nice. BTW Gustav, thanks for the pointer to the API. I am about to launch into an "FTP in to retrieve files" and programming the interface is something I have to figure out. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, October 12, 2006 11:15 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT - URL & Visual Basic Hi Paul If more than a couple of files, I would use FTP as he will have FTP access to his own site. If you look up the archive, several threads deal with how to achieve this. I can recommend to use the 3D-FTP engine which works extremely reliable: http://www.3dftp.com and the API guide: http://www.3dftp.com/api.htm As it runs multi-threaded uploads are very fast. Cost is about USD 40. /gustav From dw-murphy at cox.net Thu Oct 12 13:45:22 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 12 Oct 2006 11:45:22 -0700 Subject: [AccessD] OT - URL & Visual Basic In-Reply-To: <012101c6ee27$affe6d60$647aa8c0@m6805> Message-ID: <002501c6ee2e$92a4ad90$0200a8c0@murphy3234aaf1> John, Don't know exactly what your requirements are but I use the FTP code that William Hindman has made available that uses the windows api and it works very reliably. See the archives. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, October 12, 2006 10:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT - URL & Visual Basic I second the motion for 3DFTP. I use it for normal manual FTPs and it is very nice. BTW Gustav, thanks for the pointer to the API. I am about to launch into an "FTP in to retrieve files" and programming the interface is something I have to figure out. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, October 12, 2006 11:15 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT - URL & Visual Basic Hi Paul If more than a couple of files, I would use FTP as he will have FTP access to his own site. If you look up the archive, several threads deal with how to achieve this. I can recommend to use the 3D-FTP engine which works extremely reliable: http://www.3dftp.com and the API guide: http://www.3dftp.com/api.htm As it runs multi-threaded uploads are very fast. Cost is about USD 40. /gustav -- 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 Oct 12 15:02:37 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Oct 2006 06:02:37 +1000 Subject: [AccessD] OT - URL & Visual Basic In-Reply-To: <6435387.1160666703218.JavaMail.www@wwinf3202> References: <6435387.1160666703218.JavaMail.www@wwinf3202> Message-ID: <452E9F5D.10107.F06FB83@stuart.lexacorp.com.pg> You could try Novell NetDrive. http://support.novell.com/servlet/filedownload/uns/pub/ndrv41862.exe It's a really neat utility. Designed priamrily to connect over the Internet to Novell servers, you can use it to connect to any FTP site. ONce connected, the site look just like a local disk drive. Then you can just use a batch file and XCopy etc. On 12 Oct 2006 at 17:25, paul.hartland at fsmail.net wrote: > We already have the code to do that for a single folder/file is known, > however we won't always know the name without going there (thus defeating > the object of the exercise).... We need some sort of loop that will say > something like for every URLFolder in www.mywebsite.co.uk/dev/ > save the folder names into C:\MyBackup > next URLFolder > > Then also loop through all the folders found and save the files into > C:\MyBackup. > > Sorry for not being very clear but coming to the weekend and having a > braindead moment..... > > > Thanks once more for any help on this. > > Paul Hartland > > > Message Received: Oct 12 2006, 03:54 PM > From: DWUTKA at marlow.com > To: accessd at databaseadvisors.com > Cc: > Subject: Re: [AccessD] OT - URL & Visual Basic > > There is an API called 'URLDownloadToFile'. If he knows the folder/files, he > can use that. > > Drew > > -----Original Message----- > From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] > Sent: Thursday, October 12, 2006 3:52 AM > To: accessd > Subject: [AccessD] OT - URL & Visual Basic > Importance: High > > > To all, > > I have been asked if the following is possibly, my friend has his own > website and has something on there (haven't gone into this bit) that will > leave a new folder or file on set days. He wants to get the new > folder(s)/file(s) each day and back them up to his local drive (C:\), and he > doesn't want to keep having to do this manually....So the question is there > a way he can put in his URL path then the program will pick up all the > folders and files inside that path and copy them to the C:\ drive. > > Thanks in advance for any help on this > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From martyconnelly at shaw.ca Thu Oct 12 22:00:40 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 12 Oct 2006 20:00:40 -0700 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? In-Reply-To: <20061010090733.72806.qmail@web31613.mail.mud.yahoo.com> References: <20061010090733.72806.qmail@web31613.mail.mud.yahoo.com> Message-ID: <452F0158.2000002@shaw.ca> You will have problems. You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. Installing SQL Express in crippled SQL 2000 compatibilty mode will allow this however. Essentially you will have to develop an ADP against SQL 2000 and then upgrade to SQL Express. Also SQL-DMO has changed to SQL-SMO. Sad Der wrote: >Hi group, > >we've just started a new project. We want to create an ADP. We've never done this using a SQL Server 2005 back-end. Are there any known issues/problems why we shouldn't do this? > >Regards, > >Sander > > > > > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Fri Oct 13 03:57:08 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 13 Oct 2006 10:57:08 +0200 Subject: [AccessD] OT - URL & Visual Basic Message-ID: Hi John You can display the interface of 3DFTP. It will show progress, threads, file names etc. /gustav >>> jwcolby at colbyconsulting.com 12-10-2006 19:56:03 >>> I second the motion for 3DFTP. I use it for normal manual FTPs and it is very nice. BTW Gustav, thanks for the pointer to the API. I am about to launch into an "FTP in to retrieve files" and programming the interface is something I have to figure out. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, October 12, 2006 11:15 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT - URL & Visual Basic Hi Paul If more than a couple of files, I would use FTP as he will have FTP access to his own site. If you look up the archive, several threads deal with how to achieve this. I can recommend to use the 3D-FTP engine which works extremely reliable: http://www.3dftp.com and the API guide: http://www.3dftp.com/api.htm As it runs multi-threaded uploads are very fast. Cost is about USD 40. /gustav From dwaters at usinternet.com Fri Oct 13 10:31:05 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 13 Oct 2006 10:31:05 -0500 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? In-Reply-To: <33081419.1160708800586.JavaMail.root@Sniper27> Message-ID: <002001c6eedc$9a1570b0$0200a8c0@danwaters> Hi Sander, You will be able to create an Access MDB with SQL Server 2005 Express. SQL Server Management Studio Express is a GUI for SQL Server 2005 Express. It has everything you need to manage the database objects. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, October 12, 2006 10:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? You will have problems. You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. Installing SQL Express in crippled SQL 2000 compatibilty mode will allow this however. Essentially you will have to develop an ADP against SQL 2000 and then upgrade to SQL Express. Also SQL-DMO has changed to SQL-SMO. Sad Der wrote: >Hi group, > >we've just started a new project. We want to create an ADP. We've never done this using a SQL Server 2005 back-end. Are there any known issues/problems why we shouldn't do this? > >Regards, > >Sander > > > > > > -- 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 mwp.reid at qub.ac.uk Fri Oct 13 10:37:39 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 13 Oct 2006 16:37:39 +0100 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? References: <002001c6eedc$9a1570b0$0200a8c0@danwaters> Message-ID: ADPs will function with SQL Server 2005. At least in Access 2007 they do. Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Dan Waters Sent: Fri 13/10/2006 16:31 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? Hi Sander, You will be able to create an Access MDB with SQL Server 2005 Express. SQL Server Management Studio Express is a GUI for SQL Server 2005 Express. It has everything you need to manage the database objects. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, October 12, 2006 10:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? You will have problems. You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. Installing SQL Express in crippled SQL 2000 compatibilty mode will allow this however. Essentially you will have to develop an ADP against SQL 2000 and then upgrade to SQL Express. Also SQL-DMO has changed to SQL-SMO. Sad Der wrote: >Hi group, > >we've just started a new project. We want to create an ADP. We've never done this using a SQL Server 2005 back-end. Are there any known issues/problems why we shouldn't do this? > >Regards, > >Sander > > > > > > -- 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 martyconnelly at shaw.ca Fri Oct 13 13:25:36 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 13 Oct 2006 11:25:36 -0700 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? In-Reply-To: References: <002001c6eedc$9a1570b0$0200a8c0@danwaters> Message-ID: <452FDA20.9030907@shaw.ca> I tried Access 2007 ADP Beta 1 against SQL Express months ago and it was a bit odd maybe there are fixes in Beta 2. You get error messages like MS Access is an earlier version prior to SQL server 2005 and it will not save the queries, if you use prior versions of Access ADP like 2003 against SQL 2005 See if using ADP version's prior to Access 2007 https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=732010&SiteID=1 I believe some SQL 2005 datatypes are only accessible from .accdb files like Complex data (multi-valued data types) The ADP architecture was designed to create client-server applications. Because of this, there is a limit to the number of records that Access returns in any recordset. This limit is configurable, but you may need to build a lot of filtering into your application to avoid hitting the limit. Martin Reid wrote: >ADPs will function with SQL Server 2005. At least in Access 2007 they do. > >Maritn > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Dan Waters >Sent: Fri 13/10/2006 16:31 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? > > > >Hi Sander, > >You will be able to create an Access MDB with SQL Server 2005 Express. SQL >Server Management Studio Express is a GUI for SQL Server 2005 Express. It >has everything you need to manage the database objects. > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, October 12, 2006 10:01 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? > >You will have problems. >You will not be able to use any of the designers with SQLS 2005 >databases, whether it's SQL Express or the Developer edition. IOW, >you won't be able to create databases, tables, views or any other >database objects from an ADP. Installing SQL Express in crippled >SQL 2000 compatibilty mode will allow this however. >Essentially you will have to develop an ADP against SQL 2000 >and then upgrade to SQL Express. > >Also SQL-DMO has changed to SQL-SMO. > > >Sad Der wrote: > > > >>Hi group, >> >>we've just started a new project. We want to create an ADP. We've never >> >> >done this using a SQL Server 2005 back-end. Are there any known >issues/problems why we shouldn't do this? > > >>Regards, >> >>Sander >> >> >> >> >> >> >> >> -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Fri Oct 13 14:01:26 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 13 Oct 2006 20:01:26 +0100 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? References: <002001c6eedc$9a1570b0$0200a8c0@danwaters> <452FDA20.9030907@shaw.ca> Message-ID: In A2007 they work fine. The complex types are a sharepoint feature and not available in any version of SQL Server AFAIK, You get a Csv string when you upsize. I actually wasnt aware of this Marty re earlier versions. I have been using 2007 without exception for a long time now with SQL Server 2005 and havnt touched it with an early version in some time. 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 MartyConnelly Sent: Fri 13/10/2006 19:25 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? I tried Access 2007 ADP Beta 1 against SQL Express months ago and it was a bit odd maybe there are fixes in Beta 2. You get error messages like MS Access is an earlier version prior to SQL server 2005 and it will not save the queries, if you use prior versions of Access ADP like 2003 against SQL 2005 See if using ADP version's prior to Access 2007 https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=732010&SiteID=1 I believe some SQL 2005 datatypes are only accessible from .accdb files like Complex data (multi-valued data types) The ADP architecture was designed to create client-server applications. Because of this, there is a limit to the number of records that Access returns in any recordset. This limit is configurable, but you may need to build a lot of filtering into your application to avoid hitting the limit. Martin Reid wrote: >ADPs will function with SQL Server 2005. At least in Access 2007 they do. > >Maritn > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Dan Waters >Sent: Fri 13/10/2006 16:31 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? > > > >Hi Sander, > >You will be able to create an Access MDB with SQL Server 2005 Express. SQL >Server Management Studio Express is a GUI for SQL Server 2005 Express. It >has everything you need to manage the database objects. > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, October 12, 2006 10:01 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? > >You will have problems. >You will not be able to use any of the designers with SQLS 2005 >databases, whether it's SQL Express or the Developer edition. IOW, >you won't be able to create databases, tables, views or any other >database objects from an ADP. Installing SQL Express in crippled >SQL 2000 compatibilty mode will allow this however. >Essentially you will have to develop an ADP against SQL 2000 >and then upgrade to SQL Express. > >Also SQL-DMO has changed to SQL-SMO. > > >Sad Der wrote: > > > >>Hi group, >> >>we've just started a new project. We want to create an ADP. We've never >> >> >done this using a SQL Server 2005 back-end. Are there any known >issues/problems why we shouldn't do this? > > >>Regards, >> >>Sander >> >> >> >> >> >> >> >> -- 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 ldoering at symphonyinfo.com Fri Oct 13 14:30:37 2006 From: ldoering at symphonyinfo.com (Liz Doering) Date: Fri, 13 Oct 2006 14:30:37 -0500 Subject: [AccessD] Silly Graphics References: <000001c6eede$9fd47850$4b4f5a46@Symphony.local> Message-ID: <02F5B8F3D893A845A3DF342F14D80F01066993@LAKATOS.Symphony.local> Dear List, I'm in the middle of the annual upgrade of a project for a long time client. He's "always" had a flock of the Access built-in bitmaps on his buttons, and he loves them dearly. This year we're adding a new button, which he really wants to have decorated with the camera. Here's the problem: no matter what I do to the button, the camera is very small, so small it looks exactly like a bat! This doesn't bother the client much, but it does bother me. Since it doesn't bother him, of course I can't go to a custom image, because that would require more installation, set up, etc, for his users, of which there are hundreds. Is there a quick way to make that Access camera image appear bigger? Thanks, Liz Doering Senior Developer Symphony Information Services www.symphonyinfo.com 763-391-7400 x802 From dmcafee at pacbell.net Fri Oct 13 14:35:14 2006 From: dmcafee at pacbell.net (David McAfee) Date: Fri, 13 Oct 2006 12:35:14 -0700 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? In-Reply-To: <452F0158.2000002@shaw.ca> Message-ID: Do you guys develop new BE stuff (Sprocs, views, tables) from the front end? I tend to do everything in the back end and just work on front end stuff in the front end. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Thursday, October 12, 2006 8:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? You will have problems. You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. Installing SQL Express in crippled SQL 2000 compatibilty mode will allow this however. Essentially you will have to develop an ADP against SQL 2000 and then upgrade to SQL Express. Also SQL-DMO has changed to SQL-SMO. Sad Der wrote: >Hi group, > >we've just started a new project. We want to create an ADP. We've never done this using a SQL Server 2005 back-end. Are there any known issues/problems why we shouldn't do this? > >Regards, > >Sander > > > > > > -- 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 mwp.reid at qub.ac.uk Fri Oct 13 14:42:52 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 13 Oct 2006 20:42:52 +0100 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? References: Message-ID: depends. I would do both. I usually would have an ADP to get at the graphical tools even if working in a linked app. Though with SQL Server 2005 this is really required anymore but I use it as a teaching tool as well. Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of David McAfee Sent: Fri 13/10/2006 20:35 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? Do you guys develop new BE stuff (Sprocs, views, tables) from the front end? I tend to do everything in the back end and just work on front end stuff in the front end. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Thursday, October 12, 2006 8:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? You will have problems. You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. Installing SQL Express in crippled SQL 2000 compatibilty mode will allow this however. Essentially you will have to develop an ADP against SQL 2000 and then upgrade to SQL Express. Also SQL-DMO has changed to SQL-SMO. Sad Der wrote: >Hi group, > >we've just started a new project. We want to create an ADP. We've never done this using a SQL Server 2005 back-end. Are there any known issues/problems why we shouldn't do this? > >Regards, > >Sander > > > > > > -- 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 Lambert.Heenan at aig.com Fri Oct 13 14:55:32 2006 From: Lambert.Heenan at aig.com (Heenan, Lambert) Date: Fri, 13 Oct 2006 14:55:32 -0500 Subject: [AccessD] Silly Graphics Message-ID: Liz, You can go ahead and design a bitmap (say 32 x 32 pixels) and save it as a BMP file. When you add it to the button, by browsing to the location you saved the BMP file to, access will load the bitmap and store the data "somewhere", so that when you then move the mdb, or the bmp file, the button will still have its new fancy image attached, as the bmp file itself is no longer needed. I have not tested this by moving the mdb to another machine with no access to the BMP file used to create the image. But it seems that the image might be getting stored in MSysAccessStorage as a Blob, in which case is *should* move with the MDB file. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Liz Doering Sent: Friday, October 13, 2006 3:31 PM To: Access Developers discussion and problem solving; Access Developers discussion and problem solving Subject: [AccessD] Silly Graphics Dear List, I'm in the middle of the annual upgrade of a project for a long time client. He's "always" had a flock of the Access built-in bitmaps on his buttons, and he loves them dearly. This year we're adding a new button, which he really wants to have decorated with the camera. Here's the problem: no matter what I do to the button, the camera is very small, so small it looks exactly like a bat! This doesn't bother the client much, but it does bother me. Since it doesn't bother him, of course I can't go to a custom image, because that would require more installation, set up, etc, for his users, of which there are hundreds. Is there a quick way to make that Access camera image appear bigger? Thanks, Liz Doering Senior Developer Symphony Information Services www.symphonyinfo.com 763-391-7400 x802 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Oct 13 15:43:18 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 13 Oct 2006 20:43:18 +0000 Subject: [AccessD] text to Chr() In-Reply-To: Message-ID: Hello All, Hope everyone will have a nice weekend. I need to take a very long string of characters (there in a memo field)...and break them into individual Chr() codes. For each character I need to create a row in a different table indicating what Chr() was used. Any ideas/suggestions to the best approach? Thanks, Mark A. Matte From ldoering at symphonyinfo.com Fri Oct 13 16:01:56 2006 From: ldoering at symphonyinfo.com (Liz Doering) Date: Fri, 13 Oct 2006 16:01:56 -0500 Subject: [AccessD] Silly Graphics References: <000001c6ef02$45354590$4b4f5a46@Symphony.local> Message-ID: <02F5B8F3D893A845A3DF342F14D80F01066994@LAKATOS.Symphony.local> Thanks, Lambert, I'll try that and let the client check it out. We can always stick with his 'bat' if necessary. Liz ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Heenan, Lambert Sent: Fri 10/13/2006 3:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Silly Graphics Liz, You can go ahead and design a bitmap (say 32 x 32 pixels) and save it as a BMP file. When you add it to the button, by browsing to the location you saved the BMP file to, access will load the bitmap and store the data "somewhere", so that when you then move the mdb, or the bmp file, the button will still have its new fancy image attached, as the bmp file itself is no longer needed. I have not tested this by moving the mdb to another machine with no access to the BMP file used to create the image. But it seems that the image might be getting stored in MSysAccessStorage as a Blob, in which case is *should* move with the MDB file. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Liz Doering Sent: Friday, October 13, 2006 3:31 PM To: Access Developers discussion and problem solving; Access Developers discussion and problem solving Subject: [AccessD] Silly Graphics Dear List, I'm in the middle of the annual upgrade of a project for a long time client. He's "always" had a flock of the Access built-in bitmaps on his buttons, and he loves them dearly. This year we're adding a new button, which he really wants to have decorated with the camera. Here's the problem: no matter what I do to the button, the camera is very small, so small it looks exactly like a bat! This doesn't bother the client much, but it does bother me. Since it doesn't bother him, of course I can't go to a custom image, because that would require more installation, set up, etc, for his users, of which there are hundreds. Is there a quick way to make that Access camera image appear bigger? Thanks, Liz Doering Senior Developer Symphony Information Services www.symphonyinfo.com 763-391-7400 x802 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri Oct 13 17:58:19 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 14 Oct 2006 08:58:19 +1000 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? In-Reply-To: References: <452F0158.2000002@shaw.ca>, Message-ID: <45301A0B.2423.323EDE8@stuart.lexacorp.com.pg> I use Enterprise Manager to do all the BE stuff. On 13 Oct 2006 at 12:35, David McAfee wrote: > Do you guys develop new BE stuff (Sprocs, views, tables) from the front end? > I tend to do everything in the back end and just work on front end stuff in > the front end. > > David > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly > Sent: Thursday, October 12, 2006 8:01 PM To: Access Developers discussion > and problem solving Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL > SERVER 2005? > > > You will have problems. > You will not be able to use any of the designers with SQLS 2005 > databases, whether it's SQL Express or the Developer edition. IOW, > you won't be able to create databases, tables, views or any other > database objects from an ADP. Installing SQL Express in crippled > SQL 2000 compatibilty mode will allow this however. > Essentially you will have to develop an ADP against SQL 2000 > and then upgrade to SQL Express. > > Also SQL-DMO has changed to SQL-SMO. > > > Sad Der wrote: > > >Hi group, > > > >we've just started a new project. We want to create an ADP. We've never > done this using a SQL Server 2005 back-end. Are there any known > issues/problems why we shouldn't do this? > > > >Regards, > > > >Sander > > > > > > > > > > > > > > -- > 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 -- Stuart From stuart at lexacorp.com.pg Fri Oct 13 18:05:29 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 14 Oct 2006 09:05:29 +1000 Subject: [AccessD] text to Chr() In-Reply-To: References: , Message-ID: <45301BB9.7417.32A7C02@stuart.lexacorp.com.pg> On 13 Oct 2006 at 20:43, Mark A Matte wrote: > Hello All, > > Hope everyone will have a nice weekend. > > I need to take a very long string of characters (there in a memo > field)...and break them into individual Chr() codes. For each character I > need to create a row in a different table indicating what Chr() was used. > Any ideas/suggestions to the best approach? I'd probably go with something along the lines of (aircode!): Function BuildData(InputString as String) Dim rs as DAO.Recordset DIm lngLoop as Long Set rs = CurrentDB.OpenRecordset("tblCharValues") With rs For lngLoop = 1 to Len(InputString) .Addnew !CharValue = Asc(Mid$(InputString,lngLoop,1)) .Update Next .Close End With Set rs = Nothing End Function-- Stuart From dwaters at usinternet.com Sat Oct 14 08:13:42 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 14 Oct 2006 08:13:42 -0500 Subject: [AccessD] Can't Find Admins Group Message-ID: <000001c6ef92$a5850620$0200a8c0@danwaters> Hello to All! I'm having trouble with this function. It errors out on line 10, telling me 'Item not found in this collection'. It can find the Admins group??? It's as if the workspace is wrong or doesn't exist somehow. Dim wrk As DAO.Workspace Dim grp As DAO.Group Dim usr As DAO.User Dim varUserName As Variant Set wrk = DBEngine.Workspaces(0) wrk.Users.Refresh wrk.Groups.Refresh 10 Set grp = wrk.Groups("Admins") AdminGroupMember = False For Each usr In grp.Users If CurrentUser = usr.Name Then AdminGroupMember = True Exit For End If Next usr Exit Function Thanks for any and all help! Dan Waters From dwaters at usinternet.com Sat Oct 14 09:40:08 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 14 Oct 2006 09:40:08 -0500 Subject: [AccessD] SOLVED - Can't Find Admins Group In-Reply-To: <29346846.1160836364767.JavaMail.root@sniper46> Message-ID: <000d01c6ef9e$a5dc3060$0200a8c0@danwaters> I was opening an instance of Access and not closing it prior to running the function below. :-( Dan Waters I like this list. Whenever I send a question, I think of the answer! ;-) -----Original Message----- Subject: [AccessD] Can't Find Admins Group Hello to All! I'm having trouble with this function. It errors out on line 10, telling me 'Item not found in this collection'. It can find the Admins group??? It's as if the workspace is wrong or doesn't exist somehow. Dim wrk As DAO.Workspace Dim grp As DAO.Group Dim usr As DAO.User Dim varUserName As Variant Set wrk = DBEngine.Workspaces(0) wrk.Users.Refresh wrk.Groups.Refresh 10 Set grp = wrk.Groups("Admins") AdminGroupMember = False For Each usr In grp.Users If CurrentUser = usr.Name Then AdminGroupMember = True Exit For End If Next usr Exit Function Thanks for any and all help! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Sat Oct 14 16:50:43 2006 From: john at winhaven.net (John Bartow) Date: Sat, 14 Oct 2006 16:50:43 -0500 Subject: [AccessD] SOLVED - Can't Find Admins Group In-Reply-To: <000d01c6ef9e$a5dc3060$0200a8c0@danwaters> Message-ID: <003e01c6efda$cdf23770$6401a8c0@ScuzzPaq> That's why I'm here. So you have someone to bounce questions off of until you figure things out yourself! ;o) Glad to be of service, John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters I was opening an instance of Access and not closing it prior to running the function below. :-( Dan Waters I like this list. Whenever I send a question, I think of the answer! ;-) From DElam at jenkens.com Sat Oct 14 18:34:34 2006 From: DElam at jenkens.com (Elam, Debbie) Date: Sat, 14 Oct 2006 18:34:34 -0500 Subject: [AccessD] Can't Find Admins Group Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DE779@natexch.jenkens.com> Perhaps "Admin" instead of "Admins"? I did not check to see if this B correct, but it was my first thought. Debbie -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Saturday, October 14, 2006 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Can't Find Admins Group Hello to All! I'm having trouble with this function. It errors out on line 10, telling me 'Item not found in this collection'. It can find the Admins group??? It's as if the workspace is wrong or doesn't exist somehow. Dim wrk As DAO.Workspace Dim grp As DAO.Group Dim usr As DAO.User Dim varUserName As Variant Set wrk = DBEngine.Workspaces(0) wrk.Users.Refresh wrk.Groups.Refresh 10 Set grp = wrk.Groups("Admins") AdminGroupMember = False For Each usr In grp.Users If CurrentUser = usr.Name Then AdminGroupMember = True Exit For End If Next usr Exit Function Thanks for any and all help! Dan Waters -- 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 bchacc at san.rr.com Sun Oct 15 09:36:39 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sun, 15 Oct 2006 07:36:39 -0700 Subject: [AccessD] Error List Message-ID: <006401c6f067$5390bcd0$6801a8c0@HAL9005> Dear List: Does anyone have a link to a good list of error codes and descriptions? Client is getting 2585 but the description is Chinese. Rocky From martyconnelly at shaw.ca Sun Oct 15 09:52:12 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 15 Oct 2006 07:52:12 -0700 Subject: [AccessD] Error List In-Reply-To: <006401c6f067$5390bcd0$6801a8c0@HAL9005> References: <006401c6f067$5390bcd0$6801a8c0@HAL9005> Message-ID: <45324B1C.2070807@shaw.ca> Here build your own ;) 'Determine the Error Codes Reserved by Microsoft Access and the Microsoft Jet Database Engine 'ErrorCode ErrorString '2585 This action can't be carried out while processing a form or report event. at A macro specified as the 'OnOpen, OnClose, OnFormat, OnRetreat, OnPage, or OnPrint property setting contains an invalid action ' for the property. at When you click OK, an Action Failed dialog box will display the name of the macro that failed and its arguments. at 1@611909 at 1 'See Also 'The following procedure creates a table containing many of the error codes and strings 'used or reserved by Microsoft Access and by the Microsoft Jet database engine. 'Not all error codes are included in the resulting table, 'as some exist outside the range of error codes evaluated by this procedure (0 to 4500). Function AccessAndJetErrorsTable() As Boolean Dim dbs As Database, tdf As TableDef, fld As Field Dim rst As Recordset, lngCode As Long Dim strAccessErr As String Const conAppObjectError = "Application-defined or object-defined error" On Error GoTo Error_AccessAndJetErrorsTable ' Create Errors table with ErrorNumber and ErrorDescription fields. Set dbs = CurrentDb Set tdf = dbs.CreateTableDef("AccessAndJetErrors") Set fld = tdf.CreateField("ErrorCode", dbLong) tdf.Fields.Append fld Set fld = tdf.CreateField("ErrorString", dbMemo) tdf.Fields.Append fld dbs.TableDefs.Append tdf ' Open recordset on Errors table. Set rst = dbs.OpenRecordset("AccessAndJetErrors") ' Loop through error codes. For lngCode = 0 To 9900 On Error Resume Next ' Raise each error. strAccessErr = AccessError(lngCode) DoCmd.Hourglass True ' Skip error numbers without associated strings. If strAccessErr <> "" Then ' Skip codes that generate application or object-defined errors. If strAccessErr <> conAppObjectError Then ' Add each error code and string to Errors table. rst.AddNew rst!ErrorCode = lngCode ' Append string to memo field. rst!ErrorString.AppendChunk strAccessErr rst.Update End If End If Next lngCode ' Close recordset. rst.Close DoCmd.Hourglass False RefreshDatabaseWindow MsgBox "Access and Jet errors table created." AccessAndJetErrorsTable = True Exit_AccessAndJetErrorsTable: Exit Function Error_AccessAndJetErrorsTable: MsgBox Err & ": " & Err.Description AccessAndJetErrorsTable = False Resume Exit_AccessAndJetErrorsTable End Function Beach Access Software wrote: >Dear List: > > > >Does anyone have a link to a good list of error codes and descriptions? > > > >Client is getting 2585 but the description is Chinese. > > > >Rocky > > > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Sun Oct 15 10:11:05 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sun, 15 Oct 2006 08:11:05 -0700 Subject: [AccessD] Error List In-Reply-To: <45324B1C.2070807@shaw.ca> Message-ID: <006c01c6f06c$22e05820$6801a8c0@HAL9005> Marty: Thanks for the fast reply. Worked like a charm. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, October 15, 2006 7:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error List Here build your own ;) 'Determine the Error Codes Reserved by Microsoft Access and the Microsoft Jet Database Engine 'ErrorCode ErrorString '2585 This action can't be carried out while processing a form or report event. at A macro specified as the 'OnOpen, OnClose, OnFormat, OnRetreat, OnPage, or OnPrint property setting contains an invalid action ' for the property. at When you click OK, an Action Failed dialog box will display the name of the macro that failed and its arguments. at 1@611909 at 1 'See Also 'The following procedure creates a table containing many of the error codes and strings 'used or reserved by Microsoft Access and by the Microsoft Jet database engine. 'Not all error codes are included in the resulting table, 'as some exist outside the range of error codes evaluated by this procedure (0 to 4500). Function AccessAndJetErrorsTable() As Boolean Dim dbs As Database, tdf As TableDef, fld As Field Dim rst As Recordset, lngCode As Long Dim strAccessErr As String Const conAppObjectError = "Application-defined or object-defined error" On Error GoTo Error_AccessAndJetErrorsTable ' Create Errors table with ErrorNumber and ErrorDescription fields. Set dbs = CurrentDb Set tdf = dbs.CreateTableDef("AccessAndJetErrors") Set fld = tdf.CreateField("ErrorCode", dbLong) tdf.Fields.Append fld Set fld = tdf.CreateField("ErrorString", dbMemo) tdf.Fields.Append fld dbs.TableDefs.Append tdf ' Open recordset on Errors table. Set rst = dbs.OpenRecordset("AccessAndJetErrors") ' Loop through error codes. For lngCode = 0 To 9900 On Error Resume Next ' Raise each error. strAccessErr = AccessError(lngCode) DoCmd.Hourglass True ' Skip error numbers without associated strings. If strAccessErr <> "" Then ' Skip codes that generate application or object-defined errors. If strAccessErr <> conAppObjectError Then ' Add each error code and string to Errors table. rst.AddNew rst!ErrorCode = lngCode ' Append string to memo field. rst!ErrorString.AppendChunk strAccessErr rst.Update End If End If Next lngCode ' Close recordset. rst.Close DoCmd.Hourglass False RefreshDatabaseWindow MsgBox "Access and Jet errors table created." AccessAndJetErrorsTable = True Exit_AccessAndJetErrorsTable: Exit Function Error_AccessAndJetErrorsTable: MsgBox Err & ": " & Err.Description AccessAndJetErrorsTable = False Resume Exit_AccessAndJetErrorsTable End Function Beach Access Software wrote: >Dear List: > > > >Does anyone have a link to a good list of error codes and descriptions? > > > >Client is getting 2585 but the description is Chinese. > > > >Rocky > > > > > -- 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.408 / Virus Database: 268.13.4/476 - Release Date: 10/14/2006 From paul.hartland at fsmail.net Mon Oct 16 06:32:35 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Oct 2006 13:32:35 +0200 (CEST) Subject: [AccessD] OT - How Secure Is My Website Message-ID: <4722701.1160998355771.JavaMail.www@wwinf3103> To all, I have created a very simple website (basically a logon page and a welcome page for now), where the logon page is connected to a database (MS Access). Before I continue I want to know how long in would take a hacker to get my password if it is was to be attempted. Are there any hacking tools or scripts out there that I can point to my website, give it my administration username and get it to return the number of attempts it took to get my password and give my password a security rating (say from 1-10) ? Thanks for any help in advance on this. Paul Hartland Database Developer. From stuart at lexacorp.com.pg Mon Oct 16 08:48:28 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 16 Oct 2006 23:48:28 +1000 Subject: [AccessD] OT - How Secure Is My Website In-Reply-To: <4722701.1160998355771.JavaMail.www@wwinf3103> References: <4722701.1160998355771.JavaMail.www@wwinf3103> Message-ID: <45338DAC.31131.A438D5@stuart.lexacorp.com.pg> On 16 Oct 2006 at 13:32, paul.hartland at fsmail.net wrote: > I have created a very simple website (basically a logon page and a welcome > page for now), where the logon page is connected to a database (MS Access). > Before I continue I want to know how long in would take a hacker to get my > password if it is was to be attempted. Are there any hacking tools or > scripts out there that I can point to my website, give it my administration > username and get it to return the number of attempts it took to get my > password and give my password a security rating (say from 1-10) ? First thing to do is make sure that your administration username is also secure. You can find any number of password strength checkers on the web. Just google "password strength". -- Stuart From JRojas at tnco-inc.com Mon Oct 16 09:03:36 2006 From: JRojas at tnco-inc.com (Joe Rojas) Date: Mon, 16 Oct 2006 10:03:36 -0400 Subject: [AccessD] OT: Word - Bullets & Tables Message-ID: <758E92433C4F3740B67BE4DD369AF5772EDE3C@ex2k3.corp.tnco-inc.com> Hello, I can't seem to find the answer to this anywhere! [Word 2003] Normally when you are working with bullets you can press the tab key to create sub-bullets and you can press shift-tab to go back one level in you bullets. However, when working with bullets in the cell of a table, these keystrokes move you ahead or back one cell. Is there a way to use these keystrokes on a bullet list that is in a table cell? Thanks, Joe Rojas IT Manager TNCO, Inc. 781-447-6661 x7506 jrojas at tnco-inc.com From accessd at shaw.ca Mon Oct 16 09:35:48 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 16 Oct 2006 07:35:48 -0700 Subject: [AccessD] OT - How Secure Is My Website In-Reply-To: <45338DAC.31131.A438D5@stuart.lexacorp.com.pg> Message-ID: <0J7800E0WGIM4Q01@l-daemon> If anyone is concerned about password strength here is a good place to start: http://www.lockdown.co.uk/?pg=combi&s=articles. That is why it is so important to limit the number of access attempts before stopping the login process. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, October 16, 2006 6:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT - How Secure Is My Website On 16 Oct 2006 at 13:32, paul.hartland at fsmail.net wrote: > I have created a very simple website (basically a logon page and a welcome > page for now), where the logon page is connected to a database (MS Access). > Before I continue I want to know how long in would take a hacker to get my > password if it is was to be attempted. Are there any hacking tools or > scripts out there that I can point to my website, give it my administration > username and get it to return the number of attempts it took to get my > password and give my password a security rating (say from 1-10) ? First thing to do is make sure that your administration username is also secure. You can find any number of password strength checkers on the web. Just google "password strength". -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Mon Oct 16 10:06:28 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 16 Oct 2006 11:06:28 -0400 Subject: [AccessD] OT: Word - Bullets & Tables In-Reply-To: <758E92433C4F3740B67BE4DD369AF5772EDE3C@ex2k3.corp.tnco-inc.com> References: <758E92433C4F3740B67BE4DD369AF5772EDE3C@ex2k3.corp.tnco-inc.com> Message-ID: On 10/16/06, Joe Rojas wrote: > However, when working with bullets in the cell of a table, these > keystrokes move you ahead or back one cell. > > Is there a way to use these keystrokes on a bullet list that is in a > table cell? Try CTRL+TAB -- 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 JRojas at tnco-inc.com Mon Oct 16 11:05:59 2006 From: JRojas at tnco-inc.com (Joe Rojas) Date: Mon, 16 Oct 2006 12:05:59 -0400 Subject: [AccessD] OT: Word - Bullets & Tables Message-ID: <758E92433C4F3740B67BE4DD369AF5772EDE41@ex2k3.corp.tnco-inc.com> Thanks for the reply Bryan. I tried that and all it did was tab over, it didn't create a sub bullet. 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 Bryan Carbonnell Sent: Monday, October 16, 2006 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Word - Bullets & Tables On 10/16/06, Joe Rojas wrote: > However, when working with bullets in the cell of a table, these > keystrokes move you ahead or back one cell. > > Is there a way to use these keystrokes on a bullet list that is in a > table cell? Try CTRL+TAB -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Oct 16 11:06:50 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 16 Oct 2006 09:06:50 -0700 Subject: [AccessD] OT - How Secure Is My Website In-Reply-To: <4722701.1160998355771.JavaMail.www@wwinf3103> References: <4722701.1160998355771.JavaMail.www@wwinf3103> Message-ID: <4533AE1A.9010005@shaw.ca> You also have to protect against cross site scripting and sql injection especially on your logon form if verifying userid logon from a database table. You also want to place your access mdb outside of iwwwroot directory on IIS otherwise the mdb could be downloadable. paul.hartland at fsmail.net wrote: >To all, > >I have created a very simple website (basically a logon page and a welcome page for now), where the logon page is connected to a database (MS Access). Before I continue I want to know how long in would take a hacker to get my password if it is was to be attempted. Are there any hacking tools or scripts out there that I can point to my website, give it my administration username and get it to return the number of attempts it took to get my password and give my password a security rating (say from 1-10) ? > >Thanks for any help in advance on this. > >Paul Hartland >Database Developer. > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Mon Oct 16 11:43:45 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 16 Oct 2006 09:43:45 -0700 Subject: [AccessD] Office 2007 and OBA RAP In-Reply-To: <4533AE1A.9010005@shaw.ca> References: <4722701.1160998355771.JavaMail.www@wwinf3103> <4533AE1A.9010005@shaw.ca> Message-ID: <4533B6C1.7030709@shaw.ca> Microsoft has announced plans for a series of sample code packs called Office Business Applications Reference Application Packs (OBA RAPs), which show developers how to create new business applications using the Office 2007 interface. The OBAs will use Word, Excel and Outlook as the interfaces to back-end systems through Microsoft's SharePoint, InfoPath, Windows Server, SQL Server and Active Directory. OBA Reference Application Pack for Supply Chain Management Office Business Applications (OBAs), come with demo websites and site templates, reference documents, .NET code, Web services references, XML (define) and XSLT (define) files and scripts. You will need to have a beta 2 version of the 2007 Office System if you wish to deploy this. http://msdn.microsoft.com/architecture/office/oba/rap/scm/ -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Mon Oct 16 12:10:24 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 16 Oct 2006 10:10:24 -0700 Subject: [AccessD] DBA site is up again In-Reply-To: <4533B6C1.7030709@shaw.ca> Message-ID: <0J7800M7MNO9LQ80@l-daemon> Hi All: The DBA web site is back up and running. There were some issues with a new A record being changed and the DNS not being updated.... Bryan just noted that the appropriate change had been made. (www.databaseadvisors.com) Regards Jim From carbonnb at gmail.com Mon Oct 16 12:27:02 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 16 Oct 2006 13:27:02 -0400 Subject: [AccessD] OT: Word - Bullets & Tables In-Reply-To: <758E92433C4F3740B67BE4DD369AF5772EDE41@ex2k3.corp.tnco-inc.com> References: <758E92433C4F3740B67BE4DD369AF5772EDE41@ex2k3.corp.tnco-inc.com> Message-ID: On 10/16/06, Joe Rojas wrote: > Thanks for the reply Bryan. > > I tried that and all it did was tab over, it didn't create a sub bullet. Didn't work for me either :( This did, however: ALT+SHIFT+RIGHT ARROW -- 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 Patricia.O'Connor at otda.state.ny.us Mon Oct 16 15:10:23 2006 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Mon, 16 Oct 2006 16:10:23 -0400 Subject: [AccessD] OT: Word - Bullets & Tables In-Reply-To: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAC0E@EXCNYSM0A1AI.nysemail.nyenet> The alt-shift-right arrow and alt-shift-left arrow will increase or decrease Most of the time I use the toolbar formatting increase/decrease indent You can also right click to get increase or decrease indent which then does the shifting. There are a few things in word 2003 which are different than 2k and make things harder. I can't stand the way it handles formatting with its styles and formatting. I have a large outline type document that is years old. If the 1st 3-4 characters of the line is different than the previous line it makes a new formatting style which messes up what I actually wanted and I need to fix again and again. Good luck Patti ************************************************** * Patricia O'Connor * Associate Computer Programmer Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (w) mailto:aa1160 at nysemail.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. -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bryan Carbonnell > Sent: Monday, October 16, 2006 11:06 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Word - Bullets & Tables > > On 10/16/06, Joe Rojas wrote: > > > However, when working with bullets in the cell of a table, these > > keystrokes move you ahead or back one cell. > > > > Is there a way to use these keystrokes on a bullet list > that is in a From mwp.reid at qub.ac.uk Mon Oct 16 15:38:32 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 16 Oct 2006 21:38:32 +0100 Subject: [AccessD] Load fromtext References: <002001c6ed73$f9296760$6401a8c0@nant> Message-ID: anyone see anyhting wrong with this. Keeps erroring out at the Case Form. Here is a form name Form_Customer Orders Subform.txt Public Sub loadup() On Error GoTo Err_loadup Dim strTemp As String strTemp = Dir("C:\Forms\*.txt") Do Until strTemp = "" Select Case UCase(Left(strTemp, 4)) Case "FORM" Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp Case "REPO" Application.LoadFromText acReport, "test", "C:\Forms\" & strTemp End Select strTemp = Dir Loop Exit_loadup: Exit Sub Err_loadup: MsgBox Err.Description, Err.Number Resume Exit_loadup Resume 0 '.FOR TROUBLESHOOTING End Sub Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From bchacc at san.rr.com Mon Oct 16 17:22:03 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 16 Oct 2006 15:22:03 -0700 Subject: [AccessD] Load fromtext In-Reply-To: Message-ID: <00ae01c6f171$821042a0$6801a8c0@HAL9005> What error? What's in strTemp at that moment? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Monday, October 16, 2006 1:39 PM To: Access Developers discussion and problem solving Subject: [AccessD] Load fromtext anyone see anyhting wrong with this. Keeps erroring out at the Case Form. Here is a form name Form_Customer Orders Subform.txt Public Sub loadup() On Error GoTo Err_loadup Dim strTemp As String strTemp = Dir("C:\Forms\*.txt") Do Until strTemp = "" Select Case UCase(Left(strTemp, 4)) Case "FORM" Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp Case "REPO" Application.LoadFromText acReport, "test", "C:\Forms\" & strTemp End Select strTemp = Dir Loop Exit_loadup: Exit Sub Err_loadup: MsgBox Err.Description, Err.Number Resume Exit_loadup Resume 0 '.FOR TROUBLESHOOTING End Sub Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date: 10/14/2006 From martyconnelly at shaw.ca Mon Oct 16 21:00:48 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 16 Oct 2006 19:00:48 -0700 Subject: [AccessD] Load fromtext In-Reply-To: References: <002001c6ed73$f9296760$6401a8c0@nant> Message-ID: <45343950.90502@shaw.ca> assuming a file name is "test1_MFormName.txt" and you want to strip out the Access Form name MFormname Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1) Your function is returning the file extension as well "MFormName.txt" Add a function like this to remove any extension I 'll let you work it out for InStrRev which is easier Function fURLWithoutExtension(strFile As String) As String 'return filename minus extension Dim j As Long Dim strURL 'could use InStrRev but not available in 97 strURL = fstrReverse(strFile) 'Find the url name without extension 'Find the first occurance of the '.' in the FileName string j = InStr(1, strURL, ".", vbTextCompare) If j = 0 Then 'URL name does not contain a '.' character fURLWithoutExtension = strURL Else 'URL name does contain the '.' character fURLWithoutExtension = Right$(strURL, Len(strURL) - j) End If 'switch reverse back fURLWithoutExtension = fstrReverse(fURLWithoutExtension) End Function Function fstrReverse(strInput As String) As String ' REVERSES A STRING, SPACES & ALL for Access 97 Dim i As Integer For i = Len(strInput) To 1 Step -1 fstrReverse = fstrReverse & Mid(strInput, i, 1) Next i End Function Martin Reid wrote: >anyone see anyhting wrong with this. Keeps erroring out at the Case Form. > >Here is a form name Form_Customer Orders Subform.txt > >Public Sub loadup() >On Error GoTo Err_loadup >Dim strTemp As String >strTemp = Dir("C:\Forms\*.txt") >Do Until strTemp = "" > Select Case UCase(Left(strTemp, 4)) > Case "FORM" > Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp > Case "REPO" > Application.LoadFromText acReport, "test", "C:\Forms\" & strTemp > End Select > strTemp = Dir >Loop >Exit_loadup: >Exit Sub >Err_loadup: > MsgBox Err.Description, Err.Number > Resume Exit_loadup > Resume 0 '.FOR TROUBLESHOOTING >End Sub > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date: 14/10/2006 > > -- Marty Connelly Victoria, B.C. Canada From darrend at nimble.com.au Mon Oct 16 22:01:00 2006 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 17 Oct 2006 13:01:00 +1000 Subject: [AccessD] OT: Microsoft Subscription Partnerships Message-ID: <20061017030101.EADU11279.omta04sl.mx.bigpond.com@DENZILLAP> Hi All I posted a request a while ago and got no takers - will try again A while back someone from the list was extolling the virtues of a subscription pack with Microsoft - X amount of CDs full of MS stuff for a yearly subscription fee Can't find remember who - Was it JC or William? Anyway - My company wants to know all they can about it to see if it's worth pursuing Anyone remember the POST and or links? Many thanks in advance Darren From bill_Patten at earthlink.net Mon Oct 16 22:26:28 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Mon, 16 Oct 2006 20:26:28 -0700 Subject: [AccessD] OT: Microsoft Subscription Partnerships References: <20061017030101.EADU11279.omta04sl.mx.bigpond.com@DENZILLAP> Message-ID: <008801c6f19c$090b8560$6401a8c0@BPCS> Hi Darren, Go to https://partner.microsoft.com/40014052 for details. I've been a member for 2 years now and find it well worth the money, just for the software. Bill ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Monday, October 16, 2006 8:01 PM Subject: [AccessD] OT: Microsoft Subscription Partnerships Hi All I posted a request a while ago and got no takers - will try again A while back someone from the list was extolling the virtues of a subscription pack with Microsoft - X amount of CDs full of MS stuff for a yearly subscription fee Can't find remember who - Was it JC or William? Anyway - My company wants to know all they can about it to see if it's worth pursuing Anyone remember the POST and or links? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Tue Oct 17 00:16:32 2006 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 17 Oct 2006 15:16:32 +1000 Subject: [AccessD] OT: Microsoft Subscription Partnerships In-Reply-To: <008801c6f19c$090b8560$6401a8c0@BPCS> Message-ID: <20061017051632.KZWL11279.omta04sl.mx.bigpond.com@DENZILLAP> Bill Brilliant - just what I was referring to Many many thanks Have a great day Darren ------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Tuesday, 17 October 2006 1:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Microsoft Subscription Partnerships Hi Darren, Go to https://partner.microsoft.com/40014052 for details. I've been a member for 2 years now and find it well worth the money, just for the software. Bill ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Monday, October 16, 2006 8:01 PM Subject: [AccessD] OT: Microsoft Subscription Partnerships Hi All I posted a request a while ago and got no takers - will try again A while back someone from the list was extolling the virtues of a subscription pack with Microsoft - X amount of CDs full of MS stuff for a yearly subscription fee Can't find remember who - Was it JC or William? Anyway - My company wants to know all they can about it to see if it's worth pursuing Anyone remember the POST and or links? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Oct 17 03:08:24 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 17 Oct 2006 10:08:24 +0200 Subject: [AccessD] Office 2007 and OBA RAP Message-ID: Hi Marty Thanks! If not for you I would probably have missed that info. /gustav >>> martyconnelly at shaw.ca 16-10-2006 18:43:45 >>> Microsoft has announced plans for a series of sample code packs called Office Business Applications Reference Application Packs (OBA RAPs), which show developers how to create new business applications using the Office 2007 interface. The OBAs will use Word, Excel and Outlook as the interfaces to back-end systems through Microsoft's SharePoint, InfoPath, Windows Server, SQL Server and Active Directory. OBA Reference Application Pack for Supply Chain Management Office Business Applications (OBAs), come with demo websites and site templates, reference documents, .NET code, Web services references, XML (define) and XSLT (define) files and scripts. You will need to have a beta 2 version of the 2007 Office System if you wish to deploy this. http://msdn.microsoft.com/architecture/office/oba/rap/scm/ -- Marty Connelly Victoria, B.C. Canada From shamil at users.mns.ru Tue Oct 17 05:14:41 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 17 Oct 2006 14:14:41 +0400 Subject: [AccessD] Office 2007 and OBA RAP In-Reply-To: Message-ID: <005801c6f1d5$10aeff70$6401a8c0@nant> Hi Gustav, Do you plan to try this OBA RAPs installed? For one of the installation scenarios it requires a PC with 2GB RAM and: 1. Windows Server 2003 2. SQL Server 2005 Enterprise Edition SP1 3. WinFX runtime (http://www.microsoft.com/downloads/details.aspx?FamilyID=4a96661c-05fd-430c -bb52-2ba86f02f595&DisplayLang=en), 4. Visual Studio 2005 Professional, 5. Visual Studio Extensions for WinFX & WF 6. Microsoft Office SharePoint Server 2007 Enterprise Edition Beta 2 7. Microsoft Office 2007 Professional Edition Beta 2, 8. Microsoft Office InfoPath 2007 Beta 2, 9. Visual Studio Tools for Office "v3" June CTP -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 17, 2006 12:08 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Office 2007 and OBA RAP Hi Marty Thanks! If not for you I would probably have missed that info. /gustav >>> martyconnelly at shaw.ca 16-10-2006 18:43:45 >>> Microsoft has announced plans for a series of sample code packs called Office Business Applications Reference Application Packs (OBA RAPs), which show developers how to create new business applications using the Office 2007 interface. The OBAs will use Word, Excel and Outlook as the interfaces to back-end systems through Microsoft's SharePoint, InfoPath, Windows Server, SQL Server and Active Directory. OBA Reference Application Pack for Supply Chain Management Office Business Applications (OBAs), come with demo websites and site templates, reference documents, .NET code, Web services references, XML (define) and XSLT (define) files and scripts. You will need to have a beta 2 version of the 2007 Office System if you wish to deploy this. http://msdn.microsoft.com/architecture/office/oba/rap/scm/ -- 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 Tue Oct 17 05:34:57 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 17 Oct 2006 12:34:57 +0200 Subject: [AccessD] Office 2007 and OBA RAP Message-ID: Hi Shamil Not at the moment. I didn't study it, but thanks for the head up - it certainly represents some requirements ... I don't even have VS 2005 Pro, only the parts from the Action Pack and the free tools. /gustav >>> shamil at users.mns.ru 17-10-2006 12:14:41 >>> Hi Gustav, Do you plan to try this OBA RAPs installed? For one of the installation scenarios it requires a PC with 2GB RAM and: 1. Windows Server 2003 2. SQL Server 2005 Enterprise Edition SP1 3. WinFX runtime (http://www.microsoft.com/downloads/details.aspx?FamilyID=4a96661c-05fd-430c -bb52-2ba86f02f595&DisplayLang=en), 4. Visual Studio 2005 Professional, 5. Visual Studio Extensions for WinFX & WF 6. Microsoft Office SharePoint Server 2007 Enterprise Edition Beta 2 7. Microsoft Office 2007 Professional Edition Beta 2, 8. Microsoft Office InfoPath 2007 Beta 2, 9. Visual Studio Tools for Office "v3" June CTP -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 17, 2006 12:08 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Office 2007 and OBA RAP Hi Marty Thanks! If not for you I would probably have missed that info. /gustav >>> martyconnelly at shaw.ca 16-10-2006 18:43:45 >>> Microsoft has announced plans for a series of sample code packs called Office Business Applications Reference Application Packs (OBA RAPs), which show developers how to create new business applications using the Office 2007 interface. The OBAs will use Word, Excel and Outlook as the interfaces to back-end systems through Microsoft's SharePoint, InfoPath, Windows Server, SQL Server and Active Directory. OBA Reference Application Pack for Supply Chain Management Office Business Applications (OBAs), come with demo websites and site templates, reference documents, .NET code, Web services references, XML (define) and XSLT (define) files and scripts. You will need to have a beta 2 version of the 2007 Office System if you wish to deploy this. http://msdn.microsoft.com/architecture/office/oba/rap/scm/ -- Marty Connelly Victoria, B.C. Canada From jimdettman at verizon.net Tue Oct 17 07:26:18 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 17 Oct 2006 08:26:18 -0400 Subject: [AccessD] OT: Microsoft Subscription Partnerships In-Reply-To: <20061017030101.EADU11279.omta04sl.mx.bigpond.com@DENZILLAP> Message-ID: <0J7A0023B57URH12@vms048.mailsrvcs.net> Darren, Microsoft has several subscriptions: 1. MSDN - Three major different flavors depending on what you want to do with it. Geared towards developers. 2. Action Pack - Sales and marketing program - Sales and info tools for your sales force. 3. The new partner program and SBS (Small Business Specialist) - An umbrella program designed to showcase Microsoft Partners. They are pushing the last quite hard at the moment. Right now I'm on all three. Runs about $2500 a year. Is it worth it? Sometimes I wonder with the Action Pack. There is so much information, it's almost a full time job just to see what their shipping you. The MSDN subscription does come in handy, especially when I want to develop something in a technology or product area that I have not worked with before. I've tried getting going with the SBS, but time constraints keep me from finishing it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, October 16, 2006 11:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Microsoft Subscription Partnerships Hi All I posted a request a while ago and got no takers - will try again A while back someone from the list was extolling the virtues of a subscription pack with Microsoft - X amount of CDs full of MS stuff for a yearly subscription fee Can't find remember who - Was it JC or William? Anyway - My company wants to know all they can about it to see if it's worth pursuing Anyone remember the POST and or links? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Tue Oct 17 10:17:19 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Tue, 17 Oct 2006 09:17:19 -0600 Subject: [AccessD] Errors when connecting to SQL 2005 as BE In-Reply-To: Message-ID: <96190DA9E0A10A4CB36E4B71367E55C14D1415@srcimail1.ds.doc.state.or.us> Hi All, I have just started to play with changing one of my Microsoft Access 2003 Projects so that it connects to our new SQL Server 2005. It connects fine to 2005 but when I attempt to design or change my exsisting views I get the following errors. Does anyone know what type of patches or software I need to install in order to make it work? I am currently running Office 2003 SP2. I went to the web site but I don't really see anything that helps. "Your version of Equipment Inventory doesn't support design changes with the version of Microsoft SQL Server Your Access project is connected to. See the Microsoft Office Update Web site for the latest information and downloads. Your design changes will not be saved." "You have connected to a version of SQL Server later than SQL Server 2000. The version of Visual Studio or Access that you are using was released before the version of SQL Server to which you are connected. For this reason, you might encounter problems. Please check with Microsoft to see if there is a service pack that you should apply to Visual Studio or Office in order to get support for the version of SQL Server to which you are connected. You can continue but any new object types might not be enumerated, and it will not be possible to save any objects or database diagrams that you create using the Visual Database Tools." TIA, Mike From cfoust at infostatsystems.com Tue Oct 17 12:03:44 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 17 Oct 2006 10:03:44 -0700 Subject: [AccessD] Errors when connecting to SQL 2005 as BE In-Reply-To: <96190DA9E0A10A4CB36E4B71367E55C14D1415@srcimail1.ds.doc.state.or.us> Message-ID: ADP, right? You can't use it to modify your views or create new views in SQL 2005. There have been a lot of discussions on this, which you can find in the archives. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Tuesday, October 17, 2006 8:17 AM To: Access Developers discussion and problem solving Subject: [AccessD] Errors when connecting to SQL 2005 as BE Hi All, I have just started to play with changing one of my Microsoft Access 2003 Projects so that it connects to our new SQL Server 2005. It connects fine to 2005 but when I attempt to design or change my exsisting views I get the following errors. Does anyone know what type of patches or software I need to install in order to make it work? I am currently running Office 2003 SP2. I went to the web site but I don't really see anything that helps. "Your version of Equipment Inventory doesn't support design changes with the version of Microsoft SQL Server Your Access project is connected to. See the Microsoft Office Update Web site for the latest information and downloads. Your design changes will not be saved." "You have connected to a version of SQL Server later than SQL Server 2000. The version of Visual Studio or Access that you are using was released before the version of SQL Server to which you are connected. For this reason, you might encounter problems. Please check with Microsoft to see if there is a service pack that you should apply to Visual Studio or Office in order to get support for the version of SQL Server to which you are connected. You can continue but any new object types might not be enumerated, and it will not be possible to save any objects or database diagrams that you create using the Visual Database Tools." TIA, Mike -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Oct 17 12:16:13 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 17 Oct 2006 10:16:13 -0700 Subject: [AccessD] Errors when connecting to SQL 2005 as BE In-Reply-To: <96190DA9E0A10A4CB36E4B71367E55C14D1415@srcimail1.ds.doc.state.or.us> References: <96190DA9E0A10A4CB36E4B71367E55C14D1415@srcimail1.ds.doc.state.or.us> Message-ID: <45350FDD.7070503@shaw.ca> I think you have 3 choices. 1. Create your ADP with Access 2007 2. Install SQL Server 2005 or SQL Express in SQL 2000 degraded mode and use Access 2003 ADP. You may not be able to run both normal version and degraded on the same server, I would have to check if this is now allowed. There were problems with SQL-SMO in beta's. 3. Use the new version of SQL Server 2005 EM to make design backend changes with Access 2003 ADP. If using SQL Express before you install the new EM SQL Server Management Studio Express, you must pre-install MSXML 6.0. The full install of SQL Server 2005 comes with it's own Management Studio. It might be easier to develop with Access 2003 against SQL 2000 and then upgrade your final backend to SQL 2005. I don't know the ramifications of doing this. To get a some of SQL 2005 newer innovations you may have to use accdb format which is the upgraded version of mdb. See for explanation and differences if using SQL Express with the Advanced Reporting Services etc. version. This site also has SQL BOL downloads. As well as latest SQL Express downloads. http://msdn.microsoft.com/vstudio/express/sql/download/ Gowey Mike W wrote: > > >Hi All, > >I have just started to play with changing one of my Microsoft Access >2003 Projects so that it connects to our new SQL Server 2005. It >connects fine to 2005 but when I attempt to design or change my >exsisting views I get the following errors. Does anyone know what type >of patches or software I need to install in order to make it work? I am >currently running Office 2003 SP2. I went to the web site but I don't >really see anything that helps. > >"Your version of Equipment Inventory doesn't support design changes with >the version of Microsoft SQL Server >Your Access project is connected to. See the Microsoft Office Update >Web site for the latest information and downloads. Your design changes >will not be saved." > >"You have connected to a version of SQL Server later than SQL Server >2000. The version of Visual Studio or Access that you are using was >released before the version of SQL Server to which you are connected. >For this reason, you might encounter problems. > >Please check with Microsoft to see if there is a service pack that you >should apply to Visual Studio or Office in order to get support for the >version of SQL Server to which you are connected. > >You can continue but any new object types might not be enumerated, and >it will not be possible to save any objects or database diagrams that >you create using the Visual Database Tools." > > >TIA, > >Mike > > -- Marty Connelly Victoria, B.C. Canada From Mike.W.Gowey at doc.state.or.us Tue Oct 17 14:11:59 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Tue, 17 Oct 2006 13:11:59 -0600 Subject: [AccessD] Errors when connecting to SQL 2005 as BE In-Reply-To: <45350FDD.7070503@shaw.ca> Message-ID: <96190DA9E0A10A4CB36E4B71367E55C14D1419@srcimail1.ds.doc.state.or.us> Thanks Marty I will go down this road and see what I can get done. At least I know what is happening. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, October 17, 2006 11:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Errors when connecting to SQL 2005 as BE I think you have 3 choices. 1. Create your ADP with Access 2007 2. Install SQL Server 2005 or SQL Express in SQL 2000 degraded mode and use Access 2003 ADP. You may not be able to run both normal version and degraded on the same server, I would have to check if this is now allowed. There were problems with SQL-SMO in beta's. 3. Use the new version of SQL Server 2005 EM to make design backend changes with Access 2003 ADP. If using SQL Express before you install the new EM SQL Server Management Studio Express, you must pre-install MSXML 6.0. The full install of SQL Server 2005 comes with it's own Management Studio. It might be easier to develop with Access 2003 against SQL 2000 and then upgrade your final backend to SQL 2005. I don't know the ramifications of doing this. To get a some of SQL 2005 newer innovations you may have to use accdb format which is the upgraded version of mdb. See for explanation and differences if using SQL Express with the Advanced Reporting Services etc. version. This site also has SQL BOL downloads. As well as latest SQL Express downloads. http://msdn.microsoft.com/vstudio/express/sql/download/ Gowey Mike W wrote: > > >Hi All, > >I have just started to play with changing one of my Microsoft Access >2003 Projects so that it connects to our new SQL Server 2005. It >connects fine to 2005 but when I attempt to design or change my >exsisting views I get the following errors. Does anyone know what type >of patches or software I need to install in order to make it work? I >am currently running Office 2003 SP2. I went to the web site but I >don't really see anything that helps. > >"Your version of Equipment Inventory doesn't support design changes >with the version of Microsoft SQL Server Your Access project is >connected to. See the Microsoft Office Update Web site for the latest >information and downloads. Your design changes will not be saved." > >"You have connected to a version of SQL Server later than SQL Server >2000. The version of Visual Studio or Access that you are using was >released before the version of SQL Server to which you are connected. >For this reason, you might encounter problems. > >Please check with Microsoft to see if there is a service pack that you >should apply to Visual Studio or Office in order to get support for the >version of SQL Server to which you are connected. > >You can continue but any new object types might not be enumerated, and >it will not be possible to save any objects or database diagrams that >you create using the Visual Database Tools." > > >TIA, > >Mike > > -- 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 dwaters at usinternet.com Tue Oct 17 21:22:26 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 17 Oct 2006 21:22:26 -0500 Subject: [AccessD] Errors when connecting to SQL 2005 as BE In-Reply-To: <9843587.1161109782947.JavaMail.root@sniper33> Message-ID: <003a01c6f25c$41fc3ac0$0300a8c0@danwaters> Marty, What are your thoughts on using Access 2003 mdb as a FE, with SQL 2005 Server (Full or Express) as the BE, and SQL Server Management Studio (Full or Express) as the GUI for SQL? I have only worked with Management Studio (Express) a little, but it sure looks like a good tool for managing SQL Server. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, October 17, 2006 12:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Errors when connecting to SQL 2005 as BE I think you have 3 choices. 1. Create your ADP with Access 2007 2. Install SQL Server 2005 or SQL Express in SQL 2000 degraded mode and use Access 2003 ADP. You may not be able to run both normal version and degraded on the same server, I would have to check if this is now allowed. There were problems with SQL-SMO in beta's. 3. Use the new version of SQL Server 2005 EM to make design backend changes with Access 2003 ADP. If using SQL Express before you install the new EM SQL Server Management Studio Express, you must pre-install MSXML 6.0. The full install of SQL Server 2005 comes with it's own Management Studio. It might be easier to develop with Access 2003 against SQL 2000 and then upgrade your final backend to SQL 2005. I don't know the ramifications of doing this. To get a some of SQL 2005 newer innovations you may have to use accdb format which is the upgraded version of mdb. See for explanation and differences if using SQL Express with the Advanced Reporting Services etc. version. This site also has SQL BOL downloads. As well as latest SQL Express downloads. http://msdn.microsoft.com/vstudio/express/sql/download/ Gowey Mike W wrote: > > >Hi All, > >I have just started to play with changing one of my Microsoft Access >2003 Projects so that it connects to our new SQL Server 2005. It >connects fine to 2005 but when I attempt to design or change my >exsisting views I get the following errors. Does anyone know what type >of patches or software I need to install in order to make it work? I am >currently running Office 2003 SP2. I went to the web site but I don't >really see anything that helps. > >"Your version of Equipment Inventory doesn't support design changes with >the version of Microsoft SQL Server >Your Access project is connected to. See the Microsoft Office Update >Web site for the latest information and downloads. Your design changes >will not be saved." > >"You have connected to a version of SQL Server later than SQL Server >2000. The version of Visual Studio or Access that you are using was >released before the version of SQL Server to which you are connected. >For this reason, you might encounter problems. > >Please check with Microsoft to see if there is a service pack that you >should apply to Visual Studio or Office in order to get support for the >version of SQL Server to which you are connected. > >You can continue but any new object types might not be enumerated, and >it will not be possible to save any objects or database diagrams that >you create using the Visual Database Tools." > > >TIA, > >Mike > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Oct 18 06:51:46 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 18 Oct 2006 13:51:46 +0200 (CEST) Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Message-ID: <10468859.1161172306777.JavaMail.www@wwinf3003> To all, I have a little problem which I am sure this group can tell me the answer to....I have a datetime field in SQL Server 2000 I have an insert stored procedure which I pass the time to to put into the table, however it always puts the date in front of the time....I can input the time directly and no date gets put in front, I can also use a recordset with an update which works (but is slower)....Is there anyway I can insert a time into a datetime field in SQL Server 2000 without it putting the date in front using a stored procedure. Thanks in advance for any help on this as it's driving me nuts. Paul Hartland paul.hartland at fsmail.net 07730 523179 From Gustav at cactus.dk Wed Oct 18 07:42:01 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 18 Oct 2006 14:42:01 +0200 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Message-ID: Hi Paul So what does your stored procedure look like? Which date is stored with the time? Today's date? /gustav >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> To all, I have a little problem which I am sure this group can tell me the answer to....I have a datetime field in SQL Server 2000 I have an insert stored procedure which I pass the time to to put into the table, however it always puts the date in front of the time....I can input the time directly and no date gets put in front, I can also use a recordset with an update which works (but is slower)....Is there anyway I can insert a time into a datetime field in SQL Server 2000 without it putting the date in front using a stored procedure. Thanks in advance for any help on this as it's driving me nuts. Paul Hartland paul.hartland at fsmail.net 07730 523179 From ewaldt at gdls.com Wed Oct 18 08:43:31 2006 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Wed, 18 Oct 2006 09:43:31 -0400 Subject: [AccessD] Question about OCX files In-Reply-To: Message-ID: I placed a calendar control on a form as part of a database frontend I distribute to several in the company. One user had a problem with it. I was able to solve the problem, but would like to know more about why it occurred. When I checked the References window on her system, "Microsoft Calendar Control 10.0" was checked and fine. However, "Microsoft Windows Common Controls-2 6.0(SP3), although checked, was said to be missing (MSCOMCT2.OCX). I found it on my system and copied it to hers, and the problems is solved. Apparently the Calendar Control just contains the calendar itself, but the MSCOMCT2.OXC file is needed to do anything with it! Could someone explain this to me, please? TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. From paul.hartland at fsmail.net Wed Oct 18 09:00:17 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 18 Oct 2006 16:00:17 +0200 (CEST) Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Message-ID: <6645559.1161180017351.JavaMail.www@wwinf3002> Gustav, Here's a test one I have been playing with, can't get more simple really....Even tried using CONVERT in the stored procedure and Format from Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] (@TestTime_1 [datetime]) AS INSERT INTO [Genesis].[dbo].[timetable] ( [TestTime]) VALUES ( @TestTime_1) GO The date is always 01/01/1900 Paul Message Received: Oct 18 2006, 01:44 PM From: "Gustav Brock" To: accessd at databaseadvisors.com Cc: Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Hi Paul So what does your stored procedure look like? Which date is stored with the time? Today's date? /gustav >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> To all, I have a little problem which I am sure this group can tell me the answer to....I have a datetime field in SQL Server 2000 I have an insert stored procedure which I pass the time to to put into the table, however it always puts the date in front of the time....I can input the time directly and no date gets put in front, I can also use a recordset with an update which works (but is slower)....Is there anyway I can insert a time into a datetime field in SQL Server 2000 without it putting the date in front using a stored procedure. Thanks in advance for any help on this as it's driving me nuts. Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From cfoust at infostatsystems.com Wed Oct 18 09:59:33 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 18 Oct 2006 07:59:33 -0700 Subject: [AccessD] Updating DateTime Field IN SQL Server WithJust The Time In-Reply-To: <6645559.1161180017351.JavaMail.www@wwinf3002> Message-ID: I don't understand what purpose is served by inserting only a time. Without a date, the time is pretty meaningless. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Wednesday, October 18, 2006 7:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Updating DateTime Field IN SQL Server WithJust The Time Importance: High Gustav, Here's a test one I have been playing with, can't get more simple really....Even tried using CONVERT in the stored procedure and Format from Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] (@TestTime_1 [datetime]) AS INSERT INTO [Genesis].[dbo].[timetable] ( [TestTime]) VALUES ( @TestTime_1) GO The date is always 01/01/1900 Paul Message Received: Oct 18 2006, 01:44 PM From: "Gustav Brock" To: accessd at databaseadvisors.com Cc: Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Hi Paul So what does your stored procedure look like? Which date is stored with the time? Today's date? /gustav >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> To all, I have a little problem which I am sure this group can tell me the answer to....I have a datetime field in SQL Server 2000 I have an insert stored procedure which I pass the time to to put into the table, however it always puts the date in front of the time....I can input the time directly and no date gets put in front, I can also use a recordset with an update which works (but is slower)....Is there anyway I can insert a time into a datetime field in SQL Server 2000 without it putting the date in front using a stored procedure. Thanks in advance for any help on this as it's driving me nuts. Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at verizon.net Wed Oct 18 10:10:08 2006 From: mikedorism at verizon.net (Doris Manning) Date: Wed, 18 Oct 2006 11:10:08 -0400 Subject: [AccessD] Updating DateTime Field IN SQL Server WithJust The Time In-Reply-To: Message-ID: <000001c6f2c7$804ef630$2f01a8c0@Kermit> Charlotte, I agree with you 100%. Paul, the reason you are having problems is that SQL Server doesn't allow you to store just a time in a date/time field. If you don't provide the date portion, SQL Server will fill in that portion with 1/1/1900. Doris Manning -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, October 18, 2006 11:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Updating DateTime Field IN SQL Server WithJust The Time I don't understand what purpose is served by inserting only a time. Without a date, the time is pretty meaningless. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Wednesday, October 18, 2006 7:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Updating DateTime Field IN SQL Server WithJust The Time Importance: High Gustav, Here's a test one I have been playing with, can't get more simple really....Even tried using CONVERT in the stored procedure and Format from Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] (@TestTime_1 [datetime]) AS INSERT INTO [Genesis].[dbo].[timetable] ( [TestTime]) VALUES ( @TestTime_1) GO The date is always 01/01/1900 Paul Message Received: Oct 18 2006, 01:44 PM From: "Gustav Brock" To: accessd at databaseadvisors.com Cc: Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Hi Paul So what does your stored procedure look like? Which date is stored with the time? Today's date? /gustav >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> To all, I have a little problem which I am sure this group can tell me the answer to....I have a datetime field in SQL Server 2000 I have an insert stored procedure which I pass the time to to put into the table, however it always puts the date in front of the time....I can input the time directly and no date gets put in front, I can also use a recordset with an update which works (but is slower)....Is there anyway I can insert a time into a datetime field in SQL Server 2000 without it putting the date in front using a stored procedure. Thanks in advance for any help on this as it's driving me nuts. Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgoodhall at comcast.net Wed Oct 18 10:34:25 2006 From: sgoodhall at comcast.net (sgoodhall at comcast.net) Date: Wed, 18 Oct 2006 15:34:25 +0000 Subject: [AccessD] Updating DateTime Field IN SQL Server WithJust The Time Message-ID: <101820061534.2772.45364980000F19DD00000AD4220730079304040E080B0101099C@comcast.net> Agreed. More usefully, if you want to reference just the time portion of a stored datetime field, you can use the CONVERT function. Regards, Steve Goodhall -------------- Original message ---------------------- From: "Doris Manning" > Charlotte, I agree with you 100%. > > Paul, the reason you are having problems is that SQL Server doesn't allow > you to store just a time in a date/time field. If you don't provide the > date portion, SQL Server will fill in that portion with 1/1/1900. > > Doris Manning > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Wednesday, October 18, 2006 11:00 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Updating DateTime Field IN SQL Server WithJust The > Time > > I don't understand what purpose is served by inserting only a time. > Without a date, the time is pretty meaningless. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > paul.hartland at fsmail.net > Sent: Wednesday, October 18, 2006 7:00 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Updating DateTime Field IN SQL Server WithJust > The Time > Importance: High > > Gustav, > > Here's a test one I have been playing with, can't get more simple > really....Even tried using CONVERT in the stored procedure and Format > from Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] > (@TestTime_1 [datetime]) > AS INSERT INTO [Genesis].[dbo].[timetable] > ( [TestTime]) > > VALUES > ( @TestTime_1) > GO > > The date is always 01/01/1900 > > Paul > > > > > Message Received: Oct 18 2006, 01:44 PM > From: "Gustav Brock" > To: accessd at databaseadvisors.com > Cc: > Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just > The Time > > Hi Paul > > So what does your stored procedure look like? > Which date is stored with the time? Today's date? > > /gustav > > >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> > To all, > > I have a little problem which I am sure this group can tell me the > answer to....I have a datetime field in SQL Server 2000 I have an insert > stored procedure which I pass the time to to put into the table, however > it always puts the date in front of the time....I can input the time > directly and no date gets put in front, I can also use a recordset with > an update which works (but is slower)....Is there anyway I can insert a > time into a datetime field in SQL Server 2000 without it putting the > date in front using a stored procedure. > > Thanks in advance for any help on this as it's driving me nuts. > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Wed Oct 18 12:19:59 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 18 Oct 2006 10:19:59 -0700 Subject: [AccessD] Errors when connecting to SQL 2005 as BE In-Reply-To: <003a01c6f25c$41fc3ac0$0300a8c0@danwaters> References: <003a01c6f25c$41fc3ac0$0300a8c0@danwaters> Message-ID: <4536623F.2030806@shaw.ca> Well this is MS recommendation as they are talking about phasing out ADP's, whether this happens probably depends on customer clamour. It does require a bit more involved knowledge of SQL like ADO , roles and SP's, You will also probably have to understand the changes to SQL DMO and DTS packages in 2005. You will need your own development copy of SQL Server. Using an mdb will probably increase your development time. You might get away with doing the backend development in an Access 2007 ADP and then accessing through through a 2003 mdb. Haven't done it though. But it would give you two different perspectives. Dan Waters wrote: >Marty, > >What are your thoughts on using Access 2003 mdb as a FE, with SQL 2005 >Server (Full or Express) as the BE, and SQL Server Management Studio (Full >or Express) as the GUI for SQL? > >I have only worked with Management Studio (Express) a little, but it sure >looks like a good tool for managing SQL Server. > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Tuesday, October 17, 2006 12:16 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Errors when connecting to SQL 2005 as BE > >I think you have 3 choices. > >1. Create your ADP with Access 2007 > >2. Install SQL Server 2005 or SQL Express in SQL 2000 degraded mode > and use Access 2003 ADP. You may not be able to run both normal version > and degraded on the same server, I would have to check if this is >now allowed. > There were problems with SQL-SMO in beta's. > >3. Use the new version of SQL Server 2005 EM to make design backend changes >with Access 2003 ADP. If using SQL Express before you install the new EM >SQL Server Management Studio Express, you must pre-install MSXML 6.0. >The full install of SQL Server 2005 comes with it's own Management Studio. > >It might be easier to develop with Access 2003 against SQL 2000 >and then upgrade your final backend to SQL 2005. I don't know >the ramifications of doing this. To get a some of SQL 2005 newer innovations >you may have to use accdb format which is the upgraded version of mdb. > >See for explanation and differences if using SQL Express with the Advanced >Reporting Services etc. version. This site also has SQL BOL downloads. As >well as latest SQL Express downloads. > >http://msdn.microsoft.com/vstudio/express/sql/download/ > >Gowey Mike W wrote: > > > >>Hi All, >> >>I have just started to play with changing one of my Microsoft Access >>2003 Projects so that it connects to our new SQL Server 2005. It >>connects fine to 2005 but when I attempt to design or change my >>exsisting views I get the following errors. Does anyone know what type >>of patches or software I need to install in order to make it work? I am >>currently running Office 2003 SP2. I went to the web site but I don't >>really see anything that helps. >> >>"Your version of Equipment Inventory doesn't support design changes with >>the version of Microsoft SQL Server >>Your Access project is connected to. See the Microsoft Office Update >>Web site for the latest information and downloads. Your design changes >>will not be saved." >> >>"You have connected to a version of SQL Server later than SQL Server >>2000. The version of Visual Studio or Access that you are using was >>released before the version of SQL Server to which you are connected. >>For this reason, you might encounter problems. >> >>Please check with Microsoft to see if there is a service pack that you >>should apply to Visual Studio or Office in order to get support for the >>version of SQL Server to which you are connected. >> >>You can continue but any new object types might not be enumerated, and >>it will not be possible to save any objects or database diagrams that >>you create using the Visual Database Tools." >> >> >>TIA, >> >>Mike >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Wed Oct 18 13:11:28 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 18 Oct 2006 19:11:28 +0100 Subject: [AccessD] Load from test AGAIN References: <20060621141056.92AA528FB9A@smtp.nildram.co.uk> Message-ID: Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From DWUTKA at marlow.com Wed Oct 18 13:21:04 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 18 Oct 2006 13:21:04 -0500 Subject: [AccessD] Load from test AGAIN Message-ID: <17724746D360394AA3BFE5B8D40A9C1B012781D9@MARLOW_MAIN2.marlow.com> Just a thought, have you tried a DoEvents after the LoadFromText in the loop? LoadFromText is going to go off and do it's own thing, if it does it in a different thread (which I have seen some Access processes do), then your code may be looping before it's ready to handle another one. DoEvents might let that process finish before it loops. Drew -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Wednesday, October 18, 2006 1:11 PM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From cfoust at infostatsystems.com Wed Oct 18 13:34:09 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 18 Oct 2006 11:34:09 -0700 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Wed Oct 18 13:34:29 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 18 Oct 2006 19:34:29 +0100 Subject: [AccessD] Load from test AGAIN References: <17724746D360394AA3BFE5B8D40A9C1B012781D9@MARLOW_MAIN2.marlow.com> Message-ID: No luck Martin its odd becasue if you run a simple application.loadfromtext it will bring the file in even with the txt extension. So I cant see why if you use a loop to grab them all it would fail. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of DWUTKA at marlow.com Sent: Wed 18/10/2006 19:21 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Load from test AGAIN Just a thought, have you tried a DoEvents after the LoadFromText in the loop? LoadFromText is going to go off and do it's own thing, if it does it in a different thread (which I have seen some Access processes do), then your code may be looping before it's ready to handle another one. DoEvents might let that process finish before it loops. Drew -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Wednesday, October 18, 2006 1:11 PM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 dwaters at usinternet.com Wed Oct 18 13:45:22 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 18 Oct 2006 13:45:22 -0500 Subject: [AccessD] Errors when connecting to SQL 2005 as BE In-Reply-To: <17457947.1161192733030.JavaMail.root@sniper35> Message-ID: <000b01c6f2e5$9293a520$0200a8c0@danwaters> Thanks Marty! Dan Waters -----Original Message----- Subject: Re: [AccessD] Errors when connecting to SQL 2005 as BE Well this is MS recommendation as they are talking about phasing out ADP's, whether this happens probably depends on customer clamour. It does require a bit more involved knowledge of SQL like ADO , roles and SP's, You will also probably have to understand the changes to SQL DMO and DTS packages in 2005. You will need your own development copy of SQL Server. Using an mdb will probably increase your development time. You might get away with doing the backend development in an Access 2007 ADP and then accessing through through a 2003 mdb. Haven't done it though. But it would give you two different perspectives. Dan Waters wrote: >Marty, > >What are your thoughts on using Access 2003 mdb as a FE, with SQL 2005 >Server (Full or Express) as the BE, and SQL Server Management Studio (Full >or Express) as the GUI for SQL? > >I have only worked with Management Studio (Express) a little, but it sure >looks like a good tool for managing SQL Server. > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Errors when connecting to SQL 2005 as BE > >I think you have 3 choices. > >1. Create your ADP with Access 2007 > >2. Install SQL Server 2005 or SQL Express in SQL 2000 degraded mode > and use Access 2003 ADP. You may not be able to run both normal version > and degraded on the same server, I would have to check if this is >now allowed. > There were problems with SQL-SMO in beta's. > >3. Use the new version of SQL Server 2005 EM to make design backend changes >with Access 2003 ADP. If using SQL Express before you install the new EM >SQL Server Management Studio Express, you must pre-install MSXML 6.0. >The full install of SQL Server 2005 comes with it's own Management Studio. > >It might be easier to develop with Access 2003 against SQL 2000 >and then upgrade your final backend to SQL 2005. I don't know >the ramifications of doing this. To get a some of SQL 2005 newer innovations >you may have to use accdb format which is the upgraded version of mdb. > >See for explanation and differences if using SQL Express with the Advanced >Reporting Services etc. version. This site also has SQL BOL downloads. As >well as latest SQL Express downloads. > >http://msdn.microsoft.com/vstudio/express/sql/download/ > >Gowey Mike W wrote: > > > >>Hi All, >> >>I have just started to play with changing one of my Microsoft Access >>2003 Projects so that it connects to our new SQL Server 2005. It >>connects fine to 2005 but when I attempt to design or change my >>exsisting views I get the following errors. Does anyone know what type >>of patches or software I need to install in order to make it work? I am >>currently running Office 2003 SP2. I went to the web site but I don't >>really see anything that helps. >> >>"Your version of Equipment Inventory doesn't support design changes with >>the version of Microsoft SQL Server >>Your Access project is connected to. See the Microsoft Office Update >>Web site for the latest information and downloads. Your design changes >>will not be saved." >> >>"You have connected to a version of SQL Server later than SQL Server >>2000. The version of Visual Studio or Access that you are using was >>released before the version of SQL Server to which you are connected. >>For this reason, you might encounter problems. >> >>Please check with Microsoft to see if there is a service pack that you >>should apply to Visual Studio or Office in order to get support for the >>version of SQL Server to which you are connected. >> >>You can continue but any new object types might not be enumerated, and >>it will not be possible to save any objects or database diagrams that >>you create using the Visual Database Tools." >> >> >>TIA, >> >>Mike >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Oct 18 13:43:40 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 18 Oct 2006 13:43:40 -0500 Subject: [AccessD] Load from test AGAIN Message-ID: <17724746D360394AA3BFE5B8D40A9C1B012781E9@MARLOW_MAIN2.marlow.com> Still could be a timing issue. About how long does it take for it to do it when you do just one? Put in a simple timer to 'pause' the loop a few seconds longer then it takes to run the process.... Drew -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Wednesday, October 18, 2006 1:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN No luck Martin its odd becasue if you run a simple application.loadfromtext it will bring the file in even with the txt extension. So I cant see why if you use a loop to grab them all it would fail. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of DWUTKA at marlow.com Sent: Wed 18/10/2006 19:21 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Load from test AGAIN Just a thought, have you tried a DoEvents after the LoadFromText in the loop? LoadFromText is going to go off and do it's own thing, if it does it in a different thread (which I have seen some Access processes do), then your code may be looping before it's ready to handle another one. DoEvents might let that process finish before it loops. Drew -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Wednesday, October 18, 2006 1:11 PM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 Gustav at cactus.dk Wed Oct 18 13:45:46 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 18 Oct 2006 20:45:46 +0200 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Message-ID: Hi Paul As already noted there is no such thing as a "time only" date/time value. Given no date, the date value of a date/time value equals 1899-12-30 which is numeric 0 and normally isn't displayed by Access. Why you get 1900-01-01 which is numeric 2, I don't know. Nothing strange about your SP as far as I can see, but at the moment I have no running SQL Server to test with. /gustav >>> paul.hartland at fsmail.net 18-10-2006 16:00:17 >>> Gustav, Here's a test one I have been playing with, can't get more simple really....Even tried using CONVERT in the stored procedure and Format from Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] (@TestTime_1 [datetime]) AS INSERT INTO [Genesis].[dbo].[timetable] ( [TestTime]) VALUES ( @TestTime_1) GO The date is always 01/01/1900 Paul Message Received: Oct 18 2006, 01:44 PM From: "Gustav Brock" To: accessd at databaseadvisors.com Cc: Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Hi Paul So what does your stored procedure look like? Which date is stored with the time? Today's date? /gustav >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> To all, I have a little problem which I am sure this group can tell me the answer to....I have a datetime field in SQL Server 2000 I have an insert stored procedure which I pass the time to to put into the table, however it always puts the date in front of the time....I can input the time directly and no date gets put in front, I can also use a recordset with an update which works (but is slower)....Is there anyway I can insert a time into a datetime field in SQL Server 2000 without it putting the date in front using a stored procedure. Thanks in advance for any help on this as it's driving me nuts. Paul Hartland paul.hartland at fsmail.net 07730 523179 From mwp.reid at qub.ac.uk Wed Oct 18 13:46:56 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 18 Oct 2006 19:46:56 +0100 Subject: [AccessD] Load from test AGAIN References: Message-ID: Its fails on this line Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp strTemp has the value Form_Customer Details.txt coming into the loop Never gets past this. The error is The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules I get the feeling the answer is staring me in the face here. If I do a simple application.LoadFromText then its not a problem. But if I have 500 objects I would like to automate the process and just grab them all. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust Sent: Wed 18/10/2006 19:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 Gustav at cactus.dk Wed Oct 18 13:53:20 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 18 Oct 2006 20:53:20 +0200 Subject: [AccessD] Load from test AGAIN Message-ID: Hi Martin You need to remove spaces from the object name. /gustav >>> mwp.reid at qub.ac.uk 18-10-2006 20:46:56 >>> The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules From bill_Patten at earthlink.net Wed Oct 18 14:06:36 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Wed, 18 Oct 2006 12:06:36 -0700 Subject: [AccessD] Load from test AGAIN References: Message-ID: <009401c6f2e8$894765d0$6401a8c0@BPCS> Hi Martin, Could the space between Customer and Details.txt be causing your problem? It used to in the old DOS days. Bill ----- Original Message ----- From: "Martin Reid" To: "Access Developers discussion and problem solving" Sent: Wednesday, October 18, 2006 11:46 AM Subject: Re: [AccessD] Load from test AGAIN Its fails on this line Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp strTemp has the value Form_Customer Details.txt coming into the loop Never gets past this. The error is The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules I get the feeling the answer is staring me in the face here. If I do a simple application.LoadFromText then its not a problem. But if I have 500 objects I would like to automate the process and just grab them all. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust Sent: Wed 18/10/2006 19:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 -------------------------------------------------------------------------------- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed Oct 18 14:08:02 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 18 Oct 2006 15:08:02 -0400 Subject: [AccessD] Load from test AGAIN In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E517EC@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D359DB@ADGSERVER> Martin, Could it be that you need to surround the whole file path+file name with quotes? There are spaces in your file name. Maybe: Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "'C:\forms\" & strTemp & "'" Just a WAG. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 2:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN Its fails on this line Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp strTemp has the value Form_Customer Details.txt coming into the loop Never gets past this. The error is The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules I get the feeling the answer is staring me in the face here. If I do a simple application.LoadFromText then its not a problem. But if I have 500 objects I would like to automate the process and just grab them all. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust Sent: Wed 18/10/2006 19:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Wed Oct 18 14:26:08 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 18 Oct 2006 20:26:08 +0100 Subject: [AccessD] Load from test AGAIN References: <916187228923D311A6FE00A0CC3FAA30D359DB@ADGSERVER> Message-ID: No joy folks. Did the quotes wrote a function that stripped the spaces and still errors. I am screwing up here somewhere. Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Bobby Heid Sent: Wed 18/10/2006 20:08 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Load from test AGAIN Martin, Could it be that you need to surround the whole file path+file name with quotes? There are spaces in your file name. Maybe: Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "'C:\forms\" & strTemp & "'" Just a WAG. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 2:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN Its fails on this line Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp strTemp has the value Form_Customer Details.txt coming into the loop Never gets past this. The error is The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules I get the feeling the answer is staring me in the face here. If I do a simple application.LoadFromText then its not a problem. But if I have 500 objects I would like to automate the process and just grab them all. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust Sent: Wed 18/10/2006 19:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 Wed Oct 18 14:33:36 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 18 Oct 2006 20:33:36 +0100 Subject: [AccessD] Load from test AGAIN References: Message-ID: Heres the save sub. Woudl someone mind giving this a go for me. Public Sub createtemplate() On Error GoTo Err_createtemplate Dim db As Database Dim doc As Document Dim conn As Container Dim strPath As String Set db = CurrentDb() strPath = "C:\forms\" 'Export othe forms Set conn = db.Containers("Forms") For Each doc In conn.Documents Application.SaveAsText acForm, doc.Name, strPath & "Form_" & doc.Name & ".txt" Next doc 'Export the Reports Set conn = db.Containers("Reports") For Each doc In conn.Documents Application.SaveAsText acReport, doc.Name, strPath & "Report_" & doc.Name & ".txt" Next doc Set conn = db.Containers("Modules") For Each doc In conn.Documents Application.SaveAsText acModule, doc.Name, strPath & "Module_" & doc.Name & ".txt" Next doc Set db = Nothing Set conn = Nothing Exit_createtemplate: Exit Sub Err_createtemplate: MsgBox Err.Number & " - " & Err.Description Resume Exit_createtemplate End Sub Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Gustav Brock Sent: Wed 18/10/2006 19:53 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Load from test AGAIN Hi Martin You need to remove spaces from the object name. /gustav >>> mwp.reid at qub.ac.uk 18-10-2006 20:46:56 >>> The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Oct 18 14:39:30 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 18 Oct 2006 15:39:30 -0400 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: <001801c6f2ed$227fa740$657aa8c0@m6805> Martin, did you remove the space from the file name ON THE DISK? It is not "FINDING" the file out on the disk. Don't you love it when people used forbidden characters in their object names? 8-( John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 3:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN No joy folks. Did the quotes wrote a function that stripped the spaces and still errors. I am screwing up here somewhere. Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Bobby Heid Sent: Wed 18/10/2006 20:08 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Load from test AGAIN Martin, Could it be that you need to surround the whole file path+file name with quotes? There are spaces in your file name. Maybe: Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "'C:\forms\" & strTemp & "'" Just a WAG. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 2:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN Its fails on this line Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp strTemp has the value Form_Customer Details.txt coming into the loop Never gets past this. The error is The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules I get the feeling the answer is staring me in the face here. If I do a simple application.LoadFromText then its not a problem. But if I have 500 objects I would like to automate the process and just grab them all. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust Sent: Wed 18/10/2006 19:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 markamatte at hotmail.com Wed Oct 18 14:46:40 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 18 Oct 2006 19:46:40 +0000 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: Martin, I'm stabbing at this...but I've done a lot automation and looping around importing files...granted I haven't ever used loadfromtext...but why is the object listed in your error different than the value of strTemp: strTemp="Form_Customer Details.txt " ErrorObject="Customer Details.txt" Is it not being passed correctly? Mark A. Matte >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Load from test AGAIN >Date: Wed, 18 Oct 2006 20:26:08 +0100 > >No joy folks. > >Did the quotes wrote a function that stripped the spaces and still errors. > >I am screwing up here somewhere. > >Maritn > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Bobby Heid >Sent: Wed 18/10/2006 20:08 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Load from test AGAIN > > > >Martin, > >Could it be that you need to surround the whole file path+file name with >quotes? There are spaces in your file name. > >Maybe: > Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", >vbTextCompare) + 1), "'C:\forms\" & strTemp & "'" > >Just a WAG. > >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Wednesday, October 18, 2006 2:47 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Load from test AGAIN > > >Its fails on this line > > Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", >vbTextCompare) + 1), "C:\forms\" & strTemp > >strTemp has the value Form_Customer Details.txt coming into the loop > > >Never gets past this. > >The error is > >The object name 'Customer Details.txt' does not follow Microsoft Access >object naming rules > >I get the feeling the answer is staring me in the face here. > >If I do a simple application.LoadFromText then its not a problem. > >But if I have 500 objects I would like to automate the process and just >grab >them all. > > > >Martin > > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust >Sent: Wed 18/10/2006 19:34 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Load from test AGAIN > > > >You don't give any specifics on where your problem occurs, Martin. Is >it in the file system object handling, the LoadFromText, or what? I've >usually had fewer problems with any kind of iterative operation on files >when I created an array of the filenames (with or without extensions) to >be retrieved using Dir or file system object and then passed that into a >routine to do the actual handling, with some kind of test in place to >see if one item has succeeded before passing in another item. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Wednesday, October 18, 2006 11:11 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Load from test AGAIN > >Ok this has me beat > >No matter what I try I cant get it to loop through a folder and import >the exported text files. Tried Martys stuff, Drews stuff and my own. >Used file system object to return only the file name without the >extension and no luck. > >Any help greatly appreciated. > >background > >Access database objects exported as text files into C\|Forms > >I think need to LoadFromText all the objects in said folder back into >database. > >This cannot be as difficult as it seems. One at a time and naming the >files it works. Only when I go to look through all the objects does it >fail. This is almost my last example file I need and its melting my >head. > > >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 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ From James at fcidms.com Wed Oct 18 14:55:47 2006 From: James at fcidms.com (James Barash) Date: Wed, 18 Oct 2006 15:55:47 -0400 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: <00a001c6f2ef$67f89e10$800101df@fci.local> Martin: I think your problem is the name of the Object you are trying to create. >From the code below, you are trying to create an object called "Customer Details.txt". You need to strip the .txt from the strTemp. Something like: Application.LoadFromText acForm, Left(Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), Len(Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1)) - 4), "C:\" & strTemp I would still strip out the spaces in the Object name but the above code should work correctly. Hope that helps. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 3:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN No joy folks. Did the quotes wrote a function that stripped the spaces and still errors. I am screwing up here somewhere. Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Bobby Heid Sent: Wed 18/10/2006 20:08 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Load from test AGAIN Martin, Could it be that you need to surround the whole file path+file name with quotes? There are spaces in your file name. Maybe: Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "'C:\forms\" & strTemp & "'" Just a WAG. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 2:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN Its fails on this line Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp strTemp has the value Form_Customer Details.txt coming into the loop Never gets past this. The error is The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules I get the feeling the answer is staring me in the face here. If I do a simple application.LoadFromText then its not a problem. But if I have 500 objects I would like to automate the process and just grab them all. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust Sent: Wed 18/10/2006 19:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 Wed Oct 18 15:04:10 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 18 Oct 2006 21:04:10 +0100 Subject: [AccessD] Load from test AGAIN References: Message-ID: Mark/John Yeah I was wondering that as I was typing and I cant see why. I check each time strtemp always has the correct value. the underscore was me (<: I have removed it and removed all spaces. When I trace the calls the file name is OK other than back to the first issue of the file extension .txt on the end. But the name is OK now in the error message BUT it includes the file extension. I am thinking back to martys post re stripping the txt extension. I juts cant think of anything else that would cause this. Hes the error log from inside Access Microsoft Office Access encountered an error while importing the object 'YourFormName'. Error encountered at line 781. Expected: 'End'. Found: =. Means nothing to me but there you go! But could this be an internal Access error???? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Mark A Matte Sent: Wed 18/10/2006 20:46 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Load from test AGAIN Martin, I'm stabbing at this...but I've done a lot automation and looping around importing files...granted I haven't ever used loadfromtext...but why is the object listed in your error different than the value of strTemp: strTemp="Form_Customer Details.txt " ErrorObject="Customer Details.txt" Is it not being passed correctly? Mark A. Matte >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Load from test AGAIN >Date: Wed, 18 Oct 2006 20:26:08 +0100 > >No joy folks. > >Did the quotes wrote a function that stripped the spaces and still errors. > >I am screwing up here somewhere. > >Maritn > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Bobby Heid >Sent: Wed 18/10/2006 20:08 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Load from test AGAIN > > > >Martin, > >Could it be that you need to surround the whole file path+file name with >quotes? There are spaces in your file name. > >Maybe: > Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", >vbTextCompare) + 1), "'C:\forms\" & strTemp & "'" > >Just a WAG. > >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Wednesday, October 18, 2006 2:47 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Load from test AGAIN > > >Its fails on this line > > Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", >vbTextCompare) + 1), "C:\forms\" & strTemp > >strTemp has the value Form_Customer Details.txt coming into the loop > > >Never gets past this. > >The error is > >The object name 'Customer Details.txt' does not follow Microsoft Access >object naming rules > >I get the feeling the answer is staring me in the face here. > >If I do a simple application.LoadFromText then its not a problem. > >But if I have 500 objects I would like to automate the process and just >grab >them all. > > > >Martin > > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust >Sent: Wed 18/10/2006 19:34 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Load from test AGAIN > > > >You don't give any specifics on where your problem occurs, Martin. Is >it in the file system object handling, the LoadFromText, or what? I've >usually had fewer problems with any kind of iterative operation on files >when I created an array of the filenames (with or without extensions) to >be retrieved using Dir or file system object and then passed that into a >routine to do the actual handling, with some kind of test in place to >see if one item has succeeded before passing in another item. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Wednesday, October 18, 2006 11:11 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Load from test AGAIN > >Ok this has me beat > >No matter what I try I cant get it to loop through a folder and import >the exported text files. Tried Martys stuff, Drews stuff and my own. >Used file system object to return only the file name without the >extension and no luck. > >Any help greatly appreciated. > >background > >Access database objects exported as text files into C\|Forms > >I think need to LoadFromText all the objects in said folder back into >database. > >This cannot be as difficult as it seems. One at a time and naming the >files it works. Only when I go to look through all the objects does it >fail. This is almost my last example file I need and its melting my >head. > > >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 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Oct 18 15:12:59 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 18 Oct 2006 20:12:59 +0000 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: How about!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Your were trying to name wiht the .txt Worked for me...hope it works for you. Mark A. Matte Public Sub ImpFromText() Dim strTemp As String Dim path As String path = "c:\temp\test\Form*.*" strTemp = Dir(path) Do While strTemp <> "" Dim test test = Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1) Dim test2 test2 = Left(test, InStr(1, test, ".", vbTextCompare) - 1) Application.LoadFromText acForm, test2, "C:\temp\test\" & strTemp strTemp = Dir Loop End Sub >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Load from test AGAIN >Date: Wed, 18 Oct 2006 21:04:10 +0100 > >Mark/John > >Yeah I was wondering that as I was typing and I cant see why. I check each >time strtemp always has the correct value. > >the underscore was me (<: I have removed it and removed all spaces. When I >trace the calls the file name is OK other than back to the first issue of >the file extension .txt on the end. > >But the name is OK now in the error message BUT it includes the file >extension. I am thinking back to martys post re stripping the txt >extension. I juts cant think of anything else that would cause this. > >Hes the error log from inside Access > >Microsoft Office Access encountered an error while importing the object >'YourFormName'. >Error encountered at line 781. >Expected: 'End'. Found: =. > >Means nothing to me but there you go! But could this be an internal Access >error???? > > >Martin > > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Mark A Matte >Sent: Wed 18/10/2006 20:46 >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Load from test AGAIN > > > >Martin, > >I'm stabbing at this...but I've done a lot automation and looping around >importing files...granted I haven't ever used loadfromtext...but why is the >object listed in your error different than the value of strTemp: >strTemp="Form_Customer Details.txt " >ErrorObject="Customer Details.txt" > >Is it not being passed correctly? > >Mark A. Matte > > > >From: "Martin Reid" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: Re: [AccessD] Load from test AGAIN > >Date: Wed, 18 Oct 2006 20:26:08 +0100 > > > >No joy folks. > > > >Did the quotes wrote a function that stripped the spaces and still >errors. > > > >I am screwing up here somewhere. > > > >Maritn > > > >Martin WP Reid > >Training and Assessment Unit > >Riddle Hall > >Belfast > > > >tel: 02890 974477 > > > > > >________________________________ > > > >From: accessd-bounces at databaseadvisors.com on behalf of Bobby Heid > >Sent: Wed 18/10/2006 20:08 > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] Load from test AGAIN > > > > > > > >Martin, > > > >Could it be that you need to surround the whole file path+file name with > >quotes? There are spaces in your file name. > > > >Maybe: > > Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", > >vbTextCompare) + 1), "'C:\forms\" & strTemp & "'" > > > >Just a WAG. > > > >Bobby > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > >Sent: Wednesday, October 18, 2006 2:47 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Load from test AGAIN > > > > > >Its fails on this line > > > > Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", > >vbTextCompare) + 1), "C:\forms\" & strTemp > > > >strTemp has the value Form_Customer Details.txt coming into the loop > > > > > >Never gets past this. > > > >The error is > > > >The object name 'Customer Details.txt' does not follow Microsoft Access > >object naming rules > > > >I get the feeling the answer is staring me in the face here. > > > >If I do a simple application.LoadFromText then its not a problem. > > > >But if I have 500 objects I would like to automate the process and just > >grab > >them all. > > > > > > > >Martin > > > > > > > > > >Martin WP Reid > >Training and Assessment Unit > >Riddle Hall > >Belfast > > > >tel: 02890 974477 > > > > > >________________________________ > > > >From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust > >Sent: Wed 18/10/2006 19:34 > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Load from test AGAIN > > > > > > > >You don't give any specifics on where your problem occurs, Martin. Is > >it in the file system object handling, the LoadFromText, or what? I've > >usually had fewer problems with any kind of iterative operation on files > >when I created an array of the filenames (with or without extensions) to > >be retrieved using Dir or file system object and then passed that into a > >routine to do the actual handling, with some kind of test in place to > >see if one item has succeeded before passing in another item. > > > >Charlotte Foust > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > >Sent: Wednesday, October 18, 2006 11:11 AM > >To: Access Developers discussion and problem solving > >Subject: [AccessD] Load from test AGAIN > > > >Ok this has me beat > > > >No matter what I try I cant get it to loop through a folder and import > >the exported text files. Tried Martys stuff, Drews stuff and my own. > >Used file system object to return only the file name without the > >extension and no luck. > > > >Any help greatly appreciated. > > > >background > > > >Access database objects exported as text files into C\|Forms > > > >I think need to LoadFromText all the objects in said folder back into > >database. > > > >This cannot be as difficult as it seems. One at a time and naming the > >files it works. Only when I go to look through all the objects does it > >fail. This is almost my last example file I need and its melting my > >head. > > > > > >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 > > > > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >_________________________________________________________________ >Get FREE company branded e-mail accounts and business Web site from >Microsoft Office Live >http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Find a local pizza place, music store, museum and more?then map the best route! http://local.live.com?FORM=MGA001 From accessd at shaw.ca Wed Oct 18 15:22:54 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 18 Oct 2006 13:22:54 -0700 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: <0J7C000RGLX4DWJ1@l-daemon> Hi Martin: I concur with Drew on this... place a DoEvent that holds the event from processing until the LoadFromText has finished processing. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN No luck Martin its odd becasue if you run a simple application.loadfromtext it will bring the file in even with the txt extension. So I cant see why if you use a loop to grab them all it would fail. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of DWUTKA at marlow.com Sent: Wed 18/10/2006 19:21 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Load from test AGAIN Just a thought, have you tried a DoEvents after the LoadFromText in the loop? LoadFromText is going to go off and do it's own thing, if it does it in a different thread (which I have seen some Access processes do), then your code may be looping before it's ready to handle another one. DoEvents might let that process finish before it loops. Drew -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Wednesday, October 18, 2006 1:11 PM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 accessd at shaw.ca Wed Oct 18 15:28:16 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 18 Oct 2006 13:28:16 -0700 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: <0J7C00E4PM63BWJ0@l-daemon> Had a similar problem when reading files that had under bars and other strange characters in the names as post and prefix padding. The files with strange characters had to be detected first and the excluded and then any padding was removed. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN Its fails on this line Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp strTemp has the value Form_Customer Details.txt coming into the loop Never gets past this. The error is The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules I get the feeling the answer is staring me in the face here. If I do a simple application.LoadFromText then its not a problem. But if I have 500 objects I would like to automate the process and just grab them all. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust Sent: Wed 18/10/2006 19:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 Wed Oct 18 15:31:22 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 18 Oct 2006 13:31:22 -0700 Subject: [AccessD] Load from test AGAIN In-Reply-To: References: <20060621141056.92AA528FB9A@smtp.nildram.co.uk> Message-ID: <45368F1A.9090306@shaw.ca> This works for me assuming file names are in this style of template "C:\Access files\Forms\Form_MySinging.txt I found an unfinished mda that does most of this. going both ways load and save, if you want a look see Lacks some error checking etc. Public Sub loadup() On Error GoTo Err_loadup Dim strTemp As String Dim strName As String Dim strDir As String strDir = "C:\Access files\Forms\" strTemp = Dir(strDir & "*.txt") Do Until strTemp = "" Debug.Print UCase(Left(strTemp, 4)) 'remove file name extension strName = Mid(strTemp, 1, InStrRev(strTemp, ".", -1, vbTextCompare) - 1) Select Case UCase(Left(strTemp, 4)) Case "FORM" Debug.Print strTemp; strName ' 'remove file name prefix "Form_" Application.LoadFromText acForm, Mid(strName, InStr(1, strName, "_", vbTextCompare) + 1), strDir & strTemp Case "REPO" Application.LoadFromText acReport, "test", strDir & strTemp End Select strTemp = Dir Loop Exit_loadup: Exit Sub Err_loadup: MsgBox Err.Description, Err.Number Resume Exit_loadup Resume 0 '.FOR TROUBLESHOOTING End Sub Martin Reid wrote: >Ok this has me beat > >No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. > >Any help greatly appreciated. > >background > >Access database objects exported as text files into C\|Forms > >I think need to LoadFromText all the objects in said folder back into database. > >This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. > > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.408 / Virus Database: 268.13.5/483 - Release Date: 18/10/2006 > > -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Wed Oct 18 17:47:53 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 19 Oct 2006 08:47:53 +1000 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time In-Reply-To: <6645559.1161180017351.JavaMail.www@wwinf3002> References: <6645559.1161180017351.JavaMail.www@wwinf3002> Message-ID: <4536AF19.13229.CDEB9D4@stuart.lexacorp.com.pg> DateTime and SmallDateTime data in SQL Server are stored in two parts, the hi bytes store the date as an offset from '1/1/1900" and the low bytes store the time as a number of seconds or milliseconds after midnight. Unfortunately this differs from Access which uses "31-12-1899" as Day 0. So, if you try to store "08:30" through an Access recordset or it directly into a linked table, Access stores you "time only" as "31-12-1899 08:30". If you do it as through an SP, SQL Server stores it as "1-1-1900 08:30" When working between Access and SQL Server, you need take this one day difference into account if you are manipulating just the time parts of the data, either by adding/subtracting 1 from the data or more generally, taking only the fractional part of the data when it is Read. On 18 Oct 2006 at 16:00, paul.hartland at fsmail.net wrote: > Gustav, > > Here's a test one I have been playing with, can't get more simple > really....Even tried using CONVERT in the stored procedure and Format from > Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] > (@TestTime_1 [datetime]) > AS INSERT INTO [Genesis].[dbo].[timetable] > ( [TestTime]) > > VALUES > ( @TestTime_1) > GO > > The date is always 01/01/1900 > > Paul > > > > > Message Received: Oct 18 2006, 01:44 PM > From: "Gustav Brock" > To: accessd at databaseadvisors.com > Cc: > Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just The > Time > > Hi Paul > > So what does your stored procedure look like? > Which date is stored with the time? Today's date? > > /gustav > > >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> > To all, > > I have a little problem which I am sure this group can tell me the answer > to....I have a datetime field in SQL Server 2000 I have an insert stored > procedure which I pass the time to to put into the table, however it always > puts the date in front of the time....I can input the time directly and no > date gets put in front, I can also use a recordset with an update which > works (but is slower)....Is there anyway I can insert a time into a datetime > field in SQL Server 2000 without it putting the date in front using a stored > procedure. > > Thanks in advance for any help on this as it's driving me nuts. > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From mwp.reid at qub.ac.uk Thu Oct 19 03:03:44 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 19 Oct 2006 09:03:44 +0100 Subject: [AccessD] Load from test AGAIN References: <20060621141056.92AA528FB9A@smtp.nildram.co.uk> <45368F1A.9090306@shaw.ca> Message-ID: I posted last night but it has been bounced. I figured this must be an issue with my install of Access at home. Given everythign I tried, Drew, Marty and all shoudl actually have worked for me. I am redoing this on one of the office machines this morning to see if there is a difference. I appreciate the time you have all taken over this. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From Gustav at cactus.dk Thu Oct 19 04:30:55 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 19 Oct 2006 11:30:55 +0200 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Message-ID: Hi Stuart and Paul Stuart, Access uses the 30. not the 31. of December as base date, so isn't the difference 2? Aside, having my SQL Server back in service, if I link a date field to Access and insert a date/time like 1899-12-30 23:45:00, it displays as 23:45:00 in Access. If I enter 1900-01-01 23:45 and later extract the numeric value, it is 2. This is not done by the ODBC driver but is the actual numeric stored value which can be seen be running a pass-through query like this: select yourdatefield, cast(yourdatefield as float) from yourtable If I insert a time with a pass-through query, it will be inserted the same way as in Paul's SP and that is with a base date of 1900-01-01 and that is Paul's problem when he extracts the time in Access. The solution, as I see it, is to convert the date/time value to a time-only string expression when extracted in the SP like this: select yourdatefield, convert(varchar, yourdatefield, 108) from yourtable or, for a date/time value and not a string expression: select yourdatefield, cast(convert(varchar, yourdatefield, 108) as datetime) from yourtable In Access: select yourdatefield, CDate(Format(yourdatefield, "hh:nn:ss")) from yourtable So, as Paul has shown, when dealing with time only it is important to be careful if values are inserted both at client (Access) and server (SQL Server). One could choose to select a base date of your own, like 2000-01-01 - this could indeed be needed if the time values can exceed 24 hours. Or simply, whenever a time value is extracted, always to expect a date part to be present and always convert the value to the client's base date. /gustav >>> stuart at lexacorp.com.pg 19-10-2006 00:47 >>> DateTime and SmallDateTime data in SQL Server are stored in two parts, the hi bytes store the date as an offset from '1/1/1900" and the low bytes store the time as a number of seconds or milliseconds after midnight. Unfortunately this differs from Access which uses "31-12-1899" as Day 0. So, if you try to store "08:30" through an Access recordset or it directly into a linked table, Access stores you "time only" as "31-12-1899 08:30". If you do it as through an SP, SQL Server stores it as "1-1-1900 08:30" When working between Access and SQL Server, you need take this one day difference into account if you are manipulating just the time parts of the data, either by adding/subtracting 1 from the data or more generally, taking only the fractional part of the data when it is Read. On 18 Oct 2006 at 16:00, paul.hartland at fsmail.net wrote: > Gustav, > > Here's a test one I have been playing with, can't get more simple > really....Even tried using CONVERT in the stored procedure and Format from > Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] > (@TestTime_1 [datetime]) > AS INSERT INTO [Genesis].[dbo].[timetable] > ( [TestTime]) > > VALUES > ( @TestTime_1) > GO > > The date is always 01/01/1900 > > Paul > > > > > Message Received: Oct 18 2006, 01:44 PM > From: "Gustav Brock" > To: accessd at databaseadvisors.com > Cc: > Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just The > Time > > Hi Paul > > So what does your stored procedure look like? > Which date is stored with the time? Today's date? > > /gustav > > >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> > To all, > > I have a little problem which I am sure this group can tell me the answer > to....I have a datetime field in SQL Server 2000 I have an insert stored > procedure which I pass the time to to put into the table, however it always > puts the date in front of the time....I can input the time directly and no > date gets put in front, I can also use a recordset with an update which > works (but is slower)....Is there anyway I can insert a time into a datetime > field in SQL Server 2000 without it putting the date in front using a stored > procedure. > > Thanks in advance for any help on this as it's driving me nuts. > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 From stuart at lexacorp.com.pg Thu Oct 19 04:50:20 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 19 Oct 2006 19:50:20 +1000 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time In-Reply-To: References: Message-ID: <45374A5C.24885.F3D3588@stuart.lexacorp.com.pg> On 19 Oct 2006 at 11:30, Gustav Brock wrote: > Hi Stuart and Paul > > Stuart, Access uses the 30. not the 31. of December as base date, so isn't > the difference 2? You are quite correct, I was going from memory on that one :-( -- Stuart From stuart at lexacorp.com.pg Thu Oct 19 04:55:51 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 19 Oct 2006 19:55:51 +1000 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time In-Reply-To: <45374A5C.24885.F3D3588@stuart.lexacorp.com.pg> References: , <45374A5C.24885.F3D3588@stuart.lexacorp.com.pg> Message-ID: <45374BA7.24589.F4243C8@stuart.lexacorp.com.pg> On 19 Oct 2006 at 19:50, Stuart McLachlan wrote: > On 19 Oct 2006 at 11:30, Gustav Brock wrote: > > > Hi Stuart and Paul > > > > Stuart, Access uses the 30. not the 31. of December as base date, so isn't > > the difference 2? > > You are quite correct, I was going from memory on that one :-( It's Excel that uses "31/12/1899" as the base date - but it shows it as "0/1/1900" :-) So you need to be even more cautious if you mix data from Excel sheets into to mix :-( -- Stuart From Gustav at cactus.dk Thu Oct 19 09:02:04 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 19 Oct 2006 16:02:04 +0200 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Message-ID: Hi Stuart Oh, that's it. What a mess. /gustav >>> stuart at lexacorp.com.pg 19-10-2006 11:55:51 >>> On 19 Oct 2006 at 19:50, Stuart McLachlan wrote: > On 19 Oct 2006 at 11:30, Gustav Brock wrote: > > > Hi Stuart and Paul > > > > Stuart, Access uses the 30. not the 31. of December as base date, so isn't > > the difference 2? > > You are quite correct, I was going from memory on that one :-( It's Excel that uses "31/12/1899" as the base date - but it shows it as "0/1/1900" :-) So you need to be even more cautious if you mix data from Excel sheets into to mix :-( -- Stuart From ssharkins at setel.com Thu Oct 19 10:57:57 2006 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 19 Oct 2006 11:57:57 -0400 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just TheTime In-Reply-To: Message-ID: <000301c6f397$59933a30$fe34fad1@SUSANONE> FWIW, Outlook does something squirrelly with dates when importing/exporting with Access, but I don't remember the exact problem, but it's similar. I could look it up if anyone needed to know. Susan H. Oh, that's it. What a mess. It's Excel that uses "31/12/1899" as the base date - but it shows it as "0/1/1900" :-) From Gustav at cactus.dk Thu Oct 19 12:48:54 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 19 Oct 2006 19:48:54 +0200 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Message-ID: Hi all If anyone wonders, MySQL uses the same base date as Access. Thus, in this context, MySQL may make up a friendlier backend than SQL Server (and Sybase I guess - don't know about Oracle etc.). /gustav >>> Gustav at cactus.dk 19-10-2006 11:30:55 >>> Hi Stuart and Paul Stuart, Access uses the 30. not the 31. of December as base date, so isn't the difference 2? Aside, having my SQL Server back in service, if I link a date field to Access and insert a date/time like 1899-12-30 23:45:00, it displays as 23:45:00 in Access. If I enter 1900-01-01 23:45 and later extract the numeric value, it is 2. This is not done by the ODBC driver but is the actual numeric stored value which can be seen be running a pass-through query like this: select yourdatefield, cast(yourdatefield as float) from yourtable If I insert a time with a pass-through query, it will be inserted the same way as in Paul's SP and that is with a base date of 1900-01-01 and that is Paul's problem when he extracts the time in Access. The solution, as I see it, is to convert the date/time value to a time-only string expression when extracted in the SP like this: select yourdatefield, convert(varchar, yourdatefield, 108) from yourtable or, for a date/time value and not a string expression: select yourdatefield, cast(convert(varchar, yourdatefield, 108) as datetime) from yourtable In Access: select yourdatefield, CDate(Format(yourdatefield, "hh:nn:ss")) from yourtable So, as Paul has shown, when dealing with time only it is important to be careful if values are inserted both at client (Access) and server (SQL Server). One could choose to select a base date of your own, like 2000-01-01 - this could indeed be needed if the time values can exceed 24 hours. Or simply, whenever a time value is extracted, always to expect a date part to be present and always convert the value to the client's base date. /gustav >>> stuart at lexacorp.com.pg 19-10-2006 00:47 >>> DateTime and SmallDateTime data in SQL Server are stored in two parts, the hi bytes store the date as an offset from '1/1/1900" and the low bytes store the time as a number of seconds or milliseconds after midnight. Unfortunately this differs from Access which uses "31-12-1899" as Day 0. So, if you try to store "08:30" through an Access recordset or it directly into a linked table, Access stores you "time only" as "31-12-1899 08:30". If you do it as through an SP, SQL Server stores it as "1-1-1900 08:30" When working between Access and SQL Server, you need take this one day difference into account if you are manipulating just the time parts of the data, either by adding/subtracting 1 from the data or more generally, taking only the fractional part of the data when it is Read. On 18 Oct 2006 at 16:00, paul.hartland at fsmail.net wrote: > Gustav, > > Here's a test one I have been playing with, can't get more simple > really....Even tried using CONVERT in the stored procedure and Format from > Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] > (@TestTime_1 [datetime]) > AS INSERT INTO [Genesis].[dbo].[timetable] > ( [TestTime]) > > VALUES > ( @TestTime_1) > GO > > The date is always 01/01/1900 > > Paul > > > > > Message Received: Oct 18 2006, 01:44 PM > From: "Gustav Brock" > To: accessd at databaseadvisors.com > Cc: > Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just The > Time > > Hi Paul > > So what does your stored procedure look like? > Which date is stored with the time? Today's date? > > /gustav > > >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> > To all, > > I have a little problem which I am sure this group can tell me the answer > to....I have a datetime field in SQL Server 2000 I have an insert stored > procedure which I pass the time to to put into the table, however it always > puts the date in front of the time....I can input the time directly and no > date gets put in front, I can also use a recordset with an update which > works (but is slower)....Is there anyway I can insert a time into a datetime > field in SQL Server 2000 without it putting the date in front using a stored > procedure. > > Thanks in advance for any help on this as it's driving me nuts. > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 From markamatte at hotmail.com Thu Oct 19 14:25:51 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 19 Oct 2006 19:25:51 +0000 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: Martin, With the code we sent I hope you found your solution. I understand what the code does...I was wondering if you could share the 'why'? What would be the reason for saving the objects as text...and then reloading them? Thanks, Mark A. Matte >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Load from test AGAIN >Date: Thu, 19 Oct 2006 09:03:44 +0100 > >I posted last night but it has been bounced. > >I figured this must be an issue with my install of Access at home. Given >everythign I tried, Drew, Marty and all shoudl actually have worked for me. > >I am redoing this on one of the office machines this morning to see if >there is a difference. > >I appreciate the time you have all taken over this. > >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 _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ From mwp.reid at qub.ac.uk Thu Oct 19 14:41:34 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 19 Oct 2006 20:41:34 +0100 Subject: [AccessD] Load from test AGAIN References: Message-ID: Mark The idea was (following the layout of an MS Blog) to explain the save and load methods. Mostly to demonstrate the structure of the resulting text files. I wanted to do this because the New Access templates can be opened as a ZIP package allowing you to see the structure of the template in terms of its XML. Many of the XML files are structured in the same was as the SaveAsText files. I felt most Access developers would get the idea better if I coudl some them this was something with which they are already familar. Now once I had written the save as routine I just felt I had to also include a good LoadFrom as well. It sort of all fitted together. I could find nothing in research that demostrated loading a whole set of files toggether. Everyoen seems to do this an object at a time. So I figured how hard is it. But there you go. I am almost finished writing Professional Access 2007 for Apress. Only thing to do is to write up the example from the world chapter to which many people on the list have given me permission to reuse some of their postings from AccessD. I hope this explains it. It really seemed a good idea at the time and I was so far into teh stuff and it supported so much of what else I had done that I had to get that code to work. Best Wishes Martin From markamatte at hotmail.com Thu Oct 19 15:16:48 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 19 Oct 2006 20:16:48 +0000 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: Thanks Martin, That helps a bit,,,but since I have limited knowledge of XML...I understand the 'why', just can't relate to it.(my fault...lol) I'm not sure if this is the same thing, or if you are still looking/researching...but while I was looking I found the following link that seems to be a "wizard" that does exactly what talking about(loadfromtext). http://www.mvps.org/access/modules/mdl0045.htm Hope it helps, Mark A. Matte >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Load from test AGAIN >Date: Thu, 19 Oct 2006 20:41:34 +0100 > >Mark > >The idea was (following the layout of an MS Blog) to explain the save and >load methods. Mostly to demonstrate the structure of the resulting text >files. I wanted to do this because the New Access templates can be opened >as a ZIP package allowing you to see the structure of the template in terms >of its XML. Many of the XML files are structured in the same was as the >SaveAsText files. I felt most Access developers would get the idea better >if I coudl some them this was something with which they are already >familar. > >Now once I had written the save as routine I just felt I had to also >include a good LoadFrom as well. It sort of all fitted together. I could >find nothing in research that demostrated loading a whole set of files >toggether. Everyoen seems to do this an object at a time. So I figured how >hard is it. But there you go. > >I am almost finished writing Professional Access 2007 for Apress. Only >thing to do is to write up the example from the world chapter to which many >people on the list have given me permission to reuse some of their postings >from AccessD. > >I hope this explains it. It really seemed a good idea at the time and I was >so far into teh stuff and it supported so much of what else I had done that >I had to get that code to work. > >Best Wishes > >Martin > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Use your PC to make calls at very low rates https://voiceoam.pcs.v2s.live.com/partnerredirect.aspx From mwp.reid at qub.ac.uk Thu Oct 19 15:21:15 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 19 Oct 2006 21:21:15 +0100 Subject: [AccessD] Load from test AGAIN References: Message-ID: You know something Mark I dont know that much about XML myself. Been getting help from Marty. I figured developers will understand load and savef text files and understand the output so when it cam to the XM it wasnt a major jump. I can let you see the draft of the chapter if you would like. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Mark A Matte Sent: Thu 19/10/2006 21:16 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Load from test AGAIN Thanks Martin, That helps a bit,,,but since I have limited knowledge of XML...I understand the 'why', just can't relate to it.(my fault...lol) I'm not sure if this is the same thing, or if you are still looking/researching...but while I was looking I found the following link that seems to be a "wizard" that does exactly what talking about(loadfromtext). http://www.mvps.org/access/modules/mdl0045.htm Hope it helps, Mark A. Matte >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Load from test AGAIN >Date: Thu, 19 Oct 2006 20:41:34 +0100 > >Mark > >The idea was (following the layout of an MS Blog) to explain the save and >load methods. Mostly to demonstrate the structure of the resulting text >files. I wanted to do this because the New Access templates can be opened >as a ZIP package allowing you to see the structure of the template in terms >of its XML. Many of the XML files are structured in the same was as the >SaveAsText files. I felt most Access developers would get the idea better >if I coudl some them this was something with which they are already >familar. > >Now once I had written the save as routine I just felt I had to also >include a good LoadFrom as well. It sort of all fitted together. I could >find nothing in research that demostrated loading a whole set of files >toggether. Everyoen seems to do this an object at a time. So I figured how >hard is it. But there you go. > >I am almost finished writing Professional Access 2007 for Apress. Only >thing to do is to write up the example from the world chapter to which many >people on the list have given me permission to reuse some of their postings >from AccessD. > >I hope this explains it. It really seemed a good idea at the time and I was >so far into teh stuff and it supported so much of what else I had done that >I had to get that code to work. > >Best Wishes > >Martin > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Use your PC to make calls at very low rates https://voiceoam.pcs.v2s.live.com/partnerredirect.aspx -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Thu Oct 19 15:57:15 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 19 Oct 2006 20:57:15 +0000 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: That would be much appreciated. Thanks, Mark >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Load from test AGAIN >Date: Thu, 19 Oct 2006 21:21:15 +0100 > >You know something Mark I dont know that much about XML myself. Been >getting help from Marty. I figured developers will understand load and >savef text files and understand the output so when it cam to the XM it >wasnt a major jump. I can let you see the draft of the chapter if you would >like. > > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Mark A Matte >Sent: Thu 19/10/2006 21:16 >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Load from test AGAIN > > > >Thanks Martin, > >That helps a bit,,,but since I have limited knowledge of XML...I understand >the 'why', just can't relate to it.(my fault...lol) > >I'm not sure if this is the same thing, or if you are still >looking/researching...but while I was looking I found the following link >that seems to be a "wizard" that does exactly what talking >about(loadfromtext). > >http://www.mvps.org/access/modules/mdl0045.htm > >Hope it helps, > >Mark A. Matte > > > >From: "Martin Reid" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: Re: [AccessD] Load from test AGAIN > >Date: Thu, 19 Oct 2006 20:41:34 +0100 > > > >Mark > > > >The idea was (following the layout of an MS Blog) to explain the save and > >load methods. Mostly to demonstrate the structure of the resulting text > >files. I wanted to do this because the New Access templates can be opened > >as a ZIP package allowing you to see the structure of the template in >terms > >of its XML. Many of the XML files are structured in the same was as the > >SaveAsText files. I felt most Access developers would get the idea better > >if I coudl some them this was something with which they are already > >familar. > > > >Now once I had written the save as routine I just felt I had to also > >include a good LoadFrom as well. It sort of all fitted together. I could > >find nothing in research that demostrated loading a whole set of files > >toggether. Everyoen seems to do this an object at a time. So I figured >how > >hard is it. But there you go. > > > >I am almost finished writing Professional Access 2007 for Apress. Only > >thing to do is to write up the example from the world chapter to which >many > >people on the list have given me permission to reuse some of their >postings > >from AccessD. > > > >I hope this explains it. It really seemed a good idea at the time and I >was > >so far into teh stuff and it supported so much of what else I had done >that > >I had to get that code to work. > > > >Best Wishes > > > >Martin > > > > > > > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >_________________________________________________________________ >Use your PC to make calls at very low rates >https://voiceoam.pcs.v2s.live.com/partnerredirect.aspx > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From sukadi at trakindo.co.id Fri Oct 20 00:56:56 2006 From: sukadi at trakindo.co.id (sukadi at trakindo.co.id) Date: Fri, 20 Oct 2006 12:56:56 +0700 Subject: [AccessD] help Message-ID: Kind Regards, ++SKI++ Note : When sending an email / reply to this address, please avoid attaching ZIP and image files (jpg, gif, bmp, png, etc.) as they are not in conformity with the Group's e-mail attachment Security Policy. Allowed attachments are standard MS Office (doc, xls, ppt, etc.) and PDF files. =========================================================================== This email is confidential. If you are not the addressee tell the sender immediately and destroy this email without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay, interception and amendment. The Trakindo Group of Companies do not accept liability for damage caused by this email and may monitor email traffic. Unless expressly stated, any opinions are the sender's and are not approved by the Trakindo Group of Companies and this email is not an offer, solicitation, recommendation or agreement of any kind. =========================================================================== From pedro at plex.nl Fri Oct 20 13:10:14 2006 From: pedro at plex.nl (pedro at plex.nl) Date: Fri, 20 Oct 2006 13:10:14 (MET DST) Subject: [AccessD] difference in days Message-ID: <200610201110.k9KBAEZN024888@mailhostC.plex.net> Hallo Group, i used the following sql to calculate the difference between two dates. SELECT Datum.Rapnaam, DateDiff("d",[DatOnt],[DatScr]) AS verschil FROM Datum; but i forgot that i only need the difference in workingdays, without the weekends. Is there a way to adjust the sql? Pedro Janssen From paul.hartland at fsmail.net Fri Oct 20 06:42:25 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 20 Oct 2006 13:42:25 +0200 (CEST) Subject: [AccessD] difference in days Message-ID: <17389054.1161344542619.JavaMail.www@wwinf3202> Pedro, I think you would have to use the function (or similar) that you can get from the Access Web, see below: '************* Code Start ************* Public Function HowManyWeekDay(FromDate As Date, _ ToDate As Date, _ Optional ToDateIsIncluded As Boolean = True) HowManyWeekDay = DateDiff("d", FromDate, ToDate) - _ ToDateIsIncluded - _ HowManyWD(FromDate, ToDate, vbSunday) - _ HowManyWD(FromDate, ToDate, vbSaturday) End Function '************* Code End ************* Paul Hartland Message Received: Oct 20 2006, 12:14 PM From: pedro at plex.nl To: accessd at databaseadvisors.com Cc: Subject: [AccessD] difference in days Hallo Group, i used the following sql to calculate the difference between two dates. SELECT Datum.Rapnaam, DateDiff("d",[DatOnt],[DatScr]) AS verschil FROM Datum; but i forgot that i only need the difference in workingdays, without the weekends. Is there a way to adjust the sql? Pedro Janssen -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From Gustav at cactus.dk Fri Oct 20 07:22:23 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 20 Oct 2006 14:22:23 +0200 Subject: [AccessD] difference in days Message-ID: Hi Pedro If you browse the archives, functions for calculation working days have been posted several times. See an example below. Once calculated these, somehow lookup holidays within the start and end date and deduct those falling on workdays. This can be as simple as a table you maintain or - if speed is needed - a function which calculates the movable (Christian) holidays following moon phases or other rules. Look up the archives for "Easter". Fixed holidays like New Year can be hardcoded. Another method is to create a table of every possible dates for your system, then mark these as needed. This can seem overwhelming but think about it: only 10000 records are needed for 30 years. /gustav Public Function ISO_WorkdayDiff( _ ByVal datDateFrom As Date, _ ByVal datDateTo As Date) _ As Long ' Purpose: Calculate number of working days between dates datDateFrom and datDateTo. ' Assumes: 5 or 6 working days per week. Weekend is (Saturday and) Sunday. ' Limitation: Does not count for public holidays. ' May be freely used and distributed. ' 1999-04-23. Gustav Brock, Cactus Data ApS, Copenhagen ' 2000-10-03. Constants added. ' Option for 5 or 6 working days per week added. Const cbytWorkdaysOfWeek As Byte = 5 Dim bytSunday As Byte Dim intWeekdayDateFrom As Integer Dim intWeekdayDateTo As Integer Dim lngDays As Long Dim datDateTemp As Date ' Reverse dates if these have been input reversed. If datDateFrom > datDateTo Then datDateTemp = datDateFrom datDateFrom = datDateTo datDateTo = datDateTemp End If ' Find ISO weekday for Sunday. bytSunday = WeekDay(vbSunday, vbMonday) ' Find weekdays for the dates. intWeekdayDateFrom = WeekDay(datDateFrom, vbMonday) intWeekdayDateTo = WeekDay(datDateTo, vbMonday) ' Compensate weekdays' value for non-working days (weekends). intWeekdayDateFrom = intWeekdayDateFrom + (intWeekdayDateFrom = bytSunday) intWeekdayDateTo = intWeekdayDateTo + (intWeekdayDateTo = bytSunday) ' Calculate number of working days between the two weekdays, ignoring number of weeks. lngDays = intWeekdayDateTo - intWeekdayDateFrom - (cbytWorkdaysOfWeek * (intWeekdayDateTo < intWeekdayDateFrom)) ' Add number of working days between the weeks of the two dates. lngDays = lngDays + (cbytWorkdaysOfWeek * DateDiff("w", datDateFrom, datDateTo, vbMonday, vbFirstFourDays)) ISO_WorkdayDiff = lngDays End Function Beware of line breaks. >>> pedro at plex.nl 20-10-2006 13:10:14 >>> Hallo Group, i used the following sql to calculate the difference between two dates. SELECT Datum.Rapnaam, DateDiff("d",[DatOnt],[DatScr]) AS verschil FROM Datum; but i forgot that i only need the difference in workingdays, without the weekends. Is there a way to adjust the sql? Pedro Janssen From Jim.Hale at FleetPride.com Fri Oct 20 08:46:15 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 20 Oct 2006 08:46:15 -0500 Subject: [AccessD] OT: Friday Humor Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE06B@corp-es01.fleetpride.com> HELL EXPLAINED BY CHEMISTRY STUDENT The following is an actual question given on a Washington State University chemistry mid-term. The answer by one student was so "profound" that the professor shared it with colleagues, via the Internet, which is, of course, why we now have the pleasure of enjoying it as well : Bonus Question: Is Hell exothermic (gives off heat) or endothermic (absorbs heat)? Most of the students wrote proofs of their beliefs using Boyle's Law (gas cools when it expands and heats when it is compressed) or some variant . One student, however, wrote the following: First, we need to know how the mass of Hell is changing in time. So we need to know the rate at which souls are moving into Hell and the rate at which they are leaving. I think that we can safely assume that once a soul gets to Hell, it will not leave. Therefore, no souls are leaving. As for how many souls are entering Hell, let's look at the different religions that exist in the world today. Most of these religions state that if you are not a member of their religion, you will go to Hell. Since there is more than one of these religions and since people do not belong to more than one religion, we can project that all souls go to Hell. With birth and death rates as they are, we can expect the number of souls in Hell to increase exponentially. Now, we look at the Rate of change of the volume in Hell because Boyle's Law states that in order for the temperature and pressure in Hell to stay the same, the volume of Hell has to expand proportionately as souls are added. This gives two possibilities: 1. If Hell is expanding at a slower rate than the rate at which souls enter Hell, then the temperature and pressure in Hell will increase until all Hell breaks loose. 2. If Hell is expanding at a rate faster than the increase of souls in Hell, then the temperature and pressure will drop until Hell freezes over. So which is it? If we accept the postulate given to me by Teresa during my Freshman year that, "It will be a cold day in Hell before I sleep with you," and take into account the fact that I slept with her last night, then number two must be true, AND thus I am sure that Hell is exothermic and has already frozen over. The corollary of this theory is that since Hell has frozen over, it follows that it is not accepting any more souls and is therefore, extinct......leaving only Heaven, thereby proving the existence of a divine being which explains why, last night, Teresa kept shouting "Oh my God." THIS STUDENT RECEIVED THE ONLY "A" *********************************************************************** 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 kens.programming at verizon.net Fri Oct 20 11:24:12 2006 From: kens.programming at verizon.net (kens.programming) Date: Fri, 20 Oct 2006 09:24:12 -0700 Subject: [AccessD] OT: Friday Humor In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DE06B@corp-es01.fleetpride.com> Message-ID: <011501c6f464$2ea6fb40$6b01a8c0@Stoker.com> That is great. Makes me happy to be a WSU alumnus. Thanks for sharing. Ken -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Friday, October 20, 2006 6:46 AM To: 'Accessd (E-mail) Subject: [AccessD] OT: Friday Humor HELL EXPLAINED BY CHEMISTRY STUDENT The following is an actual question given on a Washington State University chemistry mid-term. The answer by one student was so "profound" that the professor shared it with colleagues, via the Internet, which is, of course, why we now have the pleasure of enjoying it as well : Bonus Question: Is Hell exothermic (gives off heat) or endothermic (absorbs heat)? Most of the students wrote proofs of their beliefs using Boyle's Law (gas cools when it expands and heats when it is compressed) or some variant . One student, however, wrote the following: First, we need to know how the mass of Hell is changing in time. So we need to know the rate at which souls are moving into Hell and the rate at which they are leaving. I think that we can safely assume that once a soul gets to Hell, it will not leave. Therefore, no souls are leaving. As for how many souls are entering Hell, let's look at the different religions that exist in the world today. Most of these religions state that if you are not a member of their religion, you will go to Hell. Since there is more than one of these religions and since people do not belong to more than one religion, we can project that all souls go to Hell. With birth and death rates as they are, we can expect the number of souls in Hell to increase exponentially. Now, we look at the Rate of change of the volume in Hell because Boyle's Law states that in order for the temperature and pressure in Hell to stay the same, the volume of Hell has to expand proportionately as souls are added. This gives two possibilities: 1. If Hell is expanding at a slower rate than the rate at which souls enter Hell, then the temperature and pressure in Hell will increase until all Hell breaks loose. 2. If Hell is expanding at a rate faster than the increase of souls in Hell, then the temperature and pressure will drop until Hell freezes over. So which is it? If we accept the postulate given to me by Teresa during my Freshman year that, "It will be a cold day in Hell before I sleep with you," and take into account the fact that I slept with her last night, then number two must be true, AND thus I am sure that Hell is exothermic and has already frozen over. The corollary of this theory is that since Hell has frozen over, it follows that it is not accepting any more souls and is therefore, extinct......leaving only Heaven, thereby proving the existence of a divine being which explains why, last night, Teresa kept shouting "Oh my God." THIS STUDENT RECEIVED THE ONLY "A" *********************************************************************** 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.7/488 - Release Date: 10/19/2006 From cfoust at infostatsystems.com Fri Oct 20 11:24:11 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 20 Oct 2006 09:24:11 -0700 Subject: [AccessD] OT: Friday Humor In-Reply-To: <011501c6f464$2ea6fb40$6b01a8c0@Stoker.com> Message-ID: I sure it's apochryphal but it's fun anyhow! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of kens.programming Sent: Friday, October 20, 2006 9:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Humor That is great. Makes me happy to be a WSU alumnus. Thanks for sharing. Ken -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Friday, October 20, 2006 6:46 AM To: 'Accessd (E-mail) Subject: [AccessD] OT: Friday Humor HELL EXPLAINED BY CHEMISTRY STUDENT The following is an actual question given on a Washington State University chemistry mid-term. The answer by one student was so "profound" that the professor shared it with colleagues, via the Internet, which is, of course, why we now have the pleasure of enjoying it as well : Bonus Question: Is Hell exothermic (gives off heat) or endothermic (absorbs heat)? Most of the students wrote proofs of their beliefs using Boyle's Law (gas cools when it expands and heats when it is compressed) or some variant . One student, however, wrote the following: First, we need to know how the mass of Hell is changing in time. So we need to know the rate at which souls are moving into Hell and the rate at which they are leaving. I think that we can safely assume that once a soul gets to Hell, it will not leave. Therefore, no souls are leaving. As for how many souls are entering Hell, let's look at the different religions that exist in the world today. Most of these religions state that if you are not a member of their religion, you will go to Hell. Since there is more than one of these religions and since people do not belong to more than one religion, we can project that all souls go to Hell. With birth and death rates as they are, we can expect the number of souls in Hell to increase exponentially. Now, we look at the Rate of change of the volume in Hell because Boyle's Law states that in order for the temperature and pressure in Hell to stay the same, the volume of Hell has to expand proportionately as souls are added. This gives two possibilities: 1. If Hell is expanding at a slower rate than the rate at which souls enter Hell, then the temperature and pressure in Hell will increase until all Hell breaks loose. 2. If Hell is expanding at a rate faster than the increase of souls in Hell, then the temperature and pressure will drop until Hell freezes over. So which is it? If we accept the postulate given to me by Teresa during my Freshman year that, "It will be a cold day in Hell before I sleep with you," and take into account the fact that I slept with her last night, then number two must be true, AND thus I am sure that Hell is exothermic and has already frozen over. The corollary of this theory is that since Hell has frozen over, it follows that it is not accepting any more souls and is therefore, extinct......leaving only Heaven, thereby proving the existence of a divine being which explains why, last night, Teresa kept shouting "Oh my God." THIS STUDENT RECEIVED THE ONLY "A" *********************************************************************** 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.7/488 - Release Date: 10/19/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Fri Oct 20 11:50:22 2006 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 20 Oct 2006 18:50:22 +0200 Subject: [AccessD] difference in days References: <17389054.1161344542619.JavaMail.www@wwinf3202> Message-ID: <000c01c6f467$d5d06110$4001a8c0@qmotionfaa3ad9> I tried the code from Paul first, but get an error: "You used an inaccurate number of arguments in a function" The same error with the code from Gustav. What am i doing wrong. in my table there are two date fields: FromDate = [DatOnt], ToDate = [datScr]. So this is the function that i then use: Public Function HowManyWD(DatOnt As Date, _ DatScr As Date, _ Optional ToDateIsIncluded As Boolean = True) HowManyWD = DateDiff("d", DatOnt, DatScr) - _ ToDateIsIncluded - _ HowManyWD(DatOnt, DatScr, vbSunday) - _ HowManyWD(DatOnt, DatScr, vbSaturday) End Function What is going wrong Pedro Janssen ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Friday, October 20, 2006 1:42 PM Subject: Re: [AccessD] difference in days > Pedro, > > I think you would have to use the function (or similar) that you can get > from the Access Web, see below: > > '************* Code Start ************* > Public Function HowManyWeekDay(FromDate As Date, _ > ToDate As Date, _ > Optional ToDateIsIncluded As Boolean = True) > > HowManyWeekDay = DateDiff("d", FromDate, ToDate) - _ > ToDateIsIncluded - _ > HowManyWD(FromDate, ToDate, vbSunday) - _ > HowManyWD(FromDate, ToDate, vbSaturday) > End Function > '************* Code End ************* > > Paul Hartland > > > > > > Message Received: Oct 20 2006, 12:14 PM > From: pedro at plex.nl > To: accessd at databaseadvisors.com > Cc: > Subject: [AccessD] difference in days > > Hallo Group, > > i used the following sql to calculate the difference between two dates. > > SELECT Datum.Rapnaam, DateDiff("d",[DatOnt],[DatScr]) AS verschil > FROM Datum; > > but i forgot that i only need the difference in workingdays, without the > weekends. > > Is there a way to adjust the sql? > > Pedro Janssen > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Oct 20 12:06:36 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 20 Oct 2006 19:06:36 +0200 Subject: [AccessD] difference in days Message-ID: Hi Pedro This should do: SELECT Datum.Rapnaam, ISO_WorkdayDiff([DatOnt], [DatScr]) AS verschil FROM Datum; /gustav >>> pedro at plex.nl 20-10-2006 18:50:22 >>> I tried the code from Paul first, but get an error: "You used an inaccurate number of arguments in a function" The same error with the code from Gustav. What am i doing wrong. in my table there are two date fields: FromDate = [DatOnt], ToDate = [datScr]. From markamatte at hotmail.com Fri Oct 20 13:27:10 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 20 Oct 2006 18:27:10 +0000 Subject: [AccessD] OT: Friday Humor In-Reply-To: Message-ID: Haven't had to use Webster's in awhile...thanks Charlotte...lol. Thanks, Mark A. Matte P.S...Webster says 'apocryphal' instead of 'apochryphal '...but either way I agree with you Charlotte >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] OT: Friday Humor >Date: Fri, 20 Oct 2006 09:24:11 -0700 > >I sure it's apochryphal but it's fun anyhow! > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >kens.programming >Sent: Friday, October 20, 2006 9:24 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: Friday Humor > >That is great. Makes me happy to be a WSU alumnus. Thanks for sharing. > >Ken > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim >Sent: Friday, October 20, 2006 6:46 AM >To: 'Accessd (E-mail) >Subject: [AccessD] OT: Friday Humor > >HELL EXPLAINED BY CHEMISTRY STUDENT > >The following is an actual question given on a Washington State >University chemistry mid-term. >The answer by one student was so "profound" that the professor shared it >with colleagues, via the Internet, which is, of course, why we now have >the pleasure of enjoying it as well : > >Bonus Question: Is Hell exothermic (gives off heat) or endothermic >(absorbs heat)? > >Most of the students wrote proofs of their beliefs using Boyle's Law >(gas cools when it expands and heats when it is compressed) or some >variant . > >One student, however, wrote the following: > >First, we need to know how the mass of Hell is changing in time. So we >need to know the rate at which souls are moving into Hell and the rate >at which they are leaving. I think that we can safely assume that once a >soul gets to Hell, it will not leave. Therefore, no souls are leaving. >As for how many souls are entering Hell, let's look at the different >religions that exist in the world today. Most of these religions state >that if you are not a member of their religion, you will go to Hell. >Since there is more than one of these religions and since people do not >belong to more than one religion, we can project that all souls go to >Hell. With birth and death rates as they are, we can expect the number >of souls in Hell to increase exponentially. >Now, we look at the Rate of change of the volume in Hell because Boyle's >Law states that in order for the temperature and pressure in Hell to >stay the same, the volume of Hell has to expand proportionately as souls >are added. > >This gives two possibilities: > >1. If Hell is expanding at a slower rate than the rate at which souls >enter Hell, then the temperature and pressure in Hell will increase >until all Hell breaks loose. > >2. If Hell is expanding at a rate faster than the increase of souls in >Hell, then the temperature and pressure will drop until Hell freezes >over. > >So which is it? > >If we accept the postulate given to me by Teresa during my Freshman year >that, "It will be a cold day in Hell before I sleep with you," and take >into account the fact that I slept with her last night, then number two >must be true, AND thus I am sure that Hell is exothermic and has already >frozen over. The corollary of this theory is that since Hell has frozen >over, it follows that it is not accepting any more souls and is >therefore, extinct......leaving only Heaven, thereby proving the >existence of a divine being which explains why, last night, Teresa kept >shouting "Oh my God." > >THIS STUDENT RECEIVED THE ONLY "A" > > > >*********************************************************************** >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 > > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.408 / Virus Database: 268.13.7/488 - Release Date: >10/19/2006 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ All-in-one security and maintenance for your PC. Get a free 90-day trial! http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail From pedro at plex.nl Fri Oct 20 13:39:06 2006 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 20 Oct 2006 20:39:06 +0200 Subject: [AccessD] difference in days References: Message-ID: <001f01c6f477$06481270$4001a8c0@qmotionfaa3ad9> Hello Gustav, this works. Thanks. But why do i have to call the function by: ISO_WorkdayDiff([DatOnt], [DatScr]) Normally i only use: ISO_WorkdayDiff(), in calling functions from an sql. Paul: your function also began working, but i received an Error after 2 records: Stack memmory error? Thanks Pedro ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, October 20, 2006 7:06 PM Subject: Re: [AccessD] difference in days > Hi Pedro > > This should do: > > SELECT > Datum.Rapnaam, > ISO_WorkdayDiff([DatOnt], [DatScr]) AS verschil > FROM > Datum; > > /gustav > >>>> pedro at plex.nl 20-10-2006 18:50:22 >>> > I tried the code from Paul first, but get an error: "You used an > inaccurate > number of arguments in a function" > The same error with the code from Gustav. > > What am i doing wrong. in my table there are two date fields: FromDate = > [DatOnt], ToDate = [datScr]. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Fri Oct 20 13:41:14 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 20 Oct 2006 11:41:14 -0700 Subject: [AccessD] OT: Friday Humor In-Reply-To: Message-ID: Well *I* knew what I meant! LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, October 20, 2006 11:27 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Friday Humor Haven't had to use Webster's in awhile...thanks Charlotte...lol. Thanks, Mark A. Matte P.S...Webster says 'apocryphal' instead of 'apochryphal '...but either way I agree with you Charlotte >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] OT: Friday Humor >Date: Fri, 20 Oct 2006 09:24:11 -0700 > >I sure it's apochryphal but it's fun anyhow! > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >kens.programming >Sent: Friday, October 20, 2006 9:24 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: Friday Humor > >That is great. Makes me happy to be a WSU alumnus. Thanks for sharing. > >Ken > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim >Sent: Friday, October 20, 2006 6:46 AM >To: 'Accessd (E-mail) >Subject: [AccessD] OT: Friday Humor > >HELL EXPLAINED BY CHEMISTRY STUDENT > >The following is an actual question given on a Washington State >University chemistry mid-term. >The answer by one student was so "profound" that the professor shared it >with colleagues, via the Internet, which is, of course, why we now have >the pleasure of enjoying it as well : > >Bonus Question: Is Hell exothermic (gives off heat) or endothermic >(absorbs heat)? > >Most of the students wrote proofs of their beliefs using Boyle's Law >(gas cools when it expands and heats when it is compressed) or some >variant . > >One student, however, wrote the following: > >First, we need to know how the mass of Hell is changing in time. So we >need to know the rate at which souls are moving into Hell and the rate >at which they are leaving. I think that we can safely assume that once a >soul gets to Hell, it will not leave. Therefore, no souls are leaving. >As for how many souls are entering Hell, let's look at the different >religions that exist in the world today. Most of these religions state >that if you are not a member of their religion, you will go to Hell. >Since there is more than one of these religions and since people do not >belong to more than one religion, we can project that all souls go to >Hell. With birth and death rates as they are, we can expect the number >of souls in Hell to increase exponentially. >Now, we look at the Rate of change of the volume in Hell because Boyle's >Law states that in order for the temperature and pressure in Hell to >stay the same, the volume of Hell has to expand proportionately as souls >are added. > >This gives two possibilities: > >1. If Hell is expanding at a slower rate than the rate at which souls >enter Hell, then the temperature and pressure in Hell will increase >until all Hell breaks loose. > >2. If Hell is expanding at a rate faster than the increase of souls in >Hell, then the temperature and pressure will drop until Hell freezes >over. > >So which is it? > >If we accept the postulate given to me by Teresa during my Freshman year >that, "It will be a cold day in Hell before I sleep with you," and take >into account the fact that I slept with her last night, then number two >must be true, AND thus I am sure that Hell is exothermic and has already >frozen over. The corollary of this theory is that since Hell has frozen >over, it follows that it is not accepting any more souls and is >therefore, extinct......leaving only Heaven, thereby proving the >existence of a divine being which explains why, last night, Teresa kept >shouting "Oh my God." > >THIS STUDENT RECEIVED THE ONLY "A" > > > >*********************************************************************** >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 > > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.408 / Virus Database: 268.13.7/488 - Release Date: >10/19/2006 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ All-in-one security and maintenance for your PC. Get a free 90-day trial! http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http:/ /www.windowsonecare.com/?sc_cid=msn_hotmail -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tuxedoman888 at gmail.com Fri Oct 20 14:18:44 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Fri, 20 Oct 2006 12:18:44 -0700 Subject: [AccessD] OT: Friday Humor In-Reply-To: References: Message-ID: <7c8826480610201218j6d31f2dxe8bc4a9c4021c97c@mail.gmail.com> I just may consider adding the term apocryphal to my personal lexicon so i can use it to impress my peers. On 10/20/06, Charlotte Foust wrote: > > Well *I* knew what I meant! LOL > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Friday, October 20, 2006 11:27 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] OT: Friday Humor > > Haven't had to use Webster's in awhile...thanks Charlotte...lol. > > Thanks, > > Mark A. Matte > > P.S...Webster says 'apocryphal' instead of 'apochryphal '...but either > way I agree with you Charlotte > > > >From: "Charlotte Foust" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: Re: [AccessD] OT: Friday Humor > >Date: Fri, 20 Oct 2006 09:24:11 -0700 > > > >I sure it's apochryphal but it's fun anyhow! > > > >Charlotte Foust > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > >kens.programming > >Sent: Friday, October 20, 2006 9:24 AM > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] OT: Friday Humor > > > >That is great. Makes me happy to be a WSU alumnus. Thanks for > sharing. > > > >Ken > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim > >Sent: Friday, October 20, 2006 6:46 AM > >To: 'Accessd (E-mail) > >Subject: [AccessD] OT: Friday Humor > > > >HELL EXPLAINED BY CHEMISTRY STUDENT > > > >The following is an actual question given on a Washington State > >University chemistry mid-term. > >The answer by one student was so "profound" that the professor shared > it > >with colleagues, via the Internet, which is, of course, why we now have > >the pleasure of enjoying it as well : > > > >Bonus Question: Is Hell exothermic (gives off heat) or endothermic > >(absorbs heat)? > > > >Most of the students wrote proofs of their beliefs using Boyle's Law > >(gas cools when it expands and heats when it is compressed) or some > >variant . > > > >One student, however, wrote the following: > > > >First, we need to know how the mass of Hell is changing in time. So we > >need to know the rate at which souls are moving into Hell and the rate > >at which they are leaving. I think that we can safely assume that once > a > >soul gets to Hell, it will not leave. Therefore, no souls are leaving. > >As for how many souls are entering Hell, let's look at the different > >religions that exist in the world today. Most of these religions state > >that if you are not a member of their religion, you will go to Hell. > >Since there is more than one of these religions and since people do not > >belong to more than one religion, we can project that all souls go to > >Hell. With birth and death rates as they are, we can expect the number > >of souls in Hell to increase exponentially. > >Now, we look at the Rate of change of the volume in Hell because > Boyle's > >Law states that in order for the temperature and pressure in Hell to > >stay the same, the volume of Hell has to expand proportionately as > souls > >are added. > > > >This gives two possibilities: > > > >1. If Hell is expanding at a slower rate than the rate at which souls > >enter Hell, then the temperature and pressure in Hell will increase > >until all Hell breaks loose. > > > >2. If Hell is expanding at a rate faster than the increase of souls in > >Hell, then the temperature and pressure will drop until Hell freezes > >over. > > > >So which is it? > > > >If we accept the postulate given to me by Teresa during my Freshman > year > >that, "It will be a cold day in Hell before I sleep with you," and take > >into account the fact that I slept with her last night, then number two > >must be true, AND thus I am sure that Hell is exothermic and has > already > >frozen over. The corollary of this theory is that since Hell has frozen > >over, it follows that it is not accepting any more souls and is > >therefore, extinct......leaving only Heaven, thereby proving the > >existence of a divine being which explains why, last night, Teresa kept > >shouting "Oh my God." > > > >THIS STUDENT RECEIVED THE ONLY "A" > > > > > > > >*********************************************************************** > >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 > > > > > >-- > >No virus found in this incoming message. > >Checked by AVG Free Edition. > >Version: 7.1.408 / Virus Database: 268.13.7/488 - Release Date: > >10/19/2006 > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > All-in-one security and maintenance for your PC. Get a free 90-day > trial! > http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http:/ > /www.windowsonecare.com/?sc_cid=msn_hotmail > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From cclenright at yahoo.com Fri Oct 20 17:14:08 2006 From: cclenright at yahoo.com (Chris Enright) Date: Fri, 20 Oct 2006 15:14:08 -0700 (PDT) Subject: [AccessD] OT: Friday Humor Message-ID: <20061020221408.31672.qmail@web34306.mail.mud.yahoo.com> v\:* { BEHAVIOR: url (#default#vml)}v\:* { BEHAVIOR: url (#default#vml)}As an Aussie I have found, in the past, a lot of the OT:Humour (note our spelling) ;-) , somewhat difficult to really appreciate. I was sitting in bed with my laptop (sad old man) when this came through.. I have a science degree (from roughly the same time as Einstein), I read it and had tears rolling down my cheeks! Unfortunately, as a scientist, it then kept me awake for the rest of the night trying to think of a better solution to the problem. Surely, with the greatest respects, our own JC is pondering this and will shortly give us the ultimate answer! With anticipation, Chris -------Original Message------- From: Hale, Jim Date: 20/10/2006 14:47:40 To: 'Accessd (E-mail) Subject: [AccessD] OT: Friday Humor HELL EXPLAINED BY CHEMISTRY STUDENT The following is an actual question given on a Washington State University chemistry mid-term. The answer by one student was so "profound" that the professor shared it with colleagues, via the Internet, which is, of course, why we now have the pleasure of enjoying it as well : Bonus Question: Is Hell exothermic (gives off heat) or endothermic (absorbs heat)? Most of the students wrote proofs of their beliefs using Boyle's Law (gas cools when it expands and heats when it is compressed) or some variant . One student, however, wrote the following: First, we need to know how the mass of Hell is changing in time. So we need to know the rate at which souls are moving into Hell and the rate at which they are leaving. I think that we can safely assume that once a soul gets to Hell, it will not leave. Therefore, no souls are leaving. As for how many souls are entering Hell, let's look at the different religions that exist in the world today. Most of these religions state that if you are not a member of their religion, you will go to Hell. Since there is more than one of these religions and since people do not belong to more than one religion, we can project that all souls go to Hell. With birth and death rates as they are, we can expect the number of souls in Hell to increase exponentially. Now, we look at the Rate of change of the volume in Hell because Boyle's Law states that in order for the temperature and pressure in Hell to stay the same, the volume of Hell has to expand proportionately as souls are added. This gives two possibilities: 1. If Hell is expanding at a slower rate than the rate at which souls enter Hell, then the temperature and pressure in Hell will increase until all Hell breaks loose. 2. If Hell is expanding at a rate faster than the increase of souls in Hell, then the temperature and pressure will drop until Hell freezes over. So which is it? If we accept the postulate given to me by Teresa during my Freshman year that, "It will be a cold day in Hell before I sleep with you," and take into account the fact that I slept with her last night, then number two must be true, AND thus I am sure that Hell is exothermic and has already frozen over. The corollary of this theory is that since Hell has frozen over, it follows that it is not accepting any more souls and is therefore, extinct......leaving only Heaven, thereby proving the existence of a divine being which explains why, last night, Teresa kept shouting "Oh my God." THIS STUDENT RECEIVED THE ONLY "A" *********************************************************************** 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 --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. From cclenright at yahoo.com Fri Oct 20 17:42:59 2006 From: cclenright at yahoo.com (Chris Enright) Date: Fri, 20 Oct 2006 15:42:59 -0700 (PDT) Subject: [AccessD] OT: Candices. Where have they gone? Message-ID: <20061020224259.57629.qmail@web34311.mail.mud.yahoo.com> v\:* {behavior:url (#default#vml);}v\:* { BEHAVIOR: url (#default#vml)}Thinking back over the seven years that I have been on this list, and learned enough from it to earn a moderate income, for which I thank all you gurus, I remember years ago saying that Candices/Candaces were running the whole show. What happened to them? There were at least three and they have disappeared! Anyone know where they've all gone? I miss them! Chris --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. From cfoust at infostatsystems.com Fri Oct 20 18:40:41 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 20 Oct 2006 16:40:41 -0700 Subject: [AccessD] OT: Friday Humor In-Reply-To: <7c8826480610201218j6d31f2dxe8bc4a9c4021c97c@mail.gmail.com> Message-ID: In that case, make sure you spell it right!! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Billy Pang Sent: Friday, October 20, 2006 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Humor I just may consider adding the term apocryphal to my personal lexicon so i can use it to impress my peers. On 10/20/06, Charlotte Foust wrote: > > Well *I* knew what I meant! LOL > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte > Sent: Friday, October 20, 2006 11:27 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] OT: Friday Humor > > Haven't had to use Webster's in awhile...thanks Charlotte...lol. > > Thanks, > > Mark A. Matte > > P.S...Webster says 'apocryphal' instead of 'apochryphal '...but either > way I agree with you Charlotte > > > >From: "Charlotte Foust" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: Re: [AccessD] OT: Friday Humor > >Date: Fri, 20 Oct 2006 09:24:11 -0700 > > > >I sure it's apochryphal but it's fun anyhow! > > > >Charlotte Foust > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > >kens.programming > >Sent: Friday, October 20, 2006 9:24 AM > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] OT: Friday Humor > > > >That is great. Makes me happy to be a WSU alumnus. Thanks for > sharing. > > > >Ken > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim > >Sent: Friday, October 20, 2006 6:46 AM > >To: 'Accessd (E-mail) > >Subject: [AccessD] OT: Friday Humor > > > >HELL EXPLAINED BY CHEMISTRY STUDENT > > > >The following is an actual question given on a Washington State > >University chemistry mid-term. > >The answer by one student was so "profound" that the professor shared > it > >with colleagues, via the Internet, which is, of course, why we now > >have the pleasure of enjoying it as well : > > > >Bonus Question: Is Hell exothermic (gives off heat) or endothermic > >(absorbs heat)? > > > >Most of the students wrote proofs of their beliefs using Boyle's Law > >(gas cools when it expands and heats when it is compressed) or some > >variant . > > > >One student, however, wrote the following: > > > >First, we need to know how the mass of Hell is changing in time. So > >we need to know the rate at which souls are moving into Hell and the > >rate at which they are leaving. I think that we can safely assume > >that once > a > >soul gets to Hell, it will not leave. Therefore, no souls are leaving. > >As for how many souls are entering Hell, let's look at the different > >religions that exist in the world today. Most of these religions > >state that if you are not a member of their religion, you will go to Hell. > >Since there is more than one of these religions and since people do > >not belong to more than one religion, we can project that all souls > >go to Hell. With birth and death rates as they are, we can expect the > >number of souls in Hell to increase exponentially. > >Now, we look at the Rate of change of the volume in Hell because > Boyle's > >Law states that in order for the temperature and pressure in Hell to > >stay the same, the volume of Hell has to expand proportionately as > souls > >are added. > > > >This gives two possibilities: > > > >1. If Hell is expanding at a slower rate than the rate at which souls > >enter Hell, then the temperature and pressure in Hell will increase > >until all Hell breaks loose. > > > >2. If Hell is expanding at a rate faster than the increase of souls > >in Hell, then the temperature and pressure will drop until Hell > >freezes over. > > > >So which is it? > > > >If we accept the postulate given to me by Teresa during my Freshman > year > >that, "It will be a cold day in Hell before I sleep with you," and > >take into account the fact that I slept with her last night, then > >number two must be true, AND thus I am sure that Hell is exothermic > >and has > already > >frozen over. The corollary of this theory is that since Hell has > >frozen over, it follows that it is not accepting any more souls and > >is therefore, extinct......leaving only Heaven, thereby proving the > >existence of a divine being which explains why, last night, Teresa > >kept shouting "Oh my God." > > > >THIS STUDENT RECEIVED THE ONLY "A" > > > > > > > >********************************************************************* > >** 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 > > > > > >-- > >No virus found in this incoming message. > >Checked by AVG Free Edition. > >Version: 7.1.408 / Virus Database: 268.13.7/488 - Release Date: > >10/19/2006 > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > All-in-one security and maintenance for your PC. Get a free 90-day > trial! > http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http > :/ /www.windowsonecare.com/?sc_cid=msn_hotmail > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Sun Oct 22 10:20:50 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 22 Oct 2006 10:20:50 -0500 Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 Message-ID: <000601c6f5ed$a952ada0$0200a8c0@danwaters> About six months ago, I installed Access 2003 (late I know). Since then I've noticed that the command buttons in 2003 have a nice silvery color with rounded corners. The 2002 buttons are gray with square corners. Is there a way to change my older databases so that they too display the 2003 command button style? The older databases still show the older style even though they are opened in 2003. Thanks! Dan Waters ProMation Systems, Inc. (W) 763-780-2496 (M) 763-639-2960 Click Here to add Dan's contact information to your Contacts list. - If the File Download window appears, first select Open. - Then (in Outlook) select Save and Close. From john at winhaven.net Sun Oct 22 12:28:07 2006 From: john at winhaven.net (John Bartow) Date: Sun, 22 Oct 2006 12:28:07 -0500 Subject: [AccessD] Print one page of a report Message-ID: <007a01c6f5ff$70b9fae0$1402a8c0@ScuzzPaq> Is there an easy way to print just one page of an A2k3 report? From john at winhaven.net Sun Oct 22 12:28:07 2006 From: john at winhaven.net (John Bartow) Date: Sun, 22 Oct 2006 12:28:07 -0500 Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 In-Reply-To: <000601c6f5ed$a952ada0$0200a8c0@danwaters> Message-ID: <007f01c6f5ff$7116e7f0$1402a8c0@ScuzzPaq> Dan, Check if you have Tools | Options | Forms/Reports | "Use Windows Themed Controls on Forms" checked . If so it is - then that's why your buttons look so pretty. Turn that off and they'll look like the before. I don't think there's way to make other versions change to be the same though. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, October 22, 2006 10:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 About six months ago, I installed Access 2003 (late I know). Since then I've noticed that the command buttons in 2003 have a nice silvery color with rounded corners. The 2002 buttons are gray with square corners. Is there a way to change my older databases so that they too display the 2003 command button style? The older databases still show the older style even though they are opened in 2003. Thanks! Dan Waters ProMation Systems, Inc. (W) 763-780-2496 (M) 763-639-2960 Click Here to add Dan's contact information to your Contacts list. - If the File Download window appears, first select Open. - Then (in Outlook) select Save and Close. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Sun Oct 22 12:39:08 2006 From: ssharkins at setel.com (Susan Harkins) Date: Sun, 22 Oct 2006 13:39:08 -0400 Subject: [AccessD] Print one page of a report In-Reply-To: <007a01c6f5ff$70b9fae0$1402a8c0@ScuzzPaq> Message-ID: <002501c6f600$fb181450$0834fad1@SUSANONE> I assume you mean programmatically, right? Because on the Page Setup page, you can manually set the page. Susan H. Is there an easy way to print just one page of an A2k3 report? From dwaters at usinternet.com Sun Oct 22 15:44:37 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 22 Oct 2006 15:44:37 -0500 Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 In-Reply-To: <6647054.1161538370409.JavaMail.root@sniper32> Message-ID: <000a01c6f61a$e49fd360$0200a8c0@danwaters> Thanks Marty! That was it. Dan Waters -----Original Message----- Subject: Re: [AccessD] Command Buttons: Access 2002 vs. 2003 Dan, Check if you have Tools | Options | Forms/Reports | "Use Windows Themed Controls on Forms" checked . If so it is - then that's why your buttons look so pretty. Turn that off and they'll look like the before. I don't think there's way to make other versions change to be the same though. -----Original Message----- Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 About six months ago, I installed Access 2003 (late I know). Since then I've noticed that the command buttons in 2003 have a nice silvery color with rounded corners. The 2002 buttons are gray with square corners. Is there a way to change my older databases so that they too display the 2003 command button style? The older databases still show the older style even though they are opened in 2003. Thanks! Dan Waters From john at winhaven.net Sun Oct 22 18:12:23 2006 From: john at winhaven.net (John Bartow) Date: Sun, 22 Oct 2006 18:12:23 -0500 Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 In-Reply-To: <000a01c6f61a$e49fd360$0200a8c0@danwaters> Message-ID: <007101c6f62f$889eeb90$1402a8c0@ScuzzPaq> Well, calling me Marty was one of the nicest compliments I've had for awhile. (I hold him in high esteem :o) John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, October 22, 2006 3:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Buttons: Access 2002 vs. 2003 Thanks Marty! That was it. Dan Waters -----Original Message----- Subject: Re: [AccessD] Command Buttons: Access 2002 vs. 2003 Dan, Check if you have Tools | Options | Forms/Reports | "Use Windows Themed Controls on Forms" checked . If so it is - then that's why your buttons look so pretty. Turn that off and they'll look like the before. I don't think there's way to make other versions change to be the same though. -----Original Message----- Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 About six months ago, I installed Access 2003 (late I know). Since then I've noticed that the command buttons in 2003 have a nice silvery color with rounded corners. The 2002 buttons are gray with square corners. Is there a way to change my older databases so that they too display the 2003 command button style? The older databases still show the older style even though they are opened in 2003. Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Sun Oct 22 18:12:23 2006 From: john at winhaven.net (John Bartow) Date: Sun, 22 Oct 2006 18:12:23 -0500 Subject: [AccessD] Print one page of a report In-Reply-To: <002501c6f600$fb181450$0834fad1@SUSANONE> Message-ID: <007201c6f62f$88fe49a0$1402a8c0@ScuzzPaq> Hi Susan, Actually, no. I was looking too deep. This is in a runtime distribution and my custom toolbar icon showed that it should open the printer dialog (printer icon with the ...) to make this option available but its wasn't so I assumed the runtime wouldn't allow it. (Now that I figured I must've missed something) I rebuilt the toolbar and now all appears to work. Thanks for the pointer - it made me look to the more obvious. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins I assume you mean programmatically, right? Because on the Page Setup page, you can manually set the page. Susan H. From martyconnelly at shaw.ca Sun Oct 22 18:23:35 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 22 Oct 2006 16:23:35 -0700 Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 In-Reply-To: <000a01c6f61a$e49fd360$0200a8c0@danwaters> References: <000a01c6f61a$e49fd360$0200a8c0@danwaters> Message-ID: <453BFD77.5080606@shaw.ca> Tweren't me, twas John. Though you may get label flicker on sub forms if you turn off that option. Dan Waters wrote: >Thanks Marty! That was it. > >Dan Waters > > >-----Original Message----- >Subject: Re: [AccessD] Command Buttons: Access 2002 vs. 2003 > >Dan, >Check if you have Tools | Options | Forms/Reports | "Use Windows Themed >Controls on Forms" checked . If so it is - then that's why your buttons look >so pretty. Turn that off and they'll look like the before. I don't think >there's way to make other versions change to be the same though. > >-----Original Message----- >Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 > >About six months ago, I installed Access 2003 (late I know). Since then >I've noticed that the command buttons in 2003 have a nice silvery color with >rounded corners. The 2002 buttons are gray with square corners. > >Is there a way to change my older databases so that they too display the >2003 command button style? The older databases still show the older style >even though they are opened in 2003. > >Thanks! > >Dan Waters > > > -- Marty Connelly Victoria, B.C. Canada From dwaters at usinternet.com Sun Oct 22 18:50:21 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 22 Oct 2006 18:50:21 -0500 Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 In-Reply-To: <25545666.1161550204610.JavaMail.root@sniper34> Message-ID: <000b01c6f634$d6d7d880$0200a8c0@danwaters> Ouch! Been working all day . . . time to quit? Have a Pete's Wicked Ale? I think so . . . ! Dan Waters -----Original Message----- Subject: Re: [AccessD] Command Buttons: Access 2002 vs. 2003 Thanks Marty! That was it. Dan Waters -----Original Message----- Subject: Re: [AccessD] Command Buttons: Access 2002 vs. 2003 Dan, Check if you have Tools | Options | Forms/Reports | "Use Windows Themed Controls on Forms" checked . If so it is - then that's why your buttons look so pretty. Turn that off and they'll look like the before. I don't think there's way to make other versions change to be the same though. -----Original Message----- Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 About six months ago, I installed Access 2003 (late I know). Since then I've noticed that the command buttons in 2003 have a nice silvery color with rounded corners. The 2002 buttons are gray with square corners. Is there a way to change my older databases so that they too display the 2003 command button style? The older databases still show the older style even though they are opened in 2003. Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Sun Oct 22 19:46:34 2006 From: ssharkins at setel.com (Susan Harkins) Date: Sun, 22 Oct 2006 20:46:34 -0400 Subject: [AccessD] Print one page of a report In-Reply-To: <007201c6f62f$88fe49a0$1402a8c0@ScuzzPaq> Message-ID: <000001c6f63c$b12e25a0$feb62ad1@SUSANONE> Thanks for the pointer - it made me look to the more obvious. =========Glad to help. That's me -- look for the obvious. ;) Susan H. From jwcolby at colbyconsulting.com Sun Oct 22 22:12:34 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 22 Oct 2006 23:12:34 -0400 Subject: [AccessD] Creating a TOC from data Message-ID: <002b01c6f651$166af510$657aa8c0@m6805> Does anyone have a code base that would assist me in creating a TOC from a query that is able to pull in data such as you see in the following example, formatted like this, indents, etc. I reaaaaly don't want to get into a full blown word automation design at this point. John W. Colby Colby Consulting www.ColbyConsulting.com From Gustav at cactus.dk Mon Oct 23 04:58:40 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 23 Oct 2006 11:58:40 +0200 Subject: [AccessD] difference in days Message-ID: Hi Pedro Hmm ... unless you use global/public variables (which you cannot directly do within SQL) you have to pass the dates as parameters to a (any) function - or it won't know what to calculate. /gustav >>> pedro at plex.nl 20-10-2006 20:39 >>> Hello Gustav, this works. Thanks. But why do i have to call the function by: ISO_WorkdayDiff([DatOnt], [DatScr]) Normally i only use: ISO_WorkdayDiff(), in calling functions from an sql. Paul: your function also began working, but i received an Error after 2 records: Stack memmory error? Thanks Pedro ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, October 20, 2006 7:06 PM Subject: Re: [AccessD] difference in days > Hi Pedro > > This should do: > > SELECT > Datum.Rapnaam, > ISO_WorkdayDiff([DatOnt], [DatScr]) AS verschil > FROM > Datum; > > /gustav > >>>> pedro at plex.nl 20-10-2006 18:50:22 >>> > I tried the code from Paul first, but get an error: "You used an > inaccurate > number of arguments in a function" > The same error with the code from Gustav. > > What am i doing wrong. in my table there are two date fields: FromDate = > [DatOnt], ToDate = [datScr]. From mikedorism at verizon.net Mon Oct 23 07:41:40 2006 From: mikedorism at verizon.net (Doris Manning) Date: Mon, 23 Oct 2006 08:41:40 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <002b01c6f651$166af510$657aa8c0@m6805> Message-ID: <000801c6f6a0$97232160$2f01a8c0@Kermit> John, The example didn't come through so it is hard to say what the right solution is. Off the top of my head I'm guessing you could do it through string manipulation by adding line feeds and tabs. Doris Manning -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Sunday, October 22, 2006 11:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Creating a TOC from data Does anyone have a code base that would assist me in creating a TOC from a query that is able to pull in data such as you see in the following example, formatted like this, indents, etc. I reaaaaly don't want to get into a full blown word automation design at this point. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Mon Oct 23 08:47:56 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 23 Oct 2006 09:47:56 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <000801c6f6a0$97232160$2f01a8c0@Kermit> Message-ID: <005101c6f6a9$d90335d0$657aa8c0@m6805> Doris, Yea, that is what I did, straight in an Access report. I had to go with a monospace font to allow everything to line up correctly but it is working. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doris Manning Sent: Monday, October 23, 2006 8:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data John, The example didn't come through so it is hard to say what the right solution is. Off the top of my head I'm guessing you could do it through string manipulation by adding line feeds and tabs. Doris Manning -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Sunday, October 22, 2006 11:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Creating a TOC from data Does anyone have a code base that would assist me in creating a TOC from a query that is able to pull in data such as you see in the following example, formatted like this, indents, etc. I reaaaaly don't want to get into a full blown word automation design at this point. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Mon Oct 23 10:03:57 2006 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 23 Oct 2006 11:03:57 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <005101c6f6a9$d90335d0$657aa8c0@m6805> Message-ID: <001101c6f6b4$777c5160$4234fad1@SUSANONE> John, have you considered exporting the query results to Word and using its features? Doesn't word have a TOC feature? I've never used it, so maybe I'm goofy. Susan H. Doris, Yea, that is what I did, straight in an Access report. I had to go with a monospace font to allow everything to line up correctly but it is working. From jwcolby at colbyconsulting.com Mon Oct 23 10:17:49 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 23 Oct 2006 11:17:49 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <001101c6f6b4$777c5160$4234fad1@SUSANONE> Message-ID: <005a01c6f6b6$6778d250$657aa8c0@m6805> Susan, That is what I was thinking about originally. In the end, I needed to get it done and Word and its TOC meant a learning curve I wasn't willing to climb. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, October 23, 2006 11:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data John, have you considered exporting the query results to Word and using its features? Doesn't word have a TOC feature? I've never used it, so maybe I'm goofy. Susan H. Doris, Yea, that is what I did, straight in an Access report. I had to go with a monospace font to allow everything to line up correctly but it is working. -- 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 Oct 23 10:19:00 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 23 Oct 2006 08:19:00 -0700 Subject: [AccessD] Creating a TOC from data In-Reply-To: <001101c6f6b4$777c5160$4234fad1@SUSANONE> Message-ID: <004701c6f6b6$91bb4d90$6401a8c0@HAL9005> Susan: I used the TOC feature in Access and it is truly slick. You have to do some pre-planning so that the heads, sub-heads, sub-sub-heads, etc. use a consistent font. Then you tell the TOC generator what kind of font represents which level. Whenever I make changes to the manual, regenerating the TOC is just a few clicks. Makes a beautiful TOC with bullets and everything. I also did the same for the list of figures and tables. I can send you a copy off line if you're interested. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, October 23, 2006 8:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data John, have you considered exporting the query results to Word and using its features? Doesn't word have a TOC feature? I've never used it, so maybe I'm goofy. Susan H. Doris, Yea, that is what I did, straight in an Access report. I had to go with a monospace font to allow everything to line up correctly but it is working. -- 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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/2006 From bchacc at san.rr.com Mon Oct 23 10:38:01 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 23 Oct 2006 08:38:01 -0700 Subject: [AccessD] Creating a TOC from data In-Reply-To: <004701c6f6b6$91bb4d90$6401a8c0@HAL9005> Message-ID: <004b01c6f6b9$39a25380$6401a8c0@HAL9005> Oops. I meant the TOC feature in WORD - for the E-Z-MRP manual. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Monday, October 23, 2006 8:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data Susan: I used the TOC feature in Access and it is truly slick. You have to do some pre-planning so that the heads, sub-heads, sub-sub-heads, etc. use a consistent font. Then you tell the TOC generator what kind of font represents which level. Whenever I make changes to the manual, regenerating the TOC is just a few clicks. Makes a beautiful TOC with bullets and everything. I also did the same for the list of figures and tables. I can send you a copy off line if you're interested. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, October 23, 2006 8:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data John, have you considered exporting the query results to Word and using its features? Doesn't word have a TOC feature? I've never used it, so maybe I'm goofy. Susan H. Doris, Yea, that is what I did, straight in an Access report. I had to go with a monospace font to allow everything to line up correctly but it is working. -- 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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/2006 From hollisvj at pgdp.usec.com Mon Oct 23 10:39:49 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 23 Oct 2006 10:39:49 -0500 Subject: [AccessD] Check Only One Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01014ED2@c2k3exchange.pgdp.corp.usec.com> I am creating a new database / form for tracking incidents. The form has 4 checkboxes and a text field for Other. They are supposed to only check one. How do you set that up on the form so they can only check one of the boxes, not more than one? Also, I am not sure how to do the tables. Should there be a field for each check? (Drill, Injury, Fire, Other). If not, how would reports show which one was checked? So, is there a way to force only once checkbox at a time without going through each field & determine - If drill is checked, the rest aren't, etc. Virginia From markamatte at hotmail.com Mon Oct 23 10:45:45 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 23 Oct 2006 15:45:45 +0000 Subject: [AccessD] Check Only One In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01014ED2@c2k3exchange.pgdp.corp.usec.com> Message-ID: Virginia, If you use an option group I think you'll find the functionality you are looking for. Regardless of which was checked...you selection is always stored in the same field. Good Luck, Mark A. Matte >From: "Hollis, Virginia" >Reply-To: Access Developers discussion and problem >solving >To: accessD at databaseadvisors.com >Subject: [AccessD] Check Only One >Date: Mon, 23 Oct 2006 10:39:49 -0500 > >I am creating a new database / form for tracking incidents. The form has >4 checkboxes and a text field for Other. They are supposed to only check >one. How do you set that up on the form so they can only check one of >the boxes, not more than one? > > > >Also, I am not sure how to do the tables. Should there be a field for >each check? (Drill, Injury, Fire, Other). If not, how would reports show >which one was checked? > > > >So, is there a way to force only once checkbox at a time without going >through each field & determine - If drill is checked, the rest aren't, >etc. > > > >Virginia > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001 From paul.hartland at fsmail.net Mon Oct 23 10:52:57 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 23 Oct 2006 17:52:57 +0200 (CEST) Subject: [AccessD] Check Only One Message-ID: <18771868.1161618777908.JavaMail.www@wwinf3104.me-wanadoo.net> Virginia, If you create a frame and put the checkboxes or radio buttons in a frame I think this restricts input to only one choice, what you can then do is assign each choice a value (say 1-4) and store the value in a field. Then you have a table of your choices with two fields, one for the value and one for the text: Value Text 1 Drill 2 Injury 3 Fire 4 Other then when you do your query, link your main table with the value field, into your value field, and get it to display the description. Sorry if I haven't made myself clear but am just leaving work....if you need any further info, contact me here or offline. Paul Hartland Message Received: Oct 23 2006, 04:45 PM From: "Hollis, Virginia" To: accessD at databaseadvisors.com Cc: Subject: [AccessD] Check Only One I am creating a new database / form for tracking incidents. The form has 4 checkboxes and a text field for Other. They are supposed to only check one. How do you set that up on the form so they can only check one of the boxes, not more than one? Also, I am not sure how to do the tables. Should there be a field for each check? (Drill, Injury, Fire, Other). If not, how would reports show which one was checked? So, is there a way to force only once checkbox at a time without going through each field & determine - If drill is checked, the rest aren't, etc. Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From jwcolby at colbyconsulting.com Mon Oct 23 11:03:27 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 23 Oct 2006 12:03:27 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <004701c6f6b6$91bb4d90$6401a8c0@HAL9005> Message-ID: <005b01c6f6bc$c7a239e0$657aa8c0@m6805> Rocky, IMC, I didn't have a real document, just data that I wanted in a TOC format. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Monday, October 23, 2006 11:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data Susan: I used the TOC feature in Access and it is truly slick. You have to do some pre-planning so that the heads, sub-heads, sub-sub-heads, etc. use a consistent font. Then you tell the TOC generator what kind of font represents which level. Whenever I make changes to the manual, regenerating the TOC is just a few clicks. Makes a beautiful TOC with bullets and everything. I also did the same for the list of figures and tables. I can send you a copy off line if you're interested. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, October 23, 2006 8:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data John, have you considered exporting the query results to Word and using its features? Doesn't word have a TOC feature? I've never used it, so maybe I'm goofy. Susan H. Doris, Yea, that is what I did, straight in an Access report. I had to go with a monospace font to allow everything to line up correctly but it is working. -- 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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Mon Oct 23 11:05:44 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 23 Oct 2006 11:05:44 -0500 Subject: [AccessD] Tip concerning dates in Access Message-ID: Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert From hollisvj at pgdp.usec.com Mon Oct 23 11:12:13 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 23 Oct 2006 11:12:13 -0500 Subject: [AccessD] Check Only One Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01014EE0@c2k3exchange.pgdp.corp.usec.com> That makes sense, thanks. It has been awhile since I created a database - forgot about doing it that way. Ok - one question though. The Other field they need to enter text. If they click Other, would it do to have a txt field activate so they can type in it? But would that be a separate field from the table that lists the choices? Virginia, If you create a frame and put the checkboxes or radio buttons in a frame I think this restricts input to only one choice, what you can then do is assign each choice a value (say 1-4) and store the value in a field. Then you have a table of your choices with two fields, one for the value and one for the text: Value Text 1 Drill 2 Injury 3 Fire 4 Other then when you do your query, link your main table with the value field, into your value field, and get it to display the description. Sorry if I haven't made myself clear but am just leaving work....if you need any further info, contact me here or offline. Paul Hartland From dwaters at usinternet.com Mon Oct 23 11:17:06 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 23 Oct 2006 11:17:06 -0500 Subject: [AccessD] Check Only One In-Reply-To: <32028050.1161619091463.JavaMail.root@Sniper29> Message-ID: <003301c6f6be$afd0be70$0200a8c0@danwaters> Virginia, A different approach, since they can only check one, is to use a combobox. I almost always use these because they take less space, are easily changeable by just changing the data in the lookup table, and can be selected by the user more quickly without using the mouse. If you put a cbo.DropDown method into the Enter event for the combobox, it will display the choices as the user tabs in. Then they just begin typing to select the one they want, and tab out. If a user selects other, then a required Other Description field can be used to get that information, which is often useful for reporting. Hope this helps! Dan Waters -----Original Message----- Subject: Re: [AccessD] Check Only One Virginia, If you use an option group I think you'll find the functionality you are looking for. Regardless of which was checked...you selection is always stored in the same field. Good Luck, Mark A. Matte >From: "Hollis, Virginia" >Reply-To: Access Developers discussion and problem >solving >To: accessD at databaseadvisors.com >Subject: [AccessD] Check Only One >Date: Mon, 23 Oct 2006 10:39:49 -0500 > >I am creating a new database / form for tracking incidents. The form has >4 checkboxes and a text field for Other. They are supposed to only check >one. How do you set that up on the form so they can only check one of >the boxes, not more than one? > > > >Also, I am not sure how to do the tables. Should there be a field for >each check? (Drill, Injury, Fire, Other). If not, how would reports show >which one was checked? > > > >So, is there a way to force only once checkbox at a time without going >through each field & determine - If drill is checked, the rest aren't, >etc. > > > >Virginia > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Mon Oct 23 11:28:26 2006 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 23 Oct 2006 12:28:26 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <005a01c6f6b6$6778d250$657aa8c0@m6805> Message-ID: <000a01c6f6c0$461569c0$3c34fad1@SUSANONE> I understand that JC -- Word always humbles me. :) I can't automate cr*p in Word. :) Susan H. Susan, That is what I was thinking about originally. In the end, I needed to get it done and Word and its TOC meant a learning curve I wasn't willing to climb. From bchacc at san.rr.com Mon Oct 23 11:51:05 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 23 Oct 2006 09:51:05 -0700 Subject: [AccessD] Creating a TOC from data In-Reply-To: <005b01c6f6bc$c7a239e0$657aa8c0@m6805> Message-ID: <005f01c6f6c3$6e4acf90$6401a8c0@HAL9005> Could you push the data into Word, using specific fonts for the different levels of the TOC then trigger the TOC feature and delete the data you pushed in? Actually sounds like you created a simpler solution. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, October 23, 2006 9:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data Rocky, IMC, I didn't have a real document, just data that I wanted in a TOC format. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Monday, October 23, 2006 11:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data Susan: I used the TOC feature in Access and it is truly slick. You have to do some pre-planning so that the heads, sub-heads, sub-sub-heads, etc. use a consistent font. Then you tell the TOC generator what kind of font represents which level. Whenever I make changes to the manual, regenerating the TOC is just a few clicks. Makes a beautiful TOC with bullets and everything. I also did the same for the list of figures and tables. I can send you a copy off line if you're interested. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, October 23, 2006 8:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data John, have you considered exporting the query results to Word and using its features? Doesn't word have a TOC feature? I've never used it, so maybe I'm goofy. Susan H. Doris, Yea, that is what I did, straight in an Access report. I had to go with a monospace font to allow everything to line up correctly but it is working. -- 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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/2006 From bchacc at san.rr.com Mon Oct 23 11:52:36 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 23 Oct 2006 09:52:36 -0700 Subject: [AccessD] Check Only One In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01014EE0@c2k3exchange.pgdp.corp.usec.com> Message-ID: <006001c6f6c3$a50dd2c0$6401a8c0@HAL9005> Virginia, In the after update event of the option frame you could check to see if they've selected Other and then enable or disable your text box. Or make it visible or invisible. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, October 23, 2006 9:12 AM To: accessd at databaseadvisors.com; paul.hartland at fsmail.net Subject: [AccessD] Check Only One That makes sense, thanks. It has been awhile since I created a database - forgot about doing it that way. Ok - one question though. The Other field they need to enter text. If they click Other, would it do to have a txt field activate so they can type in it? But would that be a separate field from the table that lists the choices? Virginia, If you create a frame and put the checkboxes or radio buttons in a frame I think this restricts input to only one choice, what you can then do is assign each choice a value (say 1-4) and store the value in a field. Then you have a table of your choices with two fields, one for the value and one for the text: Value Text 1 Drill 2 Injury 3 Fire 4 Other then when you do your query, link your main table with the value field, into your value field, and get it to display the description. Sorry if I haven't made myself clear but am just leaving work....if you need any further info, contact me here or offline. Paul Hartland -- 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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/2006 From hollisvj at pgdp.usec.com Mon Oct 23 11:58:17 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 23 Oct 2006 11:58:17 -0500 Subject: [AccessD] Check Only One Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01014EE5@c2k3exchange.pgdp.corp.usec.com> That makes sense. I created a new lookup table listing the 4 choices & Other as number 5. I store the number they selected in the main table. I got that part. Put the option frame/box on the form. What do I do now about the Other choice. I can make the field show or enable it if the choice is 5 (Other). But how do I show their write in text for the Other field in a report? Would it be a field in the other main table? The reports would have to determine if Other is the choice & if it is put in the text they typed in the Other field from the main table. Does that sound right? Virginia Virginia, In the after update event of the option frame you could check to see if they've selected Other and then enable or disable your text box. Or make it visible or invisible. Rocky From bchacc at san.rr.com Mon Oct 23 12:09:49 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 23 Oct 2006 10:09:49 -0700 Subject: [AccessD] Check Only One In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01014EE5@c2k3exchange.pgdp.corp.usec.com> Message-ID: <006d01c6f6c6$0cb6c560$6401a8c0@HAL9005> If you've saved the data in the text box which is enabled if they select Other in a field in a table, as I assume you have, then you include that field in the query which is the source for your report. Then in the Detail Format event of the report, check the value of the field that holds 1-5. If it's 5 make the text box on your report which is bound to the Other field Visible. Else Visible = False. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, October 23, 2006 9:58 AM To: accessd at databaseadvisors.com Subject: [AccessD] Check Only One That makes sense. I created a new lookup table listing the 4 choices & Other as number 5. I store the number they selected in the main table. I got that part. Put the option frame/box on the form. What do I do now about the Other choice. I can make the field show or enable it if the choice is 5 (Other). But how do I show their write in text for the Other field in a report? Would it be a field in the other main table? The reports would have to determine if Other is the choice & if it is put in the text they typed in the Other field from the main table. Does that sound right? Virginia Virginia, In the after update event of the option frame you could check to see if they've selected Other and then enable or disable your text box. Or make it visible or invisible. Rocky -- 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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/2006 From hollisvj at pgdp.usec.com Mon Oct 23 12:19:40 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 23 Oct 2006 12:19:40 -0500 Subject: [AccessD] Check Only One Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01014EE8@c2k3exchange.pgdp.corp.usec.com> Great! Thanks. One more question & I will leave you alone.... How do you refer to the checkbox in the frame? I tried me.chk5 = True & I also tried me.chk5 = 1. Neither one worked. I get an error. Private Sub fraNature_AfterUpdate() 'If choice is Other, enter data in field If (Me.chk5 = ) And (IsNull(Me![Other])) Then MsgBox "You must enter the reason", _ vbInformation, "Complete Field" Other.SetFocus End If End Sub From carbonnb at gmail.com Mon Oct 23 12:21:09 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 23 Oct 2006 13:21:09 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <005f01c6f6c3$6e4acf90$6401a8c0@HAL9005> References: <005b01c6f6bc$c7a239e0$657aa8c0@m6805> <005f01c6f6c3$6e4acf90$6401a8c0@HAL9005> Message-ID: On 10/23/06, Beach Access Software wrote: > Could you push the data into Word, using specific fonts for the different > levels of the TOC then trigger the TOC feature and delete the data you > pushed in? TOCs in Word are generated from the variious Heading X styles. So John'd have to push the data to Word and then change the styles. Not difficult, but an added extra step. Then there is the issue of the TOC field in Word. It's a bugger to update programatically if you don't do it right. Not difficult, just a PITA. Definately sounds like what John did was easier. -- 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 mikedorism at verizon.net Mon Oct 23 12:37:42 2006 From: mikedorism at verizon.net (Doris Manning) Date: Mon, 23 Oct 2006 13:37:42 -0400 Subject: [AccessD] Check Only One In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01014EE8@c2k3exchange.pgdp.corp.usec.com> Message-ID: <000f01c6f6c9$f1c75630$2f01a8c0@Kermit> You reference the value of fraNature... Private Sub fraNature_AfterUpdate() 'If choice is Other, enter data in field If (fraNature = 5) And (IsNull(Me![Other])) Then MsgBox "You must enter the reason", _ vbInformation, "Complete Field" Other.SetFocus End If End Sub Doris Manning -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, October 23, 2006 1:20 PM To: accessd at databaseadvisors.com Subject: [AccessD] Check Only One Great! Thanks. One more question & I will leave you alone.... How do you refer to the checkbox in the frame? I tried me.chk5 = True & I also tried me.chk5 = 1. Neither one worked. I get an error. Private Sub fraNature_AfterUpdate() 'If choice is Other, enter data in field If (Me.chk5 = ) And (IsNull(Me![Other])) Then MsgBox "You must enter the reason", _ vbInformation, "Complete Field" Other.SetFocus End If End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Mon Oct 23 13:30:15 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 23 Oct 2006 19:30:15 +0100 Subject: [AccessD] Fox Pro References: <002b01c6f651$166af510$657aa8c0@m6805> Message-ID: I have a fox pro database. Its password protected and no one knows the password. Is there anyway around this? I need to get the data from this thing. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From dwaters at usinternet.com Mon Oct 23 13:38:51 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 23 Oct 2006 13:38:51 -0500 Subject: [AccessD] Check Only One In-Reply-To: <27660500.1161626287768.JavaMail.root@sniper61> Message-ID: <003401c6f6d2$7d0d8180$0200a8c0@danwaters> In the AfterUpdate event of the combobox, write this: If cbo = "Other" then memOther.Enabled = True Else memOther.Enabled = False endif The control source for the Other field will be in the Main table, not in the lookup table. Then when you create a report (bound/filtered from the Main table) for your information you'll have a field which shows your selection as text, and another which shows the content of the Other field. If they didn't select Other, then the report field for Other will be blank. This shouldn't bother your users, because they can see the selection that was chosen from the list, or they can see that Other was selected and then they can read what Other actually meant. If your report just said Other, but there was no Other field, then users are left by themselves to wonder what Other actually was. But, in your particular process, it MIGHT be that the users are actually fine with an Other selection without an explanation. Dan Waters -----Original Message----- Subject: [AccessD] Check Only One That makes sense. I created a new lookup table listing the 4 choices & Other as number 5. I store the number they selected in the main table. I got that part. Put the option frame/box on the form. What do I do now about the Other choice. I can make the field show or enable it if the choice is 5 (Other). But how do I show their write in text for the Other field in a report? Would it be a field in the other main table? The reports would have to determine if Other is the choice & if it is put in the text they typed in the Other field from the main table. Does that sound right? Virginia Virginia, In the after update event of the option frame you could check to see if they've selected Other and then enable or disable your text box. Or make it visible or invisible. Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Oct 23 14:05:56 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 23 Oct 2006 19:05:56 +0000 Subject: [AccessD] Creating a TOC from data In-Reply-To: <000801c6f6a0$97232160$2f01a8c0@Kermit> Message-ID: John, Can you re-send the example mentioned below. Thanks, Mark >From: "Doris Manning" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Creating a TOC from data >Date: Mon, 23 Oct 2006 08:41:40 -0400 > >John, > >The example didn't come through so it is hard to say what the right >solution >is. Off the top of my head I'm guessing you could do it through string >manipulation by adding line feeds and tabs. > >Doris Manning > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Sunday, October 22, 2006 11:13 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Creating a TOC from data > >Does anyone have a code base that would assist me in creating a TOC from a >query that is able to pull in data such as you see in the following >example, >formatted like this, indents, etc. I reaaaaly don't want to get into a >full >blown word automation design at this point. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From jwcolby at colbyconsulting.com Mon Oct 23 14:45:13 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 23 Oct 2006 15:45:13 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: Message-ID: <006901c6f6db$c3453040$657aa8c0@m6805> Well, I have solved the problem completely inside of Access at this point so I really don't need to do the Word thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Monday, October 23, 2006 3:06 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Creating a TOC from data John, Can you re-send the example mentioned below. Thanks, Mark >From: "Doris Manning" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Creating a TOC from data >Date: Mon, 23 Oct 2006 08:41:40 -0400 > >John, > >The example didn't come through so it is hard to say what the right >solution is. Off the top of my head I'm guessing you could do it >through string manipulation by adding line feeds and tabs. > >Doris Manning > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Sunday, October 22, 2006 11:13 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Creating a TOC from data > >Does anyone have a code base that would assist me in creating a TOC >from a query that is able to pull in data such as you see in the >following example, formatted like this, indents, etc. I reaaaaly don't >want to get into a full blown word automation design at this point. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spa ces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Oct 23 14:57:02 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 23 Oct 2006 12:57:02 -0700 Subject: [AccessD] Fox Pro In-Reply-To: References: <002b01c6f651$166af510$657aa8c0@m6805> Message-ID: <453D1E8E.6040703@shaw.ca> Do you want to execute the program or read the tables? To execute You will need a crack program, lots of sites sell them in $40 range To read tables You can read the dbf files and index files as linked files or through ADO easily for programs written below VFP 7.0, I believe you could password protect the overall mdc container file in higher versions. Still might get at individual table files. Of course someone could have added individual table encryption as well then you will have to run the foxpro program. See here for OLEDB and ODBC methods and drivers for Visual Foxpro. http://www.carlprothman.net/Default.aspx?tabid=81 Martin Reid wrote: >I have a fox pro database. Its password protected and no one knows the password. Is there anyway around this? > >I need to get the data from this thing. > >Martin > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.408 / Virus Database: 268.13.11/492 - Release Date: 23/10/2006 > > > -- Marty Connelly Victoria, B.C. Canada From jimdettman at verizon.net Mon Oct 23 14:58:54 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 23 Oct 2006 15:58:54 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <006901c6f6db$c3453040$657aa8c0@m6805> Message-ID: <001401c6f6dd$abf80000$8abea8c0@XPS> FYI for those looking to do this in Access: http://support.microsoft.com/kb/210269/en-us Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, October 23, 2006 3:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data Well, I have solved the problem completely inside of Access at this point so I really don't need to do the Word thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Monday, October 23, 2006 3:06 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Creating a TOC from data John, Can you re-send the example mentioned below. Thanks, Mark >From: "Doris Manning" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Creating a TOC from data >Date: Mon, 23 Oct 2006 08:41:40 -0400 > >John, > >The example didn't come through so it is hard to say what the right >solution is. Off the top of my head I'm guessing you could do it >through string manipulation by adding line feeds and tabs. > >Doris Manning > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Sunday, October 22, 2006 11:13 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Creating a TOC from data > >Does anyone have a code base that would assist me in creating a TOC >from a query that is able to pull in data such as you see in the >following example, formatted like this, indents, etc. I reaaaaly don't >want to get into a full blown word automation design at this point. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spa ces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Oct 23 15:15:03 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 23 Oct 2006 21:15:03 +0100 Subject: [AccessD] Fox Pro References: <002b01c6f651$166af510$657aa8c0@m6805> <453D1E8E.6040703@shaw.ca> Message-ID: Marty Just need to get the data out. Once thats done we can dump the fox pro. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From DWUTKA at marlow.com Mon Oct 23 16:26:06 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Oct 2006 16:26:06 -0500 Subject: [AccessD] Tip concerning dates in Access Message-ID: <17724746D360394AA3BFE5B8D40A9C1B012786B1@MARLOW_MAIN2.marlow.com> Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert From darrend at nimble.com.au Tue Oct 24 08:55:03 2006 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 24 Oct 2006 23:55:03 +1000 Subject: [AccessD] A2003:Rename a file in a folder Message-ID: <20061024135506.QTAF16502.omta02ps.mx.bigpond.com@DENZILLAP> Hi all I have a file that will be always named the same - EG myCoolCSVfile.csv It will be dumped into a folder...say C:\MyCoolFolder at random times I need some code to Check the C:\myCoolFolder to see if the file myCoolCSVfile.csv file exists in the folder - and if it does to rename it to YYMMDDHHMMSS.csv Where YY = Year MM = Month DD = Day etc etc Does anyone have anything that might suit? Many thanks in advance Darren From darrend at nimble.com.au Tue Oct 24 09:02:55 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 25 Oct 2006 00:02:55 +1000 Subject: [AccessD] A2003:Remove first line in CSV/Excel file Message-ID: <20061024140302.TLMC11173.omta03ps.mx.bigpond.com@DENZILLAP> Further to my last Does anyone have any code that will remove the first line in an Excel doc but from Access? Many thanks again in advance Darren _____ From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Tuesday, 24 October 2006 11:55 PM To: 'Access Developers discussion and problem solving' Subject: A2003:Rename a file in a folder Hi all I have a file that will be always named the same - EG myCoolCSVfile.csv It will be dumped into a folder...say C:\MyCoolFolder at random times I need some code to Check the C:\myCoolFolder to see if the file myCoolCSVfile.csv file exists in the folder - and if it does to rename it to YYMMDDHHMMSS.csv Where YY = Year MM = Month DD = Day etc etc Does anyone have anything that might suit? Many thanks in advance Darren From paul.hartland at fsmail.net Tue Oct 24 09:06:54 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 24 Oct 2006 16:06:54 +0200 (CEST) Subject: [AccessD] A2003:Rename a file in a folder Message-ID: <15615139.1161698814479.JavaMail.www@wwinf3202> Darren, Off the tope of my head use the following: Dim strFile As String strFile = Dir(myCoolCSVfile.csv, vbHidden) ' Put the full path before the filename If (strFile<>"" ) then Name myCoolCSVfile.csv As YYMMDDHHMMSS.csv ' Put the full path before the filename and new file name Endif ' Your routine to put the new file into C:\MyCoolFolder Paul Hartland Message Received: Oct 24 2006, 02:58 PM From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Cc: Subject: [AccessD] A2003:Rename a file in a folder Hi all I have a file that will be always named the same - EG myCoolCSVfile.csv It will be dumped into a folder...say C:\MyCoolFolder at random times I need some code to Check the C:\myCoolFolder to see if the file myCoolCSVfile.csv file exists in the folder - and if it does to rename it to YYMMDDHHMMSS.csv Where YY = Year MM = Month DD = Day etc etc Does anyone have anything that might suit? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From Lambert.Heenan at AIG.com Tue Oct 24 09:34:01 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 24 Oct 2006 09:34:01 -0500 Subject: [AccessD] Tip concerning dates in Access Message-ID: Well one reason is I never remember the DateValue function for some reason :-), but a better reason is that DateValue is slower. I'd guess the reason is that it takes a string as a parameter, so there's a type conversion going on to pass in its data to work on, then it returns a variant, which is another time wasting type conversion. I just did a quick test and found that on my box, 2,000,000 iterations of Cdate(Clng(Now())) took 1.62 seconds, but 2,000,000 calls to DateValue(Now()) took 26.5 seconds. Not a huge difference I'll agree, but significant especially if you are running the code against a table with potentially millions of rows. My guess is that a Long is considerably Closer to a Date than a String or a Variant is in terms of CPU cycles to do the conversion. Lambert. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, October 23, 2006 5:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Oct 24 10:03:16 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 24 Oct 2006 08:03:16 -0700 Subject: [AccessD] A2003:Remove first line in CSV/Excel file In-Reply-To: <20061024140302.TLMC11173.omta03ps.mx.bigpond.com@DENZILLAP> References: <20061024140302.TLMC11173.omta03ps.mx.bigpond.com@DENZILLAP> Message-ID: <453E2B34.5010806@shaw.ca> Use ADO with the Jet OLE DB Provider With Excel workbooks, the first row in a range is considered to be the header row (or field names) by default. If the first range does not contain headers, you can specify HDR=NO in the extended properties in your connection string. If the first row does not contain headers, the OLE DB provider automatically names the fields for you (where F1 would represent the first field, F2 would represent the second field, and so forth). Other Jet Provider Connection Settings Column headings: By default, it is assumed that the first row of your Excel data source contains columns headings that can be used as field names. If this is not the case, you must turn this setting off, or your first row of data "disappears" to be used as field names. This is done by adding the optional HDR= setting to the Extended Properties of the connection string. The default, which does not need to be specified, is HDR=Yes. If you do not have column headings, you need to specify HDR=No; the provider names your fields F1, F2, etc. Because the Extended Properties string now contains multiple values, it must be enclosed in double quotes itself, plus an additional pair of double quotes to tell Visual Basic to treat the first set of quotes as literal values, as in the following example (where extra spaces have been added for visual clarity). . ConnectionString = "Data Source=C:\MyFolder\MyWorkbook.xls;" & _ "Extended Properties=" " Excel 8.0; HDR=No;" " " ExcelADO.exe demonstrates how to use ADO to read and write data in Excel workbooks http://support.microsoft.com/?kbid=278973 or you can use DAO Dim dbtmp As DAO.Database Dim tblObj As DAO.TableDef Dim rs As DAO.Recordset Set dbtmp = OpenDatabase_ ("\test.xls", False, True, "Excel 8.0;") DoEvents ' Note the reverse apostrophe "`" while specifying the range ' name(myrange2). Set rs = dbtmp.OpenRecordset("select * from `myRange2`") While Not rs.EOF For x = 0 To rs.Fields.Count - 1 Debug.Print rs.Fields(x).Value Next rs.MoveNext Wend End Sub Note the reverse apostrophe "`" while specifying the range name(myrange2). Darren DICK wrote: >Further to my last > >Does anyone have any code that will remove the first line in an Excel doc but >from Access? > >Many thanks again in advance > >Darren > > > _____ > >From: Darren DICK [mailto:darrend at nimble.com.au] >Sent: Tuesday, 24 October 2006 11:55 PM >To: 'Access Developers discussion and problem solving' >Subject: A2003:Rename a file in a folder > > >Hi all > >I have a file that will be always named the same - EG myCoolCSVfile.csv > >It will be dumped into a folder...say C:\MyCoolFolder at random times > >I need some code to Check the C:\myCoolFolder to see if the file >myCoolCSVfile.csv file exists in the folder - and if it does to rename it to >YYMMDDHHMMSS.csv > >Where YY = Year MM = Month DD = Day etc etc > >Does anyone have anything that might suit? > >Many thanks in advance > >Darren > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Tue Oct 24 10:57:48 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 24 Oct 2006 17:57:48 +0200 Subject: [AccessD] Tip concerning dates in Access Message-ID: Hi Lambert This can be even faster as CDate() is not needed. Fix() and Int() are "transparent" as they often return the same data type as the input. Thus, to kill the time portion of a Date/time value, just use: A Date: Fix(dSomeDate) As a bonus, removing CDate() makes the conversion run about 40% faster in VBA and probably even faster in SQL as Fix() is native to JET SQL. Of course, as you mention, this is only of importance in iterations and loops. Also, study the thread "Convert SQL Server Date/Time to Date" of late May this year and "Sorting old dates" of April this year on why Fix() and Abs() must be used to sort old Date/time values. /gustav >>> Lambert.Heenan at AIG.com 24-10-2006 16:34:01 >>> Well one reason is I never remember the DateValue function for some reason :-), but a better reason is that DateValue is slower. I'd guess the reason is that it takes a string as a parameter, so there's a type conversion going on to pass in its data to work on, then it returns a variant, which is another time wasting type conversion. I just did a quick test and found that on my box, 2,000,000 iterations of Cdate(Clng(Now())) took 1.62 seconds, but 2,000,000 calls to DateValue(Now()) took 26.5 seconds. Not a huge difference I'll agree, but significant especially if you are running the code against a table with potentially millions of rows. My guess is that a Long is considerably Closer to a Date than a String or a Variant is in terms of CPU cycles to do the conversion. Lambert. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, October 23, 2006 5:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert From Lambert.Heenan at AIG.com Tue Oct 24 11:49:04 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 24 Oct 2006 11:49:04 -0500 Subject: [AccessD] Tip concerning dates in Access Message-ID: Hi Gustav, I agree that the output of Fix(ADate) works too, but then I have to remember to set the format property of a query field to "Short Date" (and we all know how bad my memory is) or else the query results will just show the Long value. FYI there seems to be little to gained from eliminating the Cdate() call, about 9.7 E-9 seconds per iteration. CDate(Fix(Now())) took 1.851563 seconds for 2000000 iterations. Fix(Now()) took 1.832031 seconds for 2000000 iterations. DateValue(Now()) took 24.9375 seconds for 2000000 iterations. Lambert :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 24, 2006 11:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Hi Lambert This can be even faster as CDate() is not needed. Fix() and Int() are "transparent" as they often return the same data type as the input. Thus, to kill the time portion of a Date/time value, just use: A Date: Fix(dSomeDate) As a bonus, removing CDate() makes the conversion run about 40% faster in VBA and probably even faster in SQL as Fix() is native to JET SQL. Of course, as you mention, this is only of importance in iterations and loops. Also, study the thread "Convert SQL Server Date/Time to Date" of late May this year and "Sorting old dates" of April this year on why Fix() and Abs() must be used to sort old Date/time values. /gustav >>> Lambert.Heenan at AIG.com 24-10-2006 16:34:01 >>> Well one reason is I never remember the DateValue function for some reason :-), but a better reason is that DateValue is slower. I'd guess the reason is that it takes a string as a parameter, so there's a type conversion going on to pass in its data to work on, then it returns a variant, which is another time wasting type conversion. I just did a quick test and found that on my box, 2,000,000 iterations of Cdate(Clng(Now())) took 1.62 seconds, but 2,000,000 calls to DateValue(Now()) took 26.5 seconds. Not a huge difference I'll agree, but significant especially if you are running the code against a table with potentially millions of rows. My guess is that a Long is considerably Closer to a Date than a String or a Variant is in terms of CPU cycles to do the conversion. Lambert. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, October 23, 2006 5:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Oct 24 12:43:19 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 24 Oct 2006 10:43:19 -0700 Subject: [AccessD] A2003:Remove first line in CSV/Excel file In-Reply-To: <20061024140302.TLMC11173.omta03ps.mx.bigpond.com@DENZILLAP> References: <20061024140302.TLMC11173.omta03ps.mx.bigpond.com@DENZILLAP> Message-ID: <453E50B7.2080405@shaw.ca> Ooops misread this should work Sub testexcelsave() Dim oApp As Excel.Application Dim ObjXLBook As Excel.Workbooks Dim sourceWkBkName As String Dim sNew As String On Error GoTo ExcelExit Set oApp = New Excel.Application 'or use createobject latebinding 'sourceWkBkName = oApp.GetOpenFilename("Excel Files(*.xls),*.xls", _ ' , "WHERE IS YOUR FILE?", "SELECT") With oApp .Visible = True .Workbooks.Open ("C:\Excel\product2.xls") '.ActiveSheet.Name = "Wisconsin" sNew = .ActiveSheet.Name With .Worksheets(sNew) .Rows(1).EntireRow.Delete End With MsgBox .ActiveWorkbook.FullName '.ActiveSheet.Rows("1:1").EntireRow.Delete .ActiveWorkbook.SaveCopyAs "C:\excel\product3.xls" '.ActiveWorkbook.SaveAs "C:\excel\product3.xls" 'hmm doesn't work with Excel 2007 .ActiveWorkbook.Close SaveChanges:=False .Workbooks.Close End With Set ObjXLBook = Nothing oApp.Quit Set oApp = Nothing ExcelExit: Debug.Print Err.Number & Err.Description End Sub Darren DICK wrote: >Further to my last > >Does anyone have any code that will remove the first line in an Excel doc but >from Access? > >Many thanks again in advance > >Darren > > > _____ > >From: Darren DICK [mailto:darrend at nimble.com.au] >Sent: Tuesday, 24 October 2006 11:55 PM >To: 'Access Developers discussion and problem solving' >Subject: A2003:Rename a file in a folder > > >Hi all > >I have a file that will be always named the same - EG myCoolCSVfile.csv > >It will be dumped into a folder...say C:\MyCoolFolder at random times > >I need some code to Check the C:\myCoolFolder to see if the file >myCoolCSVfile.csv file exists in the folder - and if it does to rename it to >YYMMDDHHMMSS.csv > >Where YY = Year MM = Month DD = Day etc etc > >Does anyone have anything that might suit? > >Many thanks in advance > >Darren > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Tue Oct 24 12:56:17 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 24 Oct 2006 19:56:17 +0200 Subject: [AccessD] Tip concerning dates in Access Message-ID: Hi Lambert That's because Now adds a floor. Use a constant and you'll see the real difference: n = Now : t = Timer : For i = 1 to 2 * 10 ^ 6 : d = CDate(Fix(n)) : Next : ? Timer - t n = Now : t = Timer : For i = 1 to 2 * 10 ^ 6 : d = Fix(n) : Next : ? Timer - t 0.712 0.391 This is VBA; in a query - where n is pulled from a table field - I doubt you can measure any difference. /gustav >>> Lambert.Heenan at AIG.com 24-10-2006 18:49:04 >>> Hi Gustav, I agree that the output of Fix(ADate) works too, but then I have to remember to set the format property of a query field to "Short Date" (and we all know how bad my memory is) or else the query results will just show the Long value. FYI there seems to be little to gained from eliminating the Cdate() call, about 9.7 E-9 seconds per iteration. CDate(Fix(Now())) took 1.851563 seconds for 2000000 iterations. Fix(Now()) took 1.832031 seconds for 2000000 iterations. DateValue(Now()) took 24.9375 seconds for 2000000 iterations. Lambert :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 24, 2006 11:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Hi Lambert This can be even faster as CDate() is not needed. Fix() and Int() are "transparent" as they often return the same data type as the input. Thus, to kill the time portion of a Date/time value, just use: A Date: Fix(dSomeDate) As a bonus, removing CDate() makes the conversion run about 40% faster in VBA and probably even faster in SQL as Fix() is native to JET SQL. Of course, as you mention, this is only of importance in iterations and loops. Also, study the thread "Convert SQL Server Date/Time to Date" of late May this year and "Sorting old dates" of April this year on why Fix() and Abs() must be used to sort old Date/time values. /gustav >>> Lambert.Heenan at AIG.com 24-10-2006 16:34:01 >>> Well one reason is I never remember the DateValue function for some reason :-), but a better reason is that DateValue is slower. I'd guess the reason is that it takes a string as a parameter, so there's a type conversion going on to pass in its data to work on, then it returns a variant, which is another time wasting type conversion. I just did a quick test and found that on my box, 2,000,000 iterations of Cdate(Clng(Now())) took 1.62 seconds, but 2,000,000 calls to DateValue(Now()) took 26.5 seconds. Not a huge difference I'll agree, but significant especially if you are running the code against a table with potentially millions of rows. My guess is that a Long is considerably Closer to a Date than a String or a Variant is in terms of CPU cycles to do the conversion. Lambert. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, October 23, 2006 5:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert From Lambert.Heenan at AIG.com Tue Oct 24 13:45:46 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 24 Oct 2006 13:45:46 -0500 Subject: [AccessD] Tip concerning dates in Access Message-ID: Gustav: Interesting. But I wonder how much of the speed gain is real and how much is just some optimization going on. Is VBA smart enough to realize that "n" is constant and so emit p-code that does the evaluation once only while it otherwise does 2 million loops that do nothing? Fortunately I'm *not* usually working with tables holding millions of records. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 24, 2006 1:56 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Hi Lambert That's because Now adds a floor. Use a constant and you'll see the real difference: n = Now : t = Timer : For i = 1 to 2 * 10 ^ 6 : d = CDate(Fix(n)) : Next : ? Timer - t n = Now : t = Timer : For i = 1 to 2 * 10 ^ 6 : d = Fix(n) : Next : ? Timer - t 0.712 0.391 This is VBA; in a query - where n is pulled from a table field - I doubt you can measure any difference. /gustav >>> Lambert.Heenan at AIG.com 24-10-2006 18:49:04 >>> Hi Gustav, I agree that the output of Fix(ADate) works too, but then I have to remember to set the format property of a query field to "Short Date" (and we all know how bad my memory is) or else the query results will just show the Long value. FYI there seems to be little to gained from eliminating the Cdate() call, about 9.7 E-9 seconds per iteration. CDate(Fix(Now())) took 1.851563 seconds for 2000000 iterations. Fix(Now()) took 1.832031 seconds for 2000000 iterations. DateValue(Now()) took 24.9375 seconds for 2000000 iterations. Lambert :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 24, 2006 11:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Hi Lambert This can be even faster as CDate() is not needed. Fix() and Int() are "transparent" as they often return the same data type as the input. Thus, to kill the time portion of a Date/time value, just use: A Date: Fix(dSomeDate) As a bonus, removing CDate() makes the conversion run about 40% faster in VBA and probably even faster in SQL as Fix() is native to JET SQL. Of course, as you mention, this is only of importance in iterations and loops. Also, study the thread "Convert SQL Server Date/Time to Date" of late May this year and "Sorting old dates" of April this year on why Fix() and Abs() must be used to sort old Date/time values. /gustav >>> Lambert.Heenan at AIG.com 24-10-2006 16:34:01 >>> Well one reason is I never remember the DateValue function for some reason :-), but a better reason is that DateValue is slower. I'd guess the reason is that it takes a string as a parameter, so there's a type conversion going on to pass in its data to work on, then it returns a variant, which is another time wasting type conversion. I just did a quick test and found that on my box, 2,000,000 iterations of Cdate(Clng(Now())) took 1.62 seconds, but 2,000,000 calls to DateValue(Now()) took 26.5 seconds. Not a huge difference I'll agree, but significant especially if you are running the code against a table with potentially millions of rows. My guess is that a Long is considerably Closer to a Date than a String or a Variant is in terms of CPU cycles to do the conversion. Lambert. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, October 23, 2006 5:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Tue Oct 24 14:32:25 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 24 Oct 2006 23:32:25 +0400 Subject: [AccessD] MS Access 2007 - where may on have a look at the full list of the new objects, properties, methods, ... Message-ID: <001b01c6f7a3$225eb5c0$6401a8c0@nant> Hi All, As far as I see there are useful new properties of MS Access 2007 controls, e.g. ComboBox has got 'List Items Edit Form' property. Is there anywhere a full list of new objects, properties, methods? (MS Access 2007 online help doesn't have it. Or I'm missing it?). Thank you. -- Shamil From artful at rogers.com Tue Oct 24 15:34:21 2006 From: artful at rogers.com (artful at rogers.com) Date: Tue, 24 Oct 2006 13:34:21 -0700 (PDT) Subject: [AccessD] ADP documenter Message-ID: <20061024203421.91113.qmail@web88215.mail.re2.yahoo.com> Does anyone know of a documenter that works with ADPs and can document all the Access code plus the sprocs, views, udfs etc.? TIA, Arthur From DWUTKA at marlow.com Tue Oct 24 16:51:37 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Oct 2006 16:51:37 -0500 Subject: [AccessD] Tip concerning dates in Access Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDD3C@MARLOW_MAIN2.marlow.com> Okay, what about DateSerial(Month(date),Year(date), Day(date)) Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Tuesday, October 24, 2006 9:34 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Tip concerning dates in Access Well one reason is I never remember the DateValue function for some reason :-), but a better reason is that DateValue is slower. I'd guess the reason is that it takes a string as a parameter, so there's a type conversion going on to pass in its data to work on, then it returns a variant, which is another time wasting type conversion. I just did a quick test and found that on my box, 2,000,000 iterations of Cdate(Clng(Now())) took 1.62 seconds, but 2,000,000 calls to DateValue(Now()) took 26.5 seconds. Not a huge difference I'll agree, but significant especially if you are running the code against a table with potentially millions of rows. My guess is that a Long is considerably Closer to a Date than a String or a Variant is in terms of CPU cycles to do the conversion. Lambert. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, October 23, 2006 5:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Oct 24 21:21:22 2006 From: artful at rogers.com (artful at rogers.com) Date: Tue, 24 Oct 2006 19:21:22 -0700 (PDT) Subject: [AccessD] Friday Humour a few days early: RAID Message-ID: <20061025022122.18518.qmail@web88205.mail.re2.yahoo.com> What does the RAID really mean? http://sickedank. com/raid. jpg From darrend at nimble.com.au Tue Oct 24 21:27:43 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 25 Oct 2006 12:27:43 +1000 Subject: [AccessD] A2003:Rename a file in a folder In-Reply-To: <15615139.1161698814479.JavaMail.www@wwinf3202> Message-ID: <453ecbd8.72600bdd.1af6.ffffcbd9@mx.google.com> Hi Paul That's is so simple - brilliant Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Wednesday, 25 October 2006 12:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Rename a file in a folder Importance: High Darren, Off the tope of my head use the following: Dim strFile As String strFile = Dir(myCoolCSVfile.csv, vbHidden) ' Put the full path before the filename If (strFile<>"" ) then Name myCoolCSVfile.csv As YYMMDDHHMMSS.csv ' Put the full path before the filename and new file name Endif ' Your routine to put the new file into C:\MyCoolFolder Paul Hartland Message Received: Oct 24 2006, 02:58 PM From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Cc: Subject: [AccessD] A2003:Rename a file in a folder Hi all I have a file that will be always named the same - EG myCoolCSVfile.csv It will be dumped into a folder...say C:\MyCoolFolder at random times I need some code to Check the C:\myCoolFolder to see if the file myCoolCSVfile.csv file exists in the folder - and if it does to rename it to YYMMDDHHMMSS.csv Where YY = Year MM = Month DD = Day etc etc Does anyone have anything that might suit? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Tue Oct 24 21:27:43 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 25 Oct 2006 12:27:43 +1000 Subject: [AccessD] A2003:Remove first line in CSV/Excel file In-Reply-To: <453E50B7.2080405@shaw.ca> Message-ID: <453ecbdc.2882ec33.1af6.ffffcbe8@mx.google.com> Marty - Brilliant will try it this PM Than ks so much Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, 25 October 2006 3:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Remove first line in CSV/Excel file Ooops misread this should work Sub testexcelsave() Dim oApp As Excel.Application Dim ObjXLBook As Excel.Workbooks Dim sourceWkBkName As String Dim sNew As String On Error GoTo ExcelExit Set oApp = New Excel.Application 'or use createobject latebinding 'sourceWkBkName = oApp.GetOpenFilename("Excel Files(*.xls),*.xls", _ ' , "WHERE IS YOUR FILE?", "SELECT") With oApp .Visible = True .Workbooks.Open ("C:\Excel\product2.xls") '.ActiveSheet.Name = "Wisconsin" sNew = .ActiveSheet.Name With .Worksheets(sNew) .Rows(1).EntireRow.Delete End With MsgBox .ActiveWorkbook.FullName '.ActiveSheet.Rows("1:1").EntireRow.Delete .ActiveWorkbook.SaveCopyAs "C:\excel\product3.xls" '.ActiveWorkbook.SaveAs "C:\excel\product3.xls" 'hmm doesn't work with Excel 2007 .ActiveWorkbook.Close SaveChanges:=False .Workbooks.Close End With Set ObjXLBook = Nothing oApp.Quit Set oApp = Nothing ExcelExit: Debug.Print Err.Number & Err.Description End Sub Darren DICK wrote: >Further to my last > >Does anyone have any code that will remove the first line in an Excel doc but >from Access? > >Many thanks again in advance > >Darren > > > _____ > >From: Darren DICK [mailto:darrend at nimble.com.au] >Sent: Tuesday, 24 October 2006 11:55 PM >To: 'Access Developers discussion and problem solving' >Subject: A2003:Rename a file in a folder > > >Hi all > >I have a file that will be always named the same - EG myCoolCSVfile.csv > >It will be dumped into a folder...say C:\MyCoolFolder at random times > >I need some code to Check the C:\myCoolFolder to see if the file >myCoolCSVfile.csv file exists in the folder - and if it does to rename it to >YYMMDDHHMMSS.csv > >Where YY = Year MM = Month DD = Day etc etc > >Does anyone have anything that might suit? > >Many thanks in advance > >Darren > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Oct 24 22:20:02 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 24 Oct 2006 23:20:02 -0400 Subject: [AccessD] Friday Humour a few days early: RAID In-Reply-To: <20061025022122.18518.qmail@web88205.mail.re2.yahoo.com> Message-ID: <001801c6f7e4$770e2e20$657aa8c0@m6805> ROTFL! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, October 24, 2006 10:21 PM To: AccessD Subject: [AccessD] Friday Humour a few days early: RAID What does the RAID really mean? http://sickedank. com/raid. jpg -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max at sherman.org.uk Wed Oct 25 02:02:19 2006 From: max at sherman.org.uk (Max Home) Date: Wed, 25 Oct 2006 08:02:19 +0100 Subject: [AccessD] Looks as if we are all out of a job now. In-Reply-To: <453ecbd8.72600bdd.1af6.ffffcbd9@mx.google.com> Message-ID: <003701c6f803$84456ad0$8119fea9@MaxLapTop> Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max From Gustav at cactus.dk Wed Oct 25 02:08:18 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Oct 2006 09:08:18 +0200 Subject: [AccessD] Tip concerning dates in Access Message-ID: Hi Drew That - DateSerial(Year(date), Month(date), Day(date)) - will work and has the advantage of being self-explanatory but it runs about 18 times slower. /gustav >>> DWUTKA at marlow.com 24-10-2006 23:51 >>> Okay, what about DateSerial(Month(date),Year(date), Day(date)) Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Tuesday, October 24, 2006 9:34 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Tip concerning dates in Access Well one reason is I never remember the DateValue function for some reason :-), but a better reason is that DateValue is slower. I'd guess the reason is that it takes a string as a parameter, so there's a type conversion going on to pass in its data to work on, then it returns a variant, which is another time wasting type conversion. I just did a quick test and found that on my box, 2,000,000 iterations of Cdate(Clng(Now())) took 1.62 seconds, but 2,000,000 calls to DateValue(Now()) took 26.5 seconds. Not a huge difference I'll agree, but significant especially if you are running the code against a table with potentially millions of rows. My guess is that a Long is considerably Closer to a Date than a String or a Variant is in terms of CPU cycles to do the conversion. Lambert. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, October 23, 2006 5:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert From kost36 at otenet.gr Wed Oct 25 02:46:31 2006 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Wed, 25 Oct 2006 10:46:31 +0300 Subject: [AccessD] opening a specific file via double click... References: <15615139.1161698814479.JavaMail.www@wwinf3202> Message-ID: <031501c6f809$b03b53b0$0202fea9@kost36> dear group for one more time i need your help I have a text field in which the stored data are just names of files (e.g. aaa.pdf) Is that possible by double click on the specific field to load the file with the same name as well? thank's a lot /kostas ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, October 24, 2006 5:06 PM Subject: Re: [AccessD] A2003:Rename a file in a folder > Darren, > > Off the tope of my head use the following: > > Dim strFile As String > > strFile = Dir(myCoolCSVfile.csv, vbHidden) ' Put the full path before the > filename > If (strFile<>"" ) then > Name myCoolCSVfile.csv As YYMMDDHHMMSS.csv ' Put the full path > before the filename and new file name > Endif > > ' Your routine to put the new file into C:\MyCoolFolder > > Paul Hartland > > > > Message Received: Oct 24 2006, 02:58 PM > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > Cc: > Subject: [AccessD] A2003:Rename a file in a folder > > Hi all > > I have a file that will be always named the same - EG myCoolCSVfile.csv > > It will be dumped into a folder...say C:\MyCoolFolder at random times > > I need some code to Check the C:\myCoolFolder to see if the file > myCoolCSVfile.csv file exists in the folder - and if it does to rename it > to > YYMMDDHHMMSS.csv > > Where YY = Year MM = Month DD = Day etc etc > > Does anyone have anything that might suit? > > Many thanks in advance > > Darren > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Wed Oct 25 04:13:12 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 25 Oct 2006 9:13:12 +0000 Subject: [AccessD] Looks as if we are all out of a job now. Message-ID: <20061025081326.0F7256538E@smtp.nildram.co.uk> ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Wed Oct 25 04:29:46 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 25 Oct 2006 9:29:46 +0000 Subject: [AccessD] opening a specific file via double click... Message-ID: <20061025082949.5D95054EEA@smtp.nildram.co.uk> Hi Kostas, this is what I use. Create a module and paste this in ''''''''''''''' Declare Function ShellExecute Lib "shell32" Alias "ShellExecuteA" (ByVal hWnd As Long, _ ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, _ ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Private Const InadequateMemory = 0 Private Const FileNotFound = 2 Private Const PathNotFound = 3 Private Const BadFormat = 11 Private Const NotRegistered = 31 Private Const Success = 32 Private Const BIF_RETURNONLYFSDIRS = &H1 Public Const sizeNormal = 1 Public Const sizeMinimize = 2 Public Const sizeMaximize = 3 Function RunApp(strFile As String, bytSize) As Boolean Dim lngRet As Long Dim varTaskID As Variant Dim strRet As String lngRet = ShellExecute(hWndAccessApp, vbNullString, strFile, vbNullString, vbNullString, bytSize) If lngRet > Success Then strRet = vbNullString lngRet = -1 RunApp = True Else RunApp = False Select Case lngRet Case NotRegistered varTaskID = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL " & strFile, bytSize) lngRet = (varTaskID <> 0) Case InadequateMemory MsgBox "Error: Out of Memory/Resources!" Case FileNotFound MsgBox "Error: File not found!" Case PathNotFound MsgBox "Error: Path not found!" Case BadFormat MsgBox "Error: Bad File Format!" Case 5 MsgBox "Error: Unauthorized due to Security restrictions!" End Select End If End Function ''''''''''''''' You can then open any registered file type with the following: Call RunApp(stryourfilename,1) HTH -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: [AccessD] opening a specific file via double click... Date: 25/10/06 07:51 dear group for one more time i need your help I have a text field in which the stored data are just names of files (e.g. aaa.pdf) Is that possible by double click on the specific field to load the file with the same name as well? thank's a lot /kostas ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, October 24, 2006 5:06 PM Subject: Re: [AccessD] A2003:Rename a file in a folder > Darren, > > Off the tope of my head use the following: > > Dim strFile As String > > strFile = Dir(myCoolCSVfile.csv, vbHidden) ' Put the full path before the > filename > If (strFile<>"" ) then > Name myCoolCSVfile.csv As YYMMDDHHMMSS.csv ' Put the full path > before the filename and new file name > Endif > > ' Your routine to put the new file into C:MyCoolFolder > > Paul Hartland > > > > Message Received: Oct 24 2006, 02:58 PM > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > Cc: > Subject: [AccessD] A2003:Rename a file in a folder > > Hi all > > I have a file that will be always named the same - EG myCoolCSVfile.csv > > It will be dumped into a folder...say C:MyCoolFolder at random times > > I need some code to Check the C:myCoolFolder to see if the file > myCoolCSVfile.csv file exists in the folder - and if it does to rename it > to > YYMMDDHHMMSS.csv > > Where YY = Year MM = Month DD = Day etc etc > > Does anyone have anything that might suit? > > Many thanks in advance > > Darren > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From paul.hartland at fsmail.net Wed Oct 25 04:54:41 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 25 Oct 2006 11:54:41 +0200 (CEST) Subject: [AccessD] OT - Infragistics Ultragrid on Visual Basic 6.0 Form Message-ID: <28867723.1161770081337.JavaMail.www@wwinf3204.me-wanadoo.net> To all, I have cross posted this as I don't know if that many of you out there would have used or still be using the Infragistics suite (mainly the UltraGrid). I have a grid with one of the columns set to a dropdown on the fly, and I create and populate the valuelist for it on the fly. This all works fine, I got to the employees record, click onto their training tab and it displays exactly what I want......BUT the problem is if I make a selection from the dropdown, it just nulls the training id all the time....All the help files I can find seems though I am doing this correctly but I must be missing something. If anyone out there thinks they may be able to help me, feel free to contact me on here or offline, as I have now been working on this for 3.25 hours and it is really starting to get to me :( Thanks in advance for all your help. Paul Hartland Paul Hartland paul.hartland at fsmail.net 07730 523179 From hollisvj at pgdp.usec.com Wed Oct 25 11:13:58 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 25 Oct 2006 11:13:58 -0500 Subject: [AccessD] Calculating Date/Time Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01014FF7@c2k3exchange.pgdp.corp.usec.com> I have a database that tracks elapsed minutes of a project. The elapsed minutes are from the date/time a project was opened until the date/time it was closed. I need to create a query that shows the average time it takes to close a project for each technician. The elapsed minutes is a number field. What do I need to do to turn all those minutes into something that shows how many days, hours, minutes it took to close the project? Then figure the average time it takes each tech to close a project. What I need: Average age of a project Average time it takes to close a project Something that turns minutes to days (or figure it from dateopened & dateCompleted, which is shown as: 12/21/2001 10:07:52 AM Virginia From garykjos at gmail.com Wed Oct 25 11:41:32 2006 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 25 Oct 2006 11:41:32 -0500 Subject: [AccessD] Calculating Date/Time In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01014FF7@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D01014FF7@c2k3exchange.pgdp.corp.usec.com> Message-ID: I would use the DateDiff function >From the Access 97 Help file..... ---------------------------- Returns a Variant (Long) specifying the number of time intervals between two specified dates. Syntax DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]]) The DateDiff function syntax has these named arguments: Part Description interval Required. String expression that is the interval of time you use to calculate the difference between date1 and date2. date1, date2 Required; Variant (Date). Two dates you want to use in the calculation. firstdayofweek Optional. A constant that specifies the first day of the week. If not specified, Sunday is assumed. firstweekofyear Optional. A constant that specifies the first week of the year. If not specified, the first week is assumed to be the week in which January 1 occurs. Settings The interval argument has these settings: Setting Description yyyy Year q Quarter m Month y Day of year d Day w Weekday ww Week h Hour n Minute s Second The firstdayofweek argument has these settings: Constant Value Description vbUseSystem 0 Use the NLS API setting. vbSunday 1 Sunday (default) vbMonday 2 Monday vbTuesday 3 Tuesday vbWednesday 4 Wednesday vbThursday 5 Thursday vbFriday 6 Friday vbSaturday 7 Saturday The firstweekofyear argument has these settings: Constant Value Description vbUseSystem 0 Use the NLS API setting. vbFirstJan1 1 Start with week in which January 1 occurs (default). vbFirstFourDays 2 Start with the first week that has at least four days in the new year. vbFirstFullWeek 3 Start with first full week of the year. Remarks You can use the DateDiff function to determine how many specified time intervals exist between two dates. For example, you might use DateDiff to calculate the number of days between two dates, or the number of weeks between today and the end of the year. To calculate the number of days between date1 and date2, you can use either Day of year ("y") or Day ("d"). When interval is Weekday ("w"), DateDiff returns the number of weeks between the two dates. If date1 falls on a Monday, DateDiff counts the number of Mondays until date2. It counts date2 but not date1. If interval is Week ("ww"), however, the DateDiff function returns the number of calendar weeks between the two dates. It counts the number of Sundays between date1 and date2. DateDiff counts date2 if it falls on a Sunday; but it doesn't count date1, even if it does fall on a Sunday. If date1 refers to a later point in time than date2, the DateDiff function returns a negative number. The firstdayofweek argument affects calculations that use the "w" and "ww" interval symbols. If date1 or date2 is a date literal, the specified year becomes a permanent part of that date. However, if date1 or date2 is enclosed in double quotation marks (" "), and you omit the year, the current year is inserted in your code each time the date1 or date2 expression is evaluated. This makes it possible to write code that can be used in different years. When comparing December 31 to January 1 of the immediately succeeding year, DateDiff for Year ("yyyy") returns 1 even though only a day has elapsed. ---------------------------- On 10/25/06, Hollis, Virginia wrote: > I have a database that tracks elapsed minutes of a project. The elapsed > minutes are from the date/time a project was opened until the date/time > it was closed. > > > > I need to create a query that shows the average time it takes to close a > project for each technician. The elapsed minutes is a number field. > > > > What do I need to do to turn all those minutes into something that shows > how many days, hours, minutes it took to close the project? Then figure > the average time it takes each tech to close a project. > > > > What I need: > > Average age of a project > > Average time it takes to close a project > > Something that turns minutes to days (or figure it from dateopened & > dateCompleted, which is shown as: 12/21/2001 10:07:52 AM > > > > Virginia > > -- > 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 hollisvj at pgdp.usec.com Wed Oct 25 12:52:52 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 25 Oct 2006 12:52:52 -0500 Subject: [AccessD] Calculating Date/Time Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01015004@c2k3exchange.pgdp.corp.usec.com> I got the DateDiff in days - so how do I get the Average number of days it took to close for each person? >I would use the DateDiff function From mikedorism at verizon.net Wed Oct 25 12:59:36 2006 From: mikedorism at verizon.net (Doris Manning) Date: Wed, 25 Oct 2006 13:59:36 -0400 Subject: [AccessD] Calculating Date/Time In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01015004@c2k3exchange.pgdp.corp.usec.com> Message-ID: <000d01c6f85f$5603d0b0$2f01a8c0@Kermit> Click on the "Group By" button. Set the person information to "Group By" and set the calculated column to "Average". Doris Manning -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, October 25, 2006 1:53 PM To: accessd at databaseadvisors.com Subject: [AccessD] Calculating Date/Time I got the DateDiff in days - so how do I get the Average number of days it took to close for each person? >I would use the DateDiff function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Wed Oct 25 13:02:05 2006 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 25 Oct 2006 13:02:05 -0500 Subject: [AccessD] Calculating Date/Time In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01015004@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D01015004@c2k3exchange.pgdp.corp.usec.com> Message-ID: Do a Group By or Totals query, grouping on the person and averaging on the number of days. Something like this SELECT tblDataTable.PERSON_ID, Avg(tblDataTable.DaysToClose) AS AvgOfDaysToClose FROM tblDataTable GROUP BY tblDataTable.PERSON_ID; You can write the results to a temp file if you need to by making it into a Make Table query if you need to and then use that to update a master file someplace. GK On 10/25/06, Hollis, Virginia wrote: > I got the DateDiff in days - so how do I get the Average number of days > it took to close for each person? > > > > > >I would use the DateDiff function > > > > -- > 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 bheid at appdevgrp.com Wed Oct 25 13:13:01 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 25 Oct 2006 14:13:01 -0400 Subject: [AccessD] Calculating Date/Time In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E5F2C5@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35A0B@ADGSERVER> Not sure of the first two, but the one way of calculating elapsed time could be something like (note no error checking) that could be called from a query: Public Function Elapsed(ByVal strDate1 As String, ByVal strDate2 As String) As String Dim h As Long Dim m As Long Dim d As Long Dim Mins As Long 'get total # of minutes elapsed Mins = DateDiff("n", strDate1, strDate2) 'get days d = Mins \ 1440 'integer division (# minutes in a day) 'remove days from the total Mins = Mins - (d * 1440) 'get hours h = Mins \ 60 'remove minutes from total Mins = Mins - (h * 60) m = Mins Elapsed = d & " day(s), " & h & " hours, " & m & " minutes" End Function Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, October 25, 2006 12:14 PM To: accessD at databaseadvisors.com Subject: [AccessD] Calculating Date/Time I have a database that tracks elapsed minutes of a project. The elapsed minutes are from the date/time a project was opened until the date/time it was closed. I need to create a query that shows the average time it takes to close a project for each technician. The elapsed minutes is a number field. What do I need to do to turn all those minutes into something that shows how many days, hours, minutes it took to close the project? Then figure the average time it takes each tech to close a project. What I need: Average age of a project Average time it takes to close a project Something that turns minutes to days (or figure it from dateopened & dateCompleted, which is shown as: 12/21/2001 10:07:52 AM Virginia From hollisvj at pgdp.usec.com Wed Oct 25 13:15:54 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 25 Oct 2006 13:15:54 -0500 Subject: [AccessD] Calculating Date/Time Message-ID: <703BDA18A87DFA4CB265A86F42E4178D0101500A@c2k3exchange.pgdp.corp.usec.com> Thanks! Last question... The Average shows like: 0.0909090909090909 how can I get it to show without all the numbers - like round it? DaysClose: DateDiff("d",[opendate],[clsddate]) Click on the "Group By" button. Set the person information to "Group By" and set the calculated column to "Average". Doris Manning From Gustav at cactus.dk Wed Oct 25 12:19:42 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Oct 2006 19:19:42 +0200 Subject: [AccessD] Calculating Date/Time Message-ID: Hi Virginia Not quite clear what you have - DateOpened and elapsed minutes or DateCompleted? But in the first case use: datDateCompleted = DateAdd("n", lngMinutes, datDateOpened) /gustav >>> hollisvj at pgdp.usec.com 25-10-2006 18:13:58 >>> I have a database that tracks elapsed minutes of a project. The elapsed minutes are from the date/time a project was opened until the date/time it was closed. I need to create a query that shows the average time it takes to close a project for each technician. The elapsed minutes is a number field. What do I need to do to turn all those minutes into something that shows how many days, hours, minutes it took to close the project? Then figure the average time it takes each tech to close a project. What I need: Average age of a project Average time it takes to close a project Something that turns minutes to days (or figure it from dateopened & dateCompleted, which is shown as: 12/21/2001 10:07:52 AM Virginia From hollisvj at pgdp.usec.com Wed Oct 25 13:39:30 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 25 Oct 2006 13:39:30 -0500 Subject: [AccessD] Calculating Date/Time Message-ID: <703BDA18A87DFA4CB265A86F42E4178D0101500F@c2k3exchange.pgdp.corp.usec.com> I have no idea how to call the function from a query. Virginia Not sure of the first two, but the one way of calculating elapsed time could be something like (note no error checking) that could be called from a query: Public Function Elapsed(ByVal strDate1 As String, ByVal strDate2 As String) As String Dim h As Long Dim m As Long Dim d As Long Dim Mins As Long 'get total # of minutes elapsed Mins = DateDiff("n", strDate1, strDate2) 'get days d = Mins \ 1440 'integer division (# minutes in a day) 'remove days from the total Mins = Mins - (d * 1440) 'get hours h = Mins \ 60 'remove minutes from total Mins = Mins - (h * 60) m = Mins Elapsed = d & " day(s), " & h & " hours, " & m & " minutes" End Function From bheid at appdevgrp.com Wed Oct 25 13:51:46 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 25 Oct 2006 14:51:46 -0400 Subject: [AccessD] Calculating Date/Time In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E5F30C@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35A0C@ADGSERVER> Something like (in the query grid): ElapsedTime: Elapsed([FirstDate],[SecondDate]) Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, October 25, 2006 2:40 PM To: accessd at databaseadvisors.com Subject: [AccessD] Calculating Date/Time I have no idea how to call the function from a query. Virginia Not sure of the first two, but the one way of calculating elapsed time could be something like (note no error checking) that could be called from a query: Public Function Elapsed(ByVal strDate1 As String, ByVal strDate2 As String) As String Dim h As Long Dim m As Long Dim d As Long Dim Mins As Long 'get total # of minutes elapsed Mins = DateDiff("n", strDate1, strDate2) 'get days d = Mins \ 1440 'integer division (# minutes in a day) 'remove days from the total Mins = Mins - (d * 1440) 'get hours h = Mins \ 60 'remove minutes from total Mins = Mins - (h * 60) m = Mins Elapsed = d & " day(s), " & h & " hours, " & m & " minutes" End Function From mikedorism at verizon.net Wed Oct 25 13:53:59 2006 From: mikedorism at verizon.net (Doris Manning) Date: Wed, 25 Oct 2006 14:53:59 -0400 Subject: [AccessD] Calculating Date/Time In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D0101500A@c2k3exchange.pgdp.corp.usec.com> Message-ID: <000e01c6f866$eebf39a0$2f01a8c0@Kermit> You would need to control that through the Form or Report you are using to display the results. Doris Manning -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, October 25, 2006 2:16 PM To: accessd at databaseadvisors.com Subject: [AccessD] Calculating Date/Time Thanks! Last question... The Average shows like: 0.0909090909090909 how can I get it to show without all the numbers - like round it? DaysClose: DateDiff("d",[opendate],[clsddate]) Click on the "Group By" button. Set the person information to "Group By" and set the calculated column to "Average". Doris Manning -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Wed Oct 25 13:57:29 2006 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 25 Oct 2006 13:57:29 -0500 Subject: [AccessD] Calculating Date/Time In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D0101500A@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D0101500A@c2k3exchange.pgdp.corp.usec.com> Message-ID: If you bring up the properties for that column you will see a format and number of decimals property you can set for the column. To see the properties of the column, RIGHT click on the very very top of that column in design view grid. GK On 10/25/06, Hollis, Virginia wrote: > Thanks! Last question... > > The Average shows like: 0.0909090909090909 how can I get it to show > without all the numbers - like round it? > > DaysClose: DateDiff("d",[opendate],[clsddate]) > > > Click on the "Group By" button. Set the person information to "Group > By" > and set the calculated column to "Average". > > Doris Manning > > > > -- > 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 hollisvj at pgdp.usec.com Wed Oct 25 13:59:25 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 25 Oct 2006 13:59:25 -0500 Subject: [AccessD] Calculating Date/Time Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01015011@c2k3exchange.pgdp.corp.usec.com> Came out as: 0 day(s), 0 hours, 0 minutes, on all the records. From bheid at appdevgrp.com Wed Oct 25 14:38:30 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 25 Oct 2006 15:38:30 -0400 Subject: [AccessD] Calculating Date/Time In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E5F31C@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35A0E@ADGSERVER> hmm. I tested it in code only originally. I just tested it with: SELECT Contract.[Contract ID], Contract.ContractNum, Contract.Start, Contract.StartWorkDate, Elapsed([Start],[StartWorkDate]) AS Elap FROM Contract; and it worked fine. Here's the output (partial) Contract ID ContractNum Start StartWorkDate Elap 45 B40950 000031-2 5/23/2005 6/20/2005 28 day(s), 0 hours, 0 minutes 46 D20163 000032-2 6/7/2005 10/3/2005 118 day(s), 0 hours, 0 minutes 47 D20164 000033-3 9/20/2005 10/3/2005 13 day(s), 0 hours, 0 minutes 48 B40970 000034-2 10/18/2005 10/18/2005 0 day(s), 0 hours, 0 minutes 49 A00000 000000-0 6/20/2005 6/20/2005 0 day(s), 0 hours, 0 minutes Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, October 25, 2006 2:59 PM To: accessd at databaseadvisors.com Subject: [AccessD] Calculating Date/Time Came out as: 0 day(s), 0 hours, 0 minutes, on all the records. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Oct 25 14:41:25 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 25 Oct 2006 12:41:25 -0700 Subject: [AccessD] Looks as if we are all out of a job now. In-Reply-To: <20061025081326.0F7256538E@smtp.nildram.co.uk> Message-ID: Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, October 25, 2006 2:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Oct 25 14:43:09 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 25 Oct 2006 12:43:09 -0700 Subject: [AccessD] OT - Infragistics Ultragrid on Visual Basic 6.0 Form In-Reply-To: <28867723.1161770081337.JavaMail.www@wwinf3204.me-wanadoo.net> Message-ID: Wish I could help, but I'm only familiar with the .Net implementations of the Infragistics grids. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Wednesday, October 25, 2006 2:55 AM To: accessd; dba-sqlserver; dba-vb Subject: [AccessD] OT - Infragistics Ultragrid on Visual Basic 6.0 Form Importance: High To all, I have cross posted this as I don't know if that many of you out there would have used or still be using the Infragistics suite (mainly the UltraGrid). I have a grid with one of the columns set to a dropdown on the fly, and I create and populate the valuelist for it on the fly. This all works fine, I got to the employees record, click onto their training tab and it displays exactly what I want......BUT the problem is if I make a selection from the dropdown, it just nulls the training id all the time....All the help files I can find seems though I am doing this correctly but I must be missing something. If anyone out there thinks they may be able to help me, feel free to contact me on here or offline, as I have now been working on this for 3.25 hours and it is really starting to get to me :( Thanks in advance for all your help. Paul Hartland Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Oct 25 15:21:20 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 25 Oct 2006 16:21:20 -0400 Subject: [AccessD] Looks as if we are all out of a job now. In-Reply-To: Message-ID: <003901c6f873$22d83500$657aa8c0@m6805> LOL, only YOU are old enough to remember that. 8~0 John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, October 25, 2006 3:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, October 25, 2006 2:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Wed Oct 25 15:23:02 2006 From: askolits at ot.com (John Skolits) Date: Wed, 25 Oct 2006 16:23:02 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: Message-ID: <006701c6f873$61ebf920$6501a8c0@LaptopXP> Any way to do a running sum in a "query" without having to deal with the overhead of a domain function (Like DSUM)? From wdhindman at dejpolsystems.com Wed Oct 25 15:50:40 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 25 Oct 2006 16:50:40 -0400 Subject: [AccessD] Looks as if we are all out of a job now. References: <003901c6f873$22d83500$657aa8c0@m6805> Message-ID: <000b01c6f877$3bc23da0$6136e944@50NM721> ...wrong! ...unfortunately :( William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, October 25, 2006 4:21 PM Subject: Re: [AccessD] Looks as if we are all out of a job now. > LOL, only YOU are old enough to remember that. 8~0 > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Wednesday, October 25, 2006 3:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Looks as if we are all out of a job now. > > Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, October 25, 2006 2:13 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Looks as if we are all out of a job now. > > ROTFL. I agree Max, we may as well hang up our coding sheets. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > --------- Original Message -------- > From: "Access Developers discussion and problem solving" > > To: "'Access Developers discussion and problem solving'" > > Subject: [AccessD] Looks as if we are all out of a job now. > Date: 25/10/06 07:08 > > > > Here is an extract from a newsletter I subscribe to: > > > quote > > an interesting excerpt from the Vista EULA (PDF download): > > "8. SCOPE OF LICENSE... You may not work around any technical limitations > in > the software;" > > I read that as saying that we're all pretty much out of a job... > Unquote > > > > Regards > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From pharold at proftesting.com Wed Oct 25 16:01:22 2006 From: pharold at proftesting.com (Perry L Harold) Date: Wed, 25 Oct 2006 17:01:22 -0400 Subject: [AccessD] Looks as if we are all out of a job now. Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD335509@EXCHANGE.ptiorl.local> Pretty sure WFWG 3.11 had similar. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, October 25, 2006 4:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Looks as if we are all out of a job now. LOL, only YOU are old enough to remember that. 8~0 John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, October 25, 2006 3:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, October 25, 2006 2:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Wed Oct 25 16:21:23 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 26 Oct 2006 01:21:23 +0400 Subject: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, properties, methods, ... Message-ID: <001201c6f87b$85f54f30$6401a8c0@nant> Hi All, As far as I see there are ~300+ new properties for MS Access 2007 objects. 153 of these properties are to set/get embedded macros' to process forms'/reports'/controls' events - like in this sample to set embedded macro for command button's Click event: Dim strMacro As String strMacro = _ "Version = 196611" & vbCrLf & _ "ColumnsShown = 8" & vbCrLf & _ "Begin" & vbCrLf & _ " Action = ""OpenForm""" & vbCrLf & _ " Argument = ""frmTest""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = ""-1""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ "End" Me.cmdTest.Properties("OnClickEmMacro").Value = strMacro These new [{EventName}EmMacro] properties seems to be available only via .Properties collection. Another interesting new feature is that Report object has now additionally all the events of the Form object and reports' controls have now all the events of the corresponding form controls... Here is the list of unique new properties' names ([{EventName}EmMacro] properties are not listed): AggregateType AllowLayoutView AllowReportView AllowValueListEdits AlternateBackColor AppendOnly AutoHeight BottomPadding CursorOnHover CustomRibbonID DatasheetAlternateBackColor DatasheetCaption DisplayAsHyperlink DisplayOnSharePointSite FilterOnEmptyMaster FilterOnLoad FitToPage GridlineColor GridlineStyleBottom GridlineStyleLeft GridlineStyleRight GridlineStyleTop GridlineWidthBottom GridlineWidthLeft GridlineWidthRight GridlineWidthTop HorizontalAnchor ImageData InheritValueList Layout LayoutID LeftPadding ListItemsEditForm NavigationCaption NavPane Category NavPane Closed NavPane Sort By NavPane View By NavPane Width OnPaint OrderByOnLoad RightPadding SaveSplitterBarPosition SeparatorCharacters ShowDatePicker ShowOnlyRowSourceValues ShowPageMargins SplitFormDatasheet SplitFormOrientation SplitFormPrinting SplitFormSize SplitFormSplitterBar TextFormat TopPadding UseDefaultPaperSize VerticalAnchor If that is interesting I can publish complete list of 300+ new properties somewhere on my site.... -- Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Tuesday, October 24, 2006 11:32 PM To: 'Access-D' Subject: MS Access 2007 - where may on have a look at the full list of the new objects, properties, methods,... Hi All, As far as I see there are useful new properties of MS Access 2007 controls, e.g. ComboBox has got 'List Items Edit Form' property. Is there anywhere a full list of new objects, properties, methods? (MS Access 2007 online help doesn't have it. Or I'm missing it?). Thank you. -- Shamil From Jim.Hale at FleetPride.com Wed Oct 25 16:35:03 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 25 Oct 2006 16:35:03 -0500 Subject: [AccessD] Running sum in a query without DSUM Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE093@corp-es01.fleetpride.com> Here is some a method from a query samples database I got from Lord knows where. HTH Jim Hale SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal FROM [Order Details] GROUP BY [Order Details].OrderID; -----Original Message----- From: John Skolits [mailto:askolits at ot.com] Sent: Wednesday, October 25, 2006 3:23 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Running sum in a query without DSUM Any way to do a running sum in a "query" without having to deal with the overhead of a domain function (Like DSUM)? *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From accessd at shaw.ca Wed Oct 25 16:42:37 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 25 Oct 2006 14:42:37 -0700 Subject: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, properties, methods, ... In-Reply-To: <001201c6f87b$85f54f30$6401a8c0@nant> Message-ID: <0J7P00IBYO9N1RM1@l-daemon> Please do, Shamil Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, October 25, 2006 2:21 PM To: 'Access-D' Subject: Re: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, properties, methods, ... Hi All, As far as I see there are ~300+ new properties for MS Access 2007 objects. 153 of these properties are to set/get embedded macros' to process forms'/reports'/controls' events - like in this sample to set embedded macro for command button's Click event: Dim strMacro As String strMacro = _ "Version = 196611" & vbCrLf & _ "ColumnsShown = 8" & vbCrLf & _ "Begin" & vbCrLf & _ " Action = ""OpenForm""" & vbCrLf & _ " Argument = ""frmTest""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = ""-1""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ "End" Me.cmdTest.Properties("OnClickEmMacro").Value = strMacro These new [{EventName}EmMacro] properties seems to be available only via .Properties collection. Another interesting new feature is that Report object has now additionally all the events of the Form object and reports' controls have now all the events of the corresponding form controls... Here is the list of unique new properties' names ([{EventName}EmMacro] properties are not listed): AggregateType AllowLayoutView AllowReportView AllowValueListEdits AlternateBackColor AppendOnly AutoHeight BottomPadding CursorOnHover CustomRibbonID DatasheetAlternateBackColor DatasheetCaption DisplayAsHyperlink DisplayOnSharePointSite FilterOnEmptyMaster FilterOnLoad FitToPage GridlineColor GridlineStyleBottom GridlineStyleLeft GridlineStyleRight GridlineStyleTop GridlineWidthBottom GridlineWidthLeft GridlineWidthRight GridlineWidthTop HorizontalAnchor ImageData InheritValueList Layout LayoutID LeftPadding ListItemsEditForm NavigationCaption NavPane Category NavPane Closed NavPane Sort By NavPane View By NavPane Width OnPaint OrderByOnLoad RightPadding SaveSplitterBarPosition SeparatorCharacters ShowDatePicker ShowOnlyRowSourceValues ShowPageMargins SplitFormDatasheet SplitFormOrientation SplitFormPrinting SplitFormSize SplitFormSplitterBar TextFormat TopPadding UseDefaultPaperSize VerticalAnchor If that is interesting I can publish complete list of 300+ new properties somewhere on my site.... -- Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Tuesday, October 24, 2006 11:32 PM To: 'Access-D' Subject: MS Access 2007 - where may on have a look at the full list of the new objects, properties, methods,... Hi All, As far as I see there are useful new properties of MS Access 2007 controls, e.g. ComboBox has got 'List Items Edit Form' property. Is there anywhere a full list of new objects, properties, methods? (MS Access 2007 online help doesn't have it. Or I'm missing it?). Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Oct 25 17:51:15 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 25 Oct 2006 15:51:15 -0700 Subject: [AccessD] Looks as if we are all out of a job now. In-Reply-To: <003901c6f873$22d83500$657aa8c0@m6805> Message-ID: Careful! I may take exception to that remark! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, October 25, 2006 1:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Looks as if we are all out of a job now. LOL, only YOU are old enough to remember that. 8~0 John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, October 25, 2006 3:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, October 25, 2006 2:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kost36 at otenet.gr Thu Oct 26 01:03:48 2006 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Thu, 26 Oct 2006 09:03:48 +0300 Subject: [AccessD] opening a specific file via double click... References: <20061025082949.5D95054EEA@smtp.nildram.co.uk> Message-ID: <000b01c6f8c4$829466c0$6601a8c0@kost36> Andy, thank's a lot but could you please tell me how to use the Call RunApp(stryourfilename,1) in order to open the specific file which the name is keeping as data in every record? /kostas ----- Original Message ----- From: "Andy Lacey" To: "Access Developers discussion and problem solving" Sent: Wednesday, October 25, 2006 12:29 PM Subject: Re: [AccessD] opening a specific file via double click... > Hi Kostas, this is what I use. > > Create a module and paste this in > ''''''''''''''' > Declare Function ShellExecute Lib "shell32" Alias "ShellExecuteA" (ByVal > hWnd As Long, _ > ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As > String, _ > ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long > > > Private Const InadequateMemory = 0 > Private Const FileNotFound = 2 > Private Const PathNotFound = 3 > Private Const BadFormat = 11 > Private Const NotRegistered = 31 > Private Const Success = 32 > Private Const BIF_RETURNONLYFSDIRS = &H1 > Public Const sizeNormal = 1 > Public Const sizeMinimize = 2 > Public Const sizeMaximize = 3 > > Function RunApp(strFile As String, bytSize) As Boolean > Dim lngRet As Long > Dim varTaskID As Variant > Dim strRet As String > > lngRet = ShellExecute(hWndAccessApp, vbNullString, strFile, vbNullString, > vbNullString, bytSize) > If lngRet > Success Then > strRet = vbNullString > lngRet = -1 > RunApp = True > Else > RunApp = False > Select Case lngRet > Case NotRegistered > varTaskID = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL " & strFile, > bytSize) > lngRet = (varTaskID <> 0) > Case InadequateMemory > MsgBox "Error: Out of Memory/Resources!" > Case FileNotFound > MsgBox "Error: File not found!" > Case PathNotFound > MsgBox "Error: Path not found!" > Case BadFormat > MsgBox "Error: Bad File Format!" > Case 5 > MsgBox "Error: Unauthorized due to Security restrictions!" > End Select > End If > End Function > > ''''''''''''''' > > You can then open any registered file type with the following: > > Call RunApp(stryourfilename,1) > > HTH > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > --------- Original Message -------- > From: "Access Developers discussion and problem solving" > > To: "Access Developers discussion and problem solving" > > Subject: [AccessD] opening a specific file via double click... > Date: 25/10/06 07:51 > > > dear group for one more time i need your help > I have a text field in which the stored data are just names of files > (e.g. aaa.pdf) > Is that possible by double click on the specific field to load the file > with the same name as well? > > thank's a lot > /kostas > > > ----- Original Message ----- > From: > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, October 24, 2006 5:06 PM > Subject: Re: [AccessD] A2003:Rename a file in a folder > > >> Darren, >> >> Off the tope of my head use the following: >> >> Dim strFile As String >> >> strFile = Dir(myCoolCSVfile.csv, vbHidden) ' Put the full path before the >> filename >> If (strFile<>"" ) then >> Name myCoolCSVfile.csv As YYMMDDHHMMSS.csv ' Put the full path >> before the filename and new file name >> Endif >> >> ' Your routine to put the new file into C:MyCoolFolder >> >> Paul Hartland >> >> >> >> Message Received: Oct 24 2006, 02:58 PM >> From: "Darren DICK" >> To: "'Access Developers discussion and problem solving'" >> Cc: >> Subject: [AccessD] A2003:Rename a file in a folder >> >> Hi all >> >> I have a file that will be always named the same - EG myCoolCSVfile.csv >> >> It will be dumped into a folder...say C:MyCoolFolder at random times >> >> I need some code to Check the C:myCoolFolder to see if the file >> myCoolCSVfile.csv file exists in the folder - and if it does to rename it >> to >> YYMMDDHHMMSS.csv >> >> Where YY = Year MM = Month DD = Day etc etc >> >> Does anyone have anything that might suit? >> >> Many thanks in advance >> >> Darren >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> >> Paul Hartland >> paul.hartland at fsmail.net >> 07730 523179 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From max at sherman.org.uk Thu Oct 26 01:50:24 2006 From: max at sherman.org.uk (Max Home) Date: Thu, 26 Oct 2006 07:50:24 +0100 Subject: [AccessD] Looks as if we are all out of a job now. In-Reply-To: Message-ID: <009501c6f8cb$049f8310$8119fea9@MaxLapTop> You actually read the EULA??? If I ever read one, it would remain in my memory for 1 nanosecond! How can you remember one out of the tons that are in every software package? Amazing! Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, October 25, 2006 8:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, October 25, 2006 2:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Thu Oct 26 01:54:02 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 26 Oct 2006 07:54:02 +0100 Subject: [AccessD] opening a specific file via double click... In-Reply-To: <000b01c6f8c4$829466c0$6601a8c0@kost36> Message-ID: <00f401c6f8cb$85acc620$2ab10c54@minster33c3r25> Well you can do what you originally suggested. I assume you have a form which is displaying the table data. On there put the field with your file name, create an event procedure for its Double-Click event and in there put: Call RunApp(Me.ActiveControl,1) But does the field on the table have the whole path as well as the filename? RunApp needs the whole lot so that it can find the file. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Kostas Konstantinidis > Sent: 26 October 2006 07:04 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] opening a specific file via double click... > > > Andy, thank's a lot > > but could you please tell me how to use the > Call RunApp(stryourfilename,1) > in order to open the specific file which the name is keeping > as data in > every record? > > /kostas > > ----- Original Message ----- > From: "Andy Lacey" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, October 25, 2006 12:29 PM > Subject: Re: [AccessD] opening a specific file via double click... > > > > Hi Kostas, this is what I use. > > > > Create a module and paste this in > > ''''''''''''''' > > Declare Function ShellExecute Lib "shell32" Alias "ShellExecuteA" > > (ByVal hWnd As Long, _ ByVal lpOperation As String, ByVal lpFile As > > String, ByVal lpParameters As String, _ > > ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long > > > > > > Private Const InadequateMemory = 0 > > Private Const FileNotFound = 2 > > Private Const PathNotFound = 3 > > Private Const BadFormat = 11 > > Private Const NotRegistered = 31 > > Private Const Success = 32 > > Private Const BIF_RETURNONLYFSDIRS = &H1 > > Public Const sizeNormal = 1 > > Public Const sizeMinimize = 2 > > Public Const sizeMaximize = 3 > > > > Function RunApp(strFile As String, bytSize) As Boolean > > Dim lngRet As Long > > Dim varTaskID As Variant > > Dim strRet As String > > > > lngRet = ShellExecute(hWndAccessApp, vbNullString, strFile, > > vbNullString, vbNullString, bytSize) If lngRet > Success Then > > strRet = vbNullString > > lngRet = -1 > > RunApp = True > > Else > > RunApp = False > > Select Case lngRet > > Case NotRegistered > > varTaskID = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL " > & strFile, > > bytSize) > > lngRet = (varTaskID <> 0) > > Case InadequateMemory > > MsgBox "Error: Out of Memory/Resources!" > > Case FileNotFound > > MsgBox "Error: File not found!" > > Case PathNotFound > > MsgBox "Error: Path not found!" > > Case BadFormat > > MsgBox "Error: Bad File Format!" > > Case 5 > > MsgBox "Error: Unauthorized due to Security restrictions!" > > End Select > > End If > > End Function > > > > ''''''''''''''' > > > > You can then open any registered file type with the following: > > > > Call RunApp(stryourfilename,1) > > > > HTH > > > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > > > > --------- Original Message -------- > > From: "Access Developers discussion and problem solving" > > > > To: "Access Developers discussion and problem solving" > > > > Subject: [AccessD] opening a specific file via double click... > > Date: 25/10/06 07:51 > > > > > > dear group for one more time i need your help > > I have a text field in which the stored data are just names > of files > > (e.g. aaa.pdf) Is that possible by double click on the > specific field > > to load the file with the same name as well? > > > > thank's a lot > > /kostas From kost36 at otenet.gr Thu Oct 26 03:02:01 2006 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Thu, 26 Oct 2006 11:02:01 +0300 Subject: [AccessD] opening a specific file via double click... References: <00f401c6f8cb$85acc620$2ab10c54@minster33c3r25> Message-ID: <004c01c6f8d5$04a93b80$6601a8c0@kost36> Andy It works, but is it posible for access to remember the specific folder in which the files are stored ? say that cause the folder is always the same (e.g \test) and may be its not necessary to keep that path in every record. Just only the file name thank's /kostas ----- Original Message ----- From: "Andy Lacey" To: "'Access Developers discussion and problem solving'" Sent: Thursday, October 26, 2006 9:54 AM Subject: Re: [AccessD] opening a specific file via double click... > Well you can do what you originally suggested. I assume you have a form > which is displaying the table data. On there put the field with your file > name, create an event procedure for its Double-Click event and in there > put: > > Call RunApp(Me.ActiveControl,1) > > But does the field on the table have the whole path as well as the > filename? > RunApp needs the whole lot so that it can find the file. > > -- Andy Lacey > http://www.minstersystems.co.uk > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Kostas Konstantinidis >> Sent: 26 October 2006 07:04 >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] opening a specific file via double click... >> >> >> Andy, thank's a lot >> >> but could you please tell me how to use the >> Call RunApp(stryourfilename,1) >> in order to open the specific file which the name is keeping >> as data in >> every record? >> >> /kostas >> >> ----- Original Message ----- >> From: "Andy Lacey" >> To: "Access Developers discussion and problem solving" >> >> Sent: Wednesday, October 25, 2006 12:29 PM >> Subject: Re: [AccessD] opening a specific file via double click... >> >> >> > Hi Kostas, this is what I use. >> > >> > Create a module and paste this in >> > ''''''''''''''' >> > Declare Function ShellExecute Lib "shell32" Alias "ShellExecuteA" >> > (ByVal hWnd As Long, _ ByVal lpOperation As String, ByVal lpFile As >> > String, ByVal lpParameters As String, _ >> > ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long >> > >> > >> > Private Const InadequateMemory = 0 >> > Private Const FileNotFound = 2 >> > Private Const PathNotFound = 3 >> > Private Const BadFormat = 11 >> > Private Const NotRegistered = 31 >> > Private Const Success = 32 >> > Private Const BIF_RETURNONLYFSDIRS = &H1 >> > Public Const sizeNormal = 1 >> > Public Const sizeMinimize = 2 >> > Public Const sizeMaximize = 3 >> > >> > Function RunApp(strFile As String, bytSize) As Boolean >> > Dim lngRet As Long >> > Dim varTaskID As Variant >> > Dim strRet As String >> > >> > lngRet = ShellExecute(hWndAccessApp, vbNullString, strFile, >> > vbNullString, vbNullString, bytSize) If lngRet > Success Then >> > strRet = vbNullString >> > lngRet = -1 >> > RunApp = True >> > Else >> > RunApp = False >> > Select Case lngRet >> > Case NotRegistered >> > varTaskID = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL " >> & strFile, >> > bytSize) >> > lngRet = (varTaskID <> 0) >> > Case InadequateMemory >> > MsgBox "Error: Out of Memory/Resources!" >> > Case FileNotFound >> > MsgBox "Error: File not found!" >> > Case PathNotFound >> > MsgBox "Error: Path not found!" >> > Case BadFormat >> > MsgBox "Error: Bad File Format!" >> > Case 5 >> > MsgBox "Error: Unauthorized due to Security restrictions!" >> > End Select >> > End If >> > End Function >> > >> > ''''''''''''''' >> > >> > You can then open any registered file type with the following: >> > >> > Call RunApp(stryourfilename,1) >> > >> > HTH >> > >> > -- >> > Andy Lacey >> > http://www.minstersystems.co.uk >> > >> > >> > >> > >> > --------- Original Message -------- >> > From: "Access Developers discussion and problem solving" >> > >> > To: "Access Developers discussion and problem solving" >> > >> > Subject: [AccessD] opening a specific file via double click... >> > Date: 25/10/06 07:51 >> > >> > >> > dear group for one more time i need your help >> > I have a text field in which the stored data are just names >> of files >> > (e.g. aaa.pdf) Is that possible by double click on the >> specific field >> > to load the file with the same name as well? >> > >> > thank's a lot >> > /kostas > > > -- > 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 Oct 26 04:20:10 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 26 Oct 2006 19:20:10 +1000 Subject: [AccessD] opening a specific file via double click... In-Reply-To: <004c01c6f8d5$04a93b80$6601a8c0@kost36> References: <00f401c6f8cb$85acc620$2ab10c54@minster33c3r25>, <004c01c6f8d5$04a93b80$6601a8c0@kost36> Message-ID: <45407DCA.25294.9836BB6@stuart.lexacorp.com.pg> On 26 Oct 2006 at 11:02, Kostas Konstantinidis wrote: > Andy It works, > but is it posible for access to remember the specific folder > in which the files are stored ? > say that cause the folder is always the same (e.g \test) and may be its not > necessary to keep that path in every record. Just only the file name thank's Call RunApp("C:\Test\" & Me.ActiveControl,1) or strPath = "C:\Test\" Call RunApp(strTest & Me.ActiveControl,1) or if the files are in the same directory as the Access application strPath = CurrentProject.Path & "\" Call RunApp(strTest & Me.ActiveControl,1) -- Stuart From andy at minstersystems.co.uk Thu Oct 26 07:34:45 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 26 Oct 2006 12:34:45 +0000 Subject: [AccessD] opening a specific file via double click... Message-ID: <20061026113448.E557D2BC0F7@smtp2.nildram.co.uk> Or you could store the path in a table. Suppose you have a table tblSystemInfo, with a field called Filepath. Stik the path (with trailing \ character) in there. Then Dim strPath as string strPath = Dlookup("FilePath","tblSystemInfo") Call RunApp(strPath & Me.ActiveControl,1) -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] opening a specific file via double click... Date: 26/10/06 09:22 On 26 Oct 2006 at 11:02, Kostas Konstantinidis wrote: > Andy It works, > but is it posible for access to remember the specific folder > in which the files are stored ? > say that cause the folder is always the same (e.g test) and may be its not > necessary to keep that path in every record. Just only the file name thank's Call RunApp("C:Test" & Me.ActiveControl,1) or strPath = "C:Test" Call RunApp(strTest & Me.ActiveControl,1) or if the files are in the same directory as the Access application strPath = CurrentProject.Path & "" Call RunApp(strTest & Me.ActiveControl,1) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From kost36 at otenet.gr Thu Oct 26 07:21:58 2006 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Thu, 26 Oct 2006 15:21:58 +0300 Subject: [AccessD] opening a specific file via double click... References: <20061026113448.E557D2BC0F7@smtp2.nildram.co.uk> Message-ID: <00ab01c6f8f9$5558b5a0$0501a8c0@studio2> Andy and Stuart, thank's very much it works fine /kostas ----- Original Message ----- From: "Andy Lacey" To: "Access Developers discussion and problem solving" Sent: Thursday, October 26, 2006 3:34 PM Subject: Re: [AccessD] opening a specific file via double click... > Or you could store the path in a table. Suppose you have a table > tblSystemInfo, with a field called Filepath. Stik the path (with trailing > \ > character) in there. Then > > Dim strPath as string > > strPath = Dlookup("FilePath","tblSystemInfo") > Call RunApp(strPath & Me.ActiveControl,1) > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > --------- Original Message -------- > From: "Access Developers discussion and problem solving" > > To: "Access Developers discussion and problem solving" > > Subject: Re: [AccessD] opening a specific file via double click... > Date: 26/10/06 09:22 > > > On 26 Oct 2006 at 11:02, Kostas Konstantinidis wrote: > >> Andy It works, >> but is it posible for access to remember the specific folder >> in which the files are stored ? >> say that cause the folder is always the same (e.g test) and may be its >> not >> necessary to keep that path in every record. Just only the file name > thank's > > > Call RunApp("C:Test" & Me.ActiveControl,1) > > or > > strPath = "C:Test" > Call RunApp(strTest & Me.ActiveControl,1) > > or if the files are in the same directory as the Access application > > strPath = CurrentProject.Path & "" > Call RunApp(strTest & Me.ActiveControl,1) > > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From bchacc at san.rr.com Thu Oct 26 08:32:23 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Thu, 26 Oct 2006 06:32:23 -0700 Subject: [AccessD] Re-Installing Access 2000 Message-ID: <000001c6f903$2be4f080$6401a8c0@HAL9005> Dear List: On my new box I have a complete O2K3 install. And I'm using Outlook. I'd like to install just A2K as well, but the last time I tried this, it hosed the O2K3 Outlook. Apparently you cannot install any component of A2K without also installing Outlook. So I'm looking for a way around this problem that doesn't require me to back up everything in Outlook, uninstall O2K3, install O2K, and then O2K3, and then reload all the Outlook stuff. Is this possible? MTIA, Rocky From askolits at ot.com Thu Oct 26 09:24:06 2006 From: askolits at ot.com (John Skolits) Date: Thu, 26 Oct 2006 10:24:06 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DE093@corp-es01.fleetpride.com> Message-ID: <002f01c6f90a$6882f580$6501a8c0@LaptopXP> Thanks Jim. That makes sense but it still essentially does a dsum in the embedded select statement. It then runs very slowly for large tables. Thanks -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Wednesday, October 25, 2006 5:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM Here is some a method from a query samples database I got from Lord knows where. HTH Jim Hale SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal FROM [Order Details] GROUP BY [Order Details].OrderID; -----Original Message----- From: John Skolits [mailto:askolits at ot.com] Sent: Wednesday, October 25, 2006 3:23 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Running sum in a query without DSUM Any way to do a running sum in a "query" without having to deal with the overhead of a domain function (Like DSUM)? *********************************************************************** 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 ssharkins at setel.com Thu Oct 26 10:09:18 2006 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 26 Oct 2006 11:09:18 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <002f01c6f90a$6882f580$6501a8c0@LaptopXP> Message-ID: <000601c6f910$b62886a0$b6b62ad1@SUSANONE> Try this one. Let me know if it's any faster, I haven't tried it myself and would like to know. select T1.datafield, (select sum(datafield) from yourtable as T2 where T2.datafield <= T1.datafield ) as cumsum from yourtable as T1 order by T1.datafield Susan H. Thanks Jim. That makes sense but it still essentially does a dsum in the embedded select statement. It then runs very slowly for large tables. Here is some a method from a query samples database I got from Lord knows where. HTH Jim Hale SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal FROM [Order Details] GROUP BY [Order Details].OrderID; From cfoust at infostatsystems.com Thu Oct 26 10:35:50 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 26 Oct 2006 08:35:50 -0700 Subject: [AccessD] Looks as if we are all out of a job now. In-Reply-To: <009501c6f8cb$049f8310$8119fea9@MaxLapTop> Message-ID: I remember Windows 95, which made it nearly impossible to work around the technical limitations anyhow! LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Home Sent: Wednesday, October 25, 2006 11:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Looks as if we are all out of a job now. You actually read the EULA??? If I ever read one, it would remain in my memory for 1 nanosecond! How can you remember one out of the tons that are in every software package? Amazing! Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, October 25, 2006 8:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, October 25, 2006 2:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Oct 26 10:48:06 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 26 Oct 2006 17:48:06 +0200 Subject: [AccessD] Running sum in a query without DSUM Message-ID: Hi John This method is not using DSum() but SUM of SQL which is much faster. However, at the subquery will run for each and every records there's no way you can retrieve a running sum "fast" for a large recordset. /gustav >>> ssharkins at setel.com 26-10-2006 17:09 >>> Try this one. Let me know if it's any faster, I haven't tried it myself and would like to know. select T1.datafield, (select sum(datafield) from yourtable as T2 where T2.datafield <= T1.datafield ) as cumsum from yourtable as T1 order by T1.datafield Susan H. Thanks Jim. That makes sense but it still essentially does a dsum in the embedded select statement. It then runs very slowly for large tables. Here is some a method from a query samples database I got from Lord knows where. HTH Jim Hale SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal FROM [Order Details] GROUP BY [Order Details].OrderID; From Gustav at cactus.dk Thu Oct 26 10:50:44 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 26 Oct 2006 17:50:44 +0200 Subject: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, proper Message-ID: Hi Shamil Great work, but those "embedded macros" - whatever that is - sure look ugly. /gustav >>> shamil at users.mns.ru 25-10-2006 23:21 >>> Hi All, As far as I see there are ~300+ new properties for MS Access 2007 objects. 153 of these properties are to set/get embedded macros' to process forms'/reports'/controls' events - like in this sample to set embedded macro for command button's Click event: Dim strMacro As String strMacro = _ "Version = 196611" & vbCrLf & _ "ColumnsShown = 8" & vbCrLf & _ "Begin" & vbCrLf & _ " Action = ""OpenForm""" & vbCrLf & _ " Argument = ""frmTest""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = ""-1""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ "End" Me.cmdTest.Properties("OnClickEmMacro").Value = strMacro These new [{EventName}EmMacro] properties seems to be available only via .Properties collection. Another interesting new feature is that Report object has now additionally all the events of the Form object and reports' controls have now all the events of the corresponding form controls... Here is the list of unique new properties' names ([{EventName}EmMacro] properties are not listed): AggregateType AllowLayoutView AllowReportView AllowValueListEdits AlternateBackColor AppendOnly AutoHeight BottomPadding CursorOnHover CustomRibbonID DatasheetAlternateBackColor DatasheetCaption DisplayAsHyperlink DisplayOnSharePointSite FilterOnEmptyMaster FilterOnLoad FitToPage GridlineColor GridlineStyleBottom GridlineStyleLeft GridlineStyleRight GridlineStyleTop GridlineWidthBottom GridlineWidthLeft GridlineWidthRight GridlineWidthTop HorizontalAnchor ImageData InheritValueList Layout LayoutID LeftPadding ListItemsEditForm NavigationCaption NavPane Category NavPane Closed NavPane Sort By NavPane View By NavPane Width OnPaint OrderByOnLoad RightPadding SaveSplitterBarPosition SeparatorCharacters ShowDatePicker ShowOnlyRowSourceValues ShowPageMargins SplitFormDatasheet SplitFormOrientation SplitFormPrinting SplitFormSize SplitFormSplitterBar TextFormat TopPadding UseDefaultPaperSize VerticalAnchor If that is interesting I can publish complete list of 300+ new properties somewhere on my site.... -- Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Tuesday, October 24, 2006 11:32 PM To: 'Access-D' Subject: MS Access 2007 - where may on have a look at the full list of the new objects, properties, methods,... Hi All, As far as I see there are useful new properties of MS Access 2007 controls, e.g. ComboBox has got 'List Items Edit Form' property. Is there anywhere a full list of new objects, properties, methods? (MS Access 2007 online help doesn't have it. Or I'm missing it?). Thank you. -- Shamil From john at winhaven.net Thu Oct 26 11:10:54 2006 From: john at winhaven.net (John Bartow) Date: Thu, 26 Oct 2006 11:10:54 -0500 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <002f01c6f90a$6882f580$6501a8c0@LaptopXP> Message-ID: <046201c6f919$5111af90$1402a8c0@ScuzzPaq> IIRC SQL will outperform Domain Functions. Also a saved query it will be optimized so this should run faster than DSUM. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Thanks Jim. That makes sense but it still essentially does a dsum in the embedded select statement. It then runs very slowly for large tables. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Here is some a method from a query samples database I got from Lord knows where. HTH Jim Hale SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal FROM [Order Details] GROUP BY [Order Details].OrderID; From askolits at ot.com Thu Oct 26 12:22:43 2006 From: askolits at ot.com (John Skolits) Date: Thu, 26 Oct 2006 13:22:43 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <046201c6f919$5111af90$1402a8c0@ScuzzPaq> Message-ID: <007601c6f923$5c1bdfa0$6501a8c0@LaptopXP> IIRC SQL? Is that what it's called when doing embedded Select Statements? I did try that method below and it was really slow. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, October 26, 2006 12:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM IIRC SQL will outperform Domain Functions. Also a saved query it will be optimized so this should run faster than DSUM. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Thanks Jim. That makes sense but it still essentially does a dsum in the embedded select statement. It then runs very slowly for large tables. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Here is some a method from a query samples database I got from Lord knows where. HTH Jim Hale SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal FROM [Order Details] GROUP BY [Order Details].OrderID; -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Thu Oct 26 12:23:43 2006 From: askolits at ot.com (John Skolits) Date: Thu, 26 Oct 2006 13:23:43 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <000601c6f910$b62886a0$b6b62ad1@SUSANONE> Message-ID: <007701c6f923$7fcdc080$6501a8c0@LaptopXP> I did try this, and it was very slow. The table is very large. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, October 26, 2006 11:09 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM Try this one. Let me know if it's any faster, I haven't tried it myself and would like to know. select T1.datafield, (select sum(datafield) from yourtable as T2 where T2.datafield <= T1.datafield ) as cumsum from yourtable as T1 order by T1.datafield Susan H. Thanks Jim. That makes sense but it still essentially does a dsum in the embedded select statement. It then runs very slowly for large tables. Here is some a method from a query samples database I got from Lord knows where. HTH Jim Hale SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal FROM [Order Details] GROUP BY [Order Details].OrderID; -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Thu Oct 26 12:43:33 2006 From: pharold at proftesting.com (Perry L Harold) Date: Thu, 26 Oct 2006 13:43:33 -0400 Subject: [AccessD] Looks as if we are all out of a job now. Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD335535@EXCHANGE.ptiorl.local> Supposedly PC Pitstop actually paid out cash to the first responder that read their EULA. http://yarbroughs.org/archives/2005/02/23/read-the-magic-eula-win-a-litt le-money/ Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Home Sent: Thursday, October 26, 2006 2:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Looks as if we are all out of a job now. You actually read the EULA??? If I ever read one, it would remain in my memory for 1 nanosecond! How can you remember one out of the tons that are in every software package? Amazing! Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, October 25, 2006 8:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, October 25, 2006 2:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Oct 26 14:18:31 2006 From: john at winhaven.net (John Bartow) Date: Thu, 26 Oct 2006 14:18:31 -0500 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <007601c6f923$5c1bdfa0$6501a8c0@LaptopXP> Message-ID: <056a01c6f933$86e01ac0$1402a8c0@ScuzzPaq> IIRC = If I Remember Correctly :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits IIRC SQL? From askolits at ot.com Thu Oct 26 15:01:21 2006 From: askolits at ot.com (John Skolits) Date: Thu, 26 Oct 2006 16:01:21 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <056a01c6f933$86e01ac0$1402a8c0@ScuzzPaq> Message-ID: <00bd01c6f939$8523b600$6501a8c0@LaptopXP> Allrighty then.. Do I look like a goof or what? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, October 26, 2006 3:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM IIRC = If I Remember Correctly :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits IIRC SQL? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Thu Oct 26 15:07:11 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 27 Oct 2006 00:07:11 +0400 Subject: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, properties, methods, ... In-Reply-To: <0J7P00IBYO9N1RM1@l-daemon> Message-ID: <00fa01c6f93a$5341abf0$6401a8c0@nant> Jim, Here is the reference on the HTML page with the list of 307 properties I have dug out so far: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.htm This is XML source of this list: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.xml -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, October 26, 2006 1:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, properties, methods, ... Please do, Shamil Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, October 25, 2006 2:21 PM To: 'Access-D' Subject: Re: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, properties, methods, ... Hi All, As far as I see there are ~300+ new properties for MS Access 2007 objects. 153 of these properties are to set/get embedded macros' to process forms'/reports'/controls' events - like in this sample to set embedded macro for command button's Click event: Dim strMacro As String strMacro = _ "Version = 196611" & vbCrLf & _ "ColumnsShown = 8" & vbCrLf & _ "Begin" & vbCrLf & _ " Action = ""OpenForm""" & vbCrLf & _ " Argument = ""frmTest""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = ""-1""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ "End" Me.cmdTest.Properties("OnClickEmMacro").Value = strMacro These new [{EventName}EmMacro] properties seems to be available only via .Properties collection. Another interesting new feature is that Report object has now additionally all the events of the Form object and reports' controls have now all the events of the corresponding form controls... Here is the list of unique new properties' names ([{EventName}EmMacro] properties are not listed): AggregateType AllowLayoutView AllowReportView AllowValueListEdits AlternateBackColor AppendOnly AutoHeight BottomPadding CursorOnHover CustomRibbonID DatasheetAlternateBackColor DatasheetCaption DisplayAsHyperlink DisplayOnSharePointSite FilterOnEmptyMaster FilterOnLoad FitToPage GridlineColor GridlineStyleBottom GridlineStyleLeft GridlineStyleRight GridlineStyleTop GridlineWidthBottom GridlineWidthLeft GridlineWidthRight GridlineWidthTop HorizontalAnchor ImageData InheritValueList Layout LayoutID LeftPadding ListItemsEditForm NavigationCaption NavPane Category NavPane Closed NavPane Sort By NavPane View By NavPane Width OnPaint OrderByOnLoad RightPadding SaveSplitterBarPosition SeparatorCharacters ShowDatePicker ShowOnlyRowSourceValues ShowPageMargins SplitFormDatasheet SplitFormOrientation SplitFormPrinting SplitFormSize SplitFormSplitterBar TextFormat TopPadding UseDefaultPaperSize VerticalAnchor If that is interesting I can publish complete list of 300+ new properties somewhere on my site.... -- Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Tuesday, October 24, 2006 11:32 PM To: 'Access-D' Subject: MS Access 2007 - where may on have a look at the full list of the new objects, properties, methods,... Hi All, As far as I see there are useful new properties of MS Access 2007 controls, e.g. ComboBox has got 'List Items Edit Form' property. Is there anywhere a full list of new objects, properties, methods? (MS Access 2007 online help doesn't have it. Or I'm missing it?). Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Thu Oct 26 15:07:11 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 27 Oct 2006 00:07:11 +0400 Subject: [AccessD] MS Access 2007 - where may one have a look at thefull list of the new objects, proper In-Reply-To: Message-ID: <00f901c6f93a$530d2e70$6401a8c0@nant> Hi Gustav, These embedded macros seems to be .SaveAsText representations of macros, which Martin mentioned here recently... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, October 26, 2006 7:51 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] MS Access 2007 - where may one have a look at thefull list of the new objects, proper Hi Shamil Great work, but those "embedded macros" - whatever that is - sure look ugly. /gustav >>> shamil at users.mns.ru 25-10-2006 23:21 >>> Hi All, As far as I see there are ~300+ new properties for MS Access 2007 objects. 153 of these properties are to set/get embedded macros' to process forms'/reports'/controls' events - like in this sample to set embedded macro for command button's Click event: Dim strMacro As String strMacro = _ "Version = 196611" & vbCrLf & _ "ColumnsShown = 8" & vbCrLf & _ "Begin" & vbCrLf & _ " Action = ""OpenForm""" & vbCrLf & _ " Argument = ""frmTest""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = ""-1""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ "End" Me.cmdTest.Properties("OnClickEmMacro").Value = strMacro These new [{EventName}EmMacro] properties seems to be available only via .Properties collection. Another interesting new feature is that Report object has now additionally all the events of the Form object and reports' controls have now all the events of the corresponding form controls... Here is the list of unique new properties' names ([{EventName}EmMacro] properties are not listed): AggregateType AllowLayoutView AllowReportView AllowValueListEdits AlternateBackColor AppendOnly AutoHeight BottomPadding CursorOnHover CustomRibbonID DatasheetAlternateBackColor DatasheetCaption DisplayAsHyperlink DisplayOnSharePointSite FilterOnEmptyMaster FilterOnLoad FitToPage GridlineColor GridlineStyleBottom GridlineStyleLeft GridlineStyleRight GridlineStyleTop GridlineWidthBottom GridlineWidthLeft GridlineWidthRight GridlineWidthTop HorizontalAnchor ImageData InheritValueList Layout LayoutID LeftPadding ListItemsEditForm NavigationCaption NavPane Category NavPane Closed NavPane Sort By NavPane View By NavPane Width OnPaint OrderByOnLoad RightPadding SaveSplitterBarPosition SeparatorCharacters ShowDatePicker ShowOnlyRowSourceValues ShowPageMargins SplitFormDatasheet SplitFormOrientation SplitFormPrinting SplitFormSize SplitFormSplitterBar TextFormat TopPadding UseDefaultPaperSize VerticalAnchor If that is interesting I can publish complete list of 300+ new properties somewhere on my site.... -- Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Tuesday, October 24, 2006 11:32 PM To: 'Access-D' Subject: MS Access 2007 - where may on have a look at the full list of the new objects, properties, methods,... Hi All, As far as I see there are useful new properties of MS Access 2007 controls, e.g. ComboBox has got 'List Items Edit Form' property. Is there anywhere a full list of new objects, properties, methods? (MS Access 2007 online help doesn't have it. Or I'm missing it?). Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Oct 26 15:20:41 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 26 Oct 2006 16:20:41 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <00bd01c6f939$8523b600$6501a8c0@LaptopXP> Message-ID: <001801c6f93c$365ff490$657aa8c0@m6805> LOL. That would be, Allrighty then. DILLAGOW? ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Thursday, October 26, 2006 4:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM Allrighty then.. Do I look like a goof or what? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, October 26, 2006 3:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM IIRC = If I Remember Correctly :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits IIRC SQL? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Oct 26 15:21:14 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 26 Oct 2006 15:21:14 -0500 Subject: [AccessD] Running sum in a query without DSUM Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE09A@corp-es01.fleetpride.com> http://www.acronymfinder.com/ HTH :-} -----Original Message----- From: John Skolits [mailto:askolits at ot.com] Sent: Thursday, October 26, 2006 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM Allrighty then.. Do I look like a goof or what? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, October 26, 2006 3:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM IIRC = If I Remember Correctly :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits IIRC SQL? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 mwp.reid at qub.ac.uk Thu Oct 26 15:27:45 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 26 Oct 2006 21:27:45 +0100 Subject: [AccessD] MS Access 2007 - where may one have a look at thefulllist of the new objects, proper References: <00f901c6f93a$530d2e70$6401a8c0@nant> Message-ID: Was interesting during the beta as they broke if you saved the A 2007 DB as 2003 version. Heres how they fixed it for release And I quote Quote We have changed the wizards in post beta 2 TR builds to spit out VBA if you are in an MDB. We also made a change to allow you to convert embedded macros to VBA. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Thu Oct 26 15:30:08 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 26 Oct 2006 21:30:08 +0100 Subject: [AccessD] MS Access 2007 - where may one have a look atthe full list of the new objects, properties, methods, ... References: <00fa01c6f93a$5341abf0$6401a8c0@nant> Message-ID: Shamil Out of interest how did you dig them out? 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: Thu 26/10/2006 21:07 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe full list of the new objects, properties, methods, ... Jim, Here is the reference on the HTML page with the list of 307 properties I have dug out so far: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.htm This is XML source of this list: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.xml From john at winhaven.net Thu Oct 26 15:45:58 2006 From: john at winhaven.net (John Bartow) Date: Thu, 26 Oct 2006 15:45:58 -0500 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <001801c6f93c$365ff490$657aa8c0@m6805> Message-ID: <05b801c6f93f$be145fe0$1402a8c0@ScuzzPaq> LOL! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby LOL. That would be, Allrighty then. DILLAGOW? ;-) From john at winhaven.net Thu Oct 26 15:45:58 2006 From: john at winhaven.net (John Bartow) Date: Thu, 26 Oct 2006 15:45:58 -0500 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <00bd01c6f939$8523b600$6501a8c0@LaptopXP> Message-ID: <05c101c6f93f$c0eb9bc0$1402a8c0@ScuzzPaq> No, got a laugh out of me though! :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Allrighty then.. Do I look like a goof or what? From martyconnelly at shaw.ca Thu Oct 26 15:46:38 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 26 Oct 2006 13:46:38 -0700 Subject: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, proper In-Reply-To: References: Message-ID: <45411EAE.1090208@shaw.ca> Actually they look like a VB6 .frm file, if you open it in notepad VERSION 5.00 Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX" Begin VB.Form frmMain AutoRedraw = -1 'True Caption = "AsyncDownload Test" ClientHeight = 7116 ClientLeft = 2568 ClientTop = 2232 ClientWidth = 8664 LinkTopic = "Form1" Gustav Brock wrote: >Hi Shamil > >Great work, but those "embedded macros" - whatever that is - sure look ugly. > >/gustav > > > >>>>shamil at users.mns.ru 25-10-2006 23:21 >>> >>>> >>>> > >Hi All, > >As far as I see there are ~300+ new properties for MS Access 2007 objects. >153 of these properties are to set/get embedded macros' to process >forms'/reports'/controls' events - like in this sample to set embedded macro >for command button's Click event: > >Dim strMacro As String >strMacro = _ >"Version = 196611" & vbCrLf & _ >"ColumnsShown = 8" & vbCrLf & _ >"Begin" & vbCrLf & _ >" Action = ""OpenForm""" & vbCrLf & _ >" Argument = ""frmTest""" & vbCrLf & _ >" Argument = ""0""" & vbCrLf & _ >" Argument = """"" & vbCrLf & _ >" Argument = """"" & vbCrLf & _ >" Argument = ""-1""" & vbCrLf & _ >" Argument = ""0""" & vbCrLf & _ >"End" >Me.cmdTest.Properties("OnClickEmMacro").Value = strMacro > >These new [{EventName}EmMacro] properties seems to be available only via >.Properties collection. > >Another interesting new feature is that Report object has now additionally >all the events of the Form object and reports' controls have now all the >events of the corresponding form controls... > >Here is the list of unique new properties' names ([{EventName}EmMacro] >properties are not listed): > >AggregateType >AllowLayoutView >AllowReportView >AllowValueListEdits >AlternateBackColor >AppendOnly >AutoHeight >BottomPadding >CursorOnHover >CustomRibbonID >DatasheetAlternateBackColor >DatasheetCaption >DisplayAsHyperlink >DisplayOnSharePointSite >FilterOnEmptyMaster >FilterOnLoad >FitToPage >GridlineColor >GridlineStyleBottom >GridlineStyleLeft >GridlineStyleRight >GridlineStyleTop >GridlineWidthBottom >GridlineWidthLeft >GridlineWidthRight >GridlineWidthTop >HorizontalAnchor >ImageData >InheritValueList >Layout >LayoutID >LeftPadding >ListItemsEditForm >NavigationCaption >NavPane Category >NavPane Closed >NavPane Sort By >NavPane View By >NavPane Width >OnPaint >OrderByOnLoad >RightPadding >SaveSplitterBarPosition >SeparatorCharacters >ShowDatePicker >ShowOnlyRowSourceValues >ShowPageMargins >SplitFormDatasheet >SplitFormOrientation >SplitFormPrinting >SplitFormSize >SplitFormSplitterBar >TextFormat >TopPadding >UseDefaultPaperSize >VerticalAnchor > >If that is interesting I can publish complete list of 300+ new properties >somewhere on my site.... > >-- >Shamil > >-----Original Message----- >From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] >Sent: Tuesday, October 24, 2006 11:32 PM >To: 'Access-D' >Subject: MS Access 2007 - where may on have a look at the full list of the >new objects, properties, methods,... > >Hi All, > >As far as I see there are useful new properties of MS Access 2007 controls, >e.g. ComboBox has got 'List Items Edit Form' property. > >Is there anywhere a full list of new objects, properties, methods? (MS >Access 2007 online help doesn't have it. Or I'm missing it?). > >Thank you. > >-- >Shamil > > > > -- Marty Connelly Victoria, B.C. Canada From shamil at users.mns.ru Thu Oct 26 16:01:38 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 27 Oct 2006 01:01:38 +0400 Subject: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... In-Reply-To: Message-ID: <001d01c6f941$edea8d00$6401a8c0@nant> Martin, I have here commercial software, which I did program in the past for one customer. Unfortunately this software wasn't finished / published - I did use it to dig out information about new properties... In principle there is nothing complicated here but it needs quite some coding to do that from scratch - just make a sample database with different objects and iterate all .Properties collections of every sample object and its children objects... BTW, this software was originally programmed for MS Access 97 and yesterday I had to convert it to MS Access 2003 and then to MS Access 2007. The VBA code is rather advanced and it does do a lot of "massaging" of MS Access objects and it does use several backend databases and its does put quite some data into tables etc. - all worked rather well, with one exception that using Autonumber GUIDs in some places was resulting in MS Access 2003 to GPF. This was when GUID was obtained as value of a listbox and then passed as variant to a function, which passed it as variant to another function. When I did add converting GUID to string in between all started to work OK. Just wanted to note that an advanced VBA coding originally developed for MS Access 97 works without almost any issues in MS Access 2003 and MS Access 2007... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, October 27, 2006 12:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... Shamil Out of interest how did you dig them out? 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: Thu 26/10/2006 21:07 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe full list of the new objects, properties, methods, ... Jim, Here is the reference on the HTML page with the list of 307 properties I have dug out so far: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.htm This is XML source of this list: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.xml From artful at rogers.com Thu Oct 26 19:16:19 2006 From: artful at rogers.com (artful at rogers.com) Date: Thu, 26 Oct 2006 17:16:19 -0700 (PDT) Subject: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... Message-ID: <20061027001619.76220.qmail@web88211.mail.re2.yahoo.com> Something seems suspicious here, with all respect, Shamil. GUIDs are not autonumber, they are created by invoking the function NewID(). Perhaps that is what you meant, but they are NOT autonumber, in the sense of sequential IDs. To create a default GUID you should create a default equivalent to NewID(), but this is much different than a traditional Access autonumber. Arthur ----- Original Message ---- From: Shamil Salakhetdinov To: Access Developers discussion and problem solving Sent: Thursday, October 26, 2006 5:01:38 PM Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... Martin, I have here commercial software, which I did program in the past for one customer. Unfortunately this software wasn't finished / published - I did use it to dig out information about new properties... In principle there is nothing complicated here but it needs quite some coding to do that from scratch - just make a sample database with different objects and iterate all .Properties collections of every sample object and its children objects... BTW, this software was originally programmed for MS Access 97 and yesterday I had to convert it to MS Access 2003 and then to MS Access 2007. The VBA code is rather advanced and it does do a lot of "massaging" of MS Access objects and it does use several backend databases and its does put quite some data into tables etc. - all worked rather well, with one exception that using Autonumber GUIDs in some places was resulting in MS Access 2003 to GPF. This was when GUID was obtained as value of a listbox and then passed as variant to a function, which passed it as variant to another function. When I did add converting GUID to string in between all started to work OK. Just wanted to note that an advanced VBA coding originally developed for MS Access 97 works without almost any issues in MS Access 2003 and MS Access 2007... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, October 27, 2006 12:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... Shamil Out of interest how did you dig them out? 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: Thu 26/10/2006 21:07 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe full list of the new objects, properties, methods, ... Jim, Here is the reference on the HTML page with the list of 307 properties I have dug out so far: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.htm This is XML source of this list: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.xml -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Oct 26 20:35:31 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 26 Oct 2006 18:35:31 -0700 Subject: [AccessD] China has worse pension plan troubles than US In-Reply-To: <20061027001619.76220.qmail@web88211.mail.re2.yahoo.com> References: <20061027001619.76220.qmail@web88211.mail.re2.yahoo.com> Message-ID: <45416263.9050408@shaw.ca> a legacy of the one-child one family policy introduced during the 1970s. Demographically, they will run into a worker shortage in less than 20 years. http://www.telegraph.co.uk/money/main.jhtml?xml=/money/2006/10/27/cnchinapens2.xml&DCMP=EMC-mcn_27102006 -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Thu Oct 26 22:10:37 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 27 Oct 2006 13:10:37 +1000 Subject: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... In-Reply-To: <20061027001619.76220.qmail@web88211.mail.re2.yahoo.com> References: <20061027001619.76220.qmail@web88211.mail.re2.yahoo.com> Message-ID: <454178AD.9491.D57701C@stuart.lexacorp.com.pg> On 26 Oct 2006 at 17:16, artful at rogers.com wrote: > Something seems suspicious here, with all respect, Shamil. GUIDs are not > autonumber, they are created by invoking the function NewID(). Perhaps that In the Table designer, an Autonumber field has a field size property which can be either Long Integer or Replication ID ( another MS word for GUID). > is what you meant, but they are NOT autonumber, in the sense of sequential > IDs. An autonumber doesn't have to be a *sequential* ID. Long Integer Autonumbers have a New Value property which can be set either to Increment or Random . If they are Replication IDs (GUIDs) they are automatically random. > To create a default GUID you should create a default equivalent to > NewID(), but this is much different than a traditional Access autonumber. I just select Autonumber as the Type and Replication ID as the field size in the Table design window. -- Stuart From shamil at users.mns.ru Fri Oct 27 05:53:27 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 27 Oct 2006 14:53:27 +0400 Subject: [AccessD] MS Access 2007 - where may one have a look atthefulllist of the new objects, properties, methods, ... In-Reply-To: <20061027001619.76220.qmail@web88211.mail.re2.yahoo.com> Message-ID: <000e01c6f9b6$22689080$6401a8c0@nant> Hi Arthur, Nothing suspicious here :) I cannot show this mentioned software in action because it is commercial with my signing NDA and this project is "dead" now and very probably forever. But nothing suspicious is used in it. In MS Access there is Replication ID type for Numbers and AutoNumbers - I do use them in this software database and VBA code: Replication ID - Globally unique identifier (GUID (GUID: A 16-byte field used in an Access database to establish a unique identifier for replication. GUIDs are used to identify replicas, replica sets, tables, records, and other objects. In an Access database, GUIDs are referred to as Replication IDs.)) <<< they are NOT autonumber, in the sense of sequential IDs. >>> Arthur, I didn't say that an Autonumber means here a sequential automatically generated ID. Autonumbers can be random of course. <<< To create a default GUID you should create a default equivalent to NewID(), but this is much different than a traditional Access autonumber. >>> MS Access Replication ID Autonumbers are MS Access feature since MS Access 97 (?) AFAIKR. There is no need to create an equivalent of NewID() MS SQL function. The similar to NewID() "magic" is built-in in MS Access Replication ID non-sequential Autonumbers. -- Shamil P.S. It's possible to generate sequentila GUIDs/Replication IDs - here is one example - http://www.sqldev.net/xp/xpguid.htm . There are others - I have seen good online article on that subject several years ago but I lost its URL... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, October 27, 2006 4:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthefulllist of the new objects, properties, methods, ... Something seems suspicious here, with all respect, Shamil. GUIDs are not autonumber, they are created by invoking the function NewID(). Perhaps that is what you meant, but they are NOT autonumber, in the sense of sequential IDs. To create a default GUID you should create a default equivalent to NewID(), but this is much different than a traditional Access autonumber. Arthur ----- Original Message ---- From: Shamil Salakhetdinov To: Access Developers discussion and problem solving Sent: Thursday, October 26, 2006 5:01:38 PM Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... Martin, I have here commercial software, which I did program in the past for one customer. Unfortunately this software wasn't finished / published - I did use it to dig out information about new properties... In principle there is nothing complicated here but it needs quite some coding to do that from scratch - just make a sample database with different objects and iterate all .Properties collections of every sample object and its children objects... BTW, this software was originally programmed for MS Access 97 and yesterday I had to convert it to MS Access 2003 and then to MS Access 2007. The VBA code is rather advanced and it does do a lot of "massaging" of MS Access objects and it does use several backend databases and its does put quite some data into tables etc. - all worked rather well, with one exception that using Autonumber GUIDs in some places was resulting in MS Access 2003 to GPF. This was when GUID was obtained as value of a listbox and then passed as variant to a function, which passed it as variant to another function. When I did add converting GUID to string in between all started to work OK. Just wanted to note that an advanced VBA coding originally developed for MS Access 97 works without almost any issues in MS Access 2003 and MS Access 2007... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, October 27, 2006 12:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... Shamil Out of interest how did you dig them out? 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: Thu 26/10/2006 21:07 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe full list of the new objects, properties, methods, ... Jim, Here is the reference on the HTML page with the list of 307 properties I have dug out so far: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.htm This is XML source of this list: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.xml -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Fri Oct 27 13:47:20 2006 From: askolits at ot.com (John Skolits) Date: Fri, 27 Oct 2006 14:47:20 -0400 Subject: [AccessD] Access documentor In-Reply-To: <056a01c6f933$86e01ac0$1402a8c0@ScuzzPaq> Message-ID: <008c01c6f9f8$583f58f0$6501a8c0@LaptopXP> Many years ago I bought an Access documentation program. May have been from FMS. I'm looking for one that will tell me if there are unused tables and functions in the database. What's the latest recommendation? Thanks, John From dwaters at usinternet.com Fri Oct 27 13:58:24 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 27 Oct 2006 13:58:24 -0500 Subject: [AccessD] Access documentor In-Reply-To: <7099273.1161975125870.JavaMail.root@sniper77> Message-ID: <002a01c6f9f9$e2057820$0200a8c0@danwaters> I believe FMS Access Analyzer will do that. About $300. Dan Waters -----Original Message----- Subject: [AccessD] Access documentor Many years ago I bought an Access documentation program. May have been from FMS. I'm looking for one that will tell me if there are unused tables and functions in the database. What's the latest recommendation? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Oct 27 14:01:28 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 27 Oct 2006 15:01:28 -0400 Subject: [AccessD] Access documentor In-Reply-To: <008c01c6f9f8$583f58f0$6501a8c0@LaptopXP> Message-ID: <004a01c6f9fa$4fc9e710$657aa8c0@m6805> I use Find and replace and have for years. It has a cross reference feature which tells what is used where, and can show things that are not used anywhere. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, October 27, 2006 2:47 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access documentor Many years ago I bought an Access documentation program. May have been from FMS. I'm looking for one that will tell me if there are unused tables and functions in the database. What's the latest recommendation? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Fri Oct 27 14:17:10 2006 From: askolits at ot.com (John Skolits) Date: Fri, 27 Oct 2006 15:17:10 -0400 Subject: [AccessD] Access documentor In-Reply-To: <004a01c6f9fa$4fc9e710$657aa8c0@m6805> Message-ID: <009c01c6f9fc$83b12fa0$6501a8c0@LaptopXP> Good idea, I never used that part of it before. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, October 27, 2006 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access documentor I use Find and replace and have for years. It has a cross reference feature which tells what is used where, and can show things that are not used anywhere. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, October 27, 2006 2:47 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access documentor Many years ago I bought an Access documentation program. May have been from FMS. I'm looking for one that will tell me if there are unused tables and functions in the database. What's the latest recommendation? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Fri Oct 27 14:19:50 2006 From: askolits at ot.com (John Skolits) Date: Fri, 27 Oct 2006 15:19:50 -0400 Subject: [AccessD] Access documentor In-Reply-To: <004a01c6f9fa$4fc9e710$657aa8c0@m6805> Message-ID: <00a301c6f9fc$e2c601a0$6501a8c0@LaptopXP> Wait, the databases I'm checking have a couple hundred tables. Many are ODBC links. I don't want to have to go in and search for each one individually. Although, I have written code to automate the find and replace application. I guess I'll go that route. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, October 27, 2006 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access documentor I use Find and replace and have for years. It has a cross reference feature which tells what is used where, and can show things that are not used anywhere. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, October 27, 2006 2:47 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access documentor Many years ago I bought an Access documentation program. May have been from FMS. I'm looking for one that will tell me if there are unused tables and functions in the database. What's the latest recommendation? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Oct 27 14:56:53 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 27 Oct 2006 15:56:53 -0400 Subject: [AccessD] Access documentor In-Reply-To: <00a301c6f9fc$e2c601a0$6501a8c0@LaptopXP> Message-ID: <005401c6fa02$0d5f5d30$657aa8c0@m6805> Actually I am talking about Rick Fisher's "Find and replace" utility for Access. About $40. Good product. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, October 27, 2006 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access documentor Wait, the databases I'm checking have a couple hundred tables. Many are ODBC links. I don't want to have to go in and search for each one individually. Although, I have written code to automate the find and replace application. I guess I'll go that route. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, October 27, 2006 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access documentor I use Find and replace and have for years. It has a cross reference feature which tells what is used where, and can show things that are not used anywhere. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, October 27, 2006 2:47 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access documentor Many years ago I bought an Access documentation program. May have been from FMS. I'm looking for one that will tell me if there are unused tables and functions in the database. What's the latest recommendation? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Fri Oct 27 15:05:40 2006 From: askolits at ot.com (John Skolits) Date: Fri, 27 Oct 2006 16:05:40 -0400 Subject: [AccessD] Access documentor In-Reply-To: <005401c6fa02$0d5f5d30$657aa8c0@m6805> Message-ID: <00bd01c6fa03$49bb10c0$6501a8c0@LaptopXP> That's the one I use. For my current customer, I have used it about 60% of the time. I had to rename all their objects, field names etc. It was a mess. Couldn't do it without that program. I just finished updating my code to just go through all my tables and do a search while logging. That should do what I need. Thanks. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, October 27, 2006 3:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access documentor Actually I am talking about Rick Fisher's "Find and replace" utility for Access. About $40. Good product. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, October 27, 2006 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access documentor Wait, the databases I'm checking have a couple hundred tables. Many are ODBC links. I don't want to have to go in and search for each one individually. Although, I have written code to automate the find and replace application. I guess I'll go that route. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, October 27, 2006 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access documentor I use Find and replace and have for years. It has a cross reference feature which tells what is used where, and can show things that are not used anywhere. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, October 27, 2006 2:47 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access documentor Many years ago I bought an Access documentation program. May have been from FMS. I'm looking for one that will tell me if there are unused tables and functions in the database. What's the latest recommendation? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Oct 27 15:37:59 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 27 Oct 2006 13:37:59 -0700 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <007701c6f923$7fcdc080$6501a8c0@LaptopXP> References: <007701c6f923$7fcdc080$6501a8c0@LaptopXP> Message-ID: <45426E27.2030702@shaw.ca> Slow is a relative term. Once upon a time, I used to get a 3 hour turnaround on 500 line compiles. How many records and how long? You might get some more speed by doing the calculations on an array after using GetRows but that might be limited by table size and RAM You might get more speed if you specify a linked table or query, with OpenRecordset creates a dynaset-type Recordset Try selecting a nonupdateable cursor using dbOpenForwardOnly instead of default dbOpenDynaset SQL Server: Calculating Running Totals, Subtotals and Grand Total Without a Cursor http://www.databasejournal.com/features/mssql/article.php/3112381 John Skolits wrote: >I did try this, and it was very slow. The table is very large. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >Sent: Thursday, October 26, 2006 11:09 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Running sum in a query without DSUM > >Try this one. Let me know if it's any faster, I haven't tried it myself and >would like to know. > > >select T1.datafield, (select sum(datafield) from yourtable as T2 where >T2.datafield <= T1.datafield ) as cumsum >from yourtable as T1 >order by T1.datafield > > >Susan H. > > >Thanks Jim. >That makes sense but it still essentially does a dsum in the embedded select >statement. It then runs very slowly for large tables. > > >Here is some a method from a query samples database I got from Lord knows >where. HTH Jim Hale > > >SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) >AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order >Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal >FROM [Order Details] GROUP BY [Order Details].OrderID; > > > -- Marty Connelly Victoria, B.C. Canada From askolits at ot.com Fri Oct 27 16:06:58 2006 From: askolits at ot.com (John Skolits) Date: Fri, 27 Oct 2006 17:06:58 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <45426E27.2030702@shaw.ca> Message-ID: <00dc01c6fa0b$da310df0$6501a8c0@LaptopXP> The fastest way so far was just to do a make table from the query and then write code to do the math and place the results in another field. It's not pretty, but real fast. The table size is about 100,000 records, If it was millions, I'd go another route. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, October 27, 2006 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Running sum in a query without DSUM Slow is a relative term. Once upon a time, I used to get a 3 hour turnaround on 500 line compiles. How many records and how long? You might get some more speed by doing the calculations on an array after using GetRows but that might be limited by table size and RAM You might get more speed if you specify a linked table or query, with OpenRecordset creates a dynaset-type Recordset Try selecting a nonupdateable cursor using dbOpenForwardOnly instead of default dbOpenDynaset SQL Server: Calculating Running Totals, Subtotals and Grand Total Without a Cursor http://www.databasejournal.com/features/mssql/article.php/3112381 John Skolits wrote: >I did try this, and it was very slow. The table is very large. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >Sent: Thursday, October 26, 2006 11:09 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Running sum in a query without DSUM > >Try this one. Let me know if it's any faster, I haven't tried it myself and >would like to know. > > >select T1.datafield, (select sum(datafield) from yourtable as T2 where >T2.datafield <= T1.datafield ) as cumsum >from yourtable as T1 >order by T1.datafield > > >Susan H. > > >Thanks Jim. >That makes sense but it still essentially does a dsum in the embedded select >statement. It then runs very slowly for large tables. > > >Here is some a method from a query samples database I got from Lord knows >where. HTH Jim Hale > > >SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) >AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order >Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal >FROM [Order Details] GROUP BY [Order Details].OrderID; > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Oct 27 20:45:05 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 27 Oct 2006 18:45:05 -0700 Subject: [AccessD] IE 7 changes Wininet.dll may affect FTP code In-Reply-To: <00dc01c6fa0b$da310df0$6501a8c0@LaptopXP> References: <00dc01c6fa0b$da310df0$6501a8c0@LaptopXP> Message-ID: <4542B621.2010002@shaw.ca> Microsoft is going to start force downloading IE 7.0 through Windows update. This may affect FTP code or Internet TransferLib.I know people are using here. MS may come out with a shim to use old version of WinInet.dll or at least it's behaviour. Yup wininet.dll has changed their error handling in IE7. It only checks for null pointers now. This has been a long ongoing argument at MS. If you are an application developer using WinInet and you start getting crashes in these functions, take a look at the pointer values getting passed to these functions. You are going to have to check the parameters being passed in the mda from Dev's code See Changes in WinInet API validation code could lead to Unexpected Behavior http://blogs.msdn.com/wndp/archive/2005/08/18/453124.aspx On Tue, 24 Oct 2006 12:18:06 -0400, David Plaut wrote: >This is a heads up that IE7 changed something in wininet.dll. I use >Dev Ashish's very fine ftp code from http://www.mvps.org/access/ and >IE7 breaks it. > >My short term solution has been to change the code to point to a >version of wininet.dll prior to IE7. -- Marty Connelly Victoria, B.C. Canada From dw-murphy at cox.net Sat Oct 28 12:14:03 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Sat, 28 Oct 2006 10:14:03 -0700 Subject: [AccessD] IE 7 changes Wininet.dll may affect FTP code In-Reply-To: <4542B621.2010002@shaw.ca> Message-ID: <001901c6fab4$77f610f0$0200a8c0@murphy3234aaf1> Marty, Thank you for the heads up. We have an application with several hundred copies out that uses wininet.dll to pull data off a web site into the app. I am not looking forward to sending out that many updates if the change impacts our app. The "thinking about creating an application compatibility shim to help legacy applications by mimicking the old behavior" comment does not bring great comfort. One more configuration to set up in my predeployment test system. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, October 27, 2006 6:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] IE 7 changes Wininet.dll may affect FTP code Microsoft is going to start force downloading IE 7.0 through Windows update. This may affect FTP code or Internet TransferLib.I know people are using here. MS may come out with a shim to use old version of WinInet.dll or at least it's behaviour. Yup wininet.dll has changed their error handling in IE7. It only checks for null pointers now. This has been a long ongoing argument at MS. If you are an application developer using WinInet and you start getting crashes in these functions, take a look at the pointer values getting passed to these functions. You are going to have to check the parameters being passed in the mda from Dev's code See Changes in WinInet API validation code could lead to Unexpected Behavior http://blogs.msdn.com/wndp/archive/2005/08/18/453124.aspx On Tue, 24 Oct 2006 12:18:06 -0400, David Plaut wrote: >This is a heads up that IE7 changed something in wininet.dll. I use >Dev Ashish's very fine ftp code from http://www.mvps.org/access/ and >IE7 breaks it. > >My short term solution has been to change the code to point to a >version of wininet.dll prior to IE7. -- 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 boogieloogie at gmail.com Sat Oct 28 15:35:01 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Sat, 28 Oct 2006 17:35:01 -0300 Subject: [AccessD] IE 7 changes Wininet.dll may affect FTP code In-Reply-To: <001901c6fab4$77f610f0$0200a8c0@murphy3234aaf1> References: <4542B621.2010002@shaw.ca> <001901c6fab4$77f610f0$0200a8c0@murphy3234aaf1> Message-ID: <3bf43ee90610281335y197b5537j845dcb01b028486b@mail.gmail.com> On 10/28/06, Doug Murphy wrote: > > Marty, > > Thank you for the heads up. We have an application with several hundred > copies out that uses wininet.dll to pull data off a web site into the app. > I > am not looking forward to sending out that many updates if the change > impacts our app. The "thinking about creating an application > compatibility > shim to help legacy applications by mimicking the old behavior" comment > does > not bring great comfort. > > One more configuration to set up in my predeployment test system. > > Doug > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Friday, October 27, 2006 6:45 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] IE 7 changes Wininet.dll may affect FTP code > > Microsoft is going to start force downloading IE 7.0 through Windows > update. > This may affect FTP code or Internet TransferLib.I know people are using > here. > MS may come out with a shim to use old version of WinInet.dll or at least > it's behaviour. > > Yup wininet.dll has changed their error handling in IE7. It only checks > for > null pointers now. This has been a long ongoing argument at MS. > > If you are an application developer using WinInet and you start getting > crashes in these functions, take a look at the pointer values getting > passed > to these functions. You are going to have to check the parameters being > passed in the mda from Dev's code > > See > Changes in WinInet API validation code could lead to Unexpected Behavior > http://blogs.msdn.com/wndp/archive/2005/08/18/453124.aspx > > On Tue, 24 Oct 2006 12:18:06 -0400, David Plaut > wrote: > > >This is a heads up that IE7 changed something in wininet.dll. I > use >Dev > Ashish's very fine ftp code from http://www.mvps.org/access/ and > >IE7 breaks it. > > > >My short term solution has been to change the code to point to > a >version > of wininet.dll prior to IE7. > > -- > Marty Connelly > Victoria, B.C. > Canada > > And this is progress how? M$ is always causing havoc amongst developers. I need a big drink of scotch. From Mike.W.Gowey at doc.state.or.us Mon Oct 30 15:38:24 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Mon, 30 Oct 2006 14:38:24 -0700 Subject: [AccessD] Record Maximum In-Reply-To: Message-ID: <96190DA9E0A10A4CB36E4B71367E55C14D1497@srcimail1.ds.doc.state.or.us> Hi Everyone, Just a quick question. What is the maximum or the most records that anyone has seen in a table before the database started to degrade in permormance. What would you consider the maximum record count before archiving? TIA for your thoughts, Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit From jwcolby at colbyconsulting.com Mon Oct 30 17:56:10 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 30 Oct 2006 18:56:10 -0500 Subject: [AccessD] Record Maximum In-Reply-To: <96190DA9E0A10A4CB36E4B71367E55C14D1497@srcimail1.ds.doc.state.or.us> Message-ID: <002501c6fc7e$f9ed11a0$657aa8c0@m6805> >What is the maximum or the most records that anyone has seen in a table before the database started to degrade in performance. I don't think it is possible to quantify it in quite those terms. The number of users in the db is a bigger concern in my experience than raw "number of records in a table". That said however, you have to go back to "what are you trying to do?". If you are trying to update records using an update query while 10 people are in the database trying to use that same table, I have experienced the database becoming unusable at 1/4 million records. The update operation had to be moved to "after hours". The thing to remember is that Access is a file based back end, not a server based back end. Thus if you have an application that needs to join a dozen tables with many FKs with a dozen joins and then filter to a subset etc... You just have to know that the way access works is to pull "a lot of" the indexes in question across the wore into the local workstation, sort through the joins, where clauses etc. assemble the requirements for data records from each table, then ask the file server to "go here in the file and get this chunk of data, now go here in the file and get this chunk of data" etc. >What would you consider the maximum record count before archiving? Again, the question makes no sense to me as stated. Archiving and getting data back from archives is an inherently slow operation. Thus if the archived data are never used, then archive whenever the data is not actively useful any more. If you will need the data daily, or even weekly (and quickly) then you might want to push the archive out until the data isn't actively needed any more. OTOH, if you need the archived data weekly, but it is for a report that can be done overnight for delivery on a Monday morning, then archiving it is very plausible. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Monday, October 30, 2006 4:38 PM To: Access Developers discussion and problem solving Subject: [AccessD] Record Maximum Hi Everyone, Just a quick question. What is the maximum or the most records that anyone has seen in a table before the database started to degrade in permormance. What would you consider the maximum record count before archiving? TIA for your thoughts, Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Mon Oct 30 18:09:22 2006 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 31 Oct 2006 11:09:22 +1100 Subject: [AccessD] A2003:Where is the Description of the Reports Kept In-Reply-To: <00dd01c6ec11$2166c420$6401a8c0@nant> Message-ID: <002901c6fc80$de9862e0$782b8a90@DENZILLAP> Hi Shamil Sorry for the delay - perfect - just what I needed thanks Darren ------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, 10 October 2006 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Where is the Description of the Reports Kept Access.Application.Currentdb .Containers("Reports") .Documents("{{YourReportNameHere}}") .Properties("Description").Value That's is all one code line wrapped here. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, October 10, 2006 5:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003:Where is the Description of the Reports Kept Hi All if I do SELECT MSysObjects.* FROM MSysObjects WHERE (((MSysObjects.Type)=-32764)); I can see all the reports Does anyone know where the reprost descriptions are kept? Many thanks in advance DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Mon Oct 30 18:09:22 2006 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 31 Oct 2006 11:09:22 +1100 Subject: [AccessD] A2003:Remove first line in CSV/Excel file In-Reply-To: <453E50B7.2080405@shaw.ca> Message-ID: <002a01c6fc80$e101e8d0$782b8a90@DENZILLAP> Hi Marty Not sure if I replied or not - it works like a treat - this makes life sooooooo much easier well done and many thanks Darren ------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, 25 October 2006 3:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Remove first line in CSV/Excel file Ooops misread this should work Sub testexcelsave() Dim oApp As Excel.Application Dim ObjXLBook As Excel.Workbooks Dim sourceWkBkName As String Dim sNew As String On Error GoTo ExcelExit Set oApp = New Excel.Application 'or use createobject latebinding 'sourceWkBkName = oApp.GetOpenFilename("Excel Files(*.xls),*.xls", _ ' , "WHERE IS YOUR FILE?", "SELECT") With oApp .Visible = True .Workbooks.Open ("C:\Excel\product2.xls") '.ActiveSheet.Name = "Wisconsin" sNew = .ActiveSheet.Name With .Worksheets(sNew) .Rows(1).EntireRow.Delete End With MsgBox .ActiveWorkbook.FullName '.ActiveSheet.Rows("1:1").EntireRow.Delete .ActiveWorkbook.SaveCopyAs "C:\excel\product3.xls" '.ActiveWorkbook.SaveAs "C:\excel\product3.xls" 'hmm doesn't work with Excel 2007 .ActiveWorkbook.Close SaveChanges:=False .Workbooks.Close End With Set ObjXLBook = Nothing oApp.Quit Set oApp = Nothing ExcelExit: Debug.Print Err.Number & Err.Description End Sub Darren DICK wrote: >Further to my last > >Does anyone have any code that will remove the first line in an Excel doc but >from Access? > >Many thanks again in advance > >Darren > > > _____ > >From: Darren DICK [mailto:darrend at nimble.com.au] >Sent: Tuesday, 24 October 2006 11:55 PM >To: 'Access Developers discussion and problem solving' >Subject: A2003:Rename a file in a folder > > >Hi all > >I have a file that will be always named the same - EG myCoolCSVfile.csv > >It will be dumped into a folder...say C:\MyCoolFolder at random times > >I need some code to Check the C:\myCoolFolder to see if the file >myCoolCSVfile.csv file exists in the folder - and if it does to rename it to >YYMMDDHHMMSS.csv > >Where YY = Year MM = Month DD = Day etc etc > >Does anyone have anything that might suit? > >Many thanks in advance > >Darren > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Oct 30 18:10:47 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 30 Oct 2006 19:10:47 -0500 Subject: [AccessD] Appending data to SQL Server table with identity field Message-ID: <002601c6fc81$04a17a30$657aa8c0@m6805> I am trying to append data from a CSV file to an existing table with a PK integer field (4 bytes) that is an identity, seed 1, increment 1. The append fails at the very end saying it can't append a null to the PK field. Does an identity not increment in the same manner that an autonumber does in Access? If so any ideas why this is failing? If not, any ideas how to cause this to happen. I hate to import to a table without the PK, and then append to the table with the PK. I have tried that and THAT does work. What is it about the import from CSV that is causing this failure? John W. Colby Colby Consulting www.ColbyConsulting.com From wdhindman at dejpolsystems.com Mon Oct 30 18:36:01 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 30 Oct 2006 19:36:01 -0500 Subject: [AccessD] Record Maximum References: <96190DA9E0A10A4CB36E4B71367E55C14D1497@srcimail1.ds.doc.state.or.us> Message-ID: <004801c6fc84$8af32130$3e3de844@50NM721> ...as JC pointed out, the "number" of records is rarely the driving factor ...I'd add to JC's comments that the record length plays into the issue as well ...if each record is 2k its a major factor in your considerations. ...and while record count IS a factor in archiving, its not THE major factor ...I baseline archive a record whenever it meets certain client specific milestones and only IF the client concurs on a record by record basis ...a dead record is a dead record whether there are 2K or 2M of them William Hindman ----- Original Message ----- From: "Gowey Mike W" To: "Access Developers discussion and problem solving" Sent: Monday, October 30, 2006 4:38 PM Subject: [AccessD] Record Maximum > > > Hi Everyone, > > Just a quick question. What is the maximum or the most records that > anyone has seen in a table before the database started to degrade in > permormance. > > What would you consider the maximum record count before archiving? > > > TIA for your thoughts, > > Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ > Team Leader - SouthEast Region > Information Systems Unit > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Mon Oct 30 18:39:06 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 30 Oct 2006 19:39:06 -0500 Subject: [AccessD] Appending data to SQL Server table with identity field References: <002601c6fc81$04a17a30$657aa8c0@m6805> Message-ID: <005001c6fc84$f95be670$3e3de844@50NM721> ...is there any stray space or return at the end of the csv file? William Hindman ----- Original Message ----- From: "JWColby" To: ; "'Access Developers discussion and problem solving'" Sent: Monday, October 30, 2006 7:10 PM Subject: [AccessD] Appending data to SQL Server table with identity field >I am trying to append data from a CSV file to an existing table with a PK > integer field (4 bytes) that is an identity, seed 1, increment 1. The > append fails at the very end saying it can't append a null to the PK > field. > Does an identity not increment in the same manner that an autonumber does > in > Access? If so any ideas why this is failing? If not, any ideas how to > cause this to happen. I hate to import to a table without the PK, and > then > append to the table with the PK. I have tried that and THAT does work. > What is it about the import from CSV that is causing this failure? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Oct 30 20:00:54 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 30 Oct 2006 21:00:54 -0500 Subject: [AccessD] Raid controller Message-ID: <002b01c6fc90$66de1b40$657aa8c0@m6805> I purchased an Areca 1220 SATA 8 disk raid controller, with (7) Seagate 10.1 320 gb hard disks to create a raid system with. One of the disks was damaged and had to be RMAd. I went ahead and created a Raid 5 array using the 6 remaining drives. This gave me about 1.0 terra bytes on one volume and about 370 gb on another volume, both Raid 5. I just received the RMAd drive back, popped it in, added it to the array and told the controller to convert to Raid 6 for both volumes. That was early this afternoon, and the controller has finished the conversion of the large array to Raid 6 and is about 50% finished converting the smaller array to Raid 6, all consuming ZERO CPU and doing so while I was using the arrays pretty heavily. The controller is also very fast. Raid 5/6 writes are about the speed of the individual drives and reads are much faster (~raid 0 speed according to Areca) These disks are about $95 from Newegg and can be purchased with free shipping if you keep your eyes open so that is a real $95 / disk. This particular controller is currently about $500. This made my actual cost about $1200 for 1400gb in a Raid 6 config. Someday I hope that the Seagate 10.1 750 gb drives drop into this price range in which case I will upgrade. ATM those drives are about $375-$400 each which makes them out of my range. I am impressed with this Areca controller which is the point of this email. Areca makes controllers that handle various numbers of disks. The controller uses a PCI-X8 connection to the CPU so you must have a PCI-X capable motherboard. If you need more disks, they also have a 12, 16 and 24 disk controller, for more money of course. Nice controller so far! John W. Colby Colby Consulting www.ColbyConsulting.com From wdhindman at dejpolsystems.com Tue Oct 31 01:59:45 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 31 Oct 2006 02:59:45 -0500 Subject: [AccessD] Raid controller References: <002b01c6fc90$66de1b40$657aa8c0@m6805> Message-ID: <002701c6fcc2$89124a10$3e3de844@50NM721> ...thanks for the tip JC ...as a matter of fact I was about to look into just that for a client :) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" ; "'Discussion of Hardware and Software issues'" ; Sent: Monday, October 30, 2006 9:00 PM Subject: [AccessD] Raid controller >I purchased an Areca 1220 SATA 8 disk raid controller, with (7) Seagate >10.1 > 320 gb hard disks to create a raid system with. One of the disks was > damaged and had to be RMAd. I went ahead and created a Raid 5 array using > the 6 remaining drives. This gave me about 1.0 terra bytes on one volume > and about 370 gb on another volume, both Raid 5. I just received the RMAd > drive back, popped it in, added it to the array and told the controller to > convert to Raid 6 for both volumes. That was early this afternoon, and > the > controller has finished the conversion of the large array to Raid 6 and is > about 50% finished converting the smaller array to Raid 6, all consuming > ZERO CPU and doing so while I was using the arrays pretty heavily. The > controller is also very fast. Raid 5/6 writes are about the speed of the > individual drives and reads are much faster (~raid 0 speed according to > Areca) > > These disks are about $95 from Newegg and can be purchased with free > shipping if you keep your eyes open so that is a real $95 / disk. This > particular controller is currently about $500. This made my actual cost > about $1200 for 1400gb in a Raid 6 config. > > Someday I hope that the Seagate 10.1 750 gb drives drop into this price > range in which case I will upgrade. ATM those drives are about $375-$400 > each which makes them out of my range. > > I am impressed with this Areca controller which is the point of this > email. > Areca makes controllers that handle various numbers of disks. The > controller uses a PCI-X8 connection to the CPU so you must have a PCI-X > capable motherboard. > > If you need more disks, they also have a 12, 16 and 24 disk controller, > for > more money of course. > > Nice controller so far! > > John W. Colby > Colby Consulting > www.ColbyConsulting.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 Oct 31 04:13:10 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 31 Oct 2006 23:13:10 +1300 Subject: [AccessD] GPF with Subform in Runtime Message-ID: <7.0.1.0.0.20061031222732.01a3c828@dalyn.co.nz> Listers, Access XP ade with SQL BE. I have a form with a tab object on it. There are five tabs and each one has a sub form on it. The form opens up fine when I use a full version of Access but when I run it using a runtime installation the form generates a General Protection Fault and closes down. The problem seems to be because I have some fields with conditional formatting in them. If I take out the conditional formatting then the problem disappears. However, I need the conditional formatting. I haven't been able to find anything on the web that helps. Regards David Emerson Dalyn Software Ltd 999 Moonshine Rd, RD 1 Judgeford, Porirua 5381 Phone (04) 235-6782 Fax (04) 235-6783 Mob (027) 280-9348 From artful at rogers.com Tue Oct 31 04:21:13 2006 From: artful at rogers.com (artful at rogers.com) Date: Tue, 31 Oct 2006 02:21:13 -0800 (PST) Subject: [AccessD] GPF with Subform in Runtime Message-ID: <20061031102113.65623.qmail@web88201.mail.re2.yahoo.com> I haven't experienced this problem myself, but I would suggest that you replace the built-in conditional formatting with some of your own code placed in the OnCurrent event. ----- Original Message ---- From: David Emerson To: accessd at databaseadvisors.com Sent: Tuesday, October 31, 2006 5:13:10 AM Subject: [AccessD] GPF with Subform in Runtime Listers, Access XP ade with SQL BE. I have a form with a tab object on it. There are five tabs and each one has a sub form on it. The form opens up fine when I use a full version of Access but when I run it using a runtime installation the form generates a General Protection Fault and closes down. The problem seems to be because I have some fields with conditional formatting in them. If I take out the conditional formatting then the problem disappears. However, I need the conditional formatting. I haven't been able to find anything on the web that helps. Regards David Emerson Dalyn Software Ltd 999 Moonshine Rd, RD 1 Judgeford, Porirua 5381 Phone (04) 235-6782 Fax (04) 235-6783 Mob (027) 280-9348 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ewaldt at gdls.com Tue Oct 31 05:16:37 2006 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Tue, 31 Oct 2006 06:16:37 -0500 Subject: [AccessD] Turning off the clipboard message In-Reply-To: Message-ID: "You copied a large amount of data onto the clipboard...Do you want to save this data on the clipboard?" We're all familiar with this message. Is there any way to turn it off permanently? I frequently copy a "large amount of data", but I never want to save it on the clipboard. I can't imagine that this is all that unusual. TIA, Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. From hollisvj at pgdp.usec.com Tue Oct 31 06:54:10 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Tue, 31 Oct 2006 06:54:10 -0600 Subject: [AccessD] Limit Text in Field Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01015177@c2k3exchange.pgdp.corp.usec.com> I need a field that is longer than the 255 txt, but shorter than a memo. Is there a way to limit the characters entered into a field? I tried this code on the Before Update, but it still let me type more than 500 characters. I also remember seeing someone had an example on limited text and it had a field that showed how many characters were left to type. Does anyone still have that or know where it can be located? '-- File names are limited in length. If Len(GstrFileName) > 500 Then MsgBox "You must limit the length of the Equipment Used to 500 characters", vbExclamation + vbOKOnly, "Text Too Long" Exit Sub End If Virginia From paul.hartland at fsmail.net Tue Oct 31 07:05:04 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 31 Oct 2006 14:05:04 +0100 (CET) Subject: [AccessD] Limit Text in Field Message-ID: <26524231.21461162299904796.JavaMail.www@wwinf3203> Virgina, If Len(GstrFileName) > 500 Then MsgBox "You must limit the length of the Equipment Used to 500 characters", vbExclamation + vbOKOnly, "Text Too Long" ' say your text field is text1, couldn't you put text1 = left(text1,500) Exit Sub End If Message Received: Oct 31 2006, 12:59 PM From: "Hollis, Virginia" To: accessD at databaseadvisors.com Cc: Subject: [AccessD] Limit Text in Field I need a field that is longer than the 255 txt, but shorter than a memo. Is there a way to limit the characters entered into a field? I tried this code on the Before Update, but it still let me type more than 500 characters. I also remember seeing someone had an example on limited text and it had a field that showed how many characters were left to type. Does anyone still have that or know where it can be located? '-- File names are limited in length. If Len(GstrFileName) > 500 Then MsgBox "You must limit the length of the Equipment Used to 500 characters", vbExclamation + vbOKOnly, "Text Too Long" Exit Sub End If Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From bheid at appdevgrp.com Tue Oct 31 07:46:44 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 31 Oct 2006 08:46:44 -0500 Subject: [AccessD] [SPAM SUSPECT] Re: Limit Text in Field In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E5F9A6@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35A26@ADGSERVER> Also, aren't file names limited to about 280 characters? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, October 31, 2006 8:05 AM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] Limit Text in Field Importance: Low Virgina, If Len(GstrFileName) > 500 Then MsgBox "You must limit the length of the Equipment Used to 500 characters", vbExclamation + vbOKOnly, "Text Too Long" ' say your text field is text1, couldn't you put text1 = left(text1,500) Exit Sub End If Message Received: Oct 31 2006, 12:59 PM From: "Hollis, Virginia" To: accessD at databaseadvisors.com Cc: Subject: [AccessD] Limit Text in Field I need a field that is longer than the 255 txt, but shorter than a memo. Is there a way to limit the characters entered into a field? I tried this code on the Before Update, but it still let me type more than 500 characters. I also remember seeing someone had an example on limited text and it had a field that showed how many characters were left to type. Does anyone still have that or know where it can be located? '-- File names are limited in length. If Len(GstrFileName) > 500 Then MsgBox "You must limit the length of the Equipment Used to 500 characters", vbExclamation + vbOKOnly, "Text Too Long" Exit Sub End If Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Tue Oct 31 08:18:10 2006 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 31 Oct 2006 06:18:10 -0800 (PST) Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? Message-ID: <20061031141810.69743.qmail@web31606.mail.mud.yahoo.com> Hi group, does anybody know how difficult it is to open a report in an Access 2003 database using Asp.Net? We're using an intranet and VPN. So that shouldn't be the big issue. Thnx in @vance. Regards, Sander From Mike.W.Gowey at doc.state.or.us Tue Oct 31 08:21:27 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Tue, 31 Oct 2006 07:21:27 -0700 Subject: [AccessD] Record Maximum In-Reply-To: <004801c6fc84$8af32130$3e3de844@50NM721> Message-ID: <96190DA9E0A10A4CB36E4B71367E55C14D149A@srcimail1.ds.doc.state.or.us> Thanks guys for your input. I was just looking for some ways to explain to the customer that the rumor that they heard about Access databases crashing when the size of the database reached over 100mb. I already explained that this was a vicious rumor and explained to them how it works, but they were not totally convinced so I was looking for more amminition to though at them to eleviate their concerns. Thanks again -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, October 30, 2006 5:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Maximum ...as JC pointed out, the "number" of records is rarely the driving factor ...I'd add to JC's comments that the record length plays into the issue as well ...if each record is 2k its a major factor in your considerations. ...and while record count IS a factor in archiving, its not THE major factor ...I baseline archive a record whenever it meets certain client specific milestones and only IF the client concurs on a record by record basis ...a dead record is a dead record whether there are 2K or 2M of them William Hindman ----- Original Message ----- From: "Gowey Mike W" To: "Access Developers discussion and problem solving" Sent: Monday, October 30, 2006 4:38 PM Subject: [AccessD] Record Maximum > > > Hi Everyone, > > Just a quick question. What is the maximum or the most records that > anyone has seen in a table before the database started to degrade in > permormance. > > What would you consider the maximum record count before archiving? > > > TIA for your thoughts, > > Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ > Team Leader - SouthEast Region > Information Systems Unit > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Tue Oct 31 08:45:10 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Tue, 31 Oct 2006 08:45:10 -0600 Subject: [AccessD] Re: Limit Text in Field Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01015182@c2k3exchange.pgdp.corp.usec.com> Oh yea! I should change the wording on that to show as a field name, not a file - (GstrFileName) was the wrong choice. But it really is a field that I made as a memo but don't want them to type a book, but they need more than the 255 for a txt field. I tried the ' say your text field is text1, couldn't you put text1 = left(text1,500) & it didn't like that - it gives a runtime error about the BeforeUpdate can't save the record. Also, Does anyone have something that shows how many characters have been typed (it shows as they type)? Sorry confused everyone on that one. Virginia Also, aren't file names limited to about 280 characters? Bobby From wdhindman at dejpolsystems.com Tue Oct 31 08:47:51 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 31 Oct 2006 09:47:51 -0500 Subject: [AccessD] checkbox concatenation References: <96190DA9E0A10A4CB36E4B71367E55C14D149A@srcimail1.ds.doc.state.or.us> Message-ID: <000a01c6fcfb$8b0a59a0$3e3de844@50NM721> ...given four tables tblContact pk ContactID fk CompanyId tblCompany pk CompanyID tbEvent pk EventID tblEventReg pkERID fk EventID fk CompanyD fk ContactID ...tblEventRegistration is a join table to show which contacts from which companies attended which events. ...given that thousands of contacts attend each event, tblEventReg is growing logarithmically Q: is it feasible to use a numeric field in the tblContacts to replace tblEventReg by using event checkboxes instead, assigning them a numeric value by show and then mathematically summing them in the numeric field ...thus using one integer to represent every event attended by that contact? ...yes/no? ...pros/cons? William Hindman From wdhindman at dejpolsystems.com Tue Oct 31 08:57:10 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 31 Oct 2006 09:57:10 -0500 Subject: [AccessD] Limit Text in Field References: <703BDA18A87DFA4CB265A86F42E4178D01015182@c2k3exchange.pgdp.corp.usec.com> Message-ID: <001401c6fcfc$d827c140$3e3de844@50NM721> http://www.lebans.com/limittextinput.htm William Hindman ----- Original Message ----- From: "Hollis, Virginia" To: Sent: Tuesday, October 31, 2006 9:45 AM Subject: [AccessD] Re: Limit Text in Field > Oh yea! I should change the wording on that to show as a field name, not > a file - (GstrFileName) was the wrong choice. But it really is a field > that I made as a memo but don't want them to type a book, but they need > more than the 255 for a txt field. > > > > I tried the ' say your text field is text1, couldn't you put text1 = > left(text1,500) & it didn't like that - it gives a runtime error about > the BeforeUpdate can't save the record. > > > > Also, Does anyone have something that shows how many characters have > been typed (it shows as they type)? > > > > Sorry confused everyone on that one. > > > > Virginia > > > > > Also, aren't file names limited to about 280 characters? > > Bobby > > > > -- > 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 Oct 31 09:28:51 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 01 Nov 2006 01:28:51 +1000 Subject: [AccessD] Limit Text in Field In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01015182@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D01015182@c2k3exchange.pgdp.corp.usec.com> Message-ID: <45476BB3.8733.C0D11E4@stuart.lexacorp.com.pg> On 31 Oct 2006 at 8:45, Hollis, Virginia wrote: > I tried the ' say your text field is text1, couldn't you put text1 = > left(text1,500) & it didn't like that - it gives a runtime error about > the BeforeUpdate can't save the record. > > Also, Does anyone have something that shows how many characters have > been typed (it shows as they type)? Create another text box Text2 to display the length and then use this: Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) Text2 = Len(Text1.Text) If Len(Text1.Text) > 40 Then MsgBox "Too many characters" Text1.Text = Left$(Text1.Text, 40) End If-- Stuart From stuart at lexacorp.com.pg Tue Oct 31 09:44:08 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 01 Nov 2006 01:44:08 +1000 Subject: [AccessD] checkbox concatenation In-Reply-To: <000a01c6fcfb$8b0a59a0$3e3de844@50NM721> References: <96190DA9E0A10A4CB36E4B71367E55C14D149A@srcimail1.ds.doc.state.or.us>, <000a01c6fcfb$8b0a59a0$3e3de844@50NM721> Message-ID: <45476F48.4551.C1B103A@stuart.lexacorp.com.pg> On 31 Oct 2006 at 9:47, William Hindman wrote: > ...given four tables > > tblContact pk ContactID fk CompanyId > tblCompany pk CompanyID > tbEvent pk EventID > tblEventReg pkERID fk EventID fk CompanyD fk ContactID > CompanyID is redundant in tblEventReg since you have ContactID which points to tblCompany via tblContact. > ...tblEventRegistration is a join table to show which contacts from which > companies attended which events. ...given that thousands of contacts attend > each event, tblEventReg is growing logarithmically > > Q: is it feasible to use a numeric field in the tblContacts to replace > tblEventReg by using event checkboxes instead, assigning them a numeric > value by show and then mathematically summing them in the numeric field > ...thus using one integer to represent every event attended by that contact? > ...yes/no? ...pros/cons? Yes but... You would need to bit mask the attendance to find out which events were attended which means your Events would need to be numbered 1,2,4,8,16,32,64..... You would be limited to a maximum of 63 events if you store it as a long (The 63rd event would be EventID 9223372036854775808) -- Stuart From jwcolby at colbyconsulting.com Tue Oct 31 09:48:22 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 31 Oct 2006 10:48:22 -0500 Subject: [AccessD] Record Maximum In-Reply-To: <96190DA9E0A10A4CB36E4B71367E55C14D149A@srcimail1.ds.doc.state.or.us> Message-ID: <000901c6fd03$ff934a90$657aa8c0@m6805> Oh well. I have a client with a database with well over 500 mbytes of data. I did break it down but I did it for technical reasons having to do with one table having a bunch of memo fields and lots of activity, which was causing bloating. I wanted to be able to compact and repair the pieces individually. The main database container in this specific application currently sits at about 250 mbytes, and has ~40 users in it all day. It is a mission critical database for a disability insurance call center. I designed it from scratch starting in March 2002 and it has been in operation since the first week of August, 2002 (I just checked my billing database). They add about 100 mbytes of data per year and (so far) have all the claims processed still on line. In the past months we have brought up a claims payment module that allows actually paying the claims through a payroll processing third party. We are about to bring another insurance client on board that will require similar claims payments processing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Tuesday, October 31, 2006 9:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Maximum Thanks guys for your input. I was just looking for some ways to explain to the customer that the rumor that they heard about Access databases crashing when the size of the database reached over 100mb. I already explained that this was a vicious rumor and explained to them how it works, but they were not totally convinced so I was looking for more amminition to though at them to eleviate their concerns. Thanks again -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, October 30, 2006 5:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Maximum ...as JC pointed out, the "number" of records is rarely the driving factor ...I'd add to JC's comments that the record length plays into the issue as well ...if each record is 2k its a major factor in your considerations. ...and while record count IS a factor in archiving, its not THE major factor ...I baseline archive a record whenever it meets certain client specific milestones and only IF the client concurs on a record by record basis ...a dead record is a dead record whether there are 2K or 2M of them William Hindman ----- Original Message ----- From: "Gowey Mike W" To: "Access Developers discussion and problem solving" Sent: Monday, October 30, 2006 4:38 PM Subject: [AccessD] Record Maximum > > > Hi Everyone, > > Just a quick question. What is the maximum or the most records that > anyone has seen in a table before the database started to degrade in > permormance. > > What would you consider the maximum record count before archiving? > > > TIA for your thoughts, > > Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ Team Leader - SouthEast > Region Information Systems Unit > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Oct 31 09:52:48 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 31 Oct 2006 16:52:48 +0100 Subject: [AccessD] Record Maximum Message-ID: Hi Mike You'll hear a lot of that, mostly from VB or SQL Server people with only limited knowledge of Access. Ask the client to base decisions on facts not rumours. /gustav >>> Mike.W.Gowey at doc.state.or.us 31-10-2006 15:21:27 >>> Thanks guys for your input. I was just looking for some ways to explain to the customer that the rumor that they heard about Access databases crashing when the size of the database reached over 100mb. I already explained that this was a vicious rumor and explained to them how it works, but they were not totally convinced so I was looking for more amminition to though at them to eleviate their concerns. From Jdemarco at hudsonhealthplan.org Tue Oct 31 10:00:10 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 31 Oct 2006 11:00:10 -0500 Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? Message-ID: <08F823FD83787D4BA0B99CA580AD3C740464A859@TTNEXCHCL2.hshhp.com> Sander, I read an interestig article a while back that detailed how to use Access as the reporting engine for ASP.NET applications. In short it involves getting input from your user and running the report in Access (installed on server I'd imagine). The report is then exported to XML from Access by your .NET app. Access does a real good job of creating XML/XSL so the reports will look like Access reports. I hope that makes sense (and helps). Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Tuesday, October 31, 2006 9:18 AM To: Acces User Group Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? Hi group, does anybody know how difficult it is to open a report in an Access 2003 database using Asp.Net? We're using an intranet and VPN. So that shouldn't be the big issue. Thnx in @vance. Regards, Sander -- 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 Oct 31 10:08:09 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 01 Nov 2006 02:08:09 +1000 Subject: [AccessD] checkbox concatenation In-Reply-To: <45476F48.4551.C1B103A@stuart.lexacorp.com.pg> References: <96190DA9E0A10A4CB36E4B71367E55C14D149A@srcimail1.ds.doc.state.or.us>, <000a01c6fcfb$8b0a59a0$3e3de844@50NM721>, <45476F48.4551.C1B103A@stuart.lexacorp.com.pg> Message-ID: <454774E9.23407.C310A73@stuart.lexacorp.com.pg> On 1 Nov 2006 at 1:44, Stuart McLachlan wrote: > You would need to bit mask the attendance to find out which events were > attended which means your Events would need to be numbered > 1,2,4,8,16,32,64..... You would be limited to a maximum of 63 events if you > store it as a long (The 63rd event would be EventID 9223372036854775808) Doh! You can actually store 64 events. Event 1 = 2^0 (1) Event 64 = 2^63 ( 9223372036854775808) You would record attendance at Event X as Attendance = Attendance OR 2 ^(X-1) -- Stuart From cfoust at infostatsystems.com Tue Oct 31 10:13:08 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 31 Oct 2006 08:13:08 -0800 Subject: [AccessD] Limit Text in Field In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01015182@c2k3exchange.pgdp.corp.usec.com> Message-ID: Put it in the OnChange event and cancel the event if the length would exceed the set limit. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Tuesday, October 31, 2006 6:45 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Limit Text in Field Oh yea! I should change the wording on that to show as a field name, not a file - (GstrFileName) was the wrong choice. But it really is a field that I made as a memo but don't want them to type a book, but they need more than the 255 for a txt field. I tried the ' say your text field is text1, couldn't you put text1 = left(text1,500) & it didn't like that - it gives a runtime error about the BeforeUpdate can't save the record. Also, Does anyone have something that shows how many characters have been typed (it shows as they type)? Sorry confused everyone on that one. Virginia Also, aren't file names limited to about 280 characters? Bobby -- 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 Oct 31 10:17:06 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 31 Oct 2006 10:17:06 -0600 Subject: [AccessD] Record Maximum Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE0AF@corp-es01.fleetpride.com> If you want a testimonial tell your customer that all our financial reporting and profit planning is done via an Access database into which data is downloaded from an AS400 and which is used to produce dozens of Excel reports to the board and Sr management,ie if this sytem ever went down I would be in deep doo. We are $600 million in sales with 160 locations. The system has run reliably for 5 years, currently the back end is over 500mb. If properly build they should not have problems. Jim Hale -----Original Message----- From: Gowey Mike W [mailto:Mike.W.Gowey at doc.state.or.us] Sent: Tuesday, October 31, 2006 8:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Maximum Thanks guys for your input. I was just looking for some ways to explain to the customer that the rumor that they heard about Access databases crashing when the size of the database reached over 100mb. I already explained that this was a vicious rumor and explained to them how it works, but they were not totally convinced so I was looking for more amminition to though at them to eleviate their concerns. Thanks again -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, October 30, 2006 5:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Maximum ...as JC pointed out, the "number" of records is rarely the driving factor ...I'd add to JC's comments that the record length plays into the issue as well ...if each record is 2k its a major factor in your considerations. ...and while record count IS a factor in archiving, its not THE major factor ...I baseline archive a record whenever it meets certain client specific milestones and only IF the client concurs on a record by record basis ...a dead record is a dead record whether there are 2K or 2M of them William Hindman ----- Original Message ----- From: "Gowey Mike W" To: "Access Developers discussion and problem solving" Sent: Monday, October 30, 2006 4:38 PM Subject: [AccessD] Record Maximum > > > Hi Everyone, > > Just a quick question. What is the maximum or the most records that > anyone has seen in a table before the database started to degrade in > permormance. > > What would you consider the maximum record count before archiving? > > > TIA for your thoughts, > > Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ > Team Leader - SouthEast Region > Information Systems Unit > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** 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 garykjos at gmail.com Tue Oct 31 10:18:42 2006 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 31 Oct 2006 10:18:42 -0600 Subject: [AccessD] Record Maximum In-Reply-To: <000901c6fd03$ff934a90$657aa8c0@m6805> References: <96190DA9E0A10A4CB36E4B71367E55C14D149A@srcimail1.ds.doc.state.or.us> <000901c6fd03$ff934a90$657aa8c0@m6805> Message-ID: I have an application that has a couple gigabytes of data in it. It's a single user database though. Multiple use it but they each have their own copy. I think there are f people using it now. It's a database of extracted Oracle database info relating to customer orders that our marketing people do queries against. It used to be in a regular front end back end configuration - until there got to much data for that. I split the backend into seperate databases for each of the large tables and that has worked pretty well for the past several years now. Occaisionally we have to purge some older order detail records but it's about a once a year thing. The Customer Master Table in this database has almost 5 million records. My local copy of the application has orders in it since the first of January 2006 and has about 4 million rows in that table/database. We have about 500,000 item records in the item table. The customer phone number table has about 3.5 million rows in it. The Customer database is about 500 MB and the order database about 600Mb but I know the users have order databases over a gigabyte. All together it's about a two gigabyte application - depending on how many orders you keep. The users seem to love it. They prefer querying order data in this database to the native Oracle data or into a SQL Server version of the extracted data. I have prebuilt queries that they are able to tweak buy adding rows to "select tables" that are then joined into select queries to select orders for all the customers in a list of states or zip codes or a specific list of customers or items or coupon codes. They get flags indicating if the customer is a new customer - with the customer add date being the same date as the order date. This was originally created 6 years ago before we had the Oracle source system and was updated to extract from the Oracle system after we converted to using that for our main application system. GK On 10/31/06, JWColby wrote: > Oh well. I have a client with a database with well over 500 mbytes of data. > I did break it down but I did it for technical reasons having to do with one > table having a bunch of memo fields and lots of activity, which was causing > bloating. I wanted to be able to compact and repair the pieces > individually. > > The main database container in this specific application currently sits at > about 250 mbytes, and has ~40 users in it all day. It is a mission critical > database for a disability insurance call center. I designed it from scratch > starting in March 2002 and it has been in operation since the first week of > August, 2002 (I just checked my billing database). They add about 100 > mbytes of data per year and (so far) have all the claims processed still on > line. In the past months we have brought up a claims payment module that > allows actually paying the claims through a payroll processing third party. > We are about to bring another insurance client on board that will require > similar claims payments processing. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W > Sent: Tuesday, October 31, 2006 9:21 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Record Maximum > > > Thanks guys for your input. I was just looking for some ways to explain to > the customer that the rumor that they heard about Access databases crashing > when the size of the database reached over 100mb. I already explained that > this was a vicious rumor and explained to them how it works, but they were > not totally convinced so I was looking for more amminition to though at them > to eleviate their concerns. > > Thanks again > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Monday, October 30, 2006 5:36 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Record Maximum > > ...as JC pointed out, the "number" of records is rarely the driving factor > ...I'd add to JC's comments that the record length plays into the issue as > well ...if each record is 2k its a major factor in your considerations. > > ...and while record count IS a factor in archiving, its not THE major factor > ...I baseline archive a record whenever it meets certain client specific > milestones and only IF the client concurs on a record by record basis ...a > dead record is a dead record whether there are 2K or 2M of them > > William Hindman > > ----- Original Message ----- > From: "Gowey Mike W" > To: "Access Developers discussion and problem solving" > > Sent: Monday, October 30, 2006 4:38 PM > Subject: [AccessD] Record Maximum > > > > > > > > Hi Everyone, > > > > Just a quick question. What is the maximum or the most records that > > anyone has seen in a table before the database started to degrade in > > permormance. > > > > What would you consider the maximum record count before archiving? > > > > > > TIA for your thoughts, > > > > Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ Team Leader - SouthEast > > Region Information Systems Unit > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From jwcolby at colbyconsulting.com Tue Oct 31 10:20:43 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 31 Oct 2006 11:20:43 -0500 Subject: [AccessD] SQL Server observed performance Message-ID: <000a01c6fd08$849b1700$657aa8c0@m6805> I thought you guys might find this interesting. I have a database that I imported a couple of years ago. On a single processor 3 ghz AMD64 running 2 mbytes of memory, using (4) individual IDE 250gb hard drives (no raid) the system would import ~ 1000 rows per second into SQL Server. Each text file was ~10 gbytes, consisted of ~700 fields and 3 million records per file. Each field was originally padded right with spaces (comma delimited, but fixed width). This time around, I built an Access (really just VBA) preprocessor to open each file, read it line by line, strip all of the padding off the left and right sides (there was some left padding as well) and write it back out to another file. This dropped the average text file size to ~ 6.5 gbytes, which leaves us with average padding of well over 35%. It also left the resulting data in the unpadded after importing into SQL Server which makes sorts / searches and indexes possible. Anyway, after stripping all of this padding and building new files, I am now importing these into my new server which is a AMD64 X2 dual processor 3.8 ghz with 2 gbytes of ram. The disk subsystem is now a pair of volumes hosted on a raid 6 array, 1 tbyte for the main data store and ~400 gb for the temp databases. The new system imports the new (stripped) data files at about 3000 records per second. I have to run 3 imports at a time to keep both cores above 90% usage. Running 3 imports at a time, the imports happen roughly at 2k records / second FOR EACH IMPORT. Oddly, if I run more than 4 imports at a time, the processor usage drops back to ~70% for some reason and in fact each import slows to ~500 imports / second. This may have to do with the limits of disk streaming off of the machine that holds the source text files. The source files come from a second machine, all the files on the same disk / directory, over a 1ghz network (switch). I am happy to say though that the new dual processor server appears to be able to perform this specific task ~3 to 6 times as fast which is a huge and much needed performance boost. The other advantage to this configuration is that I am no longer playing games splitting the database up into smaller files residing on individual hard drives, and of course, the whole thing is using raid 6 which provides much needed security. John W. Colby Colby Consulting www.ColbyConsulting.com From john at winhaven.net Tue Oct 31 11:00:31 2006 From: john at winhaven.net (John Bartow) Date: Tue, 31 Oct 2006 11:00:31 -0600 Subject: [AccessD] A2k3 system.mdw Message-ID: <021101c6fd0e$16570910$1402a8c0@ScuzzPaq> When I open my System.mdw file with A2k3 it asks whether I want to open or convert it. This makes me I think I overwrote my default system.mdw file. I don't use Access's security but I would like to have the correct version on my system. Anyone know an easy way to extract the original form the setup disk? From Gustav at cactus.dk Tue Oct 31 11:03:18 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 31 Oct 2006 18:03:18 +0100 Subject: [AccessD] SQL Server observed performance Message-ID: Hi John Under some specific conditions you could easily increase import speed about 20 fold with MySQL: http://databaseadvisors.com/mailman/htdig/accessd/2006-May/043865.html And "modest hardware" indeed: IBM PC300, 266 MHz CPU, 256 MB ram, one IDE drive. Of course, you would need to build indices etc. later, but still ... /gustav >>> jwcolby at colbyconsulting.com 31-10-2006 17:20:43 >>> I thought you guys might find this interesting. I have a database that I imported a couple of years ago. On a single processor 3 ghz AMD64 running 2 mbytes of memory, using (4) individual IDE 250gb hard drives (no raid) the system would import ~ 1000 rows per second into SQL Server. Each text file was ~10 gbytes, consisted of ~700 fields and 3 million records per file. Each field was originally padded right with spaces (comma delimited, but fixed width). This time around, I built an Access (really just VBA) preprocessor to open each file, read it line by line, strip all of the padding off the left and right sides (there was some left padding as well) and write it back out to another file. This dropped the average text file size to ~ 6.5 gbytes, which leaves us with average padding of well over 35%. It also left the resulting data in the unpadded after importing into SQL Server which makes sorts / searches and indexes possible. Anyway, after stripping all of this padding and building new files, I am now importing these into my new server which is a AMD64 X2 dual processor 3.8 ghz with 2 gbytes of ram. The disk subsystem is now a pair of volumes hosted on a raid 6 array, 1 tbyte for the main data store and ~400 gb for the temp databases. The new system imports the new (stripped) data files at about 3000 records per second. I have to run 3 imports at a time to keep both cores above 90% usage. Running 3 imports at a time, the imports happen roughly at 2k records / second FOR EACH IMPORT. Oddly, if I run more than 4 imports at a time, the processor usage drops back to ~70% for some reason and in fact each import slows to ~500 imports / second. This may have to do with the limits of disk streaming off of the machine that holds the source text files. The source files come from a second machine, all the files on the same disk / directory, over a 1ghz network (switch). I am happy to say though that the new dual processor server appears to be able to perform this specific task ~3 to 6 times as fast which is a huge and much needed performance boost. The other advantage to this configuration is that I am no longer playing games splitting the database up into smaller files residing on individual hard drives, and of course, the whole thing is using raid 6 which provides much needed security. John W. Colby Colby Consulting www.ColbyConsulting.com From Gustav at cactus.dk Tue Oct 31 11:09:51 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 31 Oct 2006 18:09:51 +0100 Subject: [AccessD] checkbox concatenation Message-ID: Hi William That would require an engine capable of bit-mapped indexing and searching. At least one can do this, InterSystems Cach?: http://www.intersystems.com/cache/ http://www.intersystems.com/cache/technology/components/bitmap/index.html /gustav >>> wdhindman at dejpolsystems.com 31-10-2006 15:47:51 >>> ...given four tables tblContact pk ContactID fk CompanyId tblCompany pk CompanyID tbEvent pk EventID tblEventReg pkERID fk EventID fk CompanyD fk ContactID ...tblEventRegistration is a join table to show which contacts from which companies attended which events. ...given that thousands of contacts attend each event, tblEventReg is growing logarithmically Q: is it feasible to use a numeric field in the tblContacts to replace tblEventReg by using event checkboxes instead, assigning them a numeric value by show and then mathematically summing them in the numeric field ...thus using one integer to represent every event attended by that contact? ...yes/no? ...pros/cons? William Hindman From rusty.hammond at cpiqpc.com Tue Oct 31 11:37:00 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Tue, 31 Oct 2006 11:37:00 -0600 Subject: [AccessD] SQL Server observed performance Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8BB3@cpixchng-1.cpiqpc.net> John, You might look at the BULK INSERT statement in SQL. The import of the text file is done by the server itself. I would imagine you'll see an even better performance boost for the import. Rusty -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, October 31, 2006 10:21 AM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com Subject: [AccessD] SQL Server observed performance I thought you guys might find this interesting. I have a database that I imported a couple of years ago. On a single processor 3 ghz AMD64 running 2 mbytes of memory, using (4) individual IDE 250gb hard drives (no raid) the system would import ~ 1000 rows per second into SQL Server. Each text file was ~10 gbytes, consisted of ~700 fields and 3 million records per file. Each field was originally padded right with spaces (comma delimited, but fixed width). This time around, I built an Access (really just VBA) preprocessor to open each file, read it line by line, strip all of the padding off the left and right sides (there was some left padding as well) and write it back out to another file. This dropped the average text file size to ~ 6.5 gbytes, which leaves us with average padding of well over 35%. It also left the resulting data in the unpadded after importing into SQL Server which makes sorts / searches and indexes possible. Anyway, after stripping all of this padding and building new files, I am now importing these into my new server which is a AMD64 X2 dual processor 3.8 ghz with 2 gbytes of ram. The disk subsystem is now a pair of volumes hosted on a raid 6 array, 1 tbyte for the main data store and ~400 gb for the temp databases. The new system imports the new (stripped) data files at about 3000 records per second. I have to run 3 imports at a time to keep both cores above 90% usage. Running 3 imports at a time, the imports happen roughly at 2k records / second FOR EACH IMPORT. Oddly, if I run more than 4 imports at a time, the processor usage drops back to ~70% for some reason and in fact each import slows to ~500 imports / second. This may have to do with the limits of disk streaming off of the machine that holds the source text files. The source files come from a second machine, all the files on the same disk / directory, over a 1ghz network (switch). I am happy to say though that the new dual processor server appears to be able to perform this specific task ~3 to 6 times as fast which is a huge and much needed performance boost. The other advantage to this configuration is that I am no longer playing games splitting the database up into smaller files residing on individual hard drives, and of course, the whole thing is using raid 6 which provides much needed security. John W. Colby Colby Consulting www.ColbyConsulting.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 bheid at appdevgrp.com Tue Oct 31 11:45:35 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 31 Oct 2006 12:45:35 -0500 Subject: [AccessD] Limit Text in Field In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E5F9DE@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35A29@ADGSERVER> IIRC, if you changed: If Len(Text1.Text) > 40 Then MsgBox "Too many characters" Text1.Text = Left$(Text1.Text, 40) End If to: If Len(Text1.Text) = 40 Then keycode=0 End If It essentially throws away the keystroke if we are already at our maximum. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, October 31, 2006 10:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Limit Text in Field On 31 Oct 2006 at 8:45, Hollis, Virginia wrote: > I tried the ' say your text field is text1, couldn't you put text1 = > left(text1,500) & it didn't like that - it gives a runtime error about > the BeforeUpdate can't save the record. > > Also, Does anyone have something that shows how many characters have > been typed (it shows as they type)? Create another text box Text2 to display the length and then use this: Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) Text2 = Len(Text1.Text) If Len(Text1.Text) > 40 Then MsgBox "Too many characters" Text1.Text = Left$(Text1.Text, 40) End If-- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Oct 31 11:56:20 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2006 09:56:20 -0800 Subject: [AccessD] Limit Text in Field In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01015177@c2k3exchange.pgdp.corp.usec.com> Message-ID: <0J8000B91HRYJOR2@l-daemon> Hi Virginia: Something like this might work: Dim strText(255) as string Dim strtemp(255) as string srText = strText & strTemp You now have a string of around 512 byte. There is a limit, around 4096 byte if my memeory serves me well. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Tuesday, October 31, 2006 4:54 AM To: accessD at databaseadvisors.com Subject: [AccessD] Limit Text in Field I need a field that is longer than the 255 txt, but shorter than a memo. Is there a way to limit the characters entered into a field? I tried this code on the Before Update, but it still let me type more than 500 characters. I also remember seeing someone had an example on limited text and it had a field that showed how many characters were left to type. Does anyone still have that or know where it can be located? '-- File names are limited in length. If Len(GstrFileName) > 500 Then MsgBox "You must limit the length of the Equipment Used to 500 characters", vbExclamation + vbOKOnly, "Text Too Long" Exit Sub End If Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marklbreen at gmail.com Tue Oct 31 11:57:31 2006 From: marklbreen at gmail.com (Mark Breen) Date: Tue, 31 Oct 2006 17:57:31 +0000 Subject: [AccessD] Raid controller In-Reply-To: <002701c6fcc2$89124a10$3e3de844@50NM721> References: <002b01c6fc90$66de1b40$657aa8c0@m6805> <002701c6fcc2$89124a10$3e3de844@50NM721> Message-ID: Hi John, What kind of box are you hosting the disks in, seven disks is quite a few, especially if you have a CD drive or two also. Do you have a seperate tower just for disks? or does your existing case have enough space? Congrats on the controller and disks, sounds great, Mark On 31/10/06, William Hindman wrote: > > ...thanks for the tip JC ...as a matter of fact I was about to look into > just that for a client :) > > William Hindman > > ----- Original Message ----- > From: "JWColby" > To: "'Access Developers discussion and problem solving'" > ; "'Discussion of Hardware and Software > issues'" ; > > Sent: Monday, October 30, 2006 9:00 PM > Subject: [AccessD] Raid controller > > > >I purchased an Areca 1220 SATA 8 disk raid controller, with (7) Seagate > >10.1 > > 320 gb hard disks to create a raid system with. One of the disks was > > damaged and had to be RMAd. I went ahead and created a Raid 5 array > using > > the 6 remaining drives. This gave me about 1.0 terra bytes on one > volume > > and about 370 gb on another volume, both Raid 5. I just received the > RMAd > > drive back, popped it in, added it to the array and told the controller > to > > convert to Raid 6 for both volumes. That was early this afternoon, and > > the > > controller has finished the conversion of the large array to Raid 6 and > is > > about 50% finished converting the smaller array to Raid 6, all consuming > > ZERO CPU and doing so while I was using the arrays pretty heavily. The > > controller is also very fast. Raid 5/6 writes are about the speed of > the > > individual drives and reads are much faster (~raid 0 speed according to > > Areca) > > > > These disks are about $95 from Newegg and can be purchased with free > > shipping if you keep your eyes open so that is a real $95 / disk. This > > particular controller is currently about $500. This made my actual cost > > about $1200 for 1400gb in a Raid 6 config. > > > > Someday I hope that the Seagate 10.1 750 gb drives drop into this price > > range in which case I will upgrade. ATM those drives are about > $375-$400 > > each which makes them out of my range. > > > > I am impressed with this Areca controller which is the point of this > > email. > > Areca makes controllers that handle various numbers of disks. The > > controller uses a PCI-X8 connection to the CPU so you must have a PCI-X > > capable motherboard. > > > > If you need more disks, they also have a 12, 16 and 24 disk controller, > > for > > more money of course. > > > > Nice controller so far! > > > > John W. Colby > > Colby Consulting > > 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 Gustav at cactus.dk Tue Oct 31 11:57:48 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 31 Oct 2006 18:57:48 +0100 Subject: [AccessD] SQL Server observed performance Message-ID: Hi Rusty Yes, or - if SQL Server 2005 - SSIS FastParse option: http://weblogs.sqlteam.com/mladenp/archive/2006/05/26/9992.aspx /gustav >>> rusty.hammond at cpiqpc.com 31-10-2006 18:37:00 >>> John, You might look at the BULK INSERT statement in SQL. The import of the text file is done by the server itself. I would imagine you'll see an even better performance boost for the import. Rusty From accessd at shaw.ca Tue Oct 31 11:58:35 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2006 09:58:35 -0800 Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? In-Reply-To: <20061031141810.69743.qmail@web31606.mail.mud.yahoo.com> Message-ID: <0J8000B0UHWXJPF2@l-daemon> Hi Sad: The following link might help: (watch for wrap) http://www.aspfree.com/c/a/Microsoft-Access/Connecting-to-a-Microsoft-Access -database-with-ASPNET/ HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Tuesday, October 31, 2006 6:18 AM To: Acces User Group Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? Hi group, does anybody know how difficult it is to open a report in an Access 2003 database using Asp.Net? We're using an intranet and VPN. So that shouldn't be the big issue. Thnx in @vance. Regards, Sander -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Oct 31 12:01:48 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2006 10:01:48 -0800 Subject: [AccessD] Record Maximum In-Reply-To: <96190DA9E0A10A4CB36E4B71367E55C14D1497@srcimail1.ds.doc.state.or.us> Message-ID: <0J8000CTCI0XH2M0@l-daemon> Hi Mike: The size limit is aroud 2 GB of total MDB database size. The record count depends on the data type and number of fields. For example a MDB could reach the limits if there are a 1000 records with pictures embedded. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Monday, October 30, 2006 1:38 PM To: Access Developers discussion and problem solving Subject: [AccessD] Record Maximum Hi Everyone, Just a quick question. What is the maximum or the most records that anyone has seen in a table before the database started to degrade in permormance. What would you consider the maximum record count before archiving? TIA for your thoughts, Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Oct 31 12:12:03 2006 From: john at winhaven.net (John Bartow) Date: Tue, 31 Oct 2006 12:12:03 -0600 Subject: [AccessD] Limit Text in Field In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01015177@c2k3exchange.pgdp.corp.usec.com> Message-ID: <026601c6fd18$11f1f5b0$1402a8c0@ScuzzPaq> Hi Virginia, FWIW, here's the on change event procedure that I use with a fax form on which the "regarding" line field (Text 255) is not long enough for a huge description but the txtMessage field (Memo) is: Private Sub txtRegarding_Change() 'Comment: prevents user form adding too much text to the regarding line On Error GoTo Form_Open_ERR If Len(Me.txtRegarding.Text) > 255 Then MsgBox "The regarding line can only contain 255 characters, " & _ "please use the message box for longer text." Me.txtRegarding.Text = Left(Me.txtRegarding.Text, 255) End If Form_Open_EXIT: Exit Sub Form_Open_ERR: MsgBox Err.Description Resume Form_Open_EXIT End Sub HTH John B. From jwcolby at colbyconsulting.com Tue Oct 31 12:15:16 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 31 Oct 2006 13:15:16 -0500 Subject: [AccessD] SQL Server observed performance In-Reply-To: Message-ID: <000101c6fd18$84b8e4f0$657aa8c0@m6805> Of course the first question is, are we comparing apples to apples? These are records with ~700 fields, coming out of text files of 3 million records each. Having no experience with MySQL and very little with SQL Server, I don't wish to imply that MySQL wouldn't be faster, in fact I have heard that it is but without doing a direct comparison of the same file such things are less than useful. I could supply one of the input files if you want to do an import and see what you come up with. It is only ~350 mbytes zipped. And then I could work with an SQL Server guru to do whatever they think would optimize the SQL Server side. That would make an interesting comparison. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 31, 2006 12:03 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SQL Server observed performance Hi John Under some specific conditions you could easily increase import speed about 20 fold with MySQL: http://databaseadvisors.com/mailman/htdig/accessd/2006-May/043865.html And "modest hardware" indeed: IBM PC300, 266 MHz CPU, 256 MB ram, one IDE drive. Of course, you would need to build indices etc. later, but still ... /gustav >>> jwcolby at colbyconsulting.com 31-10-2006 17:20:43 >>> I thought you guys might find this interesting. I have a database that I imported a couple of years ago. On a single processor 3 ghz AMD64 running 2 mbytes of memory, using (4) individual IDE 250gb hard drives (no raid) the system would import ~ 1000 rows per second into SQL Server. Each text file was ~10 gbytes, consisted of ~700 fields and 3 million records per file. Each field was originally padded right with spaces (comma delimited, but fixed width). This time around, I built an Access (really just VBA) preprocessor to open each file, read it line by line, strip all of the padding off the left and right sides (there was some left padding as well) and write it back out to another file. This dropped the average text file size to ~ 6.5 gbytes, which leaves us with average padding of well over 35%. It also left the resulting data in the unpadded after importing into SQL Server which makes sorts / searches and indexes possible. Anyway, after stripping all of this padding and building new files, I am now importing these into my new server which is a AMD64 X2 dual processor 3.8 ghz with 2 gbytes of ram. The disk subsystem is now a pair of volumes hosted on a raid 6 array, 1 tbyte for the main data store and ~400 gb for the temp databases. The new system imports the new (stripped) data files at about 3000 records per second. I have to run 3 imports at a time to keep both cores above 90% usage. Running 3 imports at a time, the imports happen roughly at 2k records / second FOR EACH IMPORT. Oddly, if I run more than 4 imports at a time, the processor usage drops back to ~70% for some reason and in fact each import slows to ~500 imports / second. This may have to do with the limits of disk streaming off of the machine that holds the source text files. The source files come from a second machine, all the files on the same disk / directory, over a 1ghz network (switch). I am happy to say though that the new dual processor server appears to be able to perform this specific task ~3 to 6 times as fast which is a huge and much needed performance boost. The other advantage to this configuration is that I am no longer playing games splitting the database up into smaller files residing on individual hard drives, and of course, the whole thing is using raid 6 which provides much needed security. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Oct 31 12:29:49 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 31 Oct 2006 19:29:49 +0100 Subject: [AccessD] SQL Server observed performance Message-ID: Hi John That's right. If it would be of any help for you, I could download your test file from an FTP server and run a test - if you e-mail me privately the access details. /gustav >>> jwcolby at colbyconsulting.com 31-10-2006 19:15:16 >>> Of course the first question is, are we comparing apples to apples? These are records with ~700 fields, coming out of text files of 3 million records each. Having no experience with MySQL and very little with SQL Server, I don't wish to imply that MySQL wouldn't be faster, in fact I have heard that it is but without doing a direct comparison of the same file such things are less than useful. I could supply one of the input files if you want to do an import and see what you come up with. It is only ~350 mbytes zipped. And then I could work with an SQL Server guru to do whatever they think would optimize the SQL Server side. That would make an interesting comparison. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 31, 2006 12:03 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SQL Server observed performance Hi John Under some specific conditions you could easily increase import speed about 20 fold with MySQL: http://databaseadvisors.com/mailman/htdig/accessd/2006-May/043865.html And "modest hardware" indeed: IBM PC300, 266 MHz CPU, 256 MB ram, one IDE drive. Of course, you would need to build indices etc. later, but still ... /gustav >>> jwcolby at colbyconsulting.com 31-10-2006 17:20:43 >>> I thought you guys might find this interesting. I have a database that I imported a couple of years ago. On a single processor 3 ghz AMD64 running 2 mbytes of memory, using (4) individual IDE 250gb hard drives (no raid) the system would import ~ 1000 rows per second into SQL Server. Each text file was ~10 gbytes, consisted of ~700 fields and 3 million records per file. Each field was originally padded right with spaces (comma delimited, but fixed width). This time around, I built an Access (really just VBA) preprocessor to open each file, read it line by line, strip all of the padding off the left and right sides (there was some left padding as well) and write it back out to another file. This dropped the average text file size to ~ 6.5 gbytes, which leaves us with average padding of well over 35%. It also left the resulting data in the unpadded after importing into SQL Server which makes sorts / searches and indexes possible. Anyway, after stripping all of this padding and building new files, I am now importing these into my new server which is a AMD64 X2 dual processor 3.8 ghz with 2 gbytes of ram. The disk subsystem is now a pair of volumes hosted on a raid 6 array, 1 tbyte for the main data store and ~400 gb for the temp databases. The new system imports the new (stripped) data files at about 3000 records per second. I have to run 3 imports at a time to keep both cores above 90% usage. Running 3 imports at a time, the imports happen roughly at 2k records / second FOR EACH IMPORT. Oddly, if I run more than 4 imports at a time, the processor usage drops back to ~70% for some reason and in fact each import slows to ~500 imports / second. This may have to do with the limits of disk streaming off of the machine that holds the source text files. The source files come from a second machine, all the files on the same disk / directory, over a 1ghz network (switch). I am happy to say though that the new dual processor server appears to be able to perform this specific task ~3 to 6 times as fast which is a huge and much needed performance boost. The other advantage to this configuration is that I am no longer playing games splitting the database up into smaller files residing on individual hard drives, and of course, the whole thing is using raid 6 which provides much needed security. John W. Colby Colby Consulting www.ColbyConsulting.com From accessd at shaw.ca Tue Oct 31 12:46:58 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2006 10:46:58 -0800 Subject: [AccessD] checkbox concatenation In-Reply-To: Message-ID: <0J8000C3UK46H3N0@l-daemon> ...and a further comment: If the table was growing *logarithmically*, William would be delighted! The problem is that it is growing *geometrically*. Reading the Cache doc, a bitmap index may just do the trick, especially as the max number of events is probably not that large. Since this is a sparse array problem, it may also work well with an R-tree (as found in PostgreSQL). Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 31, 2006 9:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] checkbox concatenation Hi William That would require an engine capable of bit-mapped indexing and searching. At least one can do this, InterSystems Cach?: http://www.intersystems.com/cache/ http://www.intersystems.com/cache/technology/components/bitmap/index.html /gustav >>> wdhindman at dejpolsystems.com 31-10-2006 15:47:51 >>> ...given four tables tblContact pk ContactID fk CompanyId tblCompany pk CompanyID tbEvent pk EventID tblEventReg pkERID fk EventID fk CompanyD fk ContactID ...tblEventRegistration is a join table to show which contacts from which companies attended which events. ...given that thousands of contacts attend each event, tblEventReg is growing logarithmically Q: is it feasible to use a numeric field in the tblContacts to replace tblEventReg by using event checkboxes instead, assigning them a numeric value by show and then mathematically summing them in the numeric field ...thus using one integer to represent every event attended by that contact? ...yes/no? ...pros/cons? William Hindman -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Oct 31 13:51:09 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 31 Oct 2006 11:51:09 -0800 Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C740464A859@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C740464A859@TTNEXCHCL2.hshhp.com> Message-ID: <4547A92D.6010004@shaw.ca> Here is how to do with ASP, not sure about ASP.net Create XML Web Reports From Access XP http://amazecreations.com/datafast/ShowArticle.aspx?File=Articles/xmlrptexample.htm It would involve Posting the output produced from code like this Sub ExportReport() ' Purpose: Exports the Invoice table as well as ' the presentation and image files. In addition, ' a file containing the ReportML is created as ' denoted by setting the OtherFlags flag equal ' to 16. Const CREATE_REPORTML = 16 Application.ExportXML _ ObjectType:=acExportReport, _ DataSource:="Invoice", _ DataTarget:="C:\Invoice.xml", _ PresentationTarget:="C:\InvoiceReport.xsl", _ ImageTarget:="C:\Images", _ OtherFlags:=CREATE_REPORTML End Sub Jim DeMarco wrote: >Sander, > >I read an interestig article a while back that detailed how to use >Access as the reporting engine for ASP.NET applications. In short it >involves getting input from your user and running the report in Access >(installed on server I'd imagine). The report is then exported to XML >from Access by your .NET app. Access does a real good job of creating >XML/XSL so the reports will look like Access reports. > >I hope that makes sense (and helps). > > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der >Sent: Tuesday, October 31, 2006 9:18 AM >To: Acces User Group >Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? > >Hi group, > >does anybody know how difficult it is to open a report in an Access 2003 >database using Asp.Net? >We're using an intranet and VPN. So that shouldn't be the big issue. > >Thnx in @vance. > >Regards, > >Sander > > > > >-- >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 wdhindman at dejpolsystems.com Tue Oct 31 14:08:38 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 31 Oct 2006 15:08:38 -0500 Subject: [AccessD] checkbox concatenation References: <0J8000C3UK46H3N0@l-daemon> Message-ID: <006201c6fd28$5b821a10$3e3de844@50NM721> ...oh come on guys! ...first its my dictionary and if I say it grows logarithmically then that's what it does, eh. ...geometrically! ...balderdash, I say ...where is Charlotte when we need her to maintain discipline? :) ...and then both Gustav and Jim do more than hint that good old Access isn't up to bit mapping this :( ...and of course Stuart takes a gratuitous swing at my joins ...see above ...its MY join, eh! ...sheesh ...if this were the old AccessD ...long before daddyhood mellowed the hell out of JC, I'd just have him Colbyize the lot of you! ...and here I am, still as dazed and confused as when I first posted ...early Alzheimer's anyone? ...thanks :) William Hindman ----- Original Message ----- From: "Jim Lawrence" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, October 31, 2006 1:46 PM Subject: Re: [AccessD] checkbox concatenation ...and a further comment: If the table was growing *logarithmically*, William would be delighted! The problem is that it is growing *geometrically*. Reading the Cache doc, a bitmap index may just do the trick, especially as the max number of events is probably not that large. Since this is a sparse array problem, it may also work well with an R-tree (as found in PostgreSQL). Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 31, 2006 9:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] checkbox concatenation Hi William That would require an engine capable of bit-mapped indexing and searching. At least one can do this, InterSystems Cach?: http://www.intersystems.com/cache/ http://www.intersystems.com/cache/technology/components/bitmap/index.html /gustav >>> wdhindman at dejpolsystems.com 31-10-2006 15:47:51 >>> ...given four tables tblContact pk ContactID fk CompanyId tblCompany pk CompanyID tbEvent pk EventID tblEventReg pkERID fk EventID fk CompanyD fk ContactID ...tblEventRegistration is a join table to show which contacts from which companies attended which events. ...given that thousands of contacts attend each event, tblEventReg is growing logarithmically Q: is it feasible to use a numeric field in the tblContacts to replace tblEventReg by using event checkboxes instead, assigning them a numeric value by show and then mathematically summing them in the numeric field ...thus using one integer to represent every event attended by that contact? ...yes/no? ...pros/cons? William Hindman -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Oct 31 14:10:31 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 31 Oct 2006 15:10:31 -0500 Subject: [AccessD] Raid controller In-Reply-To: Message-ID: <000601c6fd28$9e622870$657aa8c0@m6805> Mark, This is a Lian Li case: http://www.newegg.com/product/product.asp?item=N82E16811112108 It has dedicated space for 12 3.5" disks down in the bottom of the case as well as two power supplies (not included). There is also space for SEVEN 5.25" drives up in the front of the case, forward of the motherboard. This case is... shall we say "large". I really like the case. 8~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Tuesday, October 31, 2006 12:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Raid controller Hi John, What kind of box are you hosting the disks in, seven disks is quite a few, especially if you have a CD drive or two also. Do you have a seperate tower just for disks? or does your existing case have enough space? Congrats on the controller and disks, sounds great, Mark On 31/10/06, William Hindman wrote: > > ...thanks for the tip JC ...as a matter of fact I was about to look > into just that for a client :) > > William Hindman > > ----- Original Message ----- > From: "JWColby" > To: "'Access Developers discussion and problem solving'" > ; "'Discussion of Hardware and Software > issues'" ; > > Sent: Monday, October 30, 2006 9:00 PM > Subject: [AccessD] Raid controller > > > >I purchased an Areca 1220 SATA 8 disk raid controller, with (7) > >Seagate > >10.1 > > 320 gb hard disks to create a raid system with. One of the disks > >was damaged and had to be RMAd. I went ahead and created a Raid 5 > >array > using > > the 6 remaining drives. This gave me about 1.0 terra bytes on one > volume > > and about 370 gb on another volume, both Raid 5. I just received > > the > RMAd > > drive back, popped it in, added it to the array and told the > > controller > to > > convert to Raid 6 for both volumes. That was early this afternoon, > > and the controller has finished the conversion of the large array to > > Raid 6 and > is > > about 50% finished converting the smaller array to Raid 6, all > > consuming ZERO CPU and doing so while I was using the arrays pretty > > heavily. The controller is also very fast. Raid 5/6 writes are > > about the speed of > the > > individual drives and reads are much faster (~raid 0 speed according > > to > > Areca) > > > > These disks are about $95 from Newegg and can be purchased with free > > shipping if you keep your eyes open so that is a real $95 / disk. > > This particular controller is currently about $500. This made my > > actual cost about $1200 for 1400gb in a Raid 6 config. > > > > Someday I hope that the Seagate 10.1 750 gb drives drop into this > > price range in which case I will upgrade. ATM those drives are > > about > $375-$400 > > each which makes them out of my range. > > > > I am impressed with this Areca controller which is the point of this > > email. > > Areca makes controllers that handle various numbers of disks. The > > controller uses a PCI-X8 connection to the CPU so you must have a > > PCI-X capable motherboard. > > > > If you need more disks, they also have a 12, 16 and 24 disk > > controller, for more money of course. > > > > Nice controller so far! > > > > John W. Colby > > Colby Consulting > > 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 gjgiever at myway.com Tue Oct 31 14:14:31 2006 From: gjgiever at myway.com (Gary J. Giever) Date: Tue, 31 Oct 2006 15:14:31 -0500 (EST) Subject: [AccessD] Opening Access 97 Message-ID: <20061031201431.6788B67686@mprdmxin.myway.com> I remember having a program that prevented one from opening an Access 97 database by holding down the shift key while opening the database, thus getting access to the tables. I can't find it now or maybe I imagined the whole thing. Does this sound familiar to anyone out there? Gary J. Giever, M.A. Applications Developer ACCMHS _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From garykjos at gmail.com Tue Oct 31 14:19:19 2006 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 31 Oct 2006 14:19:19 -0600 Subject: [AccessD] checkbox concatenation In-Reply-To: <006201c6fd28$5b821a10$3e3de844@50NM721> References: <0J8000C3UK46H3N0@l-daemon> <006201c6fd28$5b821a10$3e3de844@50NM721> Message-ID: Ah yes, the good old days. Sigh! GK On 10/31/06, William Hindman wrote: > ...oh come on guys! ...first its my dictionary and if I say it grows > logarithmically then that's what it does, eh. > ...geometrically! ...balderdash, I say ...where is Charlotte when we need > her to maintain discipline? :) > > ...and then both Gustav and Jim do more than hint that good old Access isn't > up to bit mapping this :( > > ...and of course Stuart takes a gratuitous swing at my joins ...see above > ...its MY join, eh! > > ...sheesh ...if this were the old AccessD ...long before daddyhood mellowed > the hell out of JC, I'd just have him Colbyize the lot of you! > > ...and here I am, still as dazed and confused as when I first posted > ...early Alzheimer's anyone? > > ...thanks :) > > William Hindman -- Gary Kjos garykjos at gmail.com From bill_Patten at earthlink.net Tue Oct 31 14:34:17 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Tue, 31 Oct 2006 12:34:17 -0800 Subject: [AccessD] Opening Access 97 References: <20061031201431.6788B67686@mprdmxin.myway.com> Message-ID: <00fe01c6fd2b$f370e100$0202fea9@BPCS> Hi Gary, I'm pretty sure I used this back in the 97 version Hope this helps. ChangeProperty "AllowBypassKey", dbBoolean, True ' (True to allow , false to disallow) Some of the others that may be handy. ***************************** ChangeProperty "StartupShowDBWindow", dbBoolean, False ChangeProperty "StartupShowStatusBar", dbBoolean, True ChangeProperty "AllowBuiltinToolbars", dbBoolean, True ChangeProperty "AllowFullMenus", dbBoolean, True ChangeProperty "AllowBreakIntoCode", dbBoolean, False ChangeProperty "AllowSpecialKeys", dbBoolean, True ***************************** Function ChangeProperty(strPropName As String, varPropType As Variant, varPropValue As Variant) As Integer Dim dbs As Database, prp As Property Const conPropNotFoundError = 3270 Set dbs = CurrentDb On Error GoTo Change_Err dbs.Properties(strPropName) = varPropValue ChangeProperty = True Change_Bye: Exit Function Change_Err: If Err = conPropNotFoundError Then ' Property not found. Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue) dbs.Properties.Append prp Resume Next Else ' Unknown error. ChangeProperty = False Resume Change_Bye End If End Function ----- Original Message ----- From: "Gary J. Giever" To: Sent: Tuesday, October 31, 2006 12:14 PM Subject: [AccessD] Opening Access 97 I remember having a program that prevented one from opening an Access 97 database by holding down the shift key while opening the database, thus getting access to the tables. I can't find it now or maybe I imagined the whole thing. Does this sound familiar to anyone out there? Gary J. Giever, M.A. Applications Developer ACCMHS _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Oct 31 15:39:21 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 31 Oct 2006 21:39:21 +0000 Subject: [AccessD] Opening Access 97 In-Reply-To: <00fe01c6fd2b$f370e100$0202fea9@BPCS> Message-ID: Gary, I used the same thing...but from my past experience I will share this...build the backdoor FIRST!!! The first db I disabled "AllowBypassKey"...I forgot about how to get back into it...lol..I ended up importing all objects...but scary at first. Good luck. Thanks, Mark A. Matte >From: "Bill Patten" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Opening Access 97 >Date: Tue, 31 Oct 2006 12:34:17 -0800 > >Hi Gary, > >I'm pretty sure I used this back in the 97 version > >Hope this helps. > >ChangeProperty "AllowBypassKey", dbBoolean, True ' (True to allow , false >to >disallow) > > > Some of the others that may be handy. >***************************** > ChangeProperty "StartupShowDBWindow", dbBoolean, False > ChangeProperty "StartupShowStatusBar", dbBoolean, True > ChangeProperty "AllowBuiltinToolbars", dbBoolean, True > ChangeProperty "AllowFullMenus", dbBoolean, True > ChangeProperty "AllowBreakIntoCode", dbBoolean, False > ChangeProperty "AllowSpecialKeys", dbBoolean, True >***************************** >Function ChangeProperty(strPropName As String, varPropType As Variant, >varPropValue As Variant) As Integer > Dim dbs As Database, prp As Property > Const conPropNotFoundError = 3270 > Set dbs = CurrentDb > On Error GoTo Change_Err > dbs.Properties(strPropName) = varPropValue > ChangeProperty = True > >Change_Bye: > Exit Function > >Change_Err: > If Err = conPropNotFoundError Then ' Property not found. > Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue) > dbs.Properties.Append prp > Resume Next > Else > ' Unknown error. > ChangeProperty = False > Resume Change_Bye > End If > >End Function >----- Original Message ----- >From: "Gary J. Giever" >To: >Sent: Tuesday, October 31, 2006 12:14 PM >Subject: [AccessD] Opening Access 97 > > > >I remember having a program that prevented one from opening an Access 97 >database by holding down the shift key while opening the database, thus >getting access to the tables. I can't find it now or maybe I imagined the >whole thing. Does this sound familiar to anyone out there? > > >Gary J. Giever, M.A. >Applications Developer >ACCMHS > >_______________________________________________ >No banners. No pop-ups. No kidding. >Make My Way your home on the Web - http://www.myway.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ From bill_Patten at earthlink.net Tue Oct 31 16:17:38 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Tue, 31 Oct 2006 14:17:38 -0800 Subject: [AccessD] Opening Access 97 References: Message-ID: <010a01c6fd3a$63a9ca00$0202fea9@BPCS> Hey Mark, your right, actually I use a special log in password and it test to see if one of the items is true and if so it sets all of them to False, and if false sets them all to true. It's just switches back an forth. Been using if for several years to lock stuff for my customers and unlock them so I can work on them. Bill ----- Original Message ----- From: "Mark A Matte" To: Sent: Tuesday, October 31, 2006 1:39 PM Subject: Re: [AccessD] Opening Access 97 Gary, I used the same thing...but from my past experience I will share this...build the backdoor FIRST!!! The first db I disabled "AllowBypassKey"...I forgot about how to get back into it...lol..I ended up importing all objects...but scary at first. Good luck. Thanks, Mark A. Matte >From: "Bill Patten" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Opening Access 97 >Date: Tue, 31 Oct 2006 12:34:17 -0800 > >Hi Gary, > >I'm pretty sure I used this back in the 97 version > >Hope this helps. > >ChangeProperty "AllowBypassKey", dbBoolean, True ' (True to allow , false >to >disallow) > > > Some of the others that may be handy. >***************************** > ChangeProperty "StartupShowDBWindow", dbBoolean, False > ChangeProperty "StartupShowStatusBar", dbBoolean, True > ChangeProperty "AllowBuiltinToolbars", dbBoolean, True > ChangeProperty "AllowFullMenus", dbBoolean, True > ChangeProperty "AllowBreakIntoCode", dbBoolean, False > ChangeProperty "AllowSpecialKeys", dbBoolean, True >***************************** >Function ChangeProperty(strPropName As String, varPropType As Variant, >varPropValue As Variant) As Integer > Dim dbs As Database, prp As Property > Const conPropNotFoundError = 3270 > Set dbs = CurrentDb > On Error GoTo Change_Err > dbs.Properties(strPropName) = varPropValue > ChangeProperty = True > >Change_Bye: > Exit Function > >Change_Err: > If Err = conPropNotFoundError Then ' Property not found. > Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue) > dbs.Properties.Append prp > Resume Next > Else > ' Unknown error. > ChangeProperty = False > Resume Change_Bye > End If > >End Function >----- Original Message ----- >From: "Gary J. Giever" >To: >Sent: Tuesday, October 31, 2006 12:14 PM >Subject: [AccessD] Opening Access 97 > > > >I remember having a program that prevented one from opening an Access 97 >database by holding down the shift key while opening the database, thus >getting access to the tables. I can't find it now or maybe I imagined the >whole thing. Does this sound familiar to anyone out there? > > >Gary J. Giever, M.A. >Applications Developer >ACCMHS > >_______________________________________________ >No banners. No pop-ups. No kidding. >Make My Way your home on the Web - http://www.myway.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_Patten at earthlink.net Tue Oct 31 16:19:25 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Tue, 31 Oct 2006 14:19:25 -0800 Subject: [AccessD] Opening Access 97 References: Message-ID: <010d01c6fd3a$a3350810$0202fea9@BPCS> Oh, by the way Gary, you usually have to close the program and reopen it for the changes to take effect. B ----- Original Message ----- From: "Mark A Matte" To: Sent: Tuesday, October 31, 2006 1:39 PM Subject: Re: [AccessD] Opening Access 97 Gary, I used the same thing...but from my past experience I will share this...build the backdoor FIRST!!! The first db I disabled "AllowBypassKey"...I forgot about how to get back into it...lol..I ended up importing all objects...but scary at first. Good luck. Thanks, Mark A. Matte >From: "Bill Patten" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Opening Access 97 >Date: Tue, 31 Oct 2006 12:34:17 -0800 > >Hi Gary, > >I'm pretty sure I used this back in the 97 version > >Hope this helps. > >ChangeProperty "AllowBypassKey", dbBoolean, True ' (True to allow , false >to >disallow) > > > Some of the others that may be handy. >***************************** > ChangeProperty "StartupShowDBWindow", dbBoolean, False > ChangeProperty "StartupShowStatusBar", dbBoolean, True > ChangeProperty "AllowBuiltinToolbars", dbBoolean, True > ChangeProperty "AllowFullMenus", dbBoolean, True > ChangeProperty "AllowBreakIntoCode", dbBoolean, False > ChangeProperty "AllowSpecialKeys", dbBoolean, True >***************************** >Function ChangeProperty(strPropName As String, varPropType As Variant, >varPropValue As Variant) As Integer > Dim dbs As Database, prp As Property > Const conPropNotFoundError = 3270 > Set dbs = CurrentDb > On Error GoTo Change_Err > dbs.Properties(strPropName) = varPropValue > ChangeProperty = True > >Change_Bye: > Exit Function > >Change_Err: > If Err = conPropNotFoundError Then ' Property not found. > Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue) > dbs.Properties.Append prp > Resume Next > Else > ' Unknown error. > ChangeProperty = False > Resume Change_Bye > End If > >End Function >----- Original Message ----- >From: "Gary J. Giever" >To: >Sent: Tuesday, October 31, 2006 12:14 PM >Subject: [AccessD] Opening Access 97 > > > >I remember having a program that prevented one from opening an Access 97 >database by holding down the shift key while opening the database, thus >getting access to the tables. I can't find it now or maybe I imagined the >whole thing. Does this sound familiar to anyone out there? > > >Gary J. Giever, M.A. >Applications Developer >ACCMHS > >_______________________________________________ >No banners. No pop-ups. No kidding. >Make My Way your home on the Web - http://www.myway.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gjgiever at myway.com Tue Oct 31 17:23:03 2006 From: gjgiever at myway.com (Gary J. Giever) Date: Tue, 31 Oct 2006 18:23:03 -0500 (EST) Subject: [AccessD] Opening Access 97 Message-ID: <20061031232303.EEB4C75719@mprdmxin.myway.com> Thank you ver much. I shall try that out. Gary J. Giever, M.A. Applications Developer ACCMHS --- On Tue 10/31, Bill Patten < bill_Patten at earthlink.net > wrote: From: Bill Patten [mailto: bill_Patten at earthlink.net] To: accessd at databaseadvisors.com Date: Tue, 31 Oct 2006 12:34:17 -0800 Subject: Re: [AccessD] Opening Access 97 Hi Gary,I'm pretty sure I used this back in the 97 versionHope this helps.ChangeProperty "AllowBypassKey", dbBoolean, True ' (True to allow , false to disallow) Some of the others that may be handy.***************************** ChangeProperty "StartupShowDBWindow", dbBoolean, False ChangeProperty "StartupShowStatusBar", dbBoolean, True ChangeProperty "AllowBuiltinToolbars", dbBoolean, True ChangeProperty "AllowFullMenus", dbBoolean, True ChangeProperty "AllowBreakIntoCode", dbBoolean, False ChangeProperty "AllowSpecialKeys", dbBoolean, True*****************************Function ChangeProperty(strPropName As String, varPropType As Variant, varPropValue As Variant) As Integer Dim dbs As Database, prp As Property Const conPropNotFoundError = 3270 Set dbs = CurrentDb On Error GoTo Change_Err dbs.Properties(strPropName) = varPropValue ChangeProperty = TrueChange_Bye: Exit FunctionChange_Err: If Err = conPropNotFoundError Then ' Property not found. Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue) dbs.Properties.Append prp Resume Next Else ' Unknown error. ChangeProperty = False Resume Change_Bye End IfEnd Function----- Original Message ----- From: "Gary J. Giever" To: Sent: Tuesday, October 31, 2006 12:14 PMSubject: [AccessD] Opening Access 97I remember having a program that prevented one from opening an Access 97 database by holding down the shift key while opening the database, thus getting access to the tables. I can't find it now or maybe I imagined the whole thing. Does this sound familiar to anyone out there?Gary J. Giever, M.A.Applications DeveloperACCMHS_______________________________________________No banners. No pop-ups. No kidding.Make My Way your home on the Web - http://www.myway.com-- AccessD mailing listAccessD at databaseadvisors.comhttp://databaseadvisors.com/mailman/listinfo/accessdWebsite: http://www.databaseadvisors.com-- AccessD mailing listAccessD at databaseadvisors.comhttp://databaseadvisors.com/mailman/listinfo/accessdWebsite: http://www.databaseadvisors.com _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From gjgiever at myway.com Tue Oct 31 17:24:09 2006 From: gjgiever at myway.com (Gary J. Giever) Date: Tue, 31 Oct 2006 18:24:09 -0500 (EST) Subject: [AccessD] Opening Access 97 Message-ID: <20061031232409.24E6375733@mprdmxin.myway.com> Thank you for the advise. Gary J. Giever, M.A. Applications Developer ACCMHS --- On Tue 10/31, Mark A Matte < markamatte at hotmail.com > wrote: From: Mark A Matte [mailto: markamatte at hotmail.com] To: accessd at databaseadvisors.com Date: Tue, 31 Oct 2006 21:39:21 +0000 Subject: Re: [AccessD] Opening Access 97 Gary,I used the same thing...but from my past experience I will share this...build the backdoor FIRST!!! The first db I disabled "AllowBypassKey"...I forgot about how to get back into it...lol..I ended up importing all objects...but scary at first.Good luck.Thanks,Mark A. Matte>From: "Bill Patten" >Reply-To: Access Developers discussion and problem >solving>To: "Access Developers discussion and problem >solving">Subject: Re: [AccessD] Opening Access 97>Date: Tue, 31 Oct 2006 12:34:17 -0800>>Hi Gary,>>I'm pretty sure I used this back in the 97 version>>Hope this helps.>>ChangeProperty "AllowBypassKey", dbBoolean, True ' (True to allow , false >to>disallow)>>> Some of the others that may be handy.>*****************************> ChangeProperty "StartupShowDBWindow", dbBoolean, False> ChangeProperty "StartupShowStatusBar", dbBoolean, True> ChangeProperty "AllowBuiltinToolbars", dbBoolean, True> ChangeProperty "AllowFullMenus", dbBoolean, True> ChangeProperty "AllowBreakIntoCode", dbBoolean, False> ChangeProperty "AllowSpecialKeys", dbBoolean, True>*****************************>Function ChangeProperty(strPropName As String, varPropType As Variant,>varPropValue As Variant) As Integer> Dim dbs As Database, prp As Property> Const conPropNotFoundError = 3270> Set dbs = CurrentDb> On Error GoTo Change_Err> dbs.Properties(strPropName) = varPropValue> ChangeProperty = True>>Change_Bye:> Exit Function>>Change_Err:> If Err = conPropNotFoundError Then ' Property not found.> Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue)> dbs.Properties.Append prp> Resume Next> Else> ' Unknown error.> ChangeProperty = False> Resume Change_Bye> End If>>End Function>----- Original Message ----->From: "Gary J. Giever" >To: >Sent: Tuesday, October 31, 2006 12:14 PM>Subject: [AccessD] Opening Access 97>>>>I remember having a program that prevented one from opening an Access 97>database by holding down the shift key while opening the database, thus>getting access to the tables. I can't find it now or maybe I imagined the>whole thing. Does this sound familiar to anyone out there?>>>Gary J. Giever, M.A.>Applications Developer>ACCMHS>>_______________________________________________>No banners. No pop-ups. No kidding.>Make My Way your home on the Web - http://www.myway.com>>>-->AccessD mailing list>AccessD at databaseadvisors.com>http://databaseadvisors.com/mailman/listinfo/accessd>Website: http://www.databaseadvisors.com>>-->AccessD mailing list>AccessD at databaseadvisors.com>http://databaseadvisors.com/mailman/listinfo/accessd>Website: http://www.databaseadvisors.com_________________________________________________________________Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/-- AccessD mailing listAccessD at databaseadvisors.comhttp://databaseadvisors.com/mailman/listinfo/accessdWebsite: http://www.databaseadvisors.com _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From gjgiever at myway.com Tue Oct 31 17:27:46 2006 From: gjgiever at myway.com (Gary J. Giever) Date: Tue, 31 Oct 2006 18:27:46 -0500 (EST) Subject: [AccessD] Opening Access 97 Message-ID: <20061031232746.8A02775735@mprdmxin.myway.com> Thank you. I wasn't sure where to look. This helps a lot. Gary J. Giever, M.A. Applications Developer ACCMHS --- On Tue 10/31, Bill Patten < bill_Patten at earthlink.net > wrote: From: Bill Patten [mailto: bill_Patten at earthlink.net] To: accessd at databaseadvisors.com Date: Tue, 31 Oct 2006 14:19:25 -0800 Subject: Re: [AccessD] Opening Access 97 Oh, by the way Gary, you usually have to close the program and reopen it for the changes to take effect.B----- Original Message ----- From: "Mark A Matte" To: Sent: Tuesday, October 31, 2006 1:39 PMSubject: Re: [AccessD] Opening Access 97Gary,I used the same thing...but from my past experience I will sharethis...build the backdoor FIRST!!! The first db I disabled"AllowBypassKey"...I forgot about how to get back into it...lol..I ended upimporting all objects...but scary at first.Good luck.Thanks,Mark A. Matte>From: "Bill Patten" >Reply-To: Access Developers discussion and problem>solving>To: "Access Developers discussion and problem>solving">Subject: Re: [AccessD] Opening Access 97>Date: Tue, 31 Oct 2006 12:34:17 -0800>>Hi Gary,>>I'm pretty sure I used this back in the 97 version>>Hope this helps.>>ChangeProperty "AllowBypassKey", dbBoolean, True ' (True to allow , false>to>disallow)>>> Some of the others that may be handy.>*****************************> ChangeProperty "StartupShowDBWindow", dbBoolean, False> ChangeProperty "StartupShowStatusBar", dbBoolean, True> ChangeProperty "AllowBuiltinToolbars", dbBoolean, True> ChangeProperty "AllowFullMenus", dbBoolean, True> ChangeProperty "AllowBreakIntoCode", dbBoolean, False> ChangeProperty "AllowSpecialKeys", dbBoolean, True>*****************************>Function ChangeProperty(strPropName As String, varPropType As Variant,>varPropValue As Variant) As Integer> Dim dbs As Database, prp As Property> Const conPropNotFoundError = 3270> Set dbs = CurrentDb> On Error GoTo Change_Err> dbs.Properties(strPropName) = varPropValue> ChangeProperty = True>>Change_Bye:> Exit Function>>Change_Err:> If Err = conPropNotFoundError Then ' Property not found.> Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue)> dbs.Properties.Append prp> Resume Next> Else> ' Unknown error.> ChangeProperty = False> Resume Change_Bye> End If>>End Function>----- Original Message ----->From: "Gary J. Giever" >To: >Sent: Tuesday, October 31, 2006 12:14 PM>Subject: [AccessD] Opening Access 97>>>>I remember having a program that prevented one from opening an Access 97>database by holding down the shift key while opening the database, thus>getting access to the tables. I can't find it now or maybe I imagined the>whole thing. Does this sound familiar to anyone out there?>>>Gary J. Giever, M.A.>Applications Developer>ACCMHS>>_______________________________________________>No banners. No pop-ups. No kidding.>Make My Way your home on the Web - http://www.myway.com>>>-->AccessD mailing list>AccessD at databaseadvisors.com>http://databaseadvisors.com/mailman/listinfo/accessd>Website: http://www.databaseadvisors.com>>-->AccessD mailing list>AccessD at databaseadvisors.com>http://databaseadvisors.com/mailman/listinfo/accessd>Website: http://www.databaseadvisors.com_________________________________________________________________Get FREE company branded e-mail accounts and business Web site fromMicrosoft Office Livehttp://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/-- AccessD mailing listAccessD at databaseadvisors.comhttp://databaseadvisors.com/mailman/listinfo/accessdWebsite: http://www.databaseadvisors.com-- AccessD mailing listAccessD at databaseadvisors.comhttp://databaseadvisors.com/mailman/listinfo/accessdWebsite: http://www.databaseadvisors.com _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From martyconnelly at shaw.ca Tue Oct 31 19:03:03 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 31 Oct 2006 17:03:03 -0800 Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? In-Reply-To: <20061031141810.69743.qmail@web31606.mail.mud.yahoo.com> References: <20061031141810.69743.qmail@web31606.mail.mud.yahoo.com> Message-ID: <4547F247.4020402@shaw.ca> There is also this product that will convert an Access Report to ASP.Net code http://www.datadynamics.com/Products/ProductOverview.aspx?Product=ARNET3 Sad Der wrote: >Hi group, > >does anybody know how difficult it is to open a report in an Access 2003 database using Asp.Net? >We're using an intranet and VPN. So that shouldn't be the big issue. > >Thnx in @vance. > >Regards, > >Sander > > > > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Tue Oct 31 19:29:56 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2006 17:29:56 -0800 Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? In-Reply-To: <4547F247.4020402@shaw.ca> Message-ID: <0J8100CEA2RRH0Y0@l-daemon> Wow!... that is a little over the top unless you have or have a client with deep pockets... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, October 31, 2006 5:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: ASP.Net Opening Access 2003 reports? There is also this product that will convert an Access Report to ASP.Net code http://www.datadynamics.com/Products/ProductOverview.aspx?Product=ARNET3 Sad Der wrote: >Hi group, > >does anybody know how difficult it is to open a report in an Access 2003 database using Asp.Net? >We're using an intranet and VPN. So that shouldn't be the big issue. > >Thnx in @vance. > >Regards, > >Sander > > > > > > -- 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 michael at ddisolutions.com.au Tue Oct 31 20:31:05 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 1 Nov 2006 13:31:05 +1100 Subject: [AccessD] Ideas wanted for Office project requirements Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116AC6A@ddi-01.DDI.local> Hi all, Slightly OT. I have a client who wants to automate a report writing process. Currently they have about 30 managers who once a month send either a Excel workbook or Word doc to some lucky person. He/she then extracts the contents of each file and pastes it into a Word doc to be made into a report. I don't do much with Office these days so maybe someone will have an easy solution??? Step 1 My favoured idea so far is to create a Com-addin for Word/Excel that will take selected text/objects and paste them into a blank file, the copy the file to a file share. Step 2 the person who collates the files has another addin that loops through the contents of the share dir and opens and copies the contents into fields/bookmarks(?) in a Word doc. A 3rd component may be needed to sync the whole schmoozle. I wonder how sturdy a process like this would be... All responses welcome (except abuse... lol) cheers Michael M From artful at rogers.com Tue Oct 31 22:16:47 2006 From: artful at rogers.com (artful at rogers.com) Date: Tue, 31 Oct 2006 20:16:47 -0800 (PST) Subject: [AccessD] Limit Text in Field Message-ID: <20061101041647.31551.qmail@web88210.mail.re2.yahoo.com> Slick. My only criticism is that it waits for the user to go too far, rather than cautioning the user that he is about to go too far. (I tend toward guiding users to correctness rather than busting them for errors.) Perhaps your code could be modified to write the [length] + " of 255 characters allowed" to the status bar, so the user anticipates the error rather than commits it. Not a big deal. I like your solution. One of my mantras is, "Make the user feel like a dancer." That means preclude error to the best of my ability, and then of course deal with it should it occur. A. ----- Original Message ---- From: John Bartow To: Access Developers discussion and problem solving Sent: Tuesday, October 31, 2006 1:12:03 PM Subject: Re: [AccessD] Limit Text in Field Hi Virginia, FWIW, here's the on change event procedure that I use with a fax form on which the "regarding" line field (Text 255) is not long enough for a huge description but the txtMessage field (Memo) is: Private Sub txtRegarding_Change() 'Comment: prevents user form adding too much text to the regarding line On Error GoTo Form_Open_ERR If Len(Me.txtRegarding.Text) > 255 Then MsgBox "The regarding line can only contain 255 characters, " & _ "please use the message box for longer text." Me.txtRegarding.Text = Left(Me.txtRegarding.Text, 255) End If Form_Open_EXIT: Exit Sub Form_Open_ERR: MsgBox Err.Description Resume Form_Open_EXIT End Sub HTH 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 Tue Oct 31 23:54:07 2006 From: john at winhaven.net (John Bartow) Date: Tue, 31 Oct 2006 23:54:07 -0600 Subject: [AccessD] Limit Text in Field In-Reply-To: <20061101041647.31551.qmail@web88210.mail.re2.yahoo.com> Message-ID: <00b301c6fd7a$256c74a0$1402a8c0@ScuzzPaq> Hi Arthur, Good advice to help the user to prevent the error. What you can't see of course is a visual of the form, which was designed to replicate the paper FAX form the company uses. It has a text box large enough for slightly larger than an average "regarding" line on a FAX. While the text length for the field is set to 255, the form "visually encourages" one to only type so much. So, the user would normally not type more into the text box than it appears they have room for. The code I posted was the second level of protection, I doubt it ever gets triggered. :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, October 31, 2006 10:17 PM Slick. My only criticism is that it waits for the user to go too far, rather than cautioning the user that he is about to go too far. (I tend toward guiding users to correctness rather than busting them for errors.) Perhaps your code could be modified to write the [length] + " of 255 characters allowed" to the status bar, so the user anticipates the error rather than commits it. Not a big deal. I like your solution. One of my mantras is, "Make the user feel like a dancer." That means preclude error to the best of my ability, and then of course deal with it should it occur. A. From jwcolby at colbyconsulting.com Sun Oct 1 00:19:00 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 1 Oct 2006 01:19:00 -0400 Subject: [AccessD] uController progress Message-ID: <000501c6e519$1b7bd040$647aa8c0@m6805> Well, it's been a huge weekend. Thursday and Friday I received the Atmel Dragon debug board and all of the parts I ordered. Using the breadboard and an ATMega32 uController I build up a barebones controller. I got the AVR Studio downloaded and the freeware WinAVR 'C' language installed and working through AVR Studio. I compiled and ran an assembler program and watched the pins toggle through the emulator. I then found and created a project for a little 'C' program named "Blinky", ran it and watched it run in the emulator - toggling output pins. I got the Dragon debug board hooked up and talking through the USB port. I then built a JTAG 10 pin cable to hook up the controller circuit to the Dragon and thus to the AVR Studio. I turned on all of the hardware and the AVR Studio can read the internals of the ATMega32 uController on the breadboard. I then compiled the "Blinky" program to a hex file and apparently successfully uploaded the hex file to the uController. It wouldn't run, at least I can't tell that it is. I had set up LEDs on Port A and Blinky used Port D. So I changed the 'C' program (Blinky) to use Port A. Still no go. Sigh. It's 01:15 now and time to get some sleep, see what occurs to me in the morning. I suppose I will go back and throw in LEDs on the Port D pins and go back to the original Blinky to see if that works. If not... Hmm... not sure what. I'm happy though, I have come a long way in a few short days. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sun Oct 1 00:40:15 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 1 Oct 2006 01:40:15 -0400 Subject: [AccessD] Blinky Lives! Message-ID: <001301c6e51c$138e0f80$647aa8c0@m6805> Update, I just got the little 'C' program (Blinky) functioning, talking to the leds on Port A. This is cool! Now I can go to bed! ;-) John W. Colby Colby Consulting www.ColbyConsulting.com From wdhindman at dejpolsystems.com Sun Oct 1 01:07:05 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 1 Oct 2006 02:07:05 -0400 Subject: [AccessD] Blinky Lives! References: <001301c6e51c$138e0f80$647aa8c0@m6805> Message-ID: <007f01c6e51f$d2354090$153ce944@50NM721> ...a man and his toys :) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" ; "'Discussion of Hardware and Software issues'" Sent: Sunday, October 01, 2006 1:40 AM Subject: [AccessD] Blinky Lives! > Update, I just got the little 'C' program (Blinky) functioning, talking to > the leds on Port A. This is cool! > > Now I can go to bed! > > ;-) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -------------------------------------------------------------------------------- > -- > 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 Sun Oct 1 04:01:31 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sun, 1 Oct 2006 11:01:31 +0200 Subject: [AccessD] Access 97 nasty behaviour of subform References: , <005d01c6e4ba$71fec5d0$1800a8c0@s1800> <451F891A.30079.12755964@stuart.lexacorp.com.pg> Message-ID: <000601c6e538$30bdc430$1800a8c0@s1800> thank you, Stuart, seems you are right. must be the Excel table not closing or such. and I think it is not editing the subform. Sometimes a long time delay between closing and opening the mainform agin helps, Now I just found that in case of the error closing and then opening the form fixes it. so this works: Open form run code close form open form close form open form run code and so on I have made sure that all recordsets are set to Nothing, I have set the dirty property of the subform as well as the main form false, I have set the recordsource of the subform to "" in the OnOpen and to the Excel table in the OnLoad. nothing helped. Lembit ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Sunday, October 01, 2006 1:23 AM Subject: Re: [AccessD] Access 97 nasty behaviour of subform > Sounds as though the first instance of the subform gets a lock on the > Excel > table which isn't closed when the main form is closed. > Opening the main form creates a new instance of the subform which tries to > get a second lock and so can only get a RO connection. > > Editing the sub form must be completely destroying the first instance thus > breaking the lock and allowing the next instance to establish a RW > connection > > Not sure what to suggest on how to overcome it, but hopefully this gives > you an idea of where to look. > > -- > Stuart > > On 30 Sep 2006 at 20:01, Lembit Soobik wrote: > >> good evening everyone, >> I have a form with a subform, >> form is continuous and has 3 little subforms in the header. >> form is bound to a table. >> subforms are bund to tables (which are named spaces in an EXCEL >> worksheet. >> >> form has a button. when I click it, some code runs and copies and >> processes >> data from some other excel table to Access BE tables. >> >> works fine so far. >> >> at the end of the update I want to write to the one table on the excel >> sheet >> the project-number to indicate it has been processed. this works as many >> times as I click, but only UNTIL I close the main form and open it again. >> NOW it tells me error 3027 database or object is read-only. >> >> If I now close the main form >> open the subform and change something like allow updates, THen change it >> back to what it was and save it, THEN I can open the main form and it >> will >> happily run and update the exxel sheet as often as I like. >> >> close the main form, open it again ERROR 3027. >> cahnge something on subform, save, close, mainform works again for one >> opening. >> >> I have now put me.allowedits = tru in the subform onLoad event >> nochange >> I have in my code tried both: >> a) open the table and write to the table >> b) write to the control on the subform >> >> in both cases I get the effect that after closing the main form and >> reopening it, I get 3027 error. >> >> any idea what I'm missing? >> >> thank you >> Lembit >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Sun Oct 1 04:52:37 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 01 Oct 2006 19:52:37 +1000 Subject: [AccessD] Access 97 nasty behaviour of subform In-Reply-To: <000601c6e538$30bdc430$1800a8c0@s1800> References: , <000601c6e538$30bdc430$1800a8c0@s1800> Message-ID: <45201C85.10459.14B52DBE@stuart.lexacorp.com.pg> On 1 Oct 2006 at 11:01, Lembit Soobik wrote: > thank you, Stuart, > seems you are right. must be the Excel table not closing or such. > and I think it is not editing the subform. > Sometimes a long time delay between closing and opening the mainform agin > helps, Now I just found that in case of the error closing and then opening > the form fixes it. Is this running over a network? If so, it sounds like an "oplocks" problem. Try disabling Oportunistic Locking on the server. See http://support.microsoft.com/?kbid=296264 -- Stuart From lembit.dbamail at t-online.de Sun Oct 1 06:01:32 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sun, 1 Oct 2006 13:01:32 +0200 Subject: [AccessD] Access 97 nasty behaviour of subform References: , <000601c6e538$30bdc430$1800a8c0@s1800> <45201C85.10459.14B52DBE@stuart.lexacorp.com.pg> Message-ID: <000b01c6e548$f4979a60$1800a8c0@s1800> no, FE and BE and Excel file are on same directory even Lembit ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Sunday, October 01, 2006 11:52 AM Subject: Re: [AccessD] Access 97 nasty behaviour of subform > On 1 Oct 2006 at 11:01, Lembit Soobik wrote: > >> thank you, Stuart, >> seems you are right. must be the Excel table not closing or such. >> and I think it is not editing the subform. >> Sometimes a long time delay between closing and opening the mainform agin >> helps, Now I just found that in case of the error closing and then >> opening >> the form fixes it. > > Is this running over a network? > If so, it sounds like an "oplocks" problem. Try disabling Oportunistic > Locking on the server. See http://support.microsoft.com/?kbid=296264 > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Oct 1 08:04:05 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 1 Oct 2006 09:04:05 -0400 Subject: [AccessD] Blinky Lives! In-Reply-To: <007f01c6e51f$d2354090$153ce944@50NM721> Message-ID: <001f01c6e55a$13c25cc0$647aa8c0@m6805> LOL. Gotta have something to do just for fun. This will enable me to do the controllers for my son's Gator ride-on toy. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Sunday, October 01, 2006 2:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blinky Lives! ...a man and his toys :) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" ; "'Discussion of Hardware and Software issues'" Sent: Sunday, October 01, 2006 1:40 AM Subject: [AccessD] Blinky Lives! > Update, I just got the little 'C' program (Blinky) functioning, > talking to the leds on Port A. This is cool! > > Now I can go to bed! > > ;-) > > John W. Colby > Colby Consulting > 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 Sun Oct 1 10:00:41 2006 From: artful at rogers.com (artful at rogers.com) Date: Sun, 1 Oct 2006 08:00:41 -0700 (PDT) Subject: [AccessD] Blinky Lives! In-Reply-To: <001301c6e51c$138e0f80$647aa8c0@m6805> Message-ID: <20061001150041.13658.qmail@web88201.mail.re2.yahoo.com> I'm curious as to the original problem with Blinky and how you solved it. ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving ; Discussion of Hardware and Software issues Sent: Sunday, October 1, 2006 1:40:15 AM Subject: [AccessD] Blinky Lives! Update, I just got the little 'C' program (Blinky) functioning, talking to the leds on Port A. This is cool! Now I can go to bed! ;-) John W. Colby Colby Consulting 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 Sun Oct 1 10:15:07 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 1 Oct 2006 11:15:07 -0400 Subject: [AccessD] Blinky Lives! In-Reply-To: <20061001150041.13658.qmail@web88201.mail.re2.yahoo.com> Message-ID: <002001c6e56c$620dad50$647aa8c0@m6805> Well... There appear to be two places in the programming IDE where you specify the chip that you are working with and the frequency. Being new to this I am not sure exactly why there are two, but I suspect that one has to do with the IDE itself (telling the 'C' language) and the other has to do with the debug board that sits on the end of the USB port and talks to the target system, telling that what board it is talking to. Again I am not sure. However what I do know is that I was poking around and found another place where the chip was entirely different and the frequency was 80,000 when it should have been 8,000,000. Once I changed that it started working. At least that is what I think made the difference. There is just so much to learn with this stuff. I haven't used 'C' for a living since 1997 when I did the last controller project so you could say I'm a little rusty. Then there is the new IDE stuff. How to use the in-circuit programmer / emulator. What the processor pins do, how to use interrupts, counters, PWM, and eventually (a long way down the road) getting the controller talking RS232 to a terminal program on the PC. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, October 01, 2006 11:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blinky Lives! I'm curious as to the original problem with Blinky and how you solved it. ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving ; Discussion of Hardware and Software issues Sent: Sunday, October 1, 2006 1:40:15 AM Subject: [AccessD] Blinky Lives! Update, I just got the little 'C' program (Blinky) functioning, talking to the leds on Port A. This is cool! Now I can go to bed! ;-) John W. Colby Colby Consulting 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 lembit.dbamail at t-online.de Sun Oct 1 11:37:59 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Sun, 1 Oct 2006 18:37:59 +0200 Subject: [AccessD] Access 97 nasty behaviour of subform References: , <000601c6e538$30bdc430$1800a8c0@s1800><45201C85.10459.14B52DBE@stuart.lexacorp.com.pg> <000b01c6e548$f4979a60$1800a8c0@s1800> Message-ID: <000801c6e577$f5370350$1800a8c0@s1800> I have just tried this: open the form, run the code, close the form now next time it should give the error close Access reboot the PC start Access open the form run the code __>> ERROR again so the status of whatever causes the error every other time must be saved Now I have tried to find out whether its the Access ot the Excel file that stores that. open form and run code - get error now I know next time it should run without error. close form close Access copy the excel file to a different place open Access open form and run code without error. close Access replace the Excel file with the previously saved one (which should be good) open Access, open form run code _ ERROR again so it seems to me this alternating error has nothing to do with the excel file there must be something in Access that cleans up each time the error occurs??? Lembit ----- Original Message ----- From: "Lembit Soobik" To: "Access Developers discussion and problem solving" Sent: Sunday, October 01, 2006 1:01 PM Subject: Re: [AccessD] Access 97 nasty behaviour of subform > no, FE and BE and Excel file are on same directory even > > Lembit > > ----- Original Message ----- > From: "Stuart McLachlan" > To: "Access Developers discussion and problem solving" > > Sent: Sunday, October 01, 2006 11:52 AM > Subject: Re: [AccessD] Access 97 nasty behaviour of subform > > >> On 1 Oct 2006 at 11:01, Lembit Soobik wrote: >> >>> thank you, Stuart, >>> seems you are right. must be the Excel table not closing or such. >>> and I think it is not editing the subform. >>> Sometimes a long time delay between closing and opening the mainform >>> agin >>> helps, Now I just found that in case of the error closing and then >>> opening >>> the form fixes it. >> >> Is this running over a network? >> If so, it sounds like an "oplocks" problem. Try disabling Oportunistic >> Locking on the server. See http://support.microsoft.com/?kbid=296264 >> >> >> -- >> Stuart >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sun Oct 1 14:51:10 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 01 Oct 2006 12:51:10 -0700 Subject: [AccessD] Mappoint - Virtual Earth - and Access Db In-Reply-To: References: Message-ID: <45201C2E.70102@shaw.ca> You can store pushpins in a table and then bring in through a javascript array with VEPushPin but the common way is to use a layer with an RSSGeo.xml file, this is a W3C standard. You can add and delete various layers. I have heard of people using 30,000 pushpins. You can then add text and images to the mouseclick or hover over the pushpin. Look through the forums here for more info http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=462045&SiteID=1 You can also do route maps by specifying place names or full street address province/state country and print out driving distance. Takes 10 seconds Push Pin
Route Map History
David Gray wrote: >Really cool Marty! Thanks! > >What else can you do? > >Do you know how to store pushpins in a table? > >David Gray >96 Springacre Rd >Thornlands QLD >Yahoo ID: flock_it_software > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Friday, 29 September 2006 12:34 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Mappoint - Virtual Earth - and Access Db > > >For those of you wanting to footle around with Access and MS Virtual Earth >Here is some sample code, it also dumps the html code to an html file By >clicking on map you display Lat/Long position of cursor > >Option Compare Database >Option Explicit > > >Function testVirtualEarthMap() >'------------------ >'display Virtual Earth at a fixed LatLong >' then click on map to display Lat/Long position of cursor 'see these for >info: 'http://dev.live.com/virtualearth/sdk/ >'http://www.ftponline.com/special/web20/pvarholasp/default.aspx > >Dim objExplorer As Object >Dim objDocument As Object >Dim strHTML As String > >Set objExplorer = CreateObject("InternetExplorer.Application") > >objExplorer.Navigate "about:blank" >objExplorer.Toolbar = 1 ' 0= off >objExplorer.StatusBar = 1 '0 =off >objExplorer.Width = 800 >objExplorer.Height = 870 >objExplorer.Left = 0 >objExplorer.Top = 0 >objExplorer.Visible = 1 > >Do While (objExplorer.Busy) >Loop > > >Set objDocument = objExplorer.Document >objDocument.Open >'create html string and dump to a test file > strHTML = "" > strHTML = strHTML & createhtml > >WriteFile "c:\gis\test.html", strHTML > >'objDocument.Writeln strHTML >objDocument.Write strHTML >objExplorer.Refresh ' ??This has to be done because of >http://local.live.com/veapi.ashx >'objDocument.Close 'stall here >Do While (objExplorer.Busy) >Loop >'MsgBox "finished" >'Set objExplorer = Nothing >'Set objDocument = Nothing > >End Function > >Private Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) >' Dump XML or html String to File for debugging > Dim fhFile As Integer > fhFile = FreeFile > ' Debug.Print "Length of string=" & Len(sContents) > Open sFileName For Output As #fhFile > Print #fhFile, sContents; > Close #fhFile > Debug.Print "Out File" & sFileName >End Sub > >Function createhtml() As String > >Dim strHTML As String > strHTML = "" > strHTML = strHTML & "Virtual Earth Map" > strHTML = strHTML & "content=""text/html; charset=utf-8"">" >'When your page has referenced the map control, set up the call to >display a default map by completing a LoadMap ( ) method call: strHTML = >strHTML & vbCrLf & " " ' >strHTML = strHTML & vbCrLf & "" > strHTML = strHTML & vbCrLf & "" >' strhtml = strhtml & vbCrLf & "// -->" >'Last, you display the map: > > strHTML = strHTML & vbCrLf & "" strHTML = strHTML >& vbCrLf & "
" > strHTML = strHTML & vbCrLf & " right or left click map for latitude >longitude position " > strHTML = strHTML & vbCrLf & "" > strHTML = strHTML & vbCrLf & "" >WriteFile "c:\gis\test.html", strHTML >createhtml = strHTML >End Function > > > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Sun Oct 1 15:25:07 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 1 Oct 2006 21:25:07 +0100 Subject: [AccessD] Access 2007 References: , <000601c6e538$30bdc430$1800a8c0@s1800> <45201C85.10459.14B52DBE@stuart.lexacorp.com.pg> Message-ID: Anyone who has Access 2007 and Outlook 2007 Would you mid running the Email Data Collection Wizard Once it has run could you check if you have an XML file located at Application Data\Microsoft\Access\AccessDCActionFile.xml May or may not be that path. Even if you dont find the file could you let me know. Thanks Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From DWUTKA at marlow.com Sun Oct 1 23:43:39 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Sun, 1 Oct 2006 23:43:39 -0500 Subject: [AccessD] Blinky Lives! Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDD1B@MARLOW_MAIN2.marlow.com> What separate the men and the boys are the price of their toys! ;) Drew -----Original Message----- From: William Hindman [mailto:wdhindman at dejpolsystems.com] Sent: Sunday, October 01, 2006 1:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Blinky Lives! ...a man and his toys :) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" ; "'Discussion of Hardware and Software issues'" Sent: Sunday, October 01, 2006 1:40 AM Subject: [AccessD] Blinky Lives! > Update, I just got the little 'C' program (Blinky) functioning, talking to > the leds on Port A. This is cool! > > Now I can go to bed! > > ;-) > > John W. Colby > Colby Consulting > 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 dajomigo at tpg.com.au Mon Oct 2 01:54:47 2006 From: dajomigo at tpg.com.au (David & Joanne Gould) Date: Mon, 02 Oct 2006 16:54:47 +1000 Subject: [AccessD] Updating a bound image using VBA In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D0116AA21@ddi-01.DDI.local> References: <59A61174B1F5B54B97FD4ADDE71E7D0116AA21@ddi-01.DDI.local> Message-ID: <7.0.1.0.2.20061002164651.02388be0@tpg.com.au> Marty, Jim, and Michael Sorry for the long delay in replying. Between teaching commitments and then being sick, I haven't had a chance till now to read and act upon your replies. Thank you for all your suggestions, I have finally fixed the problem by deciding not to embed the images but by linking them. This was of course after fixing up the error you pointed out, Michael. This appears to have at least three advantages over my original plan: * Adding the image to the record is now much faster for the user. * The code I was having trouble with, of course, is much simpler. * The form appears to work on all machines. I have found that not all machines will allow consistent adding and editing of OLE images. So, once again, sorry for the delay and thank you all for your help with this problem. David From lembit.dbamail at t-online.de Mon Oct 2 07:26:48 2006 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Mon, 2 Oct 2006 14:26:48 +0200 Subject: [AccessD] Access 97 nasty behaviour of subform References: , <000601c6e538$30bdc430$1800a8c0@s1800><45201C85.10459.14B52DBE@stuart.lexacorp.com.pg><000b01c6e548$f4979a60$1800a8c0@s1800> <000801c6e577$f5370350$1800a8c0@s1800> Message-ID: <004e01c6e61e$0897c7d0$1800a8c0@s1800> ok, I found it: the code which I run has several parts, each one transfering data from a different named space of the Excel sheet to a table in Access. one part writes the project ID to the Excel sheet as sign that this sheet has been processed. during test I had moved this part to an earlier point in the code, and forgot to delete the part at the end. then I had renamed the field in Excel and in one part of the code. obviously it stumbled over this wrong fieldname and left the table open. thanks everyone for the help Lembit ----- Original Message ----- From: "Lembit Soobik" To: "Access Developers discussion and problem solving" Sent: Sunday, October 01, 2006 6:37 PM Subject: Re: [AccessD] Access 97 nasty behaviour of subform >I have just tried this: > open the form, run the code, close the form > now next time it should give the error > close Access > reboot the PC > start Access > open the form > run the code __>> ERROR again > > so the status of whatever causes the error every other time must be saved > > Now I have tried to find out whether its the Access ot the Excel file that > stores that. > > open form and run code - get error > now I know next time it should run without error. > close form > close Access > copy the excel file to a different place > open Access > open form and run code without error. > > close Access > replace the Excel file with the previously saved one (which should be > good) > > open Access, open form run code _ ERROR again > > so it seems to me this alternating error has nothing to do with the excel > file > > there must be something in Access that cleans up each time the error > occurs??? > > Lembit > > ----- Original Message ----- > From: "Lembit Soobik" > To: "Access Developers discussion and problem solving" > > Sent: Sunday, October 01, 2006 1:01 PM > Subject: Re: [AccessD] Access 97 nasty behaviour of subform > > >> no, FE and BE and Excel file are on same directory even >> >> Lembit >> >> ----- Original Message ----- >> From: "Stuart McLachlan" >> To: "Access Developers discussion and problem solving" >> >> Sent: Sunday, October 01, 2006 11:52 AM >> Subject: Re: [AccessD] Access 97 nasty behaviour of subform >> >> >>> On 1 Oct 2006 at 11:01, Lembit Soobik wrote: >>> >>>> thank you, Stuart, >>>> seems you are right. must be the Excel table not closing or such. >>>> and I think it is not editing the subform. >>>> Sometimes a long time delay between closing and opening the mainform >>>> agin >>>> helps, Now I just found that in case of the error closing and then >>>> opening >>>> the form fixes it. >>> >>> Is this running over a network? >>> If so, it sounds like an "oplocks" problem. Try disabling Oportunistic >>> Locking on the server. See http://support.microsoft.com/?kbid=296264 >>> >>> >>> -- >>> Stuart >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Chester_Kaup at kindermorgan.com Mon Oct 2 12:38:59 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 2 Oct 2006 12:38:59 -0500 Subject: [AccessD] Control for Form Message-ID: What kind of a control etc can I put on a form to give a drop down of directories and files on the computer and enable selection of one? 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 bheid at appdevgrp.com Mon Oct 2 13:41:06 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 2 Oct 2006 14:41:06 -0400 Subject: [AccessD] VSS - Build from source error question... SOLVED In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E4394B@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35943@ADGSERVER> Ok, I finally figured it out. I created a blank DB with just a few items in it. Added it to SS, and then built from source. It worked fine. SO I then took an older copy of my app, created a new SS project from it and then tried to build from source. Well, it failed on several objects just like it did in the original post. BUT! It also told me that it wrote some error messages out to a text file. SO I open up the file and there it is, something to the effect that I was trying to import an item that was created in a later version. I had forgotten that an Access XP install defaults to the 2000 format. And since you have to be in 2002 format to create an MDE, many of the items were in 2002 format. It's weird that it did not give me those error message files earlier. Thanks to anyone that tried to help with this. Bobby From wdhindman at dejpolsystems.com Mon Oct 2 13:59:29 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 2 Oct 2006 14:59:29 -0400 Subject: [AccessD] Control for Form References: Message-ID: <008501c6e654$e3cd9420$153ce944@50NM721> ...if you have the Office 10/11 object model installed, the File Dialog Object is imnsho, by far the most useful for this purpose ...if not the common dialog or file system objects will work with call backs but with limitations. www.helenfeddema.com has a couple of detailed articles on their use and he pros and cons of both ...along with sample dbs. ...hth William Hindman ----- Original Message ----- From: "Kaup, Chester" To: "Access Developers discussion and problem solving" Sent: Monday, October 02, 2006 1:38 PM Subject: [AccessD] Control for Form > What kind of a control etc can I put on a form to give a drop down of > directories and files on the computer and enable selection of one? > > > > 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 Chester_Kaup at kindermorgan.com Mon Oct 2 14:29:02 2006 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 2 Oct 2006 14:29:02 -0500 Subject: [AccessD] Control for Form In-Reply-To: <008501c6e654$e3cd9420$153ce944@50NM721> Message-ID: I am going to express my ignorance here. How do I know if I have the Office 10/11 object model installed and if so how do I use it? Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, October 02, 2006 1:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Control for Form ...if you have the Office 10/11 object model installed, the File Dialog Object is imnsho, by far the most useful for this purpose ...if not the common dialog or file system objects will work with call backs but with limitations. www.helenfeddema.com has a couple of detailed articles on their use and he pros and cons of both ...along with sample dbs. ...hth William Hindman ----- Original Message ----- From: "Kaup, Chester" To: "Access Developers discussion and problem solving" Sent: Monday, October 02, 2006 1:38 PM Subject: [AccessD] Control for Form > What kind of a control etc can I put on a form to give a drop down of > directories and files on the computer and enable selection of one? > > > > 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 wdhindman at dejpolsystems.com Mon Oct 2 15:09:30 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 2 Oct 2006 16:09:30 -0400 Subject: [AccessD] Control for Form References: Message-ID: <001401c6e65e$ac34bed0$153ce944@50NM721> ...we were all ignorant once ...some stay that way, others ask questions, eh. ...its in your references ...Microsoft Office 11 Object Library ...dl Helen's article and sample ...she walks you through it so easily that even I got it :) William Hindman ----- Original Message ----- From: "Kaup, Chester" To: "Access Developers discussion and problem solving" Sent: Monday, October 02, 2006 3:29 PM Subject: Re: [AccessD] Control for Form >I am going to express my ignorance here. How do I know if I have the > Office 10/11 object model installed and if so how do I use it? Thanks. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Monday, October 02, 2006 1:59 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Control for Form > > ...if you have the Office 10/11 object model installed, the File Dialog > Object is imnsho, by far the most useful for this purpose ...if not the > common dialog or file system objects will work with call backs but with > limitations. > > www.helenfeddema.com has a couple of detailed articles on their use and > he > pros and cons of both ...along with sample dbs. > > ...hth > > William Hindman > > ----- Original Message ----- > From: "Kaup, Chester" > To: "Access Developers discussion and problem solving" > > Sent: Monday, October 02, 2006 1:38 PM > Subject: [AccessD] Control for Form > > >> What kind of a control etc can I put on a form to give a drop down of >> directories and files on the computer and enable selection of one? >> >> >> >> 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 martyconnelly at shaw.ca Mon Oct 2 19:01:46 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 02 Oct 2006 17:01:46 -0700 Subject: [AccessD] Access 2007 In-Reply-To: References: <000601c6e538$30bdc430$1800a8c0@s1800> <45201C85.10459.14B52DBE@stuart.lexacorp.com.pg> Message-ID: <4521A86A.9080203@shaw.ca> Hmm I just found out the Office 2007 Beta 1 automagically installs Outlook 2007 I thought I only had 97 installed. Anyway I have the file AccessDCActionFile.xml under my admin user Documents & Settings directory It looks like it uses this data file to collect and mange email sent and recieved via External Data --> Manage Data Collection Messages When you return an HTML message response that is automatically added to Access it seems to change true from false to true in the xml file. -
C:\Access files\MartinReid\MartinTest.accdb true - true true 25 0 true true false 0 true
Microsoft Outlook security prevents HTML mail in many organizations. You likely won't ever get clientside validation for HTML forms as all popular email clients block script. This maybe why if you have lookup codes in say a Customers Form at the bottom of the HTML form You have this information added that you would have to add in code Information that helps users fill out the form. Select the field name to return to the data entry portion of the form. Customer: In the list below, select the number that corresponds to the value you want. 1. Alfreds Futterkiste 2. Ana Trujillo Emparedados y helados 3. Antonio Moreno Taquer?a Employee: In the list below, select the number that corresponds to the value you want. 1. Buchanan, Steven 2. Callahan, Laura 3. Davolio, Nancy Ship Via: In the list below, select the number that corresponds to the value you want. 1. Federal Shipping 2. Speedy Express 3. United Package Martin Reid wrote: >Anyone who has Access 2007 and Outlook 2007 > >Would you mid running the Email Data Collection Wizard >Once it has run could you check if you have an XML file located at > >Application Data\Microsoft\Access\AccessDCActionFile.xml > >May or may not be that path. Even if you dont find the file could you let me know. > >Thanks > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.407 / Virus Database: 268.12.11/460 - Release Date: 01/10/2006 > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Mon Oct 2 19:28:33 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 02 Oct 2006 17:28:33 -0700 Subject: [AccessD] Control for Form In-Reply-To: References: Message-ID: <4521AEB1.2020303@shaw.ca> Just set a reference to Micosoft Office 11.0 Object Library Just remember if Office not installed this won't work as license to dll is not transferable. Kaup, Chester wrote: >I am going to express my ignorance here. How do I know if I have the >Office 10/11 object model installed and if so how do I use it? Thanks. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William >Hindman >Sent: Monday, October 02, 2006 1:59 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Control for Form > >...if you have the Office 10/11 object model installed, the File Dialog >Object is imnsho, by far the most useful for this purpose ...if not the >common dialog or file system objects will work with call backs but with >limitations. > >www.helenfeddema.com has a couple of detailed articles on their use and >he >pros and cons of both ...along with sample dbs. > >...hth > >William Hindman > >----- Original Message ----- >From: "Kaup, Chester" >To: "Access Developers discussion and problem solving" > >Sent: Monday, October 02, 2006 1:38 PM >Subject: [AccessD] Control for Form > > > > >>What kind of a control etc can I put on a form to give a drop down of >>directories and files on the computer and enable selection of one? >> >> >> >>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 >> >> >> > > > > > -- Marty Connelly Victoria, B.C. Canada From EdTesiny at oasas.state.ny.us Tue Oct 3 11:03:19 2006 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Tue, 3 Oct 2006 12:03:19 -0400 Subject: [AccessD] Access frontend/SQL Server backend Message-ID: Dear List, This is an elementary question as I know almost nothing about SQL Server. A colleague is developing a web-based ColdFusion application using SQL Server. I would like to access the data through an ODBC connection using Access as the frontend. I was able to get at the tables but the relationships between the tables were lost. Is there a way you can preserve the relationships or should I be trying to access the data by another means? MTIA Ed Edward P. Tesiny Assistant Director for Evaluation Bureau of Evaluation and Practice Improvement New York State OASAS 1450 Western Ave. Albany, New York 12203-3526 Phone: (518) 485-7189 Fax: (518) 485-5769 Email: EdTesiny at oasas.state.ny.us From Gustav at cactus.dk Tue Oct 3 12:09:42 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 03 Oct 2006 19:09:42 +0200 Subject: [AccessD] Access frontend/SQL Server backend Message-ID: Hi Ed The relations are not lost, they are defined at the SQL Server. However, in Access they may not be displayed as is the case for JET tables. Be sure, when linking the tables of the server, to specify which field(s) represent(s) the primary key if the linking wizard asks for this. /gustav >>> EdTesiny at oasas.state.ny.us 03-10-2006 18:03:19 >>> Dear List, This is an elementary question as I know almost nothing about SQL Server. A colleague is developing a web-based ColdFusion application using SQL Server. I would like to access the data through an ODBC connection using Access as the frontend. I was able to get at the tables but the relationships between the tables were lost. Is there a way you can preserve the relationships or should I be trying to access the data by another means? MTIA Ed Edward P. Tesiny Assistant Director for Evaluation Bureau of Evaluation and Practice Improvement New York State OASAS 1450 Western Ave. Albany, New York 12203-3526 Phone: (518) 485-7189 Fax: (518) 485-5769 Email: EdTesiny at oasas.state.ny.us From Jim.Hale at FleetPride.com Tue Oct 3 13:32:24 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 3 Oct 2006 13:32:24 -0500 Subject: [AccessD] Access frontend/SQL Server backend Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE002@corp-es01.fleetpride.com> You might want to take a quick look at pass through queries which have the advantage of processing the data on the server before sending the data set. I use them a lot for crunching large datasets Jim Hale -----Original Message----- From: Tesiny, Ed [mailto:EdTesiny at oasas.state.ny.us] Sent: Tuesday, October 03, 2006 11:03 AM To: Access Developers discussion and problem solving; dba-ot at databaseadvisors.com Subject: [AccessD] Access frontend/SQL Server backend Dear List, This is an elementary question as I know almost nothing about SQL Server. A colleague is developing a web-based ColdFusion application using SQL Server. I would like to access the data through an ODBC connection using Access as the frontend. I was able to get at the tables but the relationships between the tables were lost. Is there a way you can preserve the relationships or should I be trying to access the data by another means? MTIA Ed Edward P. Tesiny Assistant Director for Evaluation Bureau of Evaluation and Practice Improvement New York State OASAS 1450 Western Ave. Albany, New York 12203-3526 Phone: (518) 485-7189 Fax: (518) 485-5769 Email: EdTesiny at oasas.state.ny.us -- 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 pcs at azizaz.com Tue Oct 3 17:52:28 2006 From: pcs at azizaz.com (Borge Hansen) Date: Wed, 4 Oct 2006 08:52:28 +1000 Subject: [AccessD] File Dialog Object and Access Runtime References: <4521AEB1.2020303@shaw.ca> Message-ID: <002201c6e73e$9ad58170$fa10a8c0@Albatross> Quick question here: Can I use the File Dialog object from Office in an Access Runtime application? Even if the user does not have Office installed? That is, do the tools for packaging the Access Runtime etc. allow for adding whatever dlls are needed for the File Dialog object. If not I'll be disappointed! regards borge ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Tuesday, October 03, 2006 10:28 AM Subject: Re: [AccessD] Control for Form Just set a reference to Micosoft Office 11.0 Object Library Just remember if Office not installed this won't work as license to dll is not transferable. From stuart at lexacorp.com.pg Tue Oct 3 18:36:17 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 04 Oct 2006 09:36:17 +1000 Subject: [AccessD] File Dialog Object and Access Runtime In-Reply-To: <002201c6e73e$9ad58170$fa10a8c0@Albatross> References: , <002201c6e73e$9ad58170$fa10a8c0@Albatross> Message-ID: <45238091.8837.92D8432@stuart.lexacorp.com.pg> On 4 Oct 2006 at 8:52, Borge Hansen wrote: > Quick question here: > Can I use the File Dialog object from Office in an Access Runtime application? > Even if the user does not have Office installed? > That is, do the tools for packaging the Access Runtime etc. allow for adding whatever dlls are needed for the File Dialog object. > If not I'll be disappointed! You may be better of sticking with the Windows Common Dialogs and API calls. Search the Archives for my posting on 1 May 2003 titled "Open File Dialog - multiple selections" for a fairly comprehensive description. -- Stuart McLachlan From bchacc at san.rr.com Tue Oct 3 19:13:59 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Tue, 3 Oct 2006 17:13:59 -0700 Subject: [AccessD] FW: ADO Message-ID: <00f701c6e749$ffb998a0$6401a8c0@HAL9005> Dear List: I?m not an ADO guy. Is there something wrong with the insert statement? I?m assuming the connection string is valid. If it isn?t would it barf on Conn.ConnectionString = Bwq? I believe that the code execute4s without blowing but the record does not appear in the table. MTIA, Rocky _____ From: James Charlton [mailto:James at charltonweeks.com] Sent: Tuesday, October 03, 2006 2:02 PM To: Rocky Smolin Subject: ADO Any guess why this does not apend the required record? Bwq is the connection string from a global constant Public Sub IVWills(ByVal PID As Integer) Dim Conn As ADODB.Connection, RS As ADODB.Recordset Set Conn = New ADODB.Connection Conn.ConnectionString = Bwq Conn.Open Set RS = New ADODB.Recordset RS.ActiveConnection = Conn RS.Source = "INSERT INTO [tIVProjectDetail] ( [ProjectID#], Item, Amount ) " & _ "SELECT '" & PID & "', ""Wills (2):"", 0" 'Start the transaction Conn.BeginTrans RS.Open Conn.CommitTrans ' Commit the transaction Conn.Close End Sub James W. M. Charlton Charlton Weeks LLP Attorneys at Law (661) 265-0969 (800) 388-9878 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/2006 From michael at ddisolutions.com.au Tue Oct 3 20:45:40 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 4 Oct 2006 11:45:40 +1000 Subject: [AccessD] FW: ADO Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116AB2E@ddi-01.DDI.local> No expert either but I would do it like this. Conn.Execute "INSERT INTO [tIVProjectDetail] ( [ProjectID#], Item, Amount ) " & _ "SELECT '" & PID & "', ""Wills (2):"", 0" If the connectionstring is wrong it will 'barf' on the Open statement. Not sure you can use a recordset to do inserts? You can still wrap in transactions if you like. cheers Michael Maddison DDI Solutions Pty Ltd michael at ddisolutions.com.au Bus: 0260400620 Mob: 0412620497 www.ddisolutions.com.au -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Wednesday, 4 October 2006 10:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: ADO Dear List: I'm not an ADO guy. Is there something wrong with the insert statement? I'm assuming the connection string is valid. If it isn't would it barf on Conn.ConnectionString = Bwq? I believe that the code execute4s without blowing but the record does not appear in the table. MTIA, Rocky _____ From: James Charlton [mailto:James at charltonweeks.com] Sent: Tuesday, October 03, 2006 2:02 PM To: Rocky Smolin Subject: ADO Any guess why this does not apend the required record? Bwq is the connection string from a global constant Public Sub IVWills(ByVal PID As Integer) Dim Conn As ADODB.Connection, RS As ADODB.Recordset Set Conn = New ADODB.Connection Conn.ConnectionString = Bwq Conn.Open Set RS = New ADODB.Recordset RS.ActiveConnection = Conn RS.Source = "INSERT INTO [tIVProjectDetail] ( [ProjectID#], Item, Amount ) " & _ "SELECT '" & PID & "', ""Wills (2):"", 0" 'Start the transaction Conn.BeginTrans RS.Open Conn.CommitTrans ' Commit the transaction Conn.Close End Sub James W. M. Charlton Charlton Weeks LLP Attorneys at Law (661) 265-0969 (800) 388-9878 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/2006 -- 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 Oct 3 22:37:07 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Tue, 3 Oct 2006 20:37:07 -0700 Subject: [AccessD] FW: ADO In-Reply-To: <59A61174B1F5B54B97FD4ADDE71E7D0116AB2E@ddi-01.DDI.local> Message-ID: <014d01c6e766$5e5643b0$6401a8c0@HAL9005> Michael: Thanks. I'll forward and let you know what happens. Regards, Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Maddison Sent: Tuesday, October 03, 2006 6:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: ADO No expert either but I would do it like this. Conn.Execute "INSERT INTO [tIVProjectDetail] ( [ProjectID#], Item, Amount ) " & _ "SELECT '" & PID & "', ""Wills (2):"", 0" If the connectionstring is wrong it will 'barf' on the Open statement. Not sure you can use a recordset to do inserts? You can still wrap in transactions if you like. cheers Michael Maddison DDI Solutions Pty Ltd michael at ddisolutions.com.au Bus: 0260400620 Mob: 0412620497 www.ddisolutions.com.au -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Wednesday, 4 October 2006 10:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: ADO Dear List: I'm not an ADO guy. Is there something wrong with the insert statement? I'm assuming the connection string is valid. If it isn't would it barf on Conn.ConnectionString = Bwq? I believe that the code execute4s without blowing but the record does not appear in the table. MTIA, Rocky _____ From: James Charlton [mailto:James at charltonweeks.com] Sent: Tuesday, October 03, 2006 2:02 PM To: Rocky Smolin Subject: ADO Any guess why this does not apend the required record? Bwq is the connection string from a global constant Public Sub IVWills(ByVal PID As Integer) Dim Conn As ADODB.Connection, RS As ADODB.Recordset Set Conn = New ADODB.Connection Conn.ConnectionString = Bwq Conn.Open Set RS = New ADODB.Recordset RS.ActiveConnection = Conn RS.Source = "INSERT INTO [tIVProjectDetail] ( [ProjectID#], Item, Amount ) " & _ "SELECT '" & PID & "', ""Wills (2):"", 0" 'Start the transaction Conn.BeginTrans RS.Open Conn.CommitTrans ' Commit the transaction Conn.Close End Sub James W. M. Charlton Charlton Weeks LLP Attorneys at Law (661) 265-0969 (800) 388-9878 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.407 / Virus Database: 268.12.12/462 - Release Date: 10/3/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/462 - Release Date: 10/3/2006 From Gustav at cactus.dk Wed Oct 4 04:19:56 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 04 Oct 2006 11:19:56 +0200 Subject: [AccessD] File Dialog Object and Access Runtime Message-ID: Hi Borge Office must be installed to use the proprietary file dialog of the package. Unless this for other reasons is a must, use the native API for Windows File Dialog. You are a "class guy", right? Then browse at Karsten Pries's site for Entwicklertools (Developer Tools), FileDialog: http://www.kpries.de/ It's in German but that should cause you no significant trouble. /gustav >>> pcs at azizaz.com 04-10-2006 00:52 >>> Quick question here: Can I use the File Dialog object from Office in an Access Runtime application? Even if the user does not have Office installed? That is, do the tools for packaging the Access Runtime etc. allow for adding whatever dlls are needed for the File Dialog object. If not I'll be disappointed! regards borge ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Tuesday, October 03, 2006 10:28 AM Subject: Re: [AccessD] Control for Form Just set a reference to Micosoft Office 11.0 Object Library Just remember if Office not installed this won't work as license to dll is not transferable. From DWUTKA at marlow.com Wed Oct 4 09:53:29 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 4 Oct 2006 09:53:29 -0500 Subject: [AccessD] FW: ADO Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0113E3BE@MARLOW_MAIN2.marlow.com> Why use a recordset object? Just use the Execute method of the connection object. Drew -----Original Message----- From: Beach Access Software [mailto:bchacc at san.rr.com] Sent: Tuesday, October 03, 2006 7:14 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: ADO Dear List: I'm not an ADO guy. Is there something wrong with the insert statement? I'm assuming the connection string is valid. If it isn't would it barf on Conn.ConnectionString = Bwq? I believe that the code execute4s without blowing but the record does not appear in the table. MTIA, Rocky _____ From: James Charlton [mailto:James at charltonweeks.com] Sent: Tuesday, October 03, 2006 2:02 PM To: Rocky Smolin Subject: ADO Any guess why this does not apend the required record? Bwq is the connection string from a global constant Public Sub IVWills(ByVal PID As Integer) Dim Conn As ADODB.Connection, RS As ADODB.Recordset Set Conn = New ADODB.Connection Conn.ConnectionString = Bwq Conn.Open Set RS = New ADODB.Recordset RS.ActiveConnection = Conn RS.Source = "INSERT INTO [tIVProjectDetail] ( [ProjectID#], Item, Amount ) " & _ "SELECT '" & PID & "', ""Wills (2):"", 0" 'Start the transaction Conn.BeginTrans RS.Open Conn.CommitTrans ' Commit the transaction Conn.Close End Sub James W. M. Charlton Charlton Weeks LLP Attorneys at Law (661) 265-0969 (800) 388-9878 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.12/461 - Release Date: 10/2/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 Wed Oct 4 10:13:45 2006 From: darrend at nimble.com.au (Darren DICK) Date: Thu, 5 Oct 2006 01:13:45 +1000 Subject: [AccessD] A2003:Images not printing on reports Message-ID: <20061004151347.RYTI22583.omta05ps.mx.bigpond.com@DENZILLAP> Hi all I vaguely recall there being a solution for this - can't recall 'it' though I have a report that has an image control showing ID type photos When I Print Preview the reports - there is the image - happy smiling - cool When I print the report has no picture - regardless of the picture quality Everything else I expect to see on the report is there - no picture though Any suggestions? MTIA Darren From max at sherman.org.uk Wed Oct 4 12:35:35 2006 From: max at sherman.org.uk (Max Home) Date: Wed, 4 Oct 2006 18:35:35 +0100 Subject: [AccessD] Longitude/Latitude In-Reply-To: AAAAAFWZt4UlhGRNs4nf35oT6aREYSoA Message-ID: <000b01c6e7db$8141b920$8119fea9@MaxLapTop> Dear All, Does anyway know if it is possible to call an mdb from within another mdb so that all the forms, queries, reports, etc are available from within the calling mdb? Many thanks Regards Max From askolits at ot.com Wed Oct 4 13:18:00 2006 From: askolits at ot.com (John Skolits) Date: Wed, 4 Oct 2006 14:18:00 -0400 Subject: [AccessD] Modifying Table Field Properties In-Reply-To: <000b01c6e7db$8141b920$8119fea9@MaxLapTop> Message-ID: <016401c6e7e1$6f9bfef0$6501a8c0@LaptopXP> I want to modify the AllowZeroLength field property of a table thru VB Code I believe I had actually done this many years ago, but can't find the code. The end result will allow me to enumerate through all the fields and set that property to True. I can retrieve the value using : Currentdb().TableDefs("Table1").Fields("AllowZeroLength).Property(16).value But can't set the value. If I could set it, it would be easy to write a 'For Each' routine to go through all my tables and change this. John From askolits at ot.com Wed Oct 4 13:25:13 2006 From: askolits at ot.com (John Skolits) Date: Wed, 4 Oct 2006 14:25:13 -0400 Subject: [AccessD] Modifying Table Field Properties - Resolved! In-Reply-To: <000b01c6e7db$8141b920$8119fea9@MaxLapTop> Message-ID: <016701c6e7e2$71f7acc0$6501a8c0@LaptopXP> Just figured it out. I was trying to modify a field that did not have that Property. It was a numeric field. Although it still returned a value for that property in code. That's what threw me off. (Isn't that odd?) ---- I want to modify the AllowZeroLength field property of a table thru VB Code I believe I had actually done this many years ago, but can't find the code. The end result will allow me to enumerate through all the fields and set that property to True. I can retrieve the value using : Currentdb().TableDefs("Table1").Fields("AllowZeroLength).Property(16).value But can't set the value. If I could set it, it would be easy to write a 'For Each' routine to go through all my tables and change this. John From wayne.warren at adelphia.net Wed Oct 4 15:00:46 2006 From: wayne.warren at adelphia.net (Wayne Warren-Angelucci) Date: Wed, 4 Oct 2006 13:00:46 -0700 Subject: [AccessD] Processing Digitally Signed Outlook Email Messages With VBA Message-ID: <063901c6e7ef$c88bc140$6500a8c0@wayne> AccessD List: I am using Outlook automation to process and read email. Everything is working great until code encounters a 'digitally signed' email, then code gets a runtime error (and the error number appears to be different each time !!) I'm using the following (standard) code to process email: Set mOLApp = CreateObject("Outlook.Application") Set mOLNamespace = mOLApp.GetNamespace("MAPI") Set mOLMACInboxFolder = mOLInboxFolder.Folders("MAC Inbox") For ItemIndex = mOLMACInboxFolder.Items.Count To 1 Step -1 If Not (mOLMACInboxFolder.Items(ItemIndex).MessageClass = "IPM.Note" Or _ mOLMACInboxFolder.Items (ItemIndex).MessageClass = "IPM.Note.SMIME.MultipartSigned") _ Then GoTo SKIP_EMAIL ' Skip Inbox Items That Are Not Emails Set mOLMailItem = mOLMACInboxFolder.Items(ItemIndex) EmailSubject = mOLMailItem.Subject EmailBodyContents = mOLMailItem.Body ....... processing code here ...... SKIP_EMAIL: Next ItemIndex When the item is a digitally signed email, I can 'read' the mail item subject (red line, above), but not the mail item body (blue line). I did some research and found the following on the Microsoft website: Improvements to Outlook Object Model Guard and the Impact Office Outlook 2003 inherits the Outlook 2002 object model guard behavior and, in addition, blocks code that attempts to access the Body and HTMLBody properties of various Outlook items. This allows users to verify that the program or add-in accessing the Body and HTMLBody properties of these items is trustworthy, before they allow access to the contents of the items. Although this change forces the display of security warnings in existing COM add-ins that access the Body or HTMLBody properties of items, this will help prevent malicious code from running unknown to the user. You can avoid the display of security warnings by deriving all objects, properties, and methods from the Application object passed to the OnConnection procedure of the add-in. Office Outlook 2003 trusts only the Application object passed to the OnConnection procedure of the add-in. If you create a new Application object -- for example, by using the CreateObject method -- that object and any of its subordinate objects, properties, and methods will not be trusted and the blocked properties and methods will raise security warnings. however, I don't understand their reference to COM Add-inn or OnConnection procedure. Have any of you encountered a similar problem reading a digitally signed email and what solution have you come up with? Thanks, -- Wayne Warren Software Solutions wayne.warren at adelphia.net From ewaldt at gdls.com Wed Oct 4 15:52:56 2006 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Wed, 4 Oct 2006 16:52:56 -0400 Subject: [AccessD] Automated Grouping In-Reply-To: Message-ID: I couldn't find a solution to this anywhere on the Net, so I worked out one for myself, which is always more satisfying anyway. I'm posting it here in case it can help anyone. I wanted to group (as in Group and Outline) all of the data in all of the worksheets in a workbook. The grouping would be based on column A, starting in row 2 (allowing for one row of headers). I have several sheets of hundreds or thousands (depending on the sheet) of rows, so doing this by hand was extremely time-consuming (and painful on the wrist using the mouse). Perhaps this is too elementary for this list, but I thought someone might find it useful. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 -------------------------------------------------------------------------------- Sub AutoGroup() 'Created 10/04/06 by Thomas F. Ewald, GDLS Dim intFirstRow As Integer Dim intLastRow As Integer Dim Wks As Worksheet Dim strName As String For Each Wks In Worksheets Wks.Select intFirstRow = 0 Range("A2").Select Do Until ActiveCell.Value = 0 If ActiveCell.Value = ActiveCell.Offset(1, 0).Value Then 'First Match If intFirstRow = 0 Then intFirstRow = ActiveCell.Row + 1 'If not the first match, do nothing. Continue on. Else 'If intFirstRow is not 0, and the next cell does not match, 'we've reached the end of the group. Create the group. If intFirstRow <> 0 Then intLastRow = ActiveCell.Row Rows(intFirstRow & ":" & intLastRow).Select Selection.Rows.Group intFirstRow = 0 Range("A" & intLastRow).Select End If 'If intFirstRow = 0, and the next cell does not match, this 'cell is unmatched, and there is no group. Continue on. End If ActiveCell.Offset(1, 0).Select Loop Next Wks End Sub This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. From martyconnelly at shaw.ca Wed Oct 4 16:17:05 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 04 Oct 2006 14:17:05 -0700 Subject: [AccessD] Processing Digitally Signed Outlook Email Messages With VBA In-Reply-To: <063901c6e7ef$c88bc140$6500a8c0@wayne> References: <063901c6e7ef$c88bc140$6500a8c0@wayne> Message-ID: <452424D1.3020800@shaw.ca> I don't think you can read the body of digitally signed email as it defeats security purpose, so you might have to skip around Because Outlook decrypts encrypted messages when they are displayed to make them look like the normal IPM. http://support.microsoft.com/?kbid=194623 Unsigned and Unencrypted: IPM.Note So you might hake to skip around these ? Signed and Unencrypted: IPM.NOTE.SECURE.SIGN ? Unsigned and Encrypted: IPM.NOTE.SECURE ? Signed and Encrypted: IPM.NOTE.SECURE On the other hand, if you use Secure - Multipurpose Internet Mail Extensions (SMIME) from Microsoft Outlook Express to send a signed message, the class will be IPM.Note.SMIME.MultipartSigned. Wayne Warren-Angelucci wrote: >AccessD List: > >I am using Outlook automation to process and read email. Everything is working great until code encounters a 'digitally signed' email, then code gets a runtime error (and the error number appears to be different each time !!) > >I'm using the following (standard) code to process email: > > Set mOLApp = CreateObject("Outlook.Application") > Set mOLNamespace = mOLApp.GetNamespace("MAPI") > Set mOLMACInboxFolder = mOLInboxFolder.Folders("MAC Inbox") > > For ItemIndex = mOLMACInboxFolder.Items.Count To 1 Step -1 > If Not (mOLMACInboxFolder.Items(ItemIndex).MessageClass = "IPM.Note" Or _ > mOLMACInboxFolder.Items (ItemIndex).MessageClass = "IPM.Note.SMIME.MultipartSigned") _ > Then GoTo SKIP_EMAIL ' Skip Inbox Items That Are Not Emails > > Set mOLMailItem = mOLMACInboxFolder.Items(ItemIndex) > > EmailSubject = mOLMailItem.Subject > EmailBodyContents = mOLMailItem.Body > > ....... processing code here ...... > >SKIP_EMAIL: > Next ItemIndex > > >When the item is a digitally signed email, I can 'read' the mail item subject (red line, above), but not the mail item body (blue line). > >I did some research and found the following on the Microsoft website: >Improvements to Outlook Object Model Guard and the Impact >Office Outlook 2003 inherits the Outlook 2002 object model guard behavior and, in addition, blocks code that attempts to access the Body and HTMLBody properties of various Outlook items. This allows users to verify that the program or add-in accessing the Body and HTMLBody properties of these items is trustworthy, before they allow access to the contents of the items. Although this change forces the display of security warnings in existing COM add-ins that access the Body or HTMLBody properties of items, this will help prevent malicious code from running unknown to the user. > >You can avoid the display of security warnings by deriving all objects, properties, and methods from the Application object passed to the OnConnection procedure of the add-in. Office Outlook 2003 trusts only the Application object passed to the OnConnection procedure of the add-in. If you create a new Application object -- for example, by using the CreateObject method -- that object and any of its subordinate objects, properties, and methods will not be trusted and the blocked properties and methods will raise security warnings. > > > >however, I don't understand their reference to COM Add-inn or OnConnection procedure. Have any of you encountered a similar problem reading a digitally signed email and what solution have you come up with? Thanks, > >-- Wayne Warren >Software Solutions >wayne.warren at adelphia.net > > -- Marty Connelly Victoria, B.C. Canada From Jim.Hale at FleetPride.com Wed Oct 4 16:31:17 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 4 Oct 2006 16:31:17 -0500 Subject: [AccessD] Automated Grouping Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE01D@corp-es01.fleetpride.com> Useful stuff, Thanks Jim Hale -----Original Message----- From: ewaldt at gdls.com [mailto:ewaldt at gdls.com] Sent: Wednesday, October 04, 2006 3:53 PM To: accessd at databaseadvisors.com Subject: [AccessD] Automated Grouping I couldn't find a solution to this anywhere on the Net, so I worked out one for myself, which is always more satisfying anyway. I'm posting it here in case it can help anyone. I wanted to group (as in Group and Outline) all of the data in all of the worksheets in a workbook. The grouping would be based on column A, starting in row 2 (allowing for one row of headers). I have several sheets of hundreds or thousands (depending on the sheet) of rows, so doing this by hand was extremely time-consuming (and painful on the wrist using the mouse). Perhaps this is too elementary for this list, but I thought someone might find it useful. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 ---------------------------------------------------------------------------- ---- Sub AutoGroup() 'Created 10/04/06 by Thomas F. Ewald, GDLS Dim intFirstRow As Integer Dim intLastRow As Integer Dim Wks As Worksheet Dim strName As String For Each Wks In Worksheets Wks.Select intFirstRow = 0 Range("A2").Select Do Until ActiveCell.Value = 0 If ActiveCell.Value = ActiveCell.Offset(1, 0).Value Then 'First Match If intFirstRow = 0 Then intFirstRow = ActiveCell.Row + 1 'If not the first match, do nothing. Continue on. Else 'If intFirstRow is not 0, and the next cell does not match, 'we've reached the end of the group. Create the group. If intFirstRow <> 0 Then intLastRow = ActiveCell.Row Rows(intFirstRow & ":" & intLastRow).Select Selection.Rows.Group intFirstRow = 0 Range("A" & intLastRow).Select End If 'If intFirstRow = 0, and the next cell does not match, this 'cell is unmatched, and there is no group. Continue on. End If ActiveCell.Offset(1, 0).Select Loop Next Wks End Sub This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. -- 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 newsgrps at dalyn.co.nz Wed Oct 4 17:00:27 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Thu, 05 Oct 2006 11:00:27 +1300 Subject: [AccessD] Simple Install to run SQL2000 Database Message-ID: <7.0.1.0.0.20061005110021.01aad8f8@dalyn.co.nz> Group, I have a client who wants to see the progress of a development project we are writing. The database is SQL2000. He doesn't have SQL2000 on his computer. All we need is to be able to have something on his computer so that I can install a runtime of the Access XP ade and he can use it. This is only a temporary solution until he gets a server with the full SQL2000 installed on it. Since the temporary computer will not be accessible via a network, and it will not have a full version of Access XP on it, I am not sure that even if we got SQL2000 installed, we could connect to the database without coding the connection string (which is another matter). Back to my original question - Is there a free version of SQL2000 available, or will the free version of SQL2005 run SQL2000 databases. If so, does it have a tool like Enterprise manager for restoring datafiles etc? From stuart at lexacorp.com.pg Wed Oct 4 17:13:54 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 05 Oct 2006 08:13:54 +1000 Subject: [AccessD] Simple Install to run SQL2000 Database In-Reply-To: <7.0.1.0.0.20061005065718.01ab0348@dalyn.co.nz> References: <7.0.1.0.0.20061005065718.01ab0348@dalyn.co.nz> Message-ID: <4524BEC2.16409.37E647A@stuart.lexacorp.com.pg> Instal MSDE and the SQL Server 2000 client tools on the workstation. See http://www.microsoft.com/sql/prodinfo/previousversions/msde/prodinfo.mspx On 5 Oct 2006 at 11:00, David Emerson wrote: > Group, > > I have a client who wants to see the progress of a development > project we are writing. The database is SQL2000. He doesn't have > SQL2000 on his computer. All we need is to be able to have something > on his computer so that I can install a runtime of the Access XP ade > and he can use it. This is only a temporary solution until he gets a > server with the full SQL2000 installed on it. > > Since the temporary computer will not be accessible via a network, > and it will not have a full version of Access XP on it, I am not sure > that even if we got SQL2000 installed, we could connect to the > database without coding the connection string (which is another matter). > > Back to my original question - Is there a free version of SQL2000 > available, or will the free version of SQL2005 run SQL2000 > databases. If so, does it have a tool like Enterprise manager for > restoring datafiles etc? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From ssharkins at setel.com Wed Oct 4 17:24:16 2006 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 4 Oct 2006 18:24:16 -0400 Subject: [AccessD] Modifying Table Field Properties - Resolved! In-Reply-To: <016701c6e7e2$71f7acc0$6501a8c0@LaptopXP> Message-ID: <000101c6e803$d46d5a00$bbb82ad1@SUSANONE> John -- you've been hanging around with me too much. :) Isn't it nice though that you figured it out? ;) Susan H. Just figured it out. I was trying to modify a field that did not have that Property. It was a numeric field. Although it still returned a value for that property in code. That's what threw me off. (Isn't that odd?) From max at sherman.org.uk Thu Oct 5 04:42:26 2006 From: max at sherman.org.uk (Max Home) Date: Thu, 5 Oct 2006 10:42:26 +0100 Subject: [AccessD] Longitude/Latitude Now Extenal MDBs In-Reply-To: AAAAAFWZt4UlhGRNs4nf35oT6aTEjSoA Message-ID: <002a01c6e862$926528e0$8119fea9@MaxLapTop> Apologies to all, I should have renamed my previous posting. Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Home Sent: Wednesday, October 04, 2006 6:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Longitude/Latitude Dear All, Does anyway know if it is possible to call an mdb from within another mdb so that all the forms, queries, reports, etc are available from within the calling mdb? Many thanks Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Oct 5 10:50:20 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 05 Oct 2006 08:50:20 -0700 Subject: [AccessD] Longitude/Latitude Now Extenal MDBs In-Reply-To: <002a01c6e862$926528e0$8119fea9@MaxLapTop> References: <002a01c6e862$926528e0$8119fea9@MaxLapTop> Message-ID: <452529BC.1040209@shaw.ca> You could install mdb as an mda addin, this may involve monkeying with USysRegInfo table. Reports, forms and modules should work. Dunno about queries, lots of info on this on MS site where they describe how to write your own wizard. They opened up the code for some Access 97 wizards which maybe still downloadable. You could also add a reference to the mdb, but not sure what that would buy you. Max Home wrote: >Apologies to all, I should have renamed my previous posting. > > >Regards >Max >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Home >Sent: Wednesday, October 04, 2006 6:36 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Longitude/Latitude > >Dear All, >Does anyway know if it is possible to call an mdb from within another mdb so >that all the forms, queries, reports, etc are available from within the >calling mdb? > >Many thanks > >Regards >Max > > > -- Marty Connelly Victoria, B.C. Canada From markamatte at hotmail.com Thu Oct 5 11:18:42 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 05 Oct 2006 16:18:42 +0000 Subject: [AccessD] Longitude/Latitude Now Extenal MDBs In-Reply-To: <452529BC.1040209@shaw.ca> Message-ID: Max, Not sure what you're trying to accomplish...but why not just open the other MDB? Just Curious, Mark A. Matte >From: MartyConnelly >Reply-To: Access Developers discussion and problem >solving >To: Access Developers discussion and problem >solving >Subject: Re: [AccessD] Longitude/Latitude Now Extenal MDBs >Date: Thu, 05 Oct 2006 08:50:20 -0700 > >You could install mdb as an mda addin, this may involve monkeying >with USysRegInfo table. Reports, forms and modules should work. >Dunno about queries, lots of info on this on MS site where they >describe how to write your own wizard. They opened up the code >for some Access 97 wizards which maybe still downloadable. > >You could also add a reference to the mdb, but not sure what that would >buy you. > > >Max Home wrote: > > >Apologies to all, I should have renamed my previous posting. > > > > > >Regards > >Max > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Home > >Sent: Wednesday, October 04, 2006 6:36 PM > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] Longitude/Latitude > > > >Dear All, > >Does anyway know if it is possible to call an mdb from within another mdb >so > >that all the forms, queries, reports, etc are available from within the > >calling mdb? > > > >Many thanks > > > >Regards > >Max > > > > > > > >-- >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 scapistrant at symphonyinfo.com Thu Oct 5 16:11:35 2006 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Thu, 5 Oct 2006 16:11:35 -0500 Subject: [AccessD] Longitude/Latitude References: <000601c6e3f7$75f3ff70$4b4f5a46@Symphony.local><02F5B8F3D893A845A3DF342F14D80F0103A46D@LAKATOS.Symphony.local> <000601c6e419$01daf540$4b4f5a46@Symphony.local> Message-ID: <02F5B8F3D893A845A3DF342F14D80F0103A476@LAKATOS.Symphony.local> Thank you William and others for your responses. Steve Capistrant Symphony Information Services scapistrant at symphonyinfo.com www.symphonyinfo.com Main: 763-391-7400 ext 801 Toll Free: 888-357-1373 ext 801 Direct: 612-237-0075 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of William Hindman Sent: Fri 9/29/2006 5:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Longitude/Latitude ...reference tables abound ...including high quality free ones ...start here, but there are plenty more http://spatialnews.geocomm.com/newsletter/2000/jan/zipcodes.html William Hindman ----- Original Message ----- From: "Steve Capistrant" To: "Access Developers discussion and problem solving" ; Sent: Friday, September 29, 2006 5:56 PM Subject: [AccessD] Longitude/Latitude > Hello all, > > Sorry if this has been asked recently and I didn't pay attention. What > options exist for programmatically inserting longitude and latitude values > on an address record? I was told that Google had some way to return that > information from their database, but can't seem to find it (perhaps if I > paid for a business account). This is a task I'd do regularly (perhaps > twice a month) as data gets uploaded from a local Access db into a > website, where the website is coded to calculate distance between > addresses. > > Ideally, it would be SO cool to due this by connecting to a website and > looping through the recordset of an Address table. But another option I > suppose is getting occasional downloads of a reference table, and use that > as my lookup. > > Steve Capistrant From max at sherman.org.uk Fri Oct 6 00:33:06 2006 From: max at sherman.org.uk (Max Home) Date: Fri, 6 Oct 2006 06:33:06 +0100 Subject: [AccessD] External MDBs In-Reply-To: AAAAAFWZt4UlhGRNs4nf35oT6aSEmSoA Message-ID: <001501c6e908$e804d9c0$8119fea9@MaxLapTop> Thanks Marty, What I had in mind was a central MDB which (depending upon options set) would allow users access to other MDBs from a central menu. Once the option was enabled and the user clicked on the menu item, the called MDB would then open in exactly the same way as if it had been opened from Windows. Once the called MDB was exited, then the central MDB would re-open back at the menu. I have set References, but it only appears to give me access to the code within the called MDB and not the full functionality. I will have a look at MDA Addins. Thanks Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, October 05, 2006 4:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Longitude/Latitude Now Extenal MDBs You could install mdb as an mda addin, this may involve monkeying with USysRegInfo table. Reports, forms and modules should work. Dunno about queries, lots of info on this on MS site where they describe how to write your own wizard. They opened up the code for some Access 97 wizards which maybe still downloadable. You could also add a reference to the mdb, but not sure what that would buy you. Max Home wrote: >Apologies to all, I should have renamed my previous posting. > > >Regards >Max >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Home >Sent: Wednesday, October 04, 2006 6:36 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Longitude/Latitude > >Dear All, >Does anyway know if it is possible to call an mdb from within another mdb so >that all the forms, queries, reports, etc are available from within the >calling mdb? > >Many thanks > >Regards >Max > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Oct 6 02:37:32 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 06 Oct 2006 00:37:32 -0700 Subject: [AccessD] External MDBs In-Reply-To: <001501c6e908$e804d9c0$8119fea9@MaxLapTop> References: <001501c6e908$e804d9c0$8119fea9@MaxLapTop> Message-ID: <452607BC.4050402@shaw.ca> Then you might look at TSI Soon dll http://www.trigeminal.com/lang/1033/utility.asp?ItemID=8#8 Max Home wrote: >Thanks Marty, >What I had in mind was a central MDB which (depending upon options set) >would allow users access to other MDBs from a central menu. Once the option >was enabled and the user clicked on the menu item, the called MDB would then >open in exactly the same way as if it had been opened from Windows. Once >the called MDB was exited, then the central MDB would re-open back at the >menu. > >I have set References, but it only appears to give me access to the code >within the called MDB and not the full functionality. > >I will have a look at MDA Addins. > >Thanks > >Regards >Max >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, October 05, 2006 4:50 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Longitude/Latitude Now Extenal MDBs > >You could install mdb as an mda addin, this may involve monkeying >with USysRegInfo table. Reports, forms and modules should work. >Dunno about queries, lots of info on this on MS site where they >describe how to write your own wizard. They opened up the code >for some Access 97 wizards which maybe still downloadable. > >You could also add a reference to the mdb, but not sure what that would >buy you. > > >Max Home wrote: > > > >>Apologies to all, I should have renamed my previous posting. >> >> >>Regards >>Max >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Home >>Sent: Wednesday, October 04, 2006 6:36 PM >>To: 'Access Developers discussion and problem solving' >>Subject: Re: [AccessD] Longitude/Latitude >> >>Dear All, >>Does anyway know if it is possible to call an mdb from within another mdb >> >> >so > > >>that all the forms, queries, reports, etc are available from within the >>calling mdb? >> >>Many thanks >> >>Regards >>Max >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Fri Oct 6 04:51:20 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 06 Oct 2006 11:51:20 +0200 Subject: [AccessD] Google Code Search Message-ID: Hi all This service is taking off: http://www.google.com/codesearch /gustav From askolits at ot.com Fri Oct 6 07:11:43 2006 From: askolits at ot.com (John Skolits) Date: Fri, 6 Oct 2006 08:11:43 -0400 Subject: [AccessD] mdac vERSION In-Reply-To: <001501c6e908$e804d9c0$8119fea9@MaxLapTop> Message-ID: <035701c6e940$998e0cc0$6501a8c0@LaptopXP> I tried to get the MDAC version on an Windows NT Server and the ComChecker program didn't work. I checked the registry and found FullInstallVer = 2.80.1062.0 I searched to try and figure out if this is the latest version. Anyone know for sure? John From adtp at hotmail.com Fri Oct 6 09:02:37 2006 From: adtp at hotmail.com (A.D.TEJPAL) Date: Fri, 6 Oct 2006 19:32:37 +0530 Subject: [AccessD] External MDBs References: <001501c6e908$e804d9c0$8119fea9@MaxLapTop> Message-ID: Max, My sample db named ExternalDbAutomation might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. You might find it quite close to what you are seeking. Some of its features are outlined below. Best wishes, A.D.Tejpal --------------- Sample Db (ExternalDbAutomation) ================================ The sample set consists of two mdb files, representing local and external db's respectively. Access XP version incorporates programmatic insertion of password argument for opening the external db (In earlier versions, password argument is not available for OpenCurrentDatabase method). So long as both db's are in the same folder, the local db will automatically detect the path of external db Clicking the command button captioned "Go To External Db", on switchboard form in local db, hides the local access application and results in either of the following - (a) If external db is not yet open, a new instance of access application is created, in which external db is opened and its switchboard form is displayed. (b) If external db is already open, it gets un-hidden and its switchboard form is displayed. In external db, opening of form F_Reports results in loading of all available report names (from AllReports collection) in the list box, facilitating print/preview. In external db, clicking the go-back button (or closing the switchboard form) results in hiding of external db and un-hiding of local db. Any of the following actions in local db ensures closure of external db (if still open) - (a) Click command button for closing external db. (b) Close switchboard form of local db. (c) click command button for closing local db. Versions - Access XP & 2K (Both in Access 2000 File Format) References - DAO 3.6 ================================ ----- Original Message ----- From: Max Home To: 'Access Developers discussion and problem solving' Sent: Friday, October 06, 2006 11:03 Subject: [AccessD] External MDBs Thanks Marty, What I had in mind was a central MDB which (depending upon options set) would allow users access to other MDBs from a central menu. Once the option was enabled and the user clicked on the menu item, the called MDB would then open in exactly the same way as if it had been opened from Windows. Once the called MDB was exited, then the central MDB would re-open back at the menu. I have set References, but it only appears to give me access to the code within the called MDB and not the full functionality. I will have a look at MDA Addins. Thanks Regards Max From dwaters at usinternet.com Fri Oct 6 09:35:04 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 6 Oct 2006 09:35:04 -0500 Subject: [AccessD] mdac vERSION In-Reply-To: <24194681.1160136990668.JavaMail.root@sniper7> Message-ID: <001901c6e954$9de282b0$0300a8c0@danwaters> John, 2.8 is the latest version of MDAC, but you may want to check this page for more info: http://support.microsoft.com/?scid=ph;en-us;1596 Dan Waters -----Original Message----- Subject: [AccessD] mdac vERSION I tried to get the MDAC version on an Windows NT Server and the ComChecker program didn't work. I checked the registry and found FullInstallVer = 2.80.1062.0 I searched to try and figure out if this is the latest version. Anyone know for sure? John From askolits at ot.com Fri Oct 6 10:31:21 2006 From: askolits at ot.com (John Skolits) Date: Fri, 6 Oct 2006 11:31:21 -0400 Subject: [AccessD] mdac vERSION In-Reply-To: <001901c6e954$9de282b0$0300a8c0@danwaters> Message-ID: <03a201c6e95c$7cd402d0$6501a8c0@LaptopXP> My problem is that I'm not sure if the version number "2.80.1062.0" indicates 2.8 (I expect the first 3 numbers '2.80' are a giveaway). But, I just want to make sure. I don't see anywhere where they specify this type of exact number in their documentation. My guess is that the number indicate release 2.8, Build 1062 Version 0. But, just a guess. Is there anyone who has any idea of MS version, number system to confirm my guess. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, October 06, 2006 10:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] mdac vERSION John, 2.8 is the latest version of MDAC, but you may want to check this page for more info: http://support.microsoft.com/?scid=ph;en-us;1596 Dan Waters -----Original Message----- Subject: [AccessD] mdac vERSION I tried to get the MDAC version on an Windows NT Server and the ComChecker program didn't work. I checked the registry and found FullInstallVer = 2.80.1062.0 I searched to try and figure out if this is the latest version. Anyone know for sure? John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Fri Oct 6 10:32:10 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 06 Oct 2006 11:32:10 -0400 Subject: [AccessD] Google Code Search In-Reply-To: References: Message-ID: <45263EB8.167F.006B.0@niagaracounty.com> OK...I need help here...BADLY! I've been like the typical guy, who won't stop and ask for directions...I've been working on this one single issue, since yesterday, and I cannot find the problem. I wrote this program, many moons ago, for our Social Services Fraud Unit. They told me, at that time, that they would never exceed, or even get to 1000 records in a year. There largest amount was around 700. The reason this was an issue was their control numbers, which were in the form of 06-001, where this number would be the first case of the year 2006. It then rolls over for the first case of the following year, to 07-001. Despite their claim, I made the control number in the form of, 06-0001, so that it could handle up to 9,999 records. When they saw this, they demanded that I change it. They did not want the extra digit in their number. Well, guess what. Two years ago, they went over the 1000 record mark and called me to make the change. Actually that year they thought it was a fluke or something, so we just made do somehow...I don't even recall. Last year it was the same issue, so I fixed it...or thought I did. It must have worked because it went up to record 06-1000 this year, before halting, whereas last year it stopped at 05-999. Now we are at my current problem, and I just can't figure it out. It looks like it should work and it isn't breaking at 999, but rather 1000, and this confuses me. The code is as follows: Function NewControlNum() As String Dim strSQL As String Dim strNewID As String Dim rst As Recordset strSQL = "SELECT nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS lngMaxID," & _ "Right(Year(Now()),2)" & _ "& '-' & [lngMaxID] AS lngNewID " & _ "FROM tblMain " & _ "WHERE (((Left([tblMain]![txtControlNum],2))=Right(Year(Now()),2)));" Set rst = CodeDb.OpenRecordset(strSQL) With rst strNewID = rst!lngNewID rst.Close Set rst = Nothing End With NewControlNum = strNewID Rem *************************************************************************** Select Case Len(NewControlNum) Case 4 NewControlNum = Left(NewControlNum, 3) & "00" & Right(NewControlNum, 1) Case 5 NewControlNum = Left(NewControlNum, 3) & "0" & Right(NewControlNum, 2) End Select End Function -------------------------------------------------------------------------------------- BTW...this is an A97 program. It works perfectly fine, filling in the next control number, when you hit upon a new record, until it gets to 06-1000, and then it just wants to keep putting in that same number. As a test, I went into the table and added a record 06-1101, just to see what the result would be. It too returned 06-1000 as the next number. I deleted the last 5 records so that we were at 06-996, and it let me re-enter them, putting in the proper numbers, as I went (06-997 thru 06-1000). I just know it is something simple that I am missing. John W. Clark From John.Clark at niagaracounty.com Fri Oct 6 10:37:51 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Fri, 06 Oct 2006 11:37:51 -0400 Subject: [AccessD] Dire need for help Message-ID: <4526400C.167F.006B.0@niagaracounty.com> Sorry, I posted this on another thread first...AAAARRG....I'm just so frustrated at the moment. OK...I need help here...BADLY! I've been like the typical guy, who won't stop and ask for directions...I've been working on this one single issue, since yesterday, and I cannot find the problem. I wrote this program, many moons ago, for our Social Services Fraud Unit. They told me, at that time, that they would never exceed, or even get to 1000 records in a year. There largest amount was around 700. The reason this was an issue was their control numbers, which were in the form of 06-001, where this number would be the first case of the year 2006. It then rolls over for the first case of the following year, to 07-001. Despite their claim, I made the control number in the form of, 06-0001, so that it could handle up to 9,999 records. When they saw this, they demanded that I change it. They did not want the extra digit in their number. Well, guess what. Two years ago, they went over the 1000 record mark and called me to make the change. Actually that year they thought it was a fluke or something, so we just made do somehow...I don't even recall. Last year it was the same issue, so I fixed it...or thought I did. It must have worked because it went up to record 06-1000 this year, before halting, whereas last year it stopped at 05-999. Now we are at my current problem, and I just can't figure it out. It looks like it should work and it isn't breaking at 999, but rather 1000, and this confuses me. The code is as follows: Function NewControlNum() As String Dim strSQL As String Dim strNewID As String Dim rst As Recordset strSQL = "SELECT nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS lngMaxID," & _ "Right(Year(Now()),2)" & _ "& '-' & [lngMaxID] AS lngNewID " & _ "FROM tblMain " & _ "WHERE (((Left([tblMain]![txtControlNum],2))=Right(Year(Now()),2)));" Set rst = CodeDb.OpenRecordset(strSQL) With rst strNewID = rst!lngNewID rst.Close Set rst = Nothing End With NewControlNum = strNewID Rem *************************************************************************** Select Case Len(NewControlNum) Case 4 NewControlNum = Left(NewControlNum, 3) & "00" & Right(NewControlNum, 1) Case 5 NewControlNum = Left(NewControlNum, 3) & "0" & Right(NewControlNum, 2) End Select End Function -------------------------------------------------------------------------------------- BTW...this is an A97 program. It works perfectly fine, filling in the next control number, when you hit upon a new record, until it gets to 06-1000, and then it just wants to keep putting in that same number. As a test, I went into the table and added a record 06-1101, just to see what the result would be. It too returned 06-1000 as the next number. I deleted the last 5 records so that we were at 06-996, and it let me re-enter them, putting in the proper numbers, as I went (06-997 thru 06-1000). I just know it is something simple that I am missing. John W. Clark From ldoering at symphonyinfo.com Fri Oct 6 11:27:22 2006 From: ldoering at symphonyinfo.com (Liz Doering) Date: Fri, 6 Oct 2006 11:27:22 -0500 Subject: [AccessD] Dire need for help References: <000101c6e960$84bf0040$4b4f5a46@Symphony.local> Message-ID: <02F5B8F3D893A845A3DF342F14D80F01066967@LAKATOS.Symphony.local> John, Instead of taking the Max(Mid([tblMain]![txtControlNum],4)) (that is, max txtControlNum), take the of Max(Val(Right([txtControlNum],Len([txtcontrolnum])-3))) (that is, max of the value of the txtControlNum). As it stands you are returning the max text value, which is a little different than returning the max numeric value. Good Luck! Liz ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of John Clark Sent: Fri 10/6/2006 11:00 AM To: accessd at databaseadvisors.com Subject: [AccessD] Dire need for help Sorry, I posted this on another thread first...AAAARRG....I'm just so frustrated at the moment. OK...I need help here...BADLY! I've been like the typical guy, who won't stop and ask for directions...I've been working on this one single issue, since yesterday, and I cannot find the problem. I wrote this program, many moons ago, for our Social Services Fraud Unit. They told me, at that time, that they would never exceed, or even get to 1000 records in a year. There largest amount was around 700. The reason this was an issue was their control numbers, which were in the form of 06-001, where this number would be the first case of the year 2006. It then rolls over for the first case of the following year, to 07-001. Despite their claim, I made the control number in the form of, 06-0001, so that it could handle up to 9,999 records. When they saw this, they demanded that I change it. They did not want the extra digit in their number. Well, guess what. Two years ago, they went over the 1000 record mark and called me to make the change. Actually that year they thought it was a fluke or something, so we just made do somehow...I don't even recall. Last year it was the same issue, so I fixed it...or thought I did. It must have worked because it went up to record 06-1000 this year, before halting, whereas last year it stopped at 05-999. Now we are at my current problem, and I just can't figure it out. It looks like it should work and it isn't breaking at 999, but rather 1000, and this confuses me. The code is as follows: Function NewControlNum() As String Dim strSQL As String Dim strNewID As String Dim rst As Recordset strSQL = "SELECT nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS lngMaxID," & _ "Right(Year(Now()),2)" & _ "& '-' & [lngMaxID] AS lngNewID " & _ "FROM tblMain " & _ "WHERE (((Left([tblMain]![txtControlNum],2))=Right(Year(Now()),2)));" Set rst = CodeDb.OpenRecordset(strSQL) With rst strNewID = rst!lngNewID rst.Close Set rst = Nothing End With NewControlNum = strNewID Rem *************************************************************************** Select Case Len(NewControlNum) Case 4 NewControlNum = Left(NewControlNum, 3) & "00" & Right(NewControlNum, 1) Case 5 NewControlNum = Left(NewControlNum, 3) & "0" & Right(NewControlNum, 2) End Select End Function -------------------------------------------------------------------------------------- BTW...this is an A97 program. It works perfectly fine, filling in the next control number, when you hit upon a new record, until it gets to 06-1000, and then it just wants to keep putting in that same number. As a test, I went into the table and added a record 06-1101, just to see what the result would be. It too returned 06-1000 as the next number. I deleted the last 5 records so that we were at 06-996, and it let me re-enter them, putting in the proper numbers, as I went (06-997 thru 06-1000). I just know it is something simple that I am missing. John W. Clark -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri Oct 6 11:45:44 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 6 Oct 2006 12:45:44 -0400 Subject: [AccessD] [SPAM SUSPECT] Dire need for help In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E44256@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35977@ADGSERVER> John, How is the field declared? Is there a format on that field? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, October 06, 2006 11:38 AM To: accessd at databaseadvisors.com Subject: [SPAM SUSPECT] [AccessD] Dire need for help Importance: Low Sorry, I posted this on another thread first...AAAARRG....I'm just so frustrated at the moment. OK...I need help here...BADLY! I've been like the typical guy, who won't stop and ask for directions...I've been working on this one single issue, since yesterday, and I cannot find the problem. I wrote this program, many moons ago, for our Social Services Fraud Unit. They told me, at that time, that they would never exceed, or even get to 1000 records in a year. There largest amount was around 700. The reason this was an issue was their control numbers, which were in the form of 06-001, where this number would be the first case of the year 2006. It then rolls over for the first case of the following year, to 07-001. Despite their claim, I made the control number in the form of, 06-0001, so that it could handle up to 9,999 records. When they saw this, they demanded that I change it. They did not want the extra digit in their number. Well, guess what. Two years ago, they went over the 1000 record mark and called me to make the change. Actually that year they thought it was a fluke or something, so we just made do somehow...I don't even recall. Last year it was the same issue, so I fixed it...or thought I did. It must have worked because it went up to record 06-1000 this year, before halting, whereas last year it stopped at 05-999. Now we are at my current problem, and I just can't figure it out. It looks like it should work and it isn't breaking at 999, but rather 1000, and this confuses me. The code is as follows: Function NewControlNum() As String Dim strSQL As String Dim strNewID As String Dim rst As Recordset strSQL = "SELECT nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS lngMaxID," & _ "Right(Year(Now()),2)" & _ "& '-' & [lngMaxID] AS lngNewID " & _ "FROM tblMain " & _ "WHERE (((Left([tblMain]![txtControlNum],2))=Right(Year(Now()),2)));" Set rst = CodeDb.OpenRecordset(strSQL) With rst strNewID = rst!lngNewID rst.Close Set rst = Nothing End With NewControlNum = strNewID Rem *************************************************************************** Select Case Len(NewControlNum) Case 4 NewControlNum = Left(NewControlNum, 3) & "00" & Right(NewControlNum, 1) Case 5 NewControlNum = Left(NewControlNum, 3) & "0" & Right(NewControlNum, 2) End Select End Function ---------------------------------------------------------------------------- ---------- BTW...this is an A97 program. It works perfectly fine, filling in the next control number, when you hit upon a new record, until it gets to 06-1000, and then it just wants to keep putting in that same number. As a test, I went into the table and added a record 06-1101, just to see what the result would be. It too returned 06-1000 as the next number. I deleted the last 5 records so that we were at 06-996, and it let me re-enter them, putting in the proper numbers, as I went (06-997 thru 06-1000). I just know it is something simple that I am missing. John W. Clark From martyconnelly at shaw.ca Fri Oct 6 12:05:17 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 06 Oct 2006 10:05:17 -0700 Subject: [AccessD] mdac vERSION In-Reply-To: <03a201c6e95c$7cd402d0$6501a8c0@LaptopXP> References: <03a201c6e95c$7cd402d0$6501a8c0@LaptopXP> Message-ID: <45268CCD.4030803@shaw.ca> You should be all right to install MDAC 2.8 SP1 on NT, you are running standard 2.8, instructions below to determine MDAC from specific dll. Read the release manifests because some MDAC's may clobber SQL 7. requirements from Release manifest 2.8 SP1 Microsoft Windows NT 4 Service Pack 5 (SP5) or a later version, and Internet Explorer 5.01 Here is the portal site for MDAC info http://www.microsoft.com/data on the SP download page click MDAC 2.8 Release Manifest Release manifest for MDAC 2.8 (2.80.1022.3) http://support.microsoft.com/?kbid=828396 further down the page is the File List for MDAC 2.8 (2.80.1022.3) To find MDAC installed Look at the version number for this standard MDAC file through windows explorer It is the one added to Access reference list msado15.dll 2.80.1022.0 ADO On Win XP file located here C:\Program Files\Common Files\System\ado\msado15.dll Right click on file select properties then version then file version to see the magic version number. Release manifest for MDAC 2.8 Service Pack 1 (2.81.1117.6) http://support.microsoft.com/kb/899456 Here is the major download page http://msdn.microsoft.com/data/ref/mdac/downloads/ MDAC 2.8 SP1 release installs the same Data Access components as Microsoft Windows XP SP2. MDAC 2.8 SP2 comes with windows 2003 server The version included in Win XP SP2 is 2.8 SP1 John Skolits wrote: >My problem is that I'm not sure if the version number >"2.80.1062.0" indicates 2.8 (I expect the first 3 numbers '2.80' are a >giveaway). > >But, I just want to make sure. I don't see anywhere where they specify this >type of exact number in their documentation. My guess is that the number >indicate release 2.8, Build 1062 Version 0. But, just a guess. > > >Is there anyone who has any idea of MS version, number system to confirm my >guess. > >John > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >Sent: Friday, October 06, 2006 10:35 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] mdac vERSION > >John, > >2.8 is the latest version of MDAC, but you may want to check this page for >more info: > >http://support.microsoft.com/?scid=ph;en-us;1596 > >Dan Waters > >-----Original Message----- >Subject: [AccessD] mdac vERSION > >I tried to get the MDAC version on an Windows NT Server and the ComChecker >program didn't work. > >I checked the registry and found FullInstallVer = 2.80.1062.0 > >I searched to try and figure out if this is the latest version. Anyone know >for sure? > >John > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Fri Oct 6 12:53:13 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Fri, 6 Oct 2006 10:53:13 -0700 Subject: [AccessD] Google Code Search In-Reply-To: <45263EB8.167F.006B.0@niagaracounty.com> Message-ID: <006901c6e970$4c1f5a90$6801a8c0@HAL9005> Is the control number a PK? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Friday, October 06, 2006 8:32 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Google Code Search OK...I need help here...BADLY! I've been like the typical guy, who won't stop and ask for directions...I've been working on this one single issue, since yesterday, and I cannot find the problem. I wrote this program, many moons ago, for our Social Services Fraud Unit. They told me, at that time, that they would never exceed, or even get to 1000 records in a year. There largest amount was around 700. The reason this was an issue was their control numbers, which were in the form of 06-001, where this number would be the first case of the year 2006. It then rolls over for the first case of the following year, to 07-001. Despite their claim, I made the control number in the form of, 06-0001, so that it could handle up to 9,999 records. When they saw this, they demanded that I change it. They did not want the extra digit in their number. Well, guess what. Two years ago, they went over the 1000 record mark and called me to make the change. Actually that year they thought it was a fluke or something, so we just made do somehow...I don't even recall. Last year it was the same issue, so I fixed it...or thought I did. It must have worked because it went up to record 06-1000 this year, before halting, whereas last year it stopped at 05-999. Now we are at my current problem, and I just can't figure it out. It looks like it should work and it isn't breaking at 999, but rather 1000, and this confuses me. The code is as follows: Function NewControlNum() As String Dim strSQL As String Dim strNewID As String Dim rst As Recordset strSQL = "SELECT nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS lngMaxID," & _ "Right(Year(Now()),2)" & _ "& '-' & [lngMaxID] AS lngNewID " & _ "FROM tblMain " & _ "WHERE (((Left([tblMain]![txtControlNum],2))=Right(Year(Now()),2)));" Set rst = CodeDb.OpenRecordset(strSQL) With rst strNewID = rst!lngNewID rst.Close Set rst = Nothing End With NewControlNum = strNewID Rem *************************************************************************** Select Case Len(NewControlNum) Case 4 NewControlNum = Left(NewControlNum, 3) & "00" & Right(NewControlNum, 1) Case 5 NewControlNum = Left(NewControlNum, 3) & "0" & Right(NewControlNum, 2) End Select End Function ---------------------------------------------------------------------------- ---------- BTW...this is an A97 program. It works perfectly fine, filling in the next control number, when you hit upon a new record, until it gets to 06-1000, and then it just wants to keep putting in that same number. As a test, I went into the table and added a record 06-1101, just to see what the result would be. It too returned 06-1000 as the next number. I deleted the last 5 records so that we were at 06-996, and it let me re-enter them, putting in the proper numbers, as I went (06-997 thru 06-1000). I just know it is something simple that I am missing. John W. Clark -- 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.407 / Virus Database: 268.12.13/463 - Release Date: 10/4/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.12.13/463 - Release Date: 10/4/2006 From stuart at lexacorp.com.pg Fri Oct 6 19:36:01 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 07 Oct 2006 10:36:01 +1000 Subject: [AccessD] Dire ned of Help In-Reply-To: <45263EB8.167F.006B.0@niagaracounty.com> References: , <45263EB8.167F.006B.0@niagaracounty.com> Message-ID: <4526F671.5928.E4D2ABA@stuart.lexacorp.com.pg> On 6 Oct 2006 at 11:32, John Clark wrote: > strSQL = "SELECT nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS Mid([tblMain]![txtControlNum],4) will return "999" or "1000", as text strings. "999" is greater than "1000" when considered as a string - the first starts with ASC("9") the second with ASC("1") You need to return the maximum numeric value of the the sequence number, not the greatest string value. Use: nz(Max(Val(Mid([tblMain]![txtControlNum],4))),0)+1 -- Stuart From jengross at gte.net Fri Oct 6 21:09:57 2006 From: jengross at gte.net (Jennifer Gross) Date: Fri, 06 Oct 2006 19:09:57 -0700 Subject: [AccessD] ODBC Message-ID: <000c01c6e9b5$b3393120$6501a8c0@jefferson> Hello All, Question 1: When an Access front end connects to an Access backend is it an ODBC connection? Question 2: If multiple users have separate front ends on the same Terminal Server box linking to a back end on a different box, are they opening separate connections to the back end (ODBC or otherwise), or are they sharing the same connection? Thanks in advance, Jennifer From stuart at lexacorp.com.pg Fri Oct 6 22:04:43 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 07 Oct 2006 13:04:43 +1000 Subject: [AccessD] ODBC In-Reply-To: <000c01c6e9b5$b3393120$6501a8c0@jefferson> References: <000c01c6e9b5$b3393120$6501a8c0@jefferson> Message-ID: <4527194B.2359.ED54D6F@stuart.lexacorp.com.pg> On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or are > they sharing the same connection? They are separate connections. -- Stuart From jengross at gte.net Fri Oct 6 22:15:36 2006 From: jengross at gte.net (Jennifer Gross) Date: Fri, 06 Oct 2006 20:15:36 -0700 Subject: [AccessD] ODBC In-Reply-To: <4527194B.2359.ED54D6F@stuart.lexacorp.com.pg> Message-ID: <000e01c6e9be$e1c2b5d0$6501a8c0@jefferson> Hi Stuart, Do you have experience with Terminal Server with multiple users running separate front ends to a common Access data file? I would love to pick your brain if you do - or anyone else for that matter. I currently have a new IT guy who is in conflict with the old IT guy about our use of Terminal Server. We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. I have made no changes to the database, yet in the past two weeks we have experienced several "corruptions", when the database had been stable for nearly a year without a corruption. Any help would be appreciated. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, October 06, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or > are they sharing the same connection? They are separate connections. -- 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 Sat Oct 7 15:00:54 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sat, 7 Oct 2006 13:00:54 -0700 Subject: [AccessD] OT: Excel Question - Lock a Formula Message-ID: <001a01c6ea4b$4c2619d0$6801a8c0@HAL9005> Dear List: I have a formula in a cell in Column E that averages the next 12 cells in the row (=(F4-R4)/R4). When I insert a column after this formula, it changes the formula to =(G4-S4)/S4. I would like the formulas in column E to not change. Everything else can. Is there a way to ?lock? the formulas in just this column? MTIA Rocky -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 From dwaters at usinternet.com Sat Oct 7 15:43:56 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 7 Oct 2006 15:43:56 -0500 Subject: [AccessD] OT: Excel Question - Lock a Formula In-Reply-To: <7444151.1160251517379.JavaMail.root@Sniper27> Message-ID: <001a01c6ea51$4fbe7410$0200a8c0@danwaters> Hi Rocky, Yes! And it's easy. Just put a $ in front of the column letter in the spreadsheet formula. Create your formula, copy, then paste into the cells where you want the formula to be. When you look at the formula in those cells, you'll see that the column reference has not changed. You can do the same with the row references too. In fact, you can get pretty clever by combining column and row references that do change and that don't change. All the best, Dan Waters -----Original Message----- Subject: [AccessD] OT: Excel Question - Lock a Formula Dear List: I have a formula in a cell in Column E that averages the next 12 cells in the row (=(F4-R4)/R4). When I insert a column after this formula, it changes the formula to =(G4-S4)/S4. I would like the formulas in column E to not change. Everything else can. Is there a way to 'lock' the formulas in just this column? MTIA Rocky -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_Patten at earthlink.net Sat Oct 7 15:46:48 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Sat, 7 Oct 2006 13:46:48 -0700 Subject: [AccessD] OT: Excel Question - Lock a Formula References: <001a01c6ea4b$4c2619d0$6801a8c0@HAL9005> Message-ID: <001101c6ea51$b6e0bc70$0202fea9@BPCS> Hi Rocky Are you looking for $E$4 to lock to E4 ?? Not sure I understood the question but thought I'd give it a try. HTH Bill ----- Original Message ----- From: "Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Saturday, October 07, 2006 1:00 PM Subject: [AccessD] OT: Excel Question - Lock a Formula Dear List: I have a formula in a cell in Column E that averages the next 12 cells in the row (=(F4-R4)/R4). When I insert a column after this formula, it changes the formula to =(G4-S4)/S4. I would like the formulas in column E to not change. Everything else can. Is there a way to ?lock? the formulas in just this column? MTIA Rocky -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sat Oct 7 16:30:38 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sat, 7 Oct 2006 14:30:38 -0700 Subject: [AccessD] OT: Excel Question - Lock a Formula In-Reply-To: <001101c6ea51$b6e0bc70$0202fea9@BPCS> Message-ID: <004401c6ea57$d53e92e0$6801a8c0@HAL9005> Dan says so! :o) Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Saturday, October 07, 2006 1:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Excel Question - Lock a Formula Hi Rocky Are you looking for $E$4 to lock to E4 ?? Not sure I understood the question but thought I'd give it a try. HTH Bill ----- Original Message ----- From: "Beach Access Software" To: "'Access Developers discussion and problem solving'" Sent: Saturday, October 07, 2006 1:00 PM Subject: [AccessD] OT: Excel Question - Lock a Formula Dear List: I have a formula in a cell in Column E that averages the next 12 cells in the row (=(F4-R4)/R4). When I insert a column after this formula, it changes the formula to =(G4-S4)/S4. I would like the formulas in column E to not change. Everything else can. Is there a way to ?lock? the formulas in just this column? MTIA Rocky -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 From bchacc at san.rr.com Sat Oct 7 16:31:10 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sat, 7 Oct 2006 14:31:10 -0700 Subject: [AccessD] OT: Excel Question - Lock a Formula In-Reply-To: <001a01c6ea51$4fbe7410$0200a8c0@danwaters> Message-ID: <004501c6ea57$e86ba1a0$6801a8c0@HAL9005> That's it! Thanks Dan Rocky P.S. Martin: see why I don't think I ought to be writing an Excel book? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, October 07, 2006 1:44 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Excel Question - Lock a Formula Hi Rocky, Yes! And it's easy. Just put a $ in front of the column letter in the spreadsheet formula. Create your formula, copy, then paste into the cells where you want the formula to be. When you look at the formula in those cells, you'll see that the column reference has not changed. You can do the same with the row references too. In fact, you can get pretty clever by combining column and row references that do change and that don't change. All the best, Dan Waters -----Original Message----- Subject: [AccessD] OT: Excel Question - Lock a Formula Dear List: I have a formula in a cell in Column E that averages the next 12 cells in the row (=(F4-R4)/R4). When I insert a column after this formula, it changes the formula to =(G4-S4)/S4. I would like the formulas in column E to not change. Everything else can. Is there a way to 'lock' the formulas in just this column? MTIA Rocky -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.407 / Virus Database: 268.13.0/465 - Release Date: 10/6/2006 From martyconnelly at shaw.ca Sat Oct 7 16:52:13 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 07 Oct 2006 14:52:13 -0700 Subject: [AccessD] ODBC In-Reply-To: <000e01c6e9be$e1c2b5d0$6501a8c0@jefferson> References: <000e01c6e9be$e1c2b5d0$6501a8c0@jefferson> Message-ID: <4528218D.6030607@shaw.ca> Is there some reason you are not running your front and backend on the same dedicated server It would speed things up and avoid someone disconnecting your backend. Have a look through these Citrix / Remote Desktop - for an Access-developer covers TS too http://www.vb123.com/toolshed/05_access/remotedesktop.htm My random thoughts on Microsoft Access, Terminal Server and/or Citrix from Tony Toews http://www.granite.ab.ca/access/terminalserver.htm Jennifer Gross wrote: >Hi Stuart, > >Do you have experience with Terminal Server with multiple users running >separate front ends to a common Access data file? I would love to pick >your brain if you do - or anyone else for that matter. I currently have >a new IT guy who is in conflict with the old IT guy about our use of >Terminal Server. We are having data corruption and the new guy says it >is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. I have made no >changes to the database, yet in the past two weeks we have experienced >several "corruptions", when the database had been stable for nearly a >year without a corruption. > >Any help would be appreciated. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Friday, October 06, 2006 8:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ODBC > > >On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > > > >>Question 1: When an Access front end connects to an Access backend is >> >> > > > >>it an ODBC connection? >> >> > >No, it's a JET connection, which is more efficient than ODBC > > > >>Question 2: If multiple users have separate front ends on the same >>Terminal Server box linking to a back end on a different box, are they >> >> > > > >>opening separate connections to the back end (ODBC or otherwise), or >>are they sharing the same connection? >> >> > >They are separate connections. > > > -- Marty Connelly Victoria, B.C. Canada From dwaters at usinternet.com Sat Oct 7 18:14:39 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 7 Oct 2006 18:14:39 -0500 Subject: [AccessD] OT: Excel Question - Lock a Formula In-Reply-To: <27180274.1160256872273.JavaMail.root@sniper30> Message-ID: <001b01c6ea66$5e9c8e80$0200a8c0@danwaters> Wait! Wait! I thought I said you could get clever! Dan Waters -----Original Message----- Subject: Re: [AccessD] OT: Excel Question - Lock a Formula Dan says so! :o) Rocky -----Original Message----- Subject: Re: [AccessD] OT: Excel Question - Lock a Formula Hi Rocky Are you looking for $E$4 to lock to E4 ?? Not sure I understood the question but thought I'd give it a try. HTH Bill ----- Original Message ----- Subject: [AccessD] OT: Excel Question - Lock a Formula Dear List: I have a formula in a cell in Column E that averages the next 12 cells in the row (=(F4-R4)/R4). When I insert a column after this formula, it changes the formula to =(G4-S4)/S4. I would like the formulas in column E to not change. Everything else can. Is there a way to 'lock' the formulas in just this column? MTIA Rocky From david.gray at tpg.com.au Sun Oct 8 03:17:53 2006 From: david.gray at tpg.com.au (David Gray) Date: Sun, 08 Oct 2006 18:17:53 +1000 Subject: [AccessD] Vista Chart Problems In-Reply-To: <001b01c6ea66$5e9c8e80$0200a8c0@danwaters> References: <001b01c6ea66$5e9c8e80$0200a8c0@danwaters> Message-ID: <4528B431.2010102@tpg.com.au> Hi All, Would anyone running Vista and Access XP like to help me workout a workaround for Microsoft Graph Chart control. Works fine in XP misbehaves in Vista. While I am on the subject can anyone recommend a good third party charting OCX for Access? David Gray From jimdettman at verizon.net Sun Oct 8 06:38:41 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 08 Oct 2006 07:38:41 -0400 Subject: [AccessD] ODBC In-Reply-To: <000e01c6e9be$e1c2b5d0$6501a8c0@jefferson> Message-ID: <0J6T0077GF0FGZJL@vms040.mailsrvcs.net> Jennifer, << We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. >> The TS connection settings should be checked. When a connection is dropped, there are various things TS can do; retain the session so you can reconnect, log it out, etc. What you don't want is for it to be logged out. That means Access (and any other running apps) will get terminated whether they want to or not. The other place where TS bites you is references. Unless you change references on the fly or distribute a special TS version of your FE, all users will have references (usually to the local C drive in most cases). This means they are all sharing those references even if you've given them all a separate copy of the FE. With Dll's and type libs, that's not a problem, but if it's a .MDA add-in, you might have some issues with that. Using some of the Access Wizards under TS requires workarounds because of this. Beyond that, running TS is no different then a bunch of client PCs all connecting to the BE in terms of connections. In fact, it's a lot more stable. If I could run Access under TS vs the "normal" way, I'd choose TS hands down every time. Jim. BTW, how many users are we talking about? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Friday, October 06, 2006 11:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Stuart, Do you have experience with Terminal Server with multiple users running separate front ends to a common Access data file? I would love to pick your brain if you do - or anyone else for that matter. I currently have a new IT guy who is in conflict with the old IT guy about our use of Terminal Server. We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. I have made no changes to the database, yet in the past two weeks we have experienced several "corruptions", when the database had been stable for nearly a year without a corruption. Any help would be appreciated. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, October 06, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or > are they sharing the same connection? They are separate connections. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Sun Oct 8 12:09:32 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 8 Oct 2006 18:09:32 +0100 Subject: [AccessD] Google Code Search In-Reply-To: <45263EB8.167F.006B.0@niagaracounty.com> Message-ID: <020c01c6eafc$8663e670$dfc00c54@minster33c3r25> Hi John Mid([tblMain]![txtControlNum],4) returns a string. In string comparison terms 999 beats 1000, so the max is giving you 999 every time. Put Clng() around the Mid and it'll do a numeric comparison, so nz(Max(CLng(Mid([tblMain]![txtControlNum],4))),0)+1 AS lngMaxID -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark > Sent: 06 October 2006 16:32 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Google Code Search > > > OK...I need help here...BADLY! I've been like the typical > guy, who won't stop and ask for directions...I've been > working on this one single issue, since yesterday, and I > cannot find the problem. > > I wrote this program, many moons ago, for our Social Services > Fraud Unit. They told me, at that time, that they would never > exceed, or even get to 1000 records in a year. There largest > amount was around 700. The reason this was an issue was their > control numbers, which were in the form of 06-001, where this > number would be the first case of the year 2006. It then > rolls over for the first case of the following year, to > 07-001. Despite their claim, I made the control number in the > form of, 06-0001, so that it could handle up to 9,999 > records. When they saw this, they demanded that I change it. > They did not want the extra digit in their number. > > Well, guess what. Two years ago, they went over the 1000 > record mark and called me to make the change. Actually that > year they thought it was a fluke or something, so we just > made do somehow...I don't even recall. Last year it was the > same issue, so I fixed it...or thought I did. It must have > worked because it went up to record 06-1000 this year, before > halting, whereas last year it stopped at 05-999. > > Now we are at my current problem, and I just can't figure it > out. It looks like it should work and it isn't breaking at > 999, but rather 1000, and this confuses me. The code is as follows: > > Function NewControlNum() As String > Dim strSQL As String > Dim strNewID As String > Dim rst As Recordset > strSQL = "SELECT > nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS lngMaxID," & _ > "Right(Year(Now()),2)" & _ > "& '-' & [lngMaxID] AS lngNewID " & _ > "FROM tblMain " & _ > "WHERE > (((Left([tblMain]![txtControlNum],2))=Right(Year(Now()),2)));" > Set rst = CodeDb.OpenRecordset(strSQL) > With rst > strNewID = rst!lngNewID > rst.Close > Set rst = Nothing > End With > NewControlNum = strNewID > > Rem > ************************************************************** > ************* > > Select Case Len(NewControlNum) > Case 4 > NewControlNum = Left(NewControlNum, 3) & "00" & > Right(NewControlNum, 1) > Case 5 > NewControlNum = Left(NewControlNum, 3) & "0" & > Right(NewControlNum, 2) End Select > > > End Function > > -------------------------------------------------------------- > ------------------------ > > BTW...this is an A97 program. > > It works perfectly fine, filling in the next control number, > when you hit upon a new record, until it gets to 06-1000, and > then it just wants to keep putting in that same number. > > As a test, I went into the table and added a record 06-1101, > just to see what the result would be. It too returned 06-1000 > as the next number. I deleted the last 5 records so that we > were at 06-996, and it let me re-enter them, putting in the > proper numbers, as I went (06-997 thru 06-1000). > > I just know it is something simple that I am missing. > > John W. Clark > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Sun Oct 8 12:13:14 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 8 Oct 2006 18:13:14 +0100 Subject: [AccessD] Google Code Search In-Reply-To: <020c01c6eafc$8663e670$dfc00c54@minster33c3r25> Message-ID: <020d01c6eafd$0aa0e5a0$dfc00c54@minster33c3r25> Oops, didn't read ahead and see that the subject line had changed and others had resolved the problem. Sorry folks. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: 08 October 2006 18:10 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Google Code Search > > > Hi John > > Mid([tblMain]![txtControlNum],4) returns a string. In string > comparison terms 999 beats 1000, so the max is giving you 999 > every time. Put Clng() around the Mid and it'll do a numeric > comparison, so > > nz(Max(CLng(Mid([tblMain]![txtControlNum],4))),0)+1 AS lngMaxID > > > -- Andy Lacey > http://www.minstersystems.co.uk > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > John Clark > > Sent: 06 October 2006 16:32 > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Google Code Search > > > > > > OK...I need help here...BADLY! I've been like the typical > > guy, who won't stop and ask for directions...I've been > > working on this one single issue, since yesterday, and I > > cannot find the problem. > > > > I wrote this program, many moons ago, for our Social Services > > Fraud Unit. They told me, at that time, that they would never > > exceed, or even get to 1000 records in a year. There largest > > amount was around 700. The reason this was an issue was their > > control numbers, which were in the form of 06-001, where this > > number would be the first case of the year 2006. It then > > rolls over for the first case of the following year, to > > 07-001. Despite their claim, I made the control number in the > > form of, 06-0001, so that it could handle up to 9,999 > > records. When they saw this, they demanded that I change it. > > They did not want the extra digit in their number. > > > > Well, guess what. Two years ago, they went over the 1000 > > record mark and called me to make the change. Actually that > > year they thought it was a fluke or something, so we just > > made do somehow...I don't even recall. Last year it was the > > same issue, so I fixed it...or thought I did. It must have > > worked because it went up to record 06-1000 this year, before > > halting, whereas last year it stopped at 05-999. > > > > Now we are at my current problem, and I just can't figure it > > out. It looks like it should work and it isn't breaking at > > 999, but rather 1000, and this confuses me. The code is as follows: > > > > Function NewControlNum() As String > > Dim strSQL As String > > Dim strNewID As String > > Dim rst As Recordset > > strSQL = "SELECT > > nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS lngMaxID," & _ > > "Right(Year(Now()),2)" & _ > > "& '-' & [lngMaxID] AS lngNewID " & _ > > "FROM tblMain " & _ > > "WHERE > > (((Left([tblMain]![txtControlNum],2))=Right(Year(Now()),2)));" > > Set rst = CodeDb.OpenRecordset(strSQL) > > With rst > > strNewID = rst!lngNewID > > rst.Close > > Set rst = Nothing > > End With > > NewControlNum = strNewID > > > > Rem > > ************************************************************** > > ************* > > > > Select Case Len(NewControlNum) > > Case 4 > > NewControlNum = Left(NewControlNum, 3) & "00" & > > Right(NewControlNum, 1) > > Case 5 > > NewControlNum = Left(NewControlNum, 3) & "0" & > > Right(NewControlNum, 2) End Select > > > > > > End Function > > > > -------------------------------------------------------------- > > ------------------------ > > > > BTW...this is an A97 program. > > > > It works perfectly fine, filling in the next control number, > > when you hit upon a new record, until it gets to 06-1000, and > > then it just wants to keep putting in that same number. > > > > As a test, I went into the table and added a record 06-1101, > > just to see what the result would be. It too returned 06-1000 > > as the next number. I deleted the last 5 records so that we > > were at 06-996, and it let me re-enter them, putting in the > > proper numbers, as I went (06-997 thru 06-1000). > > > > I just know it is something simple that I am missing. > > > > John W. Clark > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From wdhindman at dejpolsystems.com Sun Oct 8 13:58:04 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 8 Oct 2006 14:58:04 -0400 Subject: [AccessD] Google Code Search References: Message-ID: <000b01c6eb0b$afd976f0$153ce944@50NM721> ...took me a while to figure it out ...must be getting old. ...to really use it you must have a solution almost in hand ...you really can't go looking for "how" ...have to play with it some more I guess. William Hindman ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, October 06, 2006 5:51 AM Subject: [AccessD] Google Code Search > Hi all > > This service is taking off: > > http://www.google.com/codesearch > > /gustav > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jengross at gte.net Sun Oct 8 15:18:24 2006 From: jengross at gte.net (Jennifer Gross) Date: Sun, 08 Oct 2006 13:18:24 -0700 Subject: [AccessD] ODBC In-Reply-To: <0J6T0077GF0FGZJL@vms040.mailsrvcs.net> Message-ID: <003201c6eb16$ebbc4570$6501a8c0@jefferson> Hi Jim, We have <25 users. The FE is only referencing DLLs and type libraries so hopefully that should not be a problem. Recently a WAMP Server (Apache) was installed on the TS box. Although it is inactive I have concerns that it has changed some setting that are contributing to the problems we are having. New IT guy says it was installed subsequent to the first corruption, but it was the same day. Since then the database has been "corrupting" at least once a day - typically around lunch time when all users are getting in to clock out - their time clock is part of the database. No data is lost, but the repair utility has to be run. In addition to the "corruptions" another strange thing has been happening during this time period - in the past when I was posting a FE update, if someone was using the database the linking to the BE would take 20+ minutes, I assume because of the record locking checks. Now, it takes less than a minute, as though no one is working in the database and everyone who is working in the database gets kicked out. We have one guy who works late nights, and that is when I post FE updates. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, October 08, 2006 4:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Jennifer, << We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. >> The TS connection settings should be checked. When a connection is dropped, there are various things TS can do; retain the session so you can reconnect, log it out, etc. What you don't want is for it to be logged out. That means Access (and any other running apps) will get terminated whether they want to or not. The other place where TS bites you is references. Unless you change references on the fly or distribute a special TS version of your FE, all users will have references (usually to the local C drive in most cases). This means they are all sharing those references even if you've given them all a separate copy of the FE. With Dll's and type libs, that's not a problem, but if it's a .MDA add-in, you might have some issues with that. Using some of the Access Wizards under TS requires workarounds because of this. Beyond that, running TS is no different then a bunch of client PCs all connecting to the BE in terms of connections. In fact, it's a lot more stable. If I could run Access under TS vs the "normal" way, I'd choose TS hands down every time. Jim. BTW, how many users are we talking about? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Friday, October 06, 2006 11:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Stuart, Do you have experience with Terminal Server with multiple users running separate front ends to a common Access data file? I would love to pick your brain if you do - or anyone else for that matter. I currently have a new IT guy who is in conflict with the old IT guy about our use of Terminal Server. We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. I have made no changes to the database, yet in the past two weeks we have experienced several "corruptions", when the database had been stable for nearly a year without a corruption. Any help would be appreciated. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, October 06, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or > are they sharing the same connection? They are separate connections. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Oct 8 19:15:09 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 8 Oct 2006 20:15:09 -0400 Subject: [AccessD] test Message-ID: <000a01c6eb37$fc221ae0$647aa8c0@m6805> test John W. Colby Colby Consulting www.ColbyConsulting.com From dwaters at usinternet.com Sun Oct 8 19:22:34 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 8 Oct 2006 19:22:34 -0500 Subject: [AccessD] test In-Reply-To: <27736664.1160353161036.JavaMail.root@sniper2> Message-ID: <001f01c6eb39$04ef1b40$0200a8c0@danwaters> OK! Dan Waters -----Original Message----- Subject: [AccessD] test test John W. Colby Colby Consulting www.ColbyConsulting.com From jimdettman at verizon.net Mon Oct 9 07:24:35 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 09 Oct 2006 08:24:35 -0400 Subject: [AccessD] ODBC In-Reply-To: <003201c6eb16$ebbc4570$6501a8c0@jefferson> Message-ID: <0J6V00F4MBSZDMRE@vms040.mailsrvcs.net> Jennifer, <> Maybe not a setting that was changed, but certainly it is consuming more resources on the server. My first stop would be the system event logs checking for any errors or warnings. I would also go back and check all TS settings in general and for each user. A disconnect should not logout the session. <> Someone is getting terminated abnormally. Have the users reported any strange behavior or problems? I didn't see in the prior messages what version of Access you are using, but what you need to do is find out what user(s) are leaving the database in a corrupt state. The method you use depends on the version (either using LDBVIEW or the JET roster). Once you have that, you can build up a pattern (same user all the time or different users each time). That generally gives you a clue where the problem lies. <> I would say 20+ minutes was abnormal, but without knowing what you mean by doing a "FE update", I can't say for sure. << Now, it takes less than a minute, as though no one is working in the database and everyone who is working in the database gets kicked out. >> How do they get 'Kicked out'. A message? Window simply closes? There is nothing in Access that does this on it's own. It's either something built into your app or something abnormal that is occurring. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, October 08, 2006 4:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Jim, We have <25 users. The FE is only referencing DLLs and type libraries so hopefully that should not be a problem. Recently a WAMP Server (Apache) was installed on the TS box. Although it is inactive I have concerns that it has changed some setting that are contributing to the problems we are having. New IT guy says it was installed subsequent to the first corruption, but it was the same day. Since then the database has been "corrupting" at least once a day - typically around lunch time when all users are getting in to clock out - their time clock is part of the database. No data is lost, but the repair utility has to be run. In addition to the "corruptions" another strange thing has been happening during this time period - in the past when I was posting a FE update, if someone was using the database the linking to the BE would take 20+ minutes, I assume because of the record locking checks. Now, it takes less than a minute, as though no one is working in the database and everyone who is working in the database gets kicked out. We have one guy who works late nights, and that is when I post FE updates. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, October 08, 2006 4:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Jennifer, << We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. >> The TS connection settings should be checked. When a connection is dropped, there are various things TS can do; retain the session so you can reconnect, log it out, etc. What you don't want is for it to be logged out. That means Access (and any other running apps) will get terminated whether they want to or not. The other place where TS bites you is references. Unless you change references on the fly or distribute a special TS version of your FE, all users will have references (usually to the local C drive in most cases). This means they are all sharing those references even if you've given them all a separate copy of the FE. With Dll's and type libs, that's not a problem, but if it's a .MDA add-in, you might have some issues with that. Using some of the Access Wizards under TS requires workarounds because of this. Beyond that, running TS is no different then a bunch of client PCs all connecting to the BE in terms of connections. In fact, it's a lot more stable. If I could run Access under TS vs the "normal" way, I'd choose TS hands down every time. Jim. BTW, how many users are we talking about? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Friday, October 06, 2006 11:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Stuart, Do you have experience with Terminal Server with multiple users running separate front ends to a common Access data file? I would love to pick your brain if you do - or anyone else for that matter. I currently have a new IT guy who is in conflict with the old IT guy about our use of Terminal Server. We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. I have made no changes to the database, yet in the past two weeks we have experienced several "corruptions", when the database had been stable for nearly a year without a corruption. Any help would be appreciated. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, October 06, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or > are they sharing the same connection? They are separate connections. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Oct 9 10:18:44 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 9 Oct 2006 10:18:44 -0500 Subject: [AccessD] ODBC Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDD29@MARLOW_MAIN2.marlow.com> What version of Access? If it's 97, you can easily track down WHO is corrupting the database, which would include the machine name. That's the first place to start as to finding out what's causing the problem. If it's 2000 or later, I have yet to find a utility that actually show's who corrupted a 2000 or later .mdb. Drew -----Original Message----- From: Jennifer Gross [mailto:jengross at gte.net] Sent: Friday, October 06, 2006 10:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Stuart, Do you have experience with Terminal Server with multiple users running separate front ends to a common Access data file? I would love to pick your brain if you do - or anyone else for that matter. I currently have a new IT guy who is in conflict with the old IT guy about our use of Terminal Server. We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. I have made no changes to the database, yet in the past two weeks we have experienced several "corruptions", when the database had been stable for nearly a year without a corruption. Any help would be appreciated. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, October 06, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or > are they sharing the same connection? They are separate connections. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Mon Oct 9 12:12:01 2006 From: jengross at gte.net (Jennifer Gross) Date: Mon, 09 Oct 2006 10:12:01 -0700 Subject: [AccessD] ODBC In-Reply-To: <0J6V00F4MBSZDMRE@vms040.mailsrvcs.net> Message-ID: <002601c6ebc6$091fd190$6501a8c0@jefferson> Hi Jim, I am using A2K and I would love to know how to find out who is corrupting the database. I cannot use Dev Ashish's LDB Viewer because it does not recognize the BE as a valid database when it is in a "corrupt" state. Thank you, Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, October 09, 2006 5:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Jennifer, <> Maybe not a setting that was changed, but certainly it is consuming more resources on the server. My first stop would be the system event logs checking for any errors or warnings. I would also go back and check all TS settings in general and for each user. A disconnect should not logout the session. <> Someone is getting terminated abnormally. Have the users reported any strange behavior or problems? I didn't see in the prior messages what version of Access you are using, but what you need to do is find out what user(s) are leaving the database in a corrupt state. The method you use depends on the version (either using LDBVIEW or the JET roster). Once you have that, you can build up a pattern (same user all the time or different users each time). That generally gives you a clue where the problem lies. <> I would say 20+ minutes was abnormal, but without knowing what you mean by doing a "FE update", I can't say for sure. << Now, it takes less than a minute, as though no one is working in the database and everyone who is working in the database gets kicked out. >> How do they get 'Kicked out'. A message? Window simply closes? There is nothing in Access that does this on it's own. It's either something built into your app or something abnormal that is occurring. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, October 08, 2006 4:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Jim, We have <25 users. The FE is only referencing DLLs and type libraries so hopefully that should not be a problem. Recently a WAMP Server (Apache) was installed on the TS box. Although it is inactive I have concerns that it has changed some setting that are contributing to the problems we are having. New IT guy says it was installed subsequent to the first corruption, but it was the same day. Since then the database has been "corrupting" at least once a day - typically around lunch time when all users are getting in to clock out - their time clock is part of the database. No data is lost, but the repair utility has to be run. In addition to the "corruptions" another strange thing has been happening during this time period - in the past when I was posting a FE update, if someone was using the database the linking to the BE would take 20+ minutes, I assume because of the record locking checks. Now, it takes less than a minute, as though no one is working in the database and everyone who is working in the database gets kicked out. We have one guy who works late nights, and that is when I post FE updates. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, October 08, 2006 4:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Jennifer, << We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. >> The TS connection settings should be checked. When a connection is dropped, there are various things TS can do; retain the session so you can reconnect, log it out, etc. What you don't want is for it to be logged out. That means Access (and any other running apps) will get terminated whether they want to or not. The other place where TS bites you is references. Unless you change references on the fly or distribute a special TS version of your FE, all users will have references (usually to the local C drive in most cases). This means they are all sharing those references even if you've given them all a separate copy of the FE. With Dll's and type libs, that's not a problem, but if it's a .MDA add-in, you might have some issues with that. Using some of the Access Wizards under TS requires workarounds because of this. Beyond that, running TS is no different then a bunch of client PCs all connecting to the BE in terms of connections. In fact, it's a lot more stable. If I could run Access under TS vs the "normal" way, I'd choose TS hands down every time. Jim. BTW, how many users are we talking about? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Friday, October 06, 2006 11:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Stuart, Do you have experience with Terminal Server with multiple users running separate front ends to a common Access data file? I would love to pick your brain if you do - or anyone else for that matter. I currently have a new IT guy who is in conflict with the old IT guy about our use of Terminal Server. We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. I have made no changes to the database, yet in the past two weeks we have experienced several "corruptions", when the database had been stable for nearly a year without a corruption. Any help would be appreciated. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, October 06, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or > are they sharing the same connection? They are separate connections. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Oct 9 14:27:43 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 09 Oct 2006 12:27:43 -0700 Subject: [AccessD] ODBC In-Reply-To: <002601c6ebc6$091fd190$6501a8c0@jefferson> References: <002601c6ebc6$091fd190$6501a8c0@jefferson> Message-ID: <452AA2AF.5040707@shaw.ca> You could try opening the corrupt ldb file and read it with notepad or with a hexeditor, you shoud be able to read the machine name and userid of the clients extant in mdb at corruption However the machine name may be just the server something like CITRIX01 One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". Normally the last Access process to have the .mdb open will delete the .ldb file when the .mdb file gets closed, or at least remove the last lock on the file Now this is just a wild idea but with a copy of the corrupt backend mdb and ldb Open up the .ldb file in notepad, this will establish at least one system file lock and you might then be able to look at both through the LDB viewer with or without using the schema roster. Another way without opening a program to establish a lock is maybe to do a Dir( "c:\filepathname to ldb") then run the userroster method Jennifer Gross wrote: >Hi Jim, > >I am using A2K and I would love to know how to find out who is >corrupting the database. I cannot use Dev Ashish's LDB Viewer because >it does not recognize the BE as a valid database when it is in a >"corrupt" state. > >Thank you, > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, October 09, 2006 5:25 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><it is inactive I have concerns that it has changed some setting that are >contributing to the problems we are having. >> > > Maybe not a setting that was changed, but certainly it is consuming >more resources on the server. My first stop would be the system event >logs checking for any errors or warnings. I would also go back and >check all TS settings in general and for each user. A disconnect should >not logout the session. > ><typically around lunch time when all users are getting in to clock out - >their time clock is part of the database. No data is lost, but the >repair utility has to be run.>> > > Someone is getting terminated abnormally. Have the users reported any >strange behavior or problems? I didn't see in the prior messages what >version of Access you are using, but what you need to do is find out >what >user(s) are leaving the database in a corrupt state. The method you use >depends on the version (either using LDBVIEW or the JET roster). Once >you have that, you can build up a pattern (same user all the time or >different users each time). That generally gives you a clue where the >problem lies. > ><update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. >> > > I would say 20+ minutes was abnormal, but without knowing what you >mean by doing a "FE update", I can't say for sure. > ><< Now, >it takes less than a minute, as though no one is working in the database >and everyone who is working in the database gets kicked out. >> > > How do they get 'Kicked out'. A message? Window simply closes? > > There is nothing in Access that does this on it's own. It's either >something built into your app or something abnormal that is occurring. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, October 08, 2006 4:18 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Jim, > >We have <25 users. > >The FE is only referencing DLLs and type libraries so hopefully that >should not be a problem. > >Recently a WAMP Server (Apache) was installed on the TS box. Although >it is inactive I have concerns that it has changed some setting that are >contributing to the problems we are having. New IT guy says it was >installed subsequent to the first corruption, but it was the same day. >Since then the database has been "corrupting" at least once a day - >typically around lunch time when all users are getting in to clock out - >their time clock is part of the database. No data is lost, but the >repair utility has to be run. > >In addition to the "corruptions" another strange thing has been >happening during this time period - in the past when I was posting a FE >update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. Now, >it takes less than a minute, as though no one is working in the database >and everyone who is working in the database gets kicked out. We have >one guy who works late nights, and that is when I post FE updates. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Sunday, October 08, 2006 4:39 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><< We are having data corruption and the new guy says it >is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. >> > > The TS connection settings should be checked. When a connection is >dropped, there are various things TS can do; retain the session so you >can reconnect, log it out, etc. > > What you don't want is for it to be logged out. That means Access >(and any other running apps) will get terminated whether they want to or >not. > > The other place where TS bites you is references. Unless you change >references on the fly or distribute a special TS version of your FE, all >users will have references (usually to the local C drive in most cases). >This means they are all sharing those references even if you've given >them all a separate copy of the FE. With Dll's and type libs, that's >not a problem, but if it's a .MDA add-in, you might have some issues >with that. Using some of the Access Wizards under TS requires >workarounds because of this. > > Beyond that, running TS is no different then a bunch of client PCs all >connecting to the BE in terms of connections. In fact, it's a lot more >stable. If I could run Access under TS vs the "normal" way, I'd choose >TS hands down every time. > >Jim. > > BTW, how many users are we talking about? > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Friday, October 06, 2006 11:16 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Stuart, > >Do you have experience with Terminal Server with multiple users running >separate front ends to a common Access data file? I would love to pick >your brain if you do - or anyone else for that matter. I currently have >a new IT guy who is in conflict with the old IT guy about our use of >Terminal Server. We are having data corruption and the new guy says it >is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. I have made no >changes to the database, yet in the past two weeks we have experienced >several "corruptions", when the database had been stable for nearly a >year without a corruption. > >Any help would be appreciated. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Friday, October 06, 2006 8:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ODBC > > >On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > > > >>Question 1: When an Access front end connects to an Access backend is >> >> > > > >>it an ODBC connection? >> >> > >No, it's a JET connection, which is more efficient than ODBC > > > >>Question 2: If multiple users have separate front ends on the same >>Terminal Server box linking to a back end on a different box, are they >> >> > > > >>opening separate connections to the back end (ODBC or otherwise), or >>are they sharing the same connection? >> >> > >They are separate connections. > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Mon Oct 9 14:46:26 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 9 Oct 2006 15:46:26 -0400 Subject: [AccessD] ODBC In-Reply-To: <452AA2AF.5040707@shaw.ca> Message-ID: <004801c6ebdb$9c789070$647aa8c0@m6805> If you look at an MDB with ANYTHING make SURE YOU LOOK AT A COPY. You will corrupt it if you happen to open it in word. And I mean irretrievably lost!!!. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, October 09, 2006 3:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC You could try opening the corrupt ldb file and read it with notepad or with a hexeditor, you shoud be able to read the machine name and userid of the clients extant in mdb at corruption However the machine name may be just the server something like CITRIX01 One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". Normally the last Access process to have the .mdb open will delete the .ldb file when the .mdb file gets closed, or at least remove the last lock on the file Now this is just a wild idea but with a copy of the corrupt backend mdb and ldb Open up the .ldb file in notepad, this will establish at least one system file lock and you might then be able to look at both through the LDB viewer with or without using the schema roster. Another way without opening a program to establish a lock is maybe to do a Dir( "c:\filepathname to ldb") then run the userroster method Jennifer Gross wrote: >Hi Jim, > >I am using A2K and I would love to know how to find out who is >corrupting the database. I cannot use Dev Ashish's LDB Viewer because >it does not recognize the BE as a valid database when it is in a >"corrupt" state. > >Thank you, > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, October 09, 2006 5:25 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><Although it is inactive I have concerns that it has changed some >setting that are contributing to the problems we are having. >> > > Maybe not a setting that was changed, but certainly it is consuming >more resources on the server. My first stop would be the system event >logs checking for any errors or warnings. I would also go back and >check all TS settings in general and for each user. A disconnect >should not logout the session. > ><typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run.>> > > Someone is getting terminated abnormally. Have the users reported any >strange behavior or problems? I didn't see in the prior messages what >version of Access you are using, but what you need to do is find out >what >user(s) are leaving the database in a corrupt state. The method you >use depends on the version (either using LDBVIEW or the JET roster). >Once you have that, you can build up a pattern (same user all the time >or different users each time). That generally gives you a clue where >the problem lies. > ><update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. >> > > I would say 20+ minutes was abnormal, but without knowing what you >mean by doing a "FE update", I can't say for sure. > ><< Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >>> > > How do they get 'Kicked out'. A message? Window simply closes? > > There is nothing in Access that does this on it's own. It's either >something built into your app or something abnormal that is occurring. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, October 08, 2006 4:18 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Jim, > >We have <25 users. > >The FE is only referencing DLLs and type libraries so hopefully that >should not be a problem. > >Recently a WAMP Server (Apache) was installed on the TS box. Although >it is inactive I have concerns that it has changed some setting that >are contributing to the problems we are having. New IT guy says it was >installed subsequent to the first corruption, but it was the same day. >Since then the database has been "corrupting" at least once a day - >typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run. > >In addition to the "corruptions" another strange thing has been >happening during this time period - in the past when I was posting a FE >update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >We have one guy who works late nights, and that is when I post FE updates. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Sunday, October 08, 2006 4:39 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><< We are having data corruption and the new guy says it is because of >Terminal Server - too many connections to the back end from the same >box. I know very little about the network/hardware/software aspects >and am at a loss. >> > > The TS connection settings should be checked. When a connection is >dropped, there are various things TS can do; retain the session so you >can reconnect, log it out, etc. > > What you don't want is for it to be logged out. That means Access >(and any other running apps) will get terminated whether they want to >or not. > > The other place where TS bites you is references. Unless you change >references on the fly or distribute a special TS version of your FE, >all users will have references (usually to the local C drive in most cases). >This means they are all sharing those references even if you've given >them all a separate copy of the FE. With Dll's and type libs, that's >not a problem, but if it's a .MDA add-in, you might have some issues >with that. Using some of the Access Wizards under TS requires >workarounds because of this. > > Beyond that, running TS is no different then a bunch of client PCs >all connecting to the BE in terms of connections. In fact, it's a lot >more stable. If I could run Access under TS vs the "normal" way, I'd >choose TS hands down every time. > >Jim. > > BTW, how many users are we talking about? > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Friday, October 06, 2006 11:16 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Stuart, > >Do you have experience with Terminal Server with multiple users running >separate front ends to a common Access data file? I would love to pick >your brain if you do - or anyone else for that matter. I currently >have a new IT guy who is in conflict with the old IT guy about our use >of Terminal Server. We are having data corruption and the new guy says >it is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. I have made no >changes to the database, yet in the past two weeks we have experienced >several "corruptions", when the database had been stable for nearly a >year without a corruption. > >Any help would be appreciated. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Friday, October 06, 2006 8:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ODBC > > >On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > > > >>Question 1: When an Access front end connects to an Access backend is >> >> > > > >>it an ODBC connection? >> >> > >No, it's a JET connection, which is more efficient than ODBC > > > >>Question 2: If multiple users have separate front ends on the same >>Terminal Server box linking to a back end on a different box, are they >> >> > > > >>opening separate connections to the back end (ODBC or otherwise), or >>are they sharing the same connection? >> >> > >They are separate connections. > > > -- 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 jengross at gte.net Mon Oct 9 15:10:57 2006 From: jengross at gte.net (Jennifer Gross) Date: Mon, 09 Oct 2006 13:10:57 -0700 Subject: [AccessD] ODBC - Linked Table Manager - Record Locking?? In-Reply-To: <004801c6ebdb$9c789070$647aa8c0@m6805> Message-ID: <003d01c6ebdf$0bc56cc0$6501a8c0@jefferson> I am using A2K, around 25 users, FE/BE, FE<20MB, BE<100MB, all user FEs are on Terminal Server the BE resides on a different box. In the past during linking a new FE, if someone was working in the database it took time, I imagine because of record locking checks. In my last two FE updates, even though people were working in the database the linking of the tables to the BE was very quick and the users either got kicked out (I'm not sure if they received a message or their FE just closed) or they started to have problems, such as drop down lists not filling properly and #Error appearing in fields. It is as though the record locking is not being recognized. Has anyone seen this type of behavior and know what might be causing it? Thank you, Jennifer Gross -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, October 09, 2006 12:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC If you look at an MDB with ANYTHING make SURE YOU LOOK AT A COPY. You will corrupt it if you happen to open it in word. And I mean irretrievably lost!!!. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, October 09, 2006 3:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC You could try opening the corrupt ldb file and read it with notepad or with a hexeditor, you shoud be able to read the machine name and userid of the clients extant in mdb at corruption However the machine name may be just the server something like CITRIX01 One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". Normally the last Access process to have the .mdb open will delete the .ldb file when the .mdb file gets closed, or at least remove the last lock on the file Now this is just a wild idea but with a copy of the corrupt backend mdb and ldb Open up the .ldb file in notepad, this will establish at least one system file lock and you might then be able to look at both through the LDB viewer with or without using the schema roster. Another way without opening a program to establish a lock is maybe to do a Dir( "c:\filepathname to ldb") then run the userroster method Jennifer Gross wrote: >Hi Jim, > >I am using A2K and I would love to know how to find out who is >corrupting the database. I cannot use Dev Ashish's LDB Viewer because >it does not recognize the BE as a valid database when it is in a >"corrupt" state. > >Thank you, > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, October 09, 2006 5:25 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><Although it is inactive I have concerns that it has changed some >setting that are contributing to the problems we are having. >> > > Maybe not a setting that was changed, but certainly it is consuming >more resources on the server. My first stop would be the system event >logs checking for any errors or warnings. I would also go back and >check all TS settings in general and for each user. A disconnect >should not logout the session. > ><typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run.>> > > Someone is getting terminated abnormally. Have the users reported any >strange behavior or problems? I didn't see in the prior messages what >version of Access you are using, but what you need to do is find out >what >user(s) are leaving the database in a corrupt state. The method you >use depends on the version (either using LDBVIEW or the JET roster). >Once you have that, you can build up a pattern (same user all the time >or different users each time). That generally gives you a clue where >the problem lies. > ><update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. >> > > I would say 20+ minutes was abnormal, but without knowing what you >mean by doing a "FE update", I can't say for sure. > ><< Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >>> > > How do they get 'Kicked out'. A message? Window simply closes? > > There is nothing in Access that does this on it's own. It's either >something built into your app or something abnormal that is occurring. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, October 08, 2006 4:18 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Jim, > >We have <25 users. > >The FE is only referencing DLLs and type libraries so hopefully that >should not be a problem. > >Recently a WAMP Server (Apache) was installed on the TS box. Although >it is inactive I have concerns that it has changed some setting that >are contributing to the problems we are having. New IT guy says it was >installed subsequent to the first corruption, but it was the same day. >Since then the database has been "corrupting" at least once a day - >typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run. > >In addition to the "corruptions" another strange thing has been >happening during this time period - in the past when I was posting a FE >update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >We have one guy who works late nights, and that is when I post FE updates. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Sunday, October 08, 2006 4:39 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><< We are having data corruption and the new guy says it is because of >Terminal Server - too many connections to the back end from the same >box. I know very little about the network/hardware/software aspects >and am at a loss. >> > > The TS connection settings should be checked. When a connection is >dropped, there are various things TS can do; retain the session so you >can reconnect, log it out, etc. > > What you don't want is for it to be logged out. That means Access >(and any other running apps) will get terminated whether they want to >or not. > > The other place where TS bites you is references. Unless you change >references on the fly or distribute a special TS version of your FE, >all users will have references (usually to the local C drive in most cases). >This means they are all sharing those references even if you've given >them all a separate copy of the FE. With Dll's and type libs, that's >not a problem, but if it's a .MDA add-in, you might have some issues >with that. Using some of the Access Wizards under TS requires >workarounds because of this. > > Beyond that, running TS is no different then a bunch of client PCs >all connecting to the BE in terms of connections. In fact, it's a lot >more stable. If I could run Access under TS vs the "normal" way, I'd >choose TS hands down every time. > >Jim. > > BTW, how many users are we talking about? > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Friday, October 06, 2006 11:16 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Stuart, > >Do you have experience with Terminal Server with multiple users running >separate front ends to a common Access data file? I would love to pick >your brain if you do - or anyone else for that matter. I currently >have a new IT guy who is in conflict with the old IT guy about our use >of Terminal Server. We are having data corruption and the new guy says >it is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. I have made no >changes to the database, yet in the past two weeks we have experienced >several "corruptions", when the database had been stable for nearly a >year without a corruption. > >Any help would be appreciated. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Friday, October 06, 2006 8:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ODBC > > >On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > > > >>Question 1: When an Access front end connects to an Access backend is >> >> > > > >>it an ODBC connection? >> >> > >No, it's a JET connection, which is more efficient than ODBC > > > >>Question 2: If multiple users have separate front ends on the same >>Terminal Server box linking to a back end on a different box, are they >> >> > > > >>opening separate connections to the back end (ODBC or otherwise), or >>are they sharing the same connection? >> >> > >They are separate connections. > > > -- 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 cfoust at infostatsystems.com Mon Oct 9 16:11:17 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Oct 2006 14:11:17 -0700 Subject: [AccessD] ODBC - Linked Table Manager - Record Locking?? In-Reply-To: <003d01c6ebdf$0bc56cc0$6501a8c0@jefferson> Message-ID: Just what do you mean by an FE update in this context? How can you update an FE if there are instances of it open on Terminal Server? 2000 and above require exclusive access to the mdb in order to update the design, which includes code, forms and reports. If any users were writing to the database at the time they were "kicked out", that could definitely cause corruption in the back end. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, October 09, 2006 1:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC - Linked Table Manager - Record Locking?? I am using A2K, around 25 users, FE/BE, FE<20MB, BE<100MB, all user FEs are on Terminal Server the BE resides on a different box. In the past during linking a new FE, if someone was working in the database it took time, I imagine because of record locking checks. In my last two FE updates, even though people were working in the database the linking of the tables to the BE was very quick and the users either got kicked out (I'm not sure if they received a message or their FE just closed) or they started to have problems, such as drop down lists not filling properly and #Error appearing in fields. It is as though the record locking is not being recognized. Has anyone seen this type of behavior and know what might be causing it? Thank you, Jennifer Gross -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, October 09, 2006 12:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC If you look at an MDB with ANYTHING make SURE YOU LOOK AT A COPY. You will corrupt it if you happen to open it in word. And I mean irretrievably lost!!!. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, October 09, 2006 3:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC You could try opening the corrupt ldb file and read it with notepad or with a hexeditor, you shoud be able to read the machine name and userid of the clients extant in mdb at corruption However the machine name may be just the server something like CITRIX01 One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". Normally the last Access process to have the .mdb open will delete the .ldb file when the .mdb file gets closed, or at least remove the last lock on the file Now this is just a wild idea but with a copy of the corrupt backend mdb and ldb Open up the .ldb file in notepad, this will establish at least one system file lock and you might then be able to look at both through the LDB viewer with or without using the schema roster. Another way without opening a program to establish a lock is maybe to do a Dir( "c:\filepathname to ldb") then run the userroster method Jennifer Gross wrote: >Hi Jim, > >I am using A2K and I would love to know how to find out who is >corrupting the database. I cannot use Dev Ashish's LDB Viewer because >it does not recognize the BE as a valid database when it is in a >"corrupt" state. > >Thank you, > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, October 09, 2006 5:25 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><Although it is inactive I have concerns that it has changed some >setting that are contributing to the problems we are having. >> > > Maybe not a setting that was changed, but certainly it is consuming >more resources on the server. My first stop would be the system event >logs checking for any errors or warnings. I would also go back and >check all TS settings in general and for each user. A disconnect >should not logout the session. > ><typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run.>> > > Someone is getting terminated abnormally. Have the users reported any >strange behavior or problems? I didn't see in the prior messages what >version of Access you are using, but what you need to do is find out >what >user(s) are leaving the database in a corrupt state. The method you >use depends on the version (either using LDBVIEW or the JET roster). >Once you have that, you can build up a pattern (same user all the time >or different users each time). That generally gives you a clue where >the problem lies. > ><update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. >> > > I would say 20+ minutes was abnormal, but without knowing what you >mean by doing a "FE update", I can't say for sure. > ><< Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >>> > > How do they get 'Kicked out'. A message? Window simply closes? > > There is nothing in Access that does this on it's own. It's either >something built into your app or something abnormal that is occurring. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, October 08, 2006 4:18 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Jim, > >We have <25 users. > >The FE is only referencing DLLs and type libraries so hopefully that >should not be a problem. > >Recently a WAMP Server (Apache) was installed on the TS box. Although >it is inactive I have concerns that it has changed some setting that >are contributing to the problems we are having. New IT guy says it was >installed subsequent to the first corruption, but it was the same day. >Since then the database has been "corrupting" at least once a day - >typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run. > >In addition to the "corruptions" another strange thing has been >happening during this time period - in the past when I was posting a FE >update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >We have one guy who works late nights, and that is when I post FE updates. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Sunday, October 08, 2006 4:39 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><< We are having data corruption and the new guy says it is because of >Terminal Server - too many connections to the back end from the same >box. I know very little about the network/hardware/software aspects >and am at a loss. >> > > The TS connection settings should be checked. When a connection is >dropped, there are various things TS can do; retain the session so you >can reconnect, log it out, etc. > > What you don't want is for it to be logged out. That means Access >(and any other running apps) will get terminated whether they want to >or not. > > The other place where TS bites you is references. Unless you change >references on the fly or distribute a special TS version of your FE, >all users will have references (usually to the local C drive in most cases). >This means they are all sharing those references even if you've given >them all a separate copy of the FE. With Dll's and type libs, that's >not a problem, but if it's a .MDA add-in, you might have some issues >with that. Using some of the Access Wizards under TS requires >workarounds because of this. > > Beyond that, running TS is no different then a bunch of client PCs >all connecting to the BE in terms of connections. In fact, it's a lot >more stable. If I could run Access under TS vs the "normal" way, I'd >choose TS hands down every time. > >Jim. > > BTW, how many users are we talking about? > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Friday, October 06, 2006 11:16 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Stuart, > >Do you have experience with Terminal Server with multiple users running >separate front ends to a common Access data file? I would love to pick >your brain if you do - or anyone else for that matter. I currently >have a new IT guy who is in conflict with the old IT guy about our use >of Terminal Server. We are having data corruption and the new guy says >it is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. I have made no >changes to the database, yet in the past two weeks we have experienced >several "corruptions", when the database had been stable for nearly a >year without a corruption. > >Any help would be appreciated. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Friday, October 06, 2006 8:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ODBC > > >On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > > > >>Question 1: When an Access front end connects to an Access backend is >> >> > > > >>it an ODBC connection? >> >> > >No, it's a JET connection, which is more efficient than ODBC > > > >>Question 2: If multiple users have separate front ends on the same >>Terminal Server box linking to a back end on a different box, are they >> >> > > > >>opening separate connections to the back end (ODBC or otherwise), or >>are they sharing the same connection? >> >> > >They are separate connections. > > > -- 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 askolits at ot.com Mon Oct 9 16:30:11 2006 From: askolits at ot.com (John Skolits) Date: Mon, 9 Oct 2006 17:30:11 -0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <452AA2AF.5040707@shaw.ca> Message-ID: <012b01c6ebea$1cde1970$6501a8c0@LaptopXP> I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John From jengross at gte.net Mon Oct 9 16:31:39 2006 From: jengross at gte.net (Jennifer Gross) Date: Mon, 09 Oct 2006 14:31:39 -0700 Subject: [AccessD] ODBC - Linked Table Manager - Record Locking?? In-Reply-To: Message-ID: <004001c6ebea$51d66ec0$6501a8c0@jefferson> Hi Charlotte, What I am doing is putting a new front end in the working folder, which will copy over to each user's FE folder the next time the user logs out and back into the database. I use Ted Avery's FE updater. So I am just linking it up so that it is ready to copy. Basically I make all my programming changes on my work computer within a test environment. When I am ready to go live I copy the FE to the server, link it to the live BE and store the FE in a specific folder. Each time the users open their existing FE it checks to see if it is the most current, and if not copies the most current FE to their working folder. The anomaly that I am seeing is happening when I am linking my new FE to the BE, prior to putting it in the folder that the user's FE will checking to see if their FE is the most current. I hope this makes sense. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, October 09, 2006 2:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC - Linked Table Manager - Record Locking?? Just what do you mean by an FE update in this context? How can you update an FE if there are instances of it open on Terminal Server? 2000 and above require exclusive access to the mdb in order to update the design, which includes code, forms and reports. If any users were writing to the database at the time they were "kicked out", that could definitely cause corruption in the back end. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, October 09, 2006 1:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC - Linked Table Manager - Record Locking?? I am using A2K, around 25 users, FE/BE, FE<20MB, BE<100MB, all user FEs are on Terminal Server the BE resides on a different box. In the past during linking a new FE, if someone was working in the database it took time, I imagine because of record locking checks. In my last two FE updates, even though people were working in the database the linking of the tables to the BE was very quick and the users either got kicked out (I'm not sure if they received a message or their FE just closed) or they started to have problems, such as drop down lists not filling properly and #Error appearing in fields. It is as though the record locking is not being recognized. Has anyone seen this type of behavior and know what might be causing it? Thank you, Jennifer Gross -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, October 09, 2006 12:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC If you look at an MDB with ANYTHING make SURE YOU LOOK AT A COPY. You will corrupt it if you happen to open it in word. And I mean irretrievably lost!!!. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, October 09, 2006 3:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC You could try opening the corrupt ldb file and read it with notepad or with a hexeditor, you shoud be able to read the machine name and userid of the clients extant in mdb at corruption However the machine name may be just the server something like CITRIX01 One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". Normally the last Access process to have the .mdb open will delete the .ldb file when the .mdb file gets closed, or at least remove the last lock on the file Now this is just a wild idea but with a copy of the corrupt backend mdb and ldb Open up the .ldb file in notepad, this will establish at least one system file lock and you might then be able to look at both through the LDB viewer with or without using the schema roster. Another way without opening a program to establish a lock is maybe to do a Dir( "c:\filepathname to ldb") then run the userroster method Jennifer Gross wrote: >Hi Jim, > >I am using A2K and I would love to know how to find out who is >corrupting the database. I cannot use Dev Ashish's LDB Viewer because >it does not recognize the BE as a valid database when it is in a >"corrupt" state. > >Thank you, > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, October 09, 2006 5:25 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><it is inactive I have concerns that it has changed some setting that >are contributing to the problems we are having. >> > > Maybe not a setting that was changed, but certainly it is consuming >more resources on the server. My first stop would be the system event >logs checking for any errors or warnings. I would also go back and >check all TS settings in general and for each user. A disconnect >should not logout the session. > ><typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run.>> > > Someone is getting terminated abnormally. Have the users reported any >strange behavior or problems? I didn't see in the prior messages what >version of Access you are using, but what you need to do is find out >what >user(s) are leaving the database in a corrupt state. The method you >use depends on the version (either using LDBVIEW or the JET roster). >Once you have that, you can build up a pattern (same user all the time >or different users each time). That generally gives you a clue where >the problem lies. > ><update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. >> > > I would say 20+ minutes was abnormal, but without knowing what you >mean by doing a "FE update", I can't say for sure. > ><< Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >>> > > How do they get 'Kicked out'. A message? Window simply closes? > > There is nothing in Access that does this on it's own. It's either >something built into your app or something abnormal that is occurring. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, October 08, 2006 4:18 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Jim, > >We have <25 users. > >The FE is only referencing DLLs and type libraries so hopefully that >should not be a problem. > >Recently a WAMP Server (Apache) was installed on the TS box. Although >it is inactive I have concerns that it has changed some setting that >are contributing to the problems we are having. New IT guy says it was >installed subsequent to the first corruption, but it was the same day. >Since then the database has been "corrupting" at least once a day - >typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run. > >In addition to the "corruptions" another strange thing has been >happening during this time period - in the past when I was posting a FE >update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >We have one guy who works late nights, and that is when I post FE updates. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Sunday, October 08, 2006 4:39 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><< We are having data corruption and the new guy says it is because of >Terminal Server - too many connections to the back end from the same >box. I know very little about the network/hardware/software aspects >and am at a loss. >> > > The TS connection settings should be checked. When a connection is >dropped, there are various things TS can do; retain the session so you >can reconnect, log it out, etc. > > What you don't want is for it to be logged out. That means Access >(and any other running apps) will get terminated whether they want to >or not. > > The other place where TS bites you is references. Unless you change >references on the fly or distribute a special TS version of your FE, >all users will have references (usually to the local C drive in most cases). >This means they are all sharing those references even if you've given >them all a separate copy of the FE. With Dll's and type libs, that's >not a problem, but if it's a .MDA add-in, you might have some issues >with that. Using some of the Access Wizards under TS requires >workarounds because of this. > > Beyond that, running TS is no different then a bunch of client PCs >all connecting to the BE in terms of connections. In fact, it's a lot >more stable. If I could run Access under TS vs the "normal" way, I'd >choose TS hands down every time. > >Jim. > > BTW, how many users are we talking about? > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Friday, October 06, 2006 11:16 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Stuart, > >Do you have experience with Terminal Server with multiple users running >separate front ends to a common Access data file? I would love to pick >your brain if you do - or anyone else for that matter. I currently >have a new IT guy who is in conflict with the old IT guy about our use >of Terminal Server. We are having data corruption and the new guy says >it is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. I have made no >changes to the database, yet in the past two weeks we have experienced >several "corruptions", when the database had been stable for nearly a >year without a corruption. > >Any help would be appreciated. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Friday, October 06, 2006 8:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ODBC > > >On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > > > >>Question 1: When an Access front end connects to an Access backend is >> >> > > > >>it an ODBC connection? >> >> > >No, it's a JET connection, which is more efficient than ODBC > > > >>Question 2: If multiple users have separate front ends on the same >>Terminal Server box linking to a back end on a different box, are they >> >> > > > >>opening separate connections to the back end (ODBC or otherwise), or >>are they sharing the same connection? >> >> > >They are separate connections. > > > -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Mon Oct 9 16:48:34 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 10 Oct 2006 01:48:34 +0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <012b01c6ebea$1cde1970$6501a8c0@LaptopXP> Message-ID: <00c001c6ebec$aba3dd50$6401a8c0@nant> Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Mon Oct 9 16:52:24 2006 From: askolits at ot.com (John Skolits) Date: Mon, 9 Oct 2006 17:52:24 -0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <00c001c6ebec$aba3dd50$6401a8c0@nant> Message-ID: <013001c6ebed$375f3240$6501a8c0@LaptopXP> Then can I refer to the form object"frm" to set it's individual properties? Is there a way to then name that form object in case I have a few open and want to make change in one particular form? Or will they just be enumerated frm(0), frm(1) etc? John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Oct 9 18:04:55 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 9 Oct 2006 18:04:55 -0500 Subject: [AccessD] ODBC - Linked Table Manager - Record Locking?? In-Reply-To: <13649853.1160432393785.JavaMail.root@sniper10> Message-ID: <003001c6ebf7$56cf1820$0200a8c0@danwaters> Hi Jennifer, I do exactly the same thing you do, but I use an updater from Tony Toews, or one I made myself. It sounds like your table relinking is not working well. If you are using the Table Linking Manager, be sure that all your table links are set correctly. Scroll up and down the list and look at all of them. Can you relink after putting your new master FE in the 'copy from' folder? If that doesn't help, call back. I can show some code to automatically refresh the table links. Dan Waters -----Original Message----- Subject: Re: [AccessD] ODBC - Linked Table Manager - Record Locking?? Hi Charlotte, What I am doing is putting a new front end in the working folder, which will copy over to each user's FE folder the next time the user logs out and back into the database. I use Ted Avery's FE updater. So I am just linking it up so that it is ready to copy. Basically I make all my programming changes on my work computer within a test environment. When I am ready to go live I copy the FE to the server, link it to the live BE and store the FE in a specific folder. Each time the users open their existing FE it checks to see if it is the most current, and if not copies the most current FE to their working folder. The anomaly that I am seeing is happening when I am linking my new FE to the BE, prior to putting it in the folder that the user's FE will checking to see if their FE is the most current. I hope this makes sense. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, October 09, 2006 2:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC - Linked Table Manager - Record Locking?? Just what do you mean by an FE update in this context? How can you update an FE if there are instances of it open on Terminal Server? 2000 and above require exclusive access to the mdb in order to update the design, which includes code, forms and reports. If any users were writing to the database at the time they were "kicked out", that could definitely cause corruption in the back end. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, October 09, 2006 1:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC - Linked Table Manager - Record Locking?? I am using A2K, around 25 users, FE/BE, FE<20MB, BE<100MB, all user FEs are on Terminal Server the BE resides on a different box. In the past during linking a new FE, if someone was working in the database it took time, I imagine because of record locking checks. In my last two FE updates, even though people were working in the database the linking of the tables to the BE was very quick and the users either got kicked out (I'm not sure if they received a message or their FE just closed) or they started to have problems, such as drop down lists not filling properly and #Error appearing in fields. It is as though the record locking is not being recognized. Has anyone seen this type of behavior and know what might be causing it? Thank you, Jennifer Gross -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, October 09, 2006 12:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC If you look at an MDB with ANYTHING make SURE YOU LOOK AT A COPY. You will corrupt it if you happen to open it in word. And I mean irretrievably lost!!!. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, October 09, 2006 3:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC You could try opening the corrupt ldb file and read it with notepad or with a hexeditor, you shoud be able to read the machine name and userid of the clients extant in mdb at corruption However the machine name may be just the server something like CITRIX01 One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". Normally the last Access process to have the .mdb open will delete the .ldb file when the .mdb file gets closed, or at least remove the last lock on the file Now this is just a wild idea but with a copy of the corrupt backend mdb and ldb Open up the .ldb file in notepad, this will establish at least one system file lock and you might then be able to look at both through the LDB viewer with or without using the schema roster. Another way without opening a program to establish a lock is maybe to do a Dir( "c:\filepathname to ldb") then run the userroster method Jennifer Gross wrote: >Hi Jim, > >I am using A2K and I would love to know how to find out who is >corrupting the database. I cannot use Dev Ashish's LDB Viewer because >it does not recognize the BE as a valid database when it is in a >"corrupt" state. > >Thank you, > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Monday, October 09, 2006 5:25 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><it is inactive I have concerns that it has changed some setting that >are contributing to the problems we are having. >> > > Maybe not a setting that was changed, but certainly it is consuming >more resources on the server. My first stop would be the system event >logs checking for any errors or warnings. I would also go back and >check all TS settings in general and for each user. A disconnect >should not logout the session. > ><typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run.>> > > Someone is getting terminated abnormally. Have the users reported any >strange behavior or problems? I didn't see in the prior messages what >version of Access you are using, but what you need to do is find out >what >user(s) are leaving the database in a corrupt state. The method you >use depends on the version (either using LDBVIEW or the JET roster). >Once you have that, you can build up a pattern (same user all the time >or different users each time). That generally gives you a clue where >the problem lies. > ><update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. >> > > I would say 20+ minutes was abnormal, but without knowing what you >mean by doing a "FE update", I can't say for sure. > ><< Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >>> > > How do they get 'Kicked out'. A message? Window simply closes? > > There is nothing in Access that does this on it's own. It's either >something built into your app or something abnormal that is occurring. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Sunday, October 08, 2006 4:18 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Jim, > >We have <25 users. > >The FE is only referencing DLLs and type libraries so hopefully that >should not be a problem. > >Recently a WAMP Server (Apache) was installed on the TS box. Although >it is inactive I have concerns that it has changed some setting that >are contributing to the problems we are having. New IT guy says it was >installed subsequent to the first corruption, but it was the same day. >Since then the database has been "corrupting" at least once a day - >typically around lunch time when all users are getting in to clock out >- their time clock is part of the database. No data is lost, but the >repair utility has to be run. > >In addition to the "corruptions" another strange thing has been >happening during this time period - in the past when I was posting a FE >update, if someone was using the database the linking to the BE would >take 20+ minutes, I assume because of the record locking checks. Now, >it takes less than a minute, as though no one is working in the >database and everyone who is working in the database gets kicked out. >We have one guy who works late nights, and that is when I post FE updates. > >Any thoughts? > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman >Sent: Sunday, October 08, 2006 4:39 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > > >Jennifer, > ><< We are having data corruption and the new guy says it is because of >Terminal Server - too many connections to the back end from the same >box. I know very little about the network/hardware/software aspects >and am at a loss. >> > > The TS connection settings should be checked. When a connection is >dropped, there are various things TS can do; retain the session so you >can reconnect, log it out, etc. > > What you don't want is for it to be logged out. That means Access >(and any other running apps) will get terminated whether they want to >or not. > > The other place where TS bites you is references. Unless you change >references on the fly or distribute a special TS version of your FE, >all users will have references (usually to the local C drive in most cases). >This means they are all sharing those references even if you've given >them all a separate copy of the FE. With Dll's and type libs, that's >not a problem, but if it's a .MDA add-in, you might have some issues >with that. Using some of the Access Wizards under TS requires >workarounds because of this. > > Beyond that, running TS is no different then a bunch of client PCs >all connecting to the BE in terms of connections. In fact, it's a lot >more stable. If I could run Access under TS vs the "normal" way, I'd >choose TS hands down every time. > >Jim. > > BTW, how many users are we talking about? > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >Gross >Sent: Friday, October 06, 2006 11:16 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] ODBC > >Hi Stuart, > >Do you have experience with Terminal Server with multiple users running >separate front ends to a common Access data file? I would love to pick >your brain if you do - or anyone else for that matter. I currently >have a new IT guy who is in conflict with the old IT guy about our use >of Terminal Server. We are having data corruption and the new guy says >it is because of Terminal Server - too many connections to the back end >from the same box. I know very little about the >network/hardware/software aspects and am at a loss. I have made no >changes to the database, yet in the past two weeks we have experienced >several "corruptions", when the database had been stable for nearly a >year without a corruption. > >Any help would be appreciated. > >Jennifer > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart >McLachlan >Sent: Friday, October 06, 2006 8:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] ODBC > > >On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > > > >>Question 1: When an Access front end connects to an Access backend is >> >> > > > >>it an ODBC connection? >> >> > >No, it's a JET connection, which is more efficient than ODBC > > > >>Question 2: If multiple users have separate front ends on the same >>Terminal Server box linking to a back end on a different box, are they >> >> > > > >>opening separate connections to the back end (ODBC or otherwise), or >>are they sharing the same connection? >> >> > >They are separate connections. > > > -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Mon Oct 9 18:22:34 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 10 Oct 2006 03:22:34 +0400 Subject: [AccessD] OT: Putting Pages N or Pages for Crystal Reports report group... Message-ID: <00c801c6ebf9$cd493970$6401a8c0@nant> Him All, Here is a tricky question - I can't figure out to find the answer quick enough nor by myself nor on google. Maybe somebody of you did do/have seen something like that ?: Done: Crystal Reports report printed with several groups. Requested: The pages within each group should be numbered starting from 1 and having printed total number of pages within current group e.g.: 1st group, 1st page, total pages in group 3 => Page 1 of 3 1st group, 2nd page, total pages in group 3 => Page 2 of 3 1st group, 3rd page, total pages in group 3 => Page 3 of 3 2nd group, 1st page, total pages in group 2 => Page 1 of 2 2nd group, 2nd page, total pages in group 2 => Page 2 of 2 ... etc... TIA for any tips, tricks and advises! -- Shamil From shamil at users.mns.ru Mon Oct 9 18:31:02 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 10 Oct 2006 03:31:02 +0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <013001c6ebed$375f3240$6501a8c0@LaptopXP> Message-ID: <00cc01c6ebfa$fd49c760$6401a8c0@nant> John, You cannot refer to such form instances by name - you have to use indexes in global Access.Application.Forms collection or in your custom collection if you put form's instances object references in it as I have shown in the code. BTW, you HAVE to put form instance's object reference somewhere after you open it "object way" (as shown in the code) otherwise it will be closed immediately after your code leaves the sub/function where form is opened this object way except the case when your form is modal - for this latter case your code will "get stuck" at the point: frm.visible = true If you wanted to refer to your forms' instances using mnemonic names like e.g: - PriceByDefectiveMaterialForm - PriceByDefectiveSolderForm - PriceByDefectiveWiringForm - ... Then you can use these mnemonic names while putting forms' instances object refs into collection: col.add frm, "PriceByDefectiveMaterialForm" .... ... and then somewhere in other part of your code ... Set frm = col("PriceByDefectiveMaterialForm") etc. Of course col collection should be (custom class) module level variable... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Then can I refer to the form object"frm" to set it's individual properties? Is there a way to then name that form object in case I have a few open and want to make change in one particular form? Or will they just be enumerated frm(0), frm(1) etc? John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fhtapia at gmail.com Mon Oct 9 18:34:28 2006 From: fhtapia at gmail.com (Francisco Tapia) Date: Mon, 9 Oct 2006 16:34:28 -0700 Subject: [AccessD] Sql DBA/Dev needed Message-ID: Hello group, I realize that most people on the list are either employed, or self-employed, but I am in need of finding a MS SQL Server DBA/ Developer in the SoCal Area. They should have strong troubleshooting skills and be proficient in TSQL. Have at least 2+yrs of Sql Server 2000 experience and a great work ethic. Email me if you are interested in an pursuing this job lead. Thanks, -- -Francisco http://sqlthis.blogspot.com | Tsql and More... From ssharkins at setel.com Mon Oct 9 19:42:42 2006 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 9 Oct 2006 20:42:42 -0400 Subject: [AccessD] OT: Putting Pages N or Pages for Crystal Reports reportgroup... In-Reply-To: <00c801c6ebf9$cd493970$6401a8c0@nant> Message-ID: <000001c6ec04$ffd03fa0$a9b62ad1@SUSANONE> Shamil, I don't know squat about Crystal Reports. Can you use Access code to generate the numbers and still use them in Crystal Reports? Ken Ismert and I just published an article on group page numbering, but it's in Access. If you think it would be of any help, I'll be glad to send you a copy of the unedited article. Susan H. Him All, Here is a tricky question - I can't figure out to find the answer quick enough nor by myself nor on google. Maybe somebody of you did do/have seen something like that ?: Done: Crystal Reports report printed with several groups. Requested: The pages within each group should be numbered starting from 1 and having printed total number of pages within current group e.g.: 1st group, 1st page, total pages in group 3 => Page 1 of 3 1st group, 2nd page, total pages in group 3 => Page 2 of 3 1st group, 3rd page, total pages in group 3 => Page 3 of 3 2nd group, 1st page, total pages in group 2 => Page 1 of 2 2nd group, 2nd page, total pages in group 2 => Page 2 of 2 ... etc... TIA for any tips, tricks and advises! -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.9/458 - Release Date: 9/27/2006 From darrend at nimble.com.au Mon Oct 9 20:41:06 2006 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 10 Oct 2006 11:41:06 +1000 Subject: [AccessD] A2003:Where is the Description of the Reports Kept Message-ID: <20061010014107.BSOR16502.omta02ps.mx.bigpond.com@DENZILLAP> Hi All if I do SELECT MSysObjects.* FROM MSysObjects WHERE (((MSysObjects.Type)=-32764)); I can see all the reports Does anyone know where the reprost descriptions are kept? Many thanks in advance DD From shamil at users.mns.ru Mon Oct 9 21:09:34 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 10 Oct 2006 06:09:34 +0400 Subject: [AccessD] A2003:Where is the Description of the Reports Kept In-Reply-To: <20061010014107.BSOR16502.omta02ps.mx.bigpond.com@DENZILLAP> Message-ID: <00dd01c6ec11$2166c420$6401a8c0@nant> Access.Application.Currentdb .Containers("Reports") .Documents("{{YourReportNameHere}}") .Properties("Description").Value That's is all one code line wrapped here. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, October 10, 2006 5:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003:Where is the Description of the Reports Kept Hi All if I do SELECT MSysObjects.* FROM MSysObjects WHERE (((MSysObjects.Type)=-32764)); I can see all the reports Does anyone know where the reprost descriptions are kept? Many thanks in advance DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Mon Oct 9 21:12:28 2006 From: askolits at ot.com (John Skolits) Date: Mon, 9 Oct 2006 22:12:28 -0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <00cc01c6ebfa$fd49c760$6401a8c0@nant> Message-ID: <015c01c6ec11$8c63aea0$6501a8c0@LaptopXP> I think that all makes pretty good sense. But, will I have to actually design the new form from scratch through code? My plan was to just grab an existing form and open it up many times just changing the recordsource for each instance. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 7:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, You cannot refer to such form instances by name - you have to use indexes in global Access.Application.Forms collection or in your custom collection if you put form's instances object references in it as I have shown in the code. BTW, you HAVE to put form instance's object reference somewhere after you open it "object way" (as shown in the code) otherwise it will be closed immediately after your code leaves the sub/function where form is opened this object way except the case when your form is modal - for this latter case your code will "get stuck" at the point: frm.visible = true If you wanted to refer to your forms' instances using mnemonic names like e.g: - PriceByDefectiveMaterialForm - PriceByDefectiveSolderForm - PriceByDefectiveWiringForm - ... Then you can use these mnemonic names while putting forms' instances object refs into collection: col.add frm, "PriceByDefectiveMaterialForm" .... ... and then somewhere in other part of your code ... Set frm = col("PriceByDefectiveMaterialForm") etc. Of course col collection should be (custom class) module level variable... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Then can I refer to the form object"frm" to set it's individual properties? Is there a way to then name that form object in case I have a few open and want to make change in one particular form? Or will they just be enumerated frm(0), frm(1) etc? John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Mon Oct 9 22:12:18 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 10 Oct 2006 07:12:18 +0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <015c01c6ec11$8c63aea0$6501a8c0@LaptopXP> Message-ID: <00ea01c6ec19$e680dc20$6401a8c0@nant> John, No, you don't need to design a new form from scratch by code. You can use your form - just set its HasModule property to True if it doesn't have any code behind. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 6:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances I think that all makes pretty good sense. But, will I have to actually design the new form from scratch through code? My plan was to just grab an existing form and open it up many times just changing the recordsource for each instance. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 7:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, You cannot refer to such form instances by name - you have to use indexes in global Access.Application.Forms collection or in your custom collection if you put form's instances object references in it as I have shown in the code. BTW, you HAVE to put form instance's object reference somewhere after you open it "object way" (as shown in the code) otherwise it will be closed immediately after your code leaves the sub/function where form is opened this object way except the case when your form is modal - for this latter case your code will "get stuck" at the point: frm.visible = true If you wanted to refer to your forms' instances using mnemonic names like e.g: - PriceByDefectiveMaterialForm - PriceByDefectiveSolderForm - PriceByDefectiveWiringForm - ... Then you can use these mnemonic names while putting forms' instances object refs into collection: col.add frm, "PriceByDefectiveMaterialForm" .... ... and then somewhere in other part of your code ... Set frm = col("PriceByDefectiveMaterialForm") etc. Of course col collection should be (custom class) module level variable... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Then can I refer to the form object"frm" to set it's individual properties? Is there a way to then name that form object in case I have a few open and want to make change in one particular form? Or will they just be enumerated frm(0), frm(1) etc? John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Mon Oct 9 22:15:22 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 10 Oct 2006 07:15:22 +0400 Subject: [AccessD] OT: Putting Pages N or Pages for Crystal Reportsreportgroup... In-Reply-To: <000001c6ec04$ffd03fa0$a9b62ad1@SUSANONE> Message-ID: <00eb01c6ec1a$541c6650$6401a8c0@nant> Thank, you Susan, Your article may help to give me some ideas although MS Access code can't be used in Crystal Reports reports: Crystal Reports uses its own dialect similar to VB/VBA but the object model and report generation engine is quite different from the one of MS Access... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, October 10, 2006 4:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Putting Pages N or Pages for Crystal Reportsreportgroup... Shamil, I don't know squat about Crystal Reports. Can you use Access code to generate the numbers and still use them in Crystal Reports? Ken Ismert and I just published an article on group page numbering, but it's in Access. If you think it would be of any help, I'll be glad to send you a copy of the unedited article. Susan H. Him All, Here is a tricky question - I can't figure out to find the answer quick enough nor by myself nor on google. Maybe somebody of you did do/have seen something like that ?: Done: Crystal Reports report printed with several groups. Requested: The pages within each group should be numbered starting from 1 and having printed total number of pages within current group e.g.: 1st group, 1st page, total pages in group 3 => Page 1 of 3 1st group, 2nd page, total pages in group 3 => Page 2 of 3 1st group, 3rd page, total pages in group 3 => Page 3 of 3 2nd group, 1st page, total pages in group 2 => Page 1 of 2 2nd group, 2nd page, total pages in group 2 => Page 2 of 2 ... etc... TIA for any tips, tricks and advises! -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.9/458 - Release Date: 9/27/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Tue Oct 10 00:34:19 2006 From: askolits at ot.com (John Skolits) Date: Tue, 10 Oct 2006 01:34:19 -0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <00ea01c6ec19$e680dc20$6401a8c0@nant> Message-ID: <017901c6ec2d$bbc01910$6501a8c0@LaptopXP> Oh, I see. If you create a collection from within a form and then ad a new form, it makes a new form of the one you're in. I get it. Thanks for your help. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 11:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, No, you don't need to design a new form from scratch by code. You can use your form - just set its HasModule property to True if it doesn't have any code behind. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 6:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances I think that all makes pretty good sense. But, will I have to actually design the new form from scratch through code? My plan was to just grab an existing form and open it up many times just changing the recordsource for each instance. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 7:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, You cannot refer to such form instances by name - you have to use indexes in global Access.Application.Forms collection or in your custom collection if you put form's instances object references in it as I have shown in the code. BTW, you HAVE to put form instance's object reference somewhere after you open it "object way" (as shown in the code) otherwise it will be closed immediately after your code leaves the sub/function where form is opened this object way except the case when your form is modal - for this latter case your code will "get stuck" at the point: frm.visible = true If you wanted to refer to your forms' instances using mnemonic names like e.g: - PriceByDefectiveMaterialForm - PriceByDefectiveSolderForm - PriceByDefectiveWiringForm - ... Then you can use these mnemonic names while putting forms' instances object refs into collection: col.add frm, "PriceByDefectiveMaterialForm" .... ... and then somewhere in other part of your code ... Set frm = col("PriceByDefectiveMaterialForm") etc. Of course col collection should be (custom class) module level variable... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Then can I refer to the form object"frm" to set it's individual properties? Is there a way to then name that form object in case I have a few open and want to make change in one particular form? Or will they just be enumerated frm(0), frm(1) etc? John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Tue Oct 10 03:02:11 2006 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 10 Oct 2006 01:02:11 -0700 (PDT) Subject: [AccessD] Access interview questions Message-ID: <20061010080211.871.qmail@web31601.mail.mud.yahoo.com> Hi group, I need to hire several new employees with good Office skills. Does anybody have a list of questions I can ask to determine the skill level of the candidate? I need questions regarding MS-Access and MS-Excel. I think I can come up with the MS-Access questions but especially MS-Excel is hard for me. I've googled for them but didn't find anything usefull. TIA Regards, Sander From accessd666 at yahoo.com Tue Oct 10 04:07:33 2006 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 10 Oct 2006 02:07:33 -0700 (PDT) Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? Message-ID: <20061010090733.72806.qmail@web31613.mail.mud.yahoo.com> Hi group, we've just started a new project. We want to create an ADP. We've never done this using a SQL Server 2005 back-end. Are there any known issues/problems why we shouldn't do this? Regards, Sander From mwp.reid at qub.ac.uk Tue Oct 10 04:24:18 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 10 Oct 2006 10:24:18 +0100 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? References: <20061010090733.72806.qmail@web31613.mail.mud.yahoo.com> Message-ID: Sander >From what I can tell ADPs will not receive the same focus re development at MS as linked applications. WIth SQL Server 2005 you will be OK provided you dont use any of the new SQL Server data types just pretent its SQL Server 2000. The new migration assistant for Access and SQL Server 2005 is really good and you should use this. AT the moment its not complete software but shoudl give you a good idea of what will happen when you move. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Sad Der Sent: Tue 10/10/2006 10:07 To: Acces User Group Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? Hi group, we've just started a new project. We want to create an ADP. We've never done this using a SQL Server 2005 back-end. Are there any known issues/problems why we shouldn't do this? Regards, Sander -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Oct 10 04:30:18 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Oct 2006 11:30:18 +0200 Subject: [AccessD] ODBC Message-ID: Hi Marty This is not so. If the ldb file exists, it will simply be reused (if not corrupted, of course). Access 1.x and 2.0 even left the ldb file on purpose for reuse. /gustav >>> martyconnelly at shaw.ca 09-10-2006 21:27:43 >>> One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". .. From John.Clark at niagaracounty.com Tue Oct 10 06:39:39 2006 From: John.Clark at niagaracounty.com (John Clark) Date: Tue, 10 Oct 2006 07:39:39 -0400 Subject: [AccessD] Dire ned of Help In-Reply-To: <4526F671.5928.E4D2ABA@stuart.lexacorp.com.pg> References: , <45263EB8.167F.006B.0@niagaracounty.com> <4526F671.5928.E4D2ABA@stuart.lexacorp.com.pg> Message-ID: <452B4E3A.167F.006B.0@niagaracounty.com> A thousand thanks, Stuart!!! I had started to look in this direction, but told myself that, "no, it is working for everything else, so that must not be it." I'm a dolt! I knew it would be simple and I'd be hitting myself saying, "Duh!" Thanks again! John W. Clark Computer Programmer Niagara County >>> "Stuart McLachlan" 10/6/2006 8:36 PM >>> On 6 Oct 2006 at 11:32, John Clark wrote: > strSQL = "SELECT nz(Max(Mid([tblMain]![txtControlNum],4)),0)+1 AS Mid([tblMain]![txtControlNum],4) will return "999" or "1000", as text strings. "999" is greater than "1000" when considered as a string - the first starts with ASC("9") the second with ASC("1") You need to return the maximum numeric value of the the sequence number, not the greatest string value. Use: nz(Max(Val(Mid([tblMain]![txtControlNum],4))),0)+1 -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Oct 10 06:46:41 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 10 Oct 2006 07:46:41 -0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <017901c6ec2d$bbc01910$6501a8c0@LaptopXP> Message-ID: <006101c6ec61$c17b6470$647aa8c0@m6805> John, Not exactly... A new form is opened two ways. 1) Docmd.Openform "formname" is the one everyone knows. This does NOT give you a direct handle but can be found in the Forms("Formname"). 2) The other way is to dimension a variable of the type form Dim frm as form set frm = new form_FormName. Frm now contains a pointer to the form formname. This whole process is a shortcut if you will, form_ simply tells VBA to look in the documents collection where the CLASSES for forms are kept and then use the part after the underscore as the NAME of the form class to open. Opening a class opens the form. While we are on the subject, I am guessing that if the form has the "no module" property set, then it has no class and this method will not work. So.... To reiterate: Dim a variable of type form: Dim frm as form SET that variable to the CLASS for a specific form: set frm = new form_MyForm You now have an OPENED form and a pointer to that form holding it open. NOW store that pointer into a collection using some name to index into the collection: Dim colMyForms as collection set colMyForms = new collection colMyForms.add frm, "MyFormName1" set frm = new form_MyForm colMyForms.add frm, "MyFormName2" set frm = new form_MyForm colMyForms.add frm, "MyFormName3" You can now reference any specific form by getting the pointer to the form back out of the collection: Dim frm as form set frm = colMyForms("MyFormName1") frm!MyControl.Value = "Hello" OR... You can use it in situ... colMyForms("MyFormName2")!MyControl.Value = "Hello again" To summarize. A form can be opened more than one time, however only by creating pointers to the form and STORING those pointers somewhere. A collection that we create for the purpose is a good place to save them, but it can also be just a dimensioned variable of type form, somewhere in your code. IMPORTANT!!! You MUST cleanup behind yourself in order to close such a form. You can apparently close the form by clickint the close control in the form's upper right, however it leaves stuff in VBA if you don't also delete the POINTER to the form in the collection or in the variable that you dimmed to hold the form pointer. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:34 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Oh, I see. If you create a collection from within a form and then ad a new form, it makes a new form of the one you're in. I get it. Thanks for your help. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 11:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, No, you don't need to design a new form from scratch by code. You can use your form - just set its HasModule property to True if it doesn't have any code behind. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 6:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances I think that all makes pretty good sense. But, will I have to actually design the new form from scratch through code? My plan was to just grab an existing form and open it up many times just changing the recordsource for each instance. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 7:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, You cannot refer to such form instances by name - you have to use indexes in global Access.Application.Forms collection or in your custom collection if you put form's instances object references in it as I have shown in the code. BTW, you HAVE to put form instance's object reference somewhere after you open it "object way" (as shown in the code) otherwise it will be closed immediately after your code leaves the sub/function where form is opened this object way except the case when your form is modal - for this latter case your code will "get stuck" at the point: frm.visible = true If you wanted to refer to your forms' instances using mnemonic names like e.g: - PriceByDefectiveMaterialForm - PriceByDefectiveSolderForm - PriceByDefectiveWiringForm - ... Then you can use these mnemonic names while putting forms' instances object refs into collection: col.add frm, "PriceByDefectiveMaterialForm" .... ... and then somewhere in other part of your code ... Set frm = col("PriceByDefectiveMaterialForm") etc. Of course col collection should be (custom class) module level variable... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Then can I refer to the form object"frm" to set it's individual properties? Is there a way to then name that form object in case I have a few open and want to make change in one particular form? Or will they just be enumerated frm(0), frm(1) etc? John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Tue Oct 10 07:40:47 2006 From: askolits at ot.com (John Skolits) Date: Tue, 10 Oct 2006 08:40:47 -0400 Subject: [AccessD] Multiple Form Instances In-Reply-To: <006101c6ec61$c17b6470$647aa8c0@m6805> Message-ID: <019601c6ec69$52fcfab0$6501a8c0@LaptopXP> Cool. Makes sense. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Tuesday, October 10, 2006 7:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, Not exactly... A new form is opened two ways. 1) Docmd.Openform "formname" is the one everyone knows. This does NOT give you a direct handle but can be found in the Forms("Formname"). 2) The other way is to dimension a variable of the type form Dim frm as form set frm = new form_FormName. Frm now contains a pointer to the form formname. This whole process is a shortcut if you will, form_ simply tells VBA to look in the documents collection where the CLASSES for forms are kept and then use the part after the underscore as the NAME of the form class to open. Opening a class opens the form. While we are on the subject, I am guessing that if the form has the "no module" property set, then it has no class and this method will not work. So.... To reiterate: Dim a variable of type form: Dim frm as form SET that variable to the CLASS for a specific form: set frm = new form_MyForm You now have an OPENED form and a pointer to that form holding it open. NOW store that pointer into a collection using some name to index into the collection: Dim colMyForms as collection set colMyForms = new collection colMyForms.add frm, "MyFormName1" set frm = new form_MyForm colMyForms.add frm, "MyFormName2" set frm = new form_MyForm colMyForms.add frm, "MyFormName3" You can now reference any specific form by getting the pointer to the form back out of the collection: Dim frm as form set frm = colMyForms("MyFormName1") frm!MyControl.Value = "Hello" OR... You can use it in situ... colMyForms("MyFormName2")!MyControl.Value = "Hello again" To summarize. A form can be opened more than one time, however only by creating pointers to the form and STORING those pointers somewhere. A collection that we create for the purpose is a good place to save them, but it can also be just a dimensioned variable of type form, somewhere in your code. IMPORTANT!!! You MUST cleanup behind yourself in order to close such a form. You can apparently close the form by clickint the close control in the form's upper right, however it leaves stuff in VBA if you don't also delete the POINTER to the form in the collection or in the variable that you dimmed to hold the form pointer. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:34 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Oh, I see. If you create a collection from within a form and then ad a new form, it makes a new form of the one you're in. I get it. Thanks for your help. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 11:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, No, you don't need to design a new form from scratch by code. You can use your form - just set its HasModule property to True if it doesn't have any code behind. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 6:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances I think that all makes pretty good sense. But, will I have to actually design the new form from scratch through code? My plan was to just grab an existing form and open it up many times just changing the recordsource for each instance. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 7:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances John, You cannot refer to such form instances by name - you have to use indexes in global Access.Application.Forms collection or in your custom collection if you put form's instances object references in it as I have shown in the code. BTW, you HAVE to put form instance's object reference somewhere after you open it "object way" (as shown in the code) otherwise it will be closed immediately after your code leaves the sub/function where form is opened this object way except the case when your form is modal - for this latter case your code will "get stuck" at the point: frm.visible = true If you wanted to refer to your forms' instances using mnemonic names like e.g: - PriceByDefectiveMaterialForm - PriceByDefectiveSolderForm - PriceByDefectiveWiringForm - ... Then you can use these mnemonic names while putting forms' instances object refs into collection: col.add frm, "PriceByDefectiveMaterialForm" .... ... and then somewhere in other part of your code ... Set frm = col("PriceByDefectiveMaterialForm") etc. Of course col collection should be (custom class) module level variable... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Then can I refer to the form object"frm" to set it's individual properties? Is there a way to then name that form object in case I have a few open and want to make change in one particular form? Or will they just be enumerated frm(0), frm(1) etc? John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, October 09, 2006 5:49 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Multiple Form Instances Yes, John, you can have multiple form instance opened at once - just make sure they have a form module or HasModule property set to true and then use (let's say your form's name is myForm): Dim col as new collection Dim frm as new myForm col.add frm frm.visible = true Similar way multiple instances of reports can be opened. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, October 10, 2006 1:30 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Multiple Form Instances I think there is a way to do this. Can I have multiple instances of the same form. I have form with a chart on it. I want to show multiple instances of this same form but I'll provide a different data source for the chart. This way if I need to do: Price By Defective Material Price by Defective Solder Price By Defective Wiring .... (About 20 options) I don't need 20 forms. I still want to give them the ability to have any number on the screen at the same time. I'm also guessing if I can do this forms, I should be able to do this with reports as well. John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Oct 10 08:47:39 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 10 Oct 2006 09:47:39 -0400 Subject: [AccessD] DAO Not Installed Message-ID: Just out of curiosity, In an Office 2000 Pro installation, which component causes DAO to be installed? Here's the scenario, I have just gottten a new laptop from work with WinXP SP1 and Office 2000-SP1 (Yes, I know we are a dozen or so SPs old, not my choice) with Access, Excel, Powerpoint and Word installed. I went to add a reference to DAO in Access and found out it wasn't installed. Went into the O2K installer and looked for anything that had to do with DAO, but couldn't find anything. So I told it to ainstall all teh Word, Excel, Powerpoint and Access components and lo and behold, DAO is now installed. Which component caused DAO to be installed? Any ideas? -- 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 accessd at shaw.ca Tue Oct 10 09:01:13 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 10 Oct 2006 07:01:13 -0700 Subject: [AccessD] Access interview questions In-Reply-To: <20061010080211.871.qmail@web31601.mail.mud.yahoo.com> Message-ID: <0J6X0059FAVNS910@l-daemon> Hi Sad: In one different interview, I was at, the interviewee was asked to bring in a few concise pieces of their best code. Then they were asked to explain the codes function carefully so all present could understand and ask further questions. Then some interviewer's code was presented and the candidate was asked to explain this code. I thought that interview method was very effective. It definitely showed how well organized, communicative and the level of understanding the potential employee had. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Tuesday, October 10, 2006 1:02 AM To: Acces User Group Subject: [AccessD] Access interview questions Hi group, I need to hire several new employees with good Office skills. Does anybody have a list of questions I can ask to determine the skill level of the candidate? I need questions regarding MS-Access and MS-Excel. I think I can come up with the MS-Access questions but especially MS-Excel is hard for me. I've googled for them but didn't find anything usefull. TIA Regards, Sander -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Oct 10 10:34:39 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 10 Oct 2006 10:34:39 -0500 Subject: [AccessD] Access interview questions In-Reply-To: <5798096.1160489055841.JavaMail.root@sniper45> Message-ID: <000901c6ec81$99fe8b50$0200a8c0@danwaters> Hi Sander, Well, that back and forth code questioning sure sounds good. In addition, you might ask a person to display a form or two (and report or two) they developed. They could explain their design choices. You could show some good/bad forms/reports and ask them to give their thoughts on those. Good Luck! Dan Waters -----Original Message----- Subject: Re: [AccessD] Access interview questions Hi Sad: In one different interview, I was at, the interviewee was asked to bring in a few concise pieces of their best code. Then they were asked to explain the codes function carefully so all present could understand and ask further questions. Then some interviewer's code was presented and the candidate was asked to explain this code. I thought that interview method was very effective. It definitely showed how well organized, communicative and the level of understanding the potential employee had. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Tuesday, October 10, 2006 1:02 AM To: Acces User Group Subject: [AccessD] Access interview questions Hi group, I need to hire several new employees with good Office skills. Does anybody have a list of questions I can ask to determine the skill level of the candidate? I need questions regarding MS-Access and MS-Excel. I think I can come up with the MS-Access questions but especially MS-Excel is hard for me. I've googled for them but didn't find anything usefull. TIA Regards, Sander -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From erbachs at gmail.com Tue Oct 10 12:35:29 2006 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 10 Oct 2006 12:35:29 -0500 Subject: [AccessD] DAO Not Installed In-Reply-To: References: Message-ID: <39cb22f30610101035l55e0c76elf267f7995d3ab80@mail.gmail.com> Bryan, DAO is part of Access. I don't remember exactly but the installation of Office Professional can be accomplished without registering DAO360.dll. The file is copied to the disk during the more bare bones install and can be registered with regsvr32...but I don't remember which disk contains the DAO360.dll file itself. Steve Erbach On 10/10/06, Bryan Carbonnell wrote: > Just out of curiosity, In an Office 2000 Pro installation, which > component causes DAO to be installed? > > Here's the scenario, I have just gottten a new laptop from work with > WinXP SP1 and Office 2000-SP1 (Yes, I know we are a dozen or so SPs > old, not my choice) with Access, Excel, Powerpoint and Word installed. > I went to add a reference to DAO in Access and found out it wasn't > installed. > > Went into the O2K installer and looked for anything that had to do > with DAO, but couldn't find anything. So I told it to ainstall all teh > Word, Excel, Powerpoint and Access components and lo and behold, DAO > is now installed. > > Which component caused DAO to be installed? Any ideas? > > -- > 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 jimdettman at verizon.net Tue Oct 10 13:27:30 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 10 Oct 2006 14:27:30 -0400 Subject: [AccessD] ODBC In-Reply-To: <002601c6ebc6$091fd190$6501a8c0@jefferson> Message-ID: <0J6X00FK8N9TMLH6@vms048.mailsrvcs.net> Jennifer, Sorry for the delay in getting back to you. You'll need to use the ADO to get the current roster. The code is here: http://support.microsoft.com/kb/198755/EN-US Only draw back is that you'll need to leave this up and running somewhere. When you find a user can't get into the database because it's corrupt, go to this instance and run the routine. The 4th column should show who left it corrupted. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, October 09, 2006 1:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Jim, I am using A2K and I would love to know how to find out who is corrupting the database. I cannot use Dev Ashish's LDB Viewer because it does not recognize the BE as a valid database when it is in a "corrupt" state. Thank you, Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, October 09, 2006 5:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Jennifer, <> Maybe not a setting that was changed, but certainly it is consuming more resources on the server. My first stop would be the system event logs checking for any errors or warnings. I would also go back and check all TS settings in general and for each user. A disconnect should not logout the session. <> Someone is getting terminated abnormally. Have the users reported any strange behavior or problems? I didn't see in the prior messages what version of Access you are using, but what you need to do is find out what user(s) are leaving the database in a corrupt state. The method you use depends on the version (either using LDBVIEW or the JET roster). Once you have that, you can build up a pattern (same user all the time or different users each time). That generally gives you a clue where the problem lies. <> I would say 20+ minutes was abnormal, but without knowing what you mean by doing a "FE update", I can't say for sure. << Now, it takes less than a minute, as though no one is working in the database and everyone who is working in the database gets kicked out. >> How do they get 'Kicked out'. A message? Window simply closes? There is nothing in Access that does this on it's own. It's either something built into your app or something abnormal that is occurring. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Sunday, October 08, 2006 4:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Jim, We have <25 users. The FE is only referencing DLLs and type libraries so hopefully that should not be a problem. Recently a WAMP Server (Apache) was installed on the TS box. Although it is inactive I have concerns that it has changed some setting that are contributing to the problems we are having. New IT guy says it was installed subsequent to the first corruption, but it was the same day. Since then the database has been "corrupting" at least once a day - typically around lunch time when all users are getting in to clock out - their time clock is part of the database. No data is lost, but the repair utility has to be run. In addition to the "corruptions" another strange thing has been happening during this time period - in the past when I was posting a FE update, if someone was using the database the linking to the BE would take 20+ minutes, I assume because of the record locking checks. Now, it takes less than a minute, as though no one is working in the database and everyone who is working in the database gets kicked out. We have one guy who works late nights, and that is when I post FE updates. Any thoughts? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, October 08, 2006 4:39 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Jennifer, << We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. >> The TS connection settings should be checked. When a connection is dropped, there are various things TS can do; retain the session so you can reconnect, log it out, etc. What you don't want is for it to be logged out. That means Access (and any other running apps) will get terminated whether they want to or not. The other place where TS bites you is references. Unless you change references on the fly or distribute a special TS version of your FE, all users will have references (usually to the local C drive in most cases). This means they are all sharing those references even if you've given them all a separate copy of the FE. With Dll's and type libs, that's not a problem, but if it's a .MDA add-in, you might have some issues with that. Using some of the Access Wizards under TS requires workarounds because of this. Beyond that, running TS is no different then a bunch of client PCs all connecting to the BE in terms of connections. In fact, it's a lot more stable. If I could run Access under TS vs the "normal" way, I'd choose TS hands down every time. Jim. BTW, how many users are we talking about? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Friday, October 06, 2006 11:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] ODBC Hi Stuart, Do you have experience with Terminal Server with multiple users running separate front ends to a common Access data file? I would love to pick your brain if you do - or anyone else for that matter. I currently have a new IT guy who is in conflict with the old IT guy about our use of Terminal Server. We are having data corruption and the new guy says it is because of Terminal Server - too many connections to the back end from the same box. I know very little about the network/hardware/software aspects and am at a loss. I have made no changes to the database, yet in the past two weeks we have experienced several "corruptions", when the database had been stable for nearly a year without a corruption. Any help would be appreciated. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, October 06, 2006 8:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC On 6 Oct 2006 at 19:09, Jennifer Gross wrote: > Question 1: When an Access front end connects to an Access backend is > it an ODBC connection? No, it's a JET connection, which is more efficient than ODBC > Question 2: If multiple users have separate front ends on the same > Terminal Server box linking to a back end on a different box, are they > opening separate connections to the back end (ODBC or otherwise), or > are they sharing the same connection? They are separate connections. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Oct 10 13:33:20 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 10 Oct 2006 14:33:20 -0400 Subject: [AccessD] DAO Not Installed In-Reply-To: <39cb22f30610101035l55e0c76elf267f7995d3ab80@mail.gmail.com> References: <39cb22f30610101035l55e0c76elf267f7995d3ab80@mail.gmail.com> Message-ID: On 10/10/06, Steve Erbach wrote: > Bryan, > > DAO is part of Access. I don't remember exactly but the installation > of Office Professional can be accomplished without registering > DAO360.dll. The file is copied to the disk during the more bare bones > install and can be registered with regsvr32...but I don't remember > which disk contains the DAO360.dll file itself. Access 2000 can be installed without DAO, or at least without it being registered. I had a fully functioning install of Access 2K without DAO, which I thought was extremely weird. The problem is now solved, it's more a curiosity for me more than anything else. -- 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 erbachs at gmail.com Tue Oct 10 13:39:13 2006 From: erbachs at gmail.com (Steve Erbach) Date: Tue, 10 Oct 2006 13:39:13 -0500 Subject: [AccessD] DAO Not Installed In-Reply-To: References: <39cb22f30610101035l55e0c76elf267f7995d3ab80@mail.gmail.com> Message-ID: <39cb22f30610101139t57f88eces4402f88ed8fc0806@mail.gmail.com> Bryan, Yeah, I remember a couple of installs that had to be revised because DAO didn't work. It isn't part of the default installation. Beats me why. Steve Erbach On 10/10/06, Bryan Carbonnell wrote: > On 10/10/06, Steve Erbach wrote: > > Bryan, > > > > DAO is part of Access. I don't remember exactly but the installation > > of Office Professional can be accomplished without registering > > DAO360.dll. The file is copied to the disk during the more bare bones > > install and can be registered with regsvr32...but I don't remember > > which disk contains the DAO360.dll file itself. > > Access 2000 can be installed without DAO, or at least without it being > registered. I had a fully functioning install of Access 2K without > DAO, which I thought was extremely weird. > > The problem is now solved, it's more a curiosity for me more than anything else. > > -- > Bryan Carbonnell - carbonnb at gmail.com From tuxedoman888 at gmail.com Tue Oct 10 14:10:00 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Tue, 10 Oct 2006 12:10:00 -0700 Subject: [AccessD] MSysObjects type = 8 Message-ID: <7c8826480610101210k7bfb39b9vab2cd160f732e4f7@mail.gmail.com> Hello: Does anyone know where I can get documentation on the system tables in access 2003? I'm trying to figure out what kind of object is type = 8 in the MSysObjects table.*bjects* thanks Billy -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From garykjos at gmail.com Tue Oct 10 14:31:14 2006 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 10 Oct 2006 14:31:14 -0500 Subject: [AccessD] MSysObjects type = 8 In-Reply-To: <7c8826480610101210k7bfb39b9vab2cd160f732e4f7@mail.gmail.com> References: <7c8826480610101210k7bfb39b9vab2cd160f732e4f7@mail.gmail.com> Message-ID: According to this, it is a relationship.... http://www.experts-exchange.com/Databases/MS_Access/Q_21389691.html GK On 10/10/06, Billy Pang wrote: > Hello: > Does anyone know where I can get documentation on the system tables in > access 2003? > I'm trying to figure out what kind of object is type = 8 in the MSysObjects > table.*bjects* > thanks > Billy > -- > Billy Pang > http://dbnotes.blogspot.com/ > "Once the game is over, the King and the pawn go back in the same box." - > Italian proverb > -- > 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 tuxedoman888 at gmail.com Tue Oct 10 14:48:04 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Tue, 10 Oct 2006 12:48:04 -0700 Subject: [AccessD] MSysObjects type = 8 In-Reply-To: References: <7c8826480610101210k7bfb39b9vab2cd160f732e4f7@mail.gmail.com> Message-ID: <7c8826480610101248p203a38adp47232d6cefd94d9@mail.gmail.com> thanks Gary! Billy On 10/10/06, Gary Kjos wrote: > > According to this, it is a relationship.... > > http://www.experts-exchange.com/Databases/MS_Access/Q_21389691.html > > GK > > On 10/10/06, Billy Pang wrote: > > Hello: > > Does anyone know where I can get documentation on the system tables in > > access 2003? > > I'm trying to figure out what kind of object is type = 8 in the > MSysObjects > > table.*bjects* > > thanks > > Billy > > -- > > Billy Pang > > http://dbnotes.blogspot.com/ > > "Once the game is over, the King and the pawn go back in the same box." > - > > Italian proverb > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From kp at sdsonline.net Tue Oct 10 18:50:23 2006 From: kp at sdsonline.net (Kath Pelletti) Date: Wed, 11 Oct 2006 09:50:23 +1000 Subject: [AccessD] Access interview questions References: <20061010080211.871.qmail@web31601.mail.mud.yahoo.com> Message-ID: <00fe01c6ecc6$dbaa2b00$6401a8c0@office> Hi Sander - I have a document for Excel skill evaluation for intro and intermediate skills. I will send offline, rgds Kath ----- Original Message ----- From: Sad Der To: Acces User Group Sent: Tuesday, October 10, 2006 6:02 PM Subject: [AccessD] Access interview questions Hi group, I need to hire several new employees with good Office skills. Does anybody have a list of questions I can ask to determine the skill level of the candidate? I need questions regarding MS-Access and MS-Excel. I think I can come up with the MS-Access questions but especially MS-Excel is hard for me. I've googled for them but didn't find anything usefull. TIA Regards, Sander -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Oct 10 21:34:36 2006 From: artful at rogers.com (artful at rogers.com) Date: Tue, 10 Oct 2006 19:34:36 -0700 (PDT) Subject: [AccessD] OT: Quick Launch Buttons Message-ID: <20061011023436.85181.qmail@web88204.mail.re2.yahoo.com> Two questions (perhaps) in one: 1. How do you manually create a quick launch button for a program that doesn't offer the choice during installation? 2. Can you install a quick launch shortcut to and MDB or ADP, and if so how? Arthur From dmcafee at pacbell.net Tue Oct 10 21:49:20 2006 From: dmcafee at pacbell.net (David McAfee) Date: Tue, 10 Oct 2006 19:49:20 -0700 Subject: [AccessD] OT: Quick Launch Buttons In-Reply-To: <20061011023436.85181.qmail@web88204.mail.re2.yahoo.com> Message-ID: Manually, you just right drag (right click and drag) the exe onto the quick launch bar then when you release choose "Create shortcut". you can then rename it and drag it to the order that you prefer. You can create a quick launch to an mdb/adp in the same manner. HTH David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of artful at rogers.com Sent: Tuesday, October 10, 2006 7:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Quick Launch Buttons Two questions (perhaps) in one: 1. How do you manually create a quick launch button for a program that doesn't offer the choice during installation? 2. Can you install a quick launch shortcut to and MDB or ADP, and if so how? Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Oct 10 22:01:31 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 10 Oct 2006 22:01:31 -0500 Subject: [AccessD] OT: Quick Launch Buttons Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDD2F@MARLOW_MAIN2.marlow.com> If you are talking programatically, the Quicklaunch toolbar is a folder in a users profile, but honestly, I don't have a clue how to make a 'shortcut' file..... Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Tuesday, October 10, 2006 9:35 PM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Quick Launch Buttons Two questions (perhaps) in one: 1. How do you manually create a quick launch button for a program that doesn't offer the choice during installation? 2. Can you install a quick launch shortcut to and MDB or ADP, and if so how? Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Oct 11 00:44:15 2006 From: martyconnelly at shaw.ca (Marty Connelly) Date: Tue, 10 Oct 2006 22:44:15 -0700 Subject: [AccessD] DAO Not Installed In-Reply-To: <39cb22f30610101035l55e0c76elf267f7995d3ab80@mail.gmail.com> References: <39cb22f30610101035l55e0c76elf267f7995d3ab80@mail.gmail.com> Message-ID: <00e501c6ecf8$4bbd75b0$e3386110$@ca> DAO isn't attached to Access or Office as it was also usable by VB6, you can install MDAC 2.5 ( Last MDAC to contain DAO) or install Jet SP 8 both available from http://www.microsoft.com/data -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: October 10, 2006 10:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] DAO Not Installed Bryan, DAO is part of Access. I don't remember exactly but the installation of Office Professional can be accomplished without registering DAO360.dll. The file is copied to the disk during the more bare bones install and can be registered with regsvr32...but I don't remember which disk contains the DAO360.dll file itself. Steve Erbach On 10/10/06, Bryan Carbonnell wrote: > Just out of curiosity, In an Office 2000 Pro installation, which > component causes DAO to be installed? > > Here's the scenario, I have just gottten a new laptop from work with > WinXP SP1 and Office 2000-SP1 (Yes, I know we are a dozen or so SPs > old, not my choice) with Access, Excel, Powerpoint and Word installed. > I went to add a reference to DAO in Access and found out it wasn't > installed. > > Went into the O2K installer and looked for anything that had to do > with DAO, but couldn't find anything. So I told it to ainstall all teh > Word, Excel, Powerpoint and Access components and lo and behold, DAO > is now installed. > > Which component caused DAO to be installed? Any ideas? > > -- > 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.2/471 - Release Date: 10/10/2006 From stuart at lexacorp.com.pg Tue Oct 10 22:16:03 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 11 Oct 2006 13:16:03 +1000 Subject: [AccessD] OT: Quick Launch Buttons In-Reply-To: <20061011023436.85181.qmail@web88204.mail.re2.yahoo.com> References: <20061011023436.85181.qmail@web88204.mail.re2.yahoo.com> Message-ID: <452CEE93.23126.2E033B85@stuart.lexacorp.com.pg> On 10 Oct 2006 at 19:34, artful at rogers.com wrote: > Two questions (perhaps) in one: > > 1. How do you manually create a quick launch button for a program that doesn't offer the choice during installation? Put a shortcut in: Documents and Settings\Username\Application Data\Microsoft\Internet Explorer\Quick Launch > 2. Can you install a quick launch shortcut to and MDB or ADP, and if so how? Yes. Simplest way is to drag the MDB or ADP and drop it on the Quick Launch bar. If you want to do it from code, you have to create the shortcut in code and place it in the above directory. The easiest way to create a shortcut in code is to use Windows Scripting and WshShell.CreateShortcut() From Lambert.Heenan at AIG.com Wed Oct 11 08:12:28 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 11 Oct 2006 08:12:28 -0500 Subject: [AccessD] Access interview questions Message-ID: In code, using the windows scripting host, you can do it like this... Sub Make_LNK_File(txtLnkName As String, txtTarget As String, Optional txtIconFile As String = "", Optional Description As String = "") 'initialize the object WshShell Dim objShell As Object Dim objShortcut As Object Set objShell = New WshShell 'initialize the object WshShortcut 'the complete name of the .lnk file, include full path plus the .LNK file extension Set objShortcut = objShell.CreateShortcut(txtLnkName) 'the file to be called by the .lnk file, e.g.. "c:\windows\calc.exe" objShortcut.TargetPath = txtTarget '(optional) := any command line supported by the file indicated in txtTarget.Text 'objShortcut.Arguments = xxxx '(optional) : = a valid icon file : = To use the same icon of the target file, do not use the next line. objShortcut.IconLocation = txtIconFile objShortcut.Description = Description 'Save the .lnk objShortcut.Save End Sub Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, October 10, 2006 7:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access interview questions Hi Sander - I have a document for Excel skill evaluation for intro and intermediate skills. I will send offline, rgds Kath ----- Original Message ----- From: Sad Der To: Acces User Group Sent: Tuesday, October 10, 2006 6:02 PM Subject: [AccessD] Access interview questions Hi group, I need to hire several new employees with good Office skills. Does anybody have a list of questions I can ask to determine the skill level of the candidate? I need questions regarding MS-Access and MS-Excel. I think I can come up with the MS-Access questions but especially MS-Excel is hard for me. I've googled for them but didn't find anything usefull. TIA Regards, Sander -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Wed Oct 11 08:28:35 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 11 Oct 2006 08:28:35 -0500 Subject: [AccessD] Access interview questions Message-ID: Hmm. What happened to all the line breaks? It looked good before I sent it!!! Sub Make_LNK_File(txtLnkName As String, txtTarget As String, Optional txtIconFile As String = "", Optional Description As String = "") 'initialize the object WshShell Dim objShell As Object Dim objShortcut As Object Set objShell = New WshShell 'initialize the object WshShortcut 'the complete name of the .lnk file, include full path plus the .LNK file extension Set objShortcut = objShell.CreateShortcut(txtLnkName) 'the file to be called by the .lnk file, e.g.. "c:\windows\calc.exe" objShortcut.TargetPath = txtTarget '(optional) := any command line supported by the file indicated in txtTarget.Text 'objShortcut.Arguments = xxxx '(optional) : = a valid icon file : = To use the same icon of the target file, do not use the next line. objShortcut.IconLocation = txtIconFile objShortcut.Description = Description 'Save the .lnk objShortcut.Save End Sub Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, October 11, 2006 9:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access interview questions In code, using the windows scripting host, you can do it like this... Sub Make_LNK_File(txtLnkName As String, txtTarget As String, Optional txtIconFile As String = "", Optional Description As String = "") 'initialize the object WshShell Dim objShell As Object Dim objShortcut As Object Set objShell = New WshShell 'initialize the object WshShortcut 'the complete name of the .lnk file, include full path plus the .LNK file extension Set objShortcut = objShell.CreateShortcut(txtLnkName) 'the file to be called by the .lnk file, e.g.. "c:\windows\calc.exe" objShortcut.TargetPath = txtTarget '(optional) := any command line supported by the file indicated in txtTarget.Text 'objShortcut.Arguments = xxxx '(optional) : = a valid icon file : = To use the same icon of the target file, do not use the next line. objShortcut.IconLocation = txtIconFile objShortcut.Description = Description 'Save the .lnk objShortcut.Save End Sub Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, October 10, 2006 7:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access interview questions Hi Sander - I have a document for Excel skill evaluation for intro and intermediate skills. I will send offline, rgds Kath ----- Original Message ----- From: Sad Der To: Acces User Group Sent: Tuesday, October 10, 2006 6:02 PM Subject: [AccessD] Access interview questions Hi group, I need to hire several new employees with good Office skills. Does anybody have a list of questions I can ask to determine the skill level of the candidate? I need questions regarding MS-Access and MS-Excel. I think I can come up with the MS-Access questions but especially MS-Excel is hard for me. I've googled for them but didn't find anything usefull. TIA Regards, Sander -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Wed Oct 11 11:10:41 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 11 Oct 2006 20:10:41 +0400 Subject: [AccessD] Open Access 2007 forms and reports from Windows SharePoint Services Message-ID: <000c01c6ed4f$cddc1630$6401a8c0@nant> Hi All, The following is a citation from MS Access 2007 online help: <<< Windows SharePoint Services users can open lists in rich Access views directly from a SharePoint site. Office Access 2007 forms, reports, and datasheets can appear listed alongside other views on a SharePoint site. When you choose an Access view, Office Access 2007 starts and opens the requested form, report, or datasheet. This makes it easy for you to run a rich Office Access 2007 report on a SharePoint site without having to first start Office Access 2007. You can also choose to open a list in Access, and if a database doesn't exist, it is created automatically and prepopulated with a set of forms and reports based on your list. >> Questions (to Martin probably): How this feature works? Is the database created "automagically" on client or on server side? Does MS Access runs embedded in a host application (SharePoint services client?) or as an independent application? ... Thank you. -- Shamil From mwp.reid at qub.ac.uk Wed Oct 11 11:40:28 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 11 Oct 2006 17:40:28 +0100 Subject: [AccessD] Open Access 2007 forms and reports from WindowsSharePoint Services References: <000c01c6ed4f$cddc1630$6401a8c0@nant> Message-ID: It creates the database or you can link to an existing database. There are a number of ways this works. The database can be exported to WSS and you are left with a copy of the entire DB on Sharepoint and links in your access application. Its really cool with new caching features. You can cache data in the database for of line working and then synch it back to SharePoint. It can lead to database growth but ists a nice feature. There will be a some point soon the ability to take a SharePOint site and create a full databse from the lists. Some of the features are really nice. New form property allows you to expose the fom on WSS and the same with reports. The suer click the report for example and it opens in Access. Access runs as an independ linked application. The forms etc that are in the created databse depend on settings you make yourself when exporting. Its worth actually installing MOSS 2007 and Office 2007 on a Virtual machine to see how this works together. The install is a real pain in the ass so be warned. You need to install MOSS Beta 2 and all its needed software .NET and Workflow foundation on Win Server 2003. The you need to install Beta 2 TR whcih is not trival if you have no experience of the MOSS servers. I owudl think Shamil Workflow with Access and MOSS would interest you. Its very cool. 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 11/10/2006 17:10 To: 'Access-D' Subject: [AccessD] Open Access 2007 forms and reports from WindowsSharePoint Services Hi All, The following is a citation from MS Access 2007 online help: <<< Windows SharePoint Services users can open lists in rich Access views directly from a SharePoint site. Office Access 2007 forms, reports, and datasheets can appear listed alongside other views on a SharePoint site. When you choose an Access view, Office Access 2007 starts and opens the requested form, report, or datasheet. This makes it easy for you to run a rich Office Access 2007 report on a SharePoint site without having to first start Office Access 2007. You can also choose to open a list in Access, and if a database doesn't exist, it is created automatically and prepopulated with a set of forms and reports based on your list. >> Questions (to Martin probably): How this feature works? Is the database created "automagically" on client or on server side? Does MS Access runs embedded in a host application (SharePoint services client?) or as an independent application? ... 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 Wed Oct 11 12:44:18 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 11 Oct 2006 21:44:18 +0400 Subject: [AccessD] Open Access 2007 forms and reports fromWindowsSharePoint Services In-Reply-To: Message-ID: <000e01c6ed5c$e1e89c90$6401a8c0@nant> Thank you for your answer, Martin! <<< The install is a real pain in the ass so be warned. >>> Thank you for the warning, Martin. I then better wait for release. :) <<< New form property allows you to expose the form on WSS and the same with reports. The user click the report for example and it opens in Access. >>> OK, and you can still use such forms/reports in an offline database? BTW, I'm trying to find what are the new objects/properties in MS Access object model - so far I did find these: - Attachment - ImportExportSpecification - ImportExportSpecifications - MacroError - TempVar - TempVars Is there somewhere a full list published? And MS Office 2007 object model has a lot of new objects: - Arcs - Axes - Buttons - ChartFillFormat - ChartFont - ChartGroups - CustomTaskPane - CustomXMLNode - CustomXMLNodes - CustomXMLPart - CustomXMLParts - CustomXMLPrefixMapping - CustomXMLPrefixMappings - CustomXMLSchema - CustomXMLSchemaCollection ... etc ... These all to work with XML, Ribbon, SharePoint, Worklflow... as far as I may guess... The new Sync object is obviously (?) to synchronize client apps's objects with SS services object vault... Yes, quite some new features there to learn about! I must say I still to adapt to the Ribbon - is there a possibility to switch it off completely and use good old commandbars? :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 11, 2006 8:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Open Access 2007 forms and reports fromWindowsSharePoint Services It creates the database or you can link to an existing database. There are a number of ways this works. The database can be exported to WSS and you are left with a copy of the entire DB on Sharepoint and links in your access application. Its really cool with new caching features. You can cache data in the database for of line working and then synch it back to SharePoint. It can lead to database growth but ists a nice feature. There will be a some point soon the ability to take a SharePOint site and create a full databse from the lists. Some of the features are really nice. New form property allows you to expose the fom on WSS and the same with reports. The suer click the report for example and it opens in Access. Access runs as an independ linked application. The forms etc that are in the created databse depend on settings you make yourself when exporting. Its worth actually installing MOSS 2007 and Office 2007 on a Virtual machine to see how this works together. The install is a real pain in the ass so be warned. You need to install MOSS Beta 2 and all its needed software .NET and Workflow foundation on Win Server 2003. The you need to install Beta 2 TR whcih is not trival if you have no experience of the MOSS servers. I owudl think Shamil Workflow with Access and MOSS would interest you. Its very cool. 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 11/10/2006 17:10 To: 'Access-D' Subject: [AccessD] Open Access 2007 forms and reports from WindowsSharePoint Services Hi All, The following is a citation from MS Access 2007 online help: <<< Windows SharePoint Services users can open lists in rich Access views directly from a SharePoint site. Office Access 2007 forms, reports, and datasheets can appear listed alongside other views on a SharePoint site. When you choose an Access view, Office Access 2007 starts and opens the requested form, report, or datasheet. This makes it easy for you to run a rich Office Access 2007 report on a SharePoint site without having to first start Office Access 2007. You can also choose to open a list in Access, and if a database doesn't exist, it is created automatically and prepopulated with a set of forms and reports based on your list. >> Questions (to Martin probably): How this feature works? Is the database created "automagically" on client or on server side? Does MS Access runs embedded in a host application (SharePoint services client?) or as an independent application? ... Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Oct 11 12:52:11 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 11 Oct 2006 10:52:11 -0700 Subject: [AccessD] ODBC In-Reply-To: References: Message-ID: <452D2F4B.9000502@shaw.ca> I was talking about a NTFS file lock on the ldb file. I had seen recent references to this on an MSDN blog, whether it is true so I fiddled around with this and created a fake .ldb in notepad with one entry and closed it, so all file locks on the ldb were dropped It opened up the mdb in 97 with no complaints. so I guess you are right. http://blogs.msdn.com/larryosterman/archive/2006/02/17/534234.aspx You could use this code to see if a file lock is in place to test if the condition occurs http://vbnet.mvps.org/index.html?code/fileapi/createfile_inuse.htm Gustav Brock wrote: >Hi Marty > >This is not so. If the ldb file exists, it will simply be reused (if not corrupted, of course). >Access 1.x and 2.0 even left the ldb file on purpose for reuse. > >/gustav > > > >>>>martyconnelly at shaw.ca 09-10-2006 21:27:43 >>> >>>> >>>> > >One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". .. > > > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Wed Oct 11 12:57:04 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 11 Oct 2006 18:57:04 +0100 Subject: [AccessD] Open Access 2007 forms and reportsfromWindowsSharePoint Services References: <000e01c6ed5c$e1e89c90$6401a8c0@nant> Message-ID: Shamil I actually like the ribbon. Old apps will work as is with command bars but no it replaces command bars in 2007 file types. The ribbon is an XML file using call backs so basically anything you can do in VBA call backs you can do with a ribbon. I would say with your skills you couldl make some really cool ribbon features. I had and am having a hard time with the XMl but will get there. THe cache as you say is for server data to client data. Its a bit of a security hoel as anyone then with access to teh DB has access to teh server data. But in a linked app its Active Directory security for the life time of the open application. Once linked a WSS lsit can be manipulated as if it where an Access table using DAO etc and works really well. TempVars are really used by Macros but available in VBA. They are macro variables. Attachment is a data type. New one in whch you can associate multiple files with a record. Very clever but if your upgrading to SQL Server useless. Its a sharepoint feature the ability to associate attachments with list items. Macros now have OnError statements In a few months they will also release a tool that will shred you database into XML and allow you to create your own templates. You can see hwo this works if you take an Access 2007 template file and rename it with a ZIP extension. Still gettign to grips with this bit. Hence my email re Load and Save from text a while back. The XML files are structued in teh same way as those methods produce. You can also save import/export specs for reuse. Martin From jimdettman at verizon.net Wed Oct 11 13:48:15 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Wed, 11 Oct 2006 14:48:15 -0400 Subject: [AccessD] ODBC In-Reply-To: <452D2F4B.9000502@shaw.ca> Message-ID: <0J6Z00FXYIVTDZCQ@vms040.mailsrvcs.net> Marty, Yes, what gustav said was true. The main reason the change was made to delete the LDB file was to speedup the initial login under certain scenarios with Netware. It also cleaned it up by getting rid of phantom users that would be sometimes listed. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, October 11, 2006 1:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ODBC I was talking about a NTFS file lock on the ldb file. I had seen recent references to this on an MSDN blog, whether it is true so I fiddled around with this and created a fake .ldb in notepad with one entry and closed it, so all file locks on the ldb were dropped It opened up the mdb in 97 with no complaints. so I guess you are right. http://blogs.msdn.com/larryosterman/archive/2006/02/17/534234.aspx You could use this code to see if a file lock is in place to test if the condition occurs http://vbnet.mvps.org/index.html?code/fileapi/createfile_inuse.htm Gustav Brock wrote: >Hi Marty > >This is not so. If the ldb file exists, it will simply be reused (if not corrupted, of course). >Access 1.x and 2.0 even left the ldb file on purpose for reuse. > >/gustav > > > >>>>martyconnelly at shaw.ca 09-10-2006 21:27:43 >>> >>>> >>>> > >One of the checks that MS applies to determine a corrupt mdb is on opening the mdb if the .ldb file is there but has no file locks on it, then the database is considered corrupt and needs to be "repaired". .. > > > > -- 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 shamil at users.mns.ru Wed Oct 11 14:47:04 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 11 Oct 2006 23:47:04 +0400 Subject: [AccessD] Open Access 2007 forms andreportsfromWindowsSharePoint Services In-Reply-To: Message-ID: <001101c6ed6e$08786050$6401a8c0@nant> <<< In a few months they will also release a tool that will shred you database into XML and allow you to create your own templates. >>> Yes, I see. Thank you. <<< Still gettign to grips with this bit. Hence my email re Load and Save from text a while back. The XML files are structued in teh same way as those methods produce. >>> OK - as I see this is a mix of XML and .SaveAsText produced files... But after all all the objects and data of a database are saved in this .accdt file, which is in fact a .zip file as you noted: - databaseProperties.xml - navpane.xml - relationships.xml - vbaReferences.xml - objects folder: tables - xsd of tables queries - SaveAstext forms - SaveAstext reports - SaveAstext macros - SaveAstext modules - SaveAstext - SampleData folder - xml file of the database tables data - _rels and properties subfolders - these are unclear - some small size xml files here with almost no information in them - what for are these? I guess files in _rels are to keep information about MS Access database objects' relationships/dependencies. And what for the files in properties foder? - I guess they plan to finally convert .SaveAsText files' info into .xml format? Right? Do they plan to release this tool you mention together with MS Access? So all the MS Access databases' contents including queries, forms, reports, ... will be possible soon to XML-ze/serialize, publish on SharePoint server as well as deserialize and run on client side... MS Access applications are becoming open source by definition?... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 11, 2006 9:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Open Access 2007 forms andreportsfromWindowsSharePoint Services Shamil I actually like the ribbon. Old apps will work as is with command bars but no it replaces command bars in 2007 file types. The ribbon is an XML file using call backs so basically anything you can do in VBA call backs you can do with a ribbon. I would say with your skills you couldl make some really cool ribbon features. I had and am having a hard time with the XMl but will get there. THe cache as you say is for server data to client data. Its a bit of a security hoel as anyone then with access to teh DB has access to teh server data. But in a linked app its Active Directory security for the life time of the open application. Once linked a WSS lsit can be manipulated as if it where an Access table using DAO etc and works really well. TempVars are really used by Macros but available in VBA. They are macro variables. Attachment is a data type. New one in whch you can associate multiple files with a record. Very clever but if your upgrading to SQL Server useless. Its a sharepoint feature the ability to associate attachments with list items. Macros now have OnError statements In a few months they will also release a tool that will shred you database into XML and allow you to create your own templates. You can see hwo this works if you take an Access 2007 template file and rename it with a ZIP extension. Still gettign to grips with this bit. Hence my email re Load and Save from text a while back. The XML files are structued in teh same way as those methods produce. You can also save import/export specs for reuse. Martin From mwp.reid at qub.ac.uk Wed Oct 11 14:59:55 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 11 Oct 2006 20:59:55 +0100 Subject: [AccessD] Open Access 2007 formsandreportsfromWindowsSharePoint Services References: <001101c6ed6e$08786050$6401a8c0@nant> Message-ID: Shamil If you email me of list I will send you the information I have on the XML structures. Sorry folks cant share it to far at the moment. The XML files store the same structure as SaveAsText but I dont know how they produce it yet. The _rel file is I think (and Marty can chip in here) details about the relationships between the XML files themselves. I think. I have been taking with Marty about this. As I said XML isnt my strong point and I am learning. I have some information I am happy to let you see of list. I believe the XML shredding tool will be part of the developers toolkit but I am not sure. I do know it is built but as yet they do not have a GUI for it. I would expect it around March 2007. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From shamil at users.mns.ru Wed Oct 11 15:29:37 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 12 Oct 2006 00:29:37 +0400 Subject: [AccessD] Open Access 2007 formsandreportsfromWindowsSharePointServices In-Reply-To: Message-ID: <002001c6ed73$f9296760$6401a8c0@nant> Yes, Martin, I'm interested to have a look at these xml formats. Please send it to me off-list if possible. My e-mail address is: shamilATusersDOTmnsDOTru (please replace AT with '@' sign and DOT with '.' char) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, October 12, 2006 12:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Open Access 2007 formsandreportsfromWindowsSharePointServices Shamil If you email me of list I will send you the information I have on the XML structures. Sorry folks cant share it to far at the moment. The XML files store the same structure as SaveAsText but I dont know how they produce it yet. The _rel file is I think (and Marty can chip in here) details about the relationships between the XML files themselves. I think. I have been taking with Marty about this. As I said XML isnt my strong point and I am learning. I have some information I am happy to let you see of list. I believe the XML shredding tool will be part of the developers toolkit but I am not sure. I do know it is built but as yet they do not have a GUI for it. I would expect it around March 2007. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From paul.hartland at fsmail.net Thu Oct 12 03:51:46 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 12 Oct 2006 10:51:46 +0200 (CEST) Subject: [AccessD] OT - URL & Visual Basic Message-ID: <22674507.1160643106491.JavaMail.www@wwinf3103> To all, I have been asked if the following is possibly, my friend has his own website and has something on there (haven't gone into this bit) that will leave a new folder or file on set days. He wants to get the new folder(s)/file(s) each day and back them up to his local drive (C:\), and he doesn't want to keep having to do this manually....So the question is there a way he can put in his URL path then the program will pick up all the folders and files inside that path and copy them to the C:\ drive. Thanks in advance for any help on this Paul Hartland paul.hartland at fsmail.net 07730 523179 From DWUTKA at marlow.com Thu Oct 12 09:48:31 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 12 Oct 2006 09:48:31 -0500 Subject: [AccessD] OT - URL & Visual Basic Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDD32@MARLOW_MAIN2.marlow.com> There is an API called 'URLDownloadToFile'. If he knows the folder/files, he can use that. Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, October 12, 2006 3:52 AM To: accessd Subject: [AccessD] OT - URL & Visual Basic Importance: High To all, I have been asked if the following is possibly, my friend has his own website and has something on there (haven't gone into this bit) that will leave a new folder or file on set days. He wants to get the new folder(s)/file(s) each day and back them up to his local drive (C:\), and he doesn't want to keep having to do this manually....So the question is there a way he can put in his URL path then the program will pick up all the folders and files inside that path and copy them to the C:\ drive. Thanks in advance for any help on this Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Oct 12 10:15:22 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 12 Oct 2006 17:15:22 +0200 Subject: [AccessD] OT - URL & Visual Basic Message-ID: Hi Paul If more than a couple of files, I would use FTP as he will have FTP access to his own site. If you look up the archive, several threads deal with how to achieve this. I can recommend to use the 3D-FTP engine which works extremely reliable: http://www.3dftp.com and the API guide: http://www.3dftp.com/api.htm As it runs multi-threaded uploads are very fast. Cost is about USD 40. /gustav >>> paul.hartland at fsmail.net 12-10-2006 10:51:46 >>> To all, I have been asked if the following is possibly, my friend has his own website and has something on there (haven't gone into this bit) that will leave a new folder or file on set days. He wants to get the new folder(s)/file(s) each day and back them up to his local drive (C:\), and he doesn't want to keep having to do this manually....So the question is there a way he can put in his URL path then the program will pick up all the folders and files inside that path and copy them to the C:\ drive. Thanks in advance for any help on this Paul Hartland paul.hartland at fsmail.net 07730 523179 From paul.hartland at fsmail.net Thu Oct 12 10:25:03 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 12 Oct 2006 17:25:03 +0200 (CEST) Subject: [AccessD] OT - URL & Visual Basic Message-ID: <6435387.1160666703218.JavaMail.www@wwinf3202> We already have the code to do that for a single folder/file is known, however we won't always know the name without going there (thus defeating the object of the exercise).... We need some sort of loop that will say something like for every URLFolder in www.mywebsite.co.uk/dev/ save the folder names into C:\MyBackup next URLFolder Then also loop through all the folders found and save the files into C:\MyBackup. Sorry for not being very clear but coming to the weekend and having a braindead moment..... Thanks once more for any help on this. Paul Hartland Message Received: Oct 12 2006, 03:54 PM From: DWUTKA at marlow.com To: accessd at databaseadvisors.com Cc: Subject: Re: [AccessD] OT - URL & Visual Basic There is an API called 'URLDownloadToFile'. If he knows the folder/files, he can use that. Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, October 12, 2006 3:52 AM To: accessd Subject: [AccessD] OT - URL & Visual Basic Importance: High To all, I have been asked if the following is possibly, my friend has his own website and has something on there (haven't gone into this bit) that will leave a new folder or file on set days. He wants to get the new folder(s)/file(s) each day and back them up to his local drive (C:\), and he doesn't want to keep having to do this manually....So the question is there a way he can put in his URL path then the program will pick up all the folders and files inside that path and copy them to the C:\ drive. Thanks in advance for any help on this Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From jwcolby at colbyconsulting.com Thu Oct 12 12:56:03 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 12 Oct 2006 13:56:03 -0400 Subject: [AccessD] OT - URL & Visual Basic In-Reply-To: Message-ID: <012101c6ee27$affe6d60$647aa8c0@m6805> I second the motion for 3DFTP. I use it for normal manual FTPs and it is very nice. BTW Gustav, thanks for the pointer to the API. I am about to launch into an "FTP in to retrieve files" and programming the interface is something I have to figure out. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, October 12, 2006 11:15 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT - URL & Visual Basic Hi Paul If more than a couple of files, I would use FTP as he will have FTP access to his own site. If you look up the archive, several threads deal with how to achieve this. I can recommend to use the 3D-FTP engine which works extremely reliable: http://www.3dftp.com and the API guide: http://www.3dftp.com/api.htm As it runs multi-threaded uploads are very fast. Cost is about USD 40. /gustav From dw-murphy at cox.net Thu Oct 12 13:45:22 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 12 Oct 2006 11:45:22 -0700 Subject: [AccessD] OT - URL & Visual Basic In-Reply-To: <012101c6ee27$affe6d60$647aa8c0@m6805> Message-ID: <002501c6ee2e$92a4ad90$0200a8c0@murphy3234aaf1> John, Don't know exactly what your requirements are but I use the FTP code that William Hindman has made available that uses the windows api and it works very reliably. See the archives. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, October 12, 2006 10:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT - URL & Visual Basic I second the motion for 3DFTP. I use it for normal manual FTPs and it is very nice. BTW Gustav, thanks for the pointer to the API. I am about to launch into an "FTP in to retrieve files" and programming the interface is something I have to figure out. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, October 12, 2006 11:15 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT - URL & Visual Basic Hi Paul If more than a couple of files, I would use FTP as he will have FTP access to his own site. If you look up the archive, several threads deal with how to achieve this. I can recommend to use the 3D-FTP engine which works extremely reliable: http://www.3dftp.com and the API guide: http://www.3dftp.com/api.htm As it runs multi-threaded uploads are very fast. Cost is about USD 40. /gustav -- 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 Oct 12 15:02:37 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Oct 2006 06:02:37 +1000 Subject: [AccessD] OT - URL & Visual Basic In-Reply-To: <6435387.1160666703218.JavaMail.www@wwinf3202> References: <6435387.1160666703218.JavaMail.www@wwinf3202> Message-ID: <452E9F5D.10107.F06FB83@stuart.lexacorp.com.pg> You could try Novell NetDrive. http://support.novell.com/servlet/filedownload/uns/pub/ndrv41862.exe It's a really neat utility. Designed priamrily to connect over the Internet to Novell servers, you can use it to connect to any FTP site. ONce connected, the site look just like a local disk drive. Then you can just use a batch file and XCopy etc. On 12 Oct 2006 at 17:25, paul.hartland at fsmail.net wrote: > We already have the code to do that for a single folder/file is known, > however we won't always know the name without going there (thus defeating > the object of the exercise).... We need some sort of loop that will say > something like for every URLFolder in www.mywebsite.co.uk/dev/ > save the folder names into C:\MyBackup > next URLFolder > > Then also loop through all the folders found and save the files into > C:\MyBackup. > > Sorry for not being very clear but coming to the weekend and having a > braindead moment..... > > > Thanks once more for any help on this. > > Paul Hartland > > > Message Received: Oct 12 2006, 03:54 PM > From: DWUTKA at marlow.com > To: accessd at databaseadvisors.com > Cc: > Subject: Re: [AccessD] OT - URL & Visual Basic > > There is an API called 'URLDownloadToFile'. If he knows the folder/files, he > can use that. > > Drew > > -----Original Message----- > From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] > Sent: Thursday, October 12, 2006 3:52 AM > To: accessd > Subject: [AccessD] OT - URL & Visual Basic > Importance: High > > > To all, > > I have been asked if the following is possibly, my friend has his own > website and has something on there (haven't gone into this bit) that will > leave a new folder or file on set days. He wants to get the new > folder(s)/file(s) each day and back them up to his local drive (C:\), and he > doesn't want to keep having to do this manually....So the question is there > a way he can put in his URL path then the program will pick up all the > folders and files inside that path and copy them to the C:\ drive. > > Thanks in advance for any help on this > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From martyconnelly at shaw.ca Thu Oct 12 22:00:40 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 12 Oct 2006 20:00:40 -0700 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? In-Reply-To: <20061010090733.72806.qmail@web31613.mail.mud.yahoo.com> References: <20061010090733.72806.qmail@web31613.mail.mud.yahoo.com> Message-ID: <452F0158.2000002@shaw.ca> You will have problems. You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. Installing SQL Express in crippled SQL 2000 compatibilty mode will allow this however. Essentially you will have to develop an ADP against SQL 2000 and then upgrade to SQL Express. Also SQL-DMO has changed to SQL-SMO. Sad Der wrote: >Hi group, > >we've just started a new project. We want to create an ADP. We've never done this using a SQL Server 2005 back-end. Are there any known issues/problems why we shouldn't do this? > >Regards, > >Sander > > > > > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Fri Oct 13 03:57:08 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 13 Oct 2006 10:57:08 +0200 Subject: [AccessD] OT - URL & Visual Basic Message-ID: Hi John You can display the interface of 3DFTP. It will show progress, threads, file names etc. /gustav >>> jwcolby at colbyconsulting.com 12-10-2006 19:56:03 >>> I second the motion for 3DFTP. I use it for normal manual FTPs and it is very nice. BTW Gustav, thanks for the pointer to the API. I am about to launch into an "FTP in to retrieve files" and programming the interface is something I have to figure out. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, October 12, 2006 11:15 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT - URL & Visual Basic Hi Paul If more than a couple of files, I would use FTP as he will have FTP access to his own site. If you look up the archive, several threads deal with how to achieve this. I can recommend to use the 3D-FTP engine which works extremely reliable: http://www.3dftp.com and the API guide: http://www.3dftp.com/api.htm As it runs multi-threaded uploads are very fast. Cost is about USD 40. /gustav From dwaters at usinternet.com Fri Oct 13 10:31:05 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 13 Oct 2006 10:31:05 -0500 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? In-Reply-To: <33081419.1160708800586.JavaMail.root@Sniper27> Message-ID: <002001c6eedc$9a1570b0$0200a8c0@danwaters> Hi Sander, You will be able to create an Access MDB with SQL Server 2005 Express. SQL Server Management Studio Express is a GUI for SQL Server 2005 Express. It has everything you need to manage the database objects. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, October 12, 2006 10:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? You will have problems. You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. Installing SQL Express in crippled SQL 2000 compatibilty mode will allow this however. Essentially you will have to develop an ADP against SQL 2000 and then upgrade to SQL Express. Also SQL-DMO has changed to SQL-SMO. Sad Der wrote: >Hi group, > >we've just started a new project. We want to create an ADP. We've never done this using a SQL Server 2005 back-end. Are there any known issues/problems why we shouldn't do this? > >Regards, > >Sander > > > > > > -- 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 mwp.reid at qub.ac.uk Fri Oct 13 10:37:39 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 13 Oct 2006 16:37:39 +0100 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? References: <002001c6eedc$9a1570b0$0200a8c0@danwaters> Message-ID: ADPs will function with SQL Server 2005. At least in Access 2007 they do. Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Dan Waters Sent: Fri 13/10/2006 16:31 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? Hi Sander, You will be able to create an Access MDB with SQL Server 2005 Express. SQL Server Management Studio Express is a GUI for SQL Server 2005 Express. It has everything you need to manage the database objects. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, October 12, 2006 10:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? You will have problems. You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. Installing SQL Express in crippled SQL 2000 compatibilty mode will allow this however. Essentially you will have to develop an ADP against SQL 2000 and then upgrade to SQL Express. Also SQL-DMO has changed to SQL-SMO. Sad Der wrote: >Hi group, > >we've just started a new project. We want to create an ADP. We've never done this using a SQL Server 2005 back-end. Are there any known issues/problems why we shouldn't do this? > >Regards, > >Sander > > > > > > -- 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 martyconnelly at shaw.ca Fri Oct 13 13:25:36 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 13 Oct 2006 11:25:36 -0700 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? In-Reply-To: References: <002001c6eedc$9a1570b0$0200a8c0@danwaters> Message-ID: <452FDA20.9030907@shaw.ca> I tried Access 2007 ADP Beta 1 against SQL Express months ago and it was a bit odd maybe there are fixes in Beta 2. You get error messages like MS Access is an earlier version prior to SQL server 2005 and it will not save the queries, if you use prior versions of Access ADP like 2003 against SQL 2005 See if using ADP version's prior to Access 2007 https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=732010&SiteID=1 I believe some SQL 2005 datatypes are only accessible from .accdb files like Complex data (multi-valued data types) The ADP architecture was designed to create client-server applications. Because of this, there is a limit to the number of records that Access returns in any recordset. This limit is configurable, but you may need to build a lot of filtering into your application to avoid hitting the limit. Martin Reid wrote: >ADPs will function with SQL Server 2005. At least in Access 2007 they do. > >Maritn > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Dan Waters >Sent: Fri 13/10/2006 16:31 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? > > > >Hi Sander, > >You will be able to create an Access MDB with SQL Server 2005 Express. SQL >Server Management Studio Express is a GUI for SQL Server 2005 Express. It >has everything you need to manage the database objects. > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, October 12, 2006 10:01 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? > >You will have problems. >You will not be able to use any of the designers with SQLS 2005 >databases, whether it's SQL Express or the Developer edition. IOW, >you won't be able to create databases, tables, views or any other >database objects from an ADP. Installing SQL Express in crippled >SQL 2000 compatibilty mode will allow this however. >Essentially you will have to develop an ADP against SQL 2000 >and then upgrade to SQL Express. > >Also SQL-DMO has changed to SQL-SMO. > > >Sad Der wrote: > > > >>Hi group, >> >>we've just started a new project. We want to create an ADP. We've never >> >> >done this using a SQL Server 2005 back-end. Are there any known >issues/problems why we shouldn't do this? > > >>Regards, >> >>Sander >> >> >> >> >> >> >> >> -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Fri Oct 13 14:01:26 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 13 Oct 2006 20:01:26 +0100 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? References: <002001c6eedc$9a1570b0$0200a8c0@danwaters> <452FDA20.9030907@shaw.ca> Message-ID: In A2007 they work fine. The complex types are a sharepoint feature and not available in any version of SQL Server AFAIK, You get a Csv string when you upsize. I actually wasnt aware of this Marty re earlier versions. I have been using 2007 without exception for a long time now with SQL Server 2005 and havnt touched it with an early version in some time. 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 MartyConnelly Sent: Fri 13/10/2006 19:25 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? I tried Access 2007 ADP Beta 1 against SQL Express months ago and it was a bit odd maybe there are fixes in Beta 2. You get error messages like MS Access is an earlier version prior to SQL server 2005 and it will not save the queries, if you use prior versions of Access ADP like 2003 against SQL 2005 See if using ADP version's prior to Access 2007 https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=732010&SiteID=1 I believe some SQL 2005 datatypes are only accessible from .accdb files like Complex data (multi-valued data types) The ADP architecture was designed to create client-server applications. Because of this, there is a limit to the number of records that Access returns in any recordset. This limit is configurable, but you may need to build a lot of filtering into your application to avoid hitting the limit. Martin Reid wrote: >ADPs will function with SQL Server 2005. At least in Access 2007 they do. > >Maritn > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Dan Waters >Sent: Fri 13/10/2006 16:31 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? > > > >Hi Sander, > >You will be able to create an Access MDB with SQL Server 2005 Express. SQL >Server Management Studio Express is a GUI for SQL Server 2005 Express. It >has everything you need to manage the database objects. > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, October 12, 2006 10:01 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? > >You will have problems. >You will not be able to use any of the designers with SQLS 2005 >databases, whether it's SQL Express or the Developer edition. IOW, >you won't be able to create databases, tables, views or any other >database objects from an ADP. Installing SQL Express in crippled >SQL 2000 compatibilty mode will allow this however. >Essentially you will have to develop an ADP against SQL 2000 >and then upgrade to SQL Express. > >Also SQL-DMO has changed to SQL-SMO. > > >Sad Der wrote: > > > >>Hi group, >> >>we've just started a new project. We want to create an ADP. We've never >> >> >done this using a SQL Server 2005 back-end. Are there any known >issues/problems why we shouldn't do this? > > >>Regards, >> >>Sander >> >> >> >> >> >> >> >> -- 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 ldoering at symphonyinfo.com Fri Oct 13 14:30:37 2006 From: ldoering at symphonyinfo.com (Liz Doering) Date: Fri, 13 Oct 2006 14:30:37 -0500 Subject: [AccessD] Silly Graphics References: <000001c6eede$9fd47850$4b4f5a46@Symphony.local> Message-ID: <02F5B8F3D893A845A3DF342F14D80F01066993@LAKATOS.Symphony.local> Dear List, I'm in the middle of the annual upgrade of a project for a long time client. He's "always" had a flock of the Access built-in bitmaps on his buttons, and he loves them dearly. This year we're adding a new button, which he really wants to have decorated with the camera. Here's the problem: no matter what I do to the button, the camera is very small, so small it looks exactly like a bat! This doesn't bother the client much, but it does bother me. Since it doesn't bother him, of course I can't go to a custom image, because that would require more installation, set up, etc, for his users, of which there are hundreds. Is there a quick way to make that Access camera image appear bigger? Thanks, Liz Doering Senior Developer Symphony Information Services www.symphonyinfo.com 763-391-7400 x802 From dmcafee at pacbell.net Fri Oct 13 14:35:14 2006 From: dmcafee at pacbell.net (David McAfee) Date: Fri, 13 Oct 2006 12:35:14 -0700 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? In-Reply-To: <452F0158.2000002@shaw.ca> Message-ID: Do you guys develop new BE stuff (Sprocs, views, tables) from the front end? I tend to do everything in the back end and just work on front end stuff in the front end. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Thursday, October 12, 2006 8:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? You will have problems. You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. Installing SQL Express in crippled SQL 2000 compatibilty mode will allow this however. Essentially you will have to develop an ADP against SQL 2000 and then upgrade to SQL Express. Also SQL-DMO has changed to SQL-SMO. Sad Der wrote: >Hi group, > >we've just started a new project. We want to create an ADP. We've never done this using a SQL Server 2005 back-end. Are there any known issues/problems why we shouldn't do this? > >Regards, > >Sander > > > > > > -- 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 mwp.reid at qub.ac.uk Fri Oct 13 14:42:52 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 13 Oct 2006 20:42:52 +0100 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? References: Message-ID: depends. I would do both. I usually would have an ADP to get at the graphical tools even if working in a linked app. Though with SQL Server 2005 this is really required anymore but I use it as a teaching tool as well. Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of David McAfee Sent: Fri 13/10/2006 20:35 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? Do you guys develop new BE stuff (Sprocs, views, tables) from the front end? I tend to do everything in the back end and just work on front end stuff in the front end. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Thursday, October 12, 2006 8:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? You will have problems. You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. Installing SQL Express in crippled SQL 2000 compatibilty mode will allow this however. Essentially you will have to develop an ADP against SQL 2000 and then upgrade to SQL Express. Also SQL-DMO has changed to SQL-SMO. Sad Der wrote: >Hi group, > >we've just started a new project. We want to create an ADP. We've never done this using a SQL Server 2005 back-end. Are there any known issues/problems why we shouldn't do this? > >Regards, > >Sander > > > > > > -- 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 Lambert.Heenan at aig.com Fri Oct 13 14:55:32 2006 From: Lambert.Heenan at aig.com (Heenan, Lambert) Date: Fri, 13 Oct 2006 14:55:32 -0500 Subject: [AccessD] Silly Graphics Message-ID: Liz, You can go ahead and design a bitmap (say 32 x 32 pixels) and save it as a BMP file. When you add it to the button, by browsing to the location you saved the BMP file to, access will load the bitmap and store the data "somewhere", so that when you then move the mdb, or the bmp file, the button will still have its new fancy image attached, as the bmp file itself is no longer needed. I have not tested this by moving the mdb to another machine with no access to the BMP file used to create the image. But it seems that the image might be getting stored in MSysAccessStorage as a Blob, in which case is *should* move with the MDB file. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Liz Doering Sent: Friday, October 13, 2006 3:31 PM To: Access Developers discussion and problem solving; Access Developers discussion and problem solving Subject: [AccessD] Silly Graphics Dear List, I'm in the middle of the annual upgrade of a project for a long time client. He's "always" had a flock of the Access built-in bitmaps on his buttons, and he loves them dearly. This year we're adding a new button, which he really wants to have decorated with the camera. Here's the problem: no matter what I do to the button, the camera is very small, so small it looks exactly like a bat! This doesn't bother the client much, but it does bother me. Since it doesn't bother him, of course I can't go to a custom image, because that would require more installation, set up, etc, for his users, of which there are hundreds. Is there a quick way to make that Access camera image appear bigger? Thanks, Liz Doering Senior Developer Symphony Information Services www.symphonyinfo.com 763-391-7400 x802 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Oct 13 15:43:18 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 13 Oct 2006 20:43:18 +0000 Subject: [AccessD] text to Chr() In-Reply-To: Message-ID: Hello All, Hope everyone will have a nice weekend. I need to take a very long string of characters (there in a memo field)...and break them into individual Chr() codes. For each character I need to create a row in a different table indicating what Chr() was used. Any ideas/suggestions to the best approach? Thanks, Mark A. Matte From ldoering at symphonyinfo.com Fri Oct 13 16:01:56 2006 From: ldoering at symphonyinfo.com (Liz Doering) Date: Fri, 13 Oct 2006 16:01:56 -0500 Subject: [AccessD] Silly Graphics References: <000001c6ef02$45354590$4b4f5a46@Symphony.local> Message-ID: <02F5B8F3D893A845A3DF342F14D80F01066994@LAKATOS.Symphony.local> Thanks, Lambert, I'll try that and let the client check it out. We can always stick with his 'bat' if necessary. Liz ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Heenan, Lambert Sent: Fri 10/13/2006 3:00 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Silly Graphics Liz, You can go ahead and design a bitmap (say 32 x 32 pixels) and save it as a BMP file. When you add it to the button, by browsing to the location you saved the BMP file to, access will load the bitmap and store the data "somewhere", so that when you then move the mdb, or the bmp file, the button will still have its new fancy image attached, as the bmp file itself is no longer needed. I have not tested this by moving the mdb to another machine with no access to the BMP file used to create the image. But it seems that the image might be getting stored in MSysAccessStorage as a Blob, in which case is *should* move with the MDB file. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Liz Doering Sent: Friday, October 13, 2006 3:31 PM To: Access Developers discussion and problem solving; Access Developers discussion and problem solving Subject: [AccessD] Silly Graphics Dear List, I'm in the middle of the annual upgrade of a project for a long time client. He's "always" had a flock of the Access built-in bitmaps on his buttons, and he loves them dearly. This year we're adding a new button, which he really wants to have decorated with the camera. Here's the problem: no matter what I do to the button, the camera is very small, so small it looks exactly like a bat! This doesn't bother the client much, but it does bother me. Since it doesn't bother him, of course I can't go to a custom image, because that would require more installation, set up, etc, for his users, of which there are hundreds. Is there a quick way to make that Access camera image appear bigger? Thanks, Liz Doering Senior Developer Symphony Information Services www.symphonyinfo.com 763-391-7400 x802 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri Oct 13 17:58:19 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 14 Oct 2006 08:58:19 +1000 Subject: [AccessD] Access 2000/ 2002 ADP with SQL SERVER 2005? In-Reply-To: References: <452F0158.2000002@shaw.ca>, Message-ID: <45301A0B.2423.323EDE8@stuart.lexacorp.com.pg> I use Enterprise Manager to do all the BE stuff. On 13 Oct 2006 at 12:35, David McAfee wrote: > Do you guys develop new BE stuff (Sprocs, views, tables) from the front end? > I tend to do everything in the back end and just work on front end stuff in > the front end. > > David > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly > Sent: Thursday, October 12, 2006 8:01 PM To: Access Developers discussion > and problem solving Subject: Re: [AccessD] Access 2000/ 2002 ADP with SQL > SERVER 2005? > > > You will have problems. > You will not be able to use any of the designers with SQLS 2005 > databases, whether it's SQL Express or the Developer edition. IOW, > you won't be able to create databases, tables, views or any other > database objects from an ADP. Installing SQL Express in crippled > SQL 2000 compatibilty mode will allow this however. > Essentially you will have to develop an ADP against SQL 2000 > and then upgrade to SQL Express. > > Also SQL-DMO has changed to SQL-SMO. > > > Sad Der wrote: > > >Hi group, > > > >we've just started a new project. We want to create an ADP. We've never > done this using a SQL Server 2005 back-end. Are there any known > issues/problems why we shouldn't do this? > > > >Regards, > > > >Sander > > > > > > > > > > > > > > -- > 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 -- Stuart From stuart at lexacorp.com.pg Fri Oct 13 18:05:29 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 14 Oct 2006 09:05:29 +1000 Subject: [AccessD] text to Chr() In-Reply-To: References: , Message-ID: <45301BB9.7417.32A7C02@stuart.lexacorp.com.pg> On 13 Oct 2006 at 20:43, Mark A Matte wrote: > Hello All, > > Hope everyone will have a nice weekend. > > I need to take a very long string of characters (there in a memo > field)...and break them into individual Chr() codes. For each character I > need to create a row in a different table indicating what Chr() was used. > Any ideas/suggestions to the best approach? I'd probably go with something along the lines of (aircode!): Function BuildData(InputString as String) Dim rs as DAO.Recordset DIm lngLoop as Long Set rs = CurrentDB.OpenRecordset("tblCharValues") With rs For lngLoop = 1 to Len(InputString) .Addnew !CharValue = Asc(Mid$(InputString,lngLoop,1)) .Update Next .Close End With Set rs = Nothing End Function-- Stuart From dwaters at usinternet.com Sat Oct 14 08:13:42 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 14 Oct 2006 08:13:42 -0500 Subject: [AccessD] Can't Find Admins Group Message-ID: <000001c6ef92$a5850620$0200a8c0@danwaters> Hello to All! I'm having trouble with this function. It errors out on line 10, telling me 'Item not found in this collection'. It can find the Admins group??? It's as if the workspace is wrong or doesn't exist somehow. Dim wrk As DAO.Workspace Dim grp As DAO.Group Dim usr As DAO.User Dim varUserName As Variant Set wrk = DBEngine.Workspaces(0) wrk.Users.Refresh wrk.Groups.Refresh 10 Set grp = wrk.Groups("Admins") AdminGroupMember = False For Each usr In grp.Users If CurrentUser = usr.Name Then AdminGroupMember = True Exit For End If Next usr Exit Function Thanks for any and all help! Dan Waters From dwaters at usinternet.com Sat Oct 14 09:40:08 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 14 Oct 2006 09:40:08 -0500 Subject: [AccessD] SOLVED - Can't Find Admins Group In-Reply-To: <29346846.1160836364767.JavaMail.root@sniper46> Message-ID: <000d01c6ef9e$a5dc3060$0200a8c0@danwaters> I was opening an instance of Access and not closing it prior to running the function below. :-( Dan Waters I like this list. Whenever I send a question, I think of the answer! ;-) -----Original Message----- Subject: [AccessD] Can't Find Admins Group Hello to All! I'm having trouble with this function. It errors out on line 10, telling me 'Item not found in this collection'. It can find the Admins group??? It's as if the workspace is wrong or doesn't exist somehow. Dim wrk As DAO.Workspace Dim grp As DAO.Group Dim usr As DAO.User Dim varUserName As Variant Set wrk = DBEngine.Workspaces(0) wrk.Users.Refresh wrk.Groups.Refresh 10 Set grp = wrk.Groups("Admins") AdminGroupMember = False For Each usr In grp.Users If CurrentUser = usr.Name Then AdminGroupMember = True Exit For End If Next usr Exit Function Thanks for any and all help! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Sat Oct 14 16:50:43 2006 From: john at winhaven.net (John Bartow) Date: Sat, 14 Oct 2006 16:50:43 -0500 Subject: [AccessD] SOLVED - Can't Find Admins Group In-Reply-To: <000d01c6ef9e$a5dc3060$0200a8c0@danwaters> Message-ID: <003e01c6efda$cdf23770$6401a8c0@ScuzzPaq> That's why I'm here. So you have someone to bounce questions off of until you figure things out yourself! ;o) Glad to be of service, John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters I was opening an instance of Access and not closing it prior to running the function below. :-( Dan Waters I like this list. Whenever I send a question, I think of the answer! ;-) From DElam at jenkens.com Sat Oct 14 18:34:34 2006 From: DElam at jenkens.com (Elam, Debbie) Date: Sat, 14 Oct 2006 18:34:34 -0500 Subject: [AccessD] Can't Find Admins Group Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DE779@natexch.jenkens.com> Perhaps "Admin" instead of "Admins"? I did not check to see if this B correct, but it was my first thought. Debbie -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Saturday, October 14, 2006 8:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Can't Find Admins Group Hello to All! I'm having trouble with this function. It errors out on line 10, telling me 'Item not found in this collection'. It can find the Admins group??? It's as if the workspace is wrong or doesn't exist somehow. Dim wrk As DAO.Workspace Dim grp As DAO.Group Dim usr As DAO.User Dim varUserName As Variant Set wrk = DBEngine.Workspaces(0) wrk.Users.Refresh wrk.Groups.Refresh 10 Set grp = wrk.Groups("Admins") AdminGroupMember = False For Each usr In grp.Users If CurrentUser = usr.Name Then AdminGroupMember = True Exit For End If Next usr Exit Function Thanks for any and all help! Dan Waters -- 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 bchacc at san.rr.com Sun Oct 15 09:36:39 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sun, 15 Oct 2006 07:36:39 -0700 Subject: [AccessD] Error List Message-ID: <006401c6f067$5390bcd0$6801a8c0@HAL9005> Dear List: Does anyone have a link to a good list of error codes and descriptions? Client is getting 2585 but the description is Chinese. Rocky From martyconnelly at shaw.ca Sun Oct 15 09:52:12 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 15 Oct 2006 07:52:12 -0700 Subject: [AccessD] Error List In-Reply-To: <006401c6f067$5390bcd0$6801a8c0@HAL9005> References: <006401c6f067$5390bcd0$6801a8c0@HAL9005> Message-ID: <45324B1C.2070807@shaw.ca> Here build your own ;) 'Determine the Error Codes Reserved by Microsoft Access and the Microsoft Jet Database Engine 'ErrorCode ErrorString '2585 This action can't be carried out while processing a form or report event. at A macro specified as the 'OnOpen, OnClose, OnFormat, OnRetreat, OnPage, or OnPrint property setting contains an invalid action ' for the property. at When you click OK, an Action Failed dialog box will display the name of the macro that failed and its arguments. at 1@611909 at 1 'See Also 'The following procedure creates a table containing many of the error codes and strings 'used or reserved by Microsoft Access and by the Microsoft Jet database engine. 'Not all error codes are included in the resulting table, 'as some exist outside the range of error codes evaluated by this procedure (0 to 4500). Function AccessAndJetErrorsTable() As Boolean Dim dbs As Database, tdf As TableDef, fld As Field Dim rst As Recordset, lngCode As Long Dim strAccessErr As String Const conAppObjectError = "Application-defined or object-defined error" On Error GoTo Error_AccessAndJetErrorsTable ' Create Errors table with ErrorNumber and ErrorDescription fields. Set dbs = CurrentDb Set tdf = dbs.CreateTableDef("AccessAndJetErrors") Set fld = tdf.CreateField("ErrorCode", dbLong) tdf.Fields.Append fld Set fld = tdf.CreateField("ErrorString", dbMemo) tdf.Fields.Append fld dbs.TableDefs.Append tdf ' Open recordset on Errors table. Set rst = dbs.OpenRecordset("AccessAndJetErrors") ' Loop through error codes. For lngCode = 0 To 9900 On Error Resume Next ' Raise each error. strAccessErr = AccessError(lngCode) DoCmd.Hourglass True ' Skip error numbers without associated strings. If strAccessErr <> "" Then ' Skip codes that generate application or object-defined errors. If strAccessErr <> conAppObjectError Then ' Add each error code and string to Errors table. rst.AddNew rst!ErrorCode = lngCode ' Append string to memo field. rst!ErrorString.AppendChunk strAccessErr rst.Update End If End If Next lngCode ' Close recordset. rst.Close DoCmd.Hourglass False RefreshDatabaseWindow MsgBox "Access and Jet errors table created." AccessAndJetErrorsTable = True Exit_AccessAndJetErrorsTable: Exit Function Error_AccessAndJetErrorsTable: MsgBox Err & ": " & Err.Description AccessAndJetErrorsTable = False Resume Exit_AccessAndJetErrorsTable End Function Beach Access Software wrote: >Dear List: > > > >Does anyone have a link to a good list of error codes and descriptions? > > > >Client is getting 2585 but the description is Chinese. > > > >Rocky > > > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Sun Oct 15 10:11:05 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Sun, 15 Oct 2006 08:11:05 -0700 Subject: [AccessD] Error List In-Reply-To: <45324B1C.2070807@shaw.ca> Message-ID: <006c01c6f06c$22e05820$6801a8c0@HAL9005> Marty: Thanks for the fast reply. Worked like a charm. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Sunday, October 15, 2006 7:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error List Here build your own ;) 'Determine the Error Codes Reserved by Microsoft Access and the Microsoft Jet Database Engine 'ErrorCode ErrorString '2585 This action can't be carried out while processing a form or report event. at A macro specified as the 'OnOpen, OnClose, OnFormat, OnRetreat, OnPage, or OnPrint property setting contains an invalid action ' for the property. at When you click OK, an Action Failed dialog box will display the name of the macro that failed and its arguments. at 1@611909 at 1 'See Also 'The following procedure creates a table containing many of the error codes and strings 'used or reserved by Microsoft Access and by the Microsoft Jet database engine. 'Not all error codes are included in the resulting table, 'as some exist outside the range of error codes evaluated by this procedure (0 to 4500). Function AccessAndJetErrorsTable() As Boolean Dim dbs As Database, tdf As TableDef, fld As Field Dim rst As Recordset, lngCode As Long Dim strAccessErr As String Const conAppObjectError = "Application-defined or object-defined error" On Error GoTo Error_AccessAndJetErrorsTable ' Create Errors table with ErrorNumber and ErrorDescription fields. Set dbs = CurrentDb Set tdf = dbs.CreateTableDef("AccessAndJetErrors") Set fld = tdf.CreateField("ErrorCode", dbLong) tdf.Fields.Append fld Set fld = tdf.CreateField("ErrorString", dbMemo) tdf.Fields.Append fld dbs.TableDefs.Append tdf ' Open recordset on Errors table. Set rst = dbs.OpenRecordset("AccessAndJetErrors") ' Loop through error codes. For lngCode = 0 To 9900 On Error Resume Next ' Raise each error. strAccessErr = AccessError(lngCode) DoCmd.Hourglass True ' Skip error numbers without associated strings. If strAccessErr <> "" Then ' Skip codes that generate application or object-defined errors. If strAccessErr <> conAppObjectError Then ' Add each error code and string to Errors table. rst.AddNew rst!ErrorCode = lngCode ' Append string to memo field. rst!ErrorString.AppendChunk strAccessErr rst.Update End If End If Next lngCode ' Close recordset. rst.Close DoCmd.Hourglass False RefreshDatabaseWindow MsgBox "Access and Jet errors table created." AccessAndJetErrorsTable = True Exit_AccessAndJetErrorsTable: Exit Function Error_AccessAndJetErrorsTable: MsgBox Err & ": " & Err.Description AccessAndJetErrorsTable = False Resume Exit_AccessAndJetErrorsTable End Function Beach Access Software wrote: >Dear List: > > > >Does anyone have a link to a good list of error codes and descriptions? > > > >Client is getting 2585 but the description is Chinese. > > > >Rocky > > > > > -- 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.408 / Virus Database: 268.13.4/476 - Release Date: 10/14/2006 From paul.hartland at fsmail.net Mon Oct 16 06:32:35 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Oct 2006 13:32:35 +0200 (CEST) Subject: [AccessD] OT - How Secure Is My Website Message-ID: <4722701.1160998355771.JavaMail.www@wwinf3103> To all, I have created a very simple website (basically a logon page and a welcome page for now), where the logon page is connected to a database (MS Access). Before I continue I want to know how long in would take a hacker to get my password if it is was to be attempted. Are there any hacking tools or scripts out there that I can point to my website, give it my administration username and get it to return the number of attempts it took to get my password and give my password a security rating (say from 1-10) ? Thanks for any help in advance on this. Paul Hartland Database Developer. From stuart at lexacorp.com.pg Mon Oct 16 08:48:28 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 16 Oct 2006 23:48:28 +1000 Subject: [AccessD] OT - How Secure Is My Website In-Reply-To: <4722701.1160998355771.JavaMail.www@wwinf3103> References: <4722701.1160998355771.JavaMail.www@wwinf3103> Message-ID: <45338DAC.31131.A438D5@stuart.lexacorp.com.pg> On 16 Oct 2006 at 13:32, paul.hartland at fsmail.net wrote: > I have created a very simple website (basically a logon page and a welcome > page for now), where the logon page is connected to a database (MS Access). > Before I continue I want to know how long in would take a hacker to get my > password if it is was to be attempted. Are there any hacking tools or > scripts out there that I can point to my website, give it my administration > username and get it to return the number of attempts it took to get my > password and give my password a security rating (say from 1-10) ? First thing to do is make sure that your administration username is also secure. You can find any number of password strength checkers on the web. Just google "password strength". -- Stuart From JRojas at tnco-inc.com Mon Oct 16 09:03:36 2006 From: JRojas at tnco-inc.com (Joe Rojas) Date: Mon, 16 Oct 2006 10:03:36 -0400 Subject: [AccessD] OT: Word - Bullets & Tables Message-ID: <758E92433C4F3740B67BE4DD369AF5772EDE3C@ex2k3.corp.tnco-inc.com> Hello, I can't seem to find the answer to this anywhere! [Word 2003] Normally when you are working with bullets you can press the tab key to create sub-bullets and you can press shift-tab to go back one level in you bullets. However, when working with bullets in the cell of a table, these keystrokes move you ahead or back one cell. Is there a way to use these keystrokes on a bullet list that is in a table cell? Thanks, Joe Rojas IT Manager TNCO, Inc. 781-447-6661 x7506 jrojas at tnco-inc.com From accessd at shaw.ca Mon Oct 16 09:35:48 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 16 Oct 2006 07:35:48 -0700 Subject: [AccessD] OT - How Secure Is My Website In-Reply-To: <45338DAC.31131.A438D5@stuart.lexacorp.com.pg> Message-ID: <0J7800E0WGIM4Q01@l-daemon> If anyone is concerned about password strength here is a good place to start: http://www.lockdown.co.uk/?pg=combi&s=articles. That is why it is so important to limit the number of access attempts before stopping the login process. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, October 16, 2006 6:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT - How Secure Is My Website On 16 Oct 2006 at 13:32, paul.hartland at fsmail.net wrote: > I have created a very simple website (basically a logon page and a welcome > page for now), where the logon page is connected to a database (MS Access). > Before I continue I want to know how long in would take a hacker to get my > password if it is was to be attempted. Are there any hacking tools or > scripts out there that I can point to my website, give it my administration > username and get it to return the number of attempts it took to get my > password and give my password a security rating (say from 1-10) ? First thing to do is make sure that your administration username is also secure. You can find any number of password strength checkers on the web. Just google "password strength". -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Mon Oct 16 10:06:28 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 16 Oct 2006 11:06:28 -0400 Subject: [AccessD] OT: Word - Bullets & Tables In-Reply-To: <758E92433C4F3740B67BE4DD369AF5772EDE3C@ex2k3.corp.tnco-inc.com> References: <758E92433C4F3740B67BE4DD369AF5772EDE3C@ex2k3.corp.tnco-inc.com> Message-ID: On 10/16/06, Joe Rojas wrote: > However, when working with bullets in the cell of a table, these > keystrokes move you ahead or back one cell. > > Is there a way to use these keystrokes on a bullet list that is in a > table cell? Try CTRL+TAB -- 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 JRojas at tnco-inc.com Mon Oct 16 11:05:59 2006 From: JRojas at tnco-inc.com (Joe Rojas) Date: Mon, 16 Oct 2006 12:05:59 -0400 Subject: [AccessD] OT: Word - Bullets & Tables Message-ID: <758E92433C4F3740B67BE4DD369AF5772EDE41@ex2k3.corp.tnco-inc.com> Thanks for the reply Bryan. I tried that and all it did was tab over, it didn't create a sub bullet. 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 Bryan Carbonnell Sent: Monday, October 16, 2006 11:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Word - Bullets & Tables On 10/16/06, Joe Rojas wrote: > However, when working with bullets in the cell of a table, these > keystrokes move you ahead or back one cell. > > Is there a way to use these keystrokes on a bullet list that is in a > table cell? Try CTRL+TAB -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Oct 16 11:06:50 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 16 Oct 2006 09:06:50 -0700 Subject: [AccessD] OT - How Secure Is My Website In-Reply-To: <4722701.1160998355771.JavaMail.www@wwinf3103> References: <4722701.1160998355771.JavaMail.www@wwinf3103> Message-ID: <4533AE1A.9010005@shaw.ca> You also have to protect against cross site scripting and sql injection especially on your logon form if verifying userid logon from a database table. You also want to place your access mdb outside of iwwwroot directory on IIS otherwise the mdb could be downloadable. paul.hartland at fsmail.net wrote: >To all, > >I have created a very simple website (basically a logon page and a welcome page for now), where the logon page is connected to a database (MS Access). Before I continue I want to know how long in would take a hacker to get my password if it is was to be attempted. Are there any hacking tools or scripts out there that I can point to my website, give it my administration username and get it to return the number of attempts it took to get my password and give my password a security rating (say from 1-10) ? > >Thanks for any help in advance on this. > >Paul Hartland >Database Developer. > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Mon Oct 16 11:43:45 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 16 Oct 2006 09:43:45 -0700 Subject: [AccessD] Office 2007 and OBA RAP In-Reply-To: <4533AE1A.9010005@shaw.ca> References: <4722701.1160998355771.JavaMail.www@wwinf3103> <4533AE1A.9010005@shaw.ca> Message-ID: <4533B6C1.7030709@shaw.ca> Microsoft has announced plans for a series of sample code packs called Office Business Applications Reference Application Packs (OBA RAPs), which show developers how to create new business applications using the Office 2007 interface. The OBAs will use Word, Excel and Outlook as the interfaces to back-end systems through Microsoft's SharePoint, InfoPath, Windows Server, SQL Server and Active Directory. OBA Reference Application Pack for Supply Chain Management Office Business Applications (OBAs), come with demo websites and site templates, reference documents, .NET code, Web services references, XML (define) and XSLT (define) files and scripts. You will need to have a beta 2 version of the 2007 Office System if you wish to deploy this. http://msdn.microsoft.com/architecture/office/oba/rap/scm/ -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Mon Oct 16 12:10:24 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 16 Oct 2006 10:10:24 -0700 Subject: [AccessD] DBA site is up again In-Reply-To: <4533B6C1.7030709@shaw.ca> Message-ID: <0J7800M7MNO9LQ80@l-daemon> Hi All: The DBA web site is back up and running. There were some issues with a new A record being changed and the DNS not being updated.... Bryan just noted that the appropriate change had been made. (www.databaseadvisors.com) Regards Jim From carbonnb at gmail.com Mon Oct 16 12:27:02 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 16 Oct 2006 13:27:02 -0400 Subject: [AccessD] OT: Word - Bullets & Tables In-Reply-To: <758E92433C4F3740B67BE4DD369AF5772EDE41@ex2k3.corp.tnco-inc.com> References: <758E92433C4F3740B67BE4DD369AF5772EDE41@ex2k3.corp.tnco-inc.com> Message-ID: On 10/16/06, Joe Rojas wrote: > Thanks for the reply Bryan. > > I tried that and all it did was tab over, it didn't create a sub bullet. Didn't work for me either :( This did, however: ALT+SHIFT+RIGHT ARROW -- 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 Patricia.O'Connor at otda.state.ny.us Mon Oct 16 15:10:23 2006 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Mon, 16 Oct 2006 16:10:23 -0400 Subject: [AccessD] OT: Word - Bullets & Tables In-Reply-To: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAC0E@EXCNYSM0A1AI.nysemail.nyenet> The alt-shift-right arrow and alt-shift-left arrow will increase or decrease Most of the time I use the toolbar formatting increase/decrease indent You can also right click to get increase or decrease indent which then does the shifting. There are a few things in word 2003 which are different than 2k and make things harder. I can't stand the way it handles formatting with its styles and formatting. I have a large outline type document that is years old. If the 1st 3-4 characters of the line is different than the previous line it makes a new formatting style which messes up what I actually wanted and I need to fix again and again. Good luck Patti ************************************************** * Patricia O'Connor * Associate Computer Programmer Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (w) mailto:aa1160 at nysemail.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. -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bryan Carbonnell > Sent: Monday, October 16, 2006 11:06 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Word - Bullets & Tables > > On 10/16/06, Joe Rojas wrote: > > > However, when working with bullets in the cell of a table, these > > keystrokes move you ahead or back one cell. > > > > Is there a way to use these keystrokes on a bullet list > that is in a From mwp.reid at qub.ac.uk Mon Oct 16 15:38:32 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 16 Oct 2006 21:38:32 +0100 Subject: [AccessD] Load fromtext References: <002001c6ed73$f9296760$6401a8c0@nant> Message-ID: anyone see anyhting wrong with this. Keeps erroring out at the Case Form. Here is a form name Form_Customer Orders Subform.txt Public Sub loadup() On Error GoTo Err_loadup Dim strTemp As String strTemp = Dir("C:\Forms\*.txt") Do Until strTemp = "" Select Case UCase(Left(strTemp, 4)) Case "FORM" Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp Case "REPO" Application.LoadFromText acReport, "test", "C:\Forms\" & strTemp End Select strTemp = Dir Loop Exit_loadup: Exit Sub Err_loadup: MsgBox Err.Description, Err.Number Resume Exit_loadup Resume 0 '.FOR TROUBLESHOOTING End Sub Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From bchacc at san.rr.com Mon Oct 16 17:22:03 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 16 Oct 2006 15:22:03 -0700 Subject: [AccessD] Load fromtext In-Reply-To: Message-ID: <00ae01c6f171$821042a0$6801a8c0@HAL9005> What error? What's in strTemp at that moment? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Monday, October 16, 2006 1:39 PM To: Access Developers discussion and problem solving Subject: [AccessD] Load fromtext anyone see anyhting wrong with this. Keeps erroring out at the Case Form. Here is a form name Form_Customer Orders Subform.txt Public Sub loadup() On Error GoTo Err_loadup Dim strTemp As String strTemp = Dir("C:\Forms\*.txt") Do Until strTemp = "" Select Case UCase(Left(strTemp, 4)) Case "FORM" Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp Case "REPO" Application.LoadFromText acReport, "test", "C:\Forms\" & strTemp End Select strTemp = Dir Loop Exit_loadup: Exit Sub Err_loadup: MsgBox Err.Description, Err.Number Resume Exit_loadup Resume 0 '.FOR TROUBLESHOOTING End Sub Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date: 10/14/2006 From martyconnelly at shaw.ca Mon Oct 16 21:00:48 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 16 Oct 2006 19:00:48 -0700 Subject: [AccessD] Load fromtext In-Reply-To: References: <002001c6ed73$f9296760$6401a8c0@nant> Message-ID: <45343950.90502@shaw.ca> assuming a file name is "test1_MFormName.txt" and you want to strip out the Access Form name MFormname Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1) Your function is returning the file extension as well "MFormName.txt" Add a function like this to remove any extension I 'll let you work it out for InStrRev which is easier Function fURLWithoutExtension(strFile As String) As String 'return filename minus extension Dim j As Long Dim strURL 'could use InStrRev but not available in 97 strURL = fstrReverse(strFile) 'Find the url name without extension 'Find the first occurance of the '.' in the FileName string j = InStr(1, strURL, ".", vbTextCompare) If j = 0 Then 'URL name does not contain a '.' character fURLWithoutExtension = strURL Else 'URL name does contain the '.' character fURLWithoutExtension = Right$(strURL, Len(strURL) - j) End If 'switch reverse back fURLWithoutExtension = fstrReverse(fURLWithoutExtension) End Function Function fstrReverse(strInput As String) As String ' REVERSES A STRING, SPACES & ALL for Access 97 Dim i As Integer For i = Len(strInput) To 1 Step -1 fstrReverse = fstrReverse & Mid(strInput, i, 1) Next i End Function Martin Reid wrote: >anyone see anyhting wrong with this. Keeps erroring out at the Case Form. > >Here is a form name Form_Customer Orders Subform.txt > >Public Sub loadup() >On Error GoTo Err_loadup >Dim strTemp As String >strTemp = Dir("C:\Forms\*.txt") >Do Until strTemp = "" > Select Case UCase(Left(strTemp, 4)) > Case "FORM" > Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp > Case "REPO" > Application.LoadFromText acReport, "test", "C:\Forms\" & strTemp > End Select > strTemp = Dir >Loop >Exit_loadup: >Exit Sub >Err_loadup: > MsgBox Err.Description, Err.Number > Resume Exit_loadup > Resume 0 '.FOR TROUBLESHOOTING >End Sub > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date: 14/10/2006 > > -- Marty Connelly Victoria, B.C. Canada From darrend at nimble.com.au Mon Oct 16 22:01:00 2006 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 17 Oct 2006 13:01:00 +1000 Subject: [AccessD] OT: Microsoft Subscription Partnerships Message-ID: <20061017030101.EADU11279.omta04sl.mx.bigpond.com@DENZILLAP> Hi All I posted a request a while ago and got no takers - will try again A while back someone from the list was extolling the virtues of a subscription pack with Microsoft - X amount of CDs full of MS stuff for a yearly subscription fee Can't find remember who - Was it JC or William? Anyway - My company wants to know all they can about it to see if it's worth pursuing Anyone remember the POST and or links? Many thanks in advance Darren From bill_Patten at earthlink.net Mon Oct 16 22:26:28 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Mon, 16 Oct 2006 20:26:28 -0700 Subject: [AccessD] OT: Microsoft Subscription Partnerships References: <20061017030101.EADU11279.omta04sl.mx.bigpond.com@DENZILLAP> Message-ID: <008801c6f19c$090b8560$6401a8c0@BPCS> Hi Darren, Go to https://partner.microsoft.com/40014052 for details. I've been a member for 2 years now and find it well worth the money, just for the software. Bill ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Monday, October 16, 2006 8:01 PM Subject: [AccessD] OT: Microsoft Subscription Partnerships Hi All I posted a request a while ago and got no takers - will try again A while back someone from the list was extolling the virtues of a subscription pack with Microsoft - X amount of CDs full of MS stuff for a yearly subscription fee Can't find remember who - Was it JC or William? Anyway - My company wants to know all they can about it to see if it's worth pursuing Anyone remember the POST and or links? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Tue Oct 17 00:16:32 2006 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 17 Oct 2006 15:16:32 +1000 Subject: [AccessD] OT: Microsoft Subscription Partnerships In-Reply-To: <008801c6f19c$090b8560$6401a8c0@BPCS> Message-ID: <20061017051632.KZWL11279.omta04sl.mx.bigpond.com@DENZILLAP> Bill Brilliant - just what I was referring to Many many thanks Have a great day Darren ------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Patten Sent: Tuesday, 17 October 2006 1:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Microsoft Subscription Partnerships Hi Darren, Go to https://partner.microsoft.com/40014052 for details. I've been a member for 2 years now and find it well worth the money, just for the software. Bill ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Monday, October 16, 2006 8:01 PM Subject: [AccessD] OT: Microsoft Subscription Partnerships Hi All I posted a request a while ago and got no takers - will try again A while back someone from the list was extolling the virtues of a subscription pack with Microsoft - X amount of CDs full of MS stuff for a yearly subscription fee Can't find remember who - Was it JC or William? Anyway - My company wants to know all they can about it to see if it's worth pursuing Anyone remember the POST and or links? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Oct 17 03:08:24 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 17 Oct 2006 10:08:24 +0200 Subject: [AccessD] Office 2007 and OBA RAP Message-ID: Hi Marty Thanks! If not for you I would probably have missed that info. /gustav >>> martyconnelly at shaw.ca 16-10-2006 18:43:45 >>> Microsoft has announced plans for a series of sample code packs called Office Business Applications Reference Application Packs (OBA RAPs), which show developers how to create new business applications using the Office 2007 interface. The OBAs will use Word, Excel and Outlook as the interfaces to back-end systems through Microsoft's SharePoint, InfoPath, Windows Server, SQL Server and Active Directory. OBA Reference Application Pack for Supply Chain Management Office Business Applications (OBAs), come with demo websites and site templates, reference documents, .NET code, Web services references, XML (define) and XSLT (define) files and scripts. You will need to have a beta 2 version of the 2007 Office System if you wish to deploy this. http://msdn.microsoft.com/architecture/office/oba/rap/scm/ -- Marty Connelly Victoria, B.C. Canada From shamil at users.mns.ru Tue Oct 17 05:14:41 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 17 Oct 2006 14:14:41 +0400 Subject: [AccessD] Office 2007 and OBA RAP In-Reply-To: Message-ID: <005801c6f1d5$10aeff70$6401a8c0@nant> Hi Gustav, Do you plan to try this OBA RAPs installed? For one of the installation scenarios it requires a PC with 2GB RAM and: 1. Windows Server 2003 2. SQL Server 2005 Enterprise Edition SP1 3. WinFX runtime (http://www.microsoft.com/downloads/details.aspx?FamilyID=4a96661c-05fd-430c -bb52-2ba86f02f595&DisplayLang=en), 4. Visual Studio 2005 Professional, 5. Visual Studio Extensions for WinFX & WF 6. Microsoft Office SharePoint Server 2007 Enterprise Edition Beta 2 7. Microsoft Office 2007 Professional Edition Beta 2, 8. Microsoft Office InfoPath 2007 Beta 2, 9. Visual Studio Tools for Office "v3" June CTP -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 17, 2006 12:08 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Office 2007 and OBA RAP Hi Marty Thanks! If not for you I would probably have missed that info. /gustav >>> martyconnelly at shaw.ca 16-10-2006 18:43:45 >>> Microsoft has announced plans for a series of sample code packs called Office Business Applications Reference Application Packs (OBA RAPs), which show developers how to create new business applications using the Office 2007 interface. The OBAs will use Word, Excel and Outlook as the interfaces to back-end systems through Microsoft's SharePoint, InfoPath, Windows Server, SQL Server and Active Directory. OBA Reference Application Pack for Supply Chain Management Office Business Applications (OBAs), come with demo websites and site templates, reference documents, .NET code, Web services references, XML (define) and XSLT (define) files and scripts. You will need to have a beta 2 version of the 2007 Office System if you wish to deploy this. http://msdn.microsoft.com/architecture/office/oba/rap/scm/ -- 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 Tue Oct 17 05:34:57 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 17 Oct 2006 12:34:57 +0200 Subject: [AccessD] Office 2007 and OBA RAP Message-ID: Hi Shamil Not at the moment. I didn't study it, but thanks for the head up - it certainly represents some requirements ... I don't even have VS 2005 Pro, only the parts from the Action Pack and the free tools. /gustav >>> shamil at users.mns.ru 17-10-2006 12:14:41 >>> Hi Gustav, Do you plan to try this OBA RAPs installed? For one of the installation scenarios it requires a PC with 2GB RAM and: 1. Windows Server 2003 2. SQL Server 2005 Enterprise Edition SP1 3. WinFX runtime (http://www.microsoft.com/downloads/details.aspx?FamilyID=4a96661c-05fd-430c -bb52-2ba86f02f595&DisplayLang=en), 4. Visual Studio 2005 Professional, 5. Visual Studio Extensions for WinFX & WF 6. Microsoft Office SharePoint Server 2007 Enterprise Edition Beta 2 7. Microsoft Office 2007 Professional Edition Beta 2, 8. Microsoft Office InfoPath 2007 Beta 2, 9. Visual Studio Tools for Office "v3" June CTP -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 17, 2006 12:08 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Office 2007 and OBA RAP Hi Marty Thanks! If not for you I would probably have missed that info. /gustav >>> martyconnelly at shaw.ca 16-10-2006 18:43:45 >>> Microsoft has announced plans for a series of sample code packs called Office Business Applications Reference Application Packs (OBA RAPs), which show developers how to create new business applications using the Office 2007 interface. The OBAs will use Word, Excel and Outlook as the interfaces to back-end systems through Microsoft's SharePoint, InfoPath, Windows Server, SQL Server and Active Directory. OBA Reference Application Pack for Supply Chain Management Office Business Applications (OBAs), come with demo websites and site templates, reference documents, .NET code, Web services references, XML (define) and XSLT (define) files and scripts. You will need to have a beta 2 version of the 2007 Office System if you wish to deploy this. http://msdn.microsoft.com/architecture/office/oba/rap/scm/ -- Marty Connelly Victoria, B.C. Canada From jimdettman at verizon.net Tue Oct 17 07:26:18 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 17 Oct 2006 08:26:18 -0400 Subject: [AccessD] OT: Microsoft Subscription Partnerships In-Reply-To: <20061017030101.EADU11279.omta04sl.mx.bigpond.com@DENZILLAP> Message-ID: <0J7A0023B57URH12@vms048.mailsrvcs.net> Darren, Microsoft has several subscriptions: 1. MSDN - Three major different flavors depending on what you want to do with it. Geared towards developers. 2. Action Pack - Sales and marketing program - Sales and info tools for your sales force. 3. The new partner program and SBS (Small Business Specialist) - An umbrella program designed to showcase Microsoft Partners. They are pushing the last quite hard at the moment. Right now I'm on all three. Runs about $2500 a year. Is it worth it? Sometimes I wonder with the Action Pack. There is so much information, it's almost a full time job just to see what their shipping you. The MSDN subscription does come in handy, especially when I want to develop something in a technology or product area that I have not worked with before. I've tried getting going with the SBS, but time constraints keep me from finishing it. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, October 16, 2006 11:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Microsoft Subscription Partnerships Hi All I posted a request a while ago and got no takers - will try again A while back someone from the list was extolling the virtues of a subscription pack with Microsoft - X amount of CDs full of MS stuff for a yearly subscription fee Can't find remember who - Was it JC or William? Anyway - My company wants to know all they can about it to see if it's worth pursuing Anyone remember the POST and or links? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Tue Oct 17 10:17:19 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Tue, 17 Oct 2006 09:17:19 -0600 Subject: [AccessD] Errors when connecting to SQL 2005 as BE In-Reply-To: Message-ID: <96190DA9E0A10A4CB36E4B71367E55C14D1415@srcimail1.ds.doc.state.or.us> Hi All, I have just started to play with changing one of my Microsoft Access 2003 Projects so that it connects to our new SQL Server 2005. It connects fine to 2005 but when I attempt to design or change my exsisting views I get the following errors. Does anyone know what type of patches or software I need to install in order to make it work? I am currently running Office 2003 SP2. I went to the web site but I don't really see anything that helps. "Your version of Equipment Inventory doesn't support design changes with the version of Microsoft SQL Server Your Access project is connected to. See the Microsoft Office Update Web site for the latest information and downloads. Your design changes will not be saved." "You have connected to a version of SQL Server later than SQL Server 2000. The version of Visual Studio or Access that you are using was released before the version of SQL Server to which you are connected. For this reason, you might encounter problems. Please check with Microsoft to see if there is a service pack that you should apply to Visual Studio or Office in order to get support for the version of SQL Server to which you are connected. You can continue but any new object types might not be enumerated, and it will not be possible to save any objects or database diagrams that you create using the Visual Database Tools." TIA, Mike From cfoust at infostatsystems.com Tue Oct 17 12:03:44 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 17 Oct 2006 10:03:44 -0700 Subject: [AccessD] Errors when connecting to SQL 2005 as BE In-Reply-To: <96190DA9E0A10A4CB36E4B71367E55C14D1415@srcimail1.ds.doc.state.or.us> Message-ID: ADP, right? You can't use it to modify your views or create new views in SQL 2005. There have been a lot of discussions on this, which you can find in the archives. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Tuesday, October 17, 2006 8:17 AM To: Access Developers discussion and problem solving Subject: [AccessD] Errors when connecting to SQL 2005 as BE Hi All, I have just started to play with changing one of my Microsoft Access 2003 Projects so that it connects to our new SQL Server 2005. It connects fine to 2005 but when I attempt to design or change my exsisting views I get the following errors. Does anyone know what type of patches or software I need to install in order to make it work? I am currently running Office 2003 SP2. I went to the web site but I don't really see anything that helps. "Your version of Equipment Inventory doesn't support design changes with the version of Microsoft SQL Server Your Access project is connected to. See the Microsoft Office Update Web site for the latest information and downloads. Your design changes will not be saved." "You have connected to a version of SQL Server later than SQL Server 2000. The version of Visual Studio or Access that you are using was released before the version of SQL Server to which you are connected. For this reason, you might encounter problems. Please check with Microsoft to see if there is a service pack that you should apply to Visual Studio or Office in order to get support for the version of SQL Server to which you are connected. You can continue but any new object types might not be enumerated, and it will not be possible to save any objects or database diagrams that you create using the Visual Database Tools." TIA, Mike -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Oct 17 12:16:13 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 17 Oct 2006 10:16:13 -0700 Subject: [AccessD] Errors when connecting to SQL 2005 as BE In-Reply-To: <96190DA9E0A10A4CB36E4B71367E55C14D1415@srcimail1.ds.doc.state.or.us> References: <96190DA9E0A10A4CB36E4B71367E55C14D1415@srcimail1.ds.doc.state.or.us> Message-ID: <45350FDD.7070503@shaw.ca> I think you have 3 choices. 1. Create your ADP with Access 2007 2. Install SQL Server 2005 or SQL Express in SQL 2000 degraded mode and use Access 2003 ADP. You may not be able to run both normal version and degraded on the same server, I would have to check if this is now allowed. There were problems with SQL-SMO in beta's. 3. Use the new version of SQL Server 2005 EM to make design backend changes with Access 2003 ADP. If using SQL Express before you install the new EM SQL Server Management Studio Express, you must pre-install MSXML 6.0. The full install of SQL Server 2005 comes with it's own Management Studio. It might be easier to develop with Access 2003 against SQL 2000 and then upgrade your final backend to SQL 2005. I don't know the ramifications of doing this. To get a some of SQL 2005 newer innovations you may have to use accdb format which is the upgraded version of mdb. See for explanation and differences if using SQL Express with the Advanced Reporting Services etc. version. This site also has SQL BOL downloads. As well as latest SQL Express downloads. http://msdn.microsoft.com/vstudio/express/sql/download/ Gowey Mike W wrote: > > >Hi All, > >I have just started to play with changing one of my Microsoft Access >2003 Projects so that it connects to our new SQL Server 2005. It >connects fine to 2005 but when I attempt to design or change my >exsisting views I get the following errors. Does anyone know what type >of patches or software I need to install in order to make it work? I am >currently running Office 2003 SP2. I went to the web site but I don't >really see anything that helps. > >"Your version of Equipment Inventory doesn't support design changes with >the version of Microsoft SQL Server >Your Access project is connected to. See the Microsoft Office Update >Web site for the latest information and downloads. Your design changes >will not be saved." > >"You have connected to a version of SQL Server later than SQL Server >2000. The version of Visual Studio or Access that you are using was >released before the version of SQL Server to which you are connected. >For this reason, you might encounter problems. > >Please check with Microsoft to see if there is a service pack that you >should apply to Visual Studio or Office in order to get support for the >version of SQL Server to which you are connected. > >You can continue but any new object types might not be enumerated, and >it will not be possible to save any objects or database diagrams that >you create using the Visual Database Tools." > > >TIA, > >Mike > > -- Marty Connelly Victoria, B.C. Canada From Mike.W.Gowey at doc.state.or.us Tue Oct 17 14:11:59 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Tue, 17 Oct 2006 13:11:59 -0600 Subject: [AccessD] Errors when connecting to SQL 2005 as BE In-Reply-To: <45350FDD.7070503@shaw.ca> Message-ID: <96190DA9E0A10A4CB36E4B71367E55C14D1419@srcimail1.ds.doc.state.or.us> Thanks Marty I will go down this road and see what I can get done. At least I know what is happening. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, October 17, 2006 11:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Errors when connecting to SQL 2005 as BE I think you have 3 choices. 1. Create your ADP with Access 2007 2. Install SQL Server 2005 or SQL Express in SQL 2000 degraded mode and use Access 2003 ADP. You may not be able to run both normal version and degraded on the same server, I would have to check if this is now allowed. There were problems with SQL-SMO in beta's. 3. Use the new version of SQL Server 2005 EM to make design backend changes with Access 2003 ADP. If using SQL Express before you install the new EM SQL Server Management Studio Express, you must pre-install MSXML 6.0. The full install of SQL Server 2005 comes with it's own Management Studio. It might be easier to develop with Access 2003 against SQL 2000 and then upgrade your final backend to SQL 2005. I don't know the ramifications of doing this. To get a some of SQL 2005 newer innovations you may have to use accdb format which is the upgraded version of mdb. See for explanation and differences if using SQL Express with the Advanced Reporting Services etc. version. This site also has SQL BOL downloads. As well as latest SQL Express downloads. http://msdn.microsoft.com/vstudio/express/sql/download/ Gowey Mike W wrote: > > >Hi All, > >I have just started to play with changing one of my Microsoft Access >2003 Projects so that it connects to our new SQL Server 2005. It >connects fine to 2005 but when I attempt to design or change my >exsisting views I get the following errors. Does anyone know what type >of patches or software I need to install in order to make it work? I >am currently running Office 2003 SP2. I went to the web site but I >don't really see anything that helps. > >"Your version of Equipment Inventory doesn't support design changes >with the version of Microsoft SQL Server Your Access project is >connected to. See the Microsoft Office Update Web site for the latest >information and downloads. Your design changes will not be saved." > >"You have connected to a version of SQL Server later than SQL Server >2000. The version of Visual Studio or Access that you are using was >released before the version of SQL Server to which you are connected. >For this reason, you might encounter problems. > >Please check with Microsoft to see if there is a service pack that you >should apply to Visual Studio or Office in order to get support for the >version of SQL Server to which you are connected. > >You can continue but any new object types might not be enumerated, and >it will not be possible to save any objects or database diagrams that >you create using the Visual Database Tools." > > >TIA, > >Mike > > -- 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 dwaters at usinternet.com Tue Oct 17 21:22:26 2006 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 17 Oct 2006 21:22:26 -0500 Subject: [AccessD] Errors when connecting to SQL 2005 as BE In-Reply-To: <9843587.1161109782947.JavaMail.root@sniper33> Message-ID: <003a01c6f25c$41fc3ac0$0300a8c0@danwaters> Marty, What are your thoughts on using Access 2003 mdb as a FE, with SQL 2005 Server (Full or Express) as the BE, and SQL Server Management Studio (Full or Express) as the GUI for SQL? I have only worked with Management Studio (Express) a little, but it sure looks like a good tool for managing SQL Server. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, October 17, 2006 12:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Errors when connecting to SQL 2005 as BE I think you have 3 choices. 1. Create your ADP with Access 2007 2. Install SQL Server 2005 or SQL Express in SQL 2000 degraded mode and use Access 2003 ADP. You may not be able to run both normal version and degraded on the same server, I would have to check if this is now allowed. There were problems with SQL-SMO in beta's. 3. Use the new version of SQL Server 2005 EM to make design backend changes with Access 2003 ADP. If using SQL Express before you install the new EM SQL Server Management Studio Express, you must pre-install MSXML 6.0. The full install of SQL Server 2005 comes with it's own Management Studio. It might be easier to develop with Access 2003 against SQL 2000 and then upgrade your final backend to SQL 2005. I don't know the ramifications of doing this. To get a some of SQL 2005 newer innovations you may have to use accdb format which is the upgraded version of mdb. See for explanation and differences if using SQL Express with the Advanced Reporting Services etc. version. This site also has SQL BOL downloads. As well as latest SQL Express downloads. http://msdn.microsoft.com/vstudio/express/sql/download/ Gowey Mike W wrote: > > >Hi All, > >I have just started to play with changing one of my Microsoft Access >2003 Projects so that it connects to our new SQL Server 2005. It >connects fine to 2005 but when I attempt to design or change my >exsisting views I get the following errors. Does anyone know what type >of patches or software I need to install in order to make it work? I am >currently running Office 2003 SP2. I went to the web site but I don't >really see anything that helps. > >"Your version of Equipment Inventory doesn't support design changes with >the version of Microsoft SQL Server >Your Access project is connected to. See the Microsoft Office Update >Web site for the latest information and downloads. Your design changes >will not be saved." > >"You have connected to a version of SQL Server later than SQL Server >2000. The version of Visual Studio or Access that you are using was >released before the version of SQL Server to which you are connected. >For this reason, you might encounter problems. > >Please check with Microsoft to see if there is a service pack that you >should apply to Visual Studio or Office in order to get support for the >version of SQL Server to which you are connected. > >You can continue but any new object types might not be enumerated, and >it will not be possible to save any objects or database diagrams that >you create using the Visual Database Tools." > > >TIA, > >Mike > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Oct 18 06:51:46 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 18 Oct 2006 13:51:46 +0200 (CEST) Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Message-ID: <10468859.1161172306777.JavaMail.www@wwinf3003> To all, I have a little problem which I am sure this group can tell me the answer to....I have a datetime field in SQL Server 2000 I have an insert stored procedure which I pass the time to to put into the table, however it always puts the date in front of the time....I can input the time directly and no date gets put in front, I can also use a recordset with an update which works (but is slower)....Is there anyway I can insert a time into a datetime field in SQL Server 2000 without it putting the date in front using a stored procedure. Thanks in advance for any help on this as it's driving me nuts. Paul Hartland paul.hartland at fsmail.net 07730 523179 From Gustav at cactus.dk Wed Oct 18 07:42:01 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 18 Oct 2006 14:42:01 +0200 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Message-ID: Hi Paul So what does your stored procedure look like? Which date is stored with the time? Today's date? /gustav >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> To all, I have a little problem which I am sure this group can tell me the answer to....I have a datetime field in SQL Server 2000 I have an insert stored procedure which I pass the time to to put into the table, however it always puts the date in front of the time....I can input the time directly and no date gets put in front, I can also use a recordset with an update which works (but is slower)....Is there anyway I can insert a time into a datetime field in SQL Server 2000 without it putting the date in front using a stored procedure. Thanks in advance for any help on this as it's driving me nuts. Paul Hartland paul.hartland at fsmail.net 07730 523179 From ewaldt at gdls.com Wed Oct 18 08:43:31 2006 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Wed, 18 Oct 2006 09:43:31 -0400 Subject: [AccessD] Question about OCX files In-Reply-To: Message-ID: I placed a calendar control on a form as part of a database frontend I distribute to several in the company. One user had a problem with it. I was able to solve the problem, but would like to know more about why it occurred. When I checked the References window on her system, "Microsoft Calendar Control 10.0" was checked and fine. However, "Microsoft Windows Common Controls-2 6.0(SP3), although checked, was said to be missing (MSCOMCT2.OCX). I found it on my system and copied it to hers, and the problems is solved. Apparently the Calendar Control just contains the calendar itself, but the MSCOMCT2.OXC file is needed to do anything with it! Could someone explain this to me, please? TIA. Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. From paul.hartland at fsmail.net Wed Oct 18 09:00:17 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 18 Oct 2006 16:00:17 +0200 (CEST) Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Message-ID: <6645559.1161180017351.JavaMail.www@wwinf3002> Gustav, Here's a test one I have been playing with, can't get more simple really....Even tried using CONVERT in the stored procedure and Format from Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] (@TestTime_1 [datetime]) AS INSERT INTO [Genesis].[dbo].[timetable] ( [TestTime]) VALUES ( @TestTime_1) GO The date is always 01/01/1900 Paul Message Received: Oct 18 2006, 01:44 PM From: "Gustav Brock" To: accessd at databaseadvisors.com Cc: Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Hi Paul So what does your stored procedure look like? Which date is stored with the time? Today's date? /gustav >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> To all, I have a little problem which I am sure this group can tell me the answer to....I have a datetime field in SQL Server 2000 I have an insert stored procedure which I pass the time to to put into the table, however it always puts the date in front of the time....I can input the time directly and no date gets put in front, I can also use a recordset with an update which works (but is slower)....Is there anyway I can insert a time into a datetime field in SQL Server 2000 without it putting the date in front using a stored procedure. Thanks in advance for any help on this as it's driving me nuts. Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From cfoust at infostatsystems.com Wed Oct 18 09:59:33 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 18 Oct 2006 07:59:33 -0700 Subject: [AccessD] Updating DateTime Field IN SQL Server WithJust The Time In-Reply-To: <6645559.1161180017351.JavaMail.www@wwinf3002> Message-ID: I don't understand what purpose is served by inserting only a time. Without a date, the time is pretty meaningless. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Wednesday, October 18, 2006 7:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Updating DateTime Field IN SQL Server WithJust The Time Importance: High Gustav, Here's a test one I have been playing with, can't get more simple really....Even tried using CONVERT in the stored procedure and Format from Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] (@TestTime_1 [datetime]) AS INSERT INTO [Genesis].[dbo].[timetable] ( [TestTime]) VALUES ( @TestTime_1) GO The date is always 01/01/1900 Paul Message Received: Oct 18 2006, 01:44 PM From: "Gustav Brock" To: accessd at databaseadvisors.com Cc: Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Hi Paul So what does your stored procedure look like? Which date is stored with the time? Today's date? /gustav >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> To all, I have a little problem which I am sure this group can tell me the answer to....I have a datetime field in SQL Server 2000 I have an insert stored procedure which I pass the time to to put into the table, however it always puts the date in front of the time....I can input the time directly and no date gets put in front, I can also use a recordset with an update which works (but is slower)....Is there anyway I can insert a time into a datetime field in SQL Server 2000 without it putting the date in front using a stored procedure. Thanks in advance for any help on this as it's driving me nuts. Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at verizon.net Wed Oct 18 10:10:08 2006 From: mikedorism at verizon.net (Doris Manning) Date: Wed, 18 Oct 2006 11:10:08 -0400 Subject: [AccessD] Updating DateTime Field IN SQL Server WithJust The Time In-Reply-To: Message-ID: <000001c6f2c7$804ef630$2f01a8c0@Kermit> Charlotte, I agree with you 100%. Paul, the reason you are having problems is that SQL Server doesn't allow you to store just a time in a date/time field. If you don't provide the date portion, SQL Server will fill in that portion with 1/1/1900. Doris Manning -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, October 18, 2006 11:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Updating DateTime Field IN SQL Server WithJust The Time I don't understand what purpose is served by inserting only a time. Without a date, the time is pretty meaningless. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Wednesday, October 18, 2006 7:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Updating DateTime Field IN SQL Server WithJust The Time Importance: High Gustav, Here's a test one I have been playing with, can't get more simple really....Even tried using CONVERT in the stored procedure and Format from Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] (@TestTime_1 [datetime]) AS INSERT INTO [Genesis].[dbo].[timetable] ( [TestTime]) VALUES ( @TestTime_1) GO The date is always 01/01/1900 Paul Message Received: Oct 18 2006, 01:44 PM From: "Gustav Brock" To: accessd at databaseadvisors.com Cc: Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Hi Paul So what does your stored procedure look like? Which date is stored with the time? Today's date? /gustav >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> To all, I have a little problem which I am sure this group can tell me the answer to....I have a datetime field in SQL Server 2000 I have an insert stored procedure which I pass the time to to put into the table, however it always puts the date in front of the time....I can input the time directly and no date gets put in front, I can also use a recordset with an update which works (but is slower)....Is there anyway I can insert a time into a datetime field in SQL Server 2000 without it putting the date in front using a stored procedure. Thanks in advance for any help on this as it's driving me nuts. Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgoodhall at comcast.net Wed Oct 18 10:34:25 2006 From: sgoodhall at comcast.net (sgoodhall at comcast.net) Date: Wed, 18 Oct 2006 15:34:25 +0000 Subject: [AccessD] Updating DateTime Field IN SQL Server WithJust The Time Message-ID: <101820061534.2772.45364980000F19DD00000AD4220730079304040E080B0101099C@comcast.net> Agreed. More usefully, if you want to reference just the time portion of a stored datetime field, you can use the CONVERT function. Regards, Steve Goodhall -------------- Original message ---------------------- From: "Doris Manning" > Charlotte, I agree with you 100%. > > Paul, the reason you are having problems is that SQL Server doesn't allow > you to store just a time in a date/time field. If you don't provide the > date portion, SQL Server will fill in that portion with 1/1/1900. > > Doris Manning > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Wednesday, October 18, 2006 11:00 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Updating DateTime Field IN SQL Server WithJust The > Time > > I don't understand what purpose is served by inserting only a time. > Without a date, the time is pretty meaningless. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > paul.hartland at fsmail.net > Sent: Wednesday, October 18, 2006 7:00 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Updating DateTime Field IN SQL Server WithJust > The Time > Importance: High > > Gustav, > > Here's a test one I have been playing with, can't get more simple > really....Even tried using CONVERT in the stored procedure and Format > from Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] > (@TestTime_1 [datetime]) > AS INSERT INTO [Genesis].[dbo].[timetable] > ( [TestTime]) > > VALUES > ( @TestTime_1) > GO > > The date is always 01/01/1900 > > Paul > > > > > Message Received: Oct 18 2006, 01:44 PM > From: "Gustav Brock" > To: accessd at databaseadvisors.com > Cc: > Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just > The Time > > Hi Paul > > So what does your stored procedure look like? > Which date is stored with the time? Today's date? > > /gustav > > >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> > To all, > > I have a little problem which I am sure this group can tell me the > answer to....I have a datetime field in SQL Server 2000 I have an insert > stored procedure which I pass the time to to put into the table, however > it always puts the date in front of the time....I can input the time > directly and no date gets put in front, I can also use a recordset with > an update which works (but is slower)....Is there anyway I can insert a > time into a datetime field in SQL Server 2000 without it putting the > date in front using a stored procedure. > > Thanks in advance for any help on this as it's driving me nuts. > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Wed Oct 18 12:19:59 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 18 Oct 2006 10:19:59 -0700 Subject: [AccessD] Errors when connecting to SQL 2005 as BE In-Reply-To: <003a01c6f25c$41fc3ac0$0300a8c0@danwaters> References: <003a01c6f25c$41fc3ac0$0300a8c0@danwaters> Message-ID: <4536623F.2030806@shaw.ca> Well this is MS recommendation as they are talking about phasing out ADP's, whether this happens probably depends on customer clamour. It does require a bit more involved knowledge of SQL like ADO , roles and SP's, You will also probably have to understand the changes to SQL DMO and DTS packages in 2005. You will need your own development copy of SQL Server. Using an mdb will probably increase your development time. You might get away with doing the backend development in an Access 2007 ADP and then accessing through through a 2003 mdb. Haven't done it though. But it would give you two different perspectives. Dan Waters wrote: >Marty, > >What are your thoughts on using Access 2003 mdb as a FE, with SQL 2005 >Server (Full or Express) as the BE, and SQL Server Management Studio (Full >or Express) as the GUI for SQL? > >I have only worked with Management Studio (Express) a little, but it sure >looks like a good tool for managing SQL Server. > >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Tuesday, October 17, 2006 12:16 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Errors when connecting to SQL 2005 as BE > >I think you have 3 choices. > >1. Create your ADP with Access 2007 > >2. Install SQL Server 2005 or SQL Express in SQL 2000 degraded mode > and use Access 2003 ADP. You may not be able to run both normal version > and degraded on the same server, I would have to check if this is >now allowed. > There were problems with SQL-SMO in beta's. > >3. Use the new version of SQL Server 2005 EM to make design backend changes >with Access 2003 ADP. If using SQL Express before you install the new EM >SQL Server Management Studio Express, you must pre-install MSXML 6.0. >The full install of SQL Server 2005 comes with it's own Management Studio. > >It might be easier to develop with Access 2003 against SQL 2000 >and then upgrade your final backend to SQL 2005. I don't know >the ramifications of doing this. To get a some of SQL 2005 newer innovations >you may have to use accdb format which is the upgraded version of mdb. > >See for explanation and differences if using SQL Express with the Advanced >Reporting Services etc. version. This site also has SQL BOL downloads. As >well as latest SQL Express downloads. > >http://msdn.microsoft.com/vstudio/express/sql/download/ > >Gowey Mike W wrote: > > > >>Hi All, >> >>I have just started to play with changing one of my Microsoft Access >>2003 Projects so that it connects to our new SQL Server 2005. It >>connects fine to 2005 but when I attempt to design or change my >>exsisting views I get the following errors. Does anyone know what type >>of patches or software I need to install in order to make it work? I am >>currently running Office 2003 SP2. I went to the web site but I don't >>really see anything that helps. >> >>"Your version of Equipment Inventory doesn't support design changes with >>the version of Microsoft SQL Server >>Your Access project is connected to. See the Microsoft Office Update >>Web site for the latest information and downloads. Your design changes >>will not be saved." >> >>"You have connected to a version of SQL Server later than SQL Server >>2000. The version of Visual Studio or Access that you are using was >>released before the version of SQL Server to which you are connected. >>For this reason, you might encounter problems. >> >>Please check with Microsoft to see if there is a service pack that you >>should apply to Visual Studio or Office in order to get support for the >>version of SQL Server to which you are connected. >> >>You can continue but any new object types might not be enumerated, and >>it will not be possible to save any objects or database diagrams that >>you create using the Visual Database Tools." >> >> >>TIA, >> >>Mike >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Wed Oct 18 13:11:28 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 18 Oct 2006 19:11:28 +0100 Subject: [AccessD] Load from test AGAIN References: <20060621141056.92AA528FB9A@smtp.nildram.co.uk> Message-ID: Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From DWUTKA at marlow.com Wed Oct 18 13:21:04 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 18 Oct 2006 13:21:04 -0500 Subject: [AccessD] Load from test AGAIN Message-ID: <17724746D360394AA3BFE5B8D40A9C1B012781D9@MARLOW_MAIN2.marlow.com> Just a thought, have you tried a DoEvents after the LoadFromText in the loop? LoadFromText is going to go off and do it's own thing, if it does it in a different thread (which I have seen some Access processes do), then your code may be looping before it's ready to handle another one. DoEvents might let that process finish before it loops. Drew -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Wednesday, October 18, 2006 1:11 PM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From cfoust at infostatsystems.com Wed Oct 18 13:34:09 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 18 Oct 2006 11:34:09 -0700 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Wed Oct 18 13:34:29 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 18 Oct 2006 19:34:29 +0100 Subject: [AccessD] Load from test AGAIN References: <17724746D360394AA3BFE5B8D40A9C1B012781D9@MARLOW_MAIN2.marlow.com> Message-ID: No luck Martin its odd becasue if you run a simple application.loadfromtext it will bring the file in even with the txt extension. So I cant see why if you use a loop to grab them all it would fail. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of DWUTKA at marlow.com Sent: Wed 18/10/2006 19:21 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Load from test AGAIN Just a thought, have you tried a DoEvents after the LoadFromText in the loop? LoadFromText is going to go off and do it's own thing, if it does it in a different thread (which I have seen some Access processes do), then your code may be looping before it's ready to handle another one. DoEvents might let that process finish before it loops. Drew -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Wednesday, October 18, 2006 1:11 PM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 dwaters at usinternet.com Wed Oct 18 13:45:22 2006 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 18 Oct 2006 13:45:22 -0500 Subject: [AccessD] Errors when connecting to SQL 2005 as BE In-Reply-To: <17457947.1161192733030.JavaMail.root@sniper35> Message-ID: <000b01c6f2e5$9293a520$0200a8c0@danwaters> Thanks Marty! Dan Waters -----Original Message----- Subject: Re: [AccessD] Errors when connecting to SQL 2005 as BE Well this is MS recommendation as they are talking about phasing out ADP's, whether this happens probably depends on customer clamour. It does require a bit more involved knowledge of SQL like ADO , roles and SP's, You will also probably have to understand the changes to SQL DMO and DTS packages in 2005. You will need your own development copy of SQL Server. Using an mdb will probably increase your development time. You might get away with doing the backend development in an Access 2007 ADP and then accessing through through a 2003 mdb. Haven't done it though. But it would give you two different perspectives. Dan Waters wrote: >Marty, > >What are your thoughts on using Access 2003 mdb as a FE, with SQL 2005 >Server (Full or Express) as the BE, and SQL Server Management Studio (Full >or Express) as the GUI for SQL? > >I have only worked with Management Studio (Express) a little, but it sure >looks like a good tool for managing SQL Server. > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] Errors when connecting to SQL 2005 as BE > >I think you have 3 choices. > >1. Create your ADP with Access 2007 > >2. Install SQL Server 2005 or SQL Express in SQL 2000 degraded mode > and use Access 2003 ADP. You may not be able to run both normal version > and degraded on the same server, I would have to check if this is >now allowed. > There were problems with SQL-SMO in beta's. > >3. Use the new version of SQL Server 2005 EM to make design backend changes >with Access 2003 ADP. If using SQL Express before you install the new EM >SQL Server Management Studio Express, you must pre-install MSXML 6.0. >The full install of SQL Server 2005 comes with it's own Management Studio. > >It might be easier to develop with Access 2003 against SQL 2000 >and then upgrade your final backend to SQL 2005. I don't know >the ramifications of doing this. To get a some of SQL 2005 newer innovations >you may have to use accdb format which is the upgraded version of mdb. > >See for explanation and differences if using SQL Express with the Advanced >Reporting Services etc. version. This site also has SQL BOL downloads. As >well as latest SQL Express downloads. > >http://msdn.microsoft.com/vstudio/express/sql/download/ > >Gowey Mike W wrote: > > > >>Hi All, >> >>I have just started to play with changing one of my Microsoft Access >>2003 Projects so that it connects to our new SQL Server 2005. It >>connects fine to 2005 but when I attempt to design or change my >>exsisting views I get the following errors. Does anyone know what type >>of patches or software I need to install in order to make it work? I am >>currently running Office 2003 SP2. I went to the web site but I don't >>really see anything that helps. >> >>"Your version of Equipment Inventory doesn't support design changes with >>the version of Microsoft SQL Server >>Your Access project is connected to. See the Microsoft Office Update >>Web site for the latest information and downloads. Your design changes >>will not be saved." >> >>"You have connected to a version of SQL Server later than SQL Server >>2000. The version of Visual Studio or Access that you are using was >>released before the version of SQL Server to which you are connected. >>For this reason, you might encounter problems. >> >>Please check with Microsoft to see if there is a service pack that you >>should apply to Visual Studio or Office in order to get support for the >>version of SQL Server to which you are connected. >> >>You can continue but any new object types might not be enumerated, and >>it will not be possible to save any objects or database diagrams that >>you create using the Visual Database Tools." >> >> >>TIA, >> >>Mike >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Oct 18 13:43:40 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 18 Oct 2006 13:43:40 -0500 Subject: [AccessD] Load from test AGAIN Message-ID: <17724746D360394AA3BFE5B8D40A9C1B012781E9@MARLOW_MAIN2.marlow.com> Still could be a timing issue. About how long does it take for it to do it when you do just one? Put in a simple timer to 'pause' the loop a few seconds longer then it takes to run the process.... Drew -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Wednesday, October 18, 2006 1:34 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN No luck Martin its odd becasue if you run a simple application.loadfromtext it will bring the file in even with the txt extension. So I cant see why if you use a loop to grab them all it would fail. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of DWUTKA at marlow.com Sent: Wed 18/10/2006 19:21 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Load from test AGAIN Just a thought, have you tried a DoEvents after the LoadFromText in the loop? LoadFromText is going to go off and do it's own thing, if it does it in a different thread (which I have seen some Access processes do), then your code may be looping before it's ready to handle another one. DoEvents might let that process finish before it loops. Drew -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Wednesday, October 18, 2006 1:11 PM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 Gustav at cactus.dk Wed Oct 18 13:45:46 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 18 Oct 2006 20:45:46 +0200 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Message-ID: Hi Paul As already noted there is no such thing as a "time only" date/time value. Given no date, the date value of a date/time value equals 1899-12-30 which is numeric 0 and normally isn't displayed by Access. Why you get 1900-01-01 which is numeric 2, I don't know. Nothing strange about your SP as far as I can see, but at the moment I have no running SQL Server to test with. /gustav >>> paul.hartland at fsmail.net 18-10-2006 16:00:17 >>> Gustav, Here's a test one I have been playing with, can't get more simple really....Even tried using CONVERT in the stored procedure and Format from Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] (@TestTime_1 [datetime]) AS INSERT INTO [Genesis].[dbo].[timetable] ( [TestTime]) VALUES ( @TestTime_1) GO The date is always 01/01/1900 Paul Message Received: Oct 18 2006, 01:44 PM From: "Gustav Brock" To: accessd at databaseadvisors.com Cc: Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Hi Paul So what does your stored procedure look like? Which date is stored with the time? Today's date? /gustav >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> To all, I have a little problem which I am sure this group can tell me the answer to....I have a datetime field in SQL Server 2000 I have an insert stored procedure which I pass the time to to put into the table, however it always puts the date in front of the time....I can input the time directly and no date gets put in front, I can also use a recordset with an update which works (but is slower)....Is there anyway I can insert a time into a datetime field in SQL Server 2000 without it putting the date in front using a stored procedure. Thanks in advance for any help on this as it's driving me nuts. Paul Hartland paul.hartland at fsmail.net 07730 523179 From mwp.reid at qub.ac.uk Wed Oct 18 13:46:56 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 18 Oct 2006 19:46:56 +0100 Subject: [AccessD] Load from test AGAIN References: Message-ID: Its fails on this line Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp strTemp has the value Form_Customer Details.txt coming into the loop Never gets past this. The error is The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules I get the feeling the answer is staring me in the face here. If I do a simple application.LoadFromText then its not a problem. But if I have 500 objects I would like to automate the process and just grab them all. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust Sent: Wed 18/10/2006 19:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 Gustav at cactus.dk Wed Oct 18 13:53:20 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 18 Oct 2006 20:53:20 +0200 Subject: [AccessD] Load from test AGAIN Message-ID: Hi Martin You need to remove spaces from the object name. /gustav >>> mwp.reid at qub.ac.uk 18-10-2006 20:46:56 >>> The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules From bill_Patten at earthlink.net Wed Oct 18 14:06:36 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Wed, 18 Oct 2006 12:06:36 -0700 Subject: [AccessD] Load from test AGAIN References: Message-ID: <009401c6f2e8$894765d0$6401a8c0@BPCS> Hi Martin, Could the space between Customer and Details.txt be causing your problem? It used to in the old DOS days. Bill ----- Original Message ----- From: "Martin Reid" To: "Access Developers discussion and problem solving" Sent: Wednesday, October 18, 2006 11:46 AM Subject: Re: [AccessD] Load from test AGAIN Its fails on this line Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp strTemp has the value Form_Customer Details.txt coming into the loop Never gets past this. The error is The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules I get the feeling the answer is staring me in the face here. If I do a simple application.LoadFromText then its not a problem. But if I have 500 objects I would like to automate the process and just grab them all. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust Sent: Wed 18/10/2006 19:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 -------------------------------------------------------------------------------- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed Oct 18 14:08:02 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 18 Oct 2006 15:08:02 -0400 Subject: [AccessD] Load from test AGAIN In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E517EC@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D359DB@ADGSERVER> Martin, Could it be that you need to surround the whole file path+file name with quotes? There are spaces in your file name. Maybe: Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "'C:\forms\" & strTemp & "'" Just a WAG. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 2:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN Its fails on this line Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp strTemp has the value Form_Customer Details.txt coming into the loop Never gets past this. The error is The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules I get the feeling the answer is staring me in the face here. If I do a simple application.LoadFromText then its not a problem. But if I have 500 objects I would like to automate the process and just grab them all. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust Sent: Wed 18/10/2006 19:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Wed Oct 18 14:26:08 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 18 Oct 2006 20:26:08 +0100 Subject: [AccessD] Load from test AGAIN References: <916187228923D311A6FE00A0CC3FAA30D359DB@ADGSERVER> Message-ID: No joy folks. Did the quotes wrote a function that stripped the spaces and still errors. I am screwing up here somewhere. Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Bobby Heid Sent: Wed 18/10/2006 20:08 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Load from test AGAIN Martin, Could it be that you need to surround the whole file path+file name with quotes? There are spaces in your file name. Maybe: Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "'C:\forms\" & strTemp & "'" Just a WAG. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 2:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN Its fails on this line Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp strTemp has the value Form_Customer Details.txt coming into the loop Never gets past this. The error is The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules I get the feeling the answer is staring me in the face here. If I do a simple application.LoadFromText then its not a problem. But if I have 500 objects I would like to automate the process and just grab them all. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust Sent: Wed 18/10/2006 19:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 Wed Oct 18 14:33:36 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 18 Oct 2006 20:33:36 +0100 Subject: [AccessD] Load from test AGAIN References: Message-ID: Heres the save sub. Woudl someone mind giving this a go for me. Public Sub createtemplate() On Error GoTo Err_createtemplate Dim db As Database Dim doc As Document Dim conn As Container Dim strPath As String Set db = CurrentDb() strPath = "C:\forms\" 'Export othe forms Set conn = db.Containers("Forms") For Each doc In conn.Documents Application.SaveAsText acForm, doc.Name, strPath & "Form_" & doc.Name & ".txt" Next doc 'Export the Reports Set conn = db.Containers("Reports") For Each doc In conn.Documents Application.SaveAsText acReport, doc.Name, strPath & "Report_" & doc.Name & ".txt" Next doc Set conn = db.Containers("Modules") For Each doc In conn.Documents Application.SaveAsText acModule, doc.Name, strPath & "Module_" & doc.Name & ".txt" Next doc Set db = Nothing Set conn = Nothing Exit_createtemplate: Exit Sub Err_createtemplate: MsgBox Err.Number & " - " & Err.Description Resume Exit_createtemplate End Sub Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Gustav Brock Sent: Wed 18/10/2006 19:53 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Load from test AGAIN Hi Martin You need to remove spaces from the object name. /gustav >>> mwp.reid at qub.ac.uk 18-10-2006 20:46:56 >>> The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Oct 18 14:39:30 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 18 Oct 2006 15:39:30 -0400 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: <001801c6f2ed$227fa740$657aa8c0@m6805> Martin, did you remove the space from the file name ON THE DISK? It is not "FINDING" the file out on the disk. Don't you love it when people used forbidden characters in their object names? 8-( John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 3:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN No joy folks. Did the quotes wrote a function that stripped the spaces and still errors. I am screwing up here somewhere. Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Bobby Heid Sent: Wed 18/10/2006 20:08 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Load from test AGAIN Martin, Could it be that you need to surround the whole file path+file name with quotes? There are spaces in your file name. Maybe: Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "'C:\forms\" & strTemp & "'" Just a WAG. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 2:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN Its fails on this line Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp strTemp has the value Form_Customer Details.txt coming into the loop Never gets past this. The error is The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules I get the feeling the answer is staring me in the face here. If I do a simple application.LoadFromText then its not a problem. But if I have 500 objects I would like to automate the process and just grab them all. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust Sent: Wed 18/10/2006 19:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 markamatte at hotmail.com Wed Oct 18 14:46:40 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 18 Oct 2006 19:46:40 +0000 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: Martin, I'm stabbing at this...but I've done a lot automation and looping around importing files...granted I haven't ever used loadfromtext...but why is the object listed in your error different than the value of strTemp: strTemp="Form_Customer Details.txt " ErrorObject="Customer Details.txt" Is it not being passed correctly? Mark A. Matte >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Load from test AGAIN >Date: Wed, 18 Oct 2006 20:26:08 +0100 > >No joy folks. > >Did the quotes wrote a function that stripped the spaces and still errors. > >I am screwing up here somewhere. > >Maritn > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Bobby Heid >Sent: Wed 18/10/2006 20:08 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Load from test AGAIN > > > >Martin, > >Could it be that you need to surround the whole file path+file name with >quotes? There are spaces in your file name. > >Maybe: > Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", >vbTextCompare) + 1), "'C:\forms\" & strTemp & "'" > >Just a WAG. > >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Wednesday, October 18, 2006 2:47 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Load from test AGAIN > > >Its fails on this line > > Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", >vbTextCompare) + 1), "C:\forms\" & strTemp > >strTemp has the value Form_Customer Details.txt coming into the loop > > >Never gets past this. > >The error is > >The object name 'Customer Details.txt' does not follow Microsoft Access >object naming rules > >I get the feeling the answer is staring me in the face here. > >If I do a simple application.LoadFromText then its not a problem. > >But if I have 500 objects I would like to automate the process and just >grab >them all. > > > >Martin > > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust >Sent: Wed 18/10/2006 19:34 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Load from test AGAIN > > > >You don't give any specifics on where your problem occurs, Martin. Is >it in the file system object handling, the LoadFromText, or what? I've >usually had fewer problems with any kind of iterative operation on files >when I created an array of the filenames (with or without extensions) to >be retrieved using Dir or file system object and then passed that into a >routine to do the actual handling, with some kind of test in place to >see if one item has succeeded before passing in another item. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Wednesday, October 18, 2006 11:11 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Load from test AGAIN > >Ok this has me beat > >No matter what I try I cant get it to loop through a folder and import >the exported text files. Tried Martys stuff, Drews stuff and my own. >Used file system object to return only the file name without the >extension and no luck. > >Any help greatly appreciated. > >background > >Access database objects exported as text files into C\|Forms > >I think need to LoadFromText all the objects in said folder back into >database. > >This cannot be as difficult as it seems. One at a time and naming the >files it works. Only when I go to look through all the objects does it >fail. This is almost my last example file I need and its melting my >head. > > >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 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ From James at fcidms.com Wed Oct 18 14:55:47 2006 From: James at fcidms.com (James Barash) Date: Wed, 18 Oct 2006 15:55:47 -0400 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: <00a001c6f2ef$67f89e10$800101df@fci.local> Martin: I think your problem is the name of the Object you are trying to create. >From the code below, you are trying to create an object called "Customer Details.txt". You need to strip the .txt from the strTemp. Something like: Application.LoadFromText acForm, Left(Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), Len(Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1)) - 4), "C:\" & strTemp I would still strip out the spaces in the Object name but the above code should work correctly. Hope that helps. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 3:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN No joy folks. Did the quotes wrote a function that stripped the spaces and still errors. I am screwing up here somewhere. Maritn Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Bobby Heid Sent: Wed 18/10/2006 20:08 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Load from test AGAIN Martin, Could it be that you need to surround the whole file path+file name with quotes? There are spaces in your file name. Maybe: Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "'C:\forms\" & strTemp & "'" Just a WAG. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 2:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN Its fails on this line Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp strTemp has the value Form_Customer Details.txt coming into the loop Never gets past this. The error is The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules I get the feeling the answer is staring me in the face here. If I do a simple application.LoadFromText then its not a problem. But if I have 500 objects I would like to automate the process and just grab them all. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust Sent: Wed 18/10/2006 19:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 Wed Oct 18 15:04:10 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 18 Oct 2006 21:04:10 +0100 Subject: [AccessD] Load from test AGAIN References: Message-ID: Mark/John Yeah I was wondering that as I was typing and I cant see why. I check each time strtemp always has the correct value. the underscore was me (<: I have removed it and removed all spaces. When I trace the calls the file name is OK other than back to the first issue of the file extension .txt on the end. But the name is OK now in the error message BUT it includes the file extension. I am thinking back to martys post re stripping the txt extension. I juts cant think of anything else that would cause this. Hes the error log from inside Access Microsoft Office Access encountered an error while importing the object 'YourFormName'. Error encountered at line 781. Expected: 'End'. Found: =. Means nothing to me but there you go! But could this be an internal Access error???? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Mark A Matte Sent: Wed 18/10/2006 20:46 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Load from test AGAIN Martin, I'm stabbing at this...but I've done a lot automation and looping around importing files...granted I haven't ever used loadfromtext...but why is the object listed in your error different than the value of strTemp: strTemp="Form_Customer Details.txt " ErrorObject="Customer Details.txt" Is it not being passed correctly? Mark A. Matte >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Load from test AGAIN >Date: Wed, 18 Oct 2006 20:26:08 +0100 > >No joy folks. > >Did the quotes wrote a function that stripped the spaces and still errors. > >I am screwing up here somewhere. > >Maritn > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Bobby Heid >Sent: Wed 18/10/2006 20:08 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Load from test AGAIN > > > >Martin, > >Could it be that you need to surround the whole file path+file name with >quotes? There are spaces in your file name. > >Maybe: > Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", >vbTextCompare) + 1), "'C:\forms\" & strTemp & "'" > >Just a WAG. > >Bobby > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Wednesday, October 18, 2006 2:47 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Load from test AGAIN > > >Its fails on this line > > Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", >vbTextCompare) + 1), "C:\forms\" & strTemp > >strTemp has the value Form_Customer Details.txt coming into the loop > > >Never gets past this. > >The error is > >The object name 'Customer Details.txt' does not follow Microsoft Access >object naming rules > >I get the feeling the answer is staring me in the face here. > >If I do a simple application.LoadFromText then its not a problem. > >But if I have 500 objects I would like to automate the process and just >grab >them all. > > > >Martin > > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust >Sent: Wed 18/10/2006 19:34 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Load from test AGAIN > > > >You don't give any specifics on where your problem occurs, Martin. Is >it in the file system object handling, the LoadFromText, or what? I've >usually had fewer problems with any kind of iterative operation on files >when I created an array of the filenames (with or without extensions) to >be retrieved using Dir or file system object and then passed that into a >routine to do the actual handling, with some kind of test in place to >see if one item has succeeded before passing in another item. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid >Sent: Wednesday, October 18, 2006 11:11 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Load from test AGAIN > >Ok this has me beat > >No matter what I try I cant get it to loop through a folder and import >the exported text files. Tried Martys stuff, Drews stuff and my own. >Used file system object to return only the file name without the >extension and no luck. > >Any help greatly appreciated. > >background > >Access database objects exported as text files into C\|Forms > >I think need to LoadFromText all the objects in said folder back into >database. > >This cannot be as difficult as it seems. One at a time and naming the >files it works. Only when I go to look through all the objects does it >fail. This is almost my last example file I need and its melting my >head. > > >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 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Oct 18 15:12:59 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 18 Oct 2006 20:12:59 +0000 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: How about!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Your were trying to name wiht the .txt Worked for me...hope it works for you. Mark A. Matte Public Sub ImpFromText() Dim strTemp As String Dim path As String path = "c:\temp\test\Form*.*" strTemp = Dir(path) Do While strTemp <> "" Dim test test = Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1) Dim test2 test2 = Left(test, InStr(1, test, ".", vbTextCompare) - 1) Application.LoadFromText acForm, test2, "C:\temp\test\" & strTemp strTemp = Dir Loop End Sub >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Load from test AGAIN >Date: Wed, 18 Oct 2006 21:04:10 +0100 > >Mark/John > >Yeah I was wondering that as I was typing and I cant see why. I check each >time strtemp always has the correct value. > >the underscore was me (<: I have removed it and removed all spaces. When I >trace the calls the file name is OK other than back to the first issue of >the file extension .txt on the end. > >But the name is OK now in the error message BUT it includes the file >extension. I am thinking back to martys post re stripping the txt >extension. I juts cant think of anything else that would cause this. > >Hes the error log from inside Access > >Microsoft Office Access encountered an error while importing the object >'YourFormName'. >Error encountered at line 781. >Expected: 'End'. Found: =. > >Means nothing to me but there you go! But could this be an internal Access >error???? > > >Martin > > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Mark A Matte >Sent: Wed 18/10/2006 20:46 >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Load from test AGAIN > > > >Martin, > >I'm stabbing at this...but I've done a lot automation and looping around >importing files...granted I haven't ever used loadfromtext...but why is the >object listed in your error different than the value of strTemp: >strTemp="Form_Customer Details.txt " >ErrorObject="Customer Details.txt" > >Is it not being passed correctly? > >Mark A. Matte > > > >From: "Martin Reid" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: Re: [AccessD] Load from test AGAIN > >Date: Wed, 18 Oct 2006 20:26:08 +0100 > > > >No joy folks. > > > >Did the quotes wrote a function that stripped the spaces and still >errors. > > > >I am screwing up here somewhere. > > > >Maritn > > > >Martin WP Reid > >Training and Assessment Unit > >Riddle Hall > >Belfast > > > >tel: 02890 974477 > > > > > >________________________________ > > > >From: accessd-bounces at databaseadvisors.com on behalf of Bobby Heid > >Sent: Wed 18/10/2006 20:08 > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] Load from test AGAIN > > > > > > > >Martin, > > > >Could it be that you need to surround the whole file path+file name with > >quotes? There are spaces in your file name. > > > >Maybe: > > Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", > >vbTextCompare) + 1), "'C:\forms\" & strTemp & "'" > > > >Just a WAG. > > > >Bobby > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > >Sent: Wednesday, October 18, 2006 2:47 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Load from test AGAIN > > > > > >Its fails on this line > > > > Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", > >vbTextCompare) + 1), "C:\forms\" & strTemp > > > >strTemp has the value Form_Customer Details.txt coming into the loop > > > > > >Never gets past this. > > > >The error is > > > >The object name 'Customer Details.txt' does not follow Microsoft Access > >object naming rules > > > >I get the feeling the answer is staring me in the face here. > > > >If I do a simple application.LoadFromText then its not a problem. > > > >But if I have 500 objects I would like to automate the process and just > >grab > >them all. > > > > > > > >Martin > > > > > > > > > >Martin WP Reid > >Training and Assessment Unit > >Riddle Hall > >Belfast > > > >tel: 02890 974477 > > > > > >________________________________ > > > >From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust > >Sent: Wed 18/10/2006 19:34 > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Load from test AGAIN > > > > > > > >You don't give any specifics on where your problem occurs, Martin. Is > >it in the file system object handling, the LoadFromText, or what? I've > >usually had fewer problems with any kind of iterative operation on files > >when I created an array of the filenames (with or without extensions) to > >be retrieved using Dir or file system object and then passed that into a > >routine to do the actual handling, with some kind of test in place to > >see if one item has succeeded before passing in another item. > > > >Charlotte Foust > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > >Sent: Wednesday, October 18, 2006 11:11 AM > >To: Access Developers discussion and problem solving > >Subject: [AccessD] Load from test AGAIN > > > >Ok this has me beat > > > >No matter what I try I cant get it to loop through a folder and import > >the exported text files. Tried Martys stuff, Drews stuff and my own. > >Used file system object to return only the file name without the > >extension and no luck. > > > >Any help greatly appreciated. > > > >background > > > >Access database objects exported as text files into C\|Forms > > > >I think need to LoadFromText all the objects in said folder back into > >database. > > > >This cannot be as difficult as it seems. One at a time and naming the > >files it works. Only when I go to look through all the objects does it > >fail. This is almost my last example file I need and its melting my > >head. > > > > > >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 > > > > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >_________________________________________________________________ >Get FREE company branded e-mail accounts and business Web site from >Microsoft Office Live >http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Find a local pizza place, music store, museum and more?then map the best route! http://local.live.com?FORM=MGA001 From accessd at shaw.ca Wed Oct 18 15:22:54 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 18 Oct 2006 13:22:54 -0700 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: <0J7C000RGLX4DWJ1@l-daemon> Hi Martin: I concur with Drew on this... place a DoEvent that holds the event from processing until the LoadFromText has finished processing. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:34 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN No luck Martin its odd becasue if you run a simple application.loadfromtext it will bring the file in even with the txt extension. So I cant see why if you use a loop to grab them all it would fail. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of DWUTKA at marlow.com Sent: Wed 18/10/2006 19:21 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Load from test AGAIN Just a thought, have you tried a DoEvents after the LoadFromText in the loop? LoadFromText is going to go off and do it's own thing, if it does it in a different thread (which I have seen some Access processes do), then your code may be looping before it's ready to handle another one. DoEvents might let that process finish before it loops. Drew -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Wednesday, October 18, 2006 1:11 PM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 accessd at shaw.ca Wed Oct 18 15:28:16 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 18 Oct 2006 13:28:16 -0700 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: <0J7C00E4PM63BWJ0@l-daemon> Had a similar problem when reading files that had under bars and other strange characters in the names as post and prefix padding. The files with strange characters had to be detected first and the excluded and then any padding was removed. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN Its fails on this line Application.LoadFromText acForm, Mid(strTemp, InStr(1, strTemp, "_", vbTextCompare) + 1), "C:\forms\" & strTemp strTemp has the value Form_Customer Details.txt coming into the loop Never gets past this. The error is The object name 'Customer Details.txt' does not follow Microsoft Access object naming rules I get the feeling the answer is staring me in the face here. If I do a simple application.LoadFromText then its not a problem. But if I have 500 objects I would like to automate the process and just grab them all. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Charlotte Foust Sent: Wed 18/10/2006 19:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Load from test AGAIN You don't give any specifics on where your problem occurs, Martin. Is it in the file system object handling, the LoadFromText, or what? I've usually had fewer problems with any kind of iterative operation on files when I created an array of the filenames (with or without extensions) to be retrieved using Dir or file system object and then passed that into a routine to do the actual handling, with some kind of test in place to see if one item has succeeded before passing in another item. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, October 18, 2006 11:11 AM To: Access Developers discussion and problem solving Subject: [AccessD] Load from test AGAIN Ok this has me beat No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. Any help greatly appreciated. background Access database objects exported as text files into C\|Forms I think need to LoadFromText all the objects in said folder back into database. This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. 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 Wed Oct 18 15:31:22 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 18 Oct 2006 13:31:22 -0700 Subject: [AccessD] Load from test AGAIN In-Reply-To: References: <20060621141056.92AA528FB9A@smtp.nildram.co.uk> Message-ID: <45368F1A.9090306@shaw.ca> This works for me assuming file names are in this style of template "C:\Access files\Forms\Form_MySinging.txt I found an unfinished mda that does most of this. going both ways load and save, if you want a look see Lacks some error checking etc. Public Sub loadup() On Error GoTo Err_loadup Dim strTemp As String Dim strName As String Dim strDir As String strDir = "C:\Access files\Forms\" strTemp = Dir(strDir & "*.txt") Do Until strTemp = "" Debug.Print UCase(Left(strTemp, 4)) 'remove file name extension strName = Mid(strTemp, 1, InStrRev(strTemp, ".", -1, vbTextCompare) - 1) Select Case UCase(Left(strTemp, 4)) Case "FORM" Debug.Print strTemp; strName ' 'remove file name prefix "Form_" Application.LoadFromText acForm, Mid(strName, InStr(1, strName, "_", vbTextCompare) + 1), strDir & strTemp Case "REPO" Application.LoadFromText acReport, "test", strDir & strTemp End Select strTemp = Dir Loop Exit_loadup: Exit Sub Err_loadup: MsgBox Err.Description, Err.Number Resume Exit_loadup Resume 0 '.FOR TROUBLESHOOTING End Sub Martin Reid wrote: >Ok this has me beat > >No matter what I try I cant get it to loop through a folder and import the exported text files. Tried Martys stuff, Drews stuff and my own. Used file system object to return only the file name without the extension and no luck. > >Any help greatly appreciated. > >background > >Access database objects exported as text files into C\|Forms > >I think need to LoadFromText all the objects in said folder back into database. > >This cannot be as difficult as it seems. One at a time and naming the files it works. Only when I go to look through all the objects does it fail. This is almost my last example file I need and its melting my head. > > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.408 / Virus Database: 268.13.5/483 - Release Date: 18/10/2006 > > -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Wed Oct 18 17:47:53 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 19 Oct 2006 08:47:53 +1000 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time In-Reply-To: <6645559.1161180017351.JavaMail.www@wwinf3002> References: <6645559.1161180017351.JavaMail.www@wwinf3002> Message-ID: <4536AF19.13229.CDEB9D4@stuart.lexacorp.com.pg> DateTime and SmallDateTime data in SQL Server are stored in two parts, the hi bytes store the date as an offset from '1/1/1900" and the low bytes store the time as a number of seconds or milliseconds after midnight. Unfortunately this differs from Access which uses "31-12-1899" as Day 0. So, if you try to store "08:30" through an Access recordset or it directly into a linked table, Access stores you "time only" as "31-12-1899 08:30". If you do it as through an SP, SQL Server stores it as "1-1-1900 08:30" When working between Access and SQL Server, you need take this one day difference into account if you are manipulating just the time parts of the data, either by adding/subtracting 1 from the data or more generally, taking only the fractional part of the data when it is Read. On 18 Oct 2006 at 16:00, paul.hartland at fsmail.net wrote: > Gustav, > > Here's a test one I have been playing with, can't get more simple > really....Even tried using CONVERT in the stored procedure and Format from > Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] > (@TestTime_1 [datetime]) > AS INSERT INTO [Genesis].[dbo].[timetable] > ( [TestTime]) > > VALUES > ( @TestTime_1) > GO > > The date is always 01/01/1900 > > Paul > > > > > Message Received: Oct 18 2006, 01:44 PM > From: "Gustav Brock" > To: accessd at databaseadvisors.com > Cc: > Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just The > Time > > Hi Paul > > So what does your stored procedure look like? > Which date is stored with the time? Today's date? > > /gustav > > >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> > To all, > > I have a little problem which I am sure this group can tell me the answer > to....I have a datetime field in SQL Server 2000 I have an insert stored > procedure which I pass the time to to put into the table, however it always > puts the date in front of the time....I can input the time directly and no > date gets put in front, I can also use a recordset with an update which > works (but is slower)....Is there anyway I can insert a time into a datetime > field in SQL Server 2000 without it putting the date in front using a stored > procedure. > > Thanks in advance for any help on this as it's driving me nuts. > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From mwp.reid at qub.ac.uk Thu Oct 19 03:03:44 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 19 Oct 2006 09:03:44 +0100 Subject: [AccessD] Load from test AGAIN References: <20060621141056.92AA528FB9A@smtp.nildram.co.uk> <45368F1A.9090306@shaw.ca> Message-ID: I posted last night but it has been bounced. I figured this must be an issue with my install of Access at home. Given everythign I tried, Drew, Marty and all shoudl actually have worked for me. I am redoing this on one of the office machines this morning to see if there is a difference. I appreciate the time you have all taken over this. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From Gustav at cactus.dk Thu Oct 19 04:30:55 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 19 Oct 2006 11:30:55 +0200 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Message-ID: Hi Stuart and Paul Stuart, Access uses the 30. not the 31. of December as base date, so isn't the difference 2? Aside, having my SQL Server back in service, if I link a date field to Access and insert a date/time like 1899-12-30 23:45:00, it displays as 23:45:00 in Access. If I enter 1900-01-01 23:45 and later extract the numeric value, it is 2. This is not done by the ODBC driver but is the actual numeric stored value which can be seen be running a pass-through query like this: select yourdatefield, cast(yourdatefield as float) from yourtable If I insert a time with a pass-through query, it will be inserted the same way as in Paul's SP and that is with a base date of 1900-01-01 and that is Paul's problem when he extracts the time in Access. The solution, as I see it, is to convert the date/time value to a time-only string expression when extracted in the SP like this: select yourdatefield, convert(varchar, yourdatefield, 108) from yourtable or, for a date/time value and not a string expression: select yourdatefield, cast(convert(varchar, yourdatefield, 108) as datetime) from yourtable In Access: select yourdatefield, CDate(Format(yourdatefield, "hh:nn:ss")) from yourtable So, as Paul has shown, when dealing with time only it is important to be careful if values are inserted both at client (Access) and server (SQL Server). One could choose to select a base date of your own, like 2000-01-01 - this could indeed be needed if the time values can exceed 24 hours. Or simply, whenever a time value is extracted, always to expect a date part to be present and always convert the value to the client's base date. /gustav >>> stuart at lexacorp.com.pg 19-10-2006 00:47 >>> DateTime and SmallDateTime data in SQL Server are stored in two parts, the hi bytes store the date as an offset from '1/1/1900" and the low bytes store the time as a number of seconds or milliseconds after midnight. Unfortunately this differs from Access which uses "31-12-1899" as Day 0. So, if you try to store "08:30" through an Access recordset or it directly into a linked table, Access stores you "time only" as "31-12-1899 08:30". If you do it as through an SP, SQL Server stores it as "1-1-1900 08:30" When working between Access and SQL Server, you need take this one day difference into account if you are manipulating just the time parts of the data, either by adding/subtracting 1 from the data or more generally, taking only the fractional part of the data when it is Read. On 18 Oct 2006 at 16:00, paul.hartland at fsmail.net wrote: > Gustav, > > Here's a test one I have been playing with, can't get more simple > really....Even tried using CONVERT in the stored procedure and Format from > Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] > (@TestTime_1 [datetime]) > AS INSERT INTO [Genesis].[dbo].[timetable] > ( [TestTime]) > > VALUES > ( @TestTime_1) > GO > > The date is always 01/01/1900 > > Paul > > > > > Message Received: Oct 18 2006, 01:44 PM > From: "Gustav Brock" > To: accessd at databaseadvisors.com > Cc: > Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just The > Time > > Hi Paul > > So what does your stored procedure look like? > Which date is stored with the time? Today's date? > > /gustav > > >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> > To all, > > I have a little problem which I am sure this group can tell me the answer > to....I have a datetime field in SQL Server 2000 I have an insert stored > procedure which I pass the time to to put into the table, however it always > puts the date in front of the time....I can input the time directly and no > date gets put in front, I can also use a recordset with an update which > works (but is slower)....Is there anyway I can insert a time into a datetime > field in SQL Server 2000 without it putting the date in front using a stored > procedure. > > Thanks in advance for any help on this as it's driving me nuts. > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 From stuart at lexacorp.com.pg Thu Oct 19 04:50:20 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 19 Oct 2006 19:50:20 +1000 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time In-Reply-To: References: Message-ID: <45374A5C.24885.F3D3588@stuart.lexacorp.com.pg> On 19 Oct 2006 at 11:30, Gustav Brock wrote: > Hi Stuart and Paul > > Stuart, Access uses the 30. not the 31. of December as base date, so isn't > the difference 2? You are quite correct, I was going from memory on that one :-( -- Stuart From stuart at lexacorp.com.pg Thu Oct 19 04:55:51 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 19 Oct 2006 19:55:51 +1000 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time In-Reply-To: <45374A5C.24885.F3D3588@stuart.lexacorp.com.pg> References: , <45374A5C.24885.F3D3588@stuart.lexacorp.com.pg> Message-ID: <45374BA7.24589.F4243C8@stuart.lexacorp.com.pg> On 19 Oct 2006 at 19:50, Stuart McLachlan wrote: > On 19 Oct 2006 at 11:30, Gustav Brock wrote: > > > Hi Stuart and Paul > > > > Stuart, Access uses the 30. not the 31. of December as base date, so isn't > > the difference 2? > > You are quite correct, I was going from memory on that one :-( It's Excel that uses "31/12/1899" as the base date - but it shows it as "0/1/1900" :-) So you need to be even more cautious if you mix data from Excel sheets into to mix :-( -- Stuart From Gustav at cactus.dk Thu Oct 19 09:02:04 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 19 Oct 2006 16:02:04 +0200 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Message-ID: Hi Stuart Oh, that's it. What a mess. /gustav >>> stuart at lexacorp.com.pg 19-10-2006 11:55:51 >>> On 19 Oct 2006 at 19:50, Stuart McLachlan wrote: > On 19 Oct 2006 at 11:30, Gustav Brock wrote: > > > Hi Stuart and Paul > > > > Stuart, Access uses the 30. not the 31. of December as base date, so isn't > > the difference 2? > > You are quite correct, I was going from memory on that one :-( It's Excel that uses "31/12/1899" as the base date - but it shows it as "0/1/1900" :-) So you need to be even more cautious if you mix data from Excel sheets into to mix :-( -- Stuart From ssharkins at setel.com Thu Oct 19 10:57:57 2006 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 19 Oct 2006 11:57:57 -0400 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just TheTime In-Reply-To: Message-ID: <000301c6f397$59933a30$fe34fad1@SUSANONE> FWIW, Outlook does something squirrelly with dates when importing/exporting with Access, but I don't remember the exact problem, but it's similar. I could look it up if anyone needed to know. Susan H. Oh, that's it. What a mess. It's Excel that uses "31/12/1899" as the base date - but it shows it as "0/1/1900" :-) From Gustav at cactus.dk Thu Oct 19 12:48:54 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 19 Oct 2006 19:48:54 +0200 Subject: [AccessD] Updating DateTime Field IN SQL Server With Just The Time Message-ID: Hi all If anyone wonders, MySQL uses the same base date as Access. Thus, in this context, MySQL may make up a friendlier backend than SQL Server (and Sybase I guess - don't know about Oracle etc.). /gustav >>> Gustav at cactus.dk 19-10-2006 11:30:55 >>> Hi Stuart and Paul Stuart, Access uses the 30. not the 31. of December as base date, so isn't the difference 2? Aside, having my SQL Server back in service, if I link a date field to Access and insert a date/time like 1899-12-30 23:45:00, it displays as 23:45:00 in Access. If I enter 1900-01-01 23:45 and later extract the numeric value, it is 2. This is not done by the ODBC driver but is the actual numeric stored value which can be seen be running a pass-through query like this: select yourdatefield, cast(yourdatefield as float) from yourtable If I insert a time with a pass-through query, it will be inserted the same way as in Paul's SP and that is with a base date of 1900-01-01 and that is Paul's problem when he extracts the time in Access. The solution, as I see it, is to convert the date/time value to a time-only string expression when extracted in the SP like this: select yourdatefield, convert(varchar, yourdatefield, 108) from yourtable or, for a date/time value and not a string expression: select yourdatefield, cast(convert(varchar, yourdatefield, 108) as datetime) from yourtable In Access: select yourdatefield, CDate(Format(yourdatefield, "hh:nn:ss")) from yourtable So, as Paul has shown, when dealing with time only it is important to be careful if values are inserted both at client (Access) and server (SQL Server). One could choose to select a base date of your own, like 2000-01-01 - this could indeed be needed if the time values can exceed 24 hours. Or simply, whenever a time value is extracted, always to expect a date part to be present and always convert the value to the client's base date. /gustav >>> stuart at lexacorp.com.pg 19-10-2006 00:47 >>> DateTime and SmallDateTime data in SQL Server are stored in two parts, the hi bytes store the date as an offset from '1/1/1900" and the low bytes store the time as a number of seconds or milliseconds after midnight. Unfortunately this differs from Access which uses "31-12-1899" as Day 0. So, if you try to store "08:30" through an Access recordset or it directly into a linked table, Access stores you "time only" as "31-12-1899 08:30". If you do it as through an SP, SQL Server stores it as "1-1-1900 08:30" When working between Access and SQL Server, you need take this one day difference into account if you are manipulating just the time parts of the data, either by adding/subtracting 1 from the data or more generally, taking only the fractional part of the data when it is Read. On 18 Oct 2006 at 16:00, paul.hartland at fsmail.net wrote: > Gustav, > > Here's a test one I have been playing with, can't get more simple > really....Even tried using CONVERT in the stored procedure and Format from > Visual Basic 6.0 CREATE PROCEDURE [insert_timetable_1] > (@TestTime_1 [datetime]) > AS INSERT INTO [Genesis].[dbo].[timetable] > ( [TestTime]) > > VALUES > ( @TestTime_1) > GO > > The date is always 01/01/1900 > > Paul > > > > > Message Received: Oct 18 2006, 01:44 PM > From: "Gustav Brock" > To: accessd at databaseadvisors.com > Cc: > Subject: Re: [AccessD] Updating DateTime Field IN SQL Server With Just The > Time > > Hi Paul > > So what does your stored procedure look like? > Which date is stored with the time? Today's date? > > /gustav > > >>> paul.hartland at fsmail.net 18-10-2006 13:51:46 >>> > To all, > > I have a little problem which I am sure this group can tell me the answer > to....I have a datetime field in SQL Server 2000 I have an insert stored > procedure which I pass the time to to put into the table, however it always > puts the date in front of the time....I can input the time directly and no > date gets put in front, I can also use a recordset with an update which > works (but is slower)....Is there anyway I can insert a time into a datetime > field in SQL Server 2000 without it putting the date in front using a stored > procedure. > > Thanks in advance for any help on this as it's driving me nuts. > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 From markamatte at hotmail.com Thu Oct 19 14:25:51 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 19 Oct 2006 19:25:51 +0000 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: Martin, With the code we sent I hope you found your solution. I understand what the code does...I was wondering if you could share the 'why'? What would be the reason for saving the objects as text...and then reloading them? Thanks, Mark A. Matte >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Load from test AGAIN >Date: Thu, 19 Oct 2006 09:03:44 +0100 > >I posted last night but it has been bounced. > >I figured this must be an issue with my install of Access at home. Given >everythign I tried, Drew, Marty and all shoudl actually have worked for me. > >I am redoing this on one of the office machines this morning to see if >there is a difference. > >I appreciate the time you have all taken over this. > >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 _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ From mwp.reid at qub.ac.uk Thu Oct 19 14:41:34 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 19 Oct 2006 20:41:34 +0100 Subject: [AccessD] Load from test AGAIN References: Message-ID: Mark The idea was (following the layout of an MS Blog) to explain the save and load methods. Mostly to demonstrate the structure of the resulting text files. I wanted to do this because the New Access templates can be opened as a ZIP package allowing you to see the structure of the template in terms of its XML. Many of the XML files are structured in the same was as the SaveAsText files. I felt most Access developers would get the idea better if I coudl some them this was something with which they are already familar. Now once I had written the save as routine I just felt I had to also include a good LoadFrom as well. It sort of all fitted together. I could find nothing in research that demostrated loading a whole set of files toggether. Everyoen seems to do this an object at a time. So I figured how hard is it. But there you go. I am almost finished writing Professional Access 2007 for Apress. Only thing to do is to write up the example from the world chapter to which many people on the list have given me permission to reuse some of their postings from AccessD. I hope this explains it. It really seemed a good idea at the time and I was so far into teh stuff and it supported so much of what else I had done that I had to get that code to work. Best Wishes Martin From markamatte at hotmail.com Thu Oct 19 15:16:48 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 19 Oct 2006 20:16:48 +0000 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: Thanks Martin, That helps a bit,,,but since I have limited knowledge of XML...I understand the 'why', just can't relate to it.(my fault...lol) I'm not sure if this is the same thing, or if you are still looking/researching...but while I was looking I found the following link that seems to be a "wizard" that does exactly what talking about(loadfromtext). http://www.mvps.org/access/modules/mdl0045.htm Hope it helps, Mark A. Matte >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Load from test AGAIN >Date: Thu, 19 Oct 2006 20:41:34 +0100 > >Mark > >The idea was (following the layout of an MS Blog) to explain the save and >load methods. Mostly to demonstrate the structure of the resulting text >files. I wanted to do this because the New Access templates can be opened >as a ZIP package allowing you to see the structure of the template in terms >of its XML. Many of the XML files are structured in the same was as the >SaveAsText files. I felt most Access developers would get the idea better >if I coudl some them this was something with which they are already >familar. > >Now once I had written the save as routine I just felt I had to also >include a good LoadFrom as well. It sort of all fitted together. I could >find nothing in research that demostrated loading a whole set of files >toggether. Everyoen seems to do this an object at a time. So I figured how >hard is it. But there you go. > >I am almost finished writing Professional Access 2007 for Apress. Only >thing to do is to write up the example from the world chapter to which many >people on the list have given me permission to reuse some of their postings >from AccessD. > >I hope this explains it. It really seemed a good idea at the time and I was >so far into teh stuff and it supported so much of what else I had done that >I had to get that code to work. > >Best Wishes > >Martin > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Use your PC to make calls at very low rates https://voiceoam.pcs.v2s.live.com/partnerredirect.aspx From mwp.reid at qub.ac.uk Thu Oct 19 15:21:15 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 19 Oct 2006 21:21:15 +0100 Subject: [AccessD] Load from test AGAIN References: Message-ID: You know something Mark I dont know that much about XML myself. Been getting help from Marty. I figured developers will understand load and savef text files and understand the output so when it cam to the XM it wasnt a major jump. I can let you see the draft of the chapter if you would like. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Mark A Matte Sent: Thu 19/10/2006 21:16 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Load from test AGAIN Thanks Martin, That helps a bit,,,but since I have limited knowledge of XML...I understand the 'why', just can't relate to it.(my fault...lol) I'm not sure if this is the same thing, or if you are still looking/researching...but while I was looking I found the following link that seems to be a "wizard" that does exactly what talking about(loadfromtext). http://www.mvps.org/access/modules/mdl0045.htm Hope it helps, Mark A. Matte >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Load from test AGAIN >Date: Thu, 19 Oct 2006 20:41:34 +0100 > >Mark > >The idea was (following the layout of an MS Blog) to explain the save and >load methods. Mostly to demonstrate the structure of the resulting text >files. I wanted to do this because the New Access templates can be opened >as a ZIP package allowing you to see the structure of the template in terms >of its XML. Many of the XML files are structured in the same was as the >SaveAsText files. I felt most Access developers would get the idea better >if I coudl some them this was something with which they are already >familar. > >Now once I had written the save as routine I just felt I had to also >include a good LoadFrom as well. It sort of all fitted together. I could >find nothing in research that demostrated loading a whole set of files >toggether. Everyoen seems to do this an object at a time. So I figured how >hard is it. But there you go. > >I am almost finished writing Professional Access 2007 for Apress. Only >thing to do is to write up the example from the world chapter to which many >people on the list have given me permission to reuse some of their postings >from AccessD. > >I hope this explains it. It really seemed a good idea at the time and I was >so far into teh stuff and it supported so much of what else I had done that >I had to get that code to work. > >Best Wishes > >Martin > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Use your PC to make calls at very low rates https://voiceoam.pcs.v2s.live.com/partnerredirect.aspx -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Thu Oct 19 15:57:15 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 19 Oct 2006 20:57:15 +0000 Subject: [AccessD] Load from test AGAIN In-Reply-To: Message-ID: That would be much appreciated. Thanks, Mark >From: "Martin Reid" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Load from test AGAIN >Date: Thu, 19 Oct 2006 21:21:15 +0100 > >You know something Mark I dont know that much about XML myself. Been >getting help from Marty. I figured developers will understand load and >savef text files and understand the output so when it cam to the XM it >wasnt a major jump. I can let you see the draft of the chapter if you would >like. > > > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > >________________________________ > >From: accessd-bounces at databaseadvisors.com on behalf of Mark A Matte >Sent: Thu 19/10/2006 21:16 >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Load from test AGAIN > > > >Thanks Martin, > >That helps a bit,,,but since I have limited knowledge of XML...I understand >the 'why', just can't relate to it.(my fault...lol) > >I'm not sure if this is the same thing, or if you are still >looking/researching...but while I was looking I found the following link >that seems to be a "wizard" that does exactly what talking >about(loadfromtext). > >http://www.mvps.org/access/modules/mdl0045.htm > >Hope it helps, > >Mark A. Matte > > > >From: "Martin Reid" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: Re: [AccessD] Load from test AGAIN > >Date: Thu, 19 Oct 2006 20:41:34 +0100 > > > >Mark > > > >The idea was (following the layout of an MS Blog) to explain the save and > >load methods. Mostly to demonstrate the structure of the resulting text > >files. I wanted to do this because the New Access templates can be opened > >as a ZIP package allowing you to see the structure of the template in >terms > >of its XML. Many of the XML files are structured in the same was as the > >SaveAsText files. I felt most Access developers would get the idea better > >if I coudl some them this was something with which they are already > >familar. > > > >Now once I had written the save as routine I just felt I had to also > >include a good LoadFrom as well. It sort of all fitted together. I could > >find nothing in research that demostrated loading a whole set of files > >toggether. Everyoen seems to do this an object at a time. So I figured >how > >hard is it. But there you go. > > > >I am almost finished writing Professional Access 2007 for Apress. Only > >thing to do is to write up the example from the world chapter to which >many > >people on the list have given me permission to reuse some of their >postings > >from AccessD. > > > >I hope this explains it. It really seemed a good idea at the time and I >was > >so far into teh stuff and it supported so much of what else I had done >that > >I had to get that code to work. > > > >Best Wishes > > > >Martin > > > > > > > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > >_________________________________________________________________ >Use your PC to make calls at very low rates >https://voiceoam.pcs.v2s.live.com/partnerredirect.aspx > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From sukadi at trakindo.co.id Fri Oct 20 00:56:56 2006 From: sukadi at trakindo.co.id (sukadi at trakindo.co.id) Date: Fri, 20 Oct 2006 12:56:56 +0700 Subject: [AccessD] help Message-ID: Kind Regards, ++SKI++ Note : When sending an email / reply to this address, please avoid attaching ZIP and image files (jpg, gif, bmp, png, etc.) as they are not in conformity with the Group's e-mail attachment Security Policy. Allowed attachments are standard MS Office (doc, xls, ppt, etc.) and PDF files. =========================================================================== This email is confidential. If you are not the addressee tell the sender immediately and destroy this email without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay, interception and amendment. The Trakindo Group of Companies do not accept liability for damage caused by this email and may monitor email traffic. Unless expressly stated, any opinions are the sender's and are not approved by the Trakindo Group of Companies and this email is not an offer, solicitation, recommendation or agreement of any kind. =========================================================================== From pedro at plex.nl Fri Oct 20 13:10:14 2006 From: pedro at plex.nl (pedro at plex.nl) Date: Fri, 20 Oct 2006 13:10:14 (MET DST) Subject: [AccessD] difference in days Message-ID: <200610201110.k9KBAEZN024888@mailhostC.plex.net> Hallo Group, i used the following sql to calculate the difference between two dates. SELECT Datum.Rapnaam, DateDiff("d",[DatOnt],[DatScr]) AS verschil FROM Datum; but i forgot that i only need the difference in workingdays, without the weekends. Is there a way to adjust the sql? Pedro Janssen From paul.hartland at fsmail.net Fri Oct 20 06:42:25 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 20 Oct 2006 13:42:25 +0200 (CEST) Subject: [AccessD] difference in days Message-ID: <17389054.1161344542619.JavaMail.www@wwinf3202> Pedro, I think you would have to use the function (or similar) that you can get from the Access Web, see below: '************* Code Start ************* Public Function HowManyWeekDay(FromDate As Date, _ ToDate As Date, _ Optional ToDateIsIncluded As Boolean = True) HowManyWeekDay = DateDiff("d", FromDate, ToDate) - _ ToDateIsIncluded - _ HowManyWD(FromDate, ToDate, vbSunday) - _ HowManyWD(FromDate, ToDate, vbSaturday) End Function '************* Code End ************* Paul Hartland Message Received: Oct 20 2006, 12:14 PM From: pedro at plex.nl To: accessd at databaseadvisors.com Cc: Subject: [AccessD] difference in days Hallo Group, i used the following sql to calculate the difference between two dates. SELECT Datum.Rapnaam, DateDiff("d",[DatOnt],[DatScr]) AS verschil FROM Datum; but i forgot that i only need the difference in workingdays, without the weekends. Is there a way to adjust the sql? Pedro Janssen -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From Gustav at cactus.dk Fri Oct 20 07:22:23 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 20 Oct 2006 14:22:23 +0200 Subject: [AccessD] difference in days Message-ID: Hi Pedro If you browse the archives, functions for calculation working days have been posted several times. See an example below. Once calculated these, somehow lookup holidays within the start and end date and deduct those falling on workdays. This can be as simple as a table you maintain or - if speed is needed - a function which calculates the movable (Christian) holidays following moon phases or other rules. Look up the archives for "Easter". Fixed holidays like New Year can be hardcoded. Another method is to create a table of every possible dates for your system, then mark these as needed. This can seem overwhelming but think about it: only 10000 records are needed for 30 years. /gustav Public Function ISO_WorkdayDiff( _ ByVal datDateFrom As Date, _ ByVal datDateTo As Date) _ As Long ' Purpose: Calculate number of working days between dates datDateFrom and datDateTo. ' Assumes: 5 or 6 working days per week. Weekend is (Saturday and) Sunday. ' Limitation: Does not count for public holidays. ' May be freely used and distributed. ' 1999-04-23. Gustav Brock, Cactus Data ApS, Copenhagen ' 2000-10-03. Constants added. ' Option for 5 or 6 working days per week added. Const cbytWorkdaysOfWeek As Byte = 5 Dim bytSunday As Byte Dim intWeekdayDateFrom As Integer Dim intWeekdayDateTo As Integer Dim lngDays As Long Dim datDateTemp As Date ' Reverse dates if these have been input reversed. If datDateFrom > datDateTo Then datDateTemp = datDateFrom datDateFrom = datDateTo datDateTo = datDateTemp End If ' Find ISO weekday for Sunday. bytSunday = WeekDay(vbSunday, vbMonday) ' Find weekdays for the dates. intWeekdayDateFrom = WeekDay(datDateFrom, vbMonday) intWeekdayDateTo = WeekDay(datDateTo, vbMonday) ' Compensate weekdays' value for non-working days (weekends). intWeekdayDateFrom = intWeekdayDateFrom + (intWeekdayDateFrom = bytSunday) intWeekdayDateTo = intWeekdayDateTo + (intWeekdayDateTo = bytSunday) ' Calculate number of working days between the two weekdays, ignoring number of weeks. lngDays = intWeekdayDateTo - intWeekdayDateFrom - (cbytWorkdaysOfWeek * (intWeekdayDateTo < intWeekdayDateFrom)) ' Add number of working days between the weeks of the two dates. lngDays = lngDays + (cbytWorkdaysOfWeek * DateDiff("w", datDateFrom, datDateTo, vbMonday, vbFirstFourDays)) ISO_WorkdayDiff = lngDays End Function Beware of line breaks. >>> pedro at plex.nl 20-10-2006 13:10:14 >>> Hallo Group, i used the following sql to calculate the difference between two dates. SELECT Datum.Rapnaam, DateDiff("d",[DatOnt],[DatScr]) AS verschil FROM Datum; but i forgot that i only need the difference in workingdays, without the weekends. Is there a way to adjust the sql? Pedro Janssen From Jim.Hale at FleetPride.com Fri Oct 20 08:46:15 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Fri, 20 Oct 2006 08:46:15 -0500 Subject: [AccessD] OT: Friday Humor Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE06B@corp-es01.fleetpride.com> HELL EXPLAINED BY CHEMISTRY STUDENT The following is an actual question given on a Washington State University chemistry mid-term. The answer by one student was so "profound" that the professor shared it with colleagues, via the Internet, which is, of course, why we now have the pleasure of enjoying it as well : Bonus Question: Is Hell exothermic (gives off heat) or endothermic (absorbs heat)? Most of the students wrote proofs of their beliefs using Boyle's Law (gas cools when it expands and heats when it is compressed) or some variant . One student, however, wrote the following: First, we need to know how the mass of Hell is changing in time. So we need to know the rate at which souls are moving into Hell and the rate at which they are leaving. I think that we can safely assume that once a soul gets to Hell, it will not leave. Therefore, no souls are leaving. As for how many souls are entering Hell, let's look at the different religions that exist in the world today. Most of these religions state that if you are not a member of their religion, you will go to Hell. Since there is more than one of these religions and since people do not belong to more than one religion, we can project that all souls go to Hell. With birth and death rates as they are, we can expect the number of souls in Hell to increase exponentially. Now, we look at the Rate of change of the volume in Hell because Boyle's Law states that in order for the temperature and pressure in Hell to stay the same, the volume of Hell has to expand proportionately as souls are added. This gives two possibilities: 1. If Hell is expanding at a slower rate than the rate at which souls enter Hell, then the temperature and pressure in Hell will increase until all Hell breaks loose. 2. If Hell is expanding at a rate faster than the increase of souls in Hell, then the temperature and pressure will drop until Hell freezes over. So which is it? If we accept the postulate given to me by Teresa during my Freshman year that, "It will be a cold day in Hell before I sleep with you," and take into account the fact that I slept with her last night, then number two must be true, AND thus I am sure that Hell is exothermic and has already frozen over. The corollary of this theory is that since Hell has frozen over, it follows that it is not accepting any more souls and is therefore, extinct......leaving only Heaven, thereby proving the existence of a divine being which explains why, last night, Teresa kept shouting "Oh my God." THIS STUDENT RECEIVED THE ONLY "A" *********************************************************************** 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 kens.programming at verizon.net Fri Oct 20 11:24:12 2006 From: kens.programming at verizon.net (kens.programming) Date: Fri, 20 Oct 2006 09:24:12 -0700 Subject: [AccessD] OT: Friday Humor In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DE06B@corp-es01.fleetpride.com> Message-ID: <011501c6f464$2ea6fb40$6b01a8c0@Stoker.com> That is great. Makes me happy to be a WSU alumnus. Thanks for sharing. Ken -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Friday, October 20, 2006 6:46 AM To: 'Accessd (E-mail) Subject: [AccessD] OT: Friday Humor HELL EXPLAINED BY CHEMISTRY STUDENT The following is an actual question given on a Washington State University chemistry mid-term. The answer by one student was so "profound" that the professor shared it with colleagues, via the Internet, which is, of course, why we now have the pleasure of enjoying it as well : Bonus Question: Is Hell exothermic (gives off heat) or endothermic (absorbs heat)? Most of the students wrote proofs of their beliefs using Boyle's Law (gas cools when it expands and heats when it is compressed) or some variant . One student, however, wrote the following: First, we need to know how the mass of Hell is changing in time. So we need to know the rate at which souls are moving into Hell and the rate at which they are leaving. I think that we can safely assume that once a soul gets to Hell, it will not leave. Therefore, no souls are leaving. As for how many souls are entering Hell, let's look at the different religions that exist in the world today. Most of these religions state that if you are not a member of their religion, you will go to Hell. Since there is more than one of these religions and since people do not belong to more than one religion, we can project that all souls go to Hell. With birth and death rates as they are, we can expect the number of souls in Hell to increase exponentially. Now, we look at the Rate of change of the volume in Hell because Boyle's Law states that in order for the temperature and pressure in Hell to stay the same, the volume of Hell has to expand proportionately as souls are added. This gives two possibilities: 1. If Hell is expanding at a slower rate than the rate at which souls enter Hell, then the temperature and pressure in Hell will increase until all Hell breaks loose. 2. If Hell is expanding at a rate faster than the increase of souls in Hell, then the temperature and pressure will drop until Hell freezes over. So which is it? If we accept the postulate given to me by Teresa during my Freshman year that, "It will be a cold day in Hell before I sleep with you," and take into account the fact that I slept with her last night, then number two must be true, AND thus I am sure that Hell is exothermic and has already frozen over. The corollary of this theory is that since Hell has frozen over, it follows that it is not accepting any more souls and is therefore, extinct......leaving only Heaven, thereby proving the existence of a divine being which explains why, last night, Teresa kept shouting "Oh my God." THIS STUDENT RECEIVED THE ONLY "A" *********************************************************************** 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.7/488 - Release Date: 10/19/2006 From cfoust at infostatsystems.com Fri Oct 20 11:24:11 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 20 Oct 2006 09:24:11 -0700 Subject: [AccessD] OT: Friday Humor In-Reply-To: <011501c6f464$2ea6fb40$6b01a8c0@Stoker.com> Message-ID: I sure it's apochryphal but it's fun anyhow! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of kens.programming Sent: Friday, October 20, 2006 9:24 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Friday Humor That is great. Makes me happy to be a WSU alumnus. Thanks for sharing. Ken -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Friday, October 20, 2006 6:46 AM To: 'Accessd (E-mail) Subject: [AccessD] OT: Friday Humor HELL EXPLAINED BY CHEMISTRY STUDENT The following is an actual question given on a Washington State University chemistry mid-term. The answer by one student was so "profound" that the professor shared it with colleagues, via the Internet, which is, of course, why we now have the pleasure of enjoying it as well : Bonus Question: Is Hell exothermic (gives off heat) or endothermic (absorbs heat)? Most of the students wrote proofs of their beliefs using Boyle's Law (gas cools when it expands and heats when it is compressed) or some variant . One student, however, wrote the following: First, we need to know how the mass of Hell is changing in time. So we need to know the rate at which souls are moving into Hell and the rate at which they are leaving. I think that we can safely assume that once a soul gets to Hell, it will not leave. Therefore, no souls are leaving. As for how many souls are entering Hell, let's look at the different religions that exist in the world today. Most of these religions state that if you are not a member of their religion, you will go to Hell. Since there is more than one of these religions and since people do not belong to more than one religion, we can project that all souls go to Hell. With birth and death rates as they are, we can expect the number of souls in Hell to increase exponentially. Now, we look at the Rate of change of the volume in Hell because Boyle's Law states that in order for the temperature and pressure in Hell to stay the same, the volume of Hell has to expand proportionately as souls are added. This gives two possibilities: 1. If Hell is expanding at a slower rate than the rate at which souls enter Hell, then the temperature and pressure in Hell will increase until all Hell breaks loose. 2. If Hell is expanding at a rate faster than the increase of souls in Hell, then the temperature and pressure will drop until Hell freezes over. So which is it? If we accept the postulate given to me by Teresa during my Freshman year that, "It will be a cold day in Hell before I sleep with you," and take into account the fact that I slept with her last night, then number two must be true, AND thus I am sure that Hell is exothermic and has already frozen over. The corollary of this theory is that since Hell has frozen over, it follows that it is not accepting any more souls and is therefore, extinct......leaving only Heaven, thereby proving the existence of a divine being which explains why, last night, Teresa kept shouting "Oh my God." THIS STUDENT RECEIVED THE ONLY "A" *********************************************************************** 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.7/488 - Release Date: 10/19/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Fri Oct 20 11:50:22 2006 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 20 Oct 2006 18:50:22 +0200 Subject: [AccessD] difference in days References: <17389054.1161344542619.JavaMail.www@wwinf3202> Message-ID: <000c01c6f467$d5d06110$4001a8c0@qmotionfaa3ad9> I tried the code from Paul first, but get an error: "You used an inaccurate number of arguments in a function" The same error with the code from Gustav. What am i doing wrong. in my table there are two date fields: FromDate = [DatOnt], ToDate = [datScr]. So this is the function that i then use: Public Function HowManyWD(DatOnt As Date, _ DatScr As Date, _ Optional ToDateIsIncluded As Boolean = True) HowManyWD = DateDiff("d", DatOnt, DatScr) - _ ToDateIsIncluded - _ HowManyWD(DatOnt, DatScr, vbSunday) - _ HowManyWD(DatOnt, DatScr, vbSaturday) End Function What is going wrong Pedro Janssen ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Friday, October 20, 2006 1:42 PM Subject: Re: [AccessD] difference in days > Pedro, > > I think you would have to use the function (or similar) that you can get > from the Access Web, see below: > > '************* Code Start ************* > Public Function HowManyWeekDay(FromDate As Date, _ > ToDate As Date, _ > Optional ToDateIsIncluded As Boolean = True) > > HowManyWeekDay = DateDiff("d", FromDate, ToDate) - _ > ToDateIsIncluded - _ > HowManyWD(FromDate, ToDate, vbSunday) - _ > HowManyWD(FromDate, ToDate, vbSaturday) > End Function > '************* Code End ************* > > Paul Hartland > > > > > > Message Received: Oct 20 2006, 12:14 PM > From: pedro at plex.nl > To: accessd at databaseadvisors.com > Cc: > Subject: [AccessD] difference in days > > Hallo Group, > > i used the following sql to calculate the difference between two dates. > > SELECT Datum.Rapnaam, DateDiff("d",[DatOnt],[DatScr]) AS verschil > FROM Datum; > > but i forgot that i only need the difference in workingdays, without the > weekends. > > Is there a way to adjust the sql? > > Pedro Janssen > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Oct 20 12:06:36 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 20 Oct 2006 19:06:36 +0200 Subject: [AccessD] difference in days Message-ID: Hi Pedro This should do: SELECT Datum.Rapnaam, ISO_WorkdayDiff([DatOnt], [DatScr]) AS verschil FROM Datum; /gustav >>> pedro at plex.nl 20-10-2006 18:50:22 >>> I tried the code from Paul first, but get an error: "You used an inaccurate number of arguments in a function" The same error with the code from Gustav. What am i doing wrong. in my table there are two date fields: FromDate = [DatOnt], ToDate = [datScr]. From markamatte at hotmail.com Fri Oct 20 13:27:10 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 20 Oct 2006 18:27:10 +0000 Subject: [AccessD] OT: Friday Humor In-Reply-To: Message-ID: Haven't had to use Webster's in awhile...thanks Charlotte...lol. Thanks, Mark A. Matte P.S...Webster says 'apocryphal' instead of 'apochryphal '...but either way I agree with you Charlotte >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] OT: Friday Humor >Date: Fri, 20 Oct 2006 09:24:11 -0700 > >I sure it's apochryphal but it's fun anyhow! > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >kens.programming >Sent: Friday, October 20, 2006 9:24 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: Friday Humor > >That is great. Makes me happy to be a WSU alumnus. Thanks for sharing. > >Ken > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim >Sent: Friday, October 20, 2006 6:46 AM >To: 'Accessd (E-mail) >Subject: [AccessD] OT: Friday Humor > >HELL EXPLAINED BY CHEMISTRY STUDENT > >The following is an actual question given on a Washington State >University chemistry mid-term. >The answer by one student was so "profound" that the professor shared it >with colleagues, via the Internet, which is, of course, why we now have >the pleasure of enjoying it as well : > >Bonus Question: Is Hell exothermic (gives off heat) or endothermic >(absorbs heat)? > >Most of the students wrote proofs of their beliefs using Boyle's Law >(gas cools when it expands and heats when it is compressed) or some >variant . > >One student, however, wrote the following: > >First, we need to know how the mass of Hell is changing in time. So we >need to know the rate at which souls are moving into Hell and the rate >at which they are leaving. I think that we can safely assume that once a >soul gets to Hell, it will not leave. Therefore, no souls are leaving. >As for how many souls are entering Hell, let's look at the different >religions that exist in the world today. Most of these religions state >that if you are not a member of their religion, you will go to Hell. >Since there is more than one of these religions and since people do not >belong to more than one religion, we can project that all souls go to >Hell. With birth and death rates as they are, we can expect the number >of souls in Hell to increase exponentially. >Now, we look at the Rate of change of the volume in Hell because Boyle's >Law states that in order for the temperature and pressure in Hell to >stay the same, the volume of Hell has to expand proportionately as souls >are added. > >This gives two possibilities: > >1. If Hell is expanding at a slower rate than the rate at which souls >enter Hell, then the temperature and pressure in Hell will increase >until all Hell breaks loose. > >2. If Hell is expanding at a rate faster than the increase of souls in >Hell, then the temperature and pressure will drop until Hell freezes >over. > >So which is it? > >If we accept the postulate given to me by Teresa during my Freshman year >that, "It will be a cold day in Hell before I sleep with you," and take >into account the fact that I slept with her last night, then number two >must be true, AND thus I am sure that Hell is exothermic and has already >frozen over. The corollary of this theory is that since Hell has frozen >over, it follows that it is not accepting any more souls and is >therefore, extinct......leaving only Heaven, thereby proving the >existence of a divine being which explains why, last night, Teresa kept >shouting "Oh my God." > >THIS STUDENT RECEIVED THE ONLY "A" > > > >*********************************************************************** >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 > > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.408 / Virus Database: 268.13.7/488 - Release Date: >10/19/2006 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ All-in-one security and maintenance for your PC. Get a free 90-day trial! http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail From pedro at plex.nl Fri Oct 20 13:39:06 2006 From: pedro at plex.nl (Pedro Janssen) Date: Fri, 20 Oct 2006 20:39:06 +0200 Subject: [AccessD] difference in days References: Message-ID: <001f01c6f477$06481270$4001a8c0@qmotionfaa3ad9> Hello Gustav, this works. Thanks. But why do i have to call the function by: ISO_WorkdayDiff([DatOnt], [DatScr]) Normally i only use: ISO_WorkdayDiff(), in calling functions from an sql. Paul: your function also began working, but i received an Error after 2 records: Stack memmory error? Thanks Pedro ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, October 20, 2006 7:06 PM Subject: Re: [AccessD] difference in days > Hi Pedro > > This should do: > > SELECT > Datum.Rapnaam, > ISO_WorkdayDiff([DatOnt], [DatScr]) AS verschil > FROM > Datum; > > /gustav > >>>> pedro at plex.nl 20-10-2006 18:50:22 >>> > I tried the code from Paul first, but get an error: "You used an > inaccurate > number of arguments in a function" > The same error with the code from Gustav. > > What am i doing wrong. in my table there are two date fields: FromDate = > [DatOnt], ToDate = [datScr]. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Fri Oct 20 13:41:14 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 20 Oct 2006 11:41:14 -0700 Subject: [AccessD] OT: Friday Humor In-Reply-To: Message-ID: Well *I* knew what I meant! LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, October 20, 2006 11:27 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Friday Humor Haven't had to use Webster's in awhile...thanks Charlotte...lol. Thanks, Mark A. Matte P.S...Webster says 'apocryphal' instead of 'apochryphal '...but either way I agree with you Charlotte >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] OT: Friday Humor >Date: Fri, 20 Oct 2006 09:24:11 -0700 > >I sure it's apochryphal but it's fun anyhow! > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >kens.programming >Sent: Friday, October 20, 2006 9:24 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: Friday Humor > >That is great. Makes me happy to be a WSU alumnus. Thanks for sharing. > >Ken > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim >Sent: Friday, October 20, 2006 6:46 AM >To: 'Accessd (E-mail) >Subject: [AccessD] OT: Friday Humor > >HELL EXPLAINED BY CHEMISTRY STUDENT > >The following is an actual question given on a Washington State >University chemistry mid-term. >The answer by one student was so "profound" that the professor shared it >with colleagues, via the Internet, which is, of course, why we now have >the pleasure of enjoying it as well : > >Bonus Question: Is Hell exothermic (gives off heat) or endothermic >(absorbs heat)? > >Most of the students wrote proofs of their beliefs using Boyle's Law >(gas cools when it expands and heats when it is compressed) or some >variant . > >One student, however, wrote the following: > >First, we need to know how the mass of Hell is changing in time. So we >need to know the rate at which souls are moving into Hell and the rate >at which they are leaving. I think that we can safely assume that once a >soul gets to Hell, it will not leave. Therefore, no souls are leaving. >As for how many souls are entering Hell, let's look at the different >religions that exist in the world today. Most of these religions state >that if you are not a member of their religion, you will go to Hell. >Since there is more than one of these religions and since people do not >belong to more than one religion, we can project that all souls go to >Hell. With birth and death rates as they are, we can expect the number >of souls in Hell to increase exponentially. >Now, we look at the Rate of change of the volume in Hell because Boyle's >Law states that in order for the temperature and pressure in Hell to >stay the same, the volume of Hell has to expand proportionately as souls >are added. > >This gives two possibilities: > >1. If Hell is expanding at a slower rate than the rate at which souls >enter Hell, then the temperature and pressure in Hell will increase >until all Hell breaks loose. > >2. If Hell is expanding at a rate faster than the increase of souls in >Hell, then the temperature and pressure will drop until Hell freezes >over. > >So which is it? > >If we accept the postulate given to me by Teresa during my Freshman year >that, "It will be a cold day in Hell before I sleep with you," and take >into account the fact that I slept with her last night, then number two >must be true, AND thus I am sure that Hell is exothermic and has already >frozen over. The corollary of this theory is that since Hell has frozen >over, it follows that it is not accepting any more souls and is >therefore, extinct......leaving only Heaven, thereby proving the >existence of a divine being which explains why, last night, Teresa kept >shouting "Oh my God." > >THIS STUDENT RECEIVED THE ONLY "A" > > > >*********************************************************************** >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 > > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.408 / Virus Database: 268.13.7/488 - Release Date: >10/19/2006 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ All-in-one security and maintenance for your PC. Get a free 90-day trial! http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http:/ /www.windowsonecare.com/?sc_cid=msn_hotmail -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tuxedoman888 at gmail.com Fri Oct 20 14:18:44 2006 From: tuxedoman888 at gmail.com (Billy Pang) Date: Fri, 20 Oct 2006 12:18:44 -0700 Subject: [AccessD] OT: Friday Humor In-Reply-To: References: Message-ID: <7c8826480610201218j6d31f2dxe8bc4a9c4021c97c@mail.gmail.com> I just may consider adding the term apocryphal to my personal lexicon so i can use it to impress my peers. On 10/20/06, Charlotte Foust wrote: > > Well *I* knew what I meant! LOL > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Friday, October 20, 2006 11:27 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] OT: Friday Humor > > Haven't had to use Webster's in awhile...thanks Charlotte...lol. > > Thanks, > > Mark A. Matte > > P.S...Webster says 'apocryphal' instead of 'apochryphal '...but either > way I agree with you Charlotte > > > >From: "Charlotte Foust" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: Re: [AccessD] OT: Friday Humor > >Date: Fri, 20 Oct 2006 09:24:11 -0700 > > > >I sure it's apochryphal but it's fun anyhow! > > > >Charlotte Foust > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > >kens.programming > >Sent: Friday, October 20, 2006 9:24 AM > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] OT: Friday Humor > > > >That is great. Makes me happy to be a WSU alumnus. Thanks for > sharing. > > > >Ken > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim > >Sent: Friday, October 20, 2006 6:46 AM > >To: 'Accessd (E-mail) > >Subject: [AccessD] OT: Friday Humor > > > >HELL EXPLAINED BY CHEMISTRY STUDENT > > > >The following is an actual question given on a Washington State > >University chemistry mid-term. > >The answer by one student was so "profound" that the professor shared > it > >with colleagues, via the Internet, which is, of course, why we now have > >the pleasure of enjoying it as well : > > > >Bonus Question: Is Hell exothermic (gives off heat) or endothermic > >(absorbs heat)? > > > >Most of the students wrote proofs of their beliefs using Boyle's Law > >(gas cools when it expands and heats when it is compressed) or some > >variant . > > > >One student, however, wrote the following: > > > >First, we need to know how the mass of Hell is changing in time. So we > >need to know the rate at which souls are moving into Hell and the rate > >at which they are leaving. I think that we can safely assume that once > a > >soul gets to Hell, it will not leave. Therefore, no souls are leaving. > >As for how many souls are entering Hell, let's look at the different > >religions that exist in the world today. Most of these religions state > >that if you are not a member of their religion, you will go to Hell. > >Since there is more than one of these religions and since people do not > >belong to more than one religion, we can project that all souls go to > >Hell. With birth and death rates as they are, we can expect the number > >of souls in Hell to increase exponentially. > >Now, we look at the Rate of change of the volume in Hell because > Boyle's > >Law states that in order for the temperature and pressure in Hell to > >stay the same, the volume of Hell has to expand proportionately as > souls > >are added. > > > >This gives two possibilities: > > > >1. If Hell is expanding at a slower rate than the rate at which souls > >enter Hell, then the temperature and pressure in Hell will increase > >until all Hell breaks loose. > > > >2. If Hell is expanding at a rate faster than the increase of souls in > >Hell, then the temperature and pressure will drop until Hell freezes > >over. > > > >So which is it? > > > >If we accept the postulate given to me by Teresa during my Freshman > year > >that, "It will be a cold day in Hell before I sleep with you," and take > >into account the fact that I slept with her last night, then number two > >must be true, AND thus I am sure that Hell is exothermic and has > already > >frozen over. The corollary of this theory is that since Hell has frozen > >over, it follows that it is not accepting any more souls and is > >therefore, extinct......leaving only Heaven, thereby proving the > >existence of a divine being which explains why, last night, Teresa kept > >shouting "Oh my God." > > > >THIS STUDENT RECEIVED THE ONLY "A" > > > > > > > >*********************************************************************** > >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 > > > > > >-- > >No virus found in this incoming message. > >Checked by AVG Free Edition. > >Version: 7.1.408 / Virus Database: 268.13.7/488 - Release Date: > >10/19/2006 > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > All-in-one security and maintenance for your PC. Get a free 90-day > trial! > http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http:/ > /www.windowsonecare.com/?sc_cid=msn_hotmail > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb From cclenright at yahoo.com Fri Oct 20 17:14:08 2006 From: cclenright at yahoo.com (Chris Enright) Date: Fri, 20 Oct 2006 15:14:08 -0700 (PDT) Subject: [AccessD] OT: Friday Humor Message-ID: <20061020221408.31672.qmail@web34306.mail.mud.yahoo.com> v\:* { BEHAVIOR: url (#default#vml)}v\:* { BEHAVIOR: url (#default#vml)}As an Aussie I have found, in the past, a lot of the OT:Humour (note our spelling) ;-) , somewhat difficult to really appreciate. I was sitting in bed with my laptop (sad old man) when this came through.. I have a science degree (from roughly the same time as Einstein), I read it and had tears rolling down my cheeks! Unfortunately, as a scientist, it then kept me awake for the rest of the night trying to think of a better solution to the problem. Surely, with the greatest respects, our own JC is pondering this and will shortly give us the ultimate answer! With anticipation, Chris -------Original Message------- From: Hale, Jim Date: 20/10/2006 14:47:40 To: 'Accessd (E-mail) Subject: [AccessD] OT: Friday Humor HELL EXPLAINED BY CHEMISTRY STUDENT The following is an actual question given on a Washington State University chemistry mid-term. The answer by one student was so "profound" that the professor shared it with colleagues, via the Internet, which is, of course, why we now have the pleasure of enjoying it as well : Bonus Question: Is Hell exothermic (gives off heat) or endothermic (absorbs heat)? Most of the students wrote proofs of their beliefs using Boyle's Law (gas cools when it expands and heats when it is compressed) or some variant . One student, however, wrote the following: First, we need to know how the mass of Hell is changing in time. So we need to know the rate at which souls are moving into Hell and the rate at which they are leaving. I think that we can safely assume that once a soul gets to Hell, it will not leave. Therefore, no souls are leaving. As for how many souls are entering Hell, let's look at the different religions that exist in the world today. Most of these religions state that if you are not a member of their religion, you will go to Hell. Since there is more than one of these religions and since people do not belong to more than one religion, we can project that all souls go to Hell. With birth and death rates as they are, we can expect the number of souls in Hell to increase exponentially. Now, we look at the Rate of change of the volume in Hell because Boyle's Law states that in order for the temperature and pressure in Hell to stay the same, the volume of Hell has to expand proportionately as souls are added. This gives two possibilities: 1. If Hell is expanding at a slower rate than the rate at which souls enter Hell, then the temperature and pressure in Hell will increase until all Hell breaks loose. 2. If Hell is expanding at a rate faster than the increase of souls in Hell, then the temperature and pressure will drop until Hell freezes over. So which is it? If we accept the postulate given to me by Teresa during my Freshman year that, "It will be a cold day in Hell before I sleep with you," and take into account the fact that I slept with her last night, then number two must be true, AND thus I am sure that Hell is exothermic and has already frozen over. The corollary of this theory is that since Hell has frozen over, it follows that it is not accepting any more souls and is therefore, extinct......leaving only Heaven, thereby proving the existence of a divine being which explains why, last night, Teresa kept shouting "Oh my God." THIS STUDENT RECEIVED THE ONLY "A" *********************************************************************** 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 --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. From cclenright at yahoo.com Fri Oct 20 17:42:59 2006 From: cclenright at yahoo.com (Chris Enright) Date: Fri, 20 Oct 2006 15:42:59 -0700 (PDT) Subject: [AccessD] OT: Candices. Where have they gone? Message-ID: <20061020224259.57629.qmail@web34311.mail.mud.yahoo.com> v\:* {behavior:url (#default#vml);}v\:* { BEHAVIOR: url (#default#vml)}Thinking back over the seven years that I have been on this list, and learned enough from it to earn a moderate income, for which I thank all you gurus, I remember years ago saying that Candices/Candaces were running the whole show. What happened to them? There were at least three and they have disappeared! Anyone know where they've all gone? I miss them! Chris --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1?/min. From cfoust at infostatsystems.com Fri Oct 20 18:40:41 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 20 Oct 2006 16:40:41 -0700 Subject: [AccessD] OT: Friday Humor In-Reply-To: <7c8826480610201218j6d31f2dxe8bc4a9c4021c97c@mail.gmail.com> Message-ID: In that case, make sure you spell it right!! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Billy Pang Sent: Friday, October 20, 2006 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Friday Humor I just may consider adding the term apocryphal to my personal lexicon so i can use it to impress my peers. On 10/20/06, Charlotte Foust wrote: > > Well *I* knew what I meant! LOL > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte > Sent: Friday, October 20, 2006 11:27 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] OT: Friday Humor > > Haven't had to use Webster's in awhile...thanks Charlotte...lol. > > Thanks, > > Mark A. Matte > > P.S...Webster says 'apocryphal' instead of 'apochryphal '...but either > way I agree with you Charlotte > > > >From: "Charlotte Foust" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: Re: [AccessD] OT: Friday Humor > >Date: Fri, 20 Oct 2006 09:24:11 -0700 > > > >I sure it's apochryphal but it's fun anyhow! > > > >Charlotte Foust > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > >kens.programming > >Sent: Friday, October 20, 2006 9:24 AM > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] OT: Friday Humor > > > >That is great. Makes me happy to be a WSU alumnus. Thanks for > sharing. > > > >Ken > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim > >Sent: Friday, October 20, 2006 6:46 AM > >To: 'Accessd (E-mail) > >Subject: [AccessD] OT: Friday Humor > > > >HELL EXPLAINED BY CHEMISTRY STUDENT > > > >The following is an actual question given on a Washington State > >University chemistry mid-term. > >The answer by one student was so "profound" that the professor shared > it > >with colleagues, via the Internet, which is, of course, why we now > >have the pleasure of enjoying it as well : > > > >Bonus Question: Is Hell exothermic (gives off heat) or endothermic > >(absorbs heat)? > > > >Most of the students wrote proofs of their beliefs using Boyle's Law > >(gas cools when it expands and heats when it is compressed) or some > >variant . > > > >One student, however, wrote the following: > > > >First, we need to know how the mass of Hell is changing in time. So > >we need to know the rate at which souls are moving into Hell and the > >rate at which they are leaving. I think that we can safely assume > >that once > a > >soul gets to Hell, it will not leave. Therefore, no souls are leaving. > >As for how many souls are entering Hell, let's look at the different > >religions that exist in the world today. Most of these religions > >state that if you are not a member of their religion, you will go to Hell. > >Since there is more than one of these religions and since people do > >not belong to more than one religion, we can project that all souls > >go to Hell. With birth and death rates as they are, we can expect the > >number of souls in Hell to increase exponentially. > >Now, we look at the Rate of change of the volume in Hell because > Boyle's > >Law states that in order for the temperature and pressure in Hell to > >stay the same, the volume of Hell has to expand proportionately as > souls > >are added. > > > >This gives two possibilities: > > > >1. If Hell is expanding at a slower rate than the rate at which souls > >enter Hell, then the temperature and pressure in Hell will increase > >until all Hell breaks loose. > > > >2. If Hell is expanding at a rate faster than the increase of souls > >in Hell, then the temperature and pressure will drop until Hell > >freezes over. > > > >So which is it? > > > >If we accept the postulate given to me by Teresa during my Freshman > year > >that, "It will be a cold day in Hell before I sleep with you," and > >take into account the fact that I slept with her last night, then > >number two must be true, AND thus I am sure that Hell is exothermic > >and has > already > >frozen over. The corollary of this theory is that since Hell has > >frozen over, it follows that it is not accepting any more souls and > >is therefore, extinct......leaving only Heaven, thereby proving the > >existence of a divine being which explains why, last night, Teresa > >kept shouting "Oh my God." > > > >THIS STUDENT RECEIVED THE ONLY "A" > > > > > > > >********************************************************************* > >** 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 > > > > > >-- > >No virus found in this incoming message. > >Checked by AVG Free Edition. > >Version: 7.1.408 / Virus Database: 268.13.7/488 - Release Date: > >10/19/2006 > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > All-in-one security and maintenance for your PC. Get a free 90-day > trial! > http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http > :/ /www.windowsonecare.com/?sc_cid=msn_hotmail > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Billy Pang http://dbnotes.blogspot.com/ "Once the game is over, the King and the pawn go back in the same box." - Italian proverb -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Sun Oct 22 10:20:50 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 22 Oct 2006 10:20:50 -0500 Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 Message-ID: <000601c6f5ed$a952ada0$0200a8c0@danwaters> About six months ago, I installed Access 2003 (late I know). Since then I've noticed that the command buttons in 2003 have a nice silvery color with rounded corners. The 2002 buttons are gray with square corners. Is there a way to change my older databases so that they too display the 2003 command button style? The older databases still show the older style even though they are opened in 2003. Thanks! Dan Waters ProMation Systems, Inc. (W) 763-780-2496 (M) 763-639-2960 Click Here to add Dan's contact information to your Contacts list. - If the File Download window appears, first select Open. - Then (in Outlook) select Save and Close. From john at winhaven.net Sun Oct 22 12:28:07 2006 From: john at winhaven.net (John Bartow) Date: Sun, 22 Oct 2006 12:28:07 -0500 Subject: [AccessD] Print one page of a report Message-ID: <007a01c6f5ff$70b9fae0$1402a8c0@ScuzzPaq> Is there an easy way to print just one page of an A2k3 report? From john at winhaven.net Sun Oct 22 12:28:07 2006 From: john at winhaven.net (John Bartow) Date: Sun, 22 Oct 2006 12:28:07 -0500 Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 In-Reply-To: <000601c6f5ed$a952ada0$0200a8c0@danwaters> Message-ID: <007f01c6f5ff$7116e7f0$1402a8c0@ScuzzPaq> Dan, Check if you have Tools | Options | Forms/Reports | "Use Windows Themed Controls on Forms" checked . If so it is - then that's why your buttons look so pretty. Turn that off and they'll look like the before. I don't think there's way to make other versions change to be the same though. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, October 22, 2006 10:21 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 About six months ago, I installed Access 2003 (late I know). Since then I've noticed that the command buttons in 2003 have a nice silvery color with rounded corners. The 2002 buttons are gray with square corners. Is there a way to change my older databases so that they too display the 2003 command button style? The older databases still show the older style even though they are opened in 2003. Thanks! Dan Waters ProMation Systems, Inc. (W) 763-780-2496 (M) 763-639-2960 Click Here to add Dan's contact information to your Contacts list. - If the File Download window appears, first select Open. - Then (in Outlook) select Save and Close. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Sun Oct 22 12:39:08 2006 From: ssharkins at setel.com (Susan Harkins) Date: Sun, 22 Oct 2006 13:39:08 -0400 Subject: [AccessD] Print one page of a report In-Reply-To: <007a01c6f5ff$70b9fae0$1402a8c0@ScuzzPaq> Message-ID: <002501c6f600$fb181450$0834fad1@SUSANONE> I assume you mean programmatically, right? Because on the Page Setup page, you can manually set the page. Susan H. Is there an easy way to print just one page of an A2k3 report? From dwaters at usinternet.com Sun Oct 22 15:44:37 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 22 Oct 2006 15:44:37 -0500 Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 In-Reply-To: <6647054.1161538370409.JavaMail.root@sniper32> Message-ID: <000a01c6f61a$e49fd360$0200a8c0@danwaters> Thanks Marty! That was it. Dan Waters -----Original Message----- Subject: Re: [AccessD] Command Buttons: Access 2002 vs. 2003 Dan, Check if you have Tools | Options | Forms/Reports | "Use Windows Themed Controls on Forms" checked . If so it is - then that's why your buttons look so pretty. Turn that off and they'll look like the before. I don't think there's way to make other versions change to be the same though. -----Original Message----- Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 About six months ago, I installed Access 2003 (late I know). Since then I've noticed that the command buttons in 2003 have a nice silvery color with rounded corners. The 2002 buttons are gray with square corners. Is there a way to change my older databases so that they too display the 2003 command button style? The older databases still show the older style even though they are opened in 2003. Thanks! Dan Waters From john at winhaven.net Sun Oct 22 18:12:23 2006 From: john at winhaven.net (John Bartow) Date: Sun, 22 Oct 2006 18:12:23 -0500 Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 In-Reply-To: <000a01c6f61a$e49fd360$0200a8c0@danwaters> Message-ID: <007101c6f62f$889eeb90$1402a8c0@ScuzzPaq> Well, calling me Marty was one of the nicest compliments I've had for awhile. (I hold him in high esteem :o) John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, October 22, 2006 3:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Command Buttons: Access 2002 vs. 2003 Thanks Marty! That was it. Dan Waters -----Original Message----- Subject: Re: [AccessD] Command Buttons: Access 2002 vs. 2003 Dan, Check if you have Tools | Options | Forms/Reports | "Use Windows Themed Controls on Forms" checked . If so it is - then that's why your buttons look so pretty. Turn that off and they'll look like the before. I don't think there's way to make other versions change to be the same though. -----Original Message----- Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 About six months ago, I installed Access 2003 (late I know). Since then I've noticed that the command buttons in 2003 have a nice silvery color with rounded corners. The 2002 buttons are gray with square corners. Is there a way to change my older databases so that they too display the 2003 command button style? The older databases still show the older style even though they are opened in 2003. Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Sun Oct 22 18:12:23 2006 From: john at winhaven.net (John Bartow) Date: Sun, 22 Oct 2006 18:12:23 -0500 Subject: [AccessD] Print one page of a report In-Reply-To: <002501c6f600$fb181450$0834fad1@SUSANONE> Message-ID: <007201c6f62f$88fe49a0$1402a8c0@ScuzzPaq> Hi Susan, Actually, no. I was looking too deep. This is in a runtime distribution and my custom toolbar icon showed that it should open the printer dialog (printer icon with the ...) to make this option available but its wasn't so I assumed the runtime wouldn't allow it. (Now that I figured I must've missed something) I rebuilt the toolbar and now all appears to work. Thanks for the pointer - it made me look to the more obvious. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins I assume you mean programmatically, right? Because on the Page Setup page, you can manually set the page. Susan H. From martyconnelly at shaw.ca Sun Oct 22 18:23:35 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 22 Oct 2006 16:23:35 -0700 Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 In-Reply-To: <000a01c6f61a$e49fd360$0200a8c0@danwaters> References: <000a01c6f61a$e49fd360$0200a8c0@danwaters> Message-ID: <453BFD77.5080606@shaw.ca> Tweren't me, twas John. Though you may get label flicker on sub forms if you turn off that option. Dan Waters wrote: >Thanks Marty! That was it. > >Dan Waters > > >-----Original Message----- >Subject: Re: [AccessD] Command Buttons: Access 2002 vs. 2003 > >Dan, >Check if you have Tools | Options | Forms/Reports | "Use Windows Themed >Controls on Forms" checked . If so it is - then that's why your buttons look >so pretty. Turn that off and they'll look like the before. I don't think >there's way to make other versions change to be the same though. > >-----Original Message----- >Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 > >About six months ago, I installed Access 2003 (late I know). Since then >I've noticed that the command buttons in 2003 have a nice silvery color with >rounded corners. The 2002 buttons are gray with square corners. > >Is there a way to change my older databases so that they too display the >2003 command button style? The older databases still show the older style >even though they are opened in 2003. > >Thanks! > >Dan Waters > > > -- Marty Connelly Victoria, B.C. Canada From dwaters at usinternet.com Sun Oct 22 18:50:21 2006 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 22 Oct 2006 18:50:21 -0500 Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 In-Reply-To: <25545666.1161550204610.JavaMail.root@sniper34> Message-ID: <000b01c6f634$d6d7d880$0200a8c0@danwaters> Ouch! Been working all day . . . time to quit? Have a Pete's Wicked Ale? I think so . . . ! Dan Waters -----Original Message----- Subject: Re: [AccessD] Command Buttons: Access 2002 vs. 2003 Thanks Marty! That was it. Dan Waters -----Original Message----- Subject: Re: [AccessD] Command Buttons: Access 2002 vs. 2003 Dan, Check if you have Tools | Options | Forms/Reports | "Use Windows Themed Controls on Forms" checked . If so it is - then that's why your buttons look so pretty. Turn that off and they'll look like the before. I don't think there's way to make other versions change to be the same though. -----Original Message----- Subject: [AccessD] Command Buttons: Access 2002 vs. 2003 About six months ago, I installed Access 2003 (late I know). Since then I've noticed that the command buttons in 2003 have a nice silvery color with rounded corners. The 2002 buttons are gray with square corners. Is there a way to change my older databases so that they too display the 2003 command button style? The older databases still show the older style even though they are opened in 2003. Thanks! Dan Waters -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Sun Oct 22 19:46:34 2006 From: ssharkins at setel.com (Susan Harkins) Date: Sun, 22 Oct 2006 20:46:34 -0400 Subject: [AccessD] Print one page of a report In-Reply-To: <007201c6f62f$88fe49a0$1402a8c0@ScuzzPaq> Message-ID: <000001c6f63c$b12e25a0$feb62ad1@SUSANONE> Thanks for the pointer - it made me look to the more obvious. =========Glad to help. That's me -- look for the obvious. ;) Susan H. From jwcolby at colbyconsulting.com Sun Oct 22 22:12:34 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 22 Oct 2006 23:12:34 -0400 Subject: [AccessD] Creating a TOC from data Message-ID: <002b01c6f651$166af510$657aa8c0@m6805> Does anyone have a code base that would assist me in creating a TOC from a query that is able to pull in data such as you see in the following example, formatted like this, indents, etc. I reaaaaly don't want to get into a full blown word automation design at this point. John W. Colby Colby Consulting www.ColbyConsulting.com From Gustav at cactus.dk Mon Oct 23 04:58:40 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 23 Oct 2006 11:58:40 +0200 Subject: [AccessD] difference in days Message-ID: Hi Pedro Hmm ... unless you use global/public variables (which you cannot directly do within SQL) you have to pass the dates as parameters to a (any) function - or it won't know what to calculate. /gustav >>> pedro at plex.nl 20-10-2006 20:39 >>> Hello Gustav, this works. Thanks. But why do i have to call the function by: ISO_WorkdayDiff([DatOnt], [DatScr]) Normally i only use: ISO_WorkdayDiff(), in calling functions from an sql. Paul: your function also began working, but i received an Error after 2 records: Stack memmory error? Thanks Pedro ----- Original Message ----- From: "Gustav Brock" To: Sent: Friday, October 20, 2006 7:06 PM Subject: Re: [AccessD] difference in days > Hi Pedro > > This should do: > > SELECT > Datum.Rapnaam, > ISO_WorkdayDiff([DatOnt], [DatScr]) AS verschil > FROM > Datum; > > /gustav > >>>> pedro at plex.nl 20-10-2006 18:50:22 >>> > I tried the code from Paul first, but get an error: "You used an > inaccurate > number of arguments in a function" > The same error with the code from Gustav. > > What am i doing wrong. in my table there are two date fields: FromDate = > [DatOnt], ToDate = [datScr]. From mikedorism at verizon.net Mon Oct 23 07:41:40 2006 From: mikedorism at verizon.net (Doris Manning) Date: Mon, 23 Oct 2006 08:41:40 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <002b01c6f651$166af510$657aa8c0@m6805> Message-ID: <000801c6f6a0$97232160$2f01a8c0@Kermit> John, The example didn't come through so it is hard to say what the right solution is. Off the top of my head I'm guessing you could do it through string manipulation by adding line feeds and tabs. Doris Manning -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Sunday, October 22, 2006 11:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Creating a TOC from data Does anyone have a code base that would assist me in creating a TOC from a query that is able to pull in data such as you see in the following example, formatted like this, indents, etc. I reaaaaly don't want to get into a full blown word automation design at this point. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Mon Oct 23 08:47:56 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 23 Oct 2006 09:47:56 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <000801c6f6a0$97232160$2f01a8c0@Kermit> Message-ID: <005101c6f6a9$d90335d0$657aa8c0@m6805> Doris, Yea, that is what I did, straight in an Access report. I had to go with a monospace font to allow everything to line up correctly but it is working. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doris Manning Sent: Monday, October 23, 2006 8:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data John, The example didn't come through so it is hard to say what the right solution is. Off the top of my head I'm guessing you could do it through string manipulation by adding line feeds and tabs. Doris Manning -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Sunday, October 22, 2006 11:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Creating a TOC from data Does anyone have a code base that would assist me in creating a TOC from a query that is able to pull in data such as you see in the following example, formatted like this, indents, etc. I reaaaaly don't want to get into a full blown word automation design at this point. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Mon Oct 23 10:03:57 2006 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 23 Oct 2006 11:03:57 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <005101c6f6a9$d90335d0$657aa8c0@m6805> Message-ID: <001101c6f6b4$777c5160$4234fad1@SUSANONE> John, have you considered exporting the query results to Word and using its features? Doesn't word have a TOC feature? I've never used it, so maybe I'm goofy. Susan H. Doris, Yea, that is what I did, straight in an Access report. I had to go with a monospace font to allow everything to line up correctly but it is working. From jwcolby at colbyconsulting.com Mon Oct 23 10:17:49 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 23 Oct 2006 11:17:49 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <001101c6f6b4$777c5160$4234fad1@SUSANONE> Message-ID: <005a01c6f6b6$6778d250$657aa8c0@m6805> Susan, That is what I was thinking about originally. In the end, I needed to get it done and Word and its TOC meant a learning curve I wasn't willing to climb. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, October 23, 2006 11:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data John, have you considered exporting the query results to Word and using its features? Doesn't word have a TOC feature? I've never used it, so maybe I'm goofy. Susan H. Doris, Yea, that is what I did, straight in an Access report. I had to go with a monospace font to allow everything to line up correctly but it is working. -- 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 Oct 23 10:19:00 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 23 Oct 2006 08:19:00 -0700 Subject: [AccessD] Creating a TOC from data In-Reply-To: <001101c6f6b4$777c5160$4234fad1@SUSANONE> Message-ID: <004701c6f6b6$91bb4d90$6401a8c0@HAL9005> Susan: I used the TOC feature in Access and it is truly slick. You have to do some pre-planning so that the heads, sub-heads, sub-sub-heads, etc. use a consistent font. Then you tell the TOC generator what kind of font represents which level. Whenever I make changes to the manual, regenerating the TOC is just a few clicks. Makes a beautiful TOC with bullets and everything. I also did the same for the list of figures and tables. I can send you a copy off line if you're interested. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, October 23, 2006 8:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data John, have you considered exporting the query results to Word and using its features? Doesn't word have a TOC feature? I've never used it, so maybe I'm goofy. Susan H. Doris, Yea, that is what I did, straight in an Access report. I had to go with a monospace font to allow everything to line up correctly but it is working. -- 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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/2006 From bchacc at san.rr.com Mon Oct 23 10:38:01 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 23 Oct 2006 08:38:01 -0700 Subject: [AccessD] Creating a TOC from data In-Reply-To: <004701c6f6b6$91bb4d90$6401a8c0@HAL9005> Message-ID: <004b01c6f6b9$39a25380$6401a8c0@HAL9005> Oops. I meant the TOC feature in WORD - for the E-Z-MRP manual. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Monday, October 23, 2006 8:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data Susan: I used the TOC feature in Access and it is truly slick. You have to do some pre-planning so that the heads, sub-heads, sub-sub-heads, etc. use a consistent font. Then you tell the TOC generator what kind of font represents which level. Whenever I make changes to the manual, regenerating the TOC is just a few clicks. Makes a beautiful TOC with bullets and everything. I also did the same for the list of figures and tables. I can send you a copy off line if you're interested. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, October 23, 2006 8:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data John, have you considered exporting the query results to Word and using its features? Doesn't word have a TOC feature? I've never used it, so maybe I'm goofy. Susan H. Doris, Yea, that is what I did, straight in an Access report. I had to go with a monospace font to allow everything to line up correctly but it is working. -- 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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/2006 From hollisvj at pgdp.usec.com Mon Oct 23 10:39:49 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 23 Oct 2006 10:39:49 -0500 Subject: [AccessD] Check Only One Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01014ED2@c2k3exchange.pgdp.corp.usec.com> I am creating a new database / form for tracking incidents. The form has 4 checkboxes and a text field for Other. They are supposed to only check one. How do you set that up on the form so they can only check one of the boxes, not more than one? Also, I am not sure how to do the tables. Should there be a field for each check? (Drill, Injury, Fire, Other). If not, how would reports show which one was checked? So, is there a way to force only once checkbox at a time without going through each field & determine - If drill is checked, the rest aren't, etc. Virginia From markamatte at hotmail.com Mon Oct 23 10:45:45 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 23 Oct 2006 15:45:45 +0000 Subject: [AccessD] Check Only One In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01014ED2@c2k3exchange.pgdp.corp.usec.com> Message-ID: Virginia, If you use an option group I think you'll find the functionality you are looking for. Regardless of which was checked...you selection is always stored in the same field. Good Luck, Mark A. Matte >From: "Hollis, Virginia" >Reply-To: Access Developers discussion and problem >solving >To: accessD at databaseadvisors.com >Subject: [AccessD] Check Only One >Date: Mon, 23 Oct 2006 10:39:49 -0500 > >I am creating a new database / form for tracking incidents. The form has >4 checkboxes and a text field for Other. They are supposed to only check >one. How do you set that up on the form so they can only check one of >the boxes, not more than one? > > > >Also, I am not sure how to do the tables. Should there be a field for >each check? (Drill, Injury, Fire, Other). If not, how would reports show >which one was checked? > > > >So, is there a way to force only once checkbox at a time without going >through each field & determine - If drill is checked, the rest aren't, >etc. > > > >Virginia > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001 From paul.hartland at fsmail.net Mon Oct 23 10:52:57 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 23 Oct 2006 17:52:57 +0200 (CEST) Subject: [AccessD] Check Only One Message-ID: <18771868.1161618777908.JavaMail.www@wwinf3104.me-wanadoo.net> Virginia, If you create a frame and put the checkboxes or radio buttons in a frame I think this restricts input to only one choice, what you can then do is assign each choice a value (say 1-4) and store the value in a field. Then you have a table of your choices with two fields, one for the value and one for the text: Value Text 1 Drill 2 Injury 3 Fire 4 Other then when you do your query, link your main table with the value field, into your value field, and get it to display the description. Sorry if I haven't made myself clear but am just leaving work....if you need any further info, contact me here or offline. Paul Hartland Message Received: Oct 23 2006, 04:45 PM From: "Hollis, Virginia" To: accessD at databaseadvisors.com Cc: Subject: [AccessD] Check Only One I am creating a new database / form for tracking incidents. The form has 4 checkboxes and a text field for Other. They are supposed to only check one. How do you set that up on the form so they can only check one of the boxes, not more than one? Also, I am not sure how to do the tables. Should there be a field for each check? (Drill, Injury, Fire, Other). If not, how would reports show which one was checked? So, is there a way to force only once checkbox at a time without going through each field & determine - If drill is checked, the rest aren't, etc. Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From jwcolby at colbyconsulting.com Mon Oct 23 11:03:27 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 23 Oct 2006 12:03:27 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <004701c6f6b6$91bb4d90$6401a8c0@HAL9005> Message-ID: <005b01c6f6bc$c7a239e0$657aa8c0@m6805> Rocky, IMC, I didn't have a real document, just data that I wanted in a TOC format. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Monday, October 23, 2006 11:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data Susan: I used the TOC feature in Access and it is truly slick. You have to do some pre-planning so that the heads, sub-heads, sub-sub-heads, etc. use a consistent font. Then you tell the TOC generator what kind of font represents which level. Whenever I make changes to the manual, regenerating the TOC is just a few clicks. Makes a beautiful TOC with bullets and everything. I also did the same for the list of figures and tables. I can send you a copy off line if you're interested. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, October 23, 2006 8:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data John, have you considered exporting the query results to Word and using its features? Doesn't word have a TOC feature? I've never used it, so maybe I'm goofy. Susan H. Doris, Yea, that is what I did, straight in an Access report. I had to go with a monospace font to allow everything to line up correctly but it is working. -- 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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Mon Oct 23 11:05:44 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 23 Oct 2006 11:05:44 -0500 Subject: [AccessD] Tip concerning dates in Access Message-ID: Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert From hollisvj at pgdp.usec.com Mon Oct 23 11:12:13 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 23 Oct 2006 11:12:13 -0500 Subject: [AccessD] Check Only One Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01014EE0@c2k3exchange.pgdp.corp.usec.com> That makes sense, thanks. It has been awhile since I created a database - forgot about doing it that way. Ok - one question though. The Other field they need to enter text. If they click Other, would it do to have a txt field activate so they can type in it? But would that be a separate field from the table that lists the choices? Virginia, If you create a frame and put the checkboxes or radio buttons in a frame I think this restricts input to only one choice, what you can then do is assign each choice a value (say 1-4) and store the value in a field. Then you have a table of your choices with two fields, one for the value and one for the text: Value Text 1 Drill 2 Injury 3 Fire 4 Other then when you do your query, link your main table with the value field, into your value field, and get it to display the description. Sorry if I haven't made myself clear but am just leaving work....if you need any further info, contact me here or offline. Paul Hartland From dwaters at usinternet.com Mon Oct 23 11:17:06 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 23 Oct 2006 11:17:06 -0500 Subject: [AccessD] Check Only One In-Reply-To: <32028050.1161619091463.JavaMail.root@Sniper29> Message-ID: <003301c6f6be$afd0be70$0200a8c0@danwaters> Virginia, A different approach, since they can only check one, is to use a combobox. I almost always use these because they take less space, are easily changeable by just changing the data in the lookup table, and can be selected by the user more quickly without using the mouse. If you put a cbo.DropDown method into the Enter event for the combobox, it will display the choices as the user tabs in. Then they just begin typing to select the one they want, and tab out. If a user selects other, then a required Other Description field can be used to get that information, which is often useful for reporting. Hope this helps! Dan Waters -----Original Message----- Subject: Re: [AccessD] Check Only One Virginia, If you use an option group I think you'll find the functionality you are looking for. Regardless of which was checked...you selection is always stored in the same field. Good Luck, Mark A. Matte >From: "Hollis, Virginia" >Reply-To: Access Developers discussion and problem >solving >To: accessD at databaseadvisors.com >Subject: [AccessD] Check Only One >Date: Mon, 23 Oct 2006 10:39:49 -0500 > >I am creating a new database / form for tracking incidents. The form has >4 checkboxes and a text field for Other. They are supposed to only check >one. How do you set that up on the form so they can only check one of >the boxes, not more than one? > > > >Also, I am not sure how to do the tables. Should there be a field for >each check? (Drill, Injury, Fire, Other). If not, how would reports show >which one was checked? > > > >So, is there a way to force only once checkbox at a time without going >through each field & determine - If drill is checked, the rest aren't, >etc. > > > >Virginia > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Mon Oct 23 11:28:26 2006 From: ssharkins at setel.com (Susan Harkins) Date: Mon, 23 Oct 2006 12:28:26 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <005a01c6f6b6$6778d250$657aa8c0@m6805> Message-ID: <000a01c6f6c0$461569c0$3c34fad1@SUSANONE> I understand that JC -- Word always humbles me. :) I can't automate cr*p in Word. :) Susan H. Susan, That is what I was thinking about originally. In the end, I needed to get it done and Word and its TOC meant a learning curve I wasn't willing to climb. From bchacc at san.rr.com Mon Oct 23 11:51:05 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 23 Oct 2006 09:51:05 -0700 Subject: [AccessD] Creating a TOC from data In-Reply-To: <005b01c6f6bc$c7a239e0$657aa8c0@m6805> Message-ID: <005f01c6f6c3$6e4acf90$6401a8c0@HAL9005> Could you push the data into Word, using specific fonts for the different levels of the TOC then trigger the TOC feature and delete the data you pushed in? Actually sounds like you created a simpler solution. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, October 23, 2006 9:03 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data Rocky, IMC, I didn't have a real document, just data that I wanted in a TOC format. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Monday, October 23, 2006 11:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data Susan: I used the TOC feature in Access and it is truly slick. You have to do some pre-planning so that the heads, sub-heads, sub-sub-heads, etc. use a consistent font. Then you tell the TOC generator what kind of font represents which level. Whenever I make changes to the manual, regenerating the TOC is just a few clicks. Makes a beautiful TOC with bullets and everything. I also did the same for the list of figures and tables. I can send you a copy off line if you're interested. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, October 23, 2006 8:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data John, have you considered exporting the query results to Word and using its features? Doesn't word have a TOC feature? I've never used it, so maybe I'm goofy. Susan H. Doris, Yea, that is what I did, straight in an Access report. I had to go with a monospace font to allow everything to line up correctly but it is working. -- 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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/2006 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/2006 From bchacc at san.rr.com Mon Oct 23 11:52:36 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 23 Oct 2006 09:52:36 -0700 Subject: [AccessD] Check Only One In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01014EE0@c2k3exchange.pgdp.corp.usec.com> Message-ID: <006001c6f6c3$a50dd2c0$6401a8c0@HAL9005> Virginia, In the after update event of the option frame you could check to see if they've selected Other and then enable or disable your text box. Or make it visible or invisible. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, October 23, 2006 9:12 AM To: accessd at databaseadvisors.com; paul.hartland at fsmail.net Subject: [AccessD] Check Only One That makes sense, thanks. It has been awhile since I created a database - forgot about doing it that way. Ok - one question though. The Other field they need to enter text. If they click Other, would it do to have a txt field activate so they can type in it? But would that be a separate field from the table that lists the choices? Virginia, If you create a frame and put the checkboxes or radio buttons in a frame I think this restricts input to only one choice, what you can then do is assign each choice a value (say 1-4) and store the value in a field. Then you have a table of your choices with two fields, one for the value and one for the text: Value Text 1 Drill 2 Injury 3 Fire 4 Other then when you do your query, link your main table with the value field, into your value field, and get it to display the description. Sorry if I haven't made myself clear but am just leaving work....if you need any further info, contact me here or offline. Paul Hartland -- 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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/2006 From hollisvj at pgdp.usec.com Mon Oct 23 11:58:17 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 23 Oct 2006 11:58:17 -0500 Subject: [AccessD] Check Only One Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01014EE5@c2k3exchange.pgdp.corp.usec.com> That makes sense. I created a new lookup table listing the 4 choices & Other as number 5. I store the number they selected in the main table. I got that part. Put the option frame/box on the form. What do I do now about the Other choice. I can make the field show or enable it if the choice is 5 (Other). But how do I show their write in text for the Other field in a report? Would it be a field in the other main table? The reports would have to determine if Other is the choice & if it is put in the text they typed in the Other field from the main table. Does that sound right? Virginia Virginia, In the after update event of the option frame you could check to see if they've selected Other and then enable or disable your text box. Or make it visible or invisible. Rocky From bchacc at san.rr.com Mon Oct 23 12:09:49 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 23 Oct 2006 10:09:49 -0700 Subject: [AccessD] Check Only One In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01014EE5@c2k3exchange.pgdp.corp.usec.com> Message-ID: <006d01c6f6c6$0cb6c560$6401a8c0@HAL9005> If you've saved the data in the text box which is enabled if they select Other in a field in a table, as I assume you have, then you include that field in the query which is the source for your report. Then in the Detail Format event of the report, check the value of the field that holds 1-5. If it's 5 make the text box on your report which is bound to the Other field Visible. Else Visible = False. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, October 23, 2006 9:58 AM To: accessd at databaseadvisors.com Subject: [AccessD] Check Only One That makes sense. I created a new lookup table listing the 4 choices & Other as number 5. I store the number they selected in the main table. I got that part. Put the option frame/box on the form. What do I do now about the Other choice. I can make the field show or enable it if the choice is 5 (Other). But how do I show their write in text for the Other field in a report? Would it be a field in the other main table? The reports would have to determine if Other is the choice & if it is put in the text they typed in the Other field from the main table. Does that sound right? Virginia Virginia, In the after update event of the option frame you could check to see if they've selected Other and then enable or disable your text box. Or make it visible or invisible. Rocky -- 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.408 / Virus Database: 268.13.9/490 - Release Date: 10/20/2006 From hollisvj at pgdp.usec.com Mon Oct 23 12:19:40 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 23 Oct 2006 12:19:40 -0500 Subject: [AccessD] Check Only One Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01014EE8@c2k3exchange.pgdp.corp.usec.com> Great! Thanks. One more question & I will leave you alone.... How do you refer to the checkbox in the frame? I tried me.chk5 = True & I also tried me.chk5 = 1. Neither one worked. I get an error. Private Sub fraNature_AfterUpdate() 'If choice is Other, enter data in field If (Me.chk5 = ) And (IsNull(Me![Other])) Then MsgBox "You must enter the reason", _ vbInformation, "Complete Field" Other.SetFocus End If End Sub From carbonnb at gmail.com Mon Oct 23 12:21:09 2006 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 23 Oct 2006 13:21:09 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <005f01c6f6c3$6e4acf90$6401a8c0@HAL9005> References: <005b01c6f6bc$c7a239e0$657aa8c0@m6805> <005f01c6f6c3$6e4acf90$6401a8c0@HAL9005> Message-ID: On 10/23/06, Beach Access Software wrote: > Could you push the data into Word, using specific fonts for the different > levels of the TOC then trigger the TOC feature and delete the data you > pushed in? TOCs in Word are generated from the variious Heading X styles. So John'd have to push the data to Word and then change the styles. Not difficult, but an added extra step. Then there is the issue of the TOC field in Word. It's a bugger to update programatically if you don't do it right. Not difficult, just a PITA. Definately sounds like what John did was easier. -- 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 mikedorism at verizon.net Mon Oct 23 12:37:42 2006 From: mikedorism at verizon.net (Doris Manning) Date: Mon, 23 Oct 2006 13:37:42 -0400 Subject: [AccessD] Check Only One In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01014EE8@c2k3exchange.pgdp.corp.usec.com> Message-ID: <000f01c6f6c9$f1c75630$2f01a8c0@Kermit> You reference the value of fraNature... Private Sub fraNature_AfterUpdate() 'If choice is Other, enter data in field If (fraNature = 5) And (IsNull(Me![Other])) Then MsgBox "You must enter the reason", _ vbInformation, "Complete Field" Other.SetFocus End If End Sub Doris Manning -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Monday, October 23, 2006 1:20 PM To: accessd at databaseadvisors.com Subject: [AccessD] Check Only One Great! Thanks. One more question & I will leave you alone.... How do you refer to the checkbox in the frame? I tried me.chk5 = True & I also tried me.chk5 = 1. Neither one worked. I get an error. Private Sub fraNature_AfterUpdate() 'If choice is Other, enter data in field If (Me.chk5 = ) And (IsNull(Me![Other])) Then MsgBox "You must enter the reason", _ vbInformation, "Complete Field" Other.SetFocus End If End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Mon Oct 23 13:30:15 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 23 Oct 2006 19:30:15 +0100 Subject: [AccessD] Fox Pro References: <002b01c6f651$166af510$657aa8c0@m6805> Message-ID: I have a fox pro database. Its password protected and no one knows the password. Is there anyway around this? I need to get the data from this thing. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From dwaters at usinternet.com Mon Oct 23 13:38:51 2006 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 23 Oct 2006 13:38:51 -0500 Subject: [AccessD] Check Only One In-Reply-To: <27660500.1161626287768.JavaMail.root@sniper61> Message-ID: <003401c6f6d2$7d0d8180$0200a8c0@danwaters> In the AfterUpdate event of the combobox, write this: If cbo = "Other" then memOther.Enabled = True Else memOther.Enabled = False endif The control source for the Other field will be in the Main table, not in the lookup table. Then when you create a report (bound/filtered from the Main table) for your information you'll have a field which shows your selection as text, and another which shows the content of the Other field. If they didn't select Other, then the report field for Other will be blank. This shouldn't bother your users, because they can see the selection that was chosen from the list, or they can see that Other was selected and then they can read what Other actually meant. If your report just said Other, but there was no Other field, then users are left by themselves to wonder what Other actually was. But, in your particular process, it MIGHT be that the users are actually fine with an Other selection without an explanation. Dan Waters -----Original Message----- Subject: [AccessD] Check Only One That makes sense. I created a new lookup table listing the 4 choices & Other as number 5. I store the number they selected in the main table. I got that part. Put the option frame/box on the form. What do I do now about the Other choice. I can make the field show or enable it if the choice is 5 (Other). But how do I show their write in text for the Other field in a report? Would it be a field in the other main table? The reports would have to determine if Other is the choice & if it is put in the text they typed in the Other field from the main table. Does that sound right? Virginia Virginia, In the after update event of the option frame you could check to see if they've selected Other and then enable or disable your text box. Or make it visible or invisible. Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Oct 23 14:05:56 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 23 Oct 2006 19:05:56 +0000 Subject: [AccessD] Creating a TOC from data In-Reply-To: <000801c6f6a0$97232160$2f01a8c0@Kermit> Message-ID: John, Can you re-send the example mentioned below. Thanks, Mark >From: "Doris Manning" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Creating a TOC from data >Date: Mon, 23 Oct 2006 08:41:40 -0400 > >John, > >The example didn't come through so it is hard to say what the right >solution >is. Off the top of my head I'm guessing you could do it through string >manipulation by adding line feeds and tabs. > >Doris Manning > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Sunday, October 22, 2006 11:13 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Creating a TOC from data > >Does anyone have a code base that would assist me in creating a TOC from a >query that is able to pull in data such as you see in the following >example, >formatted like this, indents, etc. I reaaaaly don't want to get into a >full >blown word automation design at this point. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From jwcolby at colbyconsulting.com Mon Oct 23 14:45:13 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 23 Oct 2006 15:45:13 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: Message-ID: <006901c6f6db$c3453040$657aa8c0@m6805> Well, I have solved the problem completely inside of Access at this point so I really don't need to do the Word thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Monday, October 23, 2006 3:06 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Creating a TOC from data John, Can you re-send the example mentioned below. Thanks, Mark >From: "Doris Manning" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Creating a TOC from data >Date: Mon, 23 Oct 2006 08:41:40 -0400 > >John, > >The example didn't come through so it is hard to say what the right >solution is. Off the top of my head I'm guessing you could do it >through string manipulation by adding line feeds and tabs. > >Doris Manning > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Sunday, October 22, 2006 11:13 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Creating a TOC from data > >Does anyone have a code base that would assist me in creating a TOC >from a query that is able to pull in data such as you see in the >following example, formatted like this, indents, etc. I reaaaaly don't >want to get into a full blown word automation design at this point. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spa ces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Oct 23 14:57:02 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 23 Oct 2006 12:57:02 -0700 Subject: [AccessD] Fox Pro In-Reply-To: References: <002b01c6f651$166af510$657aa8c0@m6805> Message-ID: <453D1E8E.6040703@shaw.ca> Do you want to execute the program or read the tables? To execute You will need a crack program, lots of sites sell them in $40 range To read tables You can read the dbf files and index files as linked files or through ADO easily for programs written below VFP 7.0, I believe you could password protect the overall mdc container file in higher versions. Still might get at individual table files. Of course someone could have added individual table encryption as well then you will have to run the foxpro program. See here for OLEDB and ODBC methods and drivers for Visual Foxpro. http://www.carlprothman.net/Default.aspx?tabid=81 Martin Reid wrote: >I have a fox pro database. Its password protected and no one knows the password. Is there anyway around this? > >I need to get the data from this thing. > >Martin > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.408 / Virus Database: 268.13.11/492 - Release Date: 23/10/2006 > > > -- Marty Connelly Victoria, B.C. Canada From jimdettman at verizon.net Mon Oct 23 14:58:54 2006 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 23 Oct 2006 15:58:54 -0400 Subject: [AccessD] Creating a TOC from data In-Reply-To: <006901c6f6db$c3453040$657aa8c0@m6805> Message-ID: <001401c6f6dd$abf80000$8abea8c0@XPS> FYI for those looking to do this in Access: http://support.microsoft.com/kb/210269/en-us Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, October 23, 2006 3:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Creating a TOC from data Well, I have solved the problem completely inside of Access at this point so I really don't need to do the Word thing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Monday, October 23, 2006 3:06 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Creating a TOC from data John, Can you re-send the example mentioned below. Thanks, Mark >From: "Doris Manning" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Creating a TOC from data >Date: Mon, 23 Oct 2006 08:41:40 -0400 > >John, > >The example didn't come through so it is hard to say what the right >solution is. Off the top of my head I'm guessing you could do it >through string manipulation by adding line feeds and tabs. > >Doris Manning > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby >Sent: Sunday, October 22, 2006 11:13 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Creating a TOC from data > >Does anyone have a code base that would assist me in creating a TOC >from a query that is able to pull in data such as you see in the >following example, formatted like this, indents, etc. I reaaaaly don't >want to get into a full blown word automation design at this point. > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spa ces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Oct 23 15:15:03 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 23 Oct 2006 21:15:03 +0100 Subject: [AccessD] Fox Pro References: <002b01c6f651$166af510$657aa8c0@m6805> <453D1E8E.6040703@shaw.ca> Message-ID: Marty Just need to get the data out. Once thats done we can dump the fox pro. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From DWUTKA at marlow.com Mon Oct 23 16:26:06 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 23 Oct 2006 16:26:06 -0500 Subject: [AccessD] Tip concerning dates in Access Message-ID: <17724746D360394AA3BFE5B8D40A9C1B012786B1@MARLOW_MAIN2.marlow.com> Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert From darrend at nimble.com.au Tue Oct 24 08:55:03 2006 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 24 Oct 2006 23:55:03 +1000 Subject: [AccessD] A2003:Rename a file in a folder Message-ID: <20061024135506.QTAF16502.omta02ps.mx.bigpond.com@DENZILLAP> Hi all I have a file that will be always named the same - EG myCoolCSVfile.csv It will be dumped into a folder...say C:\MyCoolFolder at random times I need some code to Check the C:\myCoolFolder to see if the file myCoolCSVfile.csv file exists in the folder - and if it does to rename it to YYMMDDHHMMSS.csv Where YY = Year MM = Month DD = Day etc etc Does anyone have anything that might suit? Many thanks in advance Darren From darrend at nimble.com.au Tue Oct 24 09:02:55 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 25 Oct 2006 00:02:55 +1000 Subject: [AccessD] A2003:Remove first line in CSV/Excel file Message-ID: <20061024140302.TLMC11173.omta03ps.mx.bigpond.com@DENZILLAP> Further to my last Does anyone have any code that will remove the first line in an Excel doc but from Access? Many thanks again in advance Darren _____ From: Darren DICK [mailto:darrend at nimble.com.au] Sent: Tuesday, 24 October 2006 11:55 PM To: 'Access Developers discussion and problem solving' Subject: A2003:Rename a file in a folder Hi all I have a file that will be always named the same - EG myCoolCSVfile.csv It will be dumped into a folder...say C:\MyCoolFolder at random times I need some code to Check the C:\myCoolFolder to see if the file myCoolCSVfile.csv file exists in the folder - and if it does to rename it to YYMMDDHHMMSS.csv Where YY = Year MM = Month DD = Day etc etc Does anyone have anything that might suit? Many thanks in advance Darren From paul.hartland at fsmail.net Tue Oct 24 09:06:54 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 24 Oct 2006 16:06:54 +0200 (CEST) Subject: [AccessD] A2003:Rename a file in a folder Message-ID: <15615139.1161698814479.JavaMail.www@wwinf3202> Darren, Off the tope of my head use the following: Dim strFile As String strFile = Dir(myCoolCSVfile.csv, vbHidden) ' Put the full path before the filename If (strFile<>"" ) then Name myCoolCSVfile.csv As YYMMDDHHMMSS.csv ' Put the full path before the filename and new file name Endif ' Your routine to put the new file into C:\MyCoolFolder Paul Hartland Message Received: Oct 24 2006, 02:58 PM From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Cc: Subject: [AccessD] A2003:Rename a file in a folder Hi all I have a file that will be always named the same - EG myCoolCSVfile.csv It will be dumped into a folder...say C:\MyCoolFolder at random times I need some code to Check the C:\myCoolFolder to see if the file myCoolCSVfile.csv file exists in the folder - and if it does to rename it to YYMMDDHHMMSS.csv Where YY = Year MM = Month DD = Day etc etc Does anyone have anything that might suit? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From Lambert.Heenan at AIG.com Tue Oct 24 09:34:01 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 24 Oct 2006 09:34:01 -0500 Subject: [AccessD] Tip concerning dates in Access Message-ID: Well one reason is I never remember the DateValue function for some reason :-), but a better reason is that DateValue is slower. I'd guess the reason is that it takes a string as a parameter, so there's a type conversion going on to pass in its data to work on, then it returns a variant, which is another time wasting type conversion. I just did a quick test and found that on my box, 2,000,000 iterations of Cdate(Clng(Now())) took 1.62 seconds, but 2,000,000 calls to DateValue(Now()) took 26.5 seconds. Not a huge difference I'll agree, but significant especially if you are running the code against a table with potentially millions of rows. My guess is that a Long is considerably Closer to a Date than a String or a Variant is in terms of CPU cycles to do the conversion. Lambert. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, October 23, 2006 5:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Oct 24 10:03:16 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 24 Oct 2006 08:03:16 -0700 Subject: [AccessD] A2003:Remove first line in CSV/Excel file In-Reply-To: <20061024140302.TLMC11173.omta03ps.mx.bigpond.com@DENZILLAP> References: <20061024140302.TLMC11173.omta03ps.mx.bigpond.com@DENZILLAP> Message-ID: <453E2B34.5010806@shaw.ca> Use ADO with the Jet OLE DB Provider With Excel workbooks, the first row in a range is considered to be the header row (or field names) by default. If the first range does not contain headers, you can specify HDR=NO in the extended properties in your connection string. If the first row does not contain headers, the OLE DB provider automatically names the fields for you (where F1 would represent the first field, F2 would represent the second field, and so forth). Other Jet Provider Connection Settings Column headings: By default, it is assumed that the first row of your Excel data source contains columns headings that can be used as field names. If this is not the case, you must turn this setting off, or your first row of data "disappears" to be used as field names. This is done by adding the optional HDR= setting to the Extended Properties of the connection string. The default, which does not need to be specified, is HDR=Yes. If you do not have column headings, you need to specify HDR=No; the provider names your fields F1, F2, etc. Because the Extended Properties string now contains multiple values, it must be enclosed in double quotes itself, plus an additional pair of double quotes to tell Visual Basic to treat the first set of quotes as literal values, as in the following example (where extra spaces have been added for visual clarity). . ConnectionString = "Data Source=C:\MyFolder\MyWorkbook.xls;" & _ "Extended Properties=" " Excel 8.0; HDR=No;" " " ExcelADO.exe demonstrates how to use ADO to read and write data in Excel workbooks http://support.microsoft.com/?kbid=278973 or you can use DAO Dim dbtmp As DAO.Database Dim tblObj As DAO.TableDef Dim rs As DAO.Recordset Set dbtmp = OpenDatabase_ ("\test.xls", False, True, "Excel 8.0;") DoEvents ' Note the reverse apostrophe "`" while specifying the range ' name(myrange2). Set rs = dbtmp.OpenRecordset("select * from `myRange2`") While Not rs.EOF For x = 0 To rs.Fields.Count - 1 Debug.Print rs.Fields(x).Value Next rs.MoveNext Wend End Sub Note the reverse apostrophe "`" while specifying the range name(myrange2). Darren DICK wrote: >Further to my last > >Does anyone have any code that will remove the first line in an Excel doc but >from Access? > >Many thanks again in advance > >Darren > > > _____ > >From: Darren DICK [mailto:darrend at nimble.com.au] >Sent: Tuesday, 24 October 2006 11:55 PM >To: 'Access Developers discussion and problem solving' >Subject: A2003:Rename a file in a folder > > >Hi all > >I have a file that will be always named the same - EG myCoolCSVfile.csv > >It will be dumped into a folder...say C:\MyCoolFolder at random times > >I need some code to Check the C:\myCoolFolder to see if the file >myCoolCSVfile.csv file exists in the folder - and if it does to rename it to >YYMMDDHHMMSS.csv > >Where YY = Year MM = Month DD = Day etc etc > >Does anyone have anything that might suit? > >Many thanks in advance > >Darren > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Tue Oct 24 10:57:48 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 24 Oct 2006 17:57:48 +0200 Subject: [AccessD] Tip concerning dates in Access Message-ID: Hi Lambert This can be even faster as CDate() is not needed. Fix() and Int() are "transparent" as they often return the same data type as the input. Thus, to kill the time portion of a Date/time value, just use: A Date: Fix(dSomeDate) As a bonus, removing CDate() makes the conversion run about 40% faster in VBA and probably even faster in SQL as Fix() is native to JET SQL. Of course, as you mention, this is only of importance in iterations and loops. Also, study the thread "Convert SQL Server Date/Time to Date" of late May this year and "Sorting old dates" of April this year on why Fix() and Abs() must be used to sort old Date/time values. /gustav >>> Lambert.Heenan at AIG.com 24-10-2006 16:34:01 >>> Well one reason is I never remember the DateValue function for some reason :-), but a better reason is that DateValue is slower. I'd guess the reason is that it takes a string as a parameter, so there's a type conversion going on to pass in its data to work on, then it returns a variant, which is another time wasting type conversion. I just did a quick test and found that on my box, 2,000,000 iterations of Cdate(Clng(Now())) took 1.62 seconds, but 2,000,000 calls to DateValue(Now()) took 26.5 seconds. Not a huge difference I'll agree, but significant especially if you are running the code against a table with potentially millions of rows. My guess is that a Long is considerably Closer to a Date than a String or a Variant is in terms of CPU cycles to do the conversion. Lambert. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, October 23, 2006 5:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert From Lambert.Heenan at AIG.com Tue Oct 24 11:49:04 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 24 Oct 2006 11:49:04 -0500 Subject: [AccessD] Tip concerning dates in Access Message-ID: Hi Gustav, I agree that the output of Fix(ADate) works too, but then I have to remember to set the format property of a query field to "Short Date" (and we all know how bad my memory is) or else the query results will just show the Long value. FYI there seems to be little to gained from eliminating the Cdate() call, about 9.7 E-9 seconds per iteration. CDate(Fix(Now())) took 1.851563 seconds for 2000000 iterations. Fix(Now()) took 1.832031 seconds for 2000000 iterations. DateValue(Now()) took 24.9375 seconds for 2000000 iterations. Lambert :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 24, 2006 11:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Hi Lambert This can be even faster as CDate() is not needed. Fix() and Int() are "transparent" as they often return the same data type as the input. Thus, to kill the time portion of a Date/time value, just use: A Date: Fix(dSomeDate) As a bonus, removing CDate() makes the conversion run about 40% faster in VBA and probably even faster in SQL as Fix() is native to JET SQL. Of course, as you mention, this is only of importance in iterations and loops. Also, study the thread "Convert SQL Server Date/Time to Date" of late May this year and "Sorting old dates" of April this year on why Fix() and Abs() must be used to sort old Date/time values. /gustav >>> Lambert.Heenan at AIG.com 24-10-2006 16:34:01 >>> Well one reason is I never remember the DateValue function for some reason :-), but a better reason is that DateValue is slower. I'd guess the reason is that it takes a string as a parameter, so there's a type conversion going on to pass in its data to work on, then it returns a variant, which is another time wasting type conversion. I just did a quick test and found that on my box, 2,000,000 iterations of Cdate(Clng(Now())) took 1.62 seconds, but 2,000,000 calls to DateValue(Now()) took 26.5 seconds. Not a huge difference I'll agree, but significant especially if you are running the code against a table with potentially millions of rows. My guess is that a Long is considerably Closer to a Date than a String or a Variant is in terms of CPU cycles to do the conversion. Lambert. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, October 23, 2006 5:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Oct 24 12:43:19 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 24 Oct 2006 10:43:19 -0700 Subject: [AccessD] A2003:Remove first line in CSV/Excel file In-Reply-To: <20061024140302.TLMC11173.omta03ps.mx.bigpond.com@DENZILLAP> References: <20061024140302.TLMC11173.omta03ps.mx.bigpond.com@DENZILLAP> Message-ID: <453E50B7.2080405@shaw.ca> Ooops misread this should work Sub testexcelsave() Dim oApp As Excel.Application Dim ObjXLBook As Excel.Workbooks Dim sourceWkBkName As String Dim sNew As String On Error GoTo ExcelExit Set oApp = New Excel.Application 'or use createobject latebinding 'sourceWkBkName = oApp.GetOpenFilename("Excel Files(*.xls),*.xls", _ ' , "WHERE IS YOUR FILE?", "SELECT") With oApp .Visible = True .Workbooks.Open ("C:\Excel\product2.xls") '.ActiveSheet.Name = "Wisconsin" sNew = .ActiveSheet.Name With .Worksheets(sNew) .Rows(1).EntireRow.Delete End With MsgBox .ActiveWorkbook.FullName '.ActiveSheet.Rows("1:1").EntireRow.Delete .ActiveWorkbook.SaveCopyAs "C:\excel\product3.xls" '.ActiveWorkbook.SaveAs "C:\excel\product3.xls" 'hmm doesn't work with Excel 2007 .ActiveWorkbook.Close SaveChanges:=False .Workbooks.Close End With Set ObjXLBook = Nothing oApp.Quit Set oApp = Nothing ExcelExit: Debug.Print Err.Number & Err.Description End Sub Darren DICK wrote: >Further to my last > >Does anyone have any code that will remove the first line in an Excel doc but >from Access? > >Many thanks again in advance > >Darren > > > _____ > >From: Darren DICK [mailto:darrend at nimble.com.au] >Sent: Tuesday, 24 October 2006 11:55 PM >To: 'Access Developers discussion and problem solving' >Subject: A2003:Rename a file in a folder > > >Hi all > >I have a file that will be always named the same - EG myCoolCSVfile.csv > >It will be dumped into a folder...say C:\MyCoolFolder at random times > >I need some code to Check the C:\myCoolFolder to see if the file >myCoolCSVfile.csv file exists in the folder - and if it does to rename it to >YYMMDDHHMMSS.csv > >Where YY = Year MM = Month DD = Day etc etc > >Does anyone have anything that might suit? > >Many thanks in advance > >Darren > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Tue Oct 24 12:56:17 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 24 Oct 2006 19:56:17 +0200 Subject: [AccessD] Tip concerning dates in Access Message-ID: Hi Lambert That's because Now adds a floor. Use a constant and you'll see the real difference: n = Now : t = Timer : For i = 1 to 2 * 10 ^ 6 : d = CDate(Fix(n)) : Next : ? Timer - t n = Now : t = Timer : For i = 1 to 2 * 10 ^ 6 : d = Fix(n) : Next : ? Timer - t 0.712 0.391 This is VBA; in a query - where n is pulled from a table field - I doubt you can measure any difference. /gustav >>> Lambert.Heenan at AIG.com 24-10-2006 18:49:04 >>> Hi Gustav, I agree that the output of Fix(ADate) works too, but then I have to remember to set the format property of a query field to "Short Date" (and we all know how bad my memory is) or else the query results will just show the Long value. FYI there seems to be little to gained from eliminating the Cdate() call, about 9.7 E-9 seconds per iteration. CDate(Fix(Now())) took 1.851563 seconds for 2000000 iterations. Fix(Now()) took 1.832031 seconds for 2000000 iterations. DateValue(Now()) took 24.9375 seconds for 2000000 iterations. Lambert :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 24, 2006 11:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Hi Lambert This can be even faster as CDate() is not needed. Fix() and Int() are "transparent" as they often return the same data type as the input. Thus, to kill the time portion of a Date/time value, just use: A Date: Fix(dSomeDate) As a bonus, removing CDate() makes the conversion run about 40% faster in VBA and probably even faster in SQL as Fix() is native to JET SQL. Of course, as you mention, this is only of importance in iterations and loops. Also, study the thread "Convert SQL Server Date/Time to Date" of late May this year and "Sorting old dates" of April this year on why Fix() and Abs() must be used to sort old Date/time values. /gustav >>> Lambert.Heenan at AIG.com 24-10-2006 16:34:01 >>> Well one reason is I never remember the DateValue function for some reason :-), but a better reason is that DateValue is slower. I'd guess the reason is that it takes a string as a parameter, so there's a type conversion going on to pass in its data to work on, then it returns a variant, which is another time wasting type conversion. I just did a quick test and found that on my box, 2,000,000 iterations of Cdate(Clng(Now())) took 1.62 seconds, but 2,000,000 calls to DateValue(Now()) took 26.5 seconds. Not a huge difference I'll agree, but significant especially if you are running the code against a table with potentially millions of rows. My guess is that a Long is considerably Closer to a Date than a String or a Variant is in terms of CPU cycles to do the conversion. Lambert. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, October 23, 2006 5:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert From Lambert.Heenan at AIG.com Tue Oct 24 13:45:46 2006 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 24 Oct 2006 13:45:46 -0500 Subject: [AccessD] Tip concerning dates in Access Message-ID: Gustav: Interesting. But I wonder how much of the speed gain is real and how much is just some optimization going on. Is VBA smart enough to realize that "n" is constant and so emit p-code that does the evaluation once only while it otherwise does 2 million loops that do nothing? Fortunately I'm *not* usually working with tables holding millions of records. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 24, 2006 1:56 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Hi Lambert That's because Now adds a floor. Use a constant and you'll see the real difference: n = Now : t = Timer : For i = 1 to 2 * 10 ^ 6 : d = CDate(Fix(n)) : Next : ? Timer - t n = Now : t = Timer : For i = 1 to 2 * 10 ^ 6 : d = Fix(n) : Next : ? Timer - t 0.712 0.391 This is VBA; in a query - where n is pulled from a table field - I doubt you can measure any difference. /gustav >>> Lambert.Heenan at AIG.com 24-10-2006 18:49:04 >>> Hi Gustav, I agree that the output of Fix(ADate) works too, but then I have to remember to set the format property of a query field to "Short Date" (and we all know how bad my memory is) or else the query results will just show the Long value. FYI there seems to be little to gained from eliminating the Cdate() call, about 9.7 E-9 seconds per iteration. CDate(Fix(Now())) took 1.851563 seconds for 2000000 iterations. Fix(Now()) took 1.832031 seconds for 2000000 iterations. DateValue(Now()) took 24.9375 seconds for 2000000 iterations. Lambert :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 24, 2006 11:58 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Hi Lambert This can be even faster as CDate() is not needed. Fix() and Int() are "transparent" as they often return the same data type as the input. Thus, to kill the time portion of a Date/time value, just use: A Date: Fix(dSomeDate) As a bonus, removing CDate() makes the conversion run about 40% faster in VBA and probably even faster in SQL as Fix() is native to JET SQL. Of course, as you mention, this is only of importance in iterations and loops. Also, study the thread "Convert SQL Server Date/Time to Date" of late May this year and "Sorting old dates" of April this year on why Fix() and Abs() must be used to sort old Date/time values. /gustav >>> Lambert.Heenan at AIG.com 24-10-2006 16:34:01 >>> Well one reason is I never remember the DateValue function for some reason :-), but a better reason is that DateValue is slower. I'd guess the reason is that it takes a string as a parameter, so there's a type conversion going on to pass in its data to work on, then it returns a variant, which is another time wasting type conversion. I just did a quick test and found that on my box, 2,000,000 iterations of Cdate(Clng(Now())) took 1.62 seconds, but 2,000,000 calls to DateValue(Now()) took 26.5 seconds. Not a huge difference I'll agree, but significant especially if you are running the code against a table with potentially millions of rows. My guess is that a Long is considerably Closer to a Date than a String or a Variant is in terms of CPU cycles to do the conversion. Lambert. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, October 23, 2006 5:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Tue Oct 24 14:32:25 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Tue, 24 Oct 2006 23:32:25 +0400 Subject: [AccessD] MS Access 2007 - where may on have a look at the full list of the new objects, properties, methods, ... Message-ID: <001b01c6f7a3$225eb5c0$6401a8c0@nant> Hi All, As far as I see there are useful new properties of MS Access 2007 controls, e.g. ComboBox has got 'List Items Edit Form' property. Is there anywhere a full list of new objects, properties, methods? (MS Access 2007 online help doesn't have it. Or I'm missing it?). Thank you. -- Shamil From artful at rogers.com Tue Oct 24 15:34:21 2006 From: artful at rogers.com (artful at rogers.com) Date: Tue, 24 Oct 2006 13:34:21 -0700 (PDT) Subject: [AccessD] ADP documenter Message-ID: <20061024203421.91113.qmail@web88215.mail.re2.yahoo.com> Does anyone know of a documenter that works with ADPs and can document all the Access code plus the sprocs, views, udfs etc.? TIA, Arthur From DWUTKA at marlow.com Tue Oct 24 16:51:37 2006 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 24 Oct 2006 16:51:37 -0500 Subject: [AccessD] Tip concerning dates in Access Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDD3C@MARLOW_MAIN2.marlow.com> Okay, what about DateSerial(Month(date),Year(date), Day(date)) Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Tuesday, October 24, 2006 9:34 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Tip concerning dates in Access Well one reason is I never remember the DateValue function for some reason :-), but a better reason is that DateValue is slower. I'd guess the reason is that it takes a string as a parameter, so there's a type conversion going on to pass in its data to work on, then it returns a variant, which is another time wasting type conversion. I just did a quick test and found that on my box, 2,000,000 iterations of Cdate(Clng(Now())) took 1.62 seconds, but 2,000,000 calls to DateValue(Now()) took 26.5 seconds. Not a huge difference I'll agree, but significant especially if you are running the code against a table with potentially millions of rows. My guess is that a Long is considerably Closer to a Date than a String or a Variant is in terms of CPU cycles to do the conversion. Lambert. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, October 23, 2006 5:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Oct 24 21:21:22 2006 From: artful at rogers.com (artful at rogers.com) Date: Tue, 24 Oct 2006 19:21:22 -0700 (PDT) Subject: [AccessD] Friday Humour a few days early: RAID Message-ID: <20061025022122.18518.qmail@web88205.mail.re2.yahoo.com> What does the RAID really mean? http://sickedank. com/raid. jpg From darrend at nimble.com.au Tue Oct 24 21:27:43 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 25 Oct 2006 12:27:43 +1000 Subject: [AccessD] A2003:Rename a file in a folder In-Reply-To: <15615139.1161698814479.JavaMail.www@wwinf3202> Message-ID: <453ecbd8.72600bdd.1af6.ffffcbd9@mx.google.com> Hi Paul That's is so simple - brilliant Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Wednesday, 25 October 2006 12:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Rename a file in a folder Importance: High Darren, Off the tope of my head use the following: Dim strFile As String strFile = Dir(myCoolCSVfile.csv, vbHidden) ' Put the full path before the filename If (strFile<>"" ) then Name myCoolCSVfile.csv As YYMMDDHHMMSS.csv ' Put the full path before the filename and new file name Endif ' Your routine to put the new file into C:\MyCoolFolder Paul Hartland Message Received: Oct 24 2006, 02:58 PM From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Cc: Subject: [AccessD] A2003:Rename a file in a folder Hi all I have a file that will be always named the same - EG myCoolCSVfile.csv It will be dumped into a folder...say C:\MyCoolFolder at random times I need some code to Check the C:\myCoolFolder to see if the file myCoolCSVfile.csv file exists in the folder - and if it does to rename it to YYMMDDHHMMSS.csv Where YY = Year MM = Month DD = Day etc etc Does anyone have anything that might suit? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Tue Oct 24 21:27:43 2006 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 25 Oct 2006 12:27:43 +1000 Subject: [AccessD] A2003:Remove first line in CSV/Excel file In-Reply-To: <453E50B7.2080405@shaw.ca> Message-ID: <453ecbdc.2882ec33.1af6.ffffcbe8@mx.google.com> Marty - Brilliant will try it this PM Than ks so much Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, 25 October 2006 3:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Remove first line in CSV/Excel file Ooops misread this should work Sub testexcelsave() Dim oApp As Excel.Application Dim ObjXLBook As Excel.Workbooks Dim sourceWkBkName As String Dim sNew As String On Error GoTo ExcelExit Set oApp = New Excel.Application 'or use createobject latebinding 'sourceWkBkName = oApp.GetOpenFilename("Excel Files(*.xls),*.xls", _ ' , "WHERE IS YOUR FILE?", "SELECT") With oApp .Visible = True .Workbooks.Open ("C:\Excel\product2.xls") '.ActiveSheet.Name = "Wisconsin" sNew = .ActiveSheet.Name With .Worksheets(sNew) .Rows(1).EntireRow.Delete End With MsgBox .ActiveWorkbook.FullName '.ActiveSheet.Rows("1:1").EntireRow.Delete .ActiveWorkbook.SaveCopyAs "C:\excel\product3.xls" '.ActiveWorkbook.SaveAs "C:\excel\product3.xls" 'hmm doesn't work with Excel 2007 .ActiveWorkbook.Close SaveChanges:=False .Workbooks.Close End With Set ObjXLBook = Nothing oApp.Quit Set oApp = Nothing ExcelExit: Debug.Print Err.Number & Err.Description End Sub Darren DICK wrote: >Further to my last > >Does anyone have any code that will remove the first line in an Excel doc but >from Access? > >Many thanks again in advance > >Darren > > > _____ > >From: Darren DICK [mailto:darrend at nimble.com.au] >Sent: Tuesday, 24 October 2006 11:55 PM >To: 'Access Developers discussion and problem solving' >Subject: A2003:Rename a file in a folder > > >Hi all > >I have a file that will be always named the same - EG myCoolCSVfile.csv > >It will be dumped into a folder...say C:\MyCoolFolder at random times > >I need some code to Check the C:\myCoolFolder to see if the file >myCoolCSVfile.csv file exists in the folder - and if it does to rename it to >YYMMDDHHMMSS.csv > >Where YY = Year MM = Month DD = Day etc etc > >Does anyone have anything that might suit? > >Many thanks in advance > >Darren > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Oct 24 22:20:02 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 24 Oct 2006 23:20:02 -0400 Subject: [AccessD] Friday Humour a few days early: RAID In-Reply-To: <20061025022122.18518.qmail@web88205.mail.re2.yahoo.com> Message-ID: <001801c6f7e4$770e2e20$657aa8c0@m6805> ROTFL! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, October 24, 2006 10:21 PM To: AccessD Subject: [AccessD] Friday Humour a few days early: RAID What does the RAID really mean? http://sickedank. com/raid. jpg -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max at sherman.org.uk Wed Oct 25 02:02:19 2006 From: max at sherman.org.uk (Max Home) Date: Wed, 25 Oct 2006 08:02:19 +0100 Subject: [AccessD] Looks as if we are all out of a job now. In-Reply-To: <453ecbd8.72600bdd.1af6.ffffcbd9@mx.google.com> Message-ID: <003701c6f803$84456ad0$8119fea9@MaxLapTop> Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max From Gustav at cactus.dk Wed Oct 25 02:08:18 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Oct 2006 09:08:18 +0200 Subject: [AccessD] Tip concerning dates in Access Message-ID: Hi Drew That - DateSerial(Year(date), Month(date), Day(date)) - will work and has the advantage of being self-explanatory but it runs about 18 times slower. /gustav >>> DWUTKA at marlow.com 24-10-2006 23:51 >>> Okay, what about DateSerial(Month(date),Year(date), Day(date)) Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Tuesday, October 24, 2006 9:34 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Tip concerning dates in Access Well one reason is I never remember the DateValue function for some reason :-), but a better reason is that DateValue is slower. I'd guess the reason is that it takes a string as a parameter, so there's a type conversion going on to pass in its data to work on, then it returns a variant, which is another time wasting type conversion. I just did a quick test and found that on my box, 2,000,000 iterations of Cdate(Clng(Now())) took 1.62 seconds, but 2,000,000 calls to DateValue(Now()) took 26.5 seconds. Not a huge difference I'll agree, but significant especially if you are running the code against a table with potentially millions of rows. My guess is that a Long is considerably Closer to a Date than a String or a Variant is in terms of CPU cycles to do the conversion. Lambert. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, October 23, 2006 5:26 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Tip concerning dates in Access Why not just use DateValue? Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Monday, October 23, 2006 11:06 AM To: 'Access-D Email (accessd at databaseadvisors.com)'; 'ACCESS-L Email (ACCESS-L at PEACH.EASE.LSOFT.COM)' Subject: [AccessD] Tip concerning dates in Access Often you'll have a date field in a table that has the date and time stored in it, but you may want to run a query that simply shows the date, without the time. Up to now I have been using Clng() to strip off the time part in a query like this: A Date: Cdate(Clng(dSomeDate)) but I just realized the lurking bug in this. CLng rounds up or down, depending on which side of noon the time part is. So 1/1/2006 08:30:00 AM would display as 1/1/2006, but 1/1/2006 12:30:00 PM would be 1/2/2006. To avoid this problem use Fix() instead of Clng()... A Date: Cdate(Fix(dSomeDate)) Fix always returns just the 'integer' part of the number passed to it. The documentation suggests that Fix only returns an integer, but in fact it is capable or returning Longs too, which is what date values are equivalent to. HTH Lambert From kost36 at otenet.gr Wed Oct 25 02:46:31 2006 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Wed, 25 Oct 2006 10:46:31 +0300 Subject: [AccessD] opening a specific file via double click... References: <15615139.1161698814479.JavaMail.www@wwinf3202> Message-ID: <031501c6f809$b03b53b0$0202fea9@kost36> dear group for one more time i need your help I have a text field in which the stored data are just names of files (e.g. aaa.pdf) Is that possible by double click on the specific field to load the file with the same name as well? thank's a lot /kostas ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, October 24, 2006 5:06 PM Subject: Re: [AccessD] A2003:Rename a file in a folder > Darren, > > Off the tope of my head use the following: > > Dim strFile As String > > strFile = Dir(myCoolCSVfile.csv, vbHidden) ' Put the full path before the > filename > If (strFile<>"" ) then > Name myCoolCSVfile.csv As YYMMDDHHMMSS.csv ' Put the full path > before the filename and new file name > Endif > > ' Your routine to put the new file into C:\MyCoolFolder > > Paul Hartland > > > > Message Received: Oct 24 2006, 02:58 PM > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > Cc: > Subject: [AccessD] A2003:Rename a file in a folder > > Hi all > > I have a file that will be always named the same - EG myCoolCSVfile.csv > > It will be dumped into a folder...say C:\MyCoolFolder at random times > > I need some code to Check the C:\myCoolFolder to see if the file > myCoolCSVfile.csv file exists in the folder - and if it does to rename it > to > YYMMDDHHMMSS.csv > > Where YY = Year MM = Month DD = Day etc etc > > Does anyone have anything that might suit? > > Many thanks in advance > > Darren > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Wed Oct 25 04:13:12 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 25 Oct 2006 9:13:12 +0000 Subject: [AccessD] Looks as if we are all out of a job now. Message-ID: <20061025081326.0F7256538E@smtp.nildram.co.uk> ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Wed Oct 25 04:29:46 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 25 Oct 2006 9:29:46 +0000 Subject: [AccessD] opening a specific file via double click... Message-ID: <20061025082949.5D95054EEA@smtp.nildram.co.uk> Hi Kostas, this is what I use. Create a module and paste this in ''''''''''''''' Declare Function ShellExecute Lib "shell32" Alias "ShellExecuteA" (ByVal hWnd As Long, _ ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, _ ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Private Const InadequateMemory = 0 Private Const FileNotFound = 2 Private Const PathNotFound = 3 Private Const BadFormat = 11 Private Const NotRegistered = 31 Private Const Success = 32 Private Const BIF_RETURNONLYFSDIRS = &H1 Public Const sizeNormal = 1 Public Const sizeMinimize = 2 Public Const sizeMaximize = 3 Function RunApp(strFile As String, bytSize) As Boolean Dim lngRet As Long Dim varTaskID As Variant Dim strRet As String lngRet = ShellExecute(hWndAccessApp, vbNullString, strFile, vbNullString, vbNullString, bytSize) If lngRet > Success Then strRet = vbNullString lngRet = -1 RunApp = True Else RunApp = False Select Case lngRet Case NotRegistered varTaskID = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL " & strFile, bytSize) lngRet = (varTaskID <> 0) Case InadequateMemory MsgBox "Error: Out of Memory/Resources!" Case FileNotFound MsgBox "Error: File not found!" Case PathNotFound MsgBox "Error: Path not found!" Case BadFormat MsgBox "Error: Bad File Format!" Case 5 MsgBox "Error: Unauthorized due to Security restrictions!" End Select End If End Function ''''''''''''''' You can then open any registered file type with the following: Call RunApp(stryourfilename,1) HTH -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: [AccessD] opening a specific file via double click... Date: 25/10/06 07:51 dear group for one more time i need your help I have a text field in which the stored data are just names of files (e.g. aaa.pdf) Is that possible by double click on the specific field to load the file with the same name as well? thank's a lot /kostas ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, October 24, 2006 5:06 PM Subject: Re: [AccessD] A2003:Rename a file in a folder > Darren, > > Off the tope of my head use the following: > > Dim strFile As String > > strFile = Dir(myCoolCSVfile.csv, vbHidden) ' Put the full path before the > filename > If (strFile<>"" ) then > Name myCoolCSVfile.csv As YYMMDDHHMMSS.csv ' Put the full path > before the filename and new file name > Endif > > ' Your routine to put the new file into C:MyCoolFolder > > Paul Hartland > > > > Message Received: Oct 24 2006, 02:58 PM > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > Cc: > Subject: [AccessD] A2003:Rename a file in a folder > > Hi all > > I have a file that will be always named the same - EG myCoolCSVfile.csv > > It will be dumped into a folder...say C:MyCoolFolder at random times > > I need some code to Check the C:myCoolFolder to see if the file > myCoolCSVfile.csv file exists in the folder - and if it does to rename it > to > YYMMDDHHMMSS.csv > > Where YY = Year MM = Month DD = Day etc etc > > Does anyone have anything that might suit? > > Many thanks in advance > > Darren > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > Paul Hartland > paul.hartland at fsmail.net > 07730 523179 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From paul.hartland at fsmail.net Wed Oct 25 04:54:41 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 25 Oct 2006 11:54:41 +0200 (CEST) Subject: [AccessD] OT - Infragistics Ultragrid on Visual Basic 6.0 Form Message-ID: <28867723.1161770081337.JavaMail.www@wwinf3204.me-wanadoo.net> To all, I have cross posted this as I don't know if that many of you out there would have used or still be using the Infragistics suite (mainly the UltraGrid). I have a grid with one of the columns set to a dropdown on the fly, and I create and populate the valuelist for it on the fly. This all works fine, I got to the employees record, click onto their training tab and it displays exactly what I want......BUT the problem is if I make a selection from the dropdown, it just nulls the training id all the time....All the help files I can find seems though I am doing this correctly but I must be missing something. If anyone out there thinks they may be able to help me, feel free to contact me on here or offline, as I have now been working on this for 3.25 hours and it is really starting to get to me :( Thanks in advance for all your help. Paul Hartland Paul Hartland paul.hartland at fsmail.net 07730 523179 From hollisvj at pgdp.usec.com Wed Oct 25 11:13:58 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 25 Oct 2006 11:13:58 -0500 Subject: [AccessD] Calculating Date/Time Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01014FF7@c2k3exchange.pgdp.corp.usec.com> I have a database that tracks elapsed minutes of a project. The elapsed minutes are from the date/time a project was opened until the date/time it was closed. I need to create a query that shows the average time it takes to close a project for each technician. The elapsed minutes is a number field. What do I need to do to turn all those minutes into something that shows how many days, hours, minutes it took to close the project? Then figure the average time it takes each tech to close a project. What I need: Average age of a project Average time it takes to close a project Something that turns minutes to days (or figure it from dateopened & dateCompleted, which is shown as: 12/21/2001 10:07:52 AM Virginia From garykjos at gmail.com Wed Oct 25 11:41:32 2006 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 25 Oct 2006 11:41:32 -0500 Subject: [AccessD] Calculating Date/Time In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01014FF7@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D01014FF7@c2k3exchange.pgdp.corp.usec.com> Message-ID: I would use the DateDiff function >From the Access 97 Help file..... ---------------------------- Returns a Variant (Long) specifying the number of time intervals between two specified dates. Syntax DateDiff(interval, date1, date2[, firstdayofweek[, firstweekofyear]]) The DateDiff function syntax has these named arguments: Part Description interval Required. String expression that is the interval of time you use to calculate the difference between date1 and date2. date1, date2 Required; Variant (Date). Two dates you want to use in the calculation. firstdayofweek Optional. A constant that specifies the first day of the week. If not specified, Sunday is assumed. firstweekofyear Optional. A constant that specifies the first week of the year. If not specified, the first week is assumed to be the week in which January 1 occurs. Settings The interval argument has these settings: Setting Description yyyy Year q Quarter m Month y Day of year d Day w Weekday ww Week h Hour n Minute s Second The firstdayofweek argument has these settings: Constant Value Description vbUseSystem 0 Use the NLS API setting. vbSunday 1 Sunday (default) vbMonday 2 Monday vbTuesday 3 Tuesday vbWednesday 4 Wednesday vbThursday 5 Thursday vbFriday 6 Friday vbSaturday 7 Saturday The firstweekofyear argument has these settings: Constant Value Description vbUseSystem 0 Use the NLS API setting. vbFirstJan1 1 Start with week in which January 1 occurs (default). vbFirstFourDays 2 Start with the first week that has at least four days in the new year. vbFirstFullWeek 3 Start with first full week of the year. Remarks You can use the DateDiff function to determine how many specified time intervals exist between two dates. For example, you might use DateDiff to calculate the number of days between two dates, or the number of weeks between today and the end of the year. To calculate the number of days between date1 and date2, you can use either Day of year ("y") or Day ("d"). When interval is Weekday ("w"), DateDiff returns the number of weeks between the two dates. If date1 falls on a Monday, DateDiff counts the number of Mondays until date2. It counts date2 but not date1. If interval is Week ("ww"), however, the DateDiff function returns the number of calendar weeks between the two dates. It counts the number of Sundays between date1 and date2. DateDiff counts date2 if it falls on a Sunday; but it doesn't count date1, even if it does fall on a Sunday. If date1 refers to a later point in time than date2, the DateDiff function returns a negative number. The firstdayofweek argument affects calculations that use the "w" and "ww" interval symbols. If date1 or date2 is a date literal, the specified year becomes a permanent part of that date. However, if date1 or date2 is enclosed in double quotation marks (" "), and you omit the year, the current year is inserted in your code each time the date1 or date2 expression is evaluated. This makes it possible to write code that can be used in different years. When comparing December 31 to January 1 of the immediately succeeding year, DateDiff for Year ("yyyy") returns 1 even though only a day has elapsed. ---------------------------- On 10/25/06, Hollis, Virginia wrote: > I have a database that tracks elapsed minutes of a project. The elapsed > minutes are from the date/time a project was opened until the date/time > it was closed. > > > > I need to create a query that shows the average time it takes to close a > project for each technician. The elapsed minutes is a number field. > > > > What do I need to do to turn all those minutes into something that shows > how many days, hours, minutes it took to close the project? Then figure > the average time it takes each tech to close a project. > > > > What I need: > > Average age of a project > > Average time it takes to close a project > > Something that turns minutes to days (or figure it from dateopened & > dateCompleted, which is shown as: 12/21/2001 10:07:52 AM > > > > Virginia > > -- > 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 hollisvj at pgdp.usec.com Wed Oct 25 12:52:52 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 25 Oct 2006 12:52:52 -0500 Subject: [AccessD] Calculating Date/Time Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01015004@c2k3exchange.pgdp.corp.usec.com> I got the DateDiff in days - so how do I get the Average number of days it took to close for each person? >I would use the DateDiff function From mikedorism at verizon.net Wed Oct 25 12:59:36 2006 From: mikedorism at verizon.net (Doris Manning) Date: Wed, 25 Oct 2006 13:59:36 -0400 Subject: [AccessD] Calculating Date/Time In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01015004@c2k3exchange.pgdp.corp.usec.com> Message-ID: <000d01c6f85f$5603d0b0$2f01a8c0@Kermit> Click on the "Group By" button. Set the person information to "Group By" and set the calculated column to "Average". Doris Manning -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, October 25, 2006 1:53 PM To: accessd at databaseadvisors.com Subject: [AccessD] Calculating Date/Time I got the DateDiff in days - so how do I get the Average number of days it took to close for each person? >I would use the DateDiff function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Wed Oct 25 13:02:05 2006 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 25 Oct 2006 13:02:05 -0500 Subject: [AccessD] Calculating Date/Time In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01015004@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D01015004@c2k3exchange.pgdp.corp.usec.com> Message-ID: Do a Group By or Totals query, grouping on the person and averaging on the number of days. Something like this SELECT tblDataTable.PERSON_ID, Avg(tblDataTable.DaysToClose) AS AvgOfDaysToClose FROM tblDataTable GROUP BY tblDataTable.PERSON_ID; You can write the results to a temp file if you need to by making it into a Make Table query if you need to and then use that to update a master file someplace. GK On 10/25/06, Hollis, Virginia wrote: > I got the DateDiff in days - so how do I get the Average number of days > it took to close for each person? > > > > > >I would use the DateDiff function > > > > -- > 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 bheid at appdevgrp.com Wed Oct 25 13:13:01 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 25 Oct 2006 14:13:01 -0400 Subject: [AccessD] Calculating Date/Time In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E5F2C5@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35A0B@ADGSERVER> Not sure of the first two, but the one way of calculating elapsed time could be something like (note no error checking) that could be called from a query: Public Function Elapsed(ByVal strDate1 As String, ByVal strDate2 As String) As String Dim h As Long Dim m As Long Dim d As Long Dim Mins As Long 'get total # of minutes elapsed Mins = DateDiff("n", strDate1, strDate2) 'get days d = Mins \ 1440 'integer division (# minutes in a day) 'remove days from the total Mins = Mins - (d * 1440) 'get hours h = Mins \ 60 'remove minutes from total Mins = Mins - (h * 60) m = Mins Elapsed = d & " day(s), " & h & " hours, " & m & " minutes" End Function Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, October 25, 2006 12:14 PM To: accessD at databaseadvisors.com Subject: [AccessD] Calculating Date/Time I have a database that tracks elapsed minutes of a project. The elapsed minutes are from the date/time a project was opened until the date/time it was closed. I need to create a query that shows the average time it takes to close a project for each technician. The elapsed minutes is a number field. What do I need to do to turn all those minutes into something that shows how many days, hours, minutes it took to close the project? Then figure the average time it takes each tech to close a project. What I need: Average age of a project Average time it takes to close a project Something that turns minutes to days (or figure it from dateopened & dateCompleted, which is shown as: 12/21/2001 10:07:52 AM Virginia From hollisvj at pgdp.usec.com Wed Oct 25 13:15:54 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 25 Oct 2006 13:15:54 -0500 Subject: [AccessD] Calculating Date/Time Message-ID: <703BDA18A87DFA4CB265A86F42E4178D0101500A@c2k3exchange.pgdp.corp.usec.com> Thanks! Last question... The Average shows like: 0.0909090909090909 how can I get it to show without all the numbers - like round it? DaysClose: DateDiff("d",[opendate],[clsddate]) Click on the "Group By" button. Set the person information to "Group By" and set the calculated column to "Average". Doris Manning From Gustav at cactus.dk Wed Oct 25 12:19:42 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 25 Oct 2006 19:19:42 +0200 Subject: [AccessD] Calculating Date/Time Message-ID: Hi Virginia Not quite clear what you have - DateOpened and elapsed minutes or DateCompleted? But in the first case use: datDateCompleted = DateAdd("n", lngMinutes, datDateOpened) /gustav >>> hollisvj at pgdp.usec.com 25-10-2006 18:13:58 >>> I have a database that tracks elapsed minutes of a project. The elapsed minutes are from the date/time a project was opened until the date/time it was closed. I need to create a query that shows the average time it takes to close a project for each technician. The elapsed minutes is a number field. What do I need to do to turn all those minutes into something that shows how many days, hours, minutes it took to close the project? Then figure the average time it takes each tech to close a project. What I need: Average age of a project Average time it takes to close a project Something that turns minutes to days (or figure it from dateopened & dateCompleted, which is shown as: 12/21/2001 10:07:52 AM Virginia From hollisvj at pgdp.usec.com Wed Oct 25 13:39:30 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 25 Oct 2006 13:39:30 -0500 Subject: [AccessD] Calculating Date/Time Message-ID: <703BDA18A87DFA4CB265A86F42E4178D0101500F@c2k3exchange.pgdp.corp.usec.com> I have no idea how to call the function from a query. Virginia Not sure of the first two, but the one way of calculating elapsed time could be something like (note no error checking) that could be called from a query: Public Function Elapsed(ByVal strDate1 As String, ByVal strDate2 As String) As String Dim h As Long Dim m As Long Dim d As Long Dim Mins As Long 'get total # of minutes elapsed Mins = DateDiff("n", strDate1, strDate2) 'get days d = Mins \ 1440 'integer division (# minutes in a day) 'remove days from the total Mins = Mins - (d * 1440) 'get hours h = Mins \ 60 'remove minutes from total Mins = Mins - (h * 60) m = Mins Elapsed = d & " day(s), " & h & " hours, " & m & " minutes" End Function From bheid at appdevgrp.com Wed Oct 25 13:51:46 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 25 Oct 2006 14:51:46 -0400 Subject: [AccessD] Calculating Date/Time In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E5F30C@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35A0C@ADGSERVER> Something like (in the query grid): ElapsedTime: Elapsed([FirstDate],[SecondDate]) Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, October 25, 2006 2:40 PM To: accessd at databaseadvisors.com Subject: [AccessD] Calculating Date/Time I have no idea how to call the function from a query. Virginia Not sure of the first two, but the one way of calculating elapsed time could be something like (note no error checking) that could be called from a query: Public Function Elapsed(ByVal strDate1 As String, ByVal strDate2 As String) As String Dim h As Long Dim m As Long Dim d As Long Dim Mins As Long 'get total # of minutes elapsed Mins = DateDiff("n", strDate1, strDate2) 'get days d = Mins \ 1440 'integer division (# minutes in a day) 'remove days from the total Mins = Mins - (d * 1440) 'get hours h = Mins \ 60 'remove minutes from total Mins = Mins - (h * 60) m = Mins Elapsed = d & " day(s), " & h & " hours, " & m & " minutes" End Function From mikedorism at verizon.net Wed Oct 25 13:53:59 2006 From: mikedorism at verizon.net (Doris Manning) Date: Wed, 25 Oct 2006 14:53:59 -0400 Subject: [AccessD] Calculating Date/Time In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D0101500A@c2k3exchange.pgdp.corp.usec.com> Message-ID: <000e01c6f866$eebf39a0$2f01a8c0@Kermit> You would need to control that through the Form or Report you are using to display the results. Doris Manning -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, October 25, 2006 2:16 PM To: accessd at databaseadvisors.com Subject: [AccessD] Calculating Date/Time Thanks! Last question... The Average shows like: 0.0909090909090909 how can I get it to show without all the numbers - like round it? DaysClose: DateDiff("d",[opendate],[clsddate]) Click on the "Group By" button. Set the person information to "Group By" and set the calculated column to "Average". Doris Manning -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Wed Oct 25 13:57:29 2006 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 25 Oct 2006 13:57:29 -0500 Subject: [AccessD] Calculating Date/Time In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D0101500A@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D0101500A@c2k3exchange.pgdp.corp.usec.com> Message-ID: If you bring up the properties for that column you will see a format and number of decimals property you can set for the column. To see the properties of the column, RIGHT click on the very very top of that column in design view grid. GK On 10/25/06, Hollis, Virginia wrote: > Thanks! Last question... > > The Average shows like: 0.0909090909090909 how can I get it to show > without all the numbers - like round it? > > DaysClose: DateDiff("d",[opendate],[clsddate]) > > > Click on the "Group By" button. Set the person information to "Group > By" > and set the calculated column to "Average". > > Doris Manning > > > > -- > 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 hollisvj at pgdp.usec.com Wed Oct 25 13:59:25 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 25 Oct 2006 13:59:25 -0500 Subject: [AccessD] Calculating Date/Time Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01015011@c2k3exchange.pgdp.corp.usec.com> Came out as: 0 day(s), 0 hours, 0 minutes, on all the records. From bheid at appdevgrp.com Wed Oct 25 14:38:30 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 25 Oct 2006 15:38:30 -0400 Subject: [AccessD] Calculating Date/Time In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E5F31C@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35A0E@ADGSERVER> hmm. I tested it in code only originally. I just tested it with: SELECT Contract.[Contract ID], Contract.ContractNum, Contract.Start, Contract.StartWorkDate, Elapsed([Start],[StartWorkDate]) AS Elap FROM Contract; and it worked fine. Here's the output (partial) Contract ID ContractNum Start StartWorkDate Elap 45 B40950 000031-2 5/23/2005 6/20/2005 28 day(s), 0 hours, 0 minutes 46 D20163 000032-2 6/7/2005 10/3/2005 118 day(s), 0 hours, 0 minutes 47 D20164 000033-3 9/20/2005 10/3/2005 13 day(s), 0 hours, 0 minutes 48 B40970 000034-2 10/18/2005 10/18/2005 0 day(s), 0 hours, 0 minutes 49 A00000 000000-0 6/20/2005 6/20/2005 0 day(s), 0 hours, 0 minutes Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, October 25, 2006 2:59 PM To: accessd at databaseadvisors.com Subject: [AccessD] Calculating Date/Time Came out as: 0 day(s), 0 hours, 0 minutes, on all the records. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Oct 25 14:41:25 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 25 Oct 2006 12:41:25 -0700 Subject: [AccessD] Looks as if we are all out of a job now. In-Reply-To: <20061025081326.0F7256538E@smtp.nildram.co.uk> Message-ID: Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, October 25, 2006 2:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Oct 25 14:43:09 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 25 Oct 2006 12:43:09 -0700 Subject: [AccessD] OT - Infragistics Ultragrid on Visual Basic 6.0 Form In-Reply-To: <28867723.1161770081337.JavaMail.www@wwinf3204.me-wanadoo.net> Message-ID: Wish I could help, but I'm only familiar with the .Net implementations of the Infragistics grids. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Wednesday, October 25, 2006 2:55 AM To: accessd; dba-sqlserver; dba-vb Subject: [AccessD] OT - Infragistics Ultragrid on Visual Basic 6.0 Form Importance: High To all, I have cross posted this as I don't know if that many of you out there would have used or still be using the Infragistics suite (mainly the UltraGrid). I have a grid with one of the columns set to a dropdown on the fly, and I create and populate the valuelist for it on the fly. This all works fine, I got to the employees record, click onto their training tab and it displays exactly what I want......BUT the problem is if I make a selection from the dropdown, it just nulls the training id all the time....All the help files I can find seems though I am doing this correctly but I must be missing something. If anyone out there thinks they may be able to help me, feel free to contact me on here or offline, as I have now been working on this for 3.25 hours and it is really starting to get to me :( Thanks in advance for all your help. Paul Hartland Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Oct 25 15:21:20 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 25 Oct 2006 16:21:20 -0400 Subject: [AccessD] Looks as if we are all out of a job now. In-Reply-To: Message-ID: <003901c6f873$22d83500$657aa8c0@m6805> LOL, only YOU are old enough to remember that. 8~0 John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, October 25, 2006 3:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, October 25, 2006 2:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Wed Oct 25 15:23:02 2006 From: askolits at ot.com (John Skolits) Date: Wed, 25 Oct 2006 16:23:02 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: Message-ID: <006701c6f873$61ebf920$6501a8c0@LaptopXP> Any way to do a running sum in a "query" without having to deal with the overhead of a domain function (Like DSUM)? From wdhindman at dejpolsystems.com Wed Oct 25 15:50:40 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 25 Oct 2006 16:50:40 -0400 Subject: [AccessD] Looks as if we are all out of a job now. References: <003901c6f873$22d83500$657aa8c0@m6805> Message-ID: <000b01c6f877$3bc23da0$6136e944@50NM721> ...wrong! ...unfortunately :( William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, October 25, 2006 4:21 PM Subject: Re: [AccessD] Looks as if we are all out of a job now. > LOL, only YOU are old enough to remember that. 8~0 > > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Wednesday, October 25, 2006 3:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Looks as if we are all out of a job now. > > Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, October 25, 2006 2:13 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Looks as if we are all out of a job now. > > ROTFL. I agree Max, we may as well hang up our coding sheets. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > --------- Original Message -------- > From: "Access Developers discussion and problem solving" > > To: "'Access Developers discussion and problem solving'" > > Subject: [AccessD] Looks as if we are all out of a job now. > Date: 25/10/06 07:08 > > > > Here is an extract from a newsletter I subscribe to: > > > quote > > an interesting excerpt from the Vista EULA (PDF download): > > "8. SCOPE OF LICENSE... You may not work around any technical limitations > in > the software;" > > I read that as saying that we're all pretty much out of a job... > Unquote > > > > Regards > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From pharold at proftesting.com Wed Oct 25 16:01:22 2006 From: pharold at proftesting.com (Perry L Harold) Date: Wed, 25 Oct 2006 17:01:22 -0400 Subject: [AccessD] Looks as if we are all out of a job now. Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD335509@EXCHANGE.ptiorl.local> Pretty sure WFWG 3.11 had similar. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, October 25, 2006 4:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Looks as if we are all out of a job now. LOL, only YOU are old enough to remember that. 8~0 John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, October 25, 2006 3:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, October 25, 2006 2:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Wed Oct 25 16:21:23 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Thu, 26 Oct 2006 01:21:23 +0400 Subject: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, properties, methods, ... Message-ID: <001201c6f87b$85f54f30$6401a8c0@nant> Hi All, As far as I see there are ~300+ new properties for MS Access 2007 objects. 153 of these properties are to set/get embedded macros' to process forms'/reports'/controls' events - like in this sample to set embedded macro for command button's Click event: Dim strMacro As String strMacro = _ "Version = 196611" & vbCrLf & _ "ColumnsShown = 8" & vbCrLf & _ "Begin" & vbCrLf & _ " Action = ""OpenForm""" & vbCrLf & _ " Argument = ""frmTest""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = ""-1""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ "End" Me.cmdTest.Properties("OnClickEmMacro").Value = strMacro These new [{EventName}EmMacro] properties seems to be available only via .Properties collection. Another interesting new feature is that Report object has now additionally all the events of the Form object and reports' controls have now all the events of the corresponding form controls... Here is the list of unique new properties' names ([{EventName}EmMacro] properties are not listed): AggregateType AllowLayoutView AllowReportView AllowValueListEdits AlternateBackColor AppendOnly AutoHeight BottomPadding CursorOnHover CustomRibbonID DatasheetAlternateBackColor DatasheetCaption DisplayAsHyperlink DisplayOnSharePointSite FilterOnEmptyMaster FilterOnLoad FitToPage GridlineColor GridlineStyleBottom GridlineStyleLeft GridlineStyleRight GridlineStyleTop GridlineWidthBottom GridlineWidthLeft GridlineWidthRight GridlineWidthTop HorizontalAnchor ImageData InheritValueList Layout LayoutID LeftPadding ListItemsEditForm NavigationCaption NavPane Category NavPane Closed NavPane Sort By NavPane View By NavPane Width OnPaint OrderByOnLoad RightPadding SaveSplitterBarPosition SeparatorCharacters ShowDatePicker ShowOnlyRowSourceValues ShowPageMargins SplitFormDatasheet SplitFormOrientation SplitFormPrinting SplitFormSize SplitFormSplitterBar TextFormat TopPadding UseDefaultPaperSize VerticalAnchor If that is interesting I can publish complete list of 300+ new properties somewhere on my site.... -- Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Tuesday, October 24, 2006 11:32 PM To: 'Access-D' Subject: MS Access 2007 - where may on have a look at the full list of the new objects, properties, methods,... Hi All, As far as I see there are useful new properties of MS Access 2007 controls, e.g. ComboBox has got 'List Items Edit Form' property. Is there anywhere a full list of new objects, properties, methods? (MS Access 2007 online help doesn't have it. Or I'm missing it?). Thank you. -- Shamil From Jim.Hale at FleetPride.com Wed Oct 25 16:35:03 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 25 Oct 2006 16:35:03 -0500 Subject: [AccessD] Running sum in a query without DSUM Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE093@corp-es01.fleetpride.com> Here is some a method from a query samples database I got from Lord knows where. HTH Jim Hale SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal FROM [Order Details] GROUP BY [Order Details].OrderID; -----Original Message----- From: John Skolits [mailto:askolits at ot.com] Sent: Wednesday, October 25, 2006 3:23 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Running sum in a query without DSUM Any way to do a running sum in a "query" without having to deal with the overhead of a domain function (Like DSUM)? *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From accessd at shaw.ca Wed Oct 25 16:42:37 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 25 Oct 2006 14:42:37 -0700 Subject: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, properties, methods, ... In-Reply-To: <001201c6f87b$85f54f30$6401a8c0@nant> Message-ID: <0J7P00IBYO9N1RM1@l-daemon> Please do, Shamil Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, October 25, 2006 2:21 PM To: 'Access-D' Subject: Re: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, properties, methods, ... Hi All, As far as I see there are ~300+ new properties for MS Access 2007 objects. 153 of these properties are to set/get embedded macros' to process forms'/reports'/controls' events - like in this sample to set embedded macro for command button's Click event: Dim strMacro As String strMacro = _ "Version = 196611" & vbCrLf & _ "ColumnsShown = 8" & vbCrLf & _ "Begin" & vbCrLf & _ " Action = ""OpenForm""" & vbCrLf & _ " Argument = ""frmTest""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = ""-1""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ "End" Me.cmdTest.Properties("OnClickEmMacro").Value = strMacro These new [{EventName}EmMacro] properties seems to be available only via .Properties collection. Another interesting new feature is that Report object has now additionally all the events of the Form object and reports' controls have now all the events of the corresponding form controls... Here is the list of unique new properties' names ([{EventName}EmMacro] properties are not listed): AggregateType AllowLayoutView AllowReportView AllowValueListEdits AlternateBackColor AppendOnly AutoHeight BottomPadding CursorOnHover CustomRibbonID DatasheetAlternateBackColor DatasheetCaption DisplayAsHyperlink DisplayOnSharePointSite FilterOnEmptyMaster FilterOnLoad FitToPage GridlineColor GridlineStyleBottom GridlineStyleLeft GridlineStyleRight GridlineStyleTop GridlineWidthBottom GridlineWidthLeft GridlineWidthRight GridlineWidthTop HorizontalAnchor ImageData InheritValueList Layout LayoutID LeftPadding ListItemsEditForm NavigationCaption NavPane Category NavPane Closed NavPane Sort By NavPane View By NavPane Width OnPaint OrderByOnLoad RightPadding SaveSplitterBarPosition SeparatorCharacters ShowDatePicker ShowOnlyRowSourceValues ShowPageMargins SplitFormDatasheet SplitFormOrientation SplitFormPrinting SplitFormSize SplitFormSplitterBar TextFormat TopPadding UseDefaultPaperSize VerticalAnchor If that is interesting I can publish complete list of 300+ new properties somewhere on my site.... -- Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Tuesday, October 24, 2006 11:32 PM To: 'Access-D' Subject: MS Access 2007 - where may on have a look at the full list of the new objects, properties, methods,... Hi All, As far as I see there are useful new properties of MS Access 2007 controls, e.g. ComboBox has got 'List Items Edit Form' property. Is there anywhere a full list of new objects, properties, methods? (MS Access 2007 online help doesn't have it. Or I'm missing it?). Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Oct 25 17:51:15 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 25 Oct 2006 15:51:15 -0700 Subject: [AccessD] Looks as if we are all out of a job now. In-Reply-To: <003901c6f873$22d83500$657aa8c0@m6805> Message-ID: Careful! I may take exception to that remark! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, October 25, 2006 1:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Looks as if we are all out of a job now. LOL, only YOU are old enough to remember that. 8~0 John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, October 25, 2006 3:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, October 25, 2006 2:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kost36 at otenet.gr Thu Oct 26 01:03:48 2006 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Thu, 26 Oct 2006 09:03:48 +0300 Subject: [AccessD] opening a specific file via double click... References: <20061025082949.5D95054EEA@smtp.nildram.co.uk> Message-ID: <000b01c6f8c4$829466c0$6601a8c0@kost36> Andy, thank's a lot but could you please tell me how to use the Call RunApp(stryourfilename,1) in order to open the specific file which the name is keeping as data in every record? /kostas ----- Original Message ----- From: "Andy Lacey" To: "Access Developers discussion and problem solving" Sent: Wednesday, October 25, 2006 12:29 PM Subject: Re: [AccessD] opening a specific file via double click... > Hi Kostas, this is what I use. > > Create a module and paste this in > ''''''''''''''' > Declare Function ShellExecute Lib "shell32" Alias "ShellExecuteA" (ByVal > hWnd As Long, _ > ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As > String, _ > ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long > > > Private Const InadequateMemory = 0 > Private Const FileNotFound = 2 > Private Const PathNotFound = 3 > Private Const BadFormat = 11 > Private Const NotRegistered = 31 > Private Const Success = 32 > Private Const BIF_RETURNONLYFSDIRS = &H1 > Public Const sizeNormal = 1 > Public Const sizeMinimize = 2 > Public Const sizeMaximize = 3 > > Function RunApp(strFile As String, bytSize) As Boolean > Dim lngRet As Long > Dim varTaskID As Variant > Dim strRet As String > > lngRet = ShellExecute(hWndAccessApp, vbNullString, strFile, vbNullString, > vbNullString, bytSize) > If lngRet > Success Then > strRet = vbNullString > lngRet = -1 > RunApp = True > Else > RunApp = False > Select Case lngRet > Case NotRegistered > varTaskID = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL " & strFile, > bytSize) > lngRet = (varTaskID <> 0) > Case InadequateMemory > MsgBox "Error: Out of Memory/Resources!" > Case FileNotFound > MsgBox "Error: File not found!" > Case PathNotFound > MsgBox "Error: Path not found!" > Case BadFormat > MsgBox "Error: Bad File Format!" > Case 5 > MsgBox "Error: Unauthorized due to Security restrictions!" > End Select > End If > End Function > > ''''''''''''''' > > You can then open any registered file type with the following: > > Call RunApp(stryourfilename,1) > > HTH > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > --------- Original Message -------- > From: "Access Developers discussion and problem solving" > > To: "Access Developers discussion and problem solving" > > Subject: [AccessD] opening a specific file via double click... > Date: 25/10/06 07:51 > > > dear group for one more time i need your help > I have a text field in which the stored data are just names of files > (e.g. aaa.pdf) > Is that possible by double click on the specific field to load the file > with the same name as well? > > thank's a lot > /kostas > > > ----- Original Message ----- > From: > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, October 24, 2006 5:06 PM > Subject: Re: [AccessD] A2003:Rename a file in a folder > > >> Darren, >> >> Off the tope of my head use the following: >> >> Dim strFile As String >> >> strFile = Dir(myCoolCSVfile.csv, vbHidden) ' Put the full path before the >> filename >> If (strFile<>"" ) then >> Name myCoolCSVfile.csv As YYMMDDHHMMSS.csv ' Put the full path >> before the filename and new file name >> Endif >> >> ' Your routine to put the new file into C:MyCoolFolder >> >> Paul Hartland >> >> >> >> Message Received: Oct 24 2006, 02:58 PM >> From: "Darren DICK" >> To: "'Access Developers discussion and problem solving'" >> Cc: >> Subject: [AccessD] A2003:Rename a file in a folder >> >> Hi all >> >> I have a file that will be always named the same - EG myCoolCSVfile.csv >> >> It will be dumped into a folder...say C:MyCoolFolder at random times >> >> I need some code to Check the C:myCoolFolder to see if the file >> myCoolCSVfile.csv file exists in the folder - and if it does to rename it >> to >> YYMMDDHHMMSS.csv >> >> Where YY = Year MM = Month DD = Day etc etc >> >> Does anyone have anything that might suit? >> >> Many thanks in advance >> >> Darren >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> >> Paul Hartland >> paul.hartland at fsmail.net >> 07730 523179 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From max at sherman.org.uk Thu Oct 26 01:50:24 2006 From: max at sherman.org.uk (Max Home) Date: Thu, 26 Oct 2006 07:50:24 +0100 Subject: [AccessD] Looks as if we are all out of a job now. In-Reply-To: Message-ID: <009501c6f8cb$049f8310$8119fea9@MaxLapTop> You actually read the EULA??? If I ever read one, it would remain in my memory for 1 nanosecond! How can you remember one out of the tons that are in every software package? Amazing! Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, October 25, 2006 8:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, October 25, 2006 2:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Thu Oct 26 01:54:02 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 26 Oct 2006 07:54:02 +0100 Subject: [AccessD] opening a specific file via double click... In-Reply-To: <000b01c6f8c4$829466c0$6601a8c0@kost36> Message-ID: <00f401c6f8cb$85acc620$2ab10c54@minster33c3r25> Well you can do what you originally suggested. I assume you have a form which is displaying the table data. On there put the field with your file name, create an event procedure for its Double-Click event and in there put: Call RunApp(Me.ActiveControl,1) But does the field on the table have the whole path as well as the filename? RunApp needs the whole lot so that it can find the file. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Kostas Konstantinidis > Sent: 26 October 2006 07:04 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] opening a specific file via double click... > > > Andy, thank's a lot > > but could you please tell me how to use the > Call RunApp(stryourfilename,1) > in order to open the specific file which the name is keeping > as data in > every record? > > /kostas > > ----- Original Message ----- > From: "Andy Lacey" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, October 25, 2006 12:29 PM > Subject: Re: [AccessD] opening a specific file via double click... > > > > Hi Kostas, this is what I use. > > > > Create a module and paste this in > > ''''''''''''''' > > Declare Function ShellExecute Lib "shell32" Alias "ShellExecuteA" > > (ByVal hWnd As Long, _ ByVal lpOperation As String, ByVal lpFile As > > String, ByVal lpParameters As String, _ > > ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long > > > > > > Private Const InadequateMemory = 0 > > Private Const FileNotFound = 2 > > Private Const PathNotFound = 3 > > Private Const BadFormat = 11 > > Private Const NotRegistered = 31 > > Private Const Success = 32 > > Private Const BIF_RETURNONLYFSDIRS = &H1 > > Public Const sizeNormal = 1 > > Public Const sizeMinimize = 2 > > Public Const sizeMaximize = 3 > > > > Function RunApp(strFile As String, bytSize) As Boolean > > Dim lngRet As Long > > Dim varTaskID As Variant > > Dim strRet As String > > > > lngRet = ShellExecute(hWndAccessApp, vbNullString, strFile, > > vbNullString, vbNullString, bytSize) If lngRet > Success Then > > strRet = vbNullString > > lngRet = -1 > > RunApp = True > > Else > > RunApp = False > > Select Case lngRet > > Case NotRegistered > > varTaskID = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL " > & strFile, > > bytSize) > > lngRet = (varTaskID <> 0) > > Case InadequateMemory > > MsgBox "Error: Out of Memory/Resources!" > > Case FileNotFound > > MsgBox "Error: File not found!" > > Case PathNotFound > > MsgBox "Error: Path not found!" > > Case BadFormat > > MsgBox "Error: Bad File Format!" > > Case 5 > > MsgBox "Error: Unauthorized due to Security restrictions!" > > End Select > > End If > > End Function > > > > ''''''''''''''' > > > > You can then open any registered file type with the following: > > > > Call RunApp(stryourfilename,1) > > > > HTH > > > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > > > > --------- Original Message -------- > > From: "Access Developers discussion and problem solving" > > > > To: "Access Developers discussion and problem solving" > > > > Subject: [AccessD] opening a specific file via double click... > > Date: 25/10/06 07:51 > > > > > > dear group for one more time i need your help > > I have a text field in which the stored data are just names > of files > > (e.g. aaa.pdf) Is that possible by double click on the > specific field > > to load the file with the same name as well? > > > > thank's a lot > > /kostas From kost36 at otenet.gr Thu Oct 26 03:02:01 2006 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Thu, 26 Oct 2006 11:02:01 +0300 Subject: [AccessD] opening a specific file via double click... References: <00f401c6f8cb$85acc620$2ab10c54@minster33c3r25> Message-ID: <004c01c6f8d5$04a93b80$6601a8c0@kost36> Andy It works, but is it posible for access to remember the specific folder in which the files are stored ? say that cause the folder is always the same (e.g \test) and may be its not necessary to keep that path in every record. Just only the file name thank's /kostas ----- Original Message ----- From: "Andy Lacey" To: "'Access Developers discussion and problem solving'" Sent: Thursday, October 26, 2006 9:54 AM Subject: Re: [AccessD] opening a specific file via double click... > Well you can do what you originally suggested. I assume you have a form > which is displaying the table data. On there put the field with your file > name, create an event procedure for its Double-Click event and in there > put: > > Call RunApp(Me.ActiveControl,1) > > But does the field on the table have the whole path as well as the > filename? > RunApp needs the whole lot so that it can find the file. > > -- Andy Lacey > http://www.minstersystems.co.uk > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Kostas Konstantinidis >> Sent: 26 October 2006 07:04 >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] opening a specific file via double click... >> >> >> Andy, thank's a lot >> >> but could you please tell me how to use the >> Call RunApp(stryourfilename,1) >> in order to open the specific file which the name is keeping >> as data in >> every record? >> >> /kostas >> >> ----- Original Message ----- >> From: "Andy Lacey" >> To: "Access Developers discussion and problem solving" >> >> Sent: Wednesday, October 25, 2006 12:29 PM >> Subject: Re: [AccessD] opening a specific file via double click... >> >> >> > Hi Kostas, this is what I use. >> > >> > Create a module and paste this in >> > ''''''''''''''' >> > Declare Function ShellExecute Lib "shell32" Alias "ShellExecuteA" >> > (ByVal hWnd As Long, _ ByVal lpOperation As String, ByVal lpFile As >> > String, ByVal lpParameters As String, _ >> > ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long >> > >> > >> > Private Const InadequateMemory = 0 >> > Private Const FileNotFound = 2 >> > Private Const PathNotFound = 3 >> > Private Const BadFormat = 11 >> > Private Const NotRegistered = 31 >> > Private Const Success = 32 >> > Private Const BIF_RETURNONLYFSDIRS = &H1 >> > Public Const sizeNormal = 1 >> > Public Const sizeMinimize = 2 >> > Public Const sizeMaximize = 3 >> > >> > Function RunApp(strFile As String, bytSize) As Boolean >> > Dim lngRet As Long >> > Dim varTaskID As Variant >> > Dim strRet As String >> > >> > lngRet = ShellExecute(hWndAccessApp, vbNullString, strFile, >> > vbNullString, vbNullString, bytSize) If lngRet > Success Then >> > strRet = vbNullString >> > lngRet = -1 >> > RunApp = True >> > Else >> > RunApp = False >> > Select Case lngRet >> > Case NotRegistered >> > varTaskID = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL " >> & strFile, >> > bytSize) >> > lngRet = (varTaskID <> 0) >> > Case InadequateMemory >> > MsgBox "Error: Out of Memory/Resources!" >> > Case FileNotFound >> > MsgBox "Error: File not found!" >> > Case PathNotFound >> > MsgBox "Error: Path not found!" >> > Case BadFormat >> > MsgBox "Error: Bad File Format!" >> > Case 5 >> > MsgBox "Error: Unauthorized due to Security restrictions!" >> > End Select >> > End If >> > End Function >> > >> > ''''''''''''''' >> > >> > You can then open any registered file type with the following: >> > >> > Call RunApp(stryourfilename,1) >> > >> > HTH >> > >> > -- >> > Andy Lacey >> > http://www.minstersystems.co.uk >> > >> > >> > >> > >> > --------- Original Message -------- >> > From: "Access Developers discussion and problem solving" >> > >> > To: "Access Developers discussion and problem solving" >> > >> > Subject: [AccessD] opening a specific file via double click... >> > Date: 25/10/06 07:51 >> > >> > >> > dear group for one more time i need your help >> > I have a text field in which the stored data are just names >> of files >> > (e.g. aaa.pdf) Is that possible by double click on the >> specific field >> > to load the file with the same name as well? >> > >> > thank's a lot >> > /kostas > > > -- > 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 Oct 26 04:20:10 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 26 Oct 2006 19:20:10 +1000 Subject: [AccessD] opening a specific file via double click... In-Reply-To: <004c01c6f8d5$04a93b80$6601a8c0@kost36> References: <00f401c6f8cb$85acc620$2ab10c54@minster33c3r25>, <004c01c6f8d5$04a93b80$6601a8c0@kost36> Message-ID: <45407DCA.25294.9836BB6@stuart.lexacorp.com.pg> On 26 Oct 2006 at 11:02, Kostas Konstantinidis wrote: > Andy It works, > but is it posible for access to remember the specific folder > in which the files are stored ? > say that cause the folder is always the same (e.g \test) and may be its not > necessary to keep that path in every record. Just only the file name thank's Call RunApp("C:\Test\" & Me.ActiveControl,1) or strPath = "C:\Test\" Call RunApp(strTest & Me.ActiveControl,1) or if the files are in the same directory as the Access application strPath = CurrentProject.Path & "\" Call RunApp(strTest & Me.ActiveControl,1) -- Stuart From andy at minstersystems.co.uk Thu Oct 26 07:34:45 2006 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 26 Oct 2006 12:34:45 +0000 Subject: [AccessD] opening a specific file via double click... Message-ID: <20061026113448.E557D2BC0F7@smtp2.nildram.co.uk> Or you could store the path in a table. Suppose you have a table tblSystemInfo, with a field called Filepath. Stik the path (with trailing \ character) in there. Then Dim strPath as string strPath = Dlookup("FilePath","tblSystemInfo") Call RunApp(strPath & Me.ActiveControl,1) -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] opening a specific file via double click... Date: 26/10/06 09:22 On 26 Oct 2006 at 11:02, Kostas Konstantinidis wrote: > Andy It works, > but is it posible for access to remember the specific folder > in which the files are stored ? > say that cause the folder is always the same (e.g test) and may be its not > necessary to keep that path in every record. Just only the file name thank's Call RunApp("C:Test" & Me.ActiveControl,1) or strPath = "C:Test" Call RunApp(strTest & Me.ActiveControl,1) or if the files are in the same directory as the Access application strPath = CurrentProject.Path & "" Call RunApp(strTest & Me.ActiveControl,1) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From kost36 at otenet.gr Thu Oct 26 07:21:58 2006 From: kost36 at otenet.gr (Kostas Konstantinidis) Date: Thu, 26 Oct 2006 15:21:58 +0300 Subject: [AccessD] opening a specific file via double click... References: <20061026113448.E557D2BC0F7@smtp2.nildram.co.uk> Message-ID: <00ab01c6f8f9$5558b5a0$0501a8c0@studio2> Andy and Stuart, thank's very much it works fine /kostas ----- Original Message ----- From: "Andy Lacey" To: "Access Developers discussion and problem solving" Sent: Thursday, October 26, 2006 3:34 PM Subject: Re: [AccessD] opening a specific file via double click... > Or you could store the path in a table. Suppose you have a table > tblSystemInfo, with a field called Filepath. Stik the path (with trailing > \ > character) in there. Then > > Dim strPath as string > > strPath = Dlookup("FilePath","tblSystemInfo") > Call RunApp(strPath & Me.ActiveControl,1) > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > --------- Original Message -------- > From: "Access Developers discussion and problem solving" > > To: "Access Developers discussion and problem solving" > > Subject: Re: [AccessD] opening a specific file via double click... > Date: 26/10/06 09:22 > > > On 26 Oct 2006 at 11:02, Kostas Konstantinidis wrote: > >> Andy It works, >> but is it posible for access to remember the specific folder >> in which the files are stored ? >> say that cause the folder is always the same (e.g test) and may be its >> not >> necessary to keep that path in every record. Just only the file name > thank's > > > Call RunApp("C:Test" & Me.ActiveControl,1) > > or > > strPath = "C:Test" > Call RunApp(strTest & Me.ActiveControl,1) > > or if the files are in the same directory as the Access application > > strPath = CurrentProject.Path & "" > Call RunApp(strTest & Me.ActiveControl,1) > > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From bchacc at san.rr.com Thu Oct 26 08:32:23 2006 From: bchacc at san.rr.com (Beach Access Software) Date: Thu, 26 Oct 2006 06:32:23 -0700 Subject: [AccessD] Re-Installing Access 2000 Message-ID: <000001c6f903$2be4f080$6401a8c0@HAL9005> Dear List: On my new box I have a complete O2K3 install. And I'm using Outlook. I'd like to install just A2K as well, but the last time I tried this, it hosed the O2K3 Outlook. Apparently you cannot install any component of A2K without also installing Outlook. So I'm looking for a way around this problem that doesn't require me to back up everything in Outlook, uninstall O2K3, install O2K, and then O2K3, and then reload all the Outlook stuff. Is this possible? MTIA, Rocky From askolits at ot.com Thu Oct 26 09:24:06 2006 From: askolits at ot.com (John Skolits) Date: Thu, 26 Oct 2006 10:24:06 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DE093@corp-es01.fleetpride.com> Message-ID: <002f01c6f90a$6882f580$6501a8c0@LaptopXP> Thanks Jim. That makes sense but it still essentially does a dsum in the embedded select statement. It then runs very slowly for large tables. Thanks -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Wednesday, October 25, 2006 5:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM Here is some a method from a query samples database I got from Lord knows where. HTH Jim Hale SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal FROM [Order Details] GROUP BY [Order Details].OrderID; -----Original Message----- From: John Skolits [mailto:askolits at ot.com] Sent: Wednesday, October 25, 2006 3:23 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Running sum in a query without DSUM Any way to do a running sum in a "query" without having to deal with the overhead of a domain function (Like DSUM)? *********************************************************************** 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 ssharkins at setel.com Thu Oct 26 10:09:18 2006 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 26 Oct 2006 11:09:18 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <002f01c6f90a$6882f580$6501a8c0@LaptopXP> Message-ID: <000601c6f910$b62886a0$b6b62ad1@SUSANONE> Try this one. Let me know if it's any faster, I haven't tried it myself and would like to know. select T1.datafield, (select sum(datafield) from yourtable as T2 where T2.datafield <= T1.datafield ) as cumsum from yourtable as T1 order by T1.datafield Susan H. Thanks Jim. That makes sense but it still essentially does a dsum in the embedded select statement. It then runs very slowly for large tables. Here is some a method from a query samples database I got from Lord knows where. HTH Jim Hale SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal FROM [Order Details] GROUP BY [Order Details].OrderID; From cfoust at infostatsystems.com Thu Oct 26 10:35:50 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 26 Oct 2006 08:35:50 -0700 Subject: [AccessD] Looks as if we are all out of a job now. In-Reply-To: <009501c6f8cb$049f8310$8119fea9@MaxLapTop> Message-ID: I remember Windows 95, which made it nearly impossible to work around the technical limitations anyhow! LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Home Sent: Wednesday, October 25, 2006 11:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Looks as if we are all out of a job now. You actually read the EULA??? If I ever read one, it would remain in my memory for 1 nanosecond! How can you remember one out of the tons that are in every software package? Amazing! Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, October 25, 2006 8:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, October 25, 2006 2:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Oct 26 10:48:06 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 26 Oct 2006 17:48:06 +0200 Subject: [AccessD] Running sum in a query without DSUM Message-ID: Hi John This method is not using DSum() but SUM of SQL which is much faster. However, at the subquery will run for each and every records there's no way you can retrieve a running sum "fast" for a large recordset. /gustav >>> ssharkins at setel.com 26-10-2006 17:09 >>> Try this one. Let me know if it's any faster, I haven't tried it myself and would like to know. select T1.datafield, (select sum(datafield) from yourtable as T2 where T2.datafield <= T1.datafield ) as cumsum from yourtable as T1 order by T1.datafield Susan H. Thanks Jim. That makes sense but it still essentially does a dsum in the embedded select statement. It then runs very slowly for large tables. Here is some a method from a query samples database I got from Lord knows where. HTH Jim Hale SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal FROM [Order Details] GROUP BY [Order Details].OrderID; From Gustav at cactus.dk Thu Oct 26 10:50:44 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 26 Oct 2006 17:50:44 +0200 Subject: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, proper Message-ID: Hi Shamil Great work, but those "embedded macros" - whatever that is - sure look ugly. /gustav >>> shamil at users.mns.ru 25-10-2006 23:21 >>> Hi All, As far as I see there are ~300+ new properties for MS Access 2007 objects. 153 of these properties are to set/get embedded macros' to process forms'/reports'/controls' events - like in this sample to set embedded macro for command button's Click event: Dim strMacro As String strMacro = _ "Version = 196611" & vbCrLf & _ "ColumnsShown = 8" & vbCrLf & _ "Begin" & vbCrLf & _ " Action = ""OpenForm""" & vbCrLf & _ " Argument = ""frmTest""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = ""-1""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ "End" Me.cmdTest.Properties("OnClickEmMacro").Value = strMacro These new [{EventName}EmMacro] properties seems to be available only via .Properties collection. Another interesting new feature is that Report object has now additionally all the events of the Form object and reports' controls have now all the events of the corresponding form controls... Here is the list of unique new properties' names ([{EventName}EmMacro] properties are not listed): AggregateType AllowLayoutView AllowReportView AllowValueListEdits AlternateBackColor AppendOnly AutoHeight BottomPadding CursorOnHover CustomRibbonID DatasheetAlternateBackColor DatasheetCaption DisplayAsHyperlink DisplayOnSharePointSite FilterOnEmptyMaster FilterOnLoad FitToPage GridlineColor GridlineStyleBottom GridlineStyleLeft GridlineStyleRight GridlineStyleTop GridlineWidthBottom GridlineWidthLeft GridlineWidthRight GridlineWidthTop HorizontalAnchor ImageData InheritValueList Layout LayoutID LeftPadding ListItemsEditForm NavigationCaption NavPane Category NavPane Closed NavPane Sort By NavPane View By NavPane Width OnPaint OrderByOnLoad RightPadding SaveSplitterBarPosition SeparatorCharacters ShowDatePicker ShowOnlyRowSourceValues ShowPageMargins SplitFormDatasheet SplitFormOrientation SplitFormPrinting SplitFormSize SplitFormSplitterBar TextFormat TopPadding UseDefaultPaperSize VerticalAnchor If that is interesting I can publish complete list of 300+ new properties somewhere on my site.... -- Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Tuesday, October 24, 2006 11:32 PM To: 'Access-D' Subject: MS Access 2007 - where may on have a look at the full list of the new objects, properties, methods,... Hi All, As far as I see there are useful new properties of MS Access 2007 controls, e.g. ComboBox has got 'List Items Edit Form' property. Is there anywhere a full list of new objects, properties, methods? (MS Access 2007 online help doesn't have it. Or I'm missing it?). Thank you. -- Shamil From john at winhaven.net Thu Oct 26 11:10:54 2006 From: john at winhaven.net (John Bartow) Date: Thu, 26 Oct 2006 11:10:54 -0500 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <002f01c6f90a$6882f580$6501a8c0@LaptopXP> Message-ID: <046201c6f919$5111af90$1402a8c0@ScuzzPaq> IIRC SQL will outperform Domain Functions. Also a saved query it will be optimized so this should run faster than DSUM. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Thanks Jim. That makes sense but it still essentially does a dsum in the embedded select statement. It then runs very slowly for large tables. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Here is some a method from a query samples database I got from Lord knows where. HTH Jim Hale SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal FROM [Order Details] GROUP BY [Order Details].OrderID; From askolits at ot.com Thu Oct 26 12:22:43 2006 From: askolits at ot.com (John Skolits) Date: Thu, 26 Oct 2006 13:22:43 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <046201c6f919$5111af90$1402a8c0@ScuzzPaq> Message-ID: <007601c6f923$5c1bdfa0$6501a8c0@LaptopXP> IIRC SQL? Is that what it's called when doing embedded Select Statements? I did try that method below and it was really slow. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, October 26, 2006 12:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM IIRC SQL will outperform Domain Functions. Also a saved query it will be optimized so this should run faster than DSUM. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Thanks Jim. That makes sense but it still essentially does a dsum in the embedded select statement. It then runs very slowly for large tables. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Here is some a method from a query samples database I got from Lord knows where. HTH Jim Hale SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal FROM [Order Details] GROUP BY [Order Details].OrderID; -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Thu Oct 26 12:23:43 2006 From: askolits at ot.com (John Skolits) Date: Thu, 26 Oct 2006 13:23:43 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <000601c6f910$b62886a0$b6b62ad1@SUSANONE> Message-ID: <007701c6f923$7fcdc080$6501a8c0@LaptopXP> I did try this, and it was very slow. The table is very large. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, October 26, 2006 11:09 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM Try this one. Let me know if it's any faster, I haven't tried it myself and would like to know. select T1.datafield, (select sum(datafield) from yourtable as T2 where T2.datafield <= T1.datafield ) as cumsum from yourtable as T1 order by T1.datafield Susan H. Thanks Jim. That makes sense but it still essentially does a dsum in the embedded select statement. It then runs very slowly for large tables. Here is some a method from a query samples database I got from Lord knows where. HTH Jim Hale SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal FROM [Order Details] GROUP BY [Order Details].OrderID; -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Thu Oct 26 12:43:33 2006 From: pharold at proftesting.com (Perry L Harold) Date: Thu, 26 Oct 2006 13:43:33 -0400 Subject: [AccessD] Looks as if we are all out of a job now. Message-ID: <00F5FCB4F80FDB4EB03FBAAEAD97CEAD335535@EXCHANGE.ptiorl.local> Supposedly PC Pitstop actually paid out cash to the first responder that read their EULA. http://yarbroughs.org/archives/2005/02/23/read-the-magic-eula-win-a-litt le-money/ Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Home Sent: Thursday, October 26, 2006 2:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Looks as if we are all out of a job now. You actually read the EULA??? If I ever read one, it would remain in my memory for 1 nanosecond! How can you remember one out of the tons that are in every software package? Amazing! Regards Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, October 25, 2006 8:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. Hmmn. Didn't they have the same wording in the Windows 95 EULA? ;o> Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, October 25, 2006 2:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looks as if we are all out of a job now. ROTFL. I agree Max, we may as well hang up our coding sheets. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Looks as if we are all out of a job now. Date: 25/10/06 07:08 Here is an extract from a newsletter I subscribe to: quote an interesting excerpt from the Vista EULA (PDF download): "8. SCOPE OF LICENSE... You may not work around any technical limitations in the software;" I read that as saying that we're all pretty much out of a job... Unquote Regards Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Oct 26 14:18:31 2006 From: john at winhaven.net (John Bartow) Date: Thu, 26 Oct 2006 14:18:31 -0500 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <007601c6f923$5c1bdfa0$6501a8c0@LaptopXP> Message-ID: <056a01c6f933$86e01ac0$1402a8c0@ScuzzPaq> IIRC = If I Remember Correctly :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits IIRC SQL? From askolits at ot.com Thu Oct 26 15:01:21 2006 From: askolits at ot.com (John Skolits) Date: Thu, 26 Oct 2006 16:01:21 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <056a01c6f933$86e01ac0$1402a8c0@ScuzzPaq> Message-ID: <00bd01c6f939$8523b600$6501a8c0@LaptopXP> Allrighty then.. Do I look like a goof or what? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, October 26, 2006 3:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM IIRC = If I Remember Correctly :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits IIRC SQL? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Thu Oct 26 15:07:11 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 27 Oct 2006 00:07:11 +0400 Subject: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, properties, methods, ... In-Reply-To: <0J7P00IBYO9N1RM1@l-daemon> Message-ID: <00fa01c6f93a$5341abf0$6401a8c0@nant> Jim, Here is the reference on the HTML page with the list of 307 properties I have dug out so far: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.htm This is XML source of this list: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.xml -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, October 26, 2006 1:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, properties, methods, ... Please do, Shamil Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, October 25, 2006 2:21 PM To: 'Access-D' Subject: Re: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, properties, methods, ... Hi All, As far as I see there are ~300+ new properties for MS Access 2007 objects. 153 of these properties are to set/get embedded macros' to process forms'/reports'/controls' events - like in this sample to set embedded macro for command button's Click event: Dim strMacro As String strMacro = _ "Version = 196611" & vbCrLf & _ "ColumnsShown = 8" & vbCrLf & _ "Begin" & vbCrLf & _ " Action = ""OpenForm""" & vbCrLf & _ " Argument = ""frmTest""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = ""-1""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ "End" Me.cmdTest.Properties("OnClickEmMacro").Value = strMacro These new [{EventName}EmMacro] properties seems to be available only via .Properties collection. Another interesting new feature is that Report object has now additionally all the events of the Form object and reports' controls have now all the events of the corresponding form controls... Here is the list of unique new properties' names ([{EventName}EmMacro] properties are not listed): AggregateType AllowLayoutView AllowReportView AllowValueListEdits AlternateBackColor AppendOnly AutoHeight BottomPadding CursorOnHover CustomRibbonID DatasheetAlternateBackColor DatasheetCaption DisplayAsHyperlink DisplayOnSharePointSite FilterOnEmptyMaster FilterOnLoad FitToPage GridlineColor GridlineStyleBottom GridlineStyleLeft GridlineStyleRight GridlineStyleTop GridlineWidthBottom GridlineWidthLeft GridlineWidthRight GridlineWidthTop HorizontalAnchor ImageData InheritValueList Layout LayoutID LeftPadding ListItemsEditForm NavigationCaption NavPane Category NavPane Closed NavPane Sort By NavPane View By NavPane Width OnPaint OrderByOnLoad RightPadding SaveSplitterBarPosition SeparatorCharacters ShowDatePicker ShowOnlyRowSourceValues ShowPageMargins SplitFormDatasheet SplitFormOrientation SplitFormPrinting SplitFormSize SplitFormSplitterBar TextFormat TopPadding UseDefaultPaperSize VerticalAnchor If that is interesting I can publish complete list of 300+ new properties somewhere on my site.... -- Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Tuesday, October 24, 2006 11:32 PM To: 'Access-D' Subject: MS Access 2007 - where may on have a look at the full list of the new objects, properties, methods,... Hi All, As far as I see there are useful new properties of MS Access 2007 controls, e.g. ComboBox has got 'List Items Edit Form' property. Is there anywhere a full list of new objects, properties, methods? (MS Access 2007 online help doesn't have it. Or I'm missing it?). Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Thu Oct 26 15:07:11 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 27 Oct 2006 00:07:11 +0400 Subject: [AccessD] MS Access 2007 - where may one have a look at thefull list of the new objects, proper In-Reply-To: Message-ID: <00f901c6f93a$530d2e70$6401a8c0@nant> Hi Gustav, These embedded macros seems to be .SaveAsText representations of macros, which Martin mentioned here recently... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, October 26, 2006 7:51 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] MS Access 2007 - where may one have a look at thefull list of the new objects, proper Hi Shamil Great work, but those "embedded macros" - whatever that is - sure look ugly. /gustav >>> shamil at users.mns.ru 25-10-2006 23:21 >>> Hi All, As far as I see there are ~300+ new properties for MS Access 2007 objects. 153 of these properties are to set/get embedded macros' to process forms'/reports'/controls' events - like in this sample to set embedded macro for command button's Click event: Dim strMacro As String strMacro = _ "Version = 196611" & vbCrLf & _ "ColumnsShown = 8" & vbCrLf & _ "Begin" & vbCrLf & _ " Action = ""OpenForm""" & vbCrLf & _ " Argument = ""frmTest""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = """"" & vbCrLf & _ " Argument = ""-1""" & vbCrLf & _ " Argument = ""0""" & vbCrLf & _ "End" Me.cmdTest.Properties("OnClickEmMacro").Value = strMacro These new [{EventName}EmMacro] properties seems to be available only via .Properties collection. Another interesting new feature is that Report object has now additionally all the events of the Form object and reports' controls have now all the events of the corresponding form controls... Here is the list of unique new properties' names ([{EventName}EmMacro] properties are not listed): AggregateType AllowLayoutView AllowReportView AllowValueListEdits AlternateBackColor AppendOnly AutoHeight BottomPadding CursorOnHover CustomRibbonID DatasheetAlternateBackColor DatasheetCaption DisplayAsHyperlink DisplayOnSharePointSite FilterOnEmptyMaster FilterOnLoad FitToPage GridlineColor GridlineStyleBottom GridlineStyleLeft GridlineStyleRight GridlineStyleTop GridlineWidthBottom GridlineWidthLeft GridlineWidthRight GridlineWidthTop HorizontalAnchor ImageData InheritValueList Layout LayoutID LeftPadding ListItemsEditForm NavigationCaption NavPane Category NavPane Closed NavPane Sort By NavPane View By NavPane Width OnPaint OrderByOnLoad RightPadding SaveSplitterBarPosition SeparatorCharacters ShowDatePicker ShowOnlyRowSourceValues ShowPageMargins SplitFormDatasheet SplitFormOrientation SplitFormPrinting SplitFormSize SplitFormSplitterBar TextFormat TopPadding UseDefaultPaperSize VerticalAnchor If that is interesting I can publish complete list of 300+ new properties somewhere on my site.... -- Shamil -----Original Message----- From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] Sent: Tuesday, October 24, 2006 11:32 PM To: 'Access-D' Subject: MS Access 2007 - where may on have a look at the full list of the new objects, properties, methods,... Hi All, As far as I see there are useful new properties of MS Access 2007 controls, e.g. ComboBox has got 'List Items Edit Form' property. Is there anywhere a full list of new objects, properties, methods? (MS Access 2007 online help doesn't have it. Or I'm missing it?). Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Oct 26 15:20:41 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 26 Oct 2006 16:20:41 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <00bd01c6f939$8523b600$6501a8c0@LaptopXP> Message-ID: <001801c6f93c$365ff490$657aa8c0@m6805> LOL. That would be, Allrighty then. DILLAGOW? ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Thursday, October 26, 2006 4:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM Allrighty then.. Do I look like a goof or what? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, October 26, 2006 3:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM IIRC = If I Remember Correctly :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits IIRC SQL? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Oct 26 15:21:14 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 26 Oct 2006 15:21:14 -0500 Subject: [AccessD] Running sum in a query without DSUM Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE09A@corp-es01.fleetpride.com> http://www.acronymfinder.com/ HTH :-} -----Original Message----- From: John Skolits [mailto:askolits at ot.com] Sent: Thursday, October 26, 2006 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM Allrighty then.. Do I look like a goof or what? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, October 26, 2006 3:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Running sum in a query without DSUM IIRC = If I Remember Correctly :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits IIRC SQL? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 mwp.reid at qub.ac.uk Thu Oct 26 15:27:45 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 26 Oct 2006 21:27:45 +0100 Subject: [AccessD] MS Access 2007 - where may one have a look at thefulllist of the new objects, proper References: <00f901c6f93a$530d2e70$6401a8c0@nant> Message-ID: Was interesting during the beta as they broke if you saved the A 2007 DB as 2003 version. Heres how they fixed it for release And I quote Quote We have changed the wizards in post beta 2 TR builds to spit out VBA if you are in an MDB. We also made a change to allow you to convert embedded macros to VBA. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Thu Oct 26 15:30:08 2006 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 26 Oct 2006 21:30:08 +0100 Subject: [AccessD] MS Access 2007 - where may one have a look atthe full list of the new objects, properties, methods, ... References: <00fa01c6f93a$5341abf0$6401a8c0@nant> Message-ID: Shamil Out of interest how did you dig them out? 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: Thu 26/10/2006 21:07 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe full list of the new objects, properties, methods, ... Jim, Here is the reference on the HTML page with the list of 307 properties I have dug out so far: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.htm This is XML source of this list: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.xml From john at winhaven.net Thu Oct 26 15:45:58 2006 From: john at winhaven.net (John Bartow) Date: Thu, 26 Oct 2006 15:45:58 -0500 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <001801c6f93c$365ff490$657aa8c0@m6805> Message-ID: <05b801c6f93f$be145fe0$1402a8c0@ScuzzPaq> LOL! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby LOL. That would be, Allrighty then. DILLAGOW? ;-) From john at winhaven.net Thu Oct 26 15:45:58 2006 From: john at winhaven.net (John Bartow) Date: Thu, 26 Oct 2006 15:45:58 -0500 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <00bd01c6f939$8523b600$6501a8c0@LaptopXP> Message-ID: <05c101c6f93f$c0eb9bc0$1402a8c0@ScuzzPaq> No, got a laugh out of me though! :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Allrighty then.. Do I look like a goof or what? From martyconnelly at shaw.ca Thu Oct 26 15:46:38 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 26 Oct 2006 13:46:38 -0700 Subject: [AccessD] MS Access 2007 - where may one have a look at the full list of the new objects, proper In-Reply-To: References: Message-ID: <45411EAE.1090208@shaw.ca> Actually they look like a VB6 .frm file, if you open it in notepad VERSION 5.00 Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX" Begin VB.Form frmMain AutoRedraw = -1 'True Caption = "AsyncDownload Test" ClientHeight = 7116 ClientLeft = 2568 ClientTop = 2232 ClientWidth = 8664 LinkTopic = "Form1" Gustav Brock wrote: >Hi Shamil > >Great work, but those "embedded macros" - whatever that is - sure look ugly. > >/gustav > > > >>>>shamil at users.mns.ru 25-10-2006 23:21 >>> >>>> >>>> > >Hi All, > >As far as I see there are ~300+ new properties for MS Access 2007 objects. >153 of these properties are to set/get embedded macros' to process >forms'/reports'/controls' events - like in this sample to set embedded macro >for command button's Click event: > >Dim strMacro As String >strMacro = _ >"Version = 196611" & vbCrLf & _ >"ColumnsShown = 8" & vbCrLf & _ >"Begin" & vbCrLf & _ >" Action = ""OpenForm""" & vbCrLf & _ >" Argument = ""frmTest""" & vbCrLf & _ >" Argument = ""0""" & vbCrLf & _ >" Argument = """"" & vbCrLf & _ >" Argument = """"" & vbCrLf & _ >" Argument = ""-1""" & vbCrLf & _ >" Argument = ""0""" & vbCrLf & _ >"End" >Me.cmdTest.Properties("OnClickEmMacro").Value = strMacro > >These new [{EventName}EmMacro] properties seems to be available only via >.Properties collection. > >Another interesting new feature is that Report object has now additionally >all the events of the Form object and reports' controls have now all the >events of the corresponding form controls... > >Here is the list of unique new properties' names ([{EventName}EmMacro] >properties are not listed): > >AggregateType >AllowLayoutView >AllowReportView >AllowValueListEdits >AlternateBackColor >AppendOnly >AutoHeight >BottomPadding >CursorOnHover >CustomRibbonID >DatasheetAlternateBackColor >DatasheetCaption >DisplayAsHyperlink >DisplayOnSharePointSite >FilterOnEmptyMaster >FilterOnLoad >FitToPage >GridlineColor >GridlineStyleBottom >GridlineStyleLeft >GridlineStyleRight >GridlineStyleTop >GridlineWidthBottom >GridlineWidthLeft >GridlineWidthRight >GridlineWidthTop >HorizontalAnchor >ImageData >InheritValueList >Layout >LayoutID >LeftPadding >ListItemsEditForm >NavigationCaption >NavPane Category >NavPane Closed >NavPane Sort By >NavPane View By >NavPane Width >OnPaint >OrderByOnLoad >RightPadding >SaveSplitterBarPosition >SeparatorCharacters >ShowDatePicker >ShowOnlyRowSourceValues >ShowPageMargins >SplitFormDatasheet >SplitFormOrientation >SplitFormPrinting >SplitFormSize >SplitFormSplitterBar >TextFormat >TopPadding >UseDefaultPaperSize >VerticalAnchor > >If that is interesting I can publish complete list of 300+ new properties >somewhere on my site.... > >-- >Shamil > >-----Original Message----- >From: Shamil Salakhetdinov [mailto:shamil at users.mns.ru] >Sent: Tuesday, October 24, 2006 11:32 PM >To: 'Access-D' >Subject: MS Access 2007 - where may on have a look at the full list of the >new objects, properties, methods,... > >Hi All, > >As far as I see there are useful new properties of MS Access 2007 controls, >e.g. ComboBox has got 'List Items Edit Form' property. > >Is there anywhere a full list of new objects, properties, methods? (MS >Access 2007 online help doesn't have it. Or I'm missing it?). > >Thank you. > >-- >Shamil > > > > -- Marty Connelly Victoria, B.C. Canada From shamil at users.mns.ru Thu Oct 26 16:01:38 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 27 Oct 2006 01:01:38 +0400 Subject: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... In-Reply-To: Message-ID: <001d01c6f941$edea8d00$6401a8c0@nant> Martin, I have here commercial software, which I did program in the past for one customer. Unfortunately this software wasn't finished / published - I did use it to dig out information about new properties... In principle there is nothing complicated here but it needs quite some coding to do that from scratch - just make a sample database with different objects and iterate all .Properties collections of every sample object and its children objects... BTW, this software was originally programmed for MS Access 97 and yesterday I had to convert it to MS Access 2003 and then to MS Access 2007. The VBA code is rather advanced and it does do a lot of "massaging" of MS Access objects and it does use several backend databases and its does put quite some data into tables etc. - all worked rather well, with one exception that using Autonumber GUIDs in some places was resulting in MS Access 2003 to GPF. This was when GUID was obtained as value of a listbox and then passed as variant to a function, which passed it as variant to another function. When I did add converting GUID to string in between all started to work OK. Just wanted to note that an advanced VBA coding originally developed for MS Access 97 works without almost any issues in MS Access 2003 and MS Access 2007... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, October 27, 2006 12:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... Shamil Out of interest how did you dig them out? 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: Thu 26/10/2006 21:07 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe full list of the new objects, properties, methods, ... Jim, Here is the reference on the HTML page with the list of 307 properties I have dug out so far: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.htm This is XML source of this list: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.xml From artful at rogers.com Thu Oct 26 19:16:19 2006 From: artful at rogers.com (artful at rogers.com) Date: Thu, 26 Oct 2006 17:16:19 -0700 (PDT) Subject: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... Message-ID: <20061027001619.76220.qmail@web88211.mail.re2.yahoo.com> Something seems suspicious here, with all respect, Shamil. GUIDs are not autonumber, they are created by invoking the function NewID(). Perhaps that is what you meant, but they are NOT autonumber, in the sense of sequential IDs. To create a default GUID you should create a default equivalent to NewID(), but this is much different than a traditional Access autonumber. Arthur ----- Original Message ---- From: Shamil Salakhetdinov To: Access Developers discussion and problem solving Sent: Thursday, October 26, 2006 5:01:38 PM Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... Martin, I have here commercial software, which I did program in the past for one customer. Unfortunately this software wasn't finished / published - I did use it to dig out information about new properties... In principle there is nothing complicated here but it needs quite some coding to do that from scratch - just make a sample database with different objects and iterate all .Properties collections of every sample object and its children objects... BTW, this software was originally programmed for MS Access 97 and yesterday I had to convert it to MS Access 2003 and then to MS Access 2007. The VBA code is rather advanced and it does do a lot of "massaging" of MS Access objects and it does use several backend databases and its does put quite some data into tables etc. - all worked rather well, with one exception that using Autonumber GUIDs in some places was resulting in MS Access 2003 to GPF. This was when GUID was obtained as value of a listbox and then passed as variant to a function, which passed it as variant to another function. When I did add converting GUID to string in between all started to work OK. Just wanted to note that an advanced VBA coding originally developed for MS Access 97 works without almost any issues in MS Access 2003 and MS Access 2007... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, October 27, 2006 12:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... Shamil Out of interest how did you dig them out? 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: Thu 26/10/2006 21:07 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe full list of the new objects, properties, methods, ... Jim, Here is the reference on the HTML page with the list of 307 properties I have dug out so far: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.htm This is XML source of this list: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.xml -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Oct 26 20:35:31 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 26 Oct 2006 18:35:31 -0700 Subject: [AccessD] China has worse pension plan troubles than US In-Reply-To: <20061027001619.76220.qmail@web88211.mail.re2.yahoo.com> References: <20061027001619.76220.qmail@web88211.mail.re2.yahoo.com> Message-ID: <45416263.9050408@shaw.ca> a legacy of the one-child one family policy introduced during the 1970s. Demographically, they will run into a worker shortage in less than 20 years. http://www.telegraph.co.uk/money/main.jhtml?xml=/money/2006/10/27/cnchinapens2.xml&DCMP=EMC-mcn_27102006 -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Thu Oct 26 22:10:37 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 27 Oct 2006 13:10:37 +1000 Subject: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... In-Reply-To: <20061027001619.76220.qmail@web88211.mail.re2.yahoo.com> References: <20061027001619.76220.qmail@web88211.mail.re2.yahoo.com> Message-ID: <454178AD.9491.D57701C@stuart.lexacorp.com.pg> On 26 Oct 2006 at 17:16, artful at rogers.com wrote: > Something seems suspicious here, with all respect, Shamil. GUIDs are not > autonumber, they are created by invoking the function NewID(). Perhaps that In the Table designer, an Autonumber field has a field size property which can be either Long Integer or Replication ID ( another MS word for GUID). > is what you meant, but they are NOT autonumber, in the sense of sequential > IDs. An autonumber doesn't have to be a *sequential* ID. Long Integer Autonumbers have a New Value property which can be set either to Increment or Random . If they are Replication IDs (GUIDs) they are automatically random. > To create a default GUID you should create a default equivalent to > NewID(), but this is much different than a traditional Access autonumber. I just select Autonumber as the Type and Replication ID as the field size in the Table design window. -- Stuart From shamil at users.mns.ru Fri Oct 27 05:53:27 2006 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 27 Oct 2006 14:53:27 +0400 Subject: [AccessD] MS Access 2007 - where may one have a look atthefulllist of the new objects, properties, methods, ... In-Reply-To: <20061027001619.76220.qmail@web88211.mail.re2.yahoo.com> Message-ID: <000e01c6f9b6$22689080$6401a8c0@nant> Hi Arthur, Nothing suspicious here :) I cannot show this mentioned software in action because it is commercial with my signing NDA and this project is "dead" now and very probably forever. But nothing suspicious is used in it. In MS Access there is Replication ID type for Numbers and AutoNumbers - I do use them in this software database and VBA code: Replication ID - Globally unique identifier (GUID (GUID: A 16-byte field used in an Access database to establish a unique identifier for replication. GUIDs are used to identify replicas, replica sets, tables, records, and other objects. In an Access database, GUIDs are referred to as Replication IDs.)) <<< they are NOT autonumber, in the sense of sequential IDs. >>> Arthur, I didn't say that an Autonumber means here a sequential automatically generated ID. Autonumbers can be random of course. <<< To create a default GUID you should create a default equivalent to NewID(), but this is much different than a traditional Access autonumber. >>> MS Access Replication ID Autonumbers are MS Access feature since MS Access 97 (?) AFAIKR. There is no need to create an equivalent of NewID() MS SQL function. The similar to NewID() "magic" is built-in in MS Access Replication ID non-sequential Autonumbers. -- Shamil P.S. It's possible to generate sequentila GUIDs/Replication IDs - here is one example - http://www.sqldev.net/xp/xpguid.htm . There are others - I have seen good online article on that subject several years ago but I lost its URL... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Friday, October 27, 2006 4:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthefulllist of the new objects, properties, methods, ... Something seems suspicious here, with all respect, Shamil. GUIDs are not autonumber, they are created by invoking the function NewID(). Perhaps that is what you meant, but they are NOT autonumber, in the sense of sequential IDs. To create a default GUID you should create a default equivalent to NewID(), but this is much different than a traditional Access autonumber. Arthur ----- Original Message ---- From: Shamil Salakhetdinov To: Access Developers discussion and problem solving Sent: Thursday, October 26, 2006 5:01:38 PM Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... Martin, I have here commercial software, which I did program in the past for one customer. Unfortunately this software wasn't finished / published - I did use it to dig out information about new properties... In principle there is nothing complicated here but it needs quite some coding to do that from scratch - just make a sample database with different objects and iterate all .Properties collections of every sample object and its children objects... BTW, this software was originally programmed for MS Access 97 and yesterday I had to convert it to MS Access 2003 and then to MS Access 2007. The VBA code is rather advanced and it does do a lot of "massaging" of MS Access objects and it does use several backend databases and its does put quite some data into tables etc. - all worked rather well, with one exception that using Autonumber GUIDs in some places was resulting in MS Access 2003 to GPF. This was when GUID was obtained as value of a listbox and then passed as variant to a function, which passed it as variant to another function. When I did add converting GUID to string in between all started to work OK. Just wanted to note that an advanced VBA coding originally developed for MS Access 97 works without almost any issues in MS Access 2003 and MS Access 2007... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, October 27, 2006 12:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe fulllist of the new objects, properties, methods, ... Shamil Out of interest how did you dig them out? 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: Thu 26/10/2006 21:07 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Access 2007 - where may one have a look atthe full list of the new objects, properties, methods, ... Jim, Here is the reference on the HTML page with the list of 307 properties I have dug out so far: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.htm This is XML source of this list: http://smsconsulting.spb.ru/info/acc2007/newPrpsInAccess2007.xml -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Fri Oct 27 13:47:20 2006 From: askolits at ot.com (John Skolits) Date: Fri, 27 Oct 2006 14:47:20 -0400 Subject: [AccessD] Access documentor In-Reply-To: <056a01c6f933$86e01ac0$1402a8c0@ScuzzPaq> Message-ID: <008c01c6f9f8$583f58f0$6501a8c0@LaptopXP> Many years ago I bought an Access documentation program. May have been from FMS. I'm looking for one that will tell me if there are unused tables and functions in the database. What's the latest recommendation? Thanks, John From dwaters at usinternet.com Fri Oct 27 13:58:24 2006 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 27 Oct 2006 13:58:24 -0500 Subject: [AccessD] Access documentor In-Reply-To: <7099273.1161975125870.JavaMail.root@sniper77> Message-ID: <002a01c6f9f9$e2057820$0200a8c0@danwaters> I believe FMS Access Analyzer will do that. About $300. Dan Waters -----Original Message----- Subject: [AccessD] Access documentor Many years ago I bought an Access documentation program. May have been from FMS. I'm looking for one that will tell me if there are unused tables and functions in the database. What's the latest recommendation? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Oct 27 14:01:28 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 27 Oct 2006 15:01:28 -0400 Subject: [AccessD] Access documentor In-Reply-To: <008c01c6f9f8$583f58f0$6501a8c0@LaptopXP> Message-ID: <004a01c6f9fa$4fc9e710$657aa8c0@m6805> I use Find and replace and have for years. It has a cross reference feature which tells what is used where, and can show things that are not used anywhere. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, October 27, 2006 2:47 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access documentor Many years ago I bought an Access documentation program. May have been from FMS. I'm looking for one that will tell me if there are unused tables and functions in the database. What's the latest recommendation? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Fri Oct 27 14:17:10 2006 From: askolits at ot.com (John Skolits) Date: Fri, 27 Oct 2006 15:17:10 -0400 Subject: [AccessD] Access documentor In-Reply-To: <004a01c6f9fa$4fc9e710$657aa8c0@m6805> Message-ID: <009c01c6f9fc$83b12fa0$6501a8c0@LaptopXP> Good idea, I never used that part of it before. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, October 27, 2006 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access documentor I use Find and replace and have for years. It has a cross reference feature which tells what is used where, and can show things that are not used anywhere. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, October 27, 2006 2:47 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access documentor Many years ago I bought an Access documentation program. May have been from FMS. I'm looking for one that will tell me if there are unused tables and functions in the database. What's the latest recommendation? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Fri Oct 27 14:19:50 2006 From: askolits at ot.com (John Skolits) Date: Fri, 27 Oct 2006 15:19:50 -0400 Subject: [AccessD] Access documentor In-Reply-To: <004a01c6f9fa$4fc9e710$657aa8c0@m6805> Message-ID: <00a301c6f9fc$e2c601a0$6501a8c0@LaptopXP> Wait, the databases I'm checking have a couple hundred tables. Many are ODBC links. I don't want to have to go in and search for each one individually. Although, I have written code to automate the find and replace application. I guess I'll go that route. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, October 27, 2006 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access documentor I use Find and replace and have for years. It has a cross reference feature which tells what is used where, and can show things that are not used anywhere. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, October 27, 2006 2:47 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access documentor Many years ago I bought an Access documentation program. May have been from FMS. I'm looking for one that will tell me if there are unused tables and functions in the database. What's the latest recommendation? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Oct 27 14:56:53 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 27 Oct 2006 15:56:53 -0400 Subject: [AccessD] Access documentor In-Reply-To: <00a301c6f9fc$e2c601a0$6501a8c0@LaptopXP> Message-ID: <005401c6fa02$0d5f5d30$657aa8c0@m6805> Actually I am talking about Rick Fisher's "Find and replace" utility for Access. About $40. Good product. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, October 27, 2006 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access documentor Wait, the databases I'm checking have a couple hundred tables. Many are ODBC links. I don't want to have to go in and search for each one individually. Although, I have written code to automate the find and replace application. I guess I'll go that route. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, October 27, 2006 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access documentor I use Find and replace and have for years. It has a cross reference feature which tells what is used where, and can show things that are not used anywhere. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, October 27, 2006 2:47 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access documentor Many years ago I bought an Access documentation program. May have been from FMS. I'm looking for one that will tell me if there are unused tables and functions in the database. What's the latest recommendation? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Fri Oct 27 15:05:40 2006 From: askolits at ot.com (John Skolits) Date: Fri, 27 Oct 2006 16:05:40 -0400 Subject: [AccessD] Access documentor In-Reply-To: <005401c6fa02$0d5f5d30$657aa8c0@m6805> Message-ID: <00bd01c6fa03$49bb10c0$6501a8c0@LaptopXP> That's the one I use. For my current customer, I have used it about 60% of the time. I had to rename all their objects, field names etc. It was a mess. Couldn't do it without that program. I just finished updating my code to just go through all my tables and do a search while logging. That should do what I need. Thanks. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, October 27, 2006 3:57 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access documentor Actually I am talking about Rick Fisher's "Find and replace" utility for Access. About $40. Good product. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, October 27, 2006 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access documentor Wait, the databases I'm checking have a couple hundred tables. Many are ODBC links. I don't want to have to go in and search for each one individually. Although, I have written code to automate the find and replace application. I guess I'll go that route. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, October 27, 2006 3:01 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access documentor I use Find and replace and have for years. It has a cross reference feature which tells what is used where, and can show things that are not used anywhere. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Friday, October 27, 2006 2:47 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access documentor Many years ago I bought an Access documentation program. May have been from FMS. I'm looking for one that will tell me if there are unused tables and functions in the database. What's the latest recommendation? Thanks, John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Fri Oct 27 15:37:59 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 27 Oct 2006 13:37:59 -0700 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <007701c6f923$7fcdc080$6501a8c0@LaptopXP> References: <007701c6f923$7fcdc080$6501a8c0@LaptopXP> Message-ID: <45426E27.2030702@shaw.ca> Slow is a relative term. Once upon a time, I used to get a 3 hour turnaround on 500 line compiles. How many records and how long? You might get some more speed by doing the calculations on an array after using GetRows but that might be limited by table size and RAM You might get more speed if you specify a linked table or query, with OpenRecordset creates a dynaset-type Recordset Try selecting a nonupdateable cursor using dbOpenForwardOnly instead of default dbOpenDynaset SQL Server: Calculating Running Totals, Subtotals and Grand Total Without a Cursor http://www.databasejournal.com/features/mssql/article.php/3112381 John Skolits wrote: >I did try this, and it was very slow. The table is very large. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >Sent: Thursday, October 26, 2006 11:09 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Running sum in a query without DSUM > >Try this one. Let me know if it's any faster, I haven't tried it myself and >would like to know. > > >select T1.datafield, (select sum(datafield) from yourtable as T2 where >T2.datafield <= T1.datafield ) as cumsum >from yourtable as T1 >order by T1.datafield > > >Susan H. > > >Thanks Jim. >That makes sense but it still essentially does a dsum in the embedded select >statement. It then runs very slowly for large tables. > > >Here is some a method from a query samples database I got from Lord knows >where. HTH Jim Hale > > >SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) >AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order >Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal >FROM [Order Details] GROUP BY [Order Details].OrderID; > > > -- Marty Connelly Victoria, B.C. Canada From askolits at ot.com Fri Oct 27 16:06:58 2006 From: askolits at ot.com (John Skolits) Date: Fri, 27 Oct 2006 17:06:58 -0400 Subject: [AccessD] Running sum in a query without DSUM In-Reply-To: <45426E27.2030702@shaw.ca> Message-ID: <00dc01c6fa0b$da310df0$6501a8c0@LaptopXP> The fastest way so far was just to do a make table from the query and then write code to do the math and place the results in another field. It's not pretty, but real fast. The table size is about 100,000 records, If it was millions, I'd go another route. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, October 27, 2006 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Running sum in a query without DSUM Slow is a relative term. Once upon a time, I used to get a 3 hour turnaround on 500 line compiles. How many records and how long? You might get some more speed by doing the calculations on an array after using GetRows but that might be limited by table size and RAM You might get more speed if you specify a linked table or query, with OpenRecordset creates a dynaset-type Recordset Try selecting a nonupdateable cursor using dbOpenForwardOnly instead of default dbOpenDynaset SQL Server: Calculating Running Totals, Subtotals and Grand Total Without a Cursor http://www.databasejournal.com/features/mssql/article.php/3112381 John Skolits wrote: >I did try this, and it was very slow. The table is very large. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >Sent: Thursday, October 26, 2006 11:09 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Running sum in a query without DSUM > >Try this one. Let me know if it's any faster, I haven't tried it myself and >would like to know. > > >select T1.datafield, (select sum(datafield) from yourtable as T2 where >T2.datafield <= T1.datafield ) as cumsum >from yourtable as T1 >order by T1.datafield > > >Susan H. > > >Thanks Jim. >That makes sense but it still essentially does a dsum in the embedded select >statement. It then runs very slowly for large tables. > > >Here is some a method from a query samples database I got from Lord knows >where. HTH Jim Hale > > >SELECT [Order Details].OrderID, Sum([UnitPrice]*[Quantity]*(1-[Discount])) >AS OrderTotal, (SELECT Sum(UnitPrice*Quantity*(1-Discount)) FROM [Order >Details] OD WHERE OD.OrderID <= [Order Details].OrderID) AS RunningTotal >FROM [Order Details] GROUP BY [Order Details].OrderID; > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Oct 27 20:45:05 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 27 Oct 2006 18:45:05 -0700 Subject: [AccessD] IE 7 changes Wininet.dll may affect FTP code In-Reply-To: <00dc01c6fa0b$da310df0$6501a8c0@LaptopXP> References: <00dc01c6fa0b$da310df0$6501a8c0@LaptopXP> Message-ID: <4542B621.2010002@shaw.ca> Microsoft is going to start force downloading IE 7.0 through Windows update. This may affect FTP code or Internet TransferLib.I know people are using here. MS may come out with a shim to use old version of WinInet.dll or at least it's behaviour. Yup wininet.dll has changed their error handling in IE7. It only checks for null pointers now. This has been a long ongoing argument at MS. If you are an application developer using WinInet and you start getting crashes in these functions, take a look at the pointer values getting passed to these functions. You are going to have to check the parameters being passed in the mda from Dev's code See Changes in WinInet API validation code could lead to Unexpected Behavior http://blogs.msdn.com/wndp/archive/2005/08/18/453124.aspx On Tue, 24 Oct 2006 12:18:06 -0400, David Plaut wrote: >This is a heads up that IE7 changed something in wininet.dll. I use >Dev Ashish's very fine ftp code from http://www.mvps.org/access/ and >IE7 breaks it. > >My short term solution has been to change the code to point to a >version of wininet.dll prior to IE7. -- Marty Connelly Victoria, B.C. Canada From dw-murphy at cox.net Sat Oct 28 12:14:03 2006 From: dw-murphy at cox.net (Doug Murphy) Date: Sat, 28 Oct 2006 10:14:03 -0700 Subject: [AccessD] IE 7 changes Wininet.dll may affect FTP code In-Reply-To: <4542B621.2010002@shaw.ca> Message-ID: <001901c6fab4$77f610f0$0200a8c0@murphy3234aaf1> Marty, Thank you for the heads up. We have an application with several hundred copies out that uses wininet.dll to pull data off a web site into the app. I am not looking forward to sending out that many updates if the change impacts our app. The "thinking about creating an application compatibility shim to help legacy applications by mimicking the old behavior" comment does not bring great comfort. One more configuration to set up in my predeployment test system. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, October 27, 2006 6:45 PM To: Access Developers discussion and problem solving Subject: [AccessD] IE 7 changes Wininet.dll may affect FTP code Microsoft is going to start force downloading IE 7.0 through Windows update. This may affect FTP code or Internet TransferLib.I know people are using here. MS may come out with a shim to use old version of WinInet.dll or at least it's behaviour. Yup wininet.dll has changed their error handling in IE7. It only checks for null pointers now. This has been a long ongoing argument at MS. If you are an application developer using WinInet and you start getting crashes in these functions, take a look at the pointer values getting passed to these functions. You are going to have to check the parameters being passed in the mda from Dev's code See Changes in WinInet API validation code could lead to Unexpected Behavior http://blogs.msdn.com/wndp/archive/2005/08/18/453124.aspx On Tue, 24 Oct 2006 12:18:06 -0400, David Plaut wrote: >This is a heads up that IE7 changed something in wininet.dll. I use >Dev Ashish's very fine ftp code from http://www.mvps.org/access/ and >IE7 breaks it. > >My short term solution has been to change the code to point to a >version of wininet.dll prior to IE7. -- 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 boogieloogie at gmail.com Sat Oct 28 15:35:01 2006 From: boogieloogie at gmail.com (Boogie Loogie) Date: Sat, 28 Oct 2006 17:35:01 -0300 Subject: [AccessD] IE 7 changes Wininet.dll may affect FTP code In-Reply-To: <001901c6fab4$77f610f0$0200a8c0@murphy3234aaf1> References: <4542B621.2010002@shaw.ca> <001901c6fab4$77f610f0$0200a8c0@murphy3234aaf1> Message-ID: <3bf43ee90610281335y197b5537j845dcb01b028486b@mail.gmail.com> On 10/28/06, Doug Murphy wrote: > > Marty, > > Thank you for the heads up. We have an application with several hundred > copies out that uses wininet.dll to pull data off a web site into the app. > I > am not looking forward to sending out that many updates if the change > impacts our app. The "thinking about creating an application > compatibility > shim to help legacy applications by mimicking the old behavior" comment > does > not bring great comfort. > > One more configuration to set up in my predeployment test system. > > Doug > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Friday, October 27, 2006 6:45 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] IE 7 changes Wininet.dll may affect FTP code > > Microsoft is going to start force downloading IE 7.0 through Windows > update. > This may affect FTP code or Internet TransferLib.I know people are using > here. > MS may come out with a shim to use old version of WinInet.dll or at least > it's behaviour. > > Yup wininet.dll has changed their error handling in IE7. It only checks > for > null pointers now. This has been a long ongoing argument at MS. > > If you are an application developer using WinInet and you start getting > crashes in these functions, take a look at the pointer values getting > passed > to these functions. You are going to have to check the parameters being > passed in the mda from Dev's code > > See > Changes in WinInet API validation code could lead to Unexpected Behavior > http://blogs.msdn.com/wndp/archive/2005/08/18/453124.aspx > > On Tue, 24 Oct 2006 12:18:06 -0400, David Plaut > wrote: > > >This is a heads up that IE7 changed something in wininet.dll. I > use >Dev > Ashish's very fine ftp code from http://www.mvps.org/access/ and > >IE7 breaks it. > > > >My short term solution has been to change the code to point to > a >version > of wininet.dll prior to IE7. > > -- > Marty Connelly > Victoria, B.C. > Canada > > And this is progress how? M$ is always causing havoc amongst developers. I need a big drink of scotch. From Mike.W.Gowey at doc.state.or.us Mon Oct 30 15:38:24 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Mon, 30 Oct 2006 14:38:24 -0700 Subject: [AccessD] Record Maximum In-Reply-To: Message-ID: <96190DA9E0A10A4CB36E4B71367E55C14D1497@srcimail1.ds.doc.state.or.us> Hi Everyone, Just a quick question. What is the maximum or the most records that anyone has seen in a table before the database started to degrade in permormance. What would you consider the maximum record count before archiving? TIA for your thoughts, Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit From jwcolby at colbyconsulting.com Mon Oct 30 17:56:10 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 30 Oct 2006 18:56:10 -0500 Subject: [AccessD] Record Maximum In-Reply-To: <96190DA9E0A10A4CB36E4B71367E55C14D1497@srcimail1.ds.doc.state.or.us> Message-ID: <002501c6fc7e$f9ed11a0$657aa8c0@m6805> >What is the maximum or the most records that anyone has seen in a table before the database started to degrade in performance. I don't think it is possible to quantify it in quite those terms. The number of users in the db is a bigger concern in my experience than raw "number of records in a table". That said however, you have to go back to "what are you trying to do?". If you are trying to update records using an update query while 10 people are in the database trying to use that same table, I have experienced the database becoming unusable at 1/4 million records. The update operation had to be moved to "after hours". The thing to remember is that Access is a file based back end, not a server based back end. Thus if you have an application that needs to join a dozen tables with many FKs with a dozen joins and then filter to a subset etc... You just have to know that the way access works is to pull "a lot of" the indexes in question across the wore into the local workstation, sort through the joins, where clauses etc. assemble the requirements for data records from each table, then ask the file server to "go here in the file and get this chunk of data, now go here in the file and get this chunk of data" etc. >What would you consider the maximum record count before archiving? Again, the question makes no sense to me as stated. Archiving and getting data back from archives is an inherently slow operation. Thus if the archived data are never used, then archive whenever the data is not actively useful any more. If you will need the data daily, or even weekly (and quickly) then you might want to push the archive out until the data isn't actively needed any more. OTOH, if you need the archived data weekly, but it is for a report that can be done overnight for delivery on a Monday morning, then archiving it is very plausible. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Monday, October 30, 2006 4:38 PM To: Access Developers discussion and problem solving Subject: [AccessD] Record Maximum Hi Everyone, Just a quick question. What is the maximum or the most records that anyone has seen in a table before the database started to degrade in permormance. What would you consider the maximum record count before archiving? TIA for your thoughts, Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Mon Oct 30 18:09:22 2006 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 31 Oct 2006 11:09:22 +1100 Subject: [AccessD] A2003:Where is the Description of the Reports Kept In-Reply-To: <00dd01c6ec11$2166c420$6401a8c0@nant> Message-ID: <002901c6fc80$de9862e0$782b8a90@DENZILLAP> Hi Shamil Sorry for the delay - perfect - just what I needed thanks Darren ------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Tuesday, 10 October 2006 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Where is the Description of the Reports Kept Access.Application.Currentdb .Containers("Reports") .Documents("{{YourReportNameHere}}") .Properties("Description").Value That's is all one code line wrapped here. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, October 10, 2006 5:41 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003:Where is the Description of the Reports Kept Hi All if I do SELECT MSysObjects.* FROM MSysObjects WHERE (((MSysObjects.Type)=-32764)); I can see all the reports Does anyone know where the reprost descriptions are kept? Many thanks in advance DD -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Mon Oct 30 18:09:22 2006 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 31 Oct 2006 11:09:22 +1100 Subject: [AccessD] A2003:Remove first line in CSV/Excel file In-Reply-To: <453E50B7.2080405@shaw.ca> Message-ID: <002a01c6fc80$e101e8d0$782b8a90@DENZILLAP> Hi Marty Not sure if I replied or not - it works like a treat - this makes life sooooooo much easier well done and many thanks Darren ------------------ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, 25 October 2006 3:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Remove first line in CSV/Excel file Ooops misread this should work Sub testexcelsave() Dim oApp As Excel.Application Dim ObjXLBook As Excel.Workbooks Dim sourceWkBkName As String Dim sNew As String On Error GoTo ExcelExit Set oApp = New Excel.Application 'or use createobject latebinding 'sourceWkBkName = oApp.GetOpenFilename("Excel Files(*.xls),*.xls", _ ' , "WHERE IS YOUR FILE?", "SELECT") With oApp .Visible = True .Workbooks.Open ("C:\Excel\product2.xls") '.ActiveSheet.Name = "Wisconsin" sNew = .ActiveSheet.Name With .Worksheets(sNew) .Rows(1).EntireRow.Delete End With MsgBox .ActiveWorkbook.FullName '.ActiveSheet.Rows("1:1").EntireRow.Delete .ActiveWorkbook.SaveCopyAs "C:\excel\product3.xls" '.ActiveWorkbook.SaveAs "C:\excel\product3.xls" 'hmm doesn't work with Excel 2007 .ActiveWorkbook.Close SaveChanges:=False .Workbooks.Close End With Set ObjXLBook = Nothing oApp.Quit Set oApp = Nothing ExcelExit: Debug.Print Err.Number & Err.Description End Sub Darren DICK wrote: >Further to my last > >Does anyone have any code that will remove the first line in an Excel doc but >from Access? > >Many thanks again in advance > >Darren > > > _____ > >From: Darren DICK [mailto:darrend at nimble.com.au] >Sent: Tuesday, 24 October 2006 11:55 PM >To: 'Access Developers discussion and problem solving' >Subject: A2003:Rename a file in a folder > > >Hi all > >I have a file that will be always named the same - EG myCoolCSVfile.csv > >It will be dumped into a folder...say C:\MyCoolFolder at random times > >I need some code to Check the C:\myCoolFolder to see if the file >myCoolCSVfile.csv file exists in the folder - and if it does to rename it to >YYMMDDHHMMSS.csv > >Where YY = Year MM = Month DD = Day etc etc > >Does anyone have anything that might suit? > >Many thanks in advance > >Darren > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Oct 30 18:10:47 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 30 Oct 2006 19:10:47 -0500 Subject: [AccessD] Appending data to SQL Server table with identity field Message-ID: <002601c6fc81$04a17a30$657aa8c0@m6805> I am trying to append data from a CSV file to an existing table with a PK integer field (4 bytes) that is an identity, seed 1, increment 1. The append fails at the very end saying it can't append a null to the PK field. Does an identity not increment in the same manner that an autonumber does in Access? If so any ideas why this is failing? If not, any ideas how to cause this to happen. I hate to import to a table without the PK, and then append to the table with the PK. I have tried that and THAT does work. What is it about the import from CSV that is causing this failure? John W. Colby Colby Consulting www.ColbyConsulting.com From wdhindman at dejpolsystems.com Mon Oct 30 18:36:01 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 30 Oct 2006 19:36:01 -0500 Subject: [AccessD] Record Maximum References: <96190DA9E0A10A4CB36E4B71367E55C14D1497@srcimail1.ds.doc.state.or.us> Message-ID: <004801c6fc84$8af32130$3e3de844@50NM721> ...as JC pointed out, the "number" of records is rarely the driving factor ...I'd add to JC's comments that the record length plays into the issue as well ...if each record is 2k its a major factor in your considerations. ...and while record count IS a factor in archiving, its not THE major factor ...I baseline archive a record whenever it meets certain client specific milestones and only IF the client concurs on a record by record basis ...a dead record is a dead record whether there are 2K or 2M of them William Hindman ----- Original Message ----- From: "Gowey Mike W" To: "Access Developers discussion and problem solving" Sent: Monday, October 30, 2006 4:38 PM Subject: [AccessD] Record Maximum > > > Hi Everyone, > > Just a quick question. What is the maximum or the most records that > anyone has seen in a table before the database started to degrade in > permormance. > > What would you consider the maximum record count before archiving? > > > TIA for your thoughts, > > Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ > Team Leader - SouthEast Region > Information Systems Unit > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Mon Oct 30 18:39:06 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 30 Oct 2006 19:39:06 -0500 Subject: [AccessD] Appending data to SQL Server table with identity field References: <002601c6fc81$04a17a30$657aa8c0@m6805> Message-ID: <005001c6fc84$f95be670$3e3de844@50NM721> ...is there any stray space or return at the end of the csv file? William Hindman ----- Original Message ----- From: "JWColby" To: ; "'Access Developers discussion and problem solving'" Sent: Monday, October 30, 2006 7:10 PM Subject: [AccessD] Appending data to SQL Server table with identity field >I am trying to append data from a CSV file to an existing table with a PK > integer field (4 bytes) that is an identity, seed 1, increment 1. The > append fails at the very end saying it can't append a null to the PK > field. > Does an identity not increment in the same manner that an autonumber does > in > Access? If so any ideas why this is failing? If not, any ideas how to > cause this to happen. I hate to import to a table without the PK, and > then > append to the table with the PK. I have tried that and THAT does work. > What is it about the import from CSV that is causing this failure? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Oct 30 20:00:54 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 30 Oct 2006 21:00:54 -0500 Subject: [AccessD] Raid controller Message-ID: <002b01c6fc90$66de1b40$657aa8c0@m6805> I purchased an Areca 1220 SATA 8 disk raid controller, with (7) Seagate 10.1 320 gb hard disks to create a raid system with. One of the disks was damaged and had to be RMAd. I went ahead and created a Raid 5 array using the 6 remaining drives. This gave me about 1.0 terra bytes on one volume and about 370 gb on another volume, both Raid 5. I just received the RMAd drive back, popped it in, added it to the array and told the controller to convert to Raid 6 for both volumes. That was early this afternoon, and the controller has finished the conversion of the large array to Raid 6 and is about 50% finished converting the smaller array to Raid 6, all consuming ZERO CPU and doing so while I was using the arrays pretty heavily. The controller is also very fast. Raid 5/6 writes are about the speed of the individual drives and reads are much faster (~raid 0 speed according to Areca) These disks are about $95 from Newegg and can be purchased with free shipping if you keep your eyes open so that is a real $95 / disk. This particular controller is currently about $500. This made my actual cost about $1200 for 1400gb in a Raid 6 config. Someday I hope that the Seagate 10.1 750 gb drives drop into this price range in which case I will upgrade. ATM those drives are about $375-$400 each which makes them out of my range. I am impressed with this Areca controller which is the point of this email. Areca makes controllers that handle various numbers of disks. The controller uses a PCI-X8 connection to the CPU so you must have a PCI-X capable motherboard. If you need more disks, they also have a 12, 16 and 24 disk controller, for more money of course. Nice controller so far! John W. Colby Colby Consulting www.ColbyConsulting.com From wdhindman at dejpolsystems.com Tue Oct 31 01:59:45 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 31 Oct 2006 02:59:45 -0500 Subject: [AccessD] Raid controller References: <002b01c6fc90$66de1b40$657aa8c0@m6805> Message-ID: <002701c6fcc2$89124a10$3e3de844@50NM721> ...thanks for the tip JC ...as a matter of fact I was about to look into just that for a client :) William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" ; "'Discussion of Hardware and Software issues'" ; Sent: Monday, October 30, 2006 9:00 PM Subject: [AccessD] Raid controller >I purchased an Areca 1220 SATA 8 disk raid controller, with (7) Seagate >10.1 > 320 gb hard disks to create a raid system with. One of the disks was > damaged and had to be RMAd. I went ahead and created a Raid 5 array using > the 6 remaining drives. This gave me about 1.0 terra bytes on one volume > and about 370 gb on another volume, both Raid 5. I just received the RMAd > drive back, popped it in, added it to the array and told the controller to > convert to Raid 6 for both volumes. That was early this afternoon, and > the > controller has finished the conversion of the large array to Raid 6 and is > about 50% finished converting the smaller array to Raid 6, all consuming > ZERO CPU and doing so while I was using the arrays pretty heavily. The > controller is also very fast. Raid 5/6 writes are about the speed of the > individual drives and reads are much faster (~raid 0 speed according to > Areca) > > These disks are about $95 from Newegg and can be purchased with free > shipping if you keep your eyes open so that is a real $95 / disk. This > particular controller is currently about $500. This made my actual cost > about $1200 for 1400gb in a Raid 6 config. > > Someday I hope that the Seagate 10.1 750 gb drives drop into this price > range in which case I will upgrade. ATM those drives are about $375-$400 > each which makes them out of my range. > > I am impressed with this Areca controller which is the point of this > email. > Areca makes controllers that handle various numbers of disks. The > controller uses a PCI-X8 connection to the CPU so you must have a PCI-X > capable motherboard. > > If you need more disks, they also have a 12, 16 and 24 disk controller, > for > more money of course. > > Nice controller so far! > > John W. Colby > Colby Consulting > www.ColbyConsulting.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 Oct 31 04:13:10 2006 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 31 Oct 2006 23:13:10 +1300 Subject: [AccessD] GPF with Subform in Runtime Message-ID: <7.0.1.0.0.20061031222732.01a3c828@dalyn.co.nz> Listers, Access XP ade with SQL BE. I have a form with a tab object on it. There are five tabs and each one has a sub form on it. The form opens up fine when I use a full version of Access but when I run it using a runtime installation the form generates a General Protection Fault and closes down. The problem seems to be because I have some fields with conditional formatting in them. If I take out the conditional formatting then the problem disappears. However, I need the conditional formatting. I haven't been able to find anything on the web that helps. Regards David Emerson Dalyn Software Ltd 999 Moonshine Rd, RD 1 Judgeford, Porirua 5381 Phone (04) 235-6782 Fax (04) 235-6783 Mob (027) 280-9348 From artful at rogers.com Tue Oct 31 04:21:13 2006 From: artful at rogers.com (artful at rogers.com) Date: Tue, 31 Oct 2006 02:21:13 -0800 (PST) Subject: [AccessD] GPF with Subform in Runtime Message-ID: <20061031102113.65623.qmail@web88201.mail.re2.yahoo.com> I haven't experienced this problem myself, but I would suggest that you replace the built-in conditional formatting with some of your own code placed in the OnCurrent event. ----- Original Message ---- From: David Emerson To: accessd at databaseadvisors.com Sent: Tuesday, October 31, 2006 5:13:10 AM Subject: [AccessD] GPF with Subform in Runtime Listers, Access XP ade with SQL BE. I have a form with a tab object on it. There are five tabs and each one has a sub form on it. The form opens up fine when I use a full version of Access but when I run it using a runtime installation the form generates a General Protection Fault and closes down. The problem seems to be because I have some fields with conditional formatting in them. If I take out the conditional formatting then the problem disappears. However, I need the conditional formatting. I haven't been able to find anything on the web that helps. Regards David Emerson Dalyn Software Ltd 999 Moonshine Rd, RD 1 Judgeford, Porirua 5381 Phone (04) 235-6782 Fax (04) 235-6783 Mob (027) 280-9348 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ewaldt at gdls.com Tue Oct 31 05:16:37 2006 From: ewaldt at gdls.com (ewaldt at gdls.com) Date: Tue, 31 Oct 2006 06:16:37 -0500 Subject: [AccessD] Turning off the clipboard message In-Reply-To: Message-ID: "You copied a large amount of data onto the clipboard...Do you want to save this data on the clipboard?" We're all familiar with this message. Is there any way to turn it off permanently? I frequently copy a "large amount of data", but I never want to save it on the clipboard. I can't imagine that this is all that unusual. TIA, Thomas F. Ewald FCS Database Manager General Dynamics Land Systems (586) 276-1256 This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated. From hollisvj at pgdp.usec.com Tue Oct 31 06:54:10 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Tue, 31 Oct 2006 06:54:10 -0600 Subject: [AccessD] Limit Text in Field Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01015177@c2k3exchange.pgdp.corp.usec.com> I need a field that is longer than the 255 txt, but shorter than a memo. Is there a way to limit the characters entered into a field? I tried this code on the Before Update, but it still let me type more than 500 characters. I also remember seeing someone had an example on limited text and it had a field that showed how many characters were left to type. Does anyone still have that or know where it can be located? '-- File names are limited in length. If Len(GstrFileName) > 500 Then MsgBox "You must limit the length of the Equipment Used to 500 characters", vbExclamation + vbOKOnly, "Text Too Long" Exit Sub End If Virginia From paul.hartland at fsmail.net Tue Oct 31 07:05:04 2006 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 31 Oct 2006 14:05:04 +0100 (CET) Subject: [AccessD] Limit Text in Field Message-ID: <26524231.21461162299904796.JavaMail.www@wwinf3203> Virgina, If Len(GstrFileName) > 500 Then MsgBox "You must limit the length of the Equipment Used to 500 characters", vbExclamation + vbOKOnly, "Text Too Long" ' say your text field is text1, couldn't you put text1 = left(text1,500) Exit Sub End If Message Received: Oct 31 2006, 12:59 PM From: "Hollis, Virginia" To: accessD at databaseadvisors.com Cc: Subject: [AccessD] Limit Text in Field I need a field that is longer than the 255 txt, but shorter than a memo. Is there a way to limit the characters entered into a field? I tried this code on the Before Update, but it still let me type more than 500 characters. I also remember seeing someone had an example on limited text and it had a field that showed how many characters were left to type. Does anyone still have that or know where it can be located? '-- File names are limited in length. If Len(GstrFileName) > 500 Then MsgBox "You must limit the length of the Equipment Used to 500 characters", vbExclamation + vbOKOnly, "Text Too Long" Exit Sub End If Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From bheid at appdevgrp.com Tue Oct 31 07:46:44 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 31 Oct 2006 08:46:44 -0500 Subject: [AccessD] [SPAM SUSPECT] Re: Limit Text in Field In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E5F9A6@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35A26@ADGSERVER> Also, aren't file names limited to about 280 characters? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, October 31, 2006 8:05 AM To: Access Developers discussion and problem solving Subject: [SPAM SUSPECT] Re: [AccessD] Limit Text in Field Importance: Low Virgina, If Len(GstrFileName) > 500 Then MsgBox "You must limit the length of the Equipment Used to 500 characters", vbExclamation + vbOKOnly, "Text Too Long" ' say your text field is text1, couldn't you put text1 = left(text1,500) Exit Sub End If Message Received: Oct 31 2006, 12:59 PM From: "Hollis, Virginia" To: accessD at databaseadvisors.com Cc: Subject: [AccessD] Limit Text in Field I need a field that is longer than the 255 txt, but shorter than a memo. Is there a way to limit the characters entered into a field? I tried this code on the Before Update, but it still let me type more than 500 characters. I also remember seeing someone had an example on limited text and it had a field that showed how many characters were left to type. Does anyone still have that or know where it can be located? '-- File names are limited in length. If Len(GstrFileName) > 500 Then MsgBox "You must limit the length of the Equipment Used to 500 characters", vbExclamation + vbOKOnly, "Text Too Long" Exit Sub End If Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Tue Oct 31 08:18:10 2006 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 31 Oct 2006 06:18:10 -0800 (PST) Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? Message-ID: <20061031141810.69743.qmail@web31606.mail.mud.yahoo.com> Hi group, does anybody know how difficult it is to open a report in an Access 2003 database using Asp.Net? We're using an intranet and VPN. So that shouldn't be the big issue. Thnx in @vance. Regards, Sander From Mike.W.Gowey at doc.state.or.us Tue Oct 31 08:21:27 2006 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Tue, 31 Oct 2006 07:21:27 -0700 Subject: [AccessD] Record Maximum In-Reply-To: <004801c6fc84$8af32130$3e3de844@50NM721> Message-ID: <96190DA9E0A10A4CB36E4B71367E55C14D149A@srcimail1.ds.doc.state.or.us> Thanks guys for your input. I was just looking for some ways to explain to the customer that the rumor that they heard about Access databases crashing when the size of the database reached over 100mb. I already explained that this was a vicious rumor and explained to them how it works, but they were not totally convinced so I was looking for more amminition to though at them to eleviate their concerns. Thanks again -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, October 30, 2006 5:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Maximum ...as JC pointed out, the "number" of records is rarely the driving factor ...I'd add to JC's comments that the record length plays into the issue as well ...if each record is 2k its a major factor in your considerations. ...and while record count IS a factor in archiving, its not THE major factor ...I baseline archive a record whenever it meets certain client specific milestones and only IF the client concurs on a record by record basis ...a dead record is a dead record whether there are 2K or 2M of them William Hindman ----- Original Message ----- From: "Gowey Mike W" To: "Access Developers discussion and problem solving" Sent: Monday, October 30, 2006 4:38 PM Subject: [AccessD] Record Maximum > > > Hi Everyone, > > Just a quick question. What is the maximum or the most records that > anyone has seen in a table before the database started to degrade in > permormance. > > What would you consider the maximum record count before archiving? > > > TIA for your thoughts, > > Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ > Team Leader - SouthEast Region > Information Systems Unit > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Tue Oct 31 08:45:10 2006 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Tue, 31 Oct 2006 08:45:10 -0600 Subject: [AccessD] Re: Limit Text in Field Message-ID: <703BDA18A87DFA4CB265A86F42E4178D01015182@c2k3exchange.pgdp.corp.usec.com> Oh yea! I should change the wording on that to show as a field name, not a file - (GstrFileName) was the wrong choice. But it really is a field that I made as a memo but don't want them to type a book, but they need more than the 255 for a txt field. I tried the ' say your text field is text1, couldn't you put text1 = left(text1,500) & it didn't like that - it gives a runtime error about the BeforeUpdate can't save the record. Also, Does anyone have something that shows how many characters have been typed (it shows as they type)? Sorry confused everyone on that one. Virginia Also, aren't file names limited to about 280 characters? Bobby From wdhindman at dejpolsystems.com Tue Oct 31 08:47:51 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 31 Oct 2006 09:47:51 -0500 Subject: [AccessD] checkbox concatenation References: <96190DA9E0A10A4CB36E4B71367E55C14D149A@srcimail1.ds.doc.state.or.us> Message-ID: <000a01c6fcfb$8b0a59a0$3e3de844@50NM721> ...given four tables tblContact pk ContactID fk CompanyId tblCompany pk CompanyID tbEvent pk EventID tblEventReg pkERID fk EventID fk CompanyD fk ContactID ...tblEventRegistration is a join table to show which contacts from which companies attended which events. ...given that thousands of contacts attend each event, tblEventReg is growing logarithmically Q: is it feasible to use a numeric field in the tblContacts to replace tblEventReg by using event checkboxes instead, assigning them a numeric value by show and then mathematically summing them in the numeric field ...thus using one integer to represent every event attended by that contact? ...yes/no? ...pros/cons? William Hindman From wdhindman at dejpolsystems.com Tue Oct 31 08:57:10 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 31 Oct 2006 09:57:10 -0500 Subject: [AccessD] Limit Text in Field References: <703BDA18A87DFA4CB265A86F42E4178D01015182@c2k3exchange.pgdp.corp.usec.com> Message-ID: <001401c6fcfc$d827c140$3e3de844@50NM721> http://www.lebans.com/limittextinput.htm William Hindman ----- Original Message ----- From: "Hollis, Virginia" To: Sent: Tuesday, October 31, 2006 9:45 AM Subject: [AccessD] Re: Limit Text in Field > Oh yea! I should change the wording on that to show as a field name, not > a file - (GstrFileName) was the wrong choice. But it really is a field > that I made as a memo but don't want them to type a book, but they need > more than the 255 for a txt field. > > > > I tried the ' say your text field is text1, couldn't you put text1 = > left(text1,500) & it didn't like that - it gives a runtime error about > the BeforeUpdate can't save the record. > > > > Also, Does anyone have something that shows how many characters have > been typed (it shows as they type)? > > > > Sorry confused everyone on that one. > > > > Virginia > > > > > Also, aren't file names limited to about 280 characters? > > Bobby > > > > -- > 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 Oct 31 09:28:51 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 01 Nov 2006 01:28:51 +1000 Subject: [AccessD] Limit Text in Field In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01015182@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D01015182@c2k3exchange.pgdp.corp.usec.com> Message-ID: <45476BB3.8733.C0D11E4@stuart.lexacorp.com.pg> On 31 Oct 2006 at 8:45, Hollis, Virginia wrote: > I tried the ' say your text field is text1, couldn't you put text1 = > left(text1,500) & it didn't like that - it gives a runtime error about > the BeforeUpdate can't save the record. > > Also, Does anyone have something that shows how many characters have > been typed (it shows as they type)? Create another text box Text2 to display the length and then use this: Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) Text2 = Len(Text1.Text) If Len(Text1.Text) > 40 Then MsgBox "Too many characters" Text1.Text = Left$(Text1.Text, 40) End If-- Stuart From stuart at lexacorp.com.pg Tue Oct 31 09:44:08 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 01 Nov 2006 01:44:08 +1000 Subject: [AccessD] checkbox concatenation In-Reply-To: <000a01c6fcfb$8b0a59a0$3e3de844@50NM721> References: <96190DA9E0A10A4CB36E4B71367E55C14D149A@srcimail1.ds.doc.state.or.us>, <000a01c6fcfb$8b0a59a0$3e3de844@50NM721> Message-ID: <45476F48.4551.C1B103A@stuart.lexacorp.com.pg> On 31 Oct 2006 at 9:47, William Hindman wrote: > ...given four tables > > tblContact pk ContactID fk CompanyId > tblCompany pk CompanyID > tbEvent pk EventID > tblEventReg pkERID fk EventID fk CompanyD fk ContactID > CompanyID is redundant in tblEventReg since you have ContactID which points to tblCompany via tblContact. > ...tblEventRegistration is a join table to show which contacts from which > companies attended which events. ...given that thousands of contacts attend > each event, tblEventReg is growing logarithmically > > Q: is it feasible to use a numeric field in the tblContacts to replace > tblEventReg by using event checkboxes instead, assigning them a numeric > value by show and then mathematically summing them in the numeric field > ...thus using one integer to represent every event attended by that contact? > ...yes/no? ...pros/cons? Yes but... You would need to bit mask the attendance to find out which events were attended which means your Events would need to be numbered 1,2,4,8,16,32,64..... You would be limited to a maximum of 63 events if you store it as a long (The 63rd event would be EventID 9223372036854775808) -- Stuart From jwcolby at colbyconsulting.com Tue Oct 31 09:48:22 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 31 Oct 2006 10:48:22 -0500 Subject: [AccessD] Record Maximum In-Reply-To: <96190DA9E0A10A4CB36E4B71367E55C14D149A@srcimail1.ds.doc.state.or.us> Message-ID: <000901c6fd03$ff934a90$657aa8c0@m6805> Oh well. I have a client with a database with well over 500 mbytes of data. I did break it down but I did it for technical reasons having to do with one table having a bunch of memo fields and lots of activity, which was causing bloating. I wanted to be able to compact and repair the pieces individually. The main database container in this specific application currently sits at about 250 mbytes, and has ~40 users in it all day. It is a mission critical database for a disability insurance call center. I designed it from scratch starting in March 2002 and it has been in operation since the first week of August, 2002 (I just checked my billing database). They add about 100 mbytes of data per year and (so far) have all the claims processed still on line. In the past months we have brought up a claims payment module that allows actually paying the claims through a payroll processing third party. We are about to bring another insurance client on board that will require similar claims payments processing. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Tuesday, October 31, 2006 9:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Maximum Thanks guys for your input. I was just looking for some ways to explain to the customer that the rumor that they heard about Access databases crashing when the size of the database reached over 100mb. I already explained that this was a vicious rumor and explained to them how it works, but they were not totally convinced so I was looking for more amminition to though at them to eleviate their concerns. Thanks again -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, October 30, 2006 5:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Maximum ...as JC pointed out, the "number" of records is rarely the driving factor ...I'd add to JC's comments that the record length plays into the issue as well ...if each record is 2k its a major factor in your considerations. ...and while record count IS a factor in archiving, its not THE major factor ...I baseline archive a record whenever it meets certain client specific milestones and only IF the client concurs on a record by record basis ...a dead record is a dead record whether there are 2K or 2M of them William Hindman ----- Original Message ----- From: "Gowey Mike W" To: "Access Developers discussion and problem solving" Sent: Monday, October 30, 2006 4:38 PM Subject: [AccessD] Record Maximum > > > Hi Everyone, > > Just a quick question. What is the maximum or the most records that > anyone has seen in a table before the database started to degrade in > permormance. > > What would you consider the maximum record count before archiving? > > > TIA for your thoughts, > > Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ Team Leader - SouthEast > Region Information Systems Unit > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Oct 31 09:52:48 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 31 Oct 2006 16:52:48 +0100 Subject: [AccessD] Record Maximum Message-ID: Hi Mike You'll hear a lot of that, mostly from VB or SQL Server people with only limited knowledge of Access. Ask the client to base decisions on facts not rumours. /gustav >>> Mike.W.Gowey at doc.state.or.us 31-10-2006 15:21:27 >>> Thanks guys for your input. I was just looking for some ways to explain to the customer that the rumor that they heard about Access databases crashing when the size of the database reached over 100mb. I already explained that this was a vicious rumor and explained to them how it works, but they were not totally convinced so I was looking for more amminition to though at them to eleviate their concerns. From Jdemarco at hudsonhealthplan.org Tue Oct 31 10:00:10 2006 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 31 Oct 2006 11:00:10 -0500 Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? Message-ID: <08F823FD83787D4BA0B99CA580AD3C740464A859@TTNEXCHCL2.hshhp.com> Sander, I read an interestig article a while back that detailed how to use Access as the reporting engine for ASP.NET applications. In short it involves getting input from your user and running the report in Access (installed on server I'd imagine). The report is then exported to XML from Access by your .NET app. Access does a real good job of creating XML/XSL so the reports will look like Access reports. I hope that makes sense (and helps). Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Tuesday, October 31, 2006 9:18 AM To: Acces User Group Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? Hi group, does anybody know how difficult it is to open a report in an Access 2003 database using Asp.Net? We're using an intranet and VPN. So that shouldn't be the big issue. Thnx in @vance. Regards, Sander -- 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 Oct 31 10:08:09 2006 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 01 Nov 2006 02:08:09 +1000 Subject: [AccessD] checkbox concatenation In-Reply-To: <45476F48.4551.C1B103A@stuart.lexacorp.com.pg> References: <96190DA9E0A10A4CB36E4B71367E55C14D149A@srcimail1.ds.doc.state.or.us>, <000a01c6fcfb$8b0a59a0$3e3de844@50NM721>, <45476F48.4551.C1B103A@stuart.lexacorp.com.pg> Message-ID: <454774E9.23407.C310A73@stuart.lexacorp.com.pg> On 1 Nov 2006 at 1:44, Stuart McLachlan wrote: > You would need to bit mask the attendance to find out which events were > attended which means your Events would need to be numbered > 1,2,4,8,16,32,64..... You would be limited to a maximum of 63 events if you > store it as a long (The 63rd event would be EventID 9223372036854775808) Doh! You can actually store 64 events. Event 1 = 2^0 (1) Event 64 = 2^63 ( 9223372036854775808) You would record attendance at Event X as Attendance = Attendance OR 2 ^(X-1) -- Stuart From cfoust at infostatsystems.com Tue Oct 31 10:13:08 2006 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 31 Oct 2006 08:13:08 -0800 Subject: [AccessD] Limit Text in Field In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01015182@c2k3exchange.pgdp.corp.usec.com> Message-ID: Put it in the OnChange event and cancel the event if the length would exceed the set limit. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Tuesday, October 31, 2006 6:45 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Limit Text in Field Oh yea! I should change the wording on that to show as a field name, not a file - (GstrFileName) was the wrong choice. But it really is a field that I made as a memo but don't want them to type a book, but they need more than the 255 for a txt field. I tried the ' say your text field is text1, couldn't you put text1 = left(text1,500) & it didn't like that - it gives a runtime error about the BeforeUpdate can't save the record. Also, Does anyone have something that shows how many characters have been typed (it shows as they type)? Sorry confused everyone on that one. Virginia Also, aren't file names limited to about 280 characters? Bobby -- 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 Oct 31 10:17:06 2006 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 31 Oct 2006 10:17:06 -0600 Subject: [AccessD] Record Maximum Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE0AF@corp-es01.fleetpride.com> If you want a testimonial tell your customer that all our financial reporting and profit planning is done via an Access database into which data is downloaded from an AS400 and which is used to produce dozens of Excel reports to the board and Sr management,ie if this sytem ever went down I would be in deep doo. We are $600 million in sales with 160 locations. The system has run reliably for 5 years, currently the back end is over 500mb. If properly build they should not have problems. Jim Hale -----Original Message----- From: Gowey Mike W [mailto:Mike.W.Gowey at doc.state.or.us] Sent: Tuesday, October 31, 2006 8:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Maximum Thanks guys for your input. I was just looking for some ways to explain to the customer that the rumor that they heard about Access databases crashing when the size of the database reached over 100mb. I already explained that this was a vicious rumor and explained to them how it works, but they were not totally convinced so I was looking for more amminition to though at them to eleviate their concerns. Thanks again -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, October 30, 2006 5:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Record Maximum ...as JC pointed out, the "number" of records is rarely the driving factor ...I'd add to JC's comments that the record length plays into the issue as well ...if each record is 2k its a major factor in your considerations. ...and while record count IS a factor in archiving, its not THE major factor ...I baseline archive a record whenever it meets certain client specific milestones and only IF the client concurs on a record by record basis ...a dead record is a dead record whether there are 2K or 2M of them William Hindman ----- Original Message ----- From: "Gowey Mike W" To: "Access Developers discussion and problem solving" Sent: Monday, October 30, 2006 4:38 PM Subject: [AccessD] Record Maximum > > > Hi Everyone, > > Just a quick question. What is the maximum or the most records that > anyone has seen in a table before the database started to degrade in > permormance. > > What would you consider the maximum record count before archiving? > > > TIA for your thoughts, > > Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ > Team Leader - SouthEast Region > Information Systems Unit > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** 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 garykjos at gmail.com Tue Oct 31 10:18:42 2006 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 31 Oct 2006 10:18:42 -0600 Subject: [AccessD] Record Maximum In-Reply-To: <000901c6fd03$ff934a90$657aa8c0@m6805> References: <96190DA9E0A10A4CB36E4B71367E55C14D149A@srcimail1.ds.doc.state.or.us> <000901c6fd03$ff934a90$657aa8c0@m6805> Message-ID: I have an application that has a couple gigabytes of data in it. It's a single user database though. Multiple use it but they each have their own copy. I think there are f people using it now. It's a database of extracted Oracle database info relating to customer orders that our marketing people do queries against. It used to be in a regular front end back end configuration - until there got to much data for that. I split the backend into seperate databases for each of the large tables and that has worked pretty well for the past several years now. Occaisionally we have to purge some older order detail records but it's about a once a year thing. The Customer Master Table in this database has almost 5 million records. My local copy of the application has orders in it since the first of January 2006 and has about 4 million rows in that table/database. We have about 500,000 item records in the item table. The customer phone number table has about 3.5 million rows in it. The Customer database is about 500 MB and the order database about 600Mb but I know the users have order databases over a gigabyte. All together it's about a two gigabyte application - depending on how many orders you keep. The users seem to love it. They prefer querying order data in this database to the native Oracle data or into a SQL Server version of the extracted data. I have prebuilt queries that they are able to tweak buy adding rows to "select tables" that are then joined into select queries to select orders for all the customers in a list of states or zip codes or a specific list of customers or items or coupon codes. They get flags indicating if the customer is a new customer - with the customer add date being the same date as the order date. This was originally created 6 years ago before we had the Oracle source system and was updated to extract from the Oracle system after we converted to using that for our main application system. GK On 10/31/06, JWColby wrote: > Oh well. I have a client with a database with well over 500 mbytes of data. > I did break it down but I did it for technical reasons having to do with one > table having a bunch of memo fields and lots of activity, which was causing > bloating. I wanted to be able to compact and repair the pieces > individually. > > The main database container in this specific application currently sits at > about 250 mbytes, and has ~40 users in it all day. It is a mission critical > database for a disability insurance call center. I designed it from scratch > starting in March 2002 and it has been in operation since the first week of > August, 2002 (I just checked my billing database). They add about 100 > mbytes of data per year and (so far) have all the claims processed still on > line. In the past months we have brought up a claims payment module that > allows actually paying the claims through a payroll processing third party. > We are about to bring another insurance client on board that will require > similar claims payments processing. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W > Sent: Tuesday, October 31, 2006 9:21 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Record Maximum > > > Thanks guys for your input. I was just looking for some ways to explain to > the customer that the rumor that they heard about Access databases crashing > when the size of the database reached over 100mb. I already explained that > this was a vicious rumor and explained to them how it works, but they were > not totally convinced so I was looking for more amminition to though at them > to eleviate their concerns. > > Thanks again > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Monday, October 30, 2006 5:36 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Record Maximum > > ...as JC pointed out, the "number" of records is rarely the driving factor > ...I'd add to JC's comments that the record length plays into the issue as > well ...if each record is 2k its a major factor in your considerations. > > ...and while record count IS a factor in archiving, its not THE major factor > ...I baseline archive a record whenever it meets certain client specific > milestones and only IF the client concurs on a record by record basis ...a > dead record is a dead record whether there are 2K or 2M of them > > William Hindman > > ----- Original Message ----- > From: "Gowey Mike W" > To: "Access Developers discussion and problem solving" > > Sent: Monday, October 30, 2006 4:38 PM > Subject: [AccessD] Record Maximum > > > > > > > > Hi Everyone, > > > > Just a quick question. What is the maximum or the most records that > > anyone has seen in a table before the database started to degrade in > > permormance. > > > > What would you consider the maximum record count before archiving? > > > > > > TIA for your thoughts, > > > > Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ Team Leader - SouthEast > > Region Information Systems Unit > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From jwcolby at colbyconsulting.com Tue Oct 31 10:20:43 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 31 Oct 2006 11:20:43 -0500 Subject: [AccessD] SQL Server observed performance Message-ID: <000a01c6fd08$849b1700$657aa8c0@m6805> I thought you guys might find this interesting. I have a database that I imported a couple of years ago. On a single processor 3 ghz AMD64 running 2 mbytes of memory, using (4) individual IDE 250gb hard drives (no raid) the system would import ~ 1000 rows per second into SQL Server. Each text file was ~10 gbytes, consisted of ~700 fields and 3 million records per file. Each field was originally padded right with spaces (comma delimited, but fixed width). This time around, I built an Access (really just VBA) preprocessor to open each file, read it line by line, strip all of the padding off the left and right sides (there was some left padding as well) and write it back out to another file. This dropped the average text file size to ~ 6.5 gbytes, which leaves us with average padding of well over 35%. It also left the resulting data in the unpadded after importing into SQL Server which makes sorts / searches and indexes possible. Anyway, after stripping all of this padding and building new files, I am now importing these into my new server which is a AMD64 X2 dual processor 3.8 ghz with 2 gbytes of ram. The disk subsystem is now a pair of volumes hosted on a raid 6 array, 1 tbyte for the main data store and ~400 gb for the temp databases. The new system imports the new (stripped) data files at about 3000 records per second. I have to run 3 imports at a time to keep both cores above 90% usage. Running 3 imports at a time, the imports happen roughly at 2k records / second FOR EACH IMPORT. Oddly, if I run more than 4 imports at a time, the processor usage drops back to ~70% for some reason and in fact each import slows to ~500 imports / second. This may have to do with the limits of disk streaming off of the machine that holds the source text files. The source files come from a second machine, all the files on the same disk / directory, over a 1ghz network (switch). I am happy to say though that the new dual processor server appears to be able to perform this specific task ~3 to 6 times as fast which is a huge and much needed performance boost. The other advantage to this configuration is that I am no longer playing games splitting the database up into smaller files residing on individual hard drives, and of course, the whole thing is using raid 6 which provides much needed security. John W. Colby Colby Consulting www.ColbyConsulting.com From john at winhaven.net Tue Oct 31 11:00:31 2006 From: john at winhaven.net (John Bartow) Date: Tue, 31 Oct 2006 11:00:31 -0600 Subject: [AccessD] A2k3 system.mdw Message-ID: <021101c6fd0e$16570910$1402a8c0@ScuzzPaq> When I open my System.mdw file with A2k3 it asks whether I want to open or convert it. This makes me I think I overwrote my default system.mdw file. I don't use Access's security but I would like to have the correct version on my system. Anyone know an easy way to extract the original form the setup disk? From Gustav at cactus.dk Tue Oct 31 11:03:18 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 31 Oct 2006 18:03:18 +0100 Subject: [AccessD] SQL Server observed performance Message-ID: Hi John Under some specific conditions you could easily increase import speed about 20 fold with MySQL: http://databaseadvisors.com/mailman/htdig/accessd/2006-May/043865.html And "modest hardware" indeed: IBM PC300, 266 MHz CPU, 256 MB ram, one IDE drive. Of course, you would need to build indices etc. later, but still ... /gustav >>> jwcolby at colbyconsulting.com 31-10-2006 17:20:43 >>> I thought you guys might find this interesting. I have a database that I imported a couple of years ago. On a single processor 3 ghz AMD64 running 2 mbytes of memory, using (4) individual IDE 250gb hard drives (no raid) the system would import ~ 1000 rows per second into SQL Server. Each text file was ~10 gbytes, consisted of ~700 fields and 3 million records per file. Each field was originally padded right with spaces (comma delimited, but fixed width). This time around, I built an Access (really just VBA) preprocessor to open each file, read it line by line, strip all of the padding off the left and right sides (there was some left padding as well) and write it back out to another file. This dropped the average text file size to ~ 6.5 gbytes, which leaves us with average padding of well over 35%. It also left the resulting data in the unpadded after importing into SQL Server which makes sorts / searches and indexes possible. Anyway, after stripping all of this padding and building new files, I am now importing these into my new server which is a AMD64 X2 dual processor 3.8 ghz with 2 gbytes of ram. The disk subsystem is now a pair of volumes hosted on a raid 6 array, 1 tbyte for the main data store and ~400 gb for the temp databases. The new system imports the new (stripped) data files at about 3000 records per second. I have to run 3 imports at a time to keep both cores above 90% usage. Running 3 imports at a time, the imports happen roughly at 2k records / second FOR EACH IMPORT. Oddly, if I run more than 4 imports at a time, the processor usage drops back to ~70% for some reason and in fact each import slows to ~500 imports / second. This may have to do with the limits of disk streaming off of the machine that holds the source text files. The source files come from a second machine, all the files on the same disk / directory, over a 1ghz network (switch). I am happy to say though that the new dual processor server appears to be able to perform this specific task ~3 to 6 times as fast which is a huge and much needed performance boost. The other advantage to this configuration is that I am no longer playing games splitting the database up into smaller files residing on individual hard drives, and of course, the whole thing is using raid 6 which provides much needed security. John W. Colby Colby Consulting www.ColbyConsulting.com From Gustav at cactus.dk Tue Oct 31 11:09:51 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 31 Oct 2006 18:09:51 +0100 Subject: [AccessD] checkbox concatenation Message-ID: Hi William That would require an engine capable of bit-mapped indexing and searching. At least one can do this, InterSystems Cach?: http://www.intersystems.com/cache/ http://www.intersystems.com/cache/technology/components/bitmap/index.html /gustav >>> wdhindman at dejpolsystems.com 31-10-2006 15:47:51 >>> ...given four tables tblContact pk ContactID fk CompanyId tblCompany pk CompanyID tbEvent pk EventID tblEventReg pkERID fk EventID fk CompanyD fk ContactID ...tblEventRegistration is a join table to show which contacts from which companies attended which events. ...given that thousands of contacts attend each event, tblEventReg is growing logarithmically Q: is it feasible to use a numeric field in the tblContacts to replace tblEventReg by using event checkboxes instead, assigning them a numeric value by show and then mathematically summing them in the numeric field ...thus using one integer to represent every event attended by that contact? ...yes/no? ...pros/cons? William Hindman From rusty.hammond at cpiqpc.com Tue Oct 31 11:37:00 2006 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Tue, 31 Oct 2006 11:37:00 -0600 Subject: [AccessD] SQL Server observed performance Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A154F8BB3@cpixchng-1.cpiqpc.net> John, You might look at the BULK INSERT statement in SQL. The import of the text file is done by the server itself. I would imagine you'll see an even better performance boost for the import. Rusty -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, October 31, 2006 10:21 AM To: 'Access Developers discussion and problem solving'; dba-sqlserver at databaseadvisors.com Subject: [AccessD] SQL Server observed performance I thought you guys might find this interesting. I have a database that I imported a couple of years ago. On a single processor 3 ghz AMD64 running 2 mbytes of memory, using (4) individual IDE 250gb hard drives (no raid) the system would import ~ 1000 rows per second into SQL Server. Each text file was ~10 gbytes, consisted of ~700 fields and 3 million records per file. Each field was originally padded right with spaces (comma delimited, but fixed width). This time around, I built an Access (really just VBA) preprocessor to open each file, read it line by line, strip all of the padding off the left and right sides (there was some left padding as well) and write it back out to another file. This dropped the average text file size to ~ 6.5 gbytes, which leaves us with average padding of well over 35%. It also left the resulting data in the unpadded after importing into SQL Server which makes sorts / searches and indexes possible. Anyway, after stripping all of this padding and building new files, I am now importing these into my new server which is a AMD64 X2 dual processor 3.8 ghz with 2 gbytes of ram. The disk subsystem is now a pair of volumes hosted on a raid 6 array, 1 tbyte for the main data store and ~400 gb for the temp databases. The new system imports the new (stripped) data files at about 3000 records per second. I have to run 3 imports at a time to keep both cores above 90% usage. Running 3 imports at a time, the imports happen roughly at 2k records / second FOR EACH IMPORT. Oddly, if I run more than 4 imports at a time, the processor usage drops back to ~70% for some reason and in fact each import slows to ~500 imports / second. This may have to do with the limits of disk streaming off of the machine that holds the source text files. The source files come from a second machine, all the files on the same disk / directory, over a 1ghz network (switch). I am happy to say though that the new dual processor server appears to be able to perform this specific task ~3 to 6 times as fast which is a huge and much needed performance boost. The other advantage to this configuration is that I am no longer playing games splitting the database up into smaller files residing on individual hard drives, and of course, the whole thing is using raid 6 which provides much needed security. John W. Colby Colby Consulting www.ColbyConsulting.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 bheid at appdevgrp.com Tue Oct 31 11:45:35 2006 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 31 Oct 2006 12:45:35 -0500 Subject: [AccessD] Limit Text in Field In-Reply-To: <916187228923D311A6FE00A0CC3FAA30E5F9DE@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30D35A29@ADGSERVER> IIRC, if you changed: If Len(Text1.Text) > 40 Then MsgBox "Too many characters" Text1.Text = Left$(Text1.Text, 40) End If to: If Len(Text1.Text) = 40 Then keycode=0 End If It essentially throws away the keystroke if we are already at our maximum. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, October 31, 2006 10:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Limit Text in Field On 31 Oct 2006 at 8:45, Hollis, Virginia wrote: > I tried the ' say your text field is text1, couldn't you put text1 = > left(text1,500) & it didn't like that - it gives a runtime error about > the BeforeUpdate can't save the record. > > Also, Does anyone have something that shows how many characters have > been typed (it shows as they type)? Create another text box Text2 to display the length and then use this: Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) Text2 = Len(Text1.Text) If Len(Text1.Text) > 40 Then MsgBox "Too many characters" Text1.Text = Left$(Text1.Text, 40) End If-- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Oct 31 11:56:20 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2006 09:56:20 -0800 Subject: [AccessD] Limit Text in Field In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01015177@c2k3exchange.pgdp.corp.usec.com> Message-ID: <0J8000B91HRYJOR2@l-daemon> Hi Virginia: Something like this might work: Dim strText(255) as string Dim strtemp(255) as string srText = strText & strTemp You now have a string of around 512 byte. There is a limit, around 4096 byte if my memeory serves me well. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Tuesday, October 31, 2006 4:54 AM To: accessD at databaseadvisors.com Subject: [AccessD] Limit Text in Field I need a field that is longer than the 255 txt, but shorter than a memo. Is there a way to limit the characters entered into a field? I tried this code on the Before Update, but it still let me type more than 500 characters. I also remember seeing someone had an example on limited text and it had a field that showed how many characters were left to type. Does anyone still have that or know where it can be located? '-- File names are limited in length. If Len(GstrFileName) > 500 Then MsgBox "You must limit the length of the Equipment Used to 500 characters", vbExclamation + vbOKOnly, "Text Too Long" Exit Sub End If Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marklbreen at gmail.com Tue Oct 31 11:57:31 2006 From: marklbreen at gmail.com (Mark Breen) Date: Tue, 31 Oct 2006 17:57:31 +0000 Subject: [AccessD] Raid controller In-Reply-To: <002701c6fcc2$89124a10$3e3de844@50NM721> References: <002b01c6fc90$66de1b40$657aa8c0@m6805> <002701c6fcc2$89124a10$3e3de844@50NM721> Message-ID: Hi John, What kind of box are you hosting the disks in, seven disks is quite a few, especially if you have a CD drive or two also. Do you have a seperate tower just for disks? or does your existing case have enough space? Congrats on the controller and disks, sounds great, Mark On 31/10/06, William Hindman wrote: > > ...thanks for the tip JC ...as a matter of fact I was about to look into > just that for a client :) > > William Hindman > > ----- Original Message ----- > From: "JWColby" > To: "'Access Developers discussion and problem solving'" > ; "'Discussion of Hardware and Software > issues'" ; > > Sent: Monday, October 30, 2006 9:00 PM > Subject: [AccessD] Raid controller > > > >I purchased an Areca 1220 SATA 8 disk raid controller, with (7) Seagate > >10.1 > > 320 gb hard disks to create a raid system with. One of the disks was > > damaged and had to be RMAd. I went ahead and created a Raid 5 array > using > > the 6 remaining drives. This gave me about 1.0 terra bytes on one > volume > > and about 370 gb on another volume, both Raid 5. I just received the > RMAd > > drive back, popped it in, added it to the array and told the controller > to > > convert to Raid 6 for both volumes. That was early this afternoon, and > > the > > controller has finished the conversion of the large array to Raid 6 and > is > > about 50% finished converting the smaller array to Raid 6, all consuming > > ZERO CPU and doing so while I was using the arrays pretty heavily. The > > controller is also very fast. Raid 5/6 writes are about the speed of > the > > individual drives and reads are much faster (~raid 0 speed according to > > Areca) > > > > These disks are about $95 from Newegg and can be purchased with free > > shipping if you keep your eyes open so that is a real $95 / disk. This > > particular controller is currently about $500. This made my actual cost > > about $1200 for 1400gb in a Raid 6 config. > > > > Someday I hope that the Seagate 10.1 750 gb drives drop into this price > > range in which case I will upgrade. ATM those drives are about > $375-$400 > > each which makes them out of my range. > > > > I am impressed with this Areca controller which is the point of this > > email. > > Areca makes controllers that handle various numbers of disks. The > > controller uses a PCI-X8 connection to the CPU so you must have a PCI-X > > capable motherboard. > > > > If you need more disks, they also have a 12, 16 and 24 disk controller, > > for > > more money of course. > > > > Nice controller so far! > > > > John W. Colby > > Colby Consulting > > 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 Gustav at cactus.dk Tue Oct 31 11:57:48 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 31 Oct 2006 18:57:48 +0100 Subject: [AccessD] SQL Server observed performance Message-ID: Hi Rusty Yes, or - if SQL Server 2005 - SSIS FastParse option: http://weblogs.sqlteam.com/mladenp/archive/2006/05/26/9992.aspx /gustav >>> rusty.hammond at cpiqpc.com 31-10-2006 18:37:00 >>> John, You might look at the BULK INSERT statement in SQL. The import of the text file is done by the server itself. I would imagine you'll see an even better performance boost for the import. Rusty From accessd at shaw.ca Tue Oct 31 11:58:35 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2006 09:58:35 -0800 Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? In-Reply-To: <20061031141810.69743.qmail@web31606.mail.mud.yahoo.com> Message-ID: <0J8000B0UHWXJPF2@l-daemon> Hi Sad: The following link might help: (watch for wrap) http://www.aspfree.com/c/a/Microsoft-Access/Connecting-to-a-Microsoft-Access -database-with-ASPNET/ HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Tuesday, October 31, 2006 6:18 AM To: Acces User Group Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? Hi group, does anybody know how difficult it is to open a report in an Access 2003 database using Asp.Net? We're using an intranet and VPN. So that shouldn't be the big issue. Thnx in @vance. Regards, Sander -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Oct 31 12:01:48 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2006 10:01:48 -0800 Subject: [AccessD] Record Maximum In-Reply-To: <96190DA9E0A10A4CB36E4B71367E55C14D1497@srcimail1.ds.doc.state.or.us> Message-ID: <0J8000CTCI0XH2M0@l-daemon> Hi Mike: The size limit is aroud 2 GB of total MDB database size. The record count depends on the data type and number of fields. For example a MDB could reach the limits if there are a 1000 records with pictures embedded. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gowey Mike W Sent: Monday, October 30, 2006 1:38 PM To: Access Developers discussion and problem solving Subject: [AccessD] Record Maximum Hi Everyone, Just a quick question. What is the maximum or the most records that anyone has seen in a table before the database started to degrade in permormance. What would you consider the maximum record count before archiving? TIA for your thoughts, Mike Gowey MCP, MCDST, MCSA, A+, LME, NET+ Team Leader - SouthEast Region Information Systems Unit -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Oct 31 12:12:03 2006 From: john at winhaven.net (John Bartow) Date: Tue, 31 Oct 2006 12:12:03 -0600 Subject: [AccessD] Limit Text in Field In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D01015177@c2k3exchange.pgdp.corp.usec.com> Message-ID: <026601c6fd18$11f1f5b0$1402a8c0@ScuzzPaq> Hi Virginia, FWIW, here's the on change event procedure that I use with a fax form on which the "regarding" line field (Text 255) is not long enough for a huge description but the txtMessage field (Memo) is: Private Sub txtRegarding_Change() 'Comment: prevents user form adding too much text to the regarding line On Error GoTo Form_Open_ERR If Len(Me.txtRegarding.Text) > 255 Then MsgBox "The regarding line can only contain 255 characters, " & _ "please use the message box for longer text." Me.txtRegarding.Text = Left(Me.txtRegarding.Text, 255) End If Form_Open_EXIT: Exit Sub Form_Open_ERR: MsgBox Err.Description Resume Form_Open_EXIT End Sub HTH John B. From jwcolby at colbyconsulting.com Tue Oct 31 12:15:16 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 31 Oct 2006 13:15:16 -0500 Subject: [AccessD] SQL Server observed performance In-Reply-To: Message-ID: <000101c6fd18$84b8e4f0$657aa8c0@m6805> Of course the first question is, are we comparing apples to apples? These are records with ~700 fields, coming out of text files of 3 million records each. Having no experience with MySQL and very little with SQL Server, I don't wish to imply that MySQL wouldn't be faster, in fact I have heard that it is but without doing a direct comparison of the same file such things are less than useful. I could supply one of the input files if you want to do an import and see what you come up with. It is only ~350 mbytes zipped. And then I could work with an SQL Server guru to do whatever they think would optimize the SQL Server side. That would make an interesting comparison. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 31, 2006 12:03 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SQL Server observed performance Hi John Under some specific conditions you could easily increase import speed about 20 fold with MySQL: http://databaseadvisors.com/mailman/htdig/accessd/2006-May/043865.html And "modest hardware" indeed: IBM PC300, 266 MHz CPU, 256 MB ram, one IDE drive. Of course, you would need to build indices etc. later, but still ... /gustav >>> jwcolby at colbyconsulting.com 31-10-2006 17:20:43 >>> I thought you guys might find this interesting. I have a database that I imported a couple of years ago. On a single processor 3 ghz AMD64 running 2 mbytes of memory, using (4) individual IDE 250gb hard drives (no raid) the system would import ~ 1000 rows per second into SQL Server. Each text file was ~10 gbytes, consisted of ~700 fields and 3 million records per file. Each field was originally padded right with spaces (comma delimited, but fixed width). This time around, I built an Access (really just VBA) preprocessor to open each file, read it line by line, strip all of the padding off the left and right sides (there was some left padding as well) and write it back out to another file. This dropped the average text file size to ~ 6.5 gbytes, which leaves us with average padding of well over 35%. It also left the resulting data in the unpadded after importing into SQL Server which makes sorts / searches and indexes possible. Anyway, after stripping all of this padding and building new files, I am now importing these into my new server which is a AMD64 X2 dual processor 3.8 ghz with 2 gbytes of ram. The disk subsystem is now a pair of volumes hosted on a raid 6 array, 1 tbyte for the main data store and ~400 gb for the temp databases. The new system imports the new (stripped) data files at about 3000 records per second. I have to run 3 imports at a time to keep both cores above 90% usage. Running 3 imports at a time, the imports happen roughly at 2k records / second FOR EACH IMPORT. Oddly, if I run more than 4 imports at a time, the processor usage drops back to ~70% for some reason and in fact each import slows to ~500 imports / second. This may have to do with the limits of disk streaming off of the machine that holds the source text files. The source files come from a second machine, all the files on the same disk / directory, over a 1ghz network (switch). I am happy to say though that the new dual processor server appears to be able to perform this specific task ~3 to 6 times as fast which is a huge and much needed performance boost. The other advantage to this configuration is that I am no longer playing games splitting the database up into smaller files residing on individual hard drives, and of course, the whole thing is using raid 6 which provides much needed security. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Oct 31 12:29:49 2006 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 31 Oct 2006 19:29:49 +0100 Subject: [AccessD] SQL Server observed performance Message-ID: Hi John That's right. If it would be of any help for you, I could download your test file from an FTP server and run a test - if you e-mail me privately the access details. /gustav >>> jwcolby at colbyconsulting.com 31-10-2006 19:15:16 >>> Of course the first question is, are we comparing apples to apples? These are records with ~700 fields, coming out of text files of 3 million records each. Having no experience with MySQL and very little with SQL Server, I don't wish to imply that MySQL wouldn't be faster, in fact I have heard that it is but without doing a direct comparison of the same file such things are less than useful. I could supply one of the input files if you want to do an import and see what you come up with. It is only ~350 mbytes zipped. And then I could work with an SQL Server guru to do whatever they think would optimize the SQL Server side. That would make an interesting comparison. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 31, 2006 12:03 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] SQL Server observed performance Hi John Under some specific conditions you could easily increase import speed about 20 fold with MySQL: http://databaseadvisors.com/mailman/htdig/accessd/2006-May/043865.html And "modest hardware" indeed: IBM PC300, 266 MHz CPU, 256 MB ram, one IDE drive. Of course, you would need to build indices etc. later, but still ... /gustav >>> jwcolby at colbyconsulting.com 31-10-2006 17:20:43 >>> I thought you guys might find this interesting. I have a database that I imported a couple of years ago. On a single processor 3 ghz AMD64 running 2 mbytes of memory, using (4) individual IDE 250gb hard drives (no raid) the system would import ~ 1000 rows per second into SQL Server. Each text file was ~10 gbytes, consisted of ~700 fields and 3 million records per file. Each field was originally padded right with spaces (comma delimited, but fixed width). This time around, I built an Access (really just VBA) preprocessor to open each file, read it line by line, strip all of the padding off the left and right sides (there was some left padding as well) and write it back out to another file. This dropped the average text file size to ~ 6.5 gbytes, which leaves us with average padding of well over 35%. It also left the resulting data in the unpadded after importing into SQL Server which makes sorts / searches and indexes possible. Anyway, after stripping all of this padding and building new files, I am now importing these into my new server which is a AMD64 X2 dual processor 3.8 ghz with 2 gbytes of ram. The disk subsystem is now a pair of volumes hosted on a raid 6 array, 1 tbyte for the main data store and ~400 gb for the temp databases. The new system imports the new (stripped) data files at about 3000 records per second. I have to run 3 imports at a time to keep both cores above 90% usage. Running 3 imports at a time, the imports happen roughly at 2k records / second FOR EACH IMPORT. Oddly, if I run more than 4 imports at a time, the processor usage drops back to ~70% for some reason and in fact each import slows to ~500 imports / second. This may have to do with the limits of disk streaming off of the machine that holds the source text files. The source files come from a second machine, all the files on the same disk / directory, over a 1ghz network (switch). I am happy to say though that the new dual processor server appears to be able to perform this specific task ~3 to 6 times as fast which is a huge and much needed performance boost. The other advantage to this configuration is that I am no longer playing games splitting the database up into smaller files residing on individual hard drives, and of course, the whole thing is using raid 6 which provides much needed security. John W. Colby Colby Consulting www.ColbyConsulting.com From accessd at shaw.ca Tue Oct 31 12:46:58 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2006 10:46:58 -0800 Subject: [AccessD] checkbox concatenation In-Reply-To: Message-ID: <0J8000C3UK46H3N0@l-daemon> ...and a further comment: If the table was growing *logarithmically*, William would be delighted! The problem is that it is growing *geometrically*. Reading the Cache doc, a bitmap index may just do the trick, especially as the max number of events is probably not that large. Since this is a sparse array problem, it may also work well with an R-tree (as found in PostgreSQL). Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 31, 2006 9:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] checkbox concatenation Hi William That would require an engine capable of bit-mapped indexing and searching. At least one can do this, InterSystems Cach?: http://www.intersystems.com/cache/ http://www.intersystems.com/cache/technology/components/bitmap/index.html /gustav >>> wdhindman at dejpolsystems.com 31-10-2006 15:47:51 >>> ...given four tables tblContact pk ContactID fk CompanyId tblCompany pk CompanyID tbEvent pk EventID tblEventReg pkERID fk EventID fk CompanyD fk ContactID ...tblEventRegistration is a join table to show which contacts from which companies attended which events. ...given that thousands of contacts attend each event, tblEventReg is growing logarithmically Q: is it feasible to use a numeric field in the tblContacts to replace tblEventReg by using event checkboxes instead, assigning them a numeric value by show and then mathematically summing them in the numeric field ...thus using one integer to represent every event attended by that contact? ...yes/no? ...pros/cons? William Hindman -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Oct 31 13:51:09 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 31 Oct 2006 11:51:09 -0800 Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C740464A859@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C740464A859@TTNEXCHCL2.hshhp.com> Message-ID: <4547A92D.6010004@shaw.ca> Here is how to do with ASP, not sure about ASP.net Create XML Web Reports From Access XP http://amazecreations.com/datafast/ShowArticle.aspx?File=Articles/xmlrptexample.htm It would involve Posting the output produced from code like this Sub ExportReport() ' Purpose: Exports the Invoice table as well as ' the presentation and image files. In addition, ' a file containing the ReportML is created as ' denoted by setting the OtherFlags flag equal ' to 16. Const CREATE_REPORTML = 16 Application.ExportXML _ ObjectType:=acExportReport, _ DataSource:="Invoice", _ DataTarget:="C:\Invoice.xml", _ PresentationTarget:="C:\InvoiceReport.xsl", _ ImageTarget:="C:\Images", _ OtherFlags:=CREATE_REPORTML End Sub Jim DeMarco wrote: >Sander, > >I read an interestig article a while back that detailed how to use >Access as the reporting engine for ASP.NET applications. In short it >involves getting input from your user and running the report in Access >(installed on server I'd imagine). The report is then exported to XML >from Access by your .NET app. Access does a real good job of creating >XML/XSL so the reports will look like Access reports. > >I hope that makes sense (and helps). > > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der >Sent: Tuesday, October 31, 2006 9:18 AM >To: Acces User Group >Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? > >Hi group, > >does anybody know how difficult it is to open a report in an Access 2003 >database using Asp.Net? >We're using an intranet and VPN. So that shouldn't be the big issue. > >Thnx in @vance. > >Regards, > >Sander > > > > >-- >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 wdhindman at dejpolsystems.com Tue Oct 31 14:08:38 2006 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 31 Oct 2006 15:08:38 -0500 Subject: [AccessD] checkbox concatenation References: <0J8000C3UK46H3N0@l-daemon> Message-ID: <006201c6fd28$5b821a10$3e3de844@50NM721> ...oh come on guys! ...first its my dictionary and if I say it grows logarithmically then that's what it does, eh. ...geometrically! ...balderdash, I say ...where is Charlotte when we need her to maintain discipline? :) ...and then both Gustav and Jim do more than hint that good old Access isn't up to bit mapping this :( ...and of course Stuart takes a gratuitous swing at my joins ...see above ...its MY join, eh! ...sheesh ...if this were the old AccessD ...long before daddyhood mellowed the hell out of JC, I'd just have him Colbyize the lot of you! ...and here I am, still as dazed and confused as when I first posted ...early Alzheimer's anyone? ...thanks :) William Hindman ----- Original Message ----- From: "Jim Lawrence" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, October 31, 2006 1:46 PM Subject: Re: [AccessD] checkbox concatenation ...and a further comment: If the table was growing *logarithmically*, William would be delighted! The problem is that it is growing *geometrically*. Reading the Cache doc, a bitmap index may just do the trick, especially as the max number of events is probably not that large. Since this is a sparse array problem, it may also work well with an R-tree (as found in PostgreSQL). Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, October 31, 2006 9:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] checkbox concatenation Hi William That would require an engine capable of bit-mapped indexing and searching. At least one can do this, InterSystems Cach?: http://www.intersystems.com/cache/ http://www.intersystems.com/cache/technology/components/bitmap/index.html /gustav >>> wdhindman at dejpolsystems.com 31-10-2006 15:47:51 >>> ...given four tables tblContact pk ContactID fk CompanyId tblCompany pk CompanyID tbEvent pk EventID tblEventReg pkERID fk EventID fk CompanyD fk ContactID ...tblEventRegistration is a join table to show which contacts from which companies attended which events. ...given that thousands of contacts attend each event, tblEventReg is growing logarithmically Q: is it feasible to use a numeric field in the tblContacts to replace tblEventReg by using event checkboxes instead, assigning them a numeric value by show and then mathematically summing them in the numeric field ...thus using one integer to represent every event attended by that contact? ...yes/no? ...pros/cons? William Hindman -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Oct 31 14:10:31 2006 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 31 Oct 2006 15:10:31 -0500 Subject: [AccessD] Raid controller In-Reply-To: Message-ID: <000601c6fd28$9e622870$657aa8c0@m6805> Mark, This is a Lian Li case: http://www.newegg.com/product/product.asp?item=N82E16811112108 It has dedicated space for 12 3.5" disks down in the bottom of the case as well as two power supplies (not included). There is also space for SEVEN 5.25" drives up in the front of the case, forward of the motherboard. This case is... shall we say "large". I really like the case. 8~) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Tuesday, October 31, 2006 12:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Raid controller Hi John, What kind of box are you hosting the disks in, seven disks is quite a few, especially if you have a CD drive or two also. Do you have a seperate tower just for disks? or does your existing case have enough space? Congrats on the controller and disks, sounds great, Mark On 31/10/06, William Hindman wrote: > > ...thanks for the tip JC ...as a matter of fact I was about to look > into just that for a client :) > > William Hindman > > ----- Original Message ----- > From: "JWColby" > To: "'Access Developers discussion and problem solving'" > ; "'Discussion of Hardware and Software > issues'" ; > > Sent: Monday, October 30, 2006 9:00 PM > Subject: [AccessD] Raid controller > > > >I purchased an Areca 1220 SATA 8 disk raid controller, with (7) > >Seagate > >10.1 > > 320 gb hard disks to create a raid system with. One of the disks > >was damaged and had to be RMAd. I went ahead and created a Raid 5 > >array > using > > the 6 remaining drives. This gave me about 1.0 terra bytes on one > volume > > and about 370 gb on another volume, both Raid 5. I just received > > the > RMAd > > drive back, popped it in, added it to the array and told the > > controller > to > > convert to Raid 6 for both volumes. That was early this afternoon, > > and the controller has finished the conversion of the large array to > > Raid 6 and > is > > about 50% finished converting the smaller array to Raid 6, all > > consuming ZERO CPU and doing so while I was using the arrays pretty > > heavily. The controller is also very fast. Raid 5/6 writes are > > about the speed of > the > > individual drives and reads are much faster (~raid 0 speed according > > to > > Areca) > > > > These disks are about $95 from Newegg and can be purchased with free > > shipping if you keep your eyes open so that is a real $95 / disk. > > This particular controller is currently about $500. This made my > > actual cost about $1200 for 1400gb in a Raid 6 config. > > > > Someday I hope that the Seagate 10.1 750 gb drives drop into this > > price range in which case I will upgrade. ATM those drives are > > about > $375-$400 > > each which makes them out of my range. > > > > I am impressed with this Areca controller which is the point of this > > email. > > Areca makes controllers that handle various numbers of disks. The > > controller uses a PCI-X8 connection to the CPU so you must have a > > PCI-X capable motherboard. > > > > If you need more disks, they also have a 12, 16 and 24 disk > > controller, for more money of course. > > > > Nice controller so far! > > > > John W. Colby > > Colby Consulting > > 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 gjgiever at myway.com Tue Oct 31 14:14:31 2006 From: gjgiever at myway.com (Gary J. Giever) Date: Tue, 31 Oct 2006 15:14:31 -0500 (EST) Subject: [AccessD] Opening Access 97 Message-ID: <20061031201431.6788B67686@mprdmxin.myway.com> I remember having a program that prevented one from opening an Access 97 database by holding down the shift key while opening the database, thus getting access to the tables. I can't find it now or maybe I imagined the whole thing. Does this sound familiar to anyone out there? Gary J. Giever, M.A. Applications Developer ACCMHS _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From garykjos at gmail.com Tue Oct 31 14:19:19 2006 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 31 Oct 2006 14:19:19 -0600 Subject: [AccessD] checkbox concatenation In-Reply-To: <006201c6fd28$5b821a10$3e3de844@50NM721> References: <0J8000C3UK46H3N0@l-daemon> <006201c6fd28$5b821a10$3e3de844@50NM721> Message-ID: Ah yes, the good old days. Sigh! GK On 10/31/06, William Hindman wrote: > ...oh come on guys! ...first its my dictionary and if I say it grows > logarithmically then that's what it does, eh. > ...geometrically! ...balderdash, I say ...where is Charlotte when we need > her to maintain discipline? :) > > ...and then both Gustav and Jim do more than hint that good old Access isn't > up to bit mapping this :( > > ...and of course Stuart takes a gratuitous swing at my joins ...see above > ...its MY join, eh! > > ...sheesh ...if this were the old AccessD ...long before daddyhood mellowed > the hell out of JC, I'd just have him Colbyize the lot of you! > > ...and here I am, still as dazed and confused as when I first posted > ...early Alzheimer's anyone? > > ...thanks :) > > William Hindman -- Gary Kjos garykjos at gmail.com From bill_Patten at earthlink.net Tue Oct 31 14:34:17 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Tue, 31 Oct 2006 12:34:17 -0800 Subject: [AccessD] Opening Access 97 References: <20061031201431.6788B67686@mprdmxin.myway.com> Message-ID: <00fe01c6fd2b$f370e100$0202fea9@BPCS> Hi Gary, I'm pretty sure I used this back in the 97 version Hope this helps. ChangeProperty "AllowBypassKey", dbBoolean, True ' (True to allow , false to disallow) Some of the others that may be handy. ***************************** ChangeProperty "StartupShowDBWindow", dbBoolean, False ChangeProperty "StartupShowStatusBar", dbBoolean, True ChangeProperty "AllowBuiltinToolbars", dbBoolean, True ChangeProperty "AllowFullMenus", dbBoolean, True ChangeProperty "AllowBreakIntoCode", dbBoolean, False ChangeProperty "AllowSpecialKeys", dbBoolean, True ***************************** Function ChangeProperty(strPropName As String, varPropType As Variant, varPropValue As Variant) As Integer Dim dbs As Database, prp As Property Const conPropNotFoundError = 3270 Set dbs = CurrentDb On Error GoTo Change_Err dbs.Properties(strPropName) = varPropValue ChangeProperty = True Change_Bye: Exit Function Change_Err: If Err = conPropNotFoundError Then ' Property not found. Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue) dbs.Properties.Append prp Resume Next Else ' Unknown error. ChangeProperty = False Resume Change_Bye End If End Function ----- Original Message ----- From: "Gary J. Giever" To: Sent: Tuesday, October 31, 2006 12:14 PM Subject: [AccessD] Opening Access 97 I remember having a program that prevented one from opening an Access 97 database by holding down the shift key while opening the database, thus getting access to the tables. I can't find it now or maybe I imagined the whole thing. Does this sound familiar to anyone out there? Gary J. Giever, M.A. Applications Developer ACCMHS _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Oct 31 15:39:21 2006 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 31 Oct 2006 21:39:21 +0000 Subject: [AccessD] Opening Access 97 In-Reply-To: <00fe01c6fd2b$f370e100$0202fea9@BPCS> Message-ID: Gary, I used the same thing...but from my past experience I will share this...build the backdoor FIRST!!! The first db I disabled "AllowBypassKey"...I forgot about how to get back into it...lol..I ended up importing all objects...but scary at first. Good luck. Thanks, Mark A. Matte >From: "Bill Patten" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Opening Access 97 >Date: Tue, 31 Oct 2006 12:34:17 -0800 > >Hi Gary, > >I'm pretty sure I used this back in the 97 version > >Hope this helps. > >ChangeProperty "AllowBypassKey", dbBoolean, True ' (True to allow , false >to >disallow) > > > Some of the others that may be handy. >***************************** > ChangeProperty "StartupShowDBWindow", dbBoolean, False > ChangeProperty "StartupShowStatusBar", dbBoolean, True > ChangeProperty "AllowBuiltinToolbars", dbBoolean, True > ChangeProperty "AllowFullMenus", dbBoolean, True > ChangeProperty "AllowBreakIntoCode", dbBoolean, False > ChangeProperty "AllowSpecialKeys", dbBoolean, True >***************************** >Function ChangeProperty(strPropName As String, varPropType As Variant, >varPropValue As Variant) As Integer > Dim dbs As Database, prp As Property > Const conPropNotFoundError = 3270 > Set dbs = CurrentDb > On Error GoTo Change_Err > dbs.Properties(strPropName) = varPropValue > ChangeProperty = True > >Change_Bye: > Exit Function > >Change_Err: > If Err = conPropNotFoundError Then ' Property not found. > Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue) > dbs.Properties.Append prp > Resume Next > Else > ' Unknown error. > ChangeProperty = False > Resume Change_Bye > End If > >End Function >----- Original Message ----- >From: "Gary J. Giever" >To: >Sent: Tuesday, October 31, 2006 12:14 PM >Subject: [AccessD] Opening Access 97 > > > >I remember having a program that prevented one from opening an Access 97 >database by holding down the shift key while opening the database, thus >getting access to the tables. I can't find it now or maybe I imagined the >whole thing. Does this sound familiar to anyone out there? > > >Gary J. Giever, M.A. >Applications Developer >ACCMHS > >_______________________________________________ >No banners. No pop-ups. No kidding. >Make My Way your home on the Web - http://www.myway.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ From bill_Patten at earthlink.net Tue Oct 31 16:17:38 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Tue, 31 Oct 2006 14:17:38 -0800 Subject: [AccessD] Opening Access 97 References: Message-ID: <010a01c6fd3a$63a9ca00$0202fea9@BPCS> Hey Mark, your right, actually I use a special log in password and it test to see if one of the items is true and if so it sets all of them to False, and if false sets them all to true. It's just switches back an forth. Been using if for several years to lock stuff for my customers and unlock them so I can work on them. Bill ----- Original Message ----- From: "Mark A Matte" To: Sent: Tuesday, October 31, 2006 1:39 PM Subject: Re: [AccessD] Opening Access 97 Gary, I used the same thing...but from my past experience I will share this...build the backdoor FIRST!!! The first db I disabled "AllowBypassKey"...I forgot about how to get back into it...lol..I ended up importing all objects...but scary at first. Good luck. Thanks, Mark A. Matte >From: "Bill Patten" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Opening Access 97 >Date: Tue, 31 Oct 2006 12:34:17 -0800 > >Hi Gary, > >I'm pretty sure I used this back in the 97 version > >Hope this helps. > >ChangeProperty "AllowBypassKey", dbBoolean, True ' (True to allow , false >to >disallow) > > > Some of the others that may be handy. >***************************** > ChangeProperty "StartupShowDBWindow", dbBoolean, False > ChangeProperty "StartupShowStatusBar", dbBoolean, True > ChangeProperty "AllowBuiltinToolbars", dbBoolean, True > ChangeProperty "AllowFullMenus", dbBoolean, True > ChangeProperty "AllowBreakIntoCode", dbBoolean, False > ChangeProperty "AllowSpecialKeys", dbBoolean, True >***************************** >Function ChangeProperty(strPropName As String, varPropType As Variant, >varPropValue As Variant) As Integer > Dim dbs As Database, prp As Property > Const conPropNotFoundError = 3270 > Set dbs = CurrentDb > On Error GoTo Change_Err > dbs.Properties(strPropName) = varPropValue > ChangeProperty = True > >Change_Bye: > Exit Function > >Change_Err: > If Err = conPropNotFoundError Then ' Property not found. > Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue) > dbs.Properties.Append prp > Resume Next > Else > ' Unknown error. > ChangeProperty = False > Resume Change_Bye > End If > >End Function >----- Original Message ----- >From: "Gary J. Giever" >To: >Sent: Tuesday, October 31, 2006 12:14 PM >Subject: [AccessD] Opening Access 97 > > > >I remember having a program that prevented one from opening an Access 97 >database by holding down the shift key while opening the database, thus >getting access to the tables. I can't find it now or maybe I imagined the >whole thing. Does this sound familiar to anyone out there? > > >Gary J. Giever, M.A. >Applications Developer >ACCMHS > >_______________________________________________ >No banners. No pop-ups. No kidding. >Make My Way your home on the Web - http://www.myway.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bill_Patten at earthlink.net Tue Oct 31 16:19:25 2006 From: bill_Patten at earthlink.net (Bill Patten) Date: Tue, 31 Oct 2006 14:19:25 -0800 Subject: [AccessD] Opening Access 97 References: Message-ID: <010d01c6fd3a$a3350810$0202fea9@BPCS> Oh, by the way Gary, you usually have to close the program and reopen it for the changes to take effect. B ----- Original Message ----- From: "Mark A Matte" To: Sent: Tuesday, October 31, 2006 1:39 PM Subject: Re: [AccessD] Opening Access 97 Gary, I used the same thing...but from my past experience I will share this...build the backdoor FIRST!!! The first db I disabled "AllowBypassKey"...I forgot about how to get back into it...lol..I ended up importing all objects...but scary at first. Good luck. Thanks, Mark A. Matte >From: "Bill Patten" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Opening Access 97 >Date: Tue, 31 Oct 2006 12:34:17 -0800 > >Hi Gary, > >I'm pretty sure I used this back in the 97 version > >Hope this helps. > >ChangeProperty "AllowBypassKey", dbBoolean, True ' (True to allow , false >to >disallow) > > > Some of the others that may be handy. >***************************** > ChangeProperty "StartupShowDBWindow", dbBoolean, False > ChangeProperty "StartupShowStatusBar", dbBoolean, True > ChangeProperty "AllowBuiltinToolbars", dbBoolean, True > ChangeProperty "AllowFullMenus", dbBoolean, True > ChangeProperty "AllowBreakIntoCode", dbBoolean, False > ChangeProperty "AllowSpecialKeys", dbBoolean, True >***************************** >Function ChangeProperty(strPropName As String, varPropType As Variant, >varPropValue As Variant) As Integer > Dim dbs As Database, prp As Property > Const conPropNotFoundError = 3270 > Set dbs = CurrentDb > On Error GoTo Change_Err > dbs.Properties(strPropName) = varPropValue > ChangeProperty = True > >Change_Bye: > Exit Function > >Change_Err: > If Err = conPropNotFoundError Then ' Property not found. > Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue) > dbs.Properties.Append prp > Resume Next > Else > ' Unknown error. > ChangeProperty = False > Resume Change_Bye > End If > >End Function >----- Original Message ----- >From: "Gary J. Giever" >To: >Sent: Tuesday, October 31, 2006 12:14 PM >Subject: [AccessD] Opening Access 97 > > > >I remember having a program that prevented one from opening an Access 97 >database by holding down the shift key while opening the database, thus >getting access to the tables. I can't find it now or maybe I imagined the >whole thing. Does this sound familiar to anyone out there? > > >Gary J. Giever, M.A. >Applications Developer >ACCMHS > >_______________________________________________ >No banners. No pop-ups. No kidding. >Make My Way your home on the Web - http://www.myway.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gjgiever at myway.com Tue Oct 31 17:23:03 2006 From: gjgiever at myway.com (Gary J. Giever) Date: Tue, 31 Oct 2006 18:23:03 -0500 (EST) Subject: [AccessD] Opening Access 97 Message-ID: <20061031232303.EEB4C75719@mprdmxin.myway.com> Thank you ver much. I shall try that out. Gary J. Giever, M.A. Applications Developer ACCMHS --- On Tue 10/31, Bill Patten < bill_Patten at earthlink.net > wrote: From: Bill Patten [mailto: bill_Patten at earthlink.net] To: accessd at databaseadvisors.com Date: Tue, 31 Oct 2006 12:34:17 -0800 Subject: Re: [AccessD] Opening Access 97 Hi Gary,I'm pretty sure I used this back in the 97 versionHope this helps.ChangeProperty "AllowBypassKey", dbBoolean, True ' (True to allow , false to disallow) Some of the others that may be handy.***************************** ChangeProperty "StartupShowDBWindow", dbBoolean, False ChangeProperty "StartupShowStatusBar", dbBoolean, True ChangeProperty "AllowBuiltinToolbars", dbBoolean, True ChangeProperty "AllowFullMenus", dbBoolean, True ChangeProperty "AllowBreakIntoCode", dbBoolean, False ChangeProperty "AllowSpecialKeys", dbBoolean, True*****************************Function ChangeProperty(strPropName As String, varPropType As Variant, varPropValue As Variant) As Integer Dim dbs As Database, prp As Property Const conPropNotFoundError = 3270 Set dbs = CurrentDb On Error GoTo Change_Err dbs.Properties(strPropName) = varPropValue ChangeProperty = TrueChange_Bye: Exit FunctionChange_Err: If Err = conPropNotFoundError Then ' Property not found. Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue) dbs.Properties.Append prp Resume Next Else ' Unknown error. ChangeProperty = False Resume Change_Bye End IfEnd Function----- Original Message ----- From: "Gary J. Giever" To: Sent: Tuesday, October 31, 2006 12:14 PMSubject: [AccessD] Opening Access 97I remember having a program that prevented one from opening an Access 97 database by holding down the shift key while opening the database, thus getting access to the tables. I can't find it now or maybe I imagined the whole thing. Does this sound familiar to anyone out there?Gary J. Giever, M.A.Applications DeveloperACCMHS_______________________________________________No banners. No pop-ups. No kidding.Make My Way your home on the Web - http://www.myway.com-- AccessD mailing listAccessD at databaseadvisors.comhttp://databaseadvisors.com/mailman/listinfo/accessdWebsite: http://www.databaseadvisors.com-- AccessD mailing listAccessD at databaseadvisors.comhttp://databaseadvisors.com/mailman/listinfo/accessdWebsite: http://www.databaseadvisors.com _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From gjgiever at myway.com Tue Oct 31 17:24:09 2006 From: gjgiever at myway.com (Gary J. Giever) Date: Tue, 31 Oct 2006 18:24:09 -0500 (EST) Subject: [AccessD] Opening Access 97 Message-ID: <20061031232409.24E6375733@mprdmxin.myway.com> Thank you for the advise. Gary J. Giever, M.A. Applications Developer ACCMHS --- On Tue 10/31, Mark A Matte < markamatte at hotmail.com > wrote: From: Mark A Matte [mailto: markamatte at hotmail.com] To: accessd at databaseadvisors.com Date: Tue, 31 Oct 2006 21:39:21 +0000 Subject: Re: [AccessD] Opening Access 97 Gary,I used the same thing...but from my past experience I will share this...build the backdoor FIRST!!! The first db I disabled "AllowBypassKey"...I forgot about how to get back into it...lol..I ended up importing all objects...but scary at first.Good luck.Thanks,Mark A. Matte>From: "Bill Patten" >Reply-To: Access Developers discussion and problem >solving>To: "Access Developers discussion and problem >solving">Subject: Re: [AccessD] Opening Access 97>Date: Tue, 31 Oct 2006 12:34:17 -0800>>Hi Gary,>>I'm pretty sure I used this back in the 97 version>>Hope this helps.>>ChangeProperty "AllowBypassKey", dbBoolean, True ' (True to allow , false >to>disallow)>>> Some of the others that may be handy.>*****************************> ChangeProperty "StartupShowDBWindow", dbBoolean, False> ChangeProperty "StartupShowStatusBar", dbBoolean, True> ChangeProperty "AllowBuiltinToolbars", dbBoolean, True> ChangeProperty "AllowFullMenus", dbBoolean, True> ChangeProperty "AllowBreakIntoCode", dbBoolean, False> ChangeProperty "AllowSpecialKeys", dbBoolean, True>*****************************>Function ChangeProperty(strPropName As String, varPropType As Variant,>varPropValue As Variant) As Integer> Dim dbs As Database, prp As Property> Const conPropNotFoundError = 3270> Set dbs = CurrentDb> On Error GoTo Change_Err> dbs.Properties(strPropName) = varPropValue> ChangeProperty = True>>Change_Bye:> Exit Function>>Change_Err:> If Err = conPropNotFoundError Then ' Property not found.> Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue)> dbs.Properties.Append prp> Resume Next> Else> ' Unknown error.> ChangeProperty = False> Resume Change_Bye> End If>>End Function>----- Original Message ----->From: "Gary J. Giever" >To: >Sent: Tuesday, October 31, 2006 12:14 PM>Subject: [AccessD] Opening Access 97>>>>I remember having a program that prevented one from opening an Access 97>database by holding down the shift key while opening the database, thus>getting access to the tables. I can't find it now or maybe I imagined the>whole thing. Does this sound familiar to anyone out there?>>>Gary J. Giever, M.A.>Applications Developer>ACCMHS>>_______________________________________________>No banners. No pop-ups. No kidding.>Make My Way your home on the Web - http://www.myway.com>>>-->AccessD mailing list>AccessD at databaseadvisors.com>http://databaseadvisors.com/mailman/listinfo/accessd>Website: http://www.databaseadvisors.com>>-->AccessD mailing list>AccessD at databaseadvisors.com>http://databaseadvisors.com/mailman/listinfo/accessd>Website: http://www.databaseadvisors.com_________________________________________________________________Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/-- AccessD mailing listAccessD at databaseadvisors.comhttp://databaseadvisors.com/mailman/listinfo/accessdWebsite: http://www.databaseadvisors.com _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From gjgiever at myway.com Tue Oct 31 17:27:46 2006 From: gjgiever at myway.com (Gary J. Giever) Date: Tue, 31 Oct 2006 18:27:46 -0500 (EST) Subject: [AccessD] Opening Access 97 Message-ID: <20061031232746.8A02775735@mprdmxin.myway.com> Thank you. I wasn't sure where to look. This helps a lot. Gary J. Giever, M.A. Applications Developer ACCMHS --- On Tue 10/31, Bill Patten < bill_Patten at earthlink.net > wrote: From: Bill Patten [mailto: bill_Patten at earthlink.net] To: accessd at databaseadvisors.com Date: Tue, 31 Oct 2006 14:19:25 -0800 Subject: Re: [AccessD] Opening Access 97 Oh, by the way Gary, you usually have to close the program and reopen it for the changes to take effect.B----- Original Message ----- From: "Mark A Matte" To: Sent: Tuesday, October 31, 2006 1:39 PMSubject: Re: [AccessD] Opening Access 97Gary,I used the same thing...but from my past experience I will sharethis...build the backdoor FIRST!!! The first db I disabled"AllowBypassKey"...I forgot about how to get back into it...lol..I ended upimporting all objects...but scary at first.Good luck.Thanks,Mark A. Matte>From: "Bill Patten" >Reply-To: Access Developers discussion and problem>solving>To: "Access Developers discussion and problem>solving">Subject: Re: [AccessD] Opening Access 97>Date: Tue, 31 Oct 2006 12:34:17 -0800>>Hi Gary,>>I'm pretty sure I used this back in the 97 version>>Hope this helps.>>ChangeProperty "AllowBypassKey", dbBoolean, True ' (True to allow , false>to>disallow)>>> Some of the others that may be handy.>*****************************> ChangeProperty "StartupShowDBWindow", dbBoolean, False> ChangeProperty "StartupShowStatusBar", dbBoolean, True> ChangeProperty "AllowBuiltinToolbars", dbBoolean, True> ChangeProperty "AllowFullMenus", dbBoolean, True> ChangeProperty "AllowBreakIntoCode", dbBoolean, False> ChangeProperty "AllowSpecialKeys", dbBoolean, True>*****************************>Function ChangeProperty(strPropName As String, varPropType As Variant,>varPropValue As Variant) As Integer> Dim dbs As Database, prp As Property> Const conPropNotFoundError = 3270> Set dbs = CurrentDb> On Error GoTo Change_Err> dbs.Properties(strPropName) = varPropValue> ChangeProperty = True>>Change_Bye:> Exit Function>>Change_Err:> If Err = conPropNotFoundError Then ' Property not found.> Set prp = dbs.CreateProperty(strPropName, varPropType, varPropValue)> dbs.Properties.Append prp> Resume Next> Else> ' Unknown error.> ChangeProperty = False> Resume Change_Bye> End If>>End Function>----- Original Message ----->From: "Gary J. Giever" >To: >Sent: Tuesday, October 31, 2006 12:14 PM>Subject: [AccessD] Opening Access 97>>>>I remember having a program that prevented one from opening an Access 97>database by holding down the shift key while opening the database, thus>getting access to the tables. I can't find it now or maybe I imagined the>whole thing. Does this sound familiar to anyone out there?>>>Gary J. Giever, M.A.>Applications Developer>ACCMHS>>_______________________________________________>No banners. No pop-ups. No kidding.>Make My Way your home on the Web - http://www.myway.com>>>-->AccessD mailing list>AccessD at databaseadvisors.com>http://databaseadvisors.com/mailman/listinfo/accessd>Website: http://www.databaseadvisors.com>>-->AccessD mailing list>AccessD at databaseadvisors.com>http://databaseadvisors.com/mailman/listinfo/accessd>Website: http://www.databaseadvisors.com_________________________________________________________________Get FREE company branded e-mail accounts and business Web site fromMicrosoft Office Livehttp://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/-- AccessD mailing listAccessD at databaseadvisors.comhttp://databaseadvisors.com/mailman/listinfo/accessdWebsite: http://www.databaseadvisors.com-- AccessD mailing listAccessD at databaseadvisors.comhttp://databaseadvisors.com/mailman/listinfo/accessdWebsite: http://www.databaseadvisors.com _______________________________________________ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http://www.myway.com From martyconnelly at shaw.ca Tue Oct 31 19:03:03 2006 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 31 Oct 2006 17:03:03 -0800 Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? In-Reply-To: <20061031141810.69743.qmail@web31606.mail.mud.yahoo.com> References: <20061031141810.69743.qmail@web31606.mail.mud.yahoo.com> Message-ID: <4547F247.4020402@shaw.ca> There is also this product that will convert an Access Report to ASP.Net code http://www.datadynamics.com/Products/ProductOverview.aspx?Product=ARNET3 Sad Der wrote: >Hi group, > >does anybody know how difficult it is to open a report in an Access 2003 database using Asp.Net? >We're using an intranet and VPN. So that shouldn't be the big issue. > >Thnx in @vance. > >Regards, > >Sander > > > > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Tue Oct 31 19:29:56 2006 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 31 Oct 2006 17:29:56 -0800 Subject: [AccessD] OT: ASP.Net Opening Access 2003 reports? In-Reply-To: <4547F247.4020402@shaw.ca> Message-ID: <0J8100CEA2RRH0Y0@l-daemon> Wow!... that is a little over the top unless you have or have a client with deep pockets... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, October 31, 2006 5:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: ASP.Net Opening Access 2003 reports? There is also this product that will convert an Access Report to ASP.Net code http://www.datadynamics.com/Products/ProductOverview.aspx?Product=ARNET3 Sad Der wrote: >Hi group, > >does anybody know how difficult it is to open a report in an Access 2003 database using Asp.Net? >We're using an intranet and VPN. So that shouldn't be the big issue. > >Thnx in @vance. > >Regards, > >Sander > > > > > > -- 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 michael at ddisolutions.com.au Tue Oct 31 20:31:05 2006 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 1 Nov 2006 13:31:05 +1100 Subject: [AccessD] Ideas wanted for Office project requirements Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0116AC6A@ddi-01.DDI.local> Hi all, Slightly OT. I have a client who wants to automate a report writing process. Currently they have about 30 managers who once a month send either a Excel workbook or Word doc to some lucky person. He/she then extracts the contents of each file and pastes it into a Word doc to be made into a report. I don't do much with Office these days so maybe someone will have an easy solution??? Step 1 My favoured idea so far is to create a Com-addin for Word/Excel that will take selected text/objects and paste them into a blank file, the copy the file to a file share. Step 2 the person who collates the files has another addin that loops through the contents of the share dir and opens and copies the contents into fields/bookmarks(?) in a Word doc. A 3rd component may be needed to sync the whole schmoozle. I wonder how sturdy a process like this would be... All responses welcome (except abuse... lol) cheers Michael M From artful at rogers.com Tue Oct 31 22:16:47 2006 From: artful at rogers.com (artful at rogers.com) Date: Tue, 31 Oct 2006 20:16:47 -0800 (PST) Subject: [AccessD] Limit Text in Field Message-ID: <20061101041647.31551.qmail@web88210.mail.re2.yahoo.com> Slick. My only criticism is that it waits for the user to go too far, rather than cautioning the user that he is about to go too far. (I tend toward guiding users to correctness rather than busting them for errors.) Perhaps your code could be modified to write the [length] + " of 255 characters allowed" to the status bar, so the user anticipates the error rather than commits it. Not a big deal. I like your solution. One of my mantras is, "Make the user feel like a dancer." That means preclude error to the best of my ability, and then of course deal with it should it occur. A. ----- Original Message ---- From: John Bartow To: Access Developers discussion and problem solving Sent: Tuesday, October 31, 2006 1:12:03 PM Subject: Re: [AccessD] Limit Text in Field Hi Virginia, FWIW, here's the on change event procedure that I use with a fax form on which the "regarding" line field (Text 255) is not long enough for a huge description but the txtMessage field (Memo) is: Private Sub txtRegarding_Change() 'Comment: prevents user form adding too much text to the regarding line On Error GoTo Form_Open_ERR If Len(Me.txtRegarding.Text) > 255 Then MsgBox "The regarding line can only contain 255 characters, " & _ "please use the message box for longer text." Me.txtRegarding.Text = Left(Me.txtRegarding.Text, 255) End If Form_Open_EXIT: Exit Sub Form_Open_ERR: MsgBox Err.Description Resume Form_Open_EXIT End Sub HTH 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 Tue Oct 31 23:54:07 2006 From: john at winhaven.net (John Bartow) Date: Tue, 31 Oct 2006 23:54:07 -0600 Subject: [AccessD] Limit Text in Field In-Reply-To: <20061101041647.31551.qmail@web88210.mail.re2.yahoo.com> Message-ID: <00b301c6fd7a$256c74a0$1402a8c0@ScuzzPaq> Hi Arthur, Good advice to help the user to prevent the error. What you can't see of course is a visual of the form, which was designed to replicate the paper FAX form the company uses. It has a text box large enough for slightly larger than an average "regarding" line on a FAX. While the text length for the field is set to 255, the form "visually encourages" one to only type so much. So, the user would normally not type more into the text box than it appears they have room for. The code I posted was the second level of protection, I doubt it ever gets triggered. :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, October 31, 2006 10:17 PM Slick. My only criticism is that it waits for the user to go too far, rather than cautioning the user that he is about to go too far. (I tend toward guiding users to correctness rather than busting them for errors.) Perhaps your code could be modified to write the [length] + " of 255 characters allowed" to the status bar, so the user anticipates the error rather than commits it. Not a big deal. I like your solution. One of my mantras is, "Make the user feel like a dancer." That means preclude error to the best of my ability, and then of course deal with it should it occur. A.